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 Dec 11, 2023
1 parent b9ab685 commit 8825e9b
Show file tree
Hide file tree
Showing 52 changed files with 90 additions and 63 deletions.
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: 4.0.0
* Package version: 4.1.0

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion docs/InvoiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### InvoiceCallback Object
>Invoice Callback Object
Model Documentation: [InvoiceCallback](/InvoiceCallback.md)
Model Documentation: [InvoiceCallback](invoice/InvoiceCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```python
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentMethodApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### PaymentMethodCallback Object
>Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings
Model Documentation: [PaymentMethodCallback](/PaymentMethodCallback.md)
Model Documentation: [PaymentMethodCallback](payment_method/PaymentMethodCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```python
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentRequestApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### PaymentCallback Object
>Callback for successful or failed payments made via the Payments API
Model Documentation: [PaymentCallback](/PaymentCallback.md)
Model Documentation: [PaymentCallback](payment_request/PaymentCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```python
Expand Down
2 changes: 1 addition & 1 deletion docs/RefundApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### RefundCallback Object
>Callback for successful or failed Refunds made via the Payments API
Model Documentation: [RefundCallback](/RefundCallback.md)
Model Documentation: [RefundCallback](refund/RefundCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```python
Expand Down
10 changes: 10 additions & 0 deletions docs/invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ Representing the available eWallet channels used for invoice-related transaction

* `JENIUSPAY` (value: `"JENIUSPAY"`)

* `MOMO` (value: `"MOMO"`)

* `ZALOPAY` (value: `"ZALOPAY"`)

* `VIETTELPAY` (value: `"VIETTELPAY"`)

* `VNPTWALLET` (value: `"VNPTWALLET"`)

* `APPOTA` (value: `"APPOTA"`)

* `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: 1 addition & 1 deletion docs/payment_request/PaymentCallbackData.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Represents the actual funds transaction/attempt made to a payment method
| **customer_id** | **str, none_type** | | | |
| **channel_properties** | [**PaymentRequestChannelProperties**](PaymentRequestChannelProperties.md) | | | |
| **payment_detail** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | |
| **failure_code** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | |
| **failure_code** | **str, none_type** | | | |
| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | |


Expand Down
2 changes: 2 additions & 0 deletions docs/payment_request/QRCodeChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ QR Code Channel Code
## Enum


* `QRIS` (value: `"QRIS"`)

* `DANA` (value: `"DANA"`)

* `RCBC` (value: `"RCBC"`)
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 @@ -39,6 +39,12 @@ Virtual Account Channel Code

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

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

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

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

* `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: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xendit-python"
version = "4.0.0"
version = "4.1.0"
description = "Xendit REST API Client for Python - Invoice, Payment Request, Payment Method, Refund, Balance, Transaction, Customer, and Payout Services https://xendit.github.io/apireference/"
authors = ["DevX Team <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "xendit"
VERSION = "4.0.0"
VERSION = "4.1.0"
# To install the library, run the following
#
# python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion xendit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""


__version__ = "4.0.0"
__version__ = "4.1.0"

# import ApiClient
from xendit.api_client import ApiClient
Expand Down
4 changes: 2 additions & 2 deletions xendit/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None,

# XENDIT headers
self.default_headers['xendit-lib'] = 'python'
self.default_headers['xendit-lib-ver'] = '4.0.0'
self.default_headers['xendit-lib-ver'] = '4.1.0'

self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.0.0/python'
self.user_agent = 'OpenAPI-Generator/4.1.0/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion xendit/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.45.2\n"\
"SDK Package Version: 4.0.0".\
"SDK Package Version: 4.1.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/invoice_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xendit-invoice-service descriptions # noqa: E501
The version of the OpenAPI document: 1.5.0
The version of the OpenAPI document: 1.6.0
"""

import re # noqa: F401
Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/address_object.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/alternative_display_item.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/bad_request_error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/bank.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/bank_code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/create_invoice_request.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/customer_object.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/direct_debit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/direct_debit_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/ewallet.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
15 changes: 10 additions & 5 deletions xendit/invoice/model/ewallet_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down Expand Up @@ -60,6 +60,11 @@ class EwalletType(ModelSimple):
'ASTRAPAY': "ASTRAPAY",
'NEXCASH': "NEXCASH",
'JENIUSPAY': "JENIUSPAY",
'MOMO': "MOMO",
'ZALOPAY': "ZALOPAY",
'VIETTELPAY': "VIETTELPAY",
'VNPTWALLET': "VNPTWALLET",
'APPOTA': "APPOTA",
'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE',
},
}
Expand Down Expand Up @@ -112,10 +117,10 @@ def __init__(self, *args, **kwargs):
Note that value can be passed either in args or in kwargs, but not in both.
Args:
args[0] (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", ] # noqa: E501
args[0] (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # noqa: E501
Keyword Args:
value (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", ] # noqa: E501
value (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Expand Down Expand Up @@ -208,10 +213,10 @@ def _from_openapi_data(cls, *args, **kwargs):
Note that value can be passed either in args or in kwargs, but not in both.
Args:
args[0] (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", ] # noqa: E501
args[0] (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # noqa: E501
Keyword Args:
value (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", ] # noqa: E501
value (str): Representing the available eWallet channels used for invoice-related transactions.., must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/forbidden_error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_callback.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_callback_item.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_client_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_currency.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_fee.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_item.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_not_found_error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_payment_method.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/invoice_status.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/notification_channel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/notification_preference.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/paylater.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/paylater_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/payment_details.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/qr_code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/qr_code_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.5.0
The version of the XENDIT API: 1.6.0
"""


Expand Down
Loading

0 comments on commit 8825e9b

Please sign in to comment.