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 Mar 8, 2024
1 parent 8774267 commit a655165
Show file tree
Hide file tree
Showing 56 changed files with 1,223 additions and 122 deletions.
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: 4.2.0
* Package version: 4.3.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": "4.2.0"
"xendit/xendit-php": "4.3.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": "4.2.0",
"version": "4.3.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
4 changes: 4 additions & 0 deletions docs/Invoice/BankCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ use Xendit\Invoice\BankCode;

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

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

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

* `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
15 changes: 15 additions & 0 deletions docs/Invoice/ChannelProperties.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# # ChannelProperties
An object representing channel-specific properties.

```php
use Xendit\Invoice\ChannelProperties;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **cards** | [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | null |


[[Back to README]](../../README.md)
15 changes: 15 additions & 0 deletions docs/Invoice/ChannelPropertiesCards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# # ChannelPropertiesCards
An object representing properties specific for credit card payment method.

```php
use Xendit\Invoice\ChannelPropertiesCards;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **allowed_bins** | **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | null |


[[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Invoice/CreateInvoiceRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use Xendit\Invoice\CreateInvoiceRequest;
| **reminder_time_unit** | **string** | | The unit of the reminder time. | null |
| **items** | [**array**](InvoiceItem.md) | | An array of items included in the invoice. | null |
| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null |
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |


[[Back to README]](../../README.md)
78 changes: 78 additions & 0 deletions docs/Invoice/DirectDebitType.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,84 @@ use Xendit\Invoice\DirectDebitType;

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

* `DD_PUBLIC_FPX` (value: `'DD_PUBLIC_FPX'`)

* `DD_AMBANK_FPX` (value: `'DD_AMBANK_FPX'`)

* `DD_KFH_FPX` (value: `'DD_KFH_FPX'`)

* `DD_AGRO_FPX` (value: `'DD_AGRO_FPX'`)

* `DD_AFFIN_FPX` (value: `'DD_AFFIN_FPX'`)

* `DD_ALLIANCE_FPX` (value: `'DD_ALLIANCE_FPX'`)

* `DD_MUAMALAT_FPX` (value: `'DD_MUAMALAT_FPX'`)

* `DD_HLB_FPX` (value: `'DD_HLB_FPX'`)

* `DD_ISLAM_FPX` (value: `'DD_ISLAM_FPX'`)

* `DD_RAKYAT_FPX` (value: `'DD_RAKYAT_FPX'`)

* `DD_CIMB_FPX` (value: `'DD_CIMB_FPX'`)

* `DD_UOB_FPX` (value: `'DD_UOB_FPX'`)

* `DD_BOC_FPX` (value: `'DD_BOC_FPX'`)

* `DD_BSN_FPX` (value: `'DD_BSN_FPX'`)

* `DD_OCBC_FPX` (value: `'DD_OCBC_FPX'`)

* `DD_HSBC_FPX` (value: `'DD_HSBC_FPX'`)

* `DD_SCH_FPX` (value: `'DD_SCH_FPX'`)

* `DD_MAYB2_U_FPX` (value: `'DD_MAYB2U_FPX'`)

* `DD_RHB_FPX` (value: `'DD_RHB_FPX'`)

* `DD_UOB_FPX_BUSINESS` (value: `'DD_UOB_FPX_BUSINESS'`)

* `DD_AGRO_FPX_BUSINESS` (value: `'DD_AGRO_FPX_BUSINESS'`)

* `DD_ALLIANCE_FPX_BUSINESS` (value: `'DD_ALLIANCE_FPX_BUSINESS'`)

* `DD_AMBANK_FPX_BUSINESS` (value: `'DD_AMBANK_FPX_BUSINESS'`)

* `DD_ISLAM_FPX_BUSINESS` (value: `'DD_ISLAM_FPX_BUSINESS'`)

* `DD_MUAMALAT_FPX_BUSINESS` (value: `'DD_MUAMALAT_FPX_BUSINESS'`)

* `DD_HLB_FPX_BUSINESS` (value: `'DD_HLB_FPX_BUSINESS'`)

* `DD_HSBC_FPX_BUSINESS` (value: `'DD_HSBC_FPX_BUSINESS'`)

* `DD_RAKYAT_FPX_BUSINESS` (value: `'DD_RAKYAT_FPX_BUSINESS'`)

* `DD_KFH_FPX_BUSINESS` (value: `'DD_KFH_FPX_BUSINESS'`)

* `DD_OCBC_FPX_BUSINESS` (value: `'DD_OCBC_FPX_BUSINESS'`)

* `DD_PUBLIC_FPX_BUSINESS` (value: `'DD_PUBLIC_FPX_BUSINESS'`)

* `DD_RHB_FPX_BUSINESS` (value: `'DD_RHB_FPX_BUSINESS'`)

* `DD_SCH_FPX_BUSINESS` (value: `'DD_SCH_FPX_BUSINESS'`)

* `DD_CITIBANK_FPX_BUSINESS` (value: `'DD_CITIBANK_FPX_BUSINESS'`)

* `DD_BNP_FPX_BUSINESS` (value: `'DD_BNP_FPX_BUSINESS'`)

* `DD_DEUTSCHE_FPX_BUSINESS` (value: `'DD_DEUTSCHE_FPX_BUSINESS'`)

* `DD_MAYB2_E_FPX_BUSINESS` (value: `'DD_MAYB2E_FPX_BUSINESS'`)

* `DD_CIMB_FPX_BUSINESS` (value: `'DD_CIMB_FPX_BUSINESS'`)

* `DD_AFFIN_FPX_BUSINESS` (value: `'DD_AFFIN_FPX_BUSINESS'`)

* `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
8 changes: 8 additions & 0 deletions docs/Invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ use Xendit\Invoice\EwalletType;

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

* `LINEPAY` (value: `'LINEPAY'`)

* `TRUEMONEY` (value: `'TRUEMONEY'`)

* `WECHATPAY` (value: `'WECHATPAY'`)

* `TOUCHNGO` (value: `'TOUCHNGO'`)

* `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/Invoice/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use Xendit\Invoice\Invoice;
| **customer** | [**CustomerObject**](CustomerObject.md) | | | null |
| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null |
| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null |
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | null |


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

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

* `CRYPTOCURRENCY` (value: `'CRYPTOCURRENCY'`)

* `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: 0 additions & 1 deletion docs/Invoice/NotificationPreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use Xendit\Invoice\NotificationPreference;
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **invoice_created** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is created. | null |
| **invoice_reminder** | [**array**](NotificationChannel.md) | | Notification channels for invoice reminders. | null |
| **invoice_expired** | [**array**](NotificationChannel.md) | | Notification channels for expired invoices. | null |
| **invoice_paid** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | null |


Expand Down
2 changes: 1 addition & 1 deletion lib/BalanceAndTransaction/BalanceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $for

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
4 changes: 2 additions & 2 deletions lib/BalanceAndTransaction/TransactionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function getTransactionByIDRequest($id, $for_user_id = null, string $cont

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

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

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/4.2.0/PHP';
protected $userAgent = 'OpenAPI-Generator/4.3.0/PHP';

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

return $report;
Expand Down
8 changes: 4 additions & 4 deletions lib/Customer/CustomerApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function createCustomerRequest($idempotency_key = null, $for_user_id = nu

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

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

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

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

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

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

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '4.2.0';
$defaultHeaders['xendit-lib-ver'] = '4.3.0';

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/AddressObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* xendit-invoice-service
*
* The version of the OpenAPI document: 1.6.0
* The version of the OpenAPI document: 1.7.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/AlternativeDisplayItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* xendit-invoice-service
*
* The version of the OpenAPI document: 1.6.0
* The version of the OpenAPI document: 1.7.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/BadRequestError.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* xendit-invoice-service
*
* The version of the OpenAPI document: 1.6.0
* The version of the OpenAPI document: 1.7.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* xendit-invoice-service
*
* The version of the OpenAPI document: 1.6.0
* The version of the OpenAPI document: 1.7.6
*/

/**
Expand Down
8 changes: 7 additions & 1 deletion lib/Invoice/BankCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* xendit-invoice-service
*
* The version of the OpenAPI document: 1.6.0
* The version of the OpenAPI document: 1.7.6
*/

/**
Expand Down Expand Up @@ -57,6 +57,10 @@ class BankCode

public const BNC = 'BNC';

public const HANA = 'HANA';

public const MUAMALAT = 'MUAMALAT';

public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE';

private $value;
Expand Down Expand Up @@ -97,6 +101,8 @@ public static function getAllowableEnumValues()
self::SAHABAT_SAMPOERNA,
self::CIMB,
self::BNC,
self::HANA,
self::MUAMALAT,
self::XENDIT_ENUM_DEFAULT_FALLBACK
];
}
Expand Down
Loading

0 comments on commit a655165

Please sign in to comment.