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 Aug 1, 2024
1 parent 315f641 commit 05c6875
Show file tree
Hide file tree
Showing 161 changed files with 1,906 additions and 279 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ docs/PaymentRequest/Card.md
docs/PaymentRequest/CardChannelCode.md
docs/PaymentRequest/CardChannelProperties.md
docs/PaymentRequest/CardInformation.md
docs/PaymentRequest/CardInstallmentConfiguration.md
docs/PaymentRequest/CardParameters.md
docs/PaymentRequest/CardVerificationResults.md
docs/PaymentRequest/CardVerificationResultsThreeDSecure.md
Expand Down Expand Up @@ -86,6 +87,7 @@ lib/PaymentRequest/Card.php
lib/PaymentRequest/CardChannelCode.php
lib/PaymentRequest/CardChannelProperties.php
lib/PaymentRequest/CardInformation.php
lib/PaymentRequest/CardInstallmentConfiguration.php
lib/PaymentRequest/CardParameters.php
lib/PaymentRequest/CardVerificationResults.php
lib/PaymentRequest/CardVerificationResultsThreeDSecure.php
Expand Down Expand Up @@ -157,6 +159,7 @@ test/Model/PaymentRequest/CaptureTest.php
test/Model/PaymentRequest/CardChannelCodeTest.php
test/Model/PaymentRequest/CardChannelPropertiesTest.php
test/Model/PaymentRequest/CardInformationTest.php
test/Model/PaymentRequest/CardInstallmentConfigurationTest.php
test/Model/PaymentRequest/CardParametersTest.php
test/Model/PaymentRequest/CardTest.php
test/Model/PaymentRequest/CardVerificationResultsTest.php
Expand Down
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: 5.0.0
* Package version: 6.0.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": "5.0.0"
"xendit/xendit-php": "6.0.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": "5.0.0",
"version": "6.0.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
12 changes: 12 additions & 0 deletions docs/PaymentMethod/CardChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ use Xendit\PaymentMethod\CardChannelCode;
## Enum


* `BAY_CARD_INSTALLMENT` (value: `'BAY_CARD_INSTALLMENT'`)

* `BBL_CARD_INSTALLMENT` (value: `'BBL_CARD_INSTALLMENT'`)

* `GPN` (value: `'GPN'`)

* `KBANK_CARD_INSTALLMENT` (value: `'KBANK_CARD_INSTALLMENT'`)

* `KTB_CARD_INSTALLMENT` (value: `'KTB_CARD_INSTALLMENT'`)

* `SCB_CARD_INSTALLMENT` (value: `'SCB_CARD_INSTALLMENT'`)

* `TTB_CARD_INSTALLMENT` (value: `'TTB_CARD_INSTALLMENT'`)

* `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: 2 additions & 0 deletions docs/PaymentMethod/CardChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use Xendit\PaymentMethod\CardChannelProperties;
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **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 |
| **expires_at** | **\DateTime** | | | null |
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | null |
| **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 |


[[Back to README]](../../README.md)
17 changes: 17 additions & 0 deletions docs/PaymentMethod/CardInstallmentConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# # CardInstallmentConfiguration
Card Installment Configuration

```php
use Xendit\PaymentMethod\CardInstallmentConfiguration;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **terms** | **int** | | | null |
| **interval** | **string** | | | MONTH |
| **code** | **string** | | | 123 |


[[Back to README]](../../README.md)
60 changes: 56 additions & 4 deletions docs/PaymentMethod/DirectDebitChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;

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

* `AUTODEBIT_BPI` (value: `'AUTODEBIT_BPI'`)

* `BPI_RECURRING` (value: `'BPI_RECURRING'`)

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

* `BNI` (value: `'BNI'`)
* `BNI_AUTOPAY` (value: `'BNI_AUTOPAY'`)

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

Expand Down Expand Up @@ -57,7 +55,7 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;

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

* `AUTODEBIT_UBP` (value: `'AUTODEBIT_UBP'`)
* `UBP_EADA` (value: `'UBP_EADA'`)

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

Expand Down Expand Up @@ -141,6 +139,60 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;

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

* `BDO_ONLINE_BANKING` (value: `'BDO_ONLINE_BANKING'`)

* `BPI_ONLINE_BANKING` (value: `'BPI_ONLINE_BANKING'`)

* `UNIONBANK_ONLINE_BANKING` (value: `'UNIONBANK_ONLINE_BANKING'`)

* `BOC_ONLINE_BANKING` (value: `'BOC_ONLINE_BANKING'`)

* `CHINABANK_ONLINE_BANKING` (value: `'CHINABANK_ONLINE_BANKING'`)

* `INSTAPAY_ONLINE_BANKING` (value: `'INSTAPAY_ONLINE_BANKING'`)

* `LANDBANK_ONLINE_BANKING` (value: `'LANDBANK_ONLINE_BANKING'`)

* `MAYBANK_ONLINE_BANKING` (value: `'MAYBANK_ONLINE_BANKING'`)

* `METROBANK_ONLINE_BANKING` (value: `'METROBANK_ONLINE_BANKING'`)

* `PNB_ONLINE_BANKING` (value: `'PNB_ONLINE_BANKING'`)

* `PSBANK_ONLINE_BANKING` (value: `'PSBANK_ONLINE_BANKING'`)

* `PESONET_ONLINE_BANKING` (value: `'PESONET_ONLINE_BANKING'`)

* `RCBC_ONLINE_BANKING` (value: `'RCBC_ONLINE_BANKING'`)

* `ROBINSONS_BANK_ONLINE_BANKING` (value: `'ROBINSONS_BANK_ONLINE_BANKING'`)

