Skip to content

Commit

Permalink
Generated Xendit python SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Aug 1, 2024
1 parent cfd867b commit ded2fb1
Show file tree
Hide file tree
Showing 161 changed files with 1,098 additions and 210 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ docs/payment_request/Card.md
docs/payment_request/CardChannelCode.md
docs/payment_request/CardChannelProperties.md
docs/payment_request/CardInformation.md
docs/payment_request/CardInstallmentConfiguration.md
docs/payment_request/CardParameters.md
docs/payment_request/CardVerificationResults.md
docs/payment_request/CardVerificationResultsThreeDSecure.md
Expand Down Expand Up @@ -134,6 +135,7 @@ xendit/payment_request/model/card.py
xendit/payment_request/model/card_channel_code.py
xendit/payment_request/model/card_channel_properties.py
xendit/payment_request/model/card_information.py
xendit/payment_request/model/card_installment_configuration.py
xendit/payment_request/model/card_parameters.py
xendit/payment_request/model/card_verification_results.py
xendit/payment_request/model/card_verification_results_three_d_secure.py
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Python.

* Package version: 5.0.0
* Package version: 6.0.0

## Requirements

Expand Down
16 changes: 11 additions & 5 deletions docs/PaymentRequestApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Create Payment Request
|-------------|:-------------:|:-------------:|-------------|
| **idempotency_key** | **str**| | |
| **for_user_id** | **str**| | |
| **with_split_rule** | **str**| | |
| **payment_request_parameters** | [**PaymentRequestParameters**](payment_request/PaymentRequestParameters.md)| | |

### Usage Example
Expand All @@ -74,6 +75,7 @@ api_client = xendit.ApiClient()
api_instance = PaymentRequestApi(api_client)
idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str
for_user_id = "5f9a3fbd571a1c4068aa40cf" # str
with_split_rule = "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" # str
payment_request_parameters = {
"reference_id" : "example-ref-1234",
"amount" : 15000,
Expand All @@ -95,7 +97,7 @@ payment_request_parameters = {
# and optional values
try:
# Create Payment Request
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters)
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, with_split_rule=with_split_rule, payment_request_parameters=payment_request_parameters)
pprint(api_response)
except xendit.XenditSdkException as e:
print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e)
Expand All @@ -121,6 +123,7 @@ api_client = xendit.ApiClient()
api_instance = PaymentRequestApi(api_client)
idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str
for_user_id = "5f9a3fbd571a1c4068aa40cf" # str
with_split_rule = "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" # str
payment_request_parameters = {
"reference_id" : "example-ref-1234",
"amount" : 15000,
Expand All @@ -141,7 +144,7 @@ payment_request_parameters = {
# and optional values
try:
# Create Payment Request
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters)
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, with_split_rule=with_split_rule, payment_request_parameters=payment_request_parameters)
pprint(api_response)
except xendit.XenditSdkException as e:
print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e)
Expand All @@ -167,6 +170,7 @@ api_client = xendit.ApiClient()
api_instance = PaymentRequestApi(api_client)
idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str
for_user_id = "5f9a3fbd571a1c4068aa40cf" # str
with_split_rule = "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" # str
payment_request_parameters = {
"reference_id" : "example-ref-1234",
"currency" : "IDR",
Expand All @@ -193,7 +197,7 @@ payment_request_parameters = {
# and optional values
try:
# Create Payment Request
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters)
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, with_split_rule=with_split_rule, payment_request_parameters=payment_request_parameters)
pprint(api_response)
except xendit.XenditSdkException as e:
print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e)
Expand All @@ -219,6 +223,7 @@ api_client = xendit.ApiClient()
api_instance = PaymentRequestApi(api_client)
idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str
for_user_id = "5f9a3fbd571a1c4068aa40cf" # str
with_split_rule = "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" # str
payment_request_parameters = {
"reference_id" : "example-ref-1234",
"amount" : 1500,
Expand All @@ -233,7 +238,7 @@ payment_request_parameters = {
# and optional values
try:
# Create Payment Request
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters)
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, with_split_rule=with_split_rule, payment_request_parameters=payment_request_parameters)
pprint(api_response)
except xendit.XenditSdkException as e:
print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e)
Expand All @@ -259,6 +264,7 @@ api_client = xendit.ApiClient()
api_instance = PaymentRequestApi(api_client)
idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str
for_user_id = "5f9a3fbd571a1c4068aa40cf" # str
with_split_rule = "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" # str
payment_request_parameters = {
"reference_id" : "example-ref-1234",
"amount" : 15000,
Expand All @@ -273,7 +279,7 @@ payment_request_parameters = {
# and optional values
try:
# Create Payment Request
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters)
api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, with_split_rule=with_split_rule, payment_request_parameters=payment_request_parameters)
pprint(api_response)
except xendit.XenditSdkException as e:
print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e)
Expand Down
12 changes: 12 additions & 0 deletions docs/payment_method/CardChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ Card Channel Code
## Enum


