From 8825e9b15441c922d8aacc128dbcc112ffc6c841 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Mon, 11 Dec 2023 08:26:46 +0000 Subject: [PATCH] Generated Xendit python SDK --- README.md | 2 +- docs/InvoiceApi.md | 2 +- docs/PaymentMethodApi.md | 2 +- docs/PaymentRequestApi.md | 2 +- docs/RefundApi.md | 2 +- docs/invoice/EwalletType.md | 10 ++++++++++ docs/payment_request/PaymentCallbackData.md | 2 +- docs/payment_request/QRCodeChannelCode.md | 2 ++ docs/payment_request/VirtualAccountChannelCode.md | 6 ++++++ pyproject.toml | 2 +- setup.py | 2 +- xendit/__init__.py | 2 +- xendit/api_client.py | 4 ++-- xendit/configuration.py | 2 +- xendit/invoice/invoice_api.py | 2 +- xendit/invoice/model/address_object.py | 2 +- xendit/invoice/model/alternative_display_item.py | 2 +- xendit/invoice/model/bad_request_error.py | 2 +- xendit/invoice/model/bank.py | 2 +- xendit/invoice/model/bank_code.py | 2 +- xendit/invoice/model/create_invoice_request.py | 2 +- xendit/invoice/model/customer_object.py | 2 +- xendit/invoice/model/direct_debit.py | 2 +- xendit/invoice/model/direct_debit_type.py | 2 +- xendit/invoice/model/ewallet.py | 2 +- xendit/invoice/model/ewallet_type.py | 15 ++++++++++----- xendit/invoice/model/forbidden_error.py | 2 +- xendit/invoice/model/invoice.py | 2 +- xendit/invoice/model/invoice_callback.py | 2 +- xendit/invoice/model/invoice_callback_item.py | 2 +- xendit/invoice/model/invoice_client_type.py | 2 +- xendit/invoice/model/invoice_currency.py | 2 +- .../model/invoice_error404_response_definition.py | 2 +- xendit/invoice/model/invoice_fee.py | 2 +- xendit/invoice/model/invoice_item.py | 2 +- xendit/invoice/model/invoice_not_found_error.py | 2 +- xendit/invoice/model/invoice_payment_method.py | 2 +- xendit/invoice/model/invoice_status.py | 2 +- xendit/invoice/model/notification_channel.py | 2 +- xendit/invoice/model/notification_preference.py | 2 +- xendit/invoice/model/paylater.py | 2 +- xendit/invoice/model/paylater_type.py | 2 +- xendit/invoice/model/payment_details.py | 2 +- xendit/invoice/model/qr_code.py | 2 +- xendit/invoice/model/qr_code_type.py | 2 +- xendit/invoice/model/retail_outlet.py | 2 +- xendit/invoice/model/retail_outlet_name.py | 2 +- xendit/invoice/model/server_error.py | 2 +- xendit/invoice/model/unauthorized_error.py | 2 +- .../model/payment_callback_data.py | 8 ++++---- .../payment_request/model/qr_code_channel_code.py | 9 +++++---- .../model/virtual_account_channel_code.py | 11 +++++++---- 52 files changed, 90 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index 77920920..b3a62240 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index c947c295..91d30d31 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -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 diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index a34ced45..24726be4 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -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 diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index 7941e4fa..f32eff8b 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -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 diff --git a/docs/RefundApi.md b/docs/RefundApi.md index 975c5f44..18900b5f 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -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 diff --git a/docs/invoice/EwalletType.md b/docs/invoice/EwalletType.md index 61911095..22d26c2d 100644 --- a/docs/invoice/EwalletType.md +++ b/docs/invoice/EwalletType.md @@ -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. diff --git a/docs/payment_request/PaymentCallbackData.md b/docs/payment_request/PaymentCallbackData.md index cf2599a2..09d658ac 100644 --- a/docs/payment_request/PaymentCallbackData.md +++ b/docs/payment_request/PaymentCallbackData.md @@ -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** | | | | diff --git a/docs/payment_request/QRCodeChannelCode.md b/docs/payment_request/QRCodeChannelCode.md index 14c45709..bda25c1f 100644 --- a/docs/payment_request/QRCodeChannelCode.md +++ b/docs/payment_request/QRCodeChannelCode.md @@ -7,6 +7,8 @@ QR Code Channel Code ## Enum + * `QRIS` (value: `"QRIS"`) + * `DANA` (value: `"DANA"`) * `RCBC` (value: `"RCBC"`) diff --git a/docs/payment_request/VirtualAccountChannelCode.md b/docs/payment_request/VirtualAccountChannelCode.md index 23f35de1..c5003c7e 100644 --- a/docs/payment_request/VirtualAccountChannelCode.md +++ b/docs/payment_request/VirtualAccountChannelCode.md @@ -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. diff --git a/pyproject.toml b/pyproject.toml index e35dc6e8..5ca64431 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT" diff --git a/setup.py b/setup.py index 8d7ac65c..b009256e 100644 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/xendit/__init__.py b/xendit/__init__.py index 4a99cc64..86b9a6ec 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "4.0.0" +__version__ = "4.1.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index 6c7c1a2d..a761fd6e 100644 --- a/xendit/api_client.py +++ b/xendit/api_client.py @@ -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 diff --git a/xendit/configuration.py b/xendit/configuration.py index c667e329..65475cc6 100644 --- a/xendit/configuration.py +++ b/xendit/configuration.py @@ -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): diff --git a/xendit/invoice/invoice_api.py b/xendit/invoice/invoice_api.py index d6ad3dee..42a60bbf 100644 --- a/xendit/invoice/invoice_api.py +++ b/xendit/invoice/invoice_api.py @@ -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 diff --git a/xendit/invoice/model/address_object.py b/xendit/invoice/model/address_object.py index 87ca2b09..61b342dc 100644 --- a/xendit/invoice/model/address_object.py +++ b/xendit/invoice/model/address_object.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/alternative_display_item.py b/xendit/invoice/model/alternative_display_item.py index ad664e34..bc467a8f 100644 --- a/xendit/invoice/model/alternative_display_item.py +++ b/xendit/invoice/model/alternative_display_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/bad_request_error.py b/xendit/invoice/model/bad_request_error.py index 7d12dd68..9a1acf9a 100644 --- a/xendit/invoice/model/bad_request_error.py +++ b/xendit/invoice/model/bad_request_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/bank.py b/xendit/invoice/model/bank.py index 89a86e46..60bea834 100644 --- a/xendit/invoice/model/bank.py +++ b/xendit/invoice/model/bank.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/bank_code.py b/xendit/invoice/model/bank_code.py index 0545c78a..b5e8accd 100644 --- a/xendit/invoice/model/bank_code.py +++ b/xendit/invoice/model/bank_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/create_invoice_request.py b/xendit/invoice/model/create_invoice_request.py index b330b33b..4c9d3d21 100644 --- a/xendit/invoice/model/create_invoice_request.py +++ b/xendit/invoice/model/create_invoice_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/customer_object.py b/xendit/invoice/model/customer_object.py index c81a8f49..4a385949 100644 --- a/xendit/invoice/model/customer_object.py +++ b/xendit/invoice/model/customer_object.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/direct_debit.py b/xendit/invoice/model/direct_debit.py index 5fcf53ea..84631593 100644 --- a/xendit/invoice/model/direct_debit.py +++ b/xendit/invoice/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/direct_debit_type.py b/xendit/invoice/model/direct_debit_type.py index df09780f..0fee0bef 100644 --- a/xendit/invoice/model/direct_debit_type.py +++ b/xendit/invoice/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/ewallet.py b/xendit/invoice/model/ewallet.py index 7945ad20..3d836a66 100644 --- a/xendit/invoice/model/ewallet.py +++ b/xendit/invoice/model/ewallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/ewallet_type.py b/xendit/invoice/model/ewallet_type.py index 815b1671..14bd3a20 100644 --- a/xendit/invoice/model/ewallet_type.py +++ b/xendit/invoice/model/ewallet_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ @@ -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', }, } @@ -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. @@ -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. diff --git a/xendit/invoice/model/forbidden_error.py b/xendit/invoice/model/forbidden_error.py index 230953b3..c462ed2b 100644 --- a/xendit/invoice/model/forbidden_error.py +++ b/xendit/invoice/model/forbidden_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice.py b/xendit/invoice/model/invoice.py index 245099cc..1e95b07c 100644 --- a/xendit/invoice/model/invoice.py +++ b/xendit/invoice/model/invoice.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_callback.py b/xendit/invoice/model/invoice_callback.py index a751357d..ad88f067 100644 --- a/xendit/invoice/model/invoice_callback.py +++ b/xendit/invoice/model/invoice_callback.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_callback_item.py b/xendit/invoice/model/invoice_callback_item.py index 59df7b42..e08bceed 100644 --- a/xendit/invoice/model/invoice_callback_item.py +++ b/xendit/invoice/model/invoice_callback_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_client_type.py b/xendit/invoice/model/invoice_client_type.py index 146f7de5..231ef911 100644 --- a/xendit/invoice/model/invoice_client_type.py +++ b/xendit/invoice/model/invoice_client_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_currency.py b/xendit/invoice/model/invoice_currency.py index 1422a12c..3f8fbdf8 100644 --- a/xendit/invoice/model/invoice_currency.py +++ b/xendit/invoice/model/invoice_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_error404_response_definition.py b/xendit/invoice/model/invoice_error404_response_definition.py index 5b1cd9c3..74c9a56f 100644 --- a/xendit/invoice/model/invoice_error404_response_definition.py +++ b/xendit/invoice/model/invoice_error404_response_definition.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_fee.py b/xendit/invoice/model/invoice_fee.py index 0893d892..cf60931d 100644 --- a/xendit/invoice/model/invoice_fee.py +++ b/xendit/invoice/model/invoice_fee.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_item.py b/xendit/invoice/model/invoice_item.py index 2cbe38a1..e4af5597 100644 --- a/xendit/invoice/model/invoice_item.py +++ b/xendit/invoice/model/invoice_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_not_found_error.py b/xendit/invoice/model/invoice_not_found_error.py index 78edb7cc..a26c2ec5 100644 --- a/xendit/invoice/model/invoice_not_found_error.py +++ b/xendit/invoice/model/invoice_not_found_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_payment_method.py b/xendit/invoice/model/invoice_payment_method.py index bcf7cf34..3c056c51 100644 --- a/xendit/invoice/model/invoice_payment_method.py +++ b/xendit/invoice/model/invoice_payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/invoice_status.py b/xendit/invoice/model/invoice_status.py index 4f36b32d..5486423f 100644 --- a/xendit/invoice/model/invoice_status.py +++ b/xendit/invoice/model/invoice_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/notification_channel.py b/xendit/invoice/model/notification_channel.py index 0f75a153..e9b4ffcd 100644 --- a/xendit/invoice/model/notification_channel.py +++ b/xendit/invoice/model/notification_channel.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/notification_preference.py b/xendit/invoice/model/notification_preference.py index 8f1f20b2..3e75ba4a 100644 --- a/xendit/invoice/model/notification_preference.py +++ b/xendit/invoice/model/notification_preference.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/paylater.py b/xendit/invoice/model/paylater.py index 462592b9..d4e81c8f 100644 --- a/xendit/invoice/model/paylater.py +++ b/xendit/invoice/model/paylater.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/paylater_type.py b/xendit/invoice/model/paylater_type.py index fa89b431..b8128ef7 100644 --- a/xendit/invoice/model/paylater_type.py +++ b/xendit/invoice/model/paylater_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/payment_details.py b/xendit/invoice/model/payment_details.py index 282a3427..d13b014f 100644 --- a/xendit/invoice/model/payment_details.py +++ b/xendit/invoice/model/payment_details.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/qr_code.py b/xendit/invoice/model/qr_code.py index 977b4188..39772fb3 100644 --- a/xendit/invoice/model/qr_code.py +++ b/xendit/invoice/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/qr_code_type.py b/xendit/invoice/model/qr_code_type.py index 10895f52..594addba 100644 --- a/xendit/invoice/model/qr_code_type.py +++ b/xendit/invoice/model/qr_code_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/retail_outlet.py b/xendit/invoice/model/retail_outlet.py index 9e6afc0a..df50bb7e 100644 --- a/xendit/invoice/model/retail_outlet.py +++ b/xendit/invoice/model/retail_outlet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/retail_outlet_name.py b/xendit/invoice/model/retail_outlet_name.py index 2ff44a26..f08d0358 100644 --- a/xendit/invoice/model/retail_outlet_name.py +++ b/xendit/invoice/model/retail_outlet_name.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/server_error.py b/xendit/invoice/model/server_error.py index 54caac54..2e83a45f 100644 --- a/xendit/invoice/model/server_error.py +++ b/xendit/invoice/model/server_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/invoice/model/unauthorized_error.py b/xendit/invoice/model/unauthorized_error.py index b3ac6b77..5ea10dcf 100644 --- a/xendit/invoice/model/unauthorized_error.py +++ b/xendit/invoice/model/unauthorized_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.5.0 + The version of the XENDIT API: 1.6.0 """ diff --git a/xendit/payment_request/model/payment_callback_data.py b/xendit/payment_request/model/payment_callback_data.py index f7c7d436..d792893e 100644 --- a/xendit/payment_request/model/payment_callback_data.py +++ b/xendit/payment_request/model/payment_callback_data.py @@ -98,7 +98,7 @@ def openapi_types(): 'customer_id': (str, none_type, none_type), # noqa: E501 'channel_properties': (PaymentRequestChannelProperties, none_type), # noqa: E501 'payment_detail': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type, none_type), # noqa: E501 - 'failure_code': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type, none_type), # noqa: E501 + 'failure_code': (str, none_type, none_type), # noqa: E501 'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type, none_type), # noqa: E501 } @@ -181,7 +181,7 @@ def _from_openapi_data(cls, id, reference_id, currency, amount, country, status, customer_id (str, none_type): [optional] # noqa: E501 channel_properties (PaymentRequestChannelProperties): [optional] # noqa: E501 payment_detail ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 - failure_code ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + failure_code (str, none_type): [optional] # noqa: E501 metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 """ @@ -259,7 +259,7 @@ def __init__(self, customer_id: str | None = None, channel_properties: PaymentRequestChannelProperties | None = None, payment_detail: dict | None = None, - failure_code: dict | None = None, + failure_code: str | None = None, metadata: dict | None = None, *args, **kwargs ): # noqa: E501 @@ -312,7 +312,7 @@ def __init__(self, customer_id (str, none_type): [optional] # noqa: E501 channel_properties (PaymentRequestChannelProperties): [optional] # noqa: E501 payment_detail ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 - failure_code ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + failure_code (str, none_type): [optional] # noqa: E501 metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 """ diff --git a/xendit/payment_request/model/qr_code_channel_code.py b/xendit/payment_request/model/qr_code_channel_code.py index 1a3975e9..729107ac 100644 --- a/xendit/payment_request/model/qr_code_channel_code.py +++ b/xendit/payment_request/model/qr_code_channel_code.py @@ -51,6 +51,7 @@ class QRCodeChannelCode(ModelSimple): allowed_values = { ('value',): { 'None': None, + 'QRIS': "QRIS", 'DANA': "DANA", 'RCBC': "RCBC", 'LINKAJA': "LINKAJA", @@ -107,10 +108,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): QR Code Channel Code., must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 + args[0] (str): QR Code Channel Code., must be one of ["QRIS", "DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 Keyword Args: - value (str): QR Code Channel Code., must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 + value (str): QR Code Channel Code., must be one of ["QRIS", "DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # 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. @@ -203,10 +204,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): QR Code Channel Code., must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 + args[0] (str): QR Code Channel Code., must be one of ["QRIS", "DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 Keyword Args: - value (str): QR Code Channel Code., must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # noqa: E501 + value (str): QR Code Channel Code., must be one of ["QRIS", "DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] # 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. diff --git a/xendit/payment_request/model/virtual_account_channel_code.py b/xendit/payment_request/model/virtual_account_channel_code.py index ff30b6ea..17ff3378 100644 --- a/xendit/payment_request/model/virtual_account_channel_code.py +++ b/xendit/payment_request/model/virtual_account_channel_code.py @@ -66,6 +66,9 @@ class VirtualAccountChannelCode(ModelSimple): 'MSB': "MSB", 'STANDARD_CHARTERED': "STANDARD_CHARTERED", 'AMBANK': "AMBANK", + 'BNC': "BNC", + 'HANA': "HANA", + 'MUAMALAT': "MUAMALAT", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -118,10 +121,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): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", "BNC", "HANA", "MUAMALAT", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", "BNC", "HANA", "MUAMALAT", ] # 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. @@ -214,10 +217,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): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", "BNC", "HANA", "MUAMALAT", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", "BNC", "HANA", "MUAMALAT", ] # 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.