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 Sep 21, 2023
1 parent b41bf8d commit 93d3dbe
Show file tree
Hide file tree
Showing 127 changed files with 262 additions and 422 deletions.
232 changes: 44 additions & 188 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -5,198 +5,54 @@
LICENSE
README.md
composer.json
docs/PaymentMethod.yaml
docs/PaymentMethod/BillingInformation.md
docs/PaymentMethod/Card.md
docs/PaymentMethod/CardChannelProperties.md
docs/PaymentMethod/CardParameters.md
docs/PaymentMethod/CardParametersCardInformation.md
docs/PaymentMethod/CardVerificationResults.md
docs/PaymentMethod/CardVerificationResultsThreeDSecure.md
docs/PaymentMethod/ChannelAmountLimits.md
docs/PaymentMethod/ChannelAmountLimitsAllOf.md
docs/PaymentMethod/ChannelProperty.md
docs/PaymentMethod/ChannelPropertyAllOf.md
docs/PaymentMethod/CreatePaymentMethod409Response.md
docs/PaymentMethod/CreatePaymentMethod503Response.md
docs/PaymentMethod/DirectDebit.md
docs/PaymentMethod/DirectDebitAllOf.md
docs/PaymentMethod/DirectDebitBankAccount.md
docs/PaymentMethod/DirectDebitChannelCode.md
docs/PaymentMethod/DirectDebitChannelProperties.md
docs/PaymentMethod/DirectDebitDebitCard.md
docs/PaymentMethod/DirectDebitParameters.md
docs/PaymentMethod/DirectDebitType.md
docs/PaymentMethod/EWallet.md
docs/PaymentMethod/EWalletAccount.md
docs/PaymentMethod/EWalletChannelCode.md
docs/PaymentMethod/EWalletChannelProperties.md
docs/PaymentMethod/EWalletParameters.md
docs/PaymentMethod/GetAllPaymentMethods400Response.md
docs/PaymentMethod/GetAllPaymentMethods403Response.md
docs/PaymentMethod/GetAllPaymentMethods404Response.md
docs/PaymentMethod/GetAllPaymentMethodsDefaultResponse.md
docs/PaymentMethod/OverTheCounter.md
docs/PaymentMethod/OverTheCounterChannelCode.md
docs/PaymentMethod/OverTheCounterChannelProperties.md
docs/PaymentMethod/OverTheCounterChannelPropertiesUpdate.md
docs/PaymentMethod/OverTheCounterParameters.md
docs/PaymentMethod/OverTheCounterUpdateParameters.md
docs/PaymentMethod/PaymentChannel.md
docs/PaymentMethod/PaymentChannelAllOf.md
docs/PaymentMethod/PaymentChannelList.md
docs/PaymentMethod/PaymentChannelListLinksInner.md
docs/PaymentMethod/PaymentChannelListLinksInnerAllOf.md
docs/PaymentMethod/PaymentMethod.md
docs/PaymentMethod/PaymentMethodAction.md
docs/PaymentMethod/PaymentMethodApi.md
docs/PaymentMethod/PaymentMethodAuthParameters.md
docs/PaymentMethod/PaymentMethodCountry.md
docs/PaymentMethod/PaymentMethodExpireParameters.md
docs/PaymentMethod/PaymentMethodList.md
docs/PaymentMethod/PaymentMethodParameters.md
docs/PaymentMethod/PaymentMethodReusability.md
docs/PaymentMethod/PaymentMethodStatus.md
docs/PaymentMethod/PaymentMethodType.md
docs/PaymentMethod/PaymentMethodUpdateParameters.md
docs/PaymentMethod/QRCode.md
docs/PaymentMethod/QRCodeChannelCode.md
docs/PaymentMethod/QRCodeChannelProperties.md
docs/PaymentMethod/QRCodeParameters.md
docs/PaymentMethod/SimulatePaymentRequest.md
docs/PaymentMethod/TokenizedCardInformation.md
docs/PaymentMethod/VirtualAccount.md
docs/PaymentMethod/VirtualAccountAllOf.md
docs/PaymentMethod/VirtualAccountAlternativeDisplay.md
docs/PaymentMethod/VirtualAccountChannelCode.md
docs/PaymentMethod/VirtualAccountChannelProperties.md
docs/PaymentMethod/VirtualAccountChannelPropertiesPatch.md
docs/PaymentMethod/VirtualAccountParameters.md
docs/PaymentMethod/VirtualAccountUpdateParameters.md
docs/Payout.yaml
docs/Payout/Channel.md
docs/Payout/ChannelAccountType.md
docs/Payout/ChannelAmountLimits.md
docs/Payout/ChannelCategory.md
docs/Payout/CreatePayoutRequest.md
docs/Payout/DigitalPayoutChannelProperties.md
docs/Payout/Error.md
docs/Payout/ErrorErrorsInner.md
docs/Payout/GetPayouts200Response.md
docs/Payout/GetPayouts200ResponseDataInner.md
docs/Payout/GetPayouts200ResponseLinks.md
docs/Payout/Payout.md
docs/Payout/PayoutAllOf.md
docs/Payout/PayoutApi.md
docs/Payout/ReceiptNotification.md
docs/header.jpg
lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/Model/ModelInterface.php
lib/ObjectSerializer.php
lib/PaymentMethod/BillingInformation.php
lib/PaymentMethod/Card.php
lib/PaymentMethod/CardChannelProperties.php
lib/PaymentMethod/CardParameters.php
lib/PaymentMethod/CardParametersCardInformation.php
lib/PaymentMethod/CardVerificationResults.php
lib/PaymentMethod/CardVerificationResultsThreeDSecure.php
lib/PaymentMethod/ChannelAmountLimits.php
lib/PaymentMethod/ChannelAmountLimitsAllOf.php
lib/PaymentMethod/ChannelProperty.php
lib/PaymentMethod/ChannelPropertyAllOf.php
lib/PaymentMethod/CreatePaymentMethod409Response.php
lib/PaymentMethod/CreatePaymentMethod503Response.php
lib/PaymentMethod/DirectDebit.php
lib/PaymentMethod/DirectDebitAllOf.php
lib/PaymentMethod/DirectDebitBankAccount.php
lib/PaymentMethod/DirectDebitChannelCode.php
lib/PaymentMethod/DirectDebitChannelProperties.php
lib/PaymentMethod/DirectDebitDebitCard.php
lib/PaymentMethod/DirectDebitParameters.php
lib/PaymentMethod/DirectDebitType.php
lib/PaymentMethod/EWallet.php
lib/PaymentMethod/EWalletAccount.php
lib/PaymentMethod/EWalletChannelCode.php
lib/PaymentMethod/EWalletChannelProperties.php
lib/PaymentMethod/EWalletParameters.php
lib/PaymentMethod/GetAllPaymentMethods400Response.php
lib/PaymentMethod/GetAllPaymentMethods403Response.php
lib/PaymentMethod/GetAllPaymentMethods404Response.php
lib/PaymentMethod/GetAllPaymentMethodsDefaultResponse.php
lib/PaymentMethod/OverTheCounter.php
lib/PaymentMethod/OverTheCounterChannelCode.php
lib/PaymentMethod/OverTheCounterChannelProperties.php
lib/PaymentMethod/OverTheCounterChannelPropertiesUpdate.php
lib/PaymentMethod/OverTheCounterParameters.php
lib/PaymentMethod/OverTheCounterUpdateParameters.php
lib/PaymentMethod/PaymentChannel.php
lib/PaymentMethod/PaymentChannelAllOf.php
lib/PaymentMethod/PaymentChannelList.php
lib/PaymentMethod/PaymentChannelListLinksInner.php
lib/PaymentMethod/PaymentChannelListLinksInnerAllOf.php
lib/PaymentMethod/PaymentMethod.php
lib/PaymentMethod/PaymentMethodAction.php
lib/PaymentMethod/PaymentMethodApi.php
lib/PaymentMethod/PaymentMethodAuthParameters.php
lib/PaymentMethod/PaymentMethodCountry.php
lib/PaymentMethod/PaymentMethodExpireParameters.php
lib/PaymentMethod/PaymentMethodList.php
lib/PaymentMethod/PaymentMethodParameters.php
lib/PaymentMethod/PaymentMethodReusability.php
lib/PaymentMethod/PaymentMethodStatus.php
lib/PaymentMethod/PaymentMethodType.php
lib/PaymentMethod/PaymentMethodUpdateParameters.php
lib/PaymentMethod/QRCode.php
lib/PaymentMethod/QRCodeChannelCode.php
lib/PaymentMethod/QRCodeChannelProperties.php
lib/PaymentMethod/QRCodeParameters.php
lib/PaymentMethod/SimulatePaymentRequest.php
lib/PaymentMethod/TokenizedCardInformation.php
lib/PaymentMethod/VirtualAccount.php
lib/PaymentMethod/VirtualAccountAllOf.php
lib/PaymentMethod/VirtualAccountAlternativeDisplay.php
lib/PaymentMethod/VirtualAccountChannelCode.php
lib/PaymentMethod/VirtualAccountChannelProperties.php
lib/PaymentMethod/VirtualAccountChannelPropertiesPatch.php
lib/PaymentMethod/VirtualAccountParameters.php
lib/PaymentMethod/VirtualAccountUpdateParameters.php
lib/Payout/Channel.php
lib/Payout/ChannelAccountType.php
lib/Payout/ChannelAmountLimits.php
lib/Payout/ChannelCategory.php
lib/Payout/CreatePayoutRequest.php
lib/Payout/DigitalPayoutChannelProperties.php
lib/Payout/Error.php
lib/Payout/ErrorErrorsInner.php
lib/Payout/GetPayouts200Response.php
lib/Payout/GetPayouts200ResponseDataInner.php
lib/Payout/GetPayouts200ResponseLinks.php
lib/Payout/Payout.php
lib/Payout/PayoutAllOf.php
lib/Payout/PayoutApi.php
lib/Payout/ReceiptNotification.php
phpunit.xml.dist
test/Api/PaymentMethodApiTest.php
test/Model/BillingInformationTest.php
test/Model/CardChannelPropertiesTest.php
test/Model/CardParametersCardInformationTest.php
test/Model/CardParametersTest.php
test/Model/CardTest.php
test/Model/CardVerificationResultsTest.php
test/Model/CardVerificationResultsThreeDSecureTest.php
test/Model/ChannelAmountLimitsAllOfTest.php
test/Model/ChannelAmountLimitsTest.php
test/Model/ChannelPropertyAllOfTest.php
test/Model/ChannelPropertyTest.php
test/Model/CreatePaymentMethod409ResponseTest.php
test/Model/CreatePaymentMethod503ResponseTest.php
test/Model/DirectDebitDebitCardTest.php
test/Model/DirectDebitParametersTest.php
test/Model/EWalletAccountTest.php
test/Model/EWalletChannelCodeTest.php
test/Model/EWalletChannelPropertiesTest.php
test/Model/EWalletParametersTest.php
test/Model/EWalletTest.php
test/Model/GetAllPaymentMethods400ResponseTest.php
test/Model/GetAllPaymentMethods403ResponseTest.php
test/Model/GetAllPaymentMethods404ResponseTest.php
test/Model/GetAllPaymentMethodsDefaultResponseTest.php
test/Model/OverTheCounterChannelCodeTest.php
test/Model/OverTheCounterChannelPropertiesTest.php
test/Model/OverTheCounterChannelPropertiesUpdateTest.php
test/Model/OverTheCounterUpdateParametersTest.php
test/Model/PaymentChannelAllOfTest.php
test/Model/PaymentChannelListLinksInnerAllOfTest.php
test/Model/PaymentChannelListLinksInnerTest.php
test/Model/PaymentChannelListTest.php
test/Model/PaymentChannelTest.php
test/Model/PaymentMethodActionTest.php
test/Model/PaymentMethodAuthParametersTest.php
test/Model/PaymentMethodCountryTest.php
test/Model/PaymentMethodExpireParametersTest.php
test/Model/PaymentMethodListTest.php
test/Model/PaymentMethodUpdateParametersTest.php
test/Model/QRCodeChannelCodeTest.php
test/Model/QRCodeChannelPropertiesTest.php
test/Model/QRCodeParametersTest.php
test/Model/QRCodeTest.php
test/Model/SimulatePaymentRequestTest.php
test/Model/TokenizedCardInformationTest.php
test/Model/VirtualAccountAllOfTest.php
test/Model/VirtualAccountAlternativeDisplayTest.php
test/Model/VirtualAccountChannelCodeTest.php
test/Model/VirtualAccountChannelPropertiesPatchTest.php
test/Model/VirtualAccountChannelPropertiesTest.php
test/Model/VirtualAccountTest.php
test/Model/VirtualAccountUpdateParametersTest.php
test/Api/PayoutApiTest.php
test/Model/ChannelAccountTypeTest.php
test/Model/ChannelCategoryTest.php
test/Model/ChannelTest.php
test/Model/CreatePayoutRequestTest.php
test/Model/DigitalPayoutChannelPropertiesTest.php
test/Model/ErrorErrorsInnerTest.php
test/Model/GetPayouts200ResponseDataInnerTest.php
test/Model/GetPayouts200ResponseLinksTest.php
test/Model/GetPayouts200ResponseTest.php
test/Model/PayoutAllOfTest.php
test/Model/PayoutTest.php
test/Model/ReceiptNotificationTest.php
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.0.0
* Package version: 3.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": "3.0.0"
"xendit/xendit-php": "3.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": "3.0.0",
"version": "3.1.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down
15 changes: 1 addition & 14 deletions docs/PaymentMethod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -541,20 +541,6 @@ paths:
schema:
type: integer
style: form
- explode: true
in: query
name: after_id
required: false
schema:
type: string
style: form
- explode: true
in: query
name: before_id
required: false
schema:
type: string
style: form
responses:
"200":
content:
Expand Down Expand Up @@ -2203,6 +2189,7 @@ components:
- PAYMENT_METHOD_NOT_SUPPORTED
- INCORRECT_AMOUNT
- DUPLICATED_FIXED_PAYMENT_INSTRUMENT
- CURRENCY_MISMATCHED
type: string
message:
example: An internal server error occurred
Expand Down
8 changes: 2 additions & 6 deletions docs/PaymentMethod/PaymentMethodApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ No authorization required
## `getPaymentsByPaymentMethodId()`