* `BAY_CARD_INSTALLMENT` (value: `"BAY_CARD_INSTALLMENT"`)

* `BBL_CARD_INSTALLMENT` (value: `"BBL_CARD_INSTALLMENT"`)

* `GPN` (value: `"GPN"`)

* `KBANK_CARD_INSTALLMENT` (value: `"KBANK_CARD_INSTALLMENT"`)

* `KTB_CARD_INSTALLMENT` (value: `"KTB_CARD_INSTALLMENT"`)

* `SCB_CARD_INSTALLMENT` (value: `"SCB_CARD_INSTALLMENT"`)

* `TTB_CARD_INSTALLMENT` (value: `"TTB_CARD_INSTALLMENT"`)

* `XenditEnumDefaultFallback` (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/payment_method/CardChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Card Channel Properties
| **failure_return_url** | **str, none_type** | | URL where the end-customer is redirected if the authorization failed | |
| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | |
| **expires_at** | **datetime** | | | |
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | |
| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | |


[[Back to README]](../../README.md)
Expand Down
16 changes: 16 additions & 0 deletions docs/payment_method/CardInstallmentConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CardInstallmentConfiguration
> xendit.payment_method.model.CardInstallmentConfiguration
Card Installment Configuration

## Properties
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **terms** | **int** | | | |
| **interval** | **str** | | | |
| **code** | **str, none_type** | | | |


[[Back to README]](../../README.md)


60 changes: 56 additions & 4 deletions docs/payment_method/DirectDebitChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ Direct Debit Channel Code

* `BPI` (value: `"BPI"`)

* `AUTODEBIT_BPI` (value: `"AUTODEBIT_BPI"`)

* `BPI_RECURRING` (value: `"BPI_RECURRING"`)

* `BRI` (value: `"BRI"`)

* `BNI` (value: `"BNI"`)
* `BNI_AUTOPAY` (value: `"BNI_AUTOPAY"`)

* `CHINABANK` (value: `"CHINABANK"`)

Expand Down Expand Up @@ -55,7 +53,7 @@ Direct Debit Channel Code

* `BDO_EPAY` (value: `"BDO_EPAY"`)

* `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`)
* `UBP_EADA` (value: `"UBP_EADA"`)

* `UBP_DEBIT_PULL` (value: `"UBP_DEBIT_PULL"`)

Expand Down Expand Up @@ -139,6 +137,60 @@ Direct Debit Channel Code

* `UOB_FPX_BUSINESS` (value: `"UOB_FPX_BUSINESS"`)

* `BDO_ONLINE_BANKING` (value: `"BDO_ONLINE_BANKING"`)

* `BPI_ONLINE_BANKING` (value: `"BPI_ONLINE_BANKING"`)

* `UNIONBANK_ONLINE_BANKING` (value: `"UNIONBANK_ONLINE_BANKING"`)

* `BOC_ONLINE_BANKING` (value: `"BOC_ONLINE_BANKING"`)

* `CHINABANK_ONLINE_BANKING` (value: `"CHINABANK_ONLINE_BANKING"`)

* `INSTAPAY_ONLINE_BANKING` (value: `"INSTAPAY_ONLINE_BANKING"`)

* `LANDBANK_ONLINE_BANKING` (value: `"LANDBANK_ONLINE_BANKING"`)

* `MAYBANK_ONLINE_BANKING` (value: `"MAYBANK_ONLINE_BANKING"`)

* `METROBANK_ONLINE_BANKING` (value: `"METROBANK_ONLINE_BANKING"`)

* `PNB_ONLINE_BANKING` (value: `"PNB_ONLINE_BANKING"`)

* `PSBANK_ONLINE_BANKING` (value: `"PSBANK_ONLINE_BANKING"`)

* `PESONET_ONLINE_BANKING` (value: `"PESONET_ONLINE_BANKING"`)

* `RCBC_ONLINE_BANKING` (value: `"RCBC_ONLINE_BANKING"`)

* `ROBINSONS_BANK_ONLINE_BANKING` (value: `"ROBINSONS_BANK_ONLINE_BANKING"`)

* `SECURITY_BANK_ONLINE_BANKING` (value: `"SECURITY_BANK_ONLINE_BANKING"`)

* `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`)

* `AUTODEBIT_BPI` (value: `"AUTODEBIT_BPI"`)

* `GBW_BBL_MOBILE_BANKING` (value: `"GBW_BBL_MOBILE_BANKING"`)

* `GBW_KBANK_MOBILE_BANKING` (value: `"GBW_KBANK_MOBILE_BANKING"`)

* `GBW_KTB_MOBILE_BANKING` (value: `"GBW_KTB_MOBILE_BANKING"`)

* `GBW_SCB_MOBILE_BANKING` (value: `"GBW_SCB_MOBILE_BANKING"`)

* `GBW_BAY_MOBILE_BANKING` (value: `"GBW_BAY_MOBILE_BANKING"`)

* `GBW_BBL` (value: `"GBW_BBL"`)

* `GBW_KBANK` (value: `"GBW_KBANK"`)

* `GBW_KTB` (value: `"GBW_KTB"`)

* `GBW_SCB` (value: `"GBW_SCB"`)

* `GBW_BAY` (value: `"GBW_BAY"`)

* `XenditEnumDefaultFallback` (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/payment_method/DirectDebitChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Direct Debit Channel Properties
| **identity_document_number** | **str, none_type** | | Identity number of the customer registered to the partner channel | |
| **require_auth** | **bool, none_type** | | | |
| **account_number** | **str, none_type** | | Account number of the customer | |
| **destination_account_id** | **str, none_type** | | Destination Account ID for BaaS topups | |


[[Back to README]](../../README.md)
Expand Down
3 changes: 2 additions & 1 deletion docs/payment_method/EWalletChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ EWallet Channel Properties
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | |
| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | |
| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | |
| **pending_return_url** | **str** | | URL where the end-customer is redirected if the authorization is pending | |
| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | |
| **mobile_number** | **str** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | |
| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | |
| **cashtag** | **str** | | Available for JENIUSPAY only | |
| **promotion_label** | **str** | | Available only for OVO | |


[[Back to README]](../../README.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/payment_method/QRCodeChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ QR Code Channel Code

* `XENDIT` (value: `"XENDIT"`)

* `QRPH` (value: `"QRPH"`)

* `XenditEnumDefaultFallback` (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
10 changes: 10 additions & 0 deletions docs/payment_method/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,26 @@ Virtual Account Channel Code

* `MSB` (value: `"MSB"`)

* `VPB` (value: `"VPB"`)

* `BIDV` (value: `"BIDV"`)

* `CAKE` (value: `"CAKE"`)

* `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`)

* `AMBANK` (value: `"AMBANK"`)

* `UOB` (value: `"UOB"`)

* `BNC` (value: `"BNC"`)

* `HANA` (value: `"HANA"`)

* `MUAMALAT` (value: `"MUAMALAT"`)

* `BANK_TRANSFER` (value: `"BANK_TRANSFER"`)

* `XenditEnumDefaultFallback` (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
12 changes: 12 additions & 0 deletions docs/payment_request/CardChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ Card Channel Code
## Enum


* `BAY_CARD_INSTALLMENT` (value: `"BAY_CARD_INSTALLMENT"`)

* `BBL_CARD_INSTALLMENT` (value: `"BBL_CARD_INSTALLMENT"`)

* `GPN` (value: `"GPN"`)

* `KBANK_CARD_INSTALLMENT` (value: `"KBANK_CARD_INSTALLMENT"`)

* `KTB_CARD_INSTALLMENT` (value: `"KTB_CARD_INSTALLMENT"`)

* `SCB_CARD_INSTALLMENT` (value: `"SCB_CARD_INSTALLMENT"`)

* `TTB_CARD_INSTALLMENT` (value: `"TTB_CARD_INSTALLMENT"`)

* `XenditEnumDefaultFallback` (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/payment_request/CardChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Card Channel Properties
| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | |
| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | |
| **expires_at** | **datetime** | | | |
| **installment_configuration** | [**CardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | |
| **skip_authorization** | **bool** | | To indicate whether to skip the authorization phase | |


[[Back to README]](../../README.md)
Expand Down
16 changes: 16 additions & 0 deletions docs/payment_request/CardInstallmentConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CardInstallmentConfiguration
> xendit.payment_request.model.CardInstallmentConfiguration
Card Installment Configuration

## Properties
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **terms** | **int** | | | |
| **interval** | **str** | | | |
| **code** | **str, none_type** | | | |


[[Back to README]](../../README.md)


2 changes: 1 addition & 1 deletion docs/payment_request/DirectDebitChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Direct Debit Channel Code

* `BRI` (value: `"BRI"`)

* `BNI` (value: `"BNI"`)
* `BNI_AUTOPAY` (value: `"BNI_AUTOPAY"`)

* `MANDIRI` (value: `"MANDIRI"`)

Expand Down
1 change: 1 addition & 0 deletions docs/payment_request/PaymentRequestChannelProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | |
| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | |
| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | |
| **pending_return_url** | **str** | | URL where the end-customer is redirected if the authorization is pending | |
| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | |
| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | |
| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | |
| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | |
| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | |
| **pending_return_url** | **str** | | URL where the end-customer is redirected if the authorization is pending | |
| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | |
| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | |
| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | |
Expand Down
6 changes: 6 additions & 0 deletions docs/payment_request/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ Virtual Account Channel Code

* `MSB` (value: `"MSB"`)

* `VPB` (value: `"VPB"`)

* `BIDV` (value: `"BIDV"`)

* `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`)

* `AMBANK` (value: `"AMBANK"`)

* `UOB` (value: `"UOB"`)

* `BNC` (value: `"BNC"`)

* `HANA` (value: `"HANA"`)
Expand Down
Loading

0 comments on commit ded2fb1

Please sign in to comment.