Skip to content

Commit

Permalink
Generated Xendit php SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Dec 11, 2023
1 parent 0a9e7a5 commit 9c59835
Show file tree
Hide file tree
Showing 56 changed files with 128 additions and 83 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xendit/xendit-php",
"version": "4.0.0",
"version": "4.1.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
10 changes: 10 additions & 0 deletions docs/Invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/InvoiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentMethodApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentRequest/PaymentCallbackData.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions docs/PaymentRequest/QRCodeChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use Xendit\PaymentRequest\QRCodeChannelCode;
## Enum


* `QRIS` (value: `'QRIS'`)

* `DANA` (value: `'DANA'`)

* `RCBC` (value: `'RCBC'`)
Expand Down
6 changes: 6 additions & 0 deletions docs/PaymentRequest/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentRequestApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/RefundApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/BalanceAndTransaction/BalanceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/BalanceAndTransaction/TransactionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions lib/Customer/CustomerApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/AddressObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/AlternativeDisplayItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/BadRequestError.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/BankCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/CreateInvoiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/CustomerObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/DirectDebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/DirectDebitType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Ewallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
17 changes: 16 additions & 1 deletion lib/Invoice/EwalletType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
];
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/ForbiddenError.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
10 changes: 5 additions & 5 deletions lib/Invoice/InvoiceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/InvoiceCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/InvoiceCallbackItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
Loading

0 comments on commit 9c59835

Please sign in to comment.