```php
getPaymentsByPaymentMethodId($payment_method_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit, $after_id, $before_id): object
getPaymentsByPaymentMethodId($payment_method_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit): object
```

Returns payments with matching PaymentMethodID.
Expand Down Expand Up @@ -390,11 +390,9 @@ $created_lte = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$updated_gte = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$updated_lte = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$limit = 56; // int
$after_id = "'after_id_example'"; // string
$before_id = "'before_id_example'"; // string

try {
$result = $apiInstance->getPaymentsByPaymentMethodId($payment_method_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit, $after_id, $before_id);
$result = $apiInstance->getPaymentsByPaymentMethodId($payment_method_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentMethodApi->getPaymentsByPaymentMethodId: ', $e->getMessage(), PHP_EOL;
Expand All @@ -418,8 +416,6 @@ try {
| **updated_gte** | **\DateTime**| | [optional] |
| **updated_lte** | **\DateTime**| | [optional] |
| **limit** | **int**| | [optional] |
| **after_id** | **string**| | [optional] |
| **before_id** | **string**| | [optional] |

### Return type

Expand Down
8 changes: 7 additions & 1 deletion docs/PaymentRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
description: This API is used for Payment Requests
title: Payment Requests
version: 1.42.3
version: 1.44.0
servers:
- description: Xendit API Server
url: https://api.xendit.co
Expand Down Expand Up @@ -112,6 +112,12 @@ paths:
schema:
$ref: '#/components/schemas/PaymentRequest'
description: Request successful
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequest'
description: Request successful
"400":
content:
application/json:
Expand Down
4 changes: 2 additions & 2 deletions lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

/**
* Payment Method Service v2
* Payout Service
*
* The version of the OpenAPI document: 2.87.2
* The version of the OpenAPI document: 1.0.0
*/

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

// Xendit's custom headers
$defaultHeaders['xendit-lib'] = 'php';
$defaultHeaders['xendit-lib-ver'] = '3.0.0';
$defaultHeaders['xendit-lib-ver'] = '3.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 @@ -630,7 +630,7 @@ public function getAllTransactionsRequest($for_user_id = null, $types = null, $s

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

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

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

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

0 comments on commit 93d3dbe

Please sign in to comment.