From 9c598355de1a54172c67885bf6df3173aa24c783 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Mon, 11 Dec 2023 08:26:41 +0000 Subject: [PATCH] Generated Xendit php SDK --- README.md | 4 ++-- composer.json | 2 +- docs/Invoice/EwalletType.md | 10 ++++++++++ docs/InvoiceApi.md | 2 +- docs/PaymentMethodApi.md | 2 +- docs/PaymentRequest/PaymentCallbackData.md | 2 +- docs/PaymentRequest/QRCodeChannelCode.md | 2 ++ .../PaymentRequest/VirtualAccountChannelCode.md | 6 ++++++ docs/PaymentRequestApi.md | 2 +- docs/RefundApi.md | 2 +- lib/BalanceAndTransaction/BalanceApi.php | 2 +- lib/BalanceAndTransaction/TransactionApi.php | 4 ++-- lib/Configuration.php | 4 ++-- lib/Customer/CustomerApi.php | 8 ++++---- lib/Invoice/AddressObject.php | 2 +- lib/Invoice/AlternativeDisplayItem.php | 2 +- lib/Invoice/BadRequestError.php | 2 +- lib/Invoice/Bank.php | 2 +- lib/Invoice/BankCode.php | 2 +- lib/Invoice/CreateInvoiceRequest.php | 2 +- lib/Invoice/CustomerObject.php | 2 +- lib/Invoice/DirectDebit.php | 2 +- lib/Invoice/DirectDebitType.php | 2 +- lib/Invoice/Ewallet.php | 2 +- lib/Invoice/EwalletType.php | 17 ++++++++++++++++- lib/Invoice/ForbiddenError.php | 2 +- lib/Invoice/Invoice.php | 2 +- lib/Invoice/InvoiceApi.php | 10 +++++----- lib/Invoice/InvoiceCallback.php | 2 +- lib/Invoice/InvoiceCallbackItem.php | 2 +- lib/Invoice/InvoiceClientType.php | 2 +- lib/Invoice/InvoiceCurrency.php | 2 +- .../InvoiceError404ResponseDefinition.php | 2 +- lib/Invoice/InvoiceFee.php | 2 +- lib/Invoice/InvoiceItem.php | 2 +- lib/Invoice/InvoiceNotFoundError.php | 2 +- lib/Invoice/InvoicePaymentMethod.php | 2 +- lib/Invoice/InvoiceStatus.php | 2 +- lib/Invoice/NotificationChannel.php | 2 +- lib/Invoice/NotificationPreference.php | 2 +- lib/Invoice/Paylater.php | 2 +- lib/Invoice/PaylaterType.php | 2 +- lib/Invoice/PaymentDetails.php | 2 +- lib/Invoice/QrCode.php | 2 +- lib/Invoice/QrCodeType.php | 2 +- lib/Invoice/RetailOutlet.php | 2 +- lib/Invoice/RetailOutletName.php | 2 +- lib/Invoice/ServerError.php | 2 +- lib/Invoice/UnauthorizedError.php | 2 +- lib/PaymentMethod/PaymentMethodApi.php | 16 ++++++++-------- lib/PaymentRequest/PaymentCallbackData.php | 6 +++--- lib/PaymentRequest/PaymentRequestApi.php | 14 +++++++------- lib/PaymentRequest/QRCodeChannelCode.php | 3 +++ .../VirtualAccountChannelCode.php | 9 +++++++++ lib/Payout/PayoutApi.php | 10 +++++----- lib/Refund/RefundApi.php | 8 ++++---- 56 files changed, 128 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index 5bb0867..b623e4a 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.0.0 +* Package version: 4.1.0 # Getting Started @@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow } ], "require": { - "xendit/xendit-php": "4.0.0" + "xendit/xendit-php": "4.1.0" } } ``` diff --git a/composer.json b/composer.json index 7b6a8a3..a9267c7 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "xendit/xendit-php", - "version": "4.0.0", + "version": "4.1.0", "description": "Xendit PHP SDK", "keywords": [ "openapitools", diff --git a/docs/Invoice/EwalletType.md b/docs/Invoice/EwalletType.md index a7ce4ee..ab965ba 100644 --- a/docs/Invoice/EwalletType.md +++ b/docs/Invoice/EwalletType.md @@ -29,6 +29,16 @@ use Xendit\Invoice\EwalletType; * `JENIUSPAY` (value: `'JENIUSPAY'`) + * `MOMO` (value: `'MOMO'`) + + * `ZALOPAY` (value: `'ZALOPAY'`) + + * `VIETTELPAY` (value: `'VIETTELPAY'`) + + * `VNPTWALLET` (value: `'VNPTWALLET'`) + + * `APPOTA` (value: `'APPOTA'`) + * `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/InvoiceApi.md b/docs/InvoiceApi.md index 154abab..fcf4af5 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -246,7 +246,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### InvoiceCallback Object >Invoice Callback Object -Model Documentation: [InvoiceCallback](/InvoiceCallback.md) +Model Documentation: [InvoiceCallback](Invoice/InvoiceCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```php diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index 916b975..451b052 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -515,7 +515,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### PaymentMethodCallback Object >Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings -Model Documentation: [PaymentMethodCallback](/PaymentMethodCallback.md) +Model Documentation: [PaymentMethodCallback](PaymentMethod/PaymentMethodCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```php diff --git a/docs/PaymentRequest/PaymentCallbackData.md b/docs/PaymentRequest/PaymentCallbackData.md index 9139ea9..1efefb6 100644 --- a/docs/PaymentRequest/PaymentCallbackData.md +++ b/docs/PaymentRequest/PaymentCallbackData.md @@ -20,7 +20,7 @@ use Xendit\PaymentRequest\PaymentCallbackData; | **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | null | | **channel_properties** | [**PaymentRequestChannelProperties**](PaymentRequestChannelProperties.md) | | | null | | **payment_detail** | **object** | | | null | -| **failure_code** | **object** | | | null | +| **failure_code** | **string** | | | null | | **created** | **string** | ☑️ | | null | | **updated** | **string** | ☑️ | | null | | **metadata** | **object** | | | null | diff --git a/docs/PaymentRequest/QRCodeChannelCode.md b/docs/PaymentRequest/QRCodeChannelCode.md index 4fc9d94..ee0cfc2 100644 --- a/docs/PaymentRequest/QRCodeChannelCode.md +++ b/docs/PaymentRequest/QRCodeChannelCode.md @@ -9,6 +9,8 @@ use Xendit\PaymentRequest\QRCodeChannelCode; ## Enum + * `QRIS` (value: `'QRIS'`) + * `DANA` (value: `'DANA'`) * `RCBC` (value: `'RCBC'`) diff --git a/docs/PaymentRequest/VirtualAccountChannelCode.md b/docs/PaymentRequest/VirtualAccountChannelCode.md index ff1ed65..f45cedc 100644 --- a/docs/PaymentRequest/VirtualAccountChannelCode.md +++ b/docs/PaymentRequest/VirtualAccountChannelCode.md @@ -41,6 +41,12 @@ use Xendit\PaymentRequest\VirtualAccountChannelCode; * `AMBANK` (value: `'AMBANK'`) + * `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/PaymentRequestApi.md b/docs/PaymentRequestApi.md index 0967a5d..c54d838 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -537,7 +537,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### PaymentCallback Object >Callback for successful or failed payments made via the Payments API -Model Documentation: [PaymentCallback](/PaymentCallback.md) +Model Documentation: [PaymentCallback](PaymentRequest/PaymentCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```php diff --git a/docs/RefundApi.md b/docs/RefundApi.md index bdb4e3d..12c8b24 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -229,7 +229,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### RefundCallback Object >Callback for successful or failed Refunds made via the Payments API -Model Documentation: [RefundCallback](/RefundCallback.md) +Model Documentation: [RefundCallback](Refund/RefundCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```php diff --git a/lib/BalanceAndTransaction/BalanceApi.php b/lib/BalanceAndTransaction/BalanceApi.php index 18b520c..1e70105 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/TransactionApi.php b/lib/BalanceAndTransaction/TransactionApi.php index 8dc09c6..06a912c 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Configuration.php b/lib/Configuration.php index bceeffc..361e90c 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -64,7 +64,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/4.0.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/4.1.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.0.0' . PHP_EOL; + $report .= ' SDK Package Version: 4.1.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 eba0cef..152a152 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Invoice/AddressObject.php b/lib/Invoice/AddressObject.php index 96479d5..ba28dd7 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/AlternativeDisplayItem.php b/lib/Invoice/AlternativeDisplayItem.php index 77f2b9c..a8783ba 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/BadRequestError.php b/lib/Invoice/BadRequestError.php index 0cf611e..9ddae87 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/Bank.php b/lib/Invoice/Bank.php index fe062fc..aaa5044 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/BankCode.php b/lib/Invoice/BankCode.php index 62ac0af..5fb3c85 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/CreateInvoiceRequest.php b/lib/Invoice/CreateInvoiceRequest.php index 459813a..55c9126 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/CustomerObject.php b/lib/Invoice/CustomerObject.php index 6e11cbc..541b1ab 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/DirectDebit.php b/lib/Invoice/DirectDebit.php index fc73258..16258f5 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/DirectDebitType.php b/lib/Invoice/DirectDebitType.php index 1f173ca..88c4516 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/Ewallet.php b/lib/Invoice/Ewallet.php index a7a4d04..4b52e56 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/EwalletType.php b/lib/Invoice/EwalletType.php index 0b2ee3f..b3e1ef3 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** @@ -57,6 +57,16 @@ class EwalletType public const JENIUSPAY = 'JENIUSPAY'; + public const MOMO = 'MOMO'; + + public const ZALOPAY = 'ZALOPAY'; + + public const VIETTELPAY = 'VIETTELPAY'; + + public const VNPTWALLET = 'VNPTWALLET'; + + public const APPOTA = 'APPOTA'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -97,6 +107,11 @@ public static function getAllowableEnumValues() self::ASTRAPAY, self::NEXCASH, self::JENIUSPAY, + self::MOMO, + self::ZALOPAY, + self::VIETTELPAY, + self::VNPTWALLET, + self::APPOTA, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Invoice/ForbiddenError.php b/lib/Invoice/ForbiddenError.php index 31b44c5..6d7c481 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/Invoice.php b/lib/Invoice/Invoice.php index ffe7d74..4dd61bd 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceApi.php b/lib/Invoice/InvoiceApi.php index 967812e..be4319f 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** @@ -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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Invoice/InvoiceCallback.php b/lib/Invoice/InvoiceCallback.php index d981741..97a6962 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceCallbackItem.php b/lib/Invoice/InvoiceCallbackItem.php index 72af674..c4491bb 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceClientType.php b/lib/Invoice/InvoiceClientType.php index b28d84a..8e88eaf 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceCurrency.php b/lib/Invoice/InvoiceCurrency.php index 839aeef..e5f7f8d 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceError404ResponseDefinition.php b/lib/Invoice/InvoiceError404ResponseDefinition.php index 7f688b9..c8b2f91 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceFee.php b/lib/Invoice/InvoiceFee.php index fac0a11..0c3f1af 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceItem.php b/lib/Invoice/InvoiceItem.php index ff11ca8..81c046f 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceNotFoundError.php b/lib/Invoice/InvoiceNotFoundError.php index aff38b7..b172d13 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoicePaymentMethod.php b/lib/Invoice/InvoicePaymentMethod.php index fcec6ba..98d8b88 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/InvoiceStatus.php b/lib/Invoice/InvoiceStatus.php index fe6238f..b19b449 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/NotificationChannel.php b/lib/Invoice/NotificationChannel.php index 729ea14..5afab25 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/NotificationPreference.php b/lib/Invoice/NotificationPreference.php index a4b0eb2..0392579 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/Paylater.php b/lib/Invoice/Paylater.php index 1b4cd80..552b086 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/PaylaterType.php b/lib/Invoice/PaylaterType.php index bb6371b..0935354 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/PaymentDetails.php b/lib/Invoice/PaymentDetails.php index 23155d4..99efd8a 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/QrCode.php b/lib/Invoice/QrCode.php index 2c8150a..e57ba38 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/QrCodeType.php b/lib/Invoice/QrCodeType.php index 0aec561..1d322f3 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/RetailOutlet.php b/lib/Invoice/RetailOutlet.php index 464eecd..d9fb76c 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/RetailOutletName.php b/lib/Invoice/RetailOutletName.php index 14ac724..cd5fb06 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/ServerError.php b/lib/Invoice/ServerError.php index ae3a4d2..0526860 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/Invoice/UnauthorizedError.php b/lib/Invoice/UnauthorizedError.php index 251fae7..b99ae80 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.5.0 + * The version of the OpenAPI document: 1.6.0 */ /** diff --git a/lib/PaymentMethod/PaymentMethodApi.php b/lib/PaymentMethod/PaymentMethodApi.php index f79cfd2..2c8bc8e 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentRequest/PaymentCallbackData.php b/lib/PaymentRequest/PaymentCallbackData.php index fd2b579..6797d4c 100644 --- a/lib/PaymentRequest/PaymentCallbackData.php +++ b/lib/PaymentRequest/PaymentCallbackData.php @@ -62,7 +62,7 @@ class PaymentCallbackData implements ModelInterface, ArrayAccess, \JsonSerializa 'payment_method' => '\Xendit\PaymentRequest\PaymentMethod', 'channel_properties' => '\Xendit\PaymentRequest\PaymentRequestChannelProperties', 'payment_detail' => 'object', - 'failure_code' => 'object', + 'failure_code' => 'string', 'created' => 'string', 'updated' => 'string', 'metadata' => 'object' @@ -736,7 +736,7 @@ public function setPaymentDetail($payment_detail) /** * Gets failure_code * - * @return object|null + * @return string|null */ public function getFailureCode() { @@ -746,7 +746,7 @@ public function getFailureCode() /** * Sets failure_code * - * @param object|null $failure_code failure_code + * @param string|null $failure_code failure_code * * @return self */ diff --git a/lib/PaymentRequest/PaymentRequestApi.php b/lib/PaymentRequest/PaymentRequestApi.php index a9e264b..583bacb 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentRequest/QRCodeChannelCode.php b/lib/PaymentRequest/QRCodeChannelCode.php index 8dc536b..2c5404c 100644 --- a/lib/PaymentRequest/QRCodeChannelCode.php +++ b/lib/PaymentRequest/QRCodeChannelCode.php @@ -37,6 +37,8 @@ class QRCodeChannelCode * Possible values of this enum */ + public const QRIS = 'QRIS'; + public const DANA = 'DANA'; public const RCBC = 'RCBC'; @@ -75,6 +77,7 @@ public function __toString() { public static function getAllowableEnumValues() { return [ + self::QRIS, self::DANA, self::RCBC, self::LINKAJA, diff --git a/lib/PaymentRequest/VirtualAccountChannelCode.php b/lib/PaymentRequest/VirtualAccountChannelCode.php index c456fcd..4d30625 100644 --- a/lib/PaymentRequest/VirtualAccountChannelCode.php +++ b/lib/PaymentRequest/VirtualAccountChannelCode.php @@ -69,6 +69,12 @@ class VirtualAccountChannelCode public const AMBANK = 'AMBANK'; + public const BNC = 'BNC'; + + public const HANA = 'HANA'; + + public const MUAMALAT = 'MUAMALAT'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -115,6 +121,9 @@ public static function getAllowableEnumValues() self::MSB, self::STANDARD_CHARTERED, self::AMBANK, + self::BNC, + self::HANA, + self::MUAMALAT, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/Payout/PayoutApi.php b/lib/Payout/PayoutApi.php index 84a2450..188d668 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Refund/RefundApi.php b/lib/Refund/RefundApi.php index 010adf2..73002e8 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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.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.0.0'; + $defaultHeaders['xendit-lib-ver'] = '4.1.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent();