Skip to content

Commit 5747ea2

Browse files
author
xendit-devx-bot
committed
Generated Xendit php SDK
1 parent 0ff7416 commit 5747ea2

Some content is hidden

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

58 files changed

+1171
-114
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2024 Xendit
3+
Copyright (c) 2017-2025 Xendit
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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

docs/Invoice/BankCode.md

+14
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ use Xendit\Invoice\BankCode;
2727

2828
* `CIMB` (value: `'CIMB'`)
2929

30+
* `VIETCAPITAL` (value: `'VIETCAPITAL'`)
31+
32+
* `WOORI` (value: `'WOORI'`)
33+
34+
* `PV` (value: `'PV'`)
35+
36+
* `MSB` (value: `'MSB'`)
37+
38+
* `VPB` (value: `'VPB'`)
39+
40+
* `BIDV` (value: `'BIDV'`)
41+
42+
* `CAKE` (value: `'CAKE'`)
43+
3044
* `BNC` (value: `'BNC'`)
3145

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

docs/Invoice/ChannelPropertiesCards.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use Xendit\Invoice\ChannelPropertiesCards;
1010
| Name | Type | Required | Description | Examples |
1111
|------------|:-------------:|:-------------:|-------------|:-------------:|
1212
| **allowed_bins** | **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | null |
13+
| **installment_configuration** | [**ChannelPropertiesCardsInstallmentConfiguration**](ChannelPropertiesCardsInstallmentConfiguration.md) | | | null |
1314

1415

1516
[[Back to README]](../../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# # ChannelPropertiesCardsInstallmentConfiguration
2+
An object to pre-set cards installment for a specific invoice
3+
4+
```php
5+
use Xendit\Invoice\ChannelPropertiesCardsInstallmentConfiguration;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **allow_full_payment** | **bool** | | Indicate whether full payment (without installment) is allowed | null |
13+
| **allowed_terms** | [**array**](ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md) | | An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | null |
14+
15+
16+
[[Back to README]](../../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# # ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
2+
3+
4+
```php
5+
use Xendit\Invoice\ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner;
6+
```
7+
8+
## Properties
9+
10+
| Name | Type | Required | Description | Examples |
11+
|------------|:-------------:|:-------------:|-------------|:-------------:|
12+
| **issuer** | **string** | | The bank code of the installment provider / issuer | null |
13+
| **allowed_terms** | **float[]** | | An array containing list of installment tenor available to choose | null |
14+
15+
16+
[[Back to README]](../../README.md)

docs/Invoice/CreateInvoiceRequest.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ use Xendit\Invoice\CreateInvoiceRequest;
2525
| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | null |
2626
| **currency** | **string** | | The currency of the invoice. | null |
2727
| **reminder_time** | **float** | | The reminder time. | null |
28-
| **local** | **string** | | The local. | null |
28+
| **locale** | **string** | | The default language to display. | null |
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 |
3232
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |
33+
| **metadata** | **object** | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | null |
3334

3435

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

docs/Invoice/Invoice.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ use Xendit\Invoice\Invoice;
4343
| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null |
4444
| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null |
4545
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |
46+
| **metadata** | **object** | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | null |
4647

4748

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

docs/Invoice/InvoiceCurrency.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ use Xendit\Invoice\InvoiceCurrency;
1919

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

22+
* `MYR` (value: `'MYR'`)
23+
2224
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
2325

2426
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/QrCodeType.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ use Xendit\Invoice\QrCodeType;
1313

1414
* `PROMPTPAY` (value: `'PROMPTPAY'`)
1515

16+
* `QRPH` (value: `'QRPH'`)
17+
1618
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
1719

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

lib/BalanceAndTransaction/BalanceApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $at_
382382

383383
// Xendit's custom headers
384384
$defaultHeaders['xendit-lib'] = 'php';
385-
$defaultHeaders['xendit-lib-ver'] = '6.0.0';
385+
$defaultHeaders['xendit-lib-ver'] = '6.1.0';
386386

387387
if ($this->config->getUserAgent()) {
388388
$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'] = '6.0.0';
366+
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
809+
$defaultHeaders['xendit-lib-ver'] = '6.1.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/6.0.0/PHP';
67+
protected $userAgent = 'OpenAPI-Generator/6.1.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.70.0' . PHP_EOL;
308-
$report .= ' SDK Package Version: 6.0.0' . PHP_EOL;
308+
$report .= ' SDK Package Version: 6.1.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'] = '6.0.0';
372+
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
631+
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
894+
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
1166+
$defaultHeaders['xendit-lib-ver'] = '6.1.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.7.6
14+
* The version of the OpenAPI document: 1.8.7
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.7.6
14+
* The version of the OpenAPI document: 1.8.7
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.7.6
14+
* The version of the OpenAPI document: 1.8.7
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.7.6
14+
* The version of the OpenAPI document: 1.8.7
1515
*/
1616

1717
/**

lib/Invoice/BankCode.php

+22-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.7.6
14+
* The version of the OpenAPI document: 1.8.7
1515
*/
1616

1717
/**
@@ -55,6 +55,20 @@ class BankCode
5555

5656
public const CIMB = 'CIMB';
5757

58+
public const VIETCAPITAL = 'VIETCAPITAL';
59+
60+
public const WOORI = 'WOORI';
61+
62+
public const PV = 'PV';
63+
64+
public const MSB = 'MSB';
65+
66+
public const VPB = 'VPB';
67+
68+
public const BIDV = 'BIDV';
69+
70+
public const CAKE = 'CAKE';
71+
5872
public const BNC = 'BNC';
5973

6074
public const HANA = 'HANA';
@@ -100,6 +114,13 @@ public static function getAllowableEnumValues()
100114
self::BJB,
101115
self::SAHABAT_SAMPOERNA,
102116
self::CIMB,
117+
self::VIETCAPITAL,
118+
self::WOORI,
119+
self::PV,
120+
self::MSB,
121+
self::VPB,
122+
self::BIDV,
123+
self::CAKE,
103124
self::BNC,
104125
self::HANA,
105126
self::MUAMALAT,

lib/Invoice/ChannelProperties.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.7.6
14+
* The version of the OpenAPI document: 1.8.7
1515
*/
1616

1717
/**

0 commit comments

Comments
 (0)