diff --git a/README.md b/README.md index 91b5927..04ec8e1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API in applications written in PHP. -* Package version: 4.2.0 +* Package version: 4.3.0 # Getting Started @@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow } ], "require": { - "xendit/xendit-php": "4.2.0" + "xendit/xendit-php": "4.3.0" } } ``` diff --git a/composer.json b/composer.json index 5012aef..8a1ba93 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "xendit/xendit-php", - "version": "4.2.0", + "version": "4.3.0", "description": "Xendit PHP SDK", "keywords": [ "openapitools", diff --git a/docs/Invoice/BankCode.md b/docs/Invoice/BankCode.md index 7c27312..6656f74 100644 --- a/docs/Invoice/BankCode.md +++ b/docs/Invoice/BankCode.md @@ -29,6 +29,10 @@ use Xendit\Invoice\BankCode; * `BNC` (value: `'BNC'`) + * `HANA` (value: `'HANA'`) + + * `MUAMALAT` (value: `'MUAMALAT'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/docs/Invoice/ChannelProperties.md b/docs/Invoice/ChannelProperties.md new file mode 100644 index 0000000..e71158f --- /dev/null +++ b/docs/Invoice/ChannelProperties.md @@ -0,0 +1,15 @@ +# # ChannelProperties +An object representing channel-specific properties. + +```php +use Xendit\Invoice\ChannelProperties; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **cards** | [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/Invoice/ChannelPropertiesCards.md b/docs/Invoice/ChannelPropertiesCards.md new file mode 100644 index 0000000..a721e58 --- /dev/null +++ b/docs/Invoice/ChannelPropertiesCards.md @@ -0,0 +1,15 @@ +# # ChannelPropertiesCards +An object representing properties specific for credit card payment method. + +```php +use Xendit\Invoice\ChannelPropertiesCards; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **allowed_bins** | **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | null | + + +[[Back to README]](../../README.md) diff --git a/docs/Invoice/CreateInvoiceRequest.md b/docs/Invoice/CreateInvoiceRequest.md index 27d68f3..0061146 100644 --- a/docs/Invoice/CreateInvoiceRequest.md +++ b/docs/Invoice/CreateInvoiceRequest.md @@ -29,6 +29,7 @@ use Xendit\Invoice\CreateInvoiceRequest; | **reminder_time_unit** | **string** | | The unit of the reminder time. | null | | **items** | [**array**](InvoiceItem.md) | | An array of items included in the invoice. | null | | **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null | +| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/DirectDebitType.md b/docs/Invoice/DirectDebitType.md index cedfb5a..7726ca5 100644 --- a/docs/Invoice/DirectDebitType.md +++ b/docs/Invoice/DirectDebitType.md @@ -47,6 +47,84 @@ use Xendit\Invoice\DirectDebitType; * `DC_CHINABANK` (value: `'DC_CHINABANK'`) + * `DD_PUBLIC_FPX` (value: `'DD_PUBLIC_FPX'`) + + * `DD_AMBANK_FPX` (value: `'DD_AMBANK_FPX'`) + + * `DD_KFH_FPX` (value: `'DD_KFH_FPX'`) + + * `DD_AGRO_FPX` (value: `'DD_AGRO_FPX'`) + + * `DD_AFFIN_FPX` (value: `'DD_AFFIN_FPX'`) + + * `DD_ALLIANCE_FPX` (value: `'DD_ALLIANCE_FPX'`) + + * `DD_MUAMALAT_FPX` (value: `'DD_MUAMALAT_FPX'`) + + * `DD_HLB_FPX` (value: `'DD_HLB_FPX'`) + + * `DD_ISLAM_FPX` (value: `'DD_ISLAM_FPX'`) + + * `DD_RAKYAT_FPX` (value: `'DD_RAKYAT_FPX'`) + + * `DD_CIMB_FPX` (value: `'DD_CIMB_FPX'`) + + * `DD_UOB_FPX` (value: `'DD_UOB_FPX'`) + + * `DD_BOC_FPX` (value: `'DD_BOC_FPX'`) + + * `DD_BSN_FPX` (value: `'DD_BSN_FPX'`) + + * `DD_OCBC_FPX` (value: `'DD_OCBC_FPX'`) + + * `DD_HSBC_FPX` (value: `'DD_HSBC_FPX'`) + + * `DD_SCH_FPX` (value: `'DD_SCH_FPX'`) + + * `DD_MAYB2_U_FPX` (value: `'DD_MAYB2U_FPX'`) + + * `DD_RHB_FPX` (value: `'DD_RHB_FPX'`) + + * `DD_UOB_FPX_BUSINESS` (value: `'DD_UOB_FPX_BUSINESS'`) + + * `DD_AGRO_FPX_BUSINESS` (value: `'DD_AGRO_FPX_BUSINESS'`) + + * `DD_ALLIANCE_FPX_BUSINESS` (value: `'DD_ALLIANCE_FPX_BUSINESS'`) + + * `DD_AMBANK_FPX_BUSINESS` (value: `'DD_AMBANK_FPX_BUSINESS'`) + + * `DD_ISLAM_FPX_BUSINESS` (value: `'DD_ISLAM_FPX_BUSINESS'`) + + * `DD_MUAMALAT_FPX_BUSINESS` (value: `'DD_MUAMALAT_FPX_BUSINESS'`) + + * `DD_HLB_FPX_BUSINESS` (value: `'DD_HLB_FPX_BUSINESS'`) + + * `DD_HSBC_FPX_BUSINESS` (value: `'DD_HSBC_FPX_BUSINESS'`) + + * `DD_RAKYAT_FPX_BUSINESS` (value: `'DD_RAKYAT_FPX_BUSINESS'`) + + * `DD_KFH_FPX_BUSINESS` (value: `'DD_KFH_FPX_BUSINESS'`) + + * `DD_OCBC_FPX_BUSINESS` (value: `'DD_OCBC_FPX_BUSINESS'`) + + * `DD_PUBLIC_FPX_BUSINESS` (value: `'DD_PUBLIC_FPX_BUSINESS'`) + + * `DD_RHB_FPX_BUSINESS` (value: `'DD_RHB_FPX_BUSINESS'`) + + * `DD_SCH_FPX_BUSINESS` (value: `'DD_SCH_FPX_BUSINESS'`) + + * `DD_CITIBANK_FPX_BUSINESS` (value: `'DD_CITIBANK_FPX_BUSINESS'`) + + * `DD_BNP_FPX_BUSINESS` (value: `'DD_BNP_FPX_BUSINESS'`) + + * `DD_DEUTSCHE_FPX_BUSINESS` (value: `'DD_DEUTSCHE_FPX_BUSINESS'`) + + * `DD_MAYB2_E_FPX_BUSINESS` (value: `'DD_MAYB2E_FPX_BUSINESS'`) + + * `DD_CIMB_FPX_BUSINESS` (value: `'DD_CIMB_FPX_BUSINESS'`) + + * `DD_AFFIN_FPX_BUSINESS` (value: `'DD_AFFIN_FPX_BUSINESS'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/docs/Invoice/EwalletType.md b/docs/Invoice/EwalletType.md index ab965ba..60de2f9 100644 --- a/docs/Invoice/EwalletType.md +++ b/docs/Invoice/EwalletType.md @@ -39,6 +39,14 @@ use Xendit\Invoice\EwalletType; * `APPOTA` (value: `'APPOTA'`) + * `LINEPAY` (value: `'LINEPAY'`) + + * `TRUEMONEY` (value: `'TRUEMONEY'`) + + * `WECHATPAY` (value: `'WECHATPAY'`) + + * `TOUCHNGO` (value: `'TOUCHNGO'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/docs/Invoice/Invoice.md b/docs/Invoice/Invoice.md index 161e918..ecb1f1b 100644 --- a/docs/Invoice/Invoice.md +++ b/docs/Invoice/Invoice.md @@ -42,6 +42,7 @@ use Xendit\Invoice\Invoice; | **customer** | [**CustomerObject**](CustomerObject.md) | | | null | | **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null | | **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null | +| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoicePaymentMethod.md b/docs/Invoice/InvoicePaymentMethod.md index 0752b54..56637e9 100644 --- a/docs/Invoice/InvoicePaymentMethod.md +++ b/docs/Invoice/InvoicePaymentMethod.md @@ -29,6 +29,8 @@ use Xendit\Invoice\InvoicePaymentMethod; * `PAYLATER` (value: `'PAYLATER'`) + * `CRYPTOCURRENCY` (value: `'CRYPTOCURRENCY'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/docs/Invoice/NotificationPreference.md b/docs/Invoice/NotificationPreference.md index c6bf5b3..73e9507 100644 --- a/docs/Invoice/NotificationPreference.md +++ b/docs/Invoice/NotificationPreference.md @@ -11,7 +11,6 @@ use Xendit\Invoice\NotificationPreference; |------------|:-------------:|:-------------:|-------------|:-------------:| | **invoice_created** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is created. | null | | **invoice_reminder** | [**array**](NotificationChannel.md) | | Notification channels for invoice reminders. | null | -| **invoice_expired** | [**array**](NotificationChannel.md) | | Notification channels for expired invoices. | null | | **invoice_paid** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | null | diff --git a/lib/BalanceAndTransaction/BalanceApi.php b/lib/BalanceAndTransaction/BalanceApi.php index cc9fe41..566cdd3 100644 --- a/lib/BalanceAndTransaction/BalanceApi.php +++ b/lib/BalanceAndTransaction/BalanceApi.php @@ -367,7 +367,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $for // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/TransactionApi.php b/lib/BalanceAndTransaction/TransactionApi.php index f31dfb9..0b1661f 100644 --- a/lib/BalanceAndTransaction/TransactionApi.php +++ b/lib/BalanceAndTransaction/TransactionApi.php @@ -363,7 +363,7 @@ public function getTransactionByIDRequest($id, $for_user_id = null, string $cont // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -806,7 +806,7 @@ public function getAllTransactionsRequest($for_user_id = null, $types = null, $s // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Configuration.php b/lib/Configuration.php index 8136625..ece5290 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -64,7 +64,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/4.2.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/4.3.0/PHP'; /** * Debug switch (default set to false) @@ -305,7 +305,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.45.2' . PHP_EOL; - $report .= ' SDK Package Version: 4.2.0' . PHP_EOL; + $report .= ' SDK Package Version: 4.3.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Customer/CustomerApi.php b/lib/Customer/CustomerApi.php index 135c7a9..332ffb0 100644 --- a/lib/Customer/CustomerApi.php +++ b/lib/Customer/CustomerApi.php @@ -369,7 +369,7 @@ public function createCustomerRequest($idempotency_key = null, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -628,7 +628,7 @@ public function getCustomerRequest($id, $for_user_id = null, string $contentType // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -891,7 +891,7 @@ public function getCustomerByReferenceIDRequest($reference_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1163,7 +1163,7 @@ public function updateCustomerRequest($id, $for_user_id = null, $patch_customer // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Invoice/AddressObject.php b/lib/Invoice/AddressObject.php index ba28dd7..1140429 100644 --- a/lib/Invoice/AddressObject.php +++ b/lib/Invoice/AddressObject.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/AlternativeDisplayItem.php b/lib/Invoice/AlternativeDisplayItem.php index a8783ba..8ab5f44 100644 --- a/lib/Invoice/AlternativeDisplayItem.php +++ b/lib/Invoice/AlternativeDisplayItem.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/BadRequestError.php b/lib/Invoice/BadRequestError.php index 9ddae87..9386458 100644 --- a/lib/Invoice/BadRequestError.php +++ b/lib/Invoice/BadRequestError.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/Bank.php b/lib/Invoice/Bank.php index aaa5044..9512d1d 100644 --- a/lib/Invoice/Bank.php +++ b/lib/Invoice/Bank.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/BankCode.php b/lib/Invoice/BankCode.php index 5fb3c85..d7ee958 100644 --- a/lib/Invoice/BankCode.php +++ b/lib/Invoice/BankCode.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -57,6 +57,10 @@ class BankCode public const BNC = 'BNC'; + public const HANA = 'HANA'; + + public const MUAMALAT = 'MUAMALAT'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -97,6 +101,8 @@ public static function getAllowableEnumValues() self::SAHABAT_SAMPOERNA, self::CIMB, self::BNC, + self::HANA, + self::MUAMALAT, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Invoice/ChannelProperties.php b/lib/Invoice/ChannelProperties.php new file mode 100644 index 0000000..1fb5715 --- /dev/null +++ b/lib/Invoice/ChannelProperties.php @@ -0,0 +1,403 @@ + + */ +class ChannelProperties implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ChannelProperties'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'cards' => '\Xendit\Invoice\ChannelPropertiesCards' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'cards' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'cards' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cards' => 'cards' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cards' => 'setCards' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cards' => 'getCards' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('cards', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets cards + * + * @return \Invoice\ChannelPropertiesCards|null + */ + public function getCards() + { + return $this->container['cards']; + } + + /** + * Sets cards + * + * @param \Invoice\ChannelPropertiesCards|null $cards cards + * + * @return self + */ + public function setCards($cards) + { + if (is_null($cards)) { + throw new \InvalidArgumentException('non-nullable cards cannot be null'); + } + $this->container['cards'] = $cards; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Invoice/ChannelPropertiesCards.php b/lib/Invoice/ChannelPropertiesCards.php new file mode 100644 index 0000000..704eeae --- /dev/null +++ b/lib/Invoice/ChannelPropertiesCards.php @@ -0,0 +1,403 @@ + + */ +class ChannelPropertiesCards implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ChannelPropertiesCards'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'allowed_bins' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'allowed_bins' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'allowed_bins' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'allowed_bins' => 'allowed_bins' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'allowed_bins' => 'setAllowedBins' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'allowed_bins' => 'getAllowedBins' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('allowed_bins', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets allowed_bins + * + * @return string[]|null + */ + public function getAllowedBins() + { + return $this->container['allowed_bins']; + } + + /** + * Sets allowed_bins + * + * @param string[]|null $allowed_bins An array of allowed BINs (6 or 8 digits) for credit card payments. + * + * @return self + */ + public function setAllowedBins($allowed_bins) + { + if (is_null($allowed_bins)) { + throw new \InvalidArgumentException('non-nullable allowed_bins cannot be null'); + } + $this->container['allowed_bins'] = $allowed_bins; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Invoice/CreateInvoiceRequest.php b/lib/Invoice/CreateInvoiceRequest.php index 55c9126..d62b0be 100644 --- a/lib/Invoice/CreateInvoiceRequest.php +++ b/lib/Invoice/CreateInvoiceRequest.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -70,7 +70,8 @@ class CreateInvoiceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'local' => 'string', 'reminder_time_unit' => 'string', 'items' => '\Xendit\Invoice\InvoiceItem[]', - 'fees' => '\Xendit\Invoice\InvoiceFee[]' + 'fees' => '\Xendit\Invoice\InvoiceFee[]', + 'channel_properties' => '\Xendit\Invoice\ChannelProperties' ]; /** @@ -100,7 +101,8 @@ class CreateInvoiceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'local' => null, 'reminder_time_unit' => null, 'items' => null, - 'fees' => null + 'fees' => null, + 'channel_properties' => null ]; /** @@ -128,7 +130,8 @@ class CreateInvoiceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'local' => false, 'reminder_time_unit' => false, 'items' => false, - 'fees' => false + 'fees' => false, + 'channel_properties' => false ]; /** @@ -236,7 +239,8 @@ public function isNullableSetToNull(string $property): bool 'local' => 'local', 'reminder_time_unit' => 'reminder_time_unit', 'items' => 'items', - 'fees' => 'fees' + 'fees' => 'fees', + 'channel_properties' => 'channel_properties' ]; /** @@ -264,7 +268,8 @@ public function isNullableSetToNull(string $property): bool 'local' => 'setLocal', 'reminder_time_unit' => 'setReminderTimeUnit', 'items' => 'setItems', - 'fees' => 'setFees' + 'fees' => 'setFees', + 'channel_properties' => 'setChannelProperties' ]; /** @@ -292,7 +297,8 @@ public function isNullableSetToNull(string $property): bool 'local' => 'getLocal', 'reminder_time_unit' => 'getReminderTimeUnit', 'items' => 'getItems', - 'fees' => 'getFees' + 'fees' => 'getFees', + 'channel_properties' => 'getChannelProperties' ]; /** @@ -372,6 +378,7 @@ public function __construct(array $data = null) $this->setIfExists('reminder_time_unit', $data ?? [], null); $this->setIfExists('items', $data ?? [], null); $this->setIfExists('fees', $data ?? [], null); + $this->setIfExists('channel_properties', $data ?? [], null); } /** @@ -961,6 +968,33 @@ public function setFees($fees) return $this; } + + /** + * Gets channel_properties + * + * @return \Invoice\ChannelProperties|null + */ + public function getChannelProperties() + { + return $this->container['channel_properties']; + } + + /** + * Sets channel_properties + * + * @param \Invoice\ChannelProperties|null $channel_properties channel_properties + * + * @return self + */ + public function setChannelProperties($channel_properties) + { + if (is_null($channel_properties)) { + throw new \InvalidArgumentException('non-nullable channel_properties cannot be null'); + } + $this->container['channel_properties'] = $channel_properties; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Invoice/CustomerObject.php b/lib/Invoice/CustomerObject.php index 541b1ab..53e58d4 100644 --- a/lib/Invoice/CustomerObject.php +++ b/lib/Invoice/CustomerObject.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/DirectDebit.php b/lib/Invoice/DirectDebit.php index 16258f5..045de87 100644 --- a/lib/Invoice/DirectDebit.php +++ b/lib/Invoice/DirectDebit.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/DirectDebitType.php b/lib/Invoice/DirectDebitType.php index 88c4516..d841c14 100644 --- a/lib/Invoice/DirectDebitType.php +++ b/lib/Invoice/DirectDebitType.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -75,6 +75,84 @@ class DirectDebitType public const DC_CHINABANK = 'DC_CHINABANK'; + public const DD_PUBLIC_FPX = 'DD_PUBLIC_FPX'; + + public const DD_AMBANK_FPX = 'DD_AMBANK_FPX'; + + public const DD_KFH_FPX = 'DD_KFH_FPX'; + + public const DD_AGRO_FPX = 'DD_AGRO_FPX'; + + public const DD_AFFIN_FPX = 'DD_AFFIN_FPX'; + + public const DD_ALLIANCE_FPX = 'DD_ALLIANCE_FPX'; + + public const DD_MUAMALAT_FPX = 'DD_MUAMALAT_FPX'; + + public const DD_HLB_FPX = 'DD_HLB_FPX'; + + public const DD_ISLAM_FPX = 'DD_ISLAM_FPX'; + + public const DD_RAKYAT_FPX = 'DD_RAKYAT_FPX'; + + public const DD_CIMB_FPX = 'DD_CIMB_FPX'; + + public const DD_UOB_FPX = 'DD_UOB_FPX'; + + public const DD_BOC_FPX = 'DD_BOC_FPX'; + + public const DD_BSN_FPX = 'DD_BSN_FPX'; + + public const DD_OCBC_FPX = 'DD_OCBC_FPX'; + + public const DD_HSBC_FPX = 'DD_HSBC_FPX'; + + public const DD_SCH_FPX = 'DD_SCH_FPX'; + + public const DD_MAYB2_U_FPX = 'DD_MAYB2U_FPX'; + + public const DD_RHB_FPX = 'DD_RHB_FPX'; + + public const DD_UOB_FPX_BUSINESS = 'DD_UOB_FPX_BUSINESS'; + + public const DD_AGRO_FPX_BUSINESS = 'DD_AGRO_FPX_BUSINESS'; + + public const DD_ALLIANCE_FPX_BUSINESS = 'DD_ALLIANCE_FPX_BUSINESS'; + + public const DD_AMBANK_FPX_BUSINESS = 'DD_AMBANK_FPX_BUSINESS'; + + public const DD_ISLAM_FPX_BUSINESS = 'DD_ISLAM_FPX_BUSINESS'; + + public const DD_MUAMALAT_FPX_BUSINESS = 'DD_MUAMALAT_FPX_BUSINESS'; + + public const DD_HLB_FPX_BUSINESS = 'DD_HLB_FPX_BUSINESS'; + + public const DD_HSBC_FPX_BUSINESS = 'DD_HSBC_FPX_BUSINESS'; + + public const DD_RAKYAT_FPX_BUSINESS = 'DD_RAKYAT_FPX_BUSINESS'; + + public const DD_KFH_FPX_BUSINESS = 'DD_KFH_FPX_BUSINESS'; + + public const DD_OCBC_FPX_BUSINESS = 'DD_OCBC_FPX_BUSINESS'; + + public const DD_PUBLIC_FPX_BUSINESS = 'DD_PUBLIC_FPX_BUSINESS'; + + public const DD_RHB_FPX_BUSINESS = 'DD_RHB_FPX_BUSINESS'; + + public const DD_SCH_FPX_BUSINESS = 'DD_SCH_FPX_BUSINESS'; + + public const DD_CITIBANK_FPX_BUSINESS = 'DD_CITIBANK_FPX_BUSINESS'; + + public const DD_BNP_FPX_BUSINESS = 'DD_BNP_FPX_BUSINESS'; + + public const DD_DEUTSCHE_FPX_BUSINESS = 'DD_DEUTSCHE_FPX_BUSINESS'; + + public const DD_MAYB2_E_FPX_BUSINESS = 'DD_MAYB2E_FPX_BUSINESS'; + + public const DD_CIMB_FPX_BUSINESS = 'DD_CIMB_FPX_BUSINESS'; + + public const DD_AFFIN_FPX_BUSINESS = 'DD_AFFIN_FPX_BUSINESS'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -124,6 +202,45 @@ public static function getAllowableEnumValues() self::DD_CHINABANK, self::BA_CHINABANK, self::DC_CHINABANK, + self::DD_PUBLIC_FPX, + self::DD_AMBANK_FPX, + self::DD_KFH_FPX, + self::DD_AGRO_FPX, + self::DD_AFFIN_FPX, + self::DD_ALLIANCE_FPX, + self::DD_MUAMALAT_FPX, + self::DD_HLB_FPX, + self::DD_ISLAM_FPX, + self::DD_RAKYAT_FPX, + self::DD_CIMB_FPX, + self::DD_UOB_FPX, + self::DD_BOC_FPX, + self::DD_BSN_FPX, + self::DD_OCBC_FPX, + self::DD_HSBC_FPX, + self::DD_SCH_FPX, + self::DD_MAYB2_U_FPX, + self::DD_RHB_FPX, + self::DD_UOB_FPX_BUSINESS, + self::DD_AGRO_FPX_BUSINESS, + self::DD_ALLIANCE_FPX_BUSINESS, + self::DD_AMBANK_FPX_BUSINESS, + self::DD_ISLAM_FPX_BUSINESS, + self::DD_MUAMALAT_FPX_BUSINESS, + self::DD_HLB_FPX_BUSINESS, + self::DD_HSBC_FPX_BUSINESS, + self::DD_RAKYAT_FPX_BUSINESS, + self::DD_KFH_FPX_BUSINESS, + self::DD_OCBC_FPX_BUSINESS, + self::DD_PUBLIC_FPX_BUSINESS, + self::DD_RHB_FPX_BUSINESS, + self::DD_SCH_FPX_BUSINESS, + self::DD_CITIBANK_FPX_BUSINESS, + self::DD_BNP_FPX_BUSINESS, + self::DD_DEUTSCHE_FPX_BUSINESS, + self::DD_MAYB2_E_FPX_BUSINESS, + self::DD_CIMB_FPX_BUSINESS, + self::DD_AFFIN_FPX_BUSINESS, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Invoice/Ewallet.php b/lib/Invoice/Ewallet.php index 4b52e56..8c3d7e3 100644 --- a/lib/Invoice/Ewallet.php +++ b/lib/Invoice/Ewallet.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/EwalletType.php b/lib/Invoice/EwalletType.php index b3e1ef3..3a4d8e6 100644 --- a/lib/Invoice/EwalletType.php +++ b/lib/Invoice/EwalletType.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -67,6 +67,14 @@ class EwalletType public const APPOTA = 'APPOTA'; + public const LINEPAY = 'LINEPAY'; + + public const TRUEMONEY = 'TRUEMONEY'; + + public const WECHATPAY = 'WECHATPAY'; + + public const TOUCHNGO = 'TOUCHNGO'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -112,6 +120,10 @@ public static function getAllowableEnumValues() self::VIETTELPAY, self::VNPTWALLET, self::APPOTA, + self::LINEPAY, + self::TRUEMONEY, + self::WECHATPAY, + self::TOUCHNGO, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Invoice/ForbiddenError.php b/lib/Invoice/ForbiddenError.php index 6d7c481..f0dde3b 100644 --- a/lib/Invoice/ForbiddenError.php +++ b/lib/Invoice/ForbiddenError.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/Invoice.php b/lib/Invoice/Invoice.php index 4dd61bd..2849ecc 100644 --- a/lib/Invoice/Invoice.php +++ b/lib/Invoice/Invoice.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -83,7 +83,8 @@ class Invoice implements ModelInterface, ArrayAccess, \JsonSerializable 'reminder_date' => '\DateTime', 'customer' => '\Xendit\Invoice\CustomerObject', 'customer_notification_preference' => '\Xendit\Invoice\NotificationPreference', - 'fees' => '\Xendit\Invoice\InvoiceFee[]' + 'fees' => '\Xendit\Invoice\InvoiceFee[]', + 'channel_properties' => '\Xendit\Invoice\ChannelProperties' ]; /** @@ -126,7 +127,8 @@ class Invoice implements ModelInterface, ArrayAccess, \JsonSerializable 'reminder_date' => 'date-time', 'customer' => null, 'customer_notification_preference' => null, - 'fees' => null + 'fees' => null, + 'channel_properties' => null ]; /** @@ -167,7 +169,8 @@ class Invoice implements ModelInterface, ArrayAccess, \JsonSerializable 'reminder_date' => false, 'customer' => false, 'customer_notification_preference' => false, - 'fees' => false + 'fees' => false, + 'channel_properties' => false ]; /** @@ -288,7 +291,8 @@ public function isNullableSetToNull(string $property): bool 'reminder_date' => 'reminder_date', 'customer' => 'customer', 'customer_notification_preference' => 'customer_notification_preference', - 'fees' => 'fees' + 'fees' => 'fees', + 'channel_properties' => 'channel_properties' ]; /** @@ -329,7 +333,8 @@ public function isNullableSetToNull(string $property): bool 'reminder_date' => 'setReminderDate', 'customer' => 'setCustomer', 'customer_notification_preference' => 'setCustomerNotificationPreference', - 'fees' => 'setFees' + 'fees' => 'setFees', + 'channel_properties' => 'setChannelProperties' ]; /** @@ -370,7 +375,8 @@ public function isNullableSetToNull(string $property): bool 'reminder_date' => 'getReminderDate', 'customer' => 'getCustomer', 'customer_notification_preference' => 'getCustomerNotificationPreference', - 'fees' => 'getFees' + 'fees' => 'getFees', + 'channel_properties' => 'getChannelProperties' ]; /** @@ -463,6 +469,7 @@ public function __construct(array $data = null) $this->setIfExists('customer', $data ?? [], null); $this->setIfExists('customer_notification_preference', $data ?? [], null); $this->setIfExists('fees', $data ?? [], null); + $this->setIfExists('channel_properties', $data ?? [], null); } /** @@ -1448,6 +1455,33 @@ public function setFees($fees) return $this; } + + /** + * Gets channel_properties + * + * @return \Invoice\ChannelProperties|null + */ + public function getChannelProperties() + { + return $this->container['channel_properties']; + } + + /** + * Sets channel_properties + * + * @param \Invoice\ChannelProperties|null $channel_properties channel_properties + * + * @return self + */ + public function setChannelProperties($channel_properties) + { + if (is_null($channel_properties)) { + throw new \InvalidArgumentException('non-nullable channel_properties cannot be null'); + } + $this->container['channel_properties'] = $channel_properties; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Invoice/InvoiceApi.php b/lib/Invoice/InvoiceApi.php index 255bf56..4f1c293 100644 --- a/lib/Invoice/InvoiceApi.php +++ b/lib/Invoice/InvoiceApi.php @@ -10,7 +10,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -365,7 +365,7 @@ public function createInvoiceRequest($create_invoice_request, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -624,7 +624,7 @@ public function getInvoiceByIdRequest($invoice_id, $for_user_id = null, string $ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1073,7 +1073,7 @@ public function getInvoicesRequest($for_user_id = null, $external_id = null, $st // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1332,7 +1332,7 @@ public function expireInvoiceRequest($invoice_id, $for_user_id = null, string $c // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Invoice/InvoiceCallback.php b/lib/Invoice/InvoiceCallback.php index 97a6962..abed7ff 100644 --- a/lib/Invoice/InvoiceCallback.php +++ b/lib/Invoice/InvoiceCallback.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceCallbackItem.php b/lib/Invoice/InvoiceCallbackItem.php index c4491bb..c3e71b0 100644 --- a/lib/Invoice/InvoiceCallbackItem.php +++ b/lib/Invoice/InvoiceCallbackItem.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceClientType.php b/lib/Invoice/InvoiceClientType.php index 8e88eaf..b184597 100644 --- a/lib/Invoice/InvoiceClientType.php +++ b/lib/Invoice/InvoiceClientType.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceCurrency.php b/lib/Invoice/InvoiceCurrency.php index e5f7f8d..c3ad9f0 100644 --- a/lib/Invoice/InvoiceCurrency.php +++ b/lib/Invoice/InvoiceCurrency.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceError404ResponseDefinition.php b/lib/Invoice/InvoiceError404ResponseDefinition.php index c8b2f91..806be64 100644 --- a/lib/Invoice/InvoiceError404ResponseDefinition.php +++ b/lib/Invoice/InvoiceError404ResponseDefinition.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceFee.php b/lib/Invoice/InvoiceFee.php index 0c3f1af..ab76647 100644 --- a/lib/Invoice/InvoiceFee.php +++ b/lib/Invoice/InvoiceFee.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceItem.php b/lib/Invoice/InvoiceItem.php index 81c046f..141b1f3 100644 --- a/lib/Invoice/InvoiceItem.php +++ b/lib/Invoice/InvoiceItem.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoiceNotFoundError.php b/lib/Invoice/InvoiceNotFoundError.php index b172d13..5bf1769 100644 --- a/lib/Invoice/InvoiceNotFoundError.php +++ b/lib/Invoice/InvoiceNotFoundError.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/InvoicePaymentMethod.php b/lib/Invoice/InvoicePaymentMethod.php index 98d8b88..21b7099 100644 --- a/lib/Invoice/InvoicePaymentMethod.php +++ b/lib/Invoice/InvoicePaymentMethod.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -57,6 +57,8 @@ class InvoicePaymentMethod public const PAYLATER = 'PAYLATER'; + public const CRYPTOCURRENCY = 'CRYPTOCURRENCY'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -97,6 +99,7 @@ public static function getAllowableEnumValues() self::DIRECT_DEBIT, self::BANK_TRANSFER, self::PAYLATER, + self::CRYPTOCURRENCY, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Invoice/InvoiceStatus.php b/lib/Invoice/InvoiceStatus.php index b19b449..24003fb 100644 --- a/lib/Invoice/InvoiceStatus.php +++ b/lib/Invoice/InvoiceStatus.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/NotificationChannel.php b/lib/Invoice/NotificationChannel.php index 5afab25..f52f368 100644 --- a/lib/Invoice/NotificationChannel.php +++ b/lib/Invoice/NotificationChannel.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/NotificationPreference.php b/lib/Invoice/NotificationPreference.php index 0392579..cb27763 100644 --- a/lib/Invoice/NotificationPreference.php +++ b/lib/Invoice/NotificationPreference.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** @@ -53,7 +53,6 @@ class NotificationPreference implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPITypes = [ 'invoice_created' => '\Xendit\Invoice\NotificationChannel[]', 'invoice_reminder' => '\Xendit\Invoice\NotificationChannel[]', - 'invoice_expired' => '\Xendit\Invoice\NotificationChannel[]', 'invoice_paid' => '\Xendit\Invoice\NotificationChannel[]' ]; @@ -67,7 +66,6 @@ class NotificationPreference implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPIFormats = [ 'invoice_created' => null, 'invoice_reminder' => null, - 'invoice_expired' => null, 'invoice_paid' => null ]; @@ -79,7 +77,6 @@ class NotificationPreference implements ModelInterface, ArrayAccess, \JsonSerial protected static array $openAPINullables = [ 'invoice_created' => false, 'invoice_reminder' => false, - 'invoice_expired' => false, 'invoice_paid' => false ]; @@ -171,7 +168,6 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'invoice_created' => 'invoice_created', 'invoice_reminder' => 'invoice_reminder', - 'invoice_expired' => 'invoice_expired', 'invoice_paid' => 'invoice_paid' ]; @@ -183,7 +179,6 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'invoice_created' => 'setInvoiceCreated', 'invoice_reminder' => 'setInvoiceReminder', - 'invoice_expired' => 'setInvoiceExpired', 'invoice_paid' => 'setInvoicePaid' ]; @@ -195,7 +190,6 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'invoice_created' => 'getInvoiceCreated', 'invoice_reminder' => 'getInvoiceReminder', - 'invoice_expired' => 'getInvoiceExpired', 'invoice_paid' => 'getInvoicePaid' ]; @@ -258,7 +252,6 @@ public function __construct(array $data = null) { $this->setIfExists('invoice_created', $data ?? [], null); $this->setIfExists('invoice_reminder', $data ?? [], null); - $this->setIfExists('invoice_expired', $data ?? [], null); $this->setIfExists('invoice_paid', $data ?? [], null); } @@ -358,33 +351,6 @@ public function setInvoiceReminder($invoice_reminder) return $this; } - /** - * Gets invoice_expired - * - * @return \Invoice\NotificationChannel[]|null - */ - public function getInvoiceExpired() - { - return $this->container['invoice_expired']; - } - - /** - * Sets invoice_expired - * - * @param \Invoice\NotificationChannel[]|null $invoice_expired Notification channels for expired invoices. - * - * @return self - */ - public function setInvoiceExpired($invoice_expired) - { - if (is_null($invoice_expired)) { - throw new \InvalidArgumentException('non-nullable invoice_expired cannot be null'); - } - $this->container['invoice_expired'] = $invoice_expired; - - return $this; - } - /** * Gets invoice_paid * diff --git a/lib/Invoice/Paylater.php b/lib/Invoice/Paylater.php index 552b086..3566f23 100644 --- a/lib/Invoice/Paylater.php +++ b/lib/Invoice/Paylater.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/PaylaterType.php b/lib/Invoice/PaylaterType.php index 0935354..6780faa 100644 --- a/lib/Invoice/PaylaterType.php +++ b/lib/Invoice/PaylaterType.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/PaymentDetails.php b/lib/Invoice/PaymentDetails.php index 99efd8a..8b7686a 100644 --- a/lib/Invoice/PaymentDetails.php +++ b/lib/Invoice/PaymentDetails.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/QrCode.php b/lib/Invoice/QrCode.php index e57ba38..a4bf452 100644 --- a/lib/Invoice/QrCode.php +++ b/lib/Invoice/QrCode.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/QrCodeType.php b/lib/Invoice/QrCodeType.php index 1d322f3..e88b9f8 100644 --- a/lib/Invoice/QrCodeType.php +++ b/lib/Invoice/QrCodeType.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/RetailOutlet.php b/lib/Invoice/RetailOutlet.php index d9fb76c..afa5009 100644 --- a/lib/Invoice/RetailOutlet.php +++ b/lib/Invoice/RetailOutlet.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/RetailOutletName.php b/lib/Invoice/RetailOutletName.php index cd5fb06..b318234 100644 --- a/lib/Invoice/RetailOutletName.php +++ b/lib/Invoice/RetailOutletName.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/ServerError.php b/lib/Invoice/ServerError.php index 0526860..bd6d7fb 100644 --- a/lib/Invoice/ServerError.php +++ b/lib/Invoice/ServerError.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/Invoice/UnauthorizedError.php b/lib/Invoice/UnauthorizedError.php index b99ae80..106e493 100644 --- a/lib/Invoice/UnauthorizedError.php +++ b/lib/Invoice/UnauthorizedError.php @@ -11,7 +11,7 @@ /** * xendit-invoice-service * - * The version of the OpenAPI document: 1.6.0 + * The version of the OpenAPI document: 1.7.6 */ /** diff --git a/lib/PaymentMethod/PaymentMethodApi.php b/lib/PaymentMethod/PaymentMethodApi.php index 457a184..c89cd42 100644 --- a/lib/PaymentMethod/PaymentMethodApi.php +++ b/lib/PaymentMethod/PaymentMethodApi.php @@ -371,7 +371,7 @@ public function createPaymentMethodRequest($for_user_id = null, $payment_method_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -630,7 +630,7 @@ public function getPaymentMethodByIDRequest($payment_method_id, $for_user_id = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1069,7 +1069,7 @@ public function getPaymentsByPaymentMethodIdRequest($payment_method_id, $for_use // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1341,7 +1341,7 @@ public function patchPaymentMethodRequest($payment_method_id, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1718,7 +1718,7 @@ public function getAllPaymentMethodsRequest($for_user_id = null, $id = null, $ty // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1990,7 +1990,7 @@ public function expirePaymentMethodRequest($payment_method_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2262,7 +2262,7 @@ public function authPaymentMethodRequest($payment_method_id, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2497,7 +2497,7 @@ public function simulatePaymentRequest($payment_method_id, $simulate_payment_req // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentRequest/PaymentRequestApi.php b/lib/PaymentRequest/PaymentRequestApi.php index dae05f0..142fcd5 100644 --- a/lib/PaymentRequest/PaymentRequestApi.php +++ b/lib/PaymentRequest/PaymentRequestApi.php @@ -378,7 +378,7 @@ public function createPaymentRequestRequest($idempotency_key = null, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPaymentRequestByIDRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -911,7 +911,7 @@ public function getPaymentRequestCapturesRequest($payment_request_id, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1240,7 +1240,7 @@ public function getAllPaymentRequestsRequest($for_user_id = null, $reference_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1512,7 +1512,7 @@ public function capturePaymentRequestRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1784,7 +1784,7 @@ public function authorizePaymentRequestRequest($payment_request_id, $for_user_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2043,7 +2043,7 @@ public function resendPaymentRequestAuthRequest($payment_request_id, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Payout/PayoutApi.php b/lib/Payout/PayoutApi.php index d4890f0..ce27bd2 100644 --- a/lib/Payout/PayoutApi.php +++ b/lib/Payout/PayoutApi.php @@ -378,7 +378,7 @@ public function createPayoutRequest($idempotency_key, $for_user_id = null, $crea // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPayoutByIdRequest($id, $for_user_id = null, string $contentTy // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -921,7 +921,7 @@ public function getPayoutChannelsRequest($currency = null, $channel_category = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1226,7 +1226,7 @@ public function getPayoutsRequest($reference_id, $limit = null, $after_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1485,7 +1485,7 @@ public function cancelPayoutRequest($id, $for_user_id = null, string $contentTyp // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Refund/RefundApi.php b/lib/Refund/RefundApi.php index cc0aaff..601ec3a 100644 --- a/lib/Refund/RefundApi.php +++ b/lib/Refund/RefundApi.php @@ -361,7 +361,7 @@ public function createRefundRequest($idempotency_key = null, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -622,7 +622,7 @@ public function getRefundRequest($refund_id, $idempotency_key = null, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -958,7 +958,7 @@ public function getAllRefundsRequest($for_user_id = null, $payment_request_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1219,7 +1219,7 @@ public function cancelRefundRequest($refund_id, $idempotency_key = null, $for_us // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '4.2.0'; + $defaultHeaders['xendit-lib-ver'] = '4.3.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent();