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 Dec 1, 2023
1 parent cbbffbd commit 0a9e7a5
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 46 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: 3.7.0
* Package version: 4.0.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": "3.7.0"
"xendit/xendit-php": "4.0.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": "3.7.0",
"version": "4.0.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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/3.7.0/PHP';
protected $userAgent = 'OpenAPI-Generator/4.0.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: 3.7.0' . PHP_EOL;
$report .= ' SDK Package Version: 4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.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'] = '3.7.0';
$defaultHeaders['xendit-lib-ver'] = '4.0.0';

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Bank implements ModelInterface, ArrayAccess, \JsonSerializable
'bank_branch' => null,
'bank_account_number' => null,
'account_holder_name' => null,
'transfer_amount' => null,
'transfer_amount' => 'double',
'alternative_displays' => null
];

Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/CreateInvoiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CreateInvoiceRequest implements ModelInterface, ArrayAccess, \JsonSerializ
*/
protected static $openAPIFormats = [
'external_id' => null,
'amount' => null,
'amount' => 'double',
'payer_email' => null,
'description' => null,
'invoice_duration' => null,
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Invoice implements ModelInterface, ArrayAccess, \JsonSerializable
'merchant_name' => null,
'merchant_profile_picture_url' => null,
'locale' => null,
'amount' => null,
'amount' => 'double',
'expiry_date' => 'date-time',
'invoice_url' => null,
'available_banks' => null,
Expand Down
8 changes: 4 additions & 4 deletions lib/Invoice/InvoiceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function createInvoiceRequest($create_invoice_request, $for_user_id = nul

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -1073,7 +1073,7 @@ public function getInvoicesRequest($for_user_id = null, $external_id = null, $st

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -1332,7 +1332,7 @@ public function expireInvoiceRequest($invoice_id, $for_user_id = null, string $c

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
4 changes: 2 additions & 2 deletions lib/Invoice/InvoiceCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ class InvoiceCallback implements ModelInterface, ArrayAccess, \JsonSerializable
'user_id' => null,
'status' => null,
'merchant_name' => null,
'amount' => null,
'amount' => 'double',
'payer_email' => null,
'description' => null,
'paid_amount' => null,
'paid_amount' => 'double',
'created' => null,
'updated' => null,
'currency' => null,
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice/RetailOutlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RetailOutlet implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPIFormats = [
'retail_outlet_name' => null,
'payment_code' => null,
'transfer_amount' => null,
'transfer_amount' => 'double',
'merchant_name' => null
];

Expand Down
16 changes: 8 additions & 8 deletions lib/PaymentMethod/PaymentMethodApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function createPaymentMethodRequest($for_user_id = null, $payment_method_

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -630,7 +630,7 @@ public function getPaymentMethodByIDRequest($payment_method_id, $for_user_id = n

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -1069,7 +1069,7 @@ public function getPaymentsByPaymentMethodIdRequest($payment_method_id, $for_use

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -1341,7 +1341,7 @@ public function patchPaymentMethodRequest($payment_method_id, $for_user_id = nul

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

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

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

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

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -2497,7 +2497,7 @@ public function simulatePaymentRequest($payment_method_id, $simulate_payment_req

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
14 changes: 7 additions & 7 deletions lib/PaymentRequest/PaymentRequestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function createPaymentRequestRequest($idempotency_key = null, $for_user_i

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -911,7 +911,7 @@ public function getPaymentRequestCapturesRequest($payment_request_id, $for_user_

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

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

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

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

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -2043,7 +2043,7 @@ public function resendPaymentRequestAuthRequest($payment_request_id, $for_user_i

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
10 changes: 5 additions & 5 deletions lib/Payout/PayoutApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function createPayoutRequest($idempotency_key, $for_user_id = null, $crea

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -921,7 +921,7 @@ public function getPayoutChannelsRequest($currency = null, $channel_category = n

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down Expand Up @@ -1226,7 +1226,7 @@ public function getPayoutsRequest($reference_id, $limit = null, $after_id = null

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

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

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

if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
Expand Down
Loading

0 comments on commit 0a9e7a5

Please sign in to comment.