Skip to content

Commit a655165

Browse files
author
xendit-devx-bot
committed
Generated Xendit php SDK
1 parent 8774267 commit a655165

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1223
-122
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API
66
in applications written in PHP.
77

8-
* Package version: 4.2.0
8+
* Package version: 4.3.0
99

1010
# Getting Started
1111

@@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow
2828
}
2929
],
3030
"require": {
31-
"xendit/xendit-php": "4.2.0"
31+
"xendit/xendit-php": "4.3.0"
3232
}
3333
}
3434
```

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xendit/xendit-php",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"description": "Xendit PHP SDK",
55
"keywords": [
66
"openapitools",

docs/Invoice/BankCode.md

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ use Xendit\Invoice\BankCode;
2929

3030
* `BNC` (value: `'BNC'`)
3131

32+
* `HANA` (value: `'HANA'`)
33+
34+
* `MUAMALAT` (value: `'MUAMALAT'`)
35+
3236
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
3337

3438
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.

docs/Invoice/ChannelProperties.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# # ChannelProperties
2+
An object representing channel-specific properties.
3+
4+
```php
5+
use Xendit\Invoice\ChannelProperties;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **cards** | [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | null |
13+
14+
15+
[[Back to README]](../../README.md)
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# # ChannelPropertiesCards
2+
An object representing properties specific for credit card payment method.
3+
4+
```php
5+
use Xendit\Invoice\ChannelPropertiesCards;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **allowed_bins** | **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | null |
13+
14+
15+
[[Back to README]](../../README.md)

docs/Invoice/CreateInvoiceRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use Xendit\Invoice\CreateInvoiceRequest;
2929
| **reminder_time_unit** | **string** | | The unit of the reminder time. | null |
3030
| **items** | [**array**](InvoiceItem.md) | | An array of items included in the invoice. | null |
3131
| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null |
32+
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |
3233

3334

3435
[[Back to README]](../../README.md)

docs/Invoice/DirectDebitType.md

+78
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,84 @@ use Xendit\Invoice\DirectDebitType;
4747

4848
* `DC_CHINABANK` (value: `'DC_CHINABANK'`)
4949

50+
* `DD_PUBLIC_FPX` (value: `'DD_PUBLIC_FPX'`)
51+
52+
* `DD_AMBANK_FPX` (value: `'DD_AMBANK_FPX'`)
53+
54+
* `DD_KFH_FPX` (value: `'DD_KFH_FPX'`)
55+
56+
* `DD_AGRO_FPX` (value: `'DD_AGRO_FPX'`)
57+
58+
* `DD_AFFIN_FPX` (value: `'DD_AFFIN_FPX'`)
59+
60+
* `DD_ALLIANCE_FPX` (value: `'DD_ALLIANCE_FPX'`)
61+
62+
* `DD_MUAMALAT_FPX` (value: `'DD_MUAMALAT_FPX'`)
63+
64+
* `DD_HLB_FPX` (value: `'DD_HLB_FPX'`)
65+
66+
* `DD_ISLAM_FPX` (value: `'DD_ISLAM_FPX'`)
67+
68+
* `DD_RAKYAT_FPX` (value: `'DD_RAKYAT_FPX'`)
69+
70+
* `DD_CIMB_FPX` (value: `'DD_CIMB_FPX'`)
71+
72+
* `DD_UOB_FPX` (value: `'DD_UOB_FPX'`)
73+
74+
* `DD_BOC_FPX` (value: `'DD_BOC_FPX'`)
75+
76+
* `DD_BSN_FPX` (value: `'DD_BSN_FPX'`)
77+
78+
* `DD_OCBC_FPX` (value: `'DD_OCBC_FPX'`)
79+
80+
* `DD_HSBC_FPX` (value: `'DD_HSBC_FPX'`)
81+
82+
* `DD_SCH_FPX` (value: `'DD_SCH_FPX'`)
83+
84+
* `DD_MAYB2_U_FPX` (value: `'DD_MAYB2U_FPX'`)
85+
86+
* `DD_RHB_FPX` (value: `'DD_RHB_FPX'`)
87+
88+
* `DD_UOB_FPX_BUSINESS` (value: `'DD_UOB_FPX_BUSINESS'`)
89+
90+
* `DD_AGRO_FPX_BUSINESS` (value: `'DD_AGRO_FPX_BUSINESS'`)
91+
92+
* `DD_ALLIANCE_FPX_BUSINESS` (value: `'DD_ALLIANCE_FPX_BUSINESS'`)
93+
94+
* `DD_AMBANK_FPX_BUSINESS` (value: `'DD_AMBANK_FPX_BUSINESS'`)
95+
96+
* `DD_ISLAM_FPX_BUSINESS` (value: `'DD_ISLAM_FPX_BUSINESS'`)
97+
98+
* `DD_MUAMALAT_FPX_BUSINESS` (value: `'DD_MUAMALAT_FPX_BUSINESS'`)
99+
100+
* `DD_HLB_FPX_BUSINESS` (value: `'DD_HLB_FPX_BUSINESS'`)
101+
102+
* `DD_HSBC_FPX_BUSINESS` (value: `'DD_HSBC_FPX_BUSINESS'`)
103+
104+
* `DD_RAKYAT_FPX_BUSINESS` (value: `'DD_RAKYAT_FPX_BUSINESS'`)
105+
106+
* `DD_KFH_FPX_BUSINESS` (value: `'DD_KFH_FPX_BUSINESS'`)
107+
108+
* `DD_OCBC_FPX_BUSINESS` (value: `'DD_OCBC_FPX_BUSINESS'`)
109+
110+
* `DD_PUBLIC_FPX_BUSINESS` (value: `'DD_PUBLIC_FPX_BUSINESS'`)
111+
112+
* `DD_RHB_FPX_BUSINESS` (value: `'DD_RHB_FPX_BUSINESS'`)
113+
114+
* `DD_SCH_FPX_BUSINESS` (value: `'DD_SCH_FPX_BUSINESS'`)
115+
116+
* `DD_CITIBANK_FPX_BUSINESS` (value: `'DD_CITIBANK_FPX_BUSINESS'`)
117+
118+
* `DD_BNP_FPX_BUSINESS` (value: `'DD_BNP_FPX_BUSINESS'`)
119+
120+
* `DD_DEUTSCHE_FPX_BUSINESS` (value: `'DD_DEUTSCHE_FPX_BUSINESS'`)
121+
122+
* `DD_MAYB2_E_FPX_BUSINESS` (value: `'DD_MAYB2E_FPX_BUSINESS'`)
123+
124+
* `DD_CIMB_FPX_BUSINESS` (value: `'DD_CIMB_FPX_BUSINESS'`)
125+
126+
* `DD_AFFIN_FPX_BUSINESS` (value: `'DD_AFFIN_FPX_BUSINESS'`)
127+
50128
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
51129

52130
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.

docs/Invoice/EwalletType.md

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ use Xendit\Invoice\EwalletType;
3939

4040
* `APPOTA` (value: `'APPOTA'`)
4141

42+
* `LINEPAY` (value: `'LINEPAY'`)
43+
44+
* `TRUEMONEY` (value: `'TRUEMONEY'`)
45+
46+
* `WECHATPAY` (value: `'WECHATPAY'`)
47+
48+
* `TOUCHNGO` (value: `'TOUCHNGO'`)
49+
4250
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
4351

4452
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.

docs/Invoice/Invoice.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ use Xendit\Invoice\Invoice;
4242
| **customer** | [**CustomerObject**](CustomerObject.md) | | | null |
4343
| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null |
4444
| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null |
45+
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |
4546

4647

4748
[[Back to README]](../../README.md)

docs/Invoice/InvoicePaymentMethod.md

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ use Xendit\Invoice\InvoicePaymentMethod;
2929

3030
* `PAYLATER` (value: `'PAYLATER'`)
3131

32+
* `CRYPTOCURRENCY` (value: `'CRYPTOCURRENCY'`)
33+
3234
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
3335

3436
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.

docs/Invoice/NotificationPreference.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use Xendit\Invoice\NotificationPreference;
1111
|------------|:-------------:|:-------------:|-------------|:-------------:|
1212
| **invoice_created** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is created. | null |
1313
| **invoice_reminder** | [**array**](NotificationChannel.md) | | Notification channels for invoice reminders. | null |
14-
| **invoice_expired** | [**array**](NotificationChannel.md) | | Notification channels for expired invoices. | null |
1514
| **invoice_paid** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | null |
1615

1716

lib/BalanceAndTransaction/BalanceApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $for
367367

368368
// Xendit's custom headers
369369
$defaultHeaders['xendit-lib'] = 'php';
370-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
370+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
371371

372372
if ($this->config->getUserAgent()) {
373373
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();

lib/BalanceAndTransaction/TransactionApi.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function getTransactionByIDRequest($id, $for_user_id = null, string $cont
363363

364364
// Xendit's custom headers
365365
$defaultHeaders['xendit-lib'] = 'php';
366-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
366+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
367367

368368
if ($this->config->getUserAgent()) {
369369
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
@@ -806,7 +806,7 @@ public function getAllTransactionsRequest($for_user_id = null, $types = null, $s
806806

807807
// Xendit's custom headers
808808
$defaultHeaders['xendit-lib'] = 'php';
809-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
809+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
810810

811811
if ($this->config->getUserAgent()) {
812812
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();

lib/Configuration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Configuration
6464
*
6565
* @var string
6666
*/
67-
protected $userAgent = 'OpenAPI-Generator/4.2.0/PHP';
67+
protected $userAgent = 'OpenAPI-Generator/4.3.0/PHP';
6868

6969
/**
7070
* Debug switch (default set to false)
@@ -305,7 +305,7 @@ public static function toDebugReport()
305305
$report .= ' OS: ' . php_uname() . PHP_EOL;
306306
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
307307
$report .= ' The version of the OpenAPI document: 1.45.2' . PHP_EOL;
308-
$report .= ' SDK Package Version: 4.2.0' . PHP_EOL;
308+
$report .= ' SDK Package Version: 4.3.0' . PHP_EOL;
309309
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
310310

311311
return $report;

lib/Customer/CustomerApi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function createCustomerRequest($idempotency_key = null, $for_user_id = nu
369369

370370
// Xendit's custom headers
371371
$defaultHeaders['xendit-lib'] = 'php';
372-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
372+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
373373

374374
if ($this->config->getUserAgent()) {
375375
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
@@ -628,7 +628,7 @@ public function getCustomerRequest($id, $for_user_id = null, string $contentType
628628

629629
// Xendit's custom headers
630630
$defaultHeaders['xendit-lib'] = 'php';
631-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
631+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
632632

633633
if ($this->config->getUserAgent()) {
634634
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
@@ -891,7 +891,7 @@ public function getCustomerByReferenceIDRequest($reference_id, $for_user_id = nu
891891

892892
// Xendit's custom headers
893893
$defaultHeaders['xendit-lib'] = 'php';
894-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
894+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
895895

896896
if ($this->config->getUserAgent()) {
897897
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
@@ -1163,7 +1163,7 @@ public function updateCustomerRequest($id, $for_user_id = null, $patch_customer
11631163

11641164
// Xendit's custom headers
11651165
$defaultHeaders['xendit-lib'] = 'php';
1166-
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
1166+
$defaultHeaders['xendit-lib-ver'] = '4.3.0';
11671167

11681168
if ($this->config->getUserAgent()) {
11691169
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();

lib/Invoice/AddressObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* xendit-invoice-service
1313
*
14-
* The version of the OpenAPI document: 1.6.0
14+
* The version of the OpenAPI document: 1.7.6
1515
*/
1616

1717
/**

lib/Invoice/AlternativeDisplayItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* xendit-invoice-service
1313
*
14-
* The version of the OpenAPI document: 1.6.0
14+
* The version of the OpenAPI document: 1.7.6
1515
*/
1616

1717
/**

lib/Invoice/BadRequestError.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* xendit-invoice-service
1313
*
14-
* The version of the OpenAPI document: 1.6.0
14+
* The version of the OpenAPI document: 1.7.6
1515
*/
1616

1717
/**

lib/Invoice/Bank.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* xendit-invoice-service
1313
*
14-
* The version of the OpenAPI document: 1.6.0
14+
* The version of the OpenAPI document: 1.7.6
1515
*/
1616

1717
/**

lib/Invoice/BankCode.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* xendit-invoice-service
1313
*
14-
* The version of the OpenAPI document: 1.6.0
14+
* The version of the OpenAPI document: 1.7.6
1515
*/
1616

1717
/**
@@ -57,6 +57,10 @@ class BankCode
5757

5858
public const BNC = 'BNC';
5959

60+
public const HANA = 'HANA';
61+
62+
public const MUAMALAT = 'MUAMALAT';
63+
6064
public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE';
6165

6266
private $value;
@@ -97,6 +101,8 @@ public static function getAllowableEnumValues()
97101
self::SAHABAT_SAMPOERNA,
98102
self::CIMB,
99103
self::BNC,
104+
self::HANA,
105+
self::MUAMALAT,
100106
self::XENDIT_ENUM_DEFAULT_FALLBACK
101107
];
102108
}

0 commit comments

Comments
 (0)