* `SECURITY_BANK_ONLINE_BANKING` (value: `'SECURITY_BANK_ONLINE_BANKING'`)

* `AUTODEBIT_UBP` (value: `'AUTODEBIT_UBP'`)

* `AUTODEBIT_BPI` (value: `'AUTODEBIT_BPI'`)

* `GBW_BBL_MOBILE_BANKING` (value: `'GBW_BBL_MOBILE_BANKING'`)

* `GBW_KBANK_MOBILE_BANKING` (value: `'GBW_KBANK_MOBILE_BANKING'`)

* `GBW_KTB_MOBILE_BANKING` (value: `'GBW_KTB_MOBILE_BANKING'`)

* `GBW_SCB_MOBILE_BANKING` (value: `'GBW_SCB_MOBILE_BANKING'`)

* `GBW_BAY_MOBILE_BANKING` (value: `'GBW_BAY_MOBILE_BANKING'`)

* `GBW_BBL` (value: `'GBW_BBL'`)

* `GBW_KBANK` (value: `'GBW_KBANK'`)

* `GBW_KTB` (value: `'GBW_KTB'`)

* `GBW_SCB` (value: `'GBW_SCB'`)

* `GBW_BAY` (value: `'GBW_BAY'`)

* `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
1 change: 1 addition & 0 deletions docs/PaymentMethod/DirectDebitChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use Xendit\PaymentMethod\DirectDebitChannelProperties;
| **identity_document_number** | **string** | | Identity number of the customer registered to the partner channel | 1234567891113 |
| **require_auth** | **bool** | | | null |
| **account_number** | **string** | | Account number of the customer | 1234567891113 |
| **destination_account_id** | **string** | | Destination Account ID for BaaS topups | 12341234 |


[[Back to README]](../../README.md)
3 changes: 2 additions & 1 deletion docs/PaymentMethod/EWalletChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ use Xendit\PaymentMethod\EWalletChannelProperties;
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **mobile_number** | **string** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | +628123123123 |
| **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 |
| **cashtag** | **string** | | Available for JENIUSPAY only | $abc1234 |
| **promotion_label** | **string** | | Available only for OVO | ABC123 |


[[Back to README]](../../README.md)
2 changes: 2 additions & 0 deletions docs/PaymentMethod/QRCodeChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ use Xendit\PaymentMethod\QRCodeChannelCode;

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

* `QRPH` (value: `'QRPH'`)

* `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
10 changes: 10 additions & 0 deletions docs/PaymentMethod/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,26 @@ use Xendit\PaymentMethod\VirtualAccountChannelCode;

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

* `VPB` (value: `'VPB'`)

* `BIDV` (value: `'BIDV'`)

* `CAKE` (value: `'CAKE'`)

* `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`)

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

* `UOB` (value: `'UOB'`)

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

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

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

* `BANK_TRANSFER` (value: `'BANK_TRANSFER'`)

* `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
12 changes: 12 additions & 0 deletions docs/PaymentRequest/CardChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ use Xendit\PaymentRequest\CardChannelCode;
## Enum


* `BAY_CARD_INSTALLMENT` (value: `'BAY_CARD_INSTALLMENT'`)

* `BBL_CARD_INSTALLMENT` (value: `'BBL_CARD_INSTALLMENT'`)

* `GPN` (value: `'GPN'`)

* `KBANK_CARD_INSTALLMENT` (value: `'KBANK_CARD_INSTALLMENT'`)

* `KTB_CARD_INSTALLMENT` (value: `'KTB_CARD_INSTALLMENT'`)

* `SCB_CARD_INSTALLMENT` (value: `'SCB_CARD_INSTALLMENT'`)

* `TTB_CARD_INSTALLMENT` (value: `'TTB_CARD_INSTALLMENT'`)

* `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: 2 additions & 0 deletions docs/PaymentRequest/CardChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ use Xendit\PaymentRequest\CardChannelProperties;
| **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 |
| **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 |
| **expires_at** | **\DateTime** | | | null |
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | null |
| **skip_authorization** | **bool** | | To indicate whether to skip the authorization phase | false |


[[Back to README]](../../README.md)
17 changes: 17 additions & 0 deletions docs/PaymentRequest/CardInstallmentConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# # CardInstallmentConfiguration
Card Installment Configuration

```php
use Xendit\PaymentRequest\CardInstallmentConfiguration;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **terms** | **int** | | | null |
| **interval** | **string** | | | MONTH |
| **code** | **string** | | | 123 |


[[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion docs/PaymentRequest/DirectDebitChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use Xendit\PaymentRequest\DirectDebitChannelCode;

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

* `BNI` (value: `'BNI'`)
* `BNI_AUTOPAY` (value: `'BNI_AUTOPAY'`)

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

Expand Down
1 change: 1 addition & 0 deletions docs/PaymentRequest/PaymentRequestChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use Xendit\PaymentRequest\PaymentRequestChannelProperties;
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **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 |
| **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 |
| **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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use Xendit\PaymentRequest\PaymentRequestParametersChannelProperties;
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **pending_return_url** | **string** | | URL where the end-customer is redirected if the authorization is pending | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
| **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 |
| **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 |
| **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 |
Expand Down
6 changes: 6 additions & 0 deletions docs/PaymentRequest/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ use Xendit\PaymentRequest\VirtualAccountChannelCode;

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

* `VPB` (value: `'VPB'`)

* `BIDV` (value: `'BIDV'`)

* `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`)

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

* `UOB` (value: `'UOB'`)

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

* `HANA` (value: `'HANA'`)
Expand Down
Loading

0 comments on commit 05c6875

Please sign in to comment.