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 Jan 30, 2025
1 parent 0ff7416 commit 5747ea2
Show file tree
Hide file tree
Showing 58 changed files with 1,171 additions and 114 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2024 Xendit
Copyright (c) 2017-2025 Xendit

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
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: 6.0.0
* Package version: 6.1.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": "6.0.0"
"xendit/xendit-php": "6.1.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": "6.0.0",
"version": "6.1.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
14 changes: 14 additions & 0 deletions docs/Invoice/BankCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ use Xendit\Invoice\BankCode;

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

* `VIETCAPITAL` (value: `'VIETCAPITAL'`)

* `WOORI` (value: `'WOORI'`)

* `PV` (value: `'PV'`)

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

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

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

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

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

* `HANA` (value: `'HANA'`)
Expand Down
1 change: 1 addition & 0 deletions docs/Invoice/ChannelPropertiesCards.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use Xendit\Invoice\ChannelPropertiesCards;
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **allowed_bins** | **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | null |
| **installment_configuration** | [**ChannelPropertiesCardsInstallmentConfiguration**](ChannelPropertiesCardsInstallmentConfiguration.md) | | | null |


[[Back to README]](../../README.md)
16 changes: 16 additions & 0 deletions docs/Invoice/ChannelPropertiesCardsInstallmentConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# # ChannelPropertiesCardsInstallmentConfiguration
An object to pre-set cards installment for a specific invoice

```php
use Xendit\Invoice\ChannelPropertiesCardsInstallmentConfiguration;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **allow_full_payment** | **bool** | | Indicate whether full payment (without installment) is allowed | null |
| **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 |


[[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# # ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner


```php
use Xendit\Invoice\ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner;
```

## Properties

| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **issuer** | **string** | | The bank code of the installment provider / issuer | null |
| **allowed_terms** | **float[]** | | An array containing list of installment tenor available to choose | null |


[[Back to README]](../../README.md)
3 changes: 2 additions & 1 deletion docs/Invoice/CreateInvoiceRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ use Xendit\Invoice\CreateInvoiceRequest;
| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | null |
| **currency** | **string** | | The currency of the invoice. | null |
| **reminder_time** | **float** | | The reminder time. | null |
| **local** | **string** | | The local. | null |
| **locale** | **string** | | The default language to display. | null |
| **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 |
| **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 |


[[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Invoice/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use Xendit\Invoice\Invoice;
| **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 |
| **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 |


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

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

* `MYR` (value: `'MYR'`)

* `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/Invoice/QrCodeType.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use Xendit\Invoice\QrCodeType;

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

* `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
2 changes: 1 addition & 1 deletion lib/BalanceAndTransaction/BalanceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $at_

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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/6.0.0/PHP';
protected $userAgent = 'OpenAPI-Generator/6.1.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.70.0' . PHP_EOL;
$report .= ' SDK Package Version: 6.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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'] = '6.0.0';
$defaultHeaders['xendit-lib-ver'] = '6.1.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.7.6
* The version of the OpenAPI document: 1.8.7
*/

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

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

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

/**
Expand Down
23 changes: 22 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.7.6
* The version of the OpenAPI document: 1.8.7
*/

/**
Expand Down Expand Up @@ -55,6 +55,20 @@ class BankCode

public const CIMB = 'CIMB';

public const VIETCAPITAL = 'VIETCAPITAL';

public const WOORI = 'WOORI';

public const PV = 'PV';

public const MSB = 'MSB';

public const VPB = 'VPB';

public const BIDV = 'BIDV';

public const CAKE = 'CAKE';

public const BNC = 'BNC';

public const HANA = 'HANA';
Expand Down Expand Up @@ -100,6 +114,13 @@ public static function getAllowableEnumValues()
self::BJB,
self::SAHABAT_SAMPOERNA,
self::CIMB,
self::VIETCAPITAL,
self::WOORI,
self::PV,
self::MSB,
self::VPB,
self::BIDV,
self::CAKE,
self::BNC,
self::HANA,
self::MUAMALAT,
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/ChannelProperties.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.7.6
* The version of the OpenAPI document: 1.8.7
*/

/**
Expand Down
Loading

0 comments on commit 5747ea2

Please sign in to comment.