Skip to content

Commit 315f641

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

File tree

182 files changed

+2373
-377
lines changed

Some content is hidden

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

182 files changed

+2373
-377
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ docs/PaymentRequest/Capture.md
99
docs/PaymentRequest/CaptureListResponse.md
1010
docs/PaymentRequest/CaptureParameters.md
1111
docs/PaymentRequest/Card.md
12+
docs/PaymentRequest/CardChannelCode.md
1213
docs/PaymentRequest/CardChannelProperties.md
1314
docs/PaymentRequest/CardInformation.md
15+
docs/PaymentRequest/CardParameters.md
1416
docs/PaymentRequest/CardVerificationResults.md
1517
docs/PaymentRequest/CardVerificationResultsThreeDSecure.md
1618
docs/PaymentRequest/DirectDebit.md
@@ -60,6 +62,7 @@ docs/PaymentRequest/PaymentRequestParametersChannelProperties.md
6062
docs/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.md
6163
docs/PaymentRequest/PaymentRequestShippingInformation.md
6264
docs/PaymentRequest/PaymentRequestStatus.md
65+
docs/PaymentRequest/PaymentSimulation.md
6366
docs/PaymentRequest/QRCode.md
6467
docs/PaymentRequest/QRCodeChannelCode.md
6568
docs/PaymentRequest/QRCodeChannelProperties.md
@@ -80,8 +83,10 @@ lib/PaymentRequest/Capture.php
8083
lib/PaymentRequest/CaptureListResponse.php
8184
lib/PaymentRequest/CaptureParameters.php
8285
lib/PaymentRequest/Card.php
86+
lib/PaymentRequest/CardChannelCode.php
8387
lib/PaymentRequest/CardChannelProperties.php
8488
lib/PaymentRequest/CardInformation.php
89+
lib/PaymentRequest/CardParameters.php
8590
lib/PaymentRequest/CardVerificationResults.php
8691
lib/PaymentRequest/CardVerificationResultsThreeDSecure.php
8792
lib/PaymentRequest/DirectDebit.php
@@ -132,6 +137,7 @@ lib/PaymentRequest/PaymentRequestParametersChannelProperties.php
132137
lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php
133138
lib/PaymentRequest/PaymentRequestShippingInformation.php
134139
lib/PaymentRequest/PaymentRequestStatus.php
140+
lib/PaymentRequest/PaymentSimulation.php
135141
lib/PaymentRequest/QRCode.php
136142
lib/PaymentRequest/QRCodeChannelCode.php
137143
lib/PaymentRequest/QRCodeChannelProperties.php
@@ -148,8 +154,10 @@ test/Api/PaymentRequestApiTest.php
148154
test/Model/PaymentRequest/CaptureListResponseTest.php
149155
test/Model/PaymentRequest/CaptureParametersTest.php
150156
test/Model/PaymentRequest/CaptureTest.php
157+
test/Model/PaymentRequest/CardChannelCodeTest.php
151158
test/Model/PaymentRequest/CardChannelPropertiesTest.php
152159
test/Model/PaymentRequest/CardInformationTest.php
160+
test/Model/PaymentRequest/CardParametersTest.php
153161
test/Model/PaymentRequest/CardTest.php
154162
test/Model/PaymentRequest/CardVerificationResultsTest.php
155163
test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php
@@ -200,6 +208,7 @@ test/Model/PaymentRequest/PaymentRequestParametersTest.php
200208
test/Model/PaymentRequest/PaymentRequestShippingInformationTest.php
201209
test/Model/PaymentRequest/PaymentRequestStatusTest.php
202210
test/Model/PaymentRequest/PaymentRequestTest.php
211+
test/Model/PaymentRequest/PaymentSimulationTest.php
203212
test/Model/PaymentRequest/QRCodeChannelCodeTest.php
204213
test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php
205214
test/Model/PaymentRequest/QRCodeParametersTest.php

README.md

Lines changed: 2 additions & 2 deletions
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.3.0
8+
* Package version: 5.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": "4.3.0"
31+
"xendit/xendit-php": "5.0.0"
3232
}
3333
}
3434
```

composer.json

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

docs/BalanceApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ All URIs are relative to https://api.xendit.co, except if the operation defines
2626
## `getBalance()` Function
2727

2828
```php
29-
getBalance($account_type, $currency, $for_user_id): \BalanceAndTransaction\Balance
29+
getBalance($account_type, $currency, $at_timestamp, $for_user_id): \BalanceAndTransaction\Balance
3030
```
3131

3232
Retrieves balances for a business, default to CASH type
@@ -44,6 +44,7 @@ Retrieves balances for a business, default to CASH type
4444
|-------------|:-------------:|:-------------:|-------------|
4545
| **account_type** | **string** | | ['CASH'] |
4646
| **currency** | **string** | | |
47+
| **at_timestamp** | **\DateTime** | | |
4748
| **for_user_id** | **string** | | |
4849

4950
### Usage Example
@@ -59,10 +60,11 @@ Configuration::setXenditKey("YOUR_API_KEY_HERE");
5960
$apiInstance = new BalanceApi();
6061
$account_type = "CASH"; // string | The selected balance type
6162
$currency = "IDR"; // string | Currency for filter for customers with multi currency accounts
63+
$at_timestamp = 2020-06-19T00:00+07:00; // \DateTime | The timestamp you want to use as the limit for balance retrieval
6264
$for_user_id = "5dbf20d7c8eb0c0896f811b6"; // string | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information
6365

6466
try {
65-
$result = $apiInstance->getBalance($account_type, $currency, $for_user_id);
67+
$result = $apiInstance->getBalance($account_type, $currency, $at_timestamp, $for_user_id);
6668
print_r($result);
6769
} catch (\Xendit\XenditSdkException $e) {
6870
echo 'Exception when calling BalanceApi->getBalance: ', $e->getMessage(), PHP_EOL;

docs/PaymentMethod/Card.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use Xendit\PaymentMethod\Card;
99

1010
| Name | Type | Required | Description | Examples |
1111
|------------|:-------------:|:-------------:|-------------|:-------------:|
12-
| **currency** | **string** | ☑️ | | null |
12+
| **channel_code** | [**CardChannelCode**](CardChannelCode.md) | | | null |
13+
| **currency** | **string** | | | null |
1314
| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | ☑️ | | null |
1415
| **card_information** | [**TokenizedCardInformation**](TokenizedCardInformation.md) | | | null |
1516
| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | | null |

docs/PaymentMethod/CardChannelCode.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# # CardChannelCode
2+
Card Channel Code
3+
4+
```php
5+
use Xendit\PaymentMethod\CardChannelCode;
6+
```
7+
8+
9+
## Enum
10+
11+
12+
* `GPN` (value: `'GPN'`)
13+
14+
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
15+
16+
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.
17+
18+
[[Back to README]](../../README.md)

docs/PaymentMethod/CardChannelProperties.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use Xendit\PaymentMethod\CardChannelProperties;
1313
| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 |
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 |
16+
| **expires_at** | **\DateTime** | | | null |
1617

1718

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

docs/PaymentMethod/DirectDebitChannelCode.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;
1717

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

20+
* `AUTODEBIT_BPI` (value: `'AUTODEBIT_BPI'`)
21+
22+
* `BPI_RECURRING` (value: `'BPI_RECURRING'`)
23+
2024
* `BRI` (value: `'BRI'`)
2125

2226
* `BNI` (value: `'BNI'`)
@@ -55,6 +59,8 @@ use Xendit\PaymentMethod\DirectDebitChannelCode;
5559

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

62+
* `UBP_DEBIT_PULL` (value: `'UBP_DEBIT_PULL'`)
63+
5864
* `AFFIN_FPX` (value: `'AFFIN_FPX'`)
5965

6066
* `AGRO_FPX` (value: `'AGRO_FPX'`)

docs/PaymentMethod/EWalletChannelCode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use Xendit\PaymentMethod\EWalletChannelCode;
4949

5050
* `ALIPAY` (value: `'ALIPAY'`)
5151

52-
* `TOUCHANDGO` (value: `'TOUCHANDGO'`)
52+
* `TOUCHNGO` (value: `'TOUCHNGO'`)
5353

5454
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
5555

docs/PaymentMethod/EWalletChannelProperties.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use Xendit\PaymentMethod\EWalletChannelProperties;
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
| **mobile_number** | **string** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | +628123123123 |
1617
| **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 |
1718
| **cashtag** | **string** | | Available for JENIUSPAY only | $abc1234 |

0 commit comments

Comments
 (0)