Skip to content

Commit

Permalink
Published latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cardpay-ci committed Jun 20, 2022
1 parent 608f89b commit 4e0a6e2
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The Unlimint API uses HTTP verbs and a RESTful endpoint structure. Request and response payloads are formatted as JSON.

- API version: 3.0
- PHP SDK version: 3.20.23
- PHP SDK version: 3.21.3

For more information, please visit [https://integration.cardpay.com](https://integration.cardpay.com)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardpay/php-sdk-v3",
"version": "3.20.23",
"version": "3.21.3",
"description": "PHP SDK for Unlimint API v3",
"keywords": [
"unlimint",
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'CardpaySdk/3.20.23/PHP';
protected $userAgent = 'CardpaySdk/3.21.3/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -371,7 +371,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 3.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.20.23' . PHP_EOL;
$report .= ' SDK Package Version: 3.21.3' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
30 changes: 30 additions & 0 deletions lib/model/PaymentResponsePaymentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class PaymentResponsePaymentData implements ModelInterface, ArrayAccess
'currency' => 'string',
'decline_code' => 'string',
'decline_reason' => 'string',
'extended_data' => 'map[string,string]',
'id' => 'string',
'installment_type' => 'string',
'installments' => 'string',
Expand All @@ -59,6 +60,7 @@ class PaymentResponsePaymentData implements ModelInterface, ArrayAccess
'currency' => null,
'decline_code' => null,
'decline_reason' => null,
'extended_data' => null,
'id' => null,
'installment_type' => null,
'installments' => null,
Expand Down Expand Up @@ -105,6 +107,7 @@ public static function swaggerFormats()
'currency' => 'currency',
'decline_code' => 'decline_code',
'decline_reason' => 'decline_reason',
'extended_data' => 'extended_data',
'id' => 'id',
'installment_type' => 'installment_type',
'installments' => 'installments',
Expand All @@ -130,6 +133,7 @@ public static function swaggerFormats()
'currency' => 'setCurrency',
'decline_code' => 'setDeclineCode',
'decline_reason' => 'setDeclineReason',
'extended_data' => 'setExtendedData',
'id' => 'setId',
'installment_type' => 'setInstallmentType',
'installments' => 'setInstallments',
Expand All @@ -155,6 +159,7 @@ public static function swaggerFormats()
'currency' => 'getCurrency',
'decline_code' => 'getDeclineCode',
'decline_reason' => 'getDeclineReason',
'extended_data' => 'getExtendedData',
'id' => 'getId',
'installment_type' => 'getInstallmentType',
'installments' => 'getInstallments',
Expand Down Expand Up @@ -288,6 +293,7 @@ public function __construct(array $data = null)
$this->container['currency'] = isset($data['currency']) ? $data['currency'] : null;
$this->container['decline_code'] = isset($data['decline_code']) ? $data['decline_code'] : null;
$this->container['decline_reason'] = isset($data['decline_reason']) ? $data['decline_reason'] : null;
$this->container['extended_data'] = isset($data['extended_data']) ? $data['extended_data'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['installment_type'] = isset($data['installment_type']) ? $data['installment_type'] : null;
$this->container['installments'] = isset($data['installments']) ? $data['installments'] : null;
Expand Down Expand Up @@ -531,6 +537,30 @@ public function setDeclineReason($decline_reason)
return $this;
}

/**
* Gets extended_data
*
* @return map[string,string]
*/
public function getExtendedData()
{
return $this->container['extended_data'];
}

/**
* Sets extended_data
*
* @param map[string,string] $extended_data Extended structure with information for processing a payment in gateway mode. Contact your account manager to enable it
*
* @return $this
*/
public function setExtendedData($extended_data)
{
$this->container['extended_data'] = $extended_data;

return $this;
}

/**
* Gets id
*
Expand Down
30 changes: 30 additions & 0 deletions lib/model/PayoutRequestMerchantOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class PayoutRequestMerchantOrder implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
'cryptocurrency_indicator' => 'bool',
'description' => 'string',
'id' => 'string'
];
Expand All @@ -36,6 +37,7 @@ class PayoutRequestMerchantOrder implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
'cryptocurrency_indicator' => null,
'description' => null,
'id' => null
];
Expand Down Expand Up @@ -67,6 +69,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
'cryptocurrency_indicator' => 'cryptocurrency_indicator',
'description' => 'description',
'id' => 'id'
];
Expand All @@ -77,6 +80,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
'cryptocurrency_indicator' => 'setCryptocurrencyIndicator',
'description' => 'setDescription',
'id' => 'setId'
];
Expand All @@ -87,6 +91,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
'cryptocurrency_indicator' => 'getCryptocurrencyIndicator',
'description' => 'getDescription',
'id' => 'getId'
];
Expand Down Expand Up @@ -151,6 +156,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->container['cryptocurrency_indicator'] = isset($data['cryptocurrency_indicator']) ? $data['cryptocurrency_indicator'] : null;
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
Expand Down Expand Up @@ -190,6 +196,30 @@ public function valid()
}


/**
* Gets cryptocurrency_indicator
*
* @return bool
*/
public function getCryptocurrencyIndicator()
{
return $this->container['cryptocurrency_indicator'];
}

/**
* Sets cryptocurrency_indicator
*
* @param bool $cryptocurrency_indicator Indicator should be added if there will be cryptocurrency in transaction
*
* @return $this
*/
public function setCryptocurrencyIndicator($cryptocurrency_indicator)
{
$this->container['cryptocurrency_indicator'] = $cryptocurrency_indicator;

return $this;
}

/**
* Gets description
*
Expand Down

0 comments on commit 4e0a6e2

Please sign in to comment.