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 Feb 17, 2025
1 parent 5747ea2 commit aeff09e
Show file tree
Hide file tree
Showing 50 changed files with 97 additions and 97 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: 6.1.0
* Package version: 6.2.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.1.0"
"xendit/xendit-php": "6.2.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.1.0",
"version": "6.2.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use Xendit\Invoice\ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInn
| 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 |
| **terms** | **float[]** | | An array containing list of installment tenor available to choose | null |


[[Back to README]](../../README.md)
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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0/PHP';
protected $userAgent = 'OpenAPI-Generator/6.2.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.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.1.0';
$defaultHeaders['xendit-lib-ver'] = '6.2.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

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

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

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

/**
Expand Down
2 changes: 1 addition & 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.8.7
* The version of the OpenAPI document: 1.8.8
*/

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

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/ChannelPropertiesCards.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down Expand Up @@ -51,7 +51,7 @@ class ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner implements
*/
protected static $openAPITypes = [
'issuer' => 'string',
'allowed_terms' => 'float[]'
'terms' => 'float[]'
];

/**
Expand All @@ -63,7 +63,7 @@ class ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner implements
*/
protected static $openAPIFormats = [
'issuer' => null,
'allowed_terms' => null
'terms' => null
];

/**
Expand All @@ -73,7 +73,7 @@ class ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner implements
*/
protected static array $openAPINullables = [
'issuer' => false,
'allowed_terms' => false
'terms' => false
];

/**
Expand Down Expand Up @@ -163,7 +163,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'issuer' => 'issuer',
'allowed_terms' => 'allowed_terms'
'terms' => 'terms'
];

/**
Expand All @@ -173,7 +173,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'issuer' => 'setIssuer',
'allowed_terms' => 'setAllowedTerms'
'terms' => 'setTerms'
];

/**
Expand All @@ -183,7 +183,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'issuer' => 'getIssuer',
'allowed_terms' => 'getAllowedTerms'
'terms' => 'getTerms'
];

/**
Expand Down Expand Up @@ -244,7 +244,7 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->setIfExists('issuer', $data ?? [], null);
$this->setIfExists('allowed_terms', $data ?? [], null);
$this->setIfExists('terms', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -317,28 +317,28 @@ public function setIssuer($issuer)
}

/**
* Gets allowed_terms
* Gets terms
*
* @return float[]|null
*/
public function getAllowedTerms()
public function getTerms()
{
return $this->container['allowed_terms'];
return $this->container['terms'];
}

/**
* Sets allowed_terms
* Sets terms
*
* @param float[]|null $allowed_terms An array containing list of installment tenor available to choose
* @param float[]|null $terms An array containing list of installment tenor available to choose
*
* @return self
*/
public function setAllowedTerms($allowed_terms)
public function setTerms($terms)
{
if (is_null($allowed_terms)) {
throw new \InvalidArgumentException('non-nullable allowed_terms cannot be null');
if (is_null($terms)) {
throw new \InvalidArgumentException('non-nullable terms cannot be null');
}
$this->container['allowed_terms'] = $allowed_terms;
$this->container['terms'] = $terms;

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/CreateInvoiceRequest.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/CustomerObject.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/DirectDebit.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/DirectDebitType.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Ewallet.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/EwalletType.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/ForbiddenError.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Invoice.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.8.7
* The version of the OpenAPI document: 1.8.8
*/

/**
Expand Down
Loading

0 comments on commit aeff09e

Please sign in to comment.