Skip to content

Commit 05c6875

Browse files
author
xendit-devx-bot
committed
Generated Xendit php SDK
1 parent 315f641 commit 05c6875

File tree

161 files changed

+1906
-279
lines changed

Some content is hidden

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

161 files changed

+1906
-279
lines changed

.openapi-generator/FILES

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ docs/PaymentRequest/Card.md
1212
docs/PaymentRequest/CardChannelCode.md
1313
docs/PaymentRequest/CardChannelProperties.md
1414
docs/PaymentRequest/CardInformation.md
15+
docs/PaymentRequest/CardInstallmentConfiguration.md
1516
docs/PaymentRequest/CardParameters.md
1617
docs/PaymentRequest/CardVerificationResults.md
1718
docs/PaymentRequest/CardVerificationResultsThreeDSecure.md
@@ -86,6 +87,7 @@ lib/PaymentRequest/Card.php
8687
lib/PaymentRequest/CardChannelCode.php
8788
lib/PaymentRequest/CardChannelProperties.php
8889
lib/PaymentRequest/CardInformation.php
90+
lib/PaymentRequest/CardInstallmentConfiguration.php
8991
lib/PaymentRequest/CardParameters.php
9092
lib/PaymentRequest/CardVerificationResults.php
9193
lib/PaymentRequest/CardVerificationResultsThreeDSecure.php
@@ -157,6 +159,7 @@ test/Model/PaymentRequest/CaptureTest.php
157159
test/Model/PaymentRequest/CardChannelCodeTest.php
158160
test/Model/PaymentRequest/CardChannelPropertiesTest.php
159161
test/Model/PaymentRequest/CardInformationTest.php
162+
test/Model/PaymentRequest/CardInstallmentConfigurationTest.php
160163
test/Model/PaymentRequest/CardParametersTest.php
161164
test/Model/PaymentRequest/CardTest.php
162165
test/Model/PaymentRequest/CardVerificationResultsTest.php

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: 5.0.0
8+
* Package version: 6.0.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": "5.0.0"
31+
"xendit/xendit-php": "6.0.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": "5.0.0",
3+
"version": "6.0.0",
44
"description": "Xendit PHP SDK",
55
"keywords": [
66
"openapitools",

docs/PaymentMethod/CardChannelCode.md

+12
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ use Xendit\PaymentMethod\CardChannelCode;
99
## Enum
1010

1111

12+
* `BAY_CARD_INSTALLMENT` (value: `'BAY_CARD_INSTALLMENT'`)
13+
14+
* `BBL_CARD_INSTALLMENT` (value: `'BBL_CARD_INSTALLMENT'`)
15+
1216
* `GPN` (value: `'GPN'`)
1317

18+
* `KBANK_CARD_INSTALLMENT` (value: `'KBANK_CARD_INSTALLMENT'`)
19+
20+
* `KTB_CARD_INSTALLMENT` (value: `'KTB_CARD_INSTALLMENT'`)
21+
22+
* `SCB_CARD_INSTALLMENT` (value: `'SCB_CARD_INSTALLMENT'`)
23+
24+
* `TTB_CARD_INSTALLMENT` (value: `'TTB_CARD_INSTALLMENT'`)
25+
1426
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
1527

1628
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/PaymentMethod/CardChannelProperties.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ use Xendit\PaymentMethod\CardChannelProperties;
1414
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1515
| **cardonfile_type** | **string** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING |
1616
| **expires_at** | **\DateTime** | | | null |
17+
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | null |
18+
| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | label123 |
1719

1820

1921
[[Back to README]](../../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# # CardInstallmentConfiguration
2+
Card Installment Configuration
3+
4+
```php
5+
use Xendit\PaymentMethod\CardInstallmentConfiguration;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **terms** | **int** | | | null |
13+
| **interval** | **string** | | | MONTH |
14+
| **code** | **string** | | | 123 |
15+
16+
17+
[[Back to README]](../../README.md)

docs/PaymentMethod/DirectDebitChannelCode.md

+56-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;
1717

1818
* `BPI` (value: `'BPI'`)
1919

20-
* `AUTODEBIT_BPI` (value: `'AUTODEBIT_BPI'`)
21-
2220
* `BPI_RECURRING` (value: `'BPI_RECURRING'`)
2321

2422
* `BRI` (value: `'BRI'`)
2523

26-
* `BNI` (value: `'BNI'`)
24+
* `BNI_AUTOPAY` (value: `'BNI_AUTOPAY'`)
2725

2826
* `CHINABANK` (value: `'CHINABANK'`)
2927

@@ -57,7 +55,7 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;
5755

5856
* `BDO_EPAY` (value: `'BDO_EPAY'`)
5957

60-
* `AUTODEBIT_UBP` (value: `'AUTODEBIT_UBP'`)
58+
* `UBP_EADA` (value: `'UBP_EADA'`)
6159

6260
* `UBP_DEBIT_PULL` (value: `'UBP_DEBIT_PULL'`)
6361

@@ -141,6 +139,60 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;
141139

142140
* `UOB_FPX_BUSINESS` (value: `'UOB_FPX_BUSINESS'`)
143141

142+
* `BDO_ONLINE_BANKING` (value: `'BDO_ONLINE_BANKING'`)
143+
144+
* `BPI_ONLINE_BANKING` (value: `'BPI_ONLINE_BANKING'`)
145+
146+
* `UNIONBANK_ONLINE_BANKING` (value: `'UNIONBANK_ONLINE_BANKING'`)
147+
148+
* `BOC_ONLINE_BANKING` (value: `'BOC_ONLINE_BANKING'`)
149+
150+
* `CHINABANK_ONLINE_BANKING` (value: `'CHINABANK_ONLINE_BANKING'`)
151+
152+
* `INSTAPAY_ONLINE_BANKING` (value: `'INSTAPAY_ONLINE_BANKING'`)
153+
154+
* `LANDBANK_ONLINE_BANKING` (value: `'LANDBANK_ONLINE_BANKING'`)
155+
156+
* `MAYBANK_ONLINE_BANKING` (value: `'MAYBANK_ONLINE_BANKING'`)
157+
158+
* `METROBANK_ONLINE_BANKING` (value: `'METROBANK_ONLINE_BANKING'`)
159+
160+
* `PNB_ONLINE_BANKING` (value: `'PNB_ONLINE_BANKING'`)
161+
162+
* `PSBANK_ONLINE_BANKING` (value: `'PSBANK_ONLINE_BANKING'`)
163+
164+
* `PESONET_ONLINE_BANKING` (value: `'PESONET_ONLINE_BANKING'`)
165+
166+
* `RCBC_ONLINE_BANKING` (value: `'RCBC_ONLINE_BANKING'`)
167+
168+
* `ROBINSONS_BANK_ONLINE_BANKING` (value: `'ROBINSONS_BANK_ONLINE_BANKING'`)
169+
170+
* `SECURITY_BANK_ONLINE_BANKING` (value: `'SECURITY_BANK_ONLINE_BANKING'`)
171+
172+
* `AUTODEBIT_UBP` (value: `'AUTODEBIT_UBP'`)
173+
174+
* `AUTODEBIT_BPI` (value: `'AUTODEBIT_BPI'`)
175+
176+
* `GBW_BBL_MOBILE_BANKING` (value: `'GBW_BBL_MOBILE_BANKING'`)
177+
178+
* `GBW_KBANK_MOBILE_BANKING` (value: `'GBW_KBANK_MOBILE_BANKING'`)
179+
180+
* `GBW_KTB_MOBILE_BANKING` (value: `'GBW_KTB_MOBILE_BANKING'`)
181+
182+
* `GBW_SCB_MOBILE_BANKING` (value: `'GBW_SCB_MOBILE_BANKING'`)
183+
184+
* `GBW_BAY_MOBILE_BANKING` (value: `'GBW_BAY_MOBILE_BANKING'`)
185+
186+
* `GBW_BBL` (value: `'GBW_BBL'`)
187+
188+
* `GBW_KBANK` (value: `'GBW_KBANK'`)
189+
190+
* `GBW_KTB` (value: `'GBW_KTB'`)
191+
192+
* `GBW_SCB` (value: `'GBW_SCB'`)
193+
194+
* `GBW_BAY` (value: `'GBW_BAY'`)
195+
144196
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
145197

146198
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/PaymentMethod/DirectDebitChannelProperties.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use Xendit\PaymentMethod\DirectDebitChannelProperties;
1818
| **identity_document_number** | **string** | | Identity number of the customer registered to the partner channel | 1234567891113 |
1919
| **require_auth** | **bool** | | | null |
2020
| **account_number** | **string** | | Account number of the customer | 1234567891113 |
21+
| **destination_account_id** | **string** | | Destination Account ID for BaaS topups | 12341234 |
2122

2223

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

docs/PaymentMethod/EWalletChannelProperties.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ use Xendit\PaymentMethod\EWalletChannelProperties;
1111
|------------|:-------------:|:-------------:|-------------|:-------------:|
1212
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1313
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
14-
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1514
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
15+
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1616
| **mobile_number** | **string** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | +628123123123 |
1717
| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE |
1818
| **cashtag** | **string** | | Available for JENIUSPAY only | $abc1234 |
19+
| **promotion_label** | **string** | | Available only for OVO | ABC123 |
1920

2021

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

docs/PaymentMethod/QRCodeChannelCode.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ use Xendit\PaymentMethod\QRCodeChannelCode;
2121

2222
* `XENDIT` (value: `'XENDIT'`)
2323

24+
* `QRPH` (value: `'QRPH'`)
25+
2426
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
2527

2628
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/PaymentMethod/VirtualAccountChannelCode.md

+10
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,26 @@ use Xendit\PaymentMethod\VirtualAccountChannelCode;
3737

3838
* `MSB` (value: `'MSB'`)
3939

40+
* `VPB` (value: `'VPB'`)
41+
42+
* `BIDV` (value: `'BIDV'`)
43+
44+
* `CAKE` (value: `'CAKE'`)
45+
4046
* `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`)
4147

4248
* `AMBANK` (value: `'AMBANK'`)
4349

50+
* `UOB` (value: `'UOB'`)
51+
4452
* `BNC` (value: `'BNC'`)
4553

4654
* `HANA` (value: `'HANA'`)
4755

4856
* `MUAMALAT` (value: `'MUAMALAT'`)
4957

58+
* `BANK_TRANSFER` (value: `'BANK_TRANSFER'`)
59+
5060
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
5161

5262
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/PaymentRequest/CardChannelCode.md

+12
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ use Xendit\PaymentRequest\CardChannelCode;
99
## Enum
1010

1111

12+
* `BAY_CARD_INSTALLMENT` (value: `'BAY_CARD_INSTALLMENT'`)
13+
14+
* `BBL_CARD_INSTALLMENT` (value: `'BBL_CARD_INSTALLMENT'`)
15+
1216
* `GPN` (value: `'GPN'`)
1317

18+
* `KBANK_CARD_INSTALLMENT` (value: `'KBANK_CARD_INSTALLMENT'`)
19+
20+
* `KTB_CARD_INSTALLMENT` (value: `'KTB_CARD_INSTALLMENT'`)
21+
22+
* `SCB_CARD_INSTALLMENT` (value: `'SCB_CARD_INSTALLMENT'`)
23+
24+
* `TTB_CARD_INSTALLMENT` (value: `'TTB_CARD_INSTALLMENT'`)
25+
1426
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
1527

1628
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/PaymentRequest/CardChannelProperties.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ use Xendit\PaymentRequest\CardChannelProperties;
1515
| **cardonfile_type** | **string** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING |
1616
| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null |
1717
| **expires_at** | **\DateTime** | | | null |
18+
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | null |
19+
| **skip_authorization** | **bool** | | To indicate whether to skip the authorization phase | false |
1820

1921

2022
[[Back to README]](../../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# # CardInstallmentConfiguration
2+
Card Installment Configuration
3+
4+
```php
5+
use Xendit\PaymentRequest\CardInstallmentConfiguration;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **terms** | **int** | | | null |
13+
| **interval** | **string** | | | MONTH |
14+
| **code** | **string** | | | 123 |
15+
16+
17+
[[Back to README]](../../README.md)

docs/PaymentRequest/DirectDebitChannelCode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use Xendit\PaymentRequest\DirectDebitChannelCode;
1515

1616
* `BRI` (value: `'BRI'`)
1717

18-
* `BNI` (value: `'BNI'`)
18+
* `BNI_AUTOPAY` (value: `'BNI_AUTOPAY'`)
1919

2020
* `MANDIRI` (value: `'MANDIRI'`)
2121

docs/PaymentRequest/PaymentRequestChannelProperties.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use Xendit\PaymentRequest\PaymentRequestChannelProperties;
1212
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1313
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1414
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
15+
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1516
| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE |
1617
| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false |
1718
| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null |

docs/PaymentRequest/PaymentRequestParametersChannelProperties.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use Xendit\PaymentRequest\PaymentRequestParametersChannelProperties;
1212
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1313
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1414
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
15+
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
1516
| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE |
1617
| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false |
1718
| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null |

docs/PaymentRequest/VirtualAccountChannelCode.md

+6
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ use Xendit\PaymentRequest\VirtualAccountChannelCode;
3737

3838
* `MSB` (value: `'MSB'`)
3939

40+
* `VPB` (value: `'VPB'`)
41+
42+
* `BIDV` (value: `'BIDV'`)
43+
4044
* `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`)
4145

4246
* `AMBANK` (value: `'AMBANK'`)
4347

48+
* `UOB` (value: `'UOB'`)
49+
4450
* `BNC` (value: `'BNC'`)
4551

4652
* `HANA` (value: `'HANA'`)

0 commit comments

Comments
 (0)