From bba09ec18ba42bf289cc052673e36493f862c72e Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Fri, 8 Mar 2024 06:19:46 +0000 Subject: [PATCH] Generated Xendit python SDK --- README.md | 2 +- docs/InvoiceApi.md | 10 +- docs/invoice/BankCode.md | 4 + docs/invoice/ChannelProperties.md | 14 + docs/invoice/ChannelPropertiesCards.md | 14 + docs/invoice/CreateInvoiceRequest.md | 1 + docs/invoice/DirectDebitType.md | 78 +++++ docs/invoice/EwalletType.md | 8 + docs/invoice/Invoice.md | 1 + docs/invoice/InvoicePaymentMethod.md | 2 + docs/invoice/NotificationPreference.md | 1 - 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/__init__.py | 2 + xendit/invoice/model/address_object.py | 2 +- .../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 | 12 +- xendit/invoice/model/channel_properties.py | 275 ++++++++++++++++++ .../invoice/model/channel_properties_cards.py | 271 +++++++++++++++++ .../invoice/model/create_invoice_request.py | 11 +- xendit/invoice/model/customer_object.py | 2 +- xendit/invoice/model/direct_debit.py | 2 +- xendit/invoice/model/direct_debit_type.py | 49 +++- xendit/invoice/model/ewallet.py | 2 +- xendit/invoice/model/ewallet_type.py | 14 +- xendit/invoice/model/forbidden_error.py | 2 +- xendit/invoice/model/invoice.py | 11 +- 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 +- .../invoice_error404_response_definition.py | 2 +- xendit/invoice/model/invoice_fee.py | 2 +- xendit/invoice/model/invoice_item.py | 2 +- .../invoice/model/invoice_not_found_error.py | 2 +- .../invoice/model/invoice_payment_method.py | 11 +- xendit/invoice/model/invoice_status.py | 2 +- xendit/invoice/model/notification_channel.py | 2 +- .../invoice/model/notification_preference.py | 9 +- 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 +- 54 files changed, 799 insertions(+), 69 deletions(-) create mode 100644 docs/invoice/ChannelProperties.md create mode 100644 docs/invoice/ChannelPropertiesCards.md create mode 100644 xendit/invoice/model/channel_properties.py create mode 100644 xendit/invoice/model/channel_properties_cards.py diff --git a/README.md b/README.md index 19726df7..1db4a3fb 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.2.0 +* Package version: 4.3.0 ## Requirements diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index 91d30d31..44dce07e 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -111,9 +111,6 @@ create_invoice_request = CreateInvoiceRequest( invoice_reminder=[ NotificationChannel("email"), ], - invoice_expired=[ - NotificationChannel("email"), - ], invoice_paid=[ NotificationChannel("email"), ], @@ -145,6 +142,13 @@ create_invoice_request = CreateInvoiceRequest( value=3.14, ), ], + channel_properties=ChannelProperties( + cards=ChannelPropertiesCards( + allowed_bins=[ + "allowed_bins_example", + ], + ), + ), ) # CreateInvoiceRequest for_user_id = "62efe4c33e45694d63f585f0" # str | Business ID of the sub-account merchant (XP feature) diff --git a/docs/invoice/BankCode.md b/docs/invoice/BankCode.md index edd4511a..dad4a302 100644 --- a/docs/invoice/BankCode.md +++ b/docs/invoice/BankCode.md @@ -27,6 +27,10 @@ Representing the available bank channels used for invoice-related transactions. * `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/docs/invoice/ChannelProperties.md b/docs/invoice/ChannelProperties.md new file mode 100644 index 00000000..44962420 --- /dev/null +++ b/docs/invoice/ChannelProperties.md @@ -0,0 +1,14 @@ +# ChannelProperties +> xendit.invoice.model.ChannelProperties + +An object representing channel-specific properties. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **cards** | [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/ChannelPropertiesCards.md b/docs/invoice/ChannelPropertiesCards.md new file mode 100644 index 00000000..ae952734 --- /dev/null +++ b/docs/invoice/ChannelPropertiesCards.md @@ -0,0 +1,14 @@ +# ChannelPropertiesCards +> xendit.invoice.model.ChannelPropertiesCards + +An object representing properties specific for credit card payment method. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **allowed_bins** | **[str]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/CreateInvoiceRequest.md b/docs/invoice/CreateInvoiceRequest.md index c79fc2c9..15b48a58 100644 --- a/docs/invoice/CreateInvoiceRequest.md +++ b/docs/invoice/CreateInvoiceRequest.md @@ -26,6 +26,7 @@ An object representing for an invoice creation request. | **reminder_time_unit** | **str** | | The unit of the reminder time. | | | **items** | [**[InvoiceItem]**](InvoiceItem.md) | | An array of items included in the invoice. | | | **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | | +| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | | [[Back to README]](../../README.md) diff --git a/docs/invoice/DirectDebitType.md b/docs/invoice/DirectDebitType.md index cdc45dc3..1aa9e401 100644 --- a/docs/invoice/DirectDebitType.md +++ b/docs/invoice/DirectDebitType.md @@ -45,6 +45,84 @@ Representing the available Direct Debit channels used for invoice-related transa * `DC_CHINABANK` (value: `"DC_CHINABANK"`) + * `DD_PUBLIC_FPX` (value: `"DD_PUBLIC_FPX"`) + + * `DD_AMBANK_FPX` (value: `"DD_AMBANK_FPX"`) + + * `DD_KFH_FPX` (value: `"DD_KFH_FPX"`) + + * `DD_AGRO_FPX` (value: `"DD_AGRO_FPX"`) + + * `DD_AFFIN_FPX` (value: `"DD_AFFIN_FPX"`) + + * `DD_ALLIANCE_FPX` (value: `"DD_ALLIANCE_FPX"`) + + * `DD_MUAMALAT_FPX` (value: `"DD_MUAMALAT_FPX"`) + + * `DD_HLB_FPX` (value: `"DD_HLB_FPX"`) + + * `DD_ISLAM_FPX` (value: `"DD_ISLAM_FPX"`) + + * `DD_RAKYAT_FPX` (value: `"DD_RAKYAT_FPX"`) + + * `DD_CIMB_FPX` (value: `"DD_CIMB_FPX"`) + + * `DD_UOB_FPX` (value: `"DD_UOB_FPX"`) + + * `DD_BOC_FPX` (value: `"DD_BOC_FPX"`) + + * `DD_BSN_FPX` (value: `"DD_BSN_FPX"`) + + * `DD_OCBC_FPX` (value: `"DD_OCBC_FPX"`) + + * `DD_HSBC_FPX` (value: `"DD_HSBC_FPX"`) + + * `DD_SCH_FPX` (value: `"DD_SCH_FPX"`) + + * `DD_MAYB2U_FPX` (value: `"DD_MAYB2U_FPX"`) + + * `DD_RHB_FPX` (value: `"DD_RHB_FPX"`) + + * `DD_UOB_FPX_BUSINESS` (value: `"DD_UOB_FPX_BUSINESS"`) + + * `DD_AGRO_FPX_BUSINESS` (value: `"DD_AGRO_FPX_BUSINESS"`) + + * `DD_ALLIANCE_FPX_BUSINESS` (value: `"DD_ALLIANCE_FPX_BUSINESS"`) + + * `DD_AMBANK_FPX_BUSINESS` (value: `"DD_AMBANK_FPX_BUSINESS"`) + + * `DD_ISLAM_FPX_BUSINESS` (value: `"DD_ISLAM_FPX_BUSINESS"`) + + * `DD_MUAMALAT_FPX_BUSINESS` (value: `"DD_MUAMALAT_FPX_BUSINESS"`) + + * `DD_HLB_FPX_BUSINESS` (value: `"DD_HLB_FPX_BUSINESS"`) + + * `DD_HSBC_FPX_BUSINESS` (value: `"DD_HSBC_FPX_BUSINESS"`) + + * `DD_RAKYAT_FPX_BUSINESS` (value: `"DD_RAKYAT_FPX_BUSINESS"`) + + * `DD_KFH_FPX_BUSINESS` (value: `"DD_KFH_FPX_BUSINESS"`) + + * `DD_OCBC_FPX_BUSINESS` (value: `"DD_OCBC_FPX_BUSINESS"`) + + * `DD_PUBLIC_FPX_BUSINESS` (value: `"DD_PUBLIC_FPX_BUSINESS"`) + + * `DD_RHB_FPX_BUSINESS` (value: `"DD_RHB_FPX_BUSINESS"`) + + * `DD_SCH_FPX_BUSINESS` (value: `"DD_SCH_FPX_BUSINESS"`) + + * `DD_CITIBANK_FPX_BUSINESS` (value: `"DD_CITIBANK_FPX_BUSINESS"`) + + * `DD_BNP_FPX_BUSINESS` (value: `"DD_BNP_FPX_BUSINESS"`) + + * `DD_DEUTSCHE_FPX_BUSINESS` (value: `"DD_DEUTSCHE_FPX_BUSINESS"`) + + * `DD_MAYB2E_FPX_BUSINESS` (value: `"DD_MAYB2E_FPX_BUSINESS"`) + + * `DD_CIMB_FPX_BUSINESS` (value: `"DD_CIMB_FPX_BUSINESS"`) + + * `DD_AFFIN_FPX_BUSINESS` (value: `"DD_AFFIN_FPX_BUSINESS"`) + * `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/invoice/EwalletType.md b/docs/invoice/EwalletType.md index 22d26c2d..c1438f7c 100644 --- a/docs/invoice/EwalletType.md +++ b/docs/invoice/EwalletType.md @@ -37,6 +37,14 @@ Representing the available eWallet channels used for invoice-related transaction * `APPOTA` (value: `"APPOTA"`) + * `LINEPAY` (value: `"LINEPAY"`) + + * `TRUEMONEY` (value: `"TRUEMONEY"`) + + * `WECHATPAY` (value: `"WECHATPAY"`) + + * `TOUCHNGO` (value: `"TOUCHNGO"`) + * `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/invoice/Invoice.md b/docs/invoice/Invoice.md index 570e6a5c..f140dd02 100644 --- a/docs/invoice/Invoice.md +++ b/docs/invoice/Invoice.md @@ -39,6 +39,7 @@ An object representing details for an invoice. | **customer** | [**CustomerObject**](CustomerObject.md) | | | | | **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | | | **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | | +| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | | [[Back to README]](../../README.md) diff --git a/docs/invoice/InvoicePaymentMethod.md b/docs/invoice/InvoicePaymentMethod.md index 9b185e5a..75a4de3c 100644 --- a/docs/invoice/InvoicePaymentMethod.md +++ b/docs/invoice/InvoicePaymentMethod.md @@ -27,6 +27,8 @@ Representing the payment method used for an invoice. * `PAYLATER` (value: `"PAYLATER"`) + * `CRYPTOCURRENCY` (value: `"CRYPTOCURRENCY"`) + * `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/invoice/NotificationPreference.md b/docs/invoice/NotificationPreference.md index 5a2b3247..5cb7dc82 100644 --- a/docs/invoice/NotificationPreference.md +++ b/docs/invoice/NotificationPreference.md @@ -8,7 +8,6 @@ An object representing notification preferences for different invoice events. |------------|:-------------:|:-------------:|-------------|:-------------:| | **invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is created. | | | **invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for invoice reminders. | | -| **invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for expired invoices. | | | **invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | | diff --git a/pyproject.toml b/pyproject.toml index e1cd606a..d5adc2cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xendit-python" -version = "4.2.0" +version = "4.3.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 623279ce..3a91b9f9 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "xendit" -VERSION = "4.2.0" +VERSION = "4.3.0" # To install the library, run the following # # python setup.py install diff --git a/xendit/__init__.py b/xendit/__init__.py index bab661ae..b2b0331a 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "4.2.0" +__version__ = "4.3.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index 8af3a420..06e6454e 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.2.0' + self.default_headers['xendit-lib-ver'] = '4.3.0' self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.2.0/python' + self.user_agent = 'OpenAPI-Generator/4.3.0/python' def __enter__(self): return self diff --git a/xendit/configuration.py b/xendit/configuration.py index 5db0144a..04b0ef37 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.2.0".\ + "SDK Package Version: 4.3.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 42a60bbf..db2aedff 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.6.0 + The version of the OpenAPI document: 1.7.6 """ import re # noqa: F401 diff --git a/xendit/invoice/model/__init__.py b/xendit/invoice/model/__init__.py index 7beac30d..3813035f 100644 --- a/xendit/invoice/model/__init__.py +++ b/xendit/invoice/model/__init__.py @@ -14,6 +14,8 @@ from xendit.invoice.model.bad_request_error import BadRequestError from xendit.invoice.model.bank import Bank from xendit.invoice.model.bank_code import BankCode +from xendit.invoice.model.channel_properties import ChannelProperties +from xendit.invoice.model.channel_properties_cards import ChannelPropertiesCards from xendit.invoice.model.create_invoice_request import CreateInvoiceRequest from xendit.invoice.model.customer_object import CustomerObject from xendit.invoice.model.direct_debit import DirectDebit diff --git a/xendit/invoice/model/address_object.py b/xendit/invoice/model/address_object.py index 61b342dc..f26f7e89 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/alternative_display_item.py b/xendit/invoice/model/alternative_display_item.py index bc467a8f..08e2e3e2 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/bad_request_error.py b/xendit/invoice/model/bad_request_error.py index 9a1acf9a..58029fb6 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/bank.py b/xendit/invoice/model/bank.py index 60bea834..b440cc38 100644 --- a/xendit/invoice/model/bank.py +++ b/xendit/invoice/model/bank.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/bank_code.py b/xendit/invoice/model/bank_code.py index b5e8accd..e0e7b51c 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -60,6 +60,8 @@ class BankCode(ModelSimple): 'SAHABAT_SAMPOERNA': "SAHABAT_SAMPOERNA", 'CIMB': "CIMB", 'BNC': "BNC", + 'HANA': "HANA", + 'MUAMALAT': "MUAMALAT", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -112,10 +114,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 bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", ] # noqa: E501 + args[0] (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", "HANA", "MUAMALAT", ] # noqa: E501 Keyword Args: - value (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", ] # noqa: E501 + value (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "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. @@ -208,10 +210,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 bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", ] # noqa: E501 + args[0] (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", "HANA", "MUAMALAT", ] # noqa: E501 Keyword Args: - value (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", ] # noqa: E501 + value (str): Representing the available bank channels used for invoice-related transactions.., must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "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. diff --git a/xendit/invoice/model/channel_properties.py b/xendit/invoice/model/channel_properties.py new file mode 100644 index 00000000..3374595b --- /dev/null +++ b/xendit/invoice/model/channel_properties.py @@ -0,0 +1,275 @@ +""" + The version of the XENDIT API: 1.7.6 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.invoice.model.channel_properties_cards import ChannelPropertiesCards +globals()['ChannelPropertiesCards'] = ChannelPropertiesCards + +def lazy_import(): + pass + +class ChannelProperties(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'cards': (ChannelPropertiesCards, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'cards': 'cards', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ChannelProperties - a model defined in OpenAPI + + Keyword Args: + _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. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + cards (ChannelPropertiesCards): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + cards: ChannelPropertiesCards | None = None, + *args, **kwargs + ): # noqa: E501 + """ChannelProperties - a model defined in OpenAPI + + + Keyword Args: + _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. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + cards (ChannelPropertiesCards): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if cards is not None: + self.cards = cards + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/invoice/model/channel_properties_cards.py b/xendit/invoice/model/channel_properties_cards.py new file mode 100644 index 00000000..07c2aa64 --- /dev/null +++ b/xendit/invoice/model/channel_properties_cards.py @@ -0,0 +1,271 @@ +""" + The version of the XENDIT API: 1.7.6 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class ChannelPropertiesCards(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'allowed_bins': ([str], none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'allowed_bins': 'allowed_bins', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ChannelPropertiesCards - a model defined in OpenAPI + + Keyword Args: + _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. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + allowed_bins ([str]): An array of allowed BINs (6 or 8 digits) for credit card payments.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + allowed_bins: list | None = None, + *args, **kwargs + ): # noqa: E501 + """ChannelPropertiesCards - a model defined in OpenAPI + + + Keyword Args: + _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. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + allowed_bins ([str]): An array of allowed BINs (6 or 8 digits) for credit card payments.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if allowed_bins is not None: + self.allowed_bins = allowed_bins + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/invoice/model/create_invoice_request.py b/xendit/invoice/model/create_invoice_request.py index 4c9d3d21..09322082 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -24,10 +24,12 @@ ) from xendit.exceptions import ApiAttributeError +from xendit.invoice.model.channel_properties import ChannelProperties from xendit.invoice.model.customer_object import CustomerObject from xendit.invoice.model.invoice_fee import InvoiceFee from xendit.invoice.model.invoice_item import InvoiceItem from xendit.invoice.model.notification_preference import NotificationPreference +globals()['ChannelProperties'] = ChannelProperties globals()['CustomerObject'] = CustomerObject globals()['InvoiceFee'] = InvoiceFee globals()['InvoiceItem'] = InvoiceItem @@ -109,6 +111,7 @@ def openapi_types(): 'reminder_time_unit': (str, none_type), # noqa: E501 'items': ([InvoiceItem], none_type), # noqa: E501 'fees': ([InvoiceFee], none_type), # noqa: E501 + 'channel_properties': (ChannelProperties, none_type), # noqa: E501 } @cached_property @@ -137,6 +140,7 @@ def discriminator(): 'reminder_time_unit': 'reminder_time_unit', # noqa: E501 'items': 'items', # noqa: E501 'fees': 'fees', # noqa: E501 + 'channel_properties': 'channel_properties', # noqa: E501 } read_only_vars = { @@ -202,6 +206,7 @@ def _from_openapi_data(cls, external_id, amount, *args, **kwargs): # noqa: E501 reminder_time_unit (str): The unit of the reminder time.. [optional] # noqa: E501 items ([InvoiceItem]): An array of items included in the invoice.. [optional] # noqa: E501 fees ([InvoiceFee]): An array of fees associated with the invoice.. [optional] # noqa: E501 + channel_properties (ChannelProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -278,6 +283,7 @@ def __init__(self, reminder_time_unit: str | None = None, items: list | None = None, fees: list | None = None, + channel_properties: ChannelProperties | None = None, *args, **kwargs ): # noqa: E501 """CreateInvoiceRequest - a model defined in OpenAPI @@ -336,6 +342,7 @@ def __init__(self, reminder_time_unit (str): The unit of the reminder time.. [optional] # noqa: E501 items ([InvoiceItem]): An array of items included in the invoice.. [optional] # noqa: E501 fees ([InvoiceFee]): An array of fees associated with the invoice.. [optional] # noqa: E501 + channel_properties (ChannelProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -405,6 +412,8 @@ def __init__(self, self.items = items if fees is not None: self.fees = fees + if channel_properties is not None: + self.channel_properties = channel_properties for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/invoice/model/customer_object.py b/xendit/invoice/model/customer_object.py index 4a385949..15c22181 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/direct_debit.py b/xendit/invoice/model/direct_debit.py index 84631593..8331284a 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/direct_debit_type.py b/xendit/invoice/model/direct_debit_type.py index 0fee0bef..110952d9 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -69,6 +69,45 @@ class DirectDebitType(ModelSimple): 'DD_CHINABANK': "DD_CHINABANK", 'BA_CHINABANK': "BA_CHINABANK", 'DC_CHINABANK': "DC_CHINABANK", + 'DD_PUBLIC_FPX': "DD_PUBLIC_FPX", + 'DD_AMBANK_FPX': "DD_AMBANK_FPX", + 'DD_KFH_FPX': "DD_KFH_FPX", + 'DD_AGRO_FPX': "DD_AGRO_FPX", + 'DD_AFFIN_FPX': "DD_AFFIN_FPX", + 'DD_ALLIANCE_FPX': "DD_ALLIANCE_FPX", + 'DD_MUAMALAT_FPX': "DD_MUAMALAT_FPX", + 'DD_HLB_FPX': "DD_HLB_FPX", + 'DD_ISLAM_FPX': "DD_ISLAM_FPX", + 'DD_RAKYAT_FPX': "DD_RAKYAT_FPX", + 'DD_CIMB_FPX': "DD_CIMB_FPX", + 'DD_UOB_FPX': "DD_UOB_FPX", + 'DD_BOC_FPX': "DD_BOC_FPX", + 'DD_BSN_FPX': "DD_BSN_FPX", + 'DD_OCBC_FPX': "DD_OCBC_FPX", + 'DD_HSBC_FPX': "DD_HSBC_FPX", + 'DD_SCH_FPX': "DD_SCH_FPX", + 'DD_MAYB2U_FPX': "DD_MAYB2U_FPX", + 'DD_RHB_FPX': "DD_RHB_FPX", + 'DD_UOB_FPX_BUSINESS': "DD_UOB_FPX_BUSINESS", + 'DD_AGRO_FPX_BUSINESS': "DD_AGRO_FPX_BUSINESS", + 'DD_ALLIANCE_FPX_BUSINESS': "DD_ALLIANCE_FPX_BUSINESS", + 'DD_AMBANK_FPX_BUSINESS': "DD_AMBANK_FPX_BUSINESS", + 'DD_ISLAM_FPX_BUSINESS': "DD_ISLAM_FPX_BUSINESS", + 'DD_MUAMALAT_FPX_BUSINESS': "DD_MUAMALAT_FPX_BUSINESS", + 'DD_HLB_FPX_BUSINESS': "DD_HLB_FPX_BUSINESS", + 'DD_HSBC_FPX_BUSINESS': "DD_HSBC_FPX_BUSINESS", + 'DD_RAKYAT_FPX_BUSINESS': "DD_RAKYAT_FPX_BUSINESS", + 'DD_KFH_FPX_BUSINESS': "DD_KFH_FPX_BUSINESS", + 'DD_OCBC_FPX_BUSINESS': "DD_OCBC_FPX_BUSINESS", + 'DD_PUBLIC_FPX_BUSINESS': "DD_PUBLIC_FPX_BUSINESS", + 'DD_RHB_FPX_BUSINESS': "DD_RHB_FPX_BUSINESS", + 'DD_SCH_FPX_BUSINESS': "DD_SCH_FPX_BUSINESS", + 'DD_CITIBANK_FPX_BUSINESS': "DD_CITIBANK_FPX_BUSINESS", + 'DD_BNP_FPX_BUSINESS': "DD_BNP_FPX_BUSINESS", + 'DD_DEUTSCHE_FPX_BUSINESS': "DD_DEUTSCHE_FPX_BUSINESS", + 'DD_MAYB2E_FPX_BUSINESS': "DD_MAYB2E_FPX_BUSINESS", + 'DD_CIMB_FPX_BUSINESS': "DD_CIMB_FPX_BUSINESS", + 'DD_AFFIN_FPX_BUSINESS': "DD_AFFIN_FPX_BUSINESS", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -121,10 +160,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 Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", ] # noqa: E501 + args[0] (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", "DD_PUBLIC_FPX", "DD_AMBANK_FPX", "DD_KFH_FPX", "DD_AGRO_FPX", "DD_AFFIN_FPX", "DD_ALLIANCE_FPX", "DD_MUAMALAT_FPX", "DD_HLB_FPX", "DD_ISLAM_FPX", "DD_RAKYAT_FPX", "DD_CIMB_FPX", "DD_UOB_FPX", "DD_BOC_FPX", "DD_BSN_FPX", "DD_OCBC_FPX", "DD_HSBC_FPX", "DD_SCH_FPX", "DD_MAYB2U_FPX", "DD_RHB_FPX", "DD_UOB_FPX_BUSINESS", "DD_AGRO_FPX_BUSINESS", "DD_ALLIANCE_FPX_BUSINESS", "DD_AMBANK_FPX_BUSINESS", "DD_ISLAM_FPX_BUSINESS", "DD_MUAMALAT_FPX_BUSINESS", "DD_HLB_FPX_BUSINESS", "DD_HSBC_FPX_BUSINESS", "DD_RAKYAT_FPX_BUSINESS", "DD_KFH_FPX_BUSINESS", "DD_OCBC_FPX_BUSINESS", "DD_PUBLIC_FPX_BUSINESS", "DD_RHB_FPX_BUSINESS", "DD_SCH_FPX_BUSINESS", "DD_CITIBANK_FPX_BUSINESS", "DD_BNP_FPX_BUSINESS", "DD_DEUTSCHE_FPX_BUSINESS", "DD_MAYB2E_FPX_BUSINESS", "DD_CIMB_FPX_BUSINESS", "DD_AFFIN_FPX_BUSINESS", ] # noqa: E501 Keyword Args: - value (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", ] # noqa: E501 + value (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", "DD_PUBLIC_FPX", "DD_AMBANK_FPX", "DD_KFH_FPX", "DD_AGRO_FPX", "DD_AFFIN_FPX", "DD_ALLIANCE_FPX", "DD_MUAMALAT_FPX", "DD_HLB_FPX", "DD_ISLAM_FPX", "DD_RAKYAT_FPX", "DD_CIMB_FPX", "DD_UOB_FPX", "DD_BOC_FPX", "DD_BSN_FPX", "DD_OCBC_FPX", "DD_HSBC_FPX", "DD_SCH_FPX", "DD_MAYB2U_FPX", "DD_RHB_FPX", "DD_UOB_FPX_BUSINESS", "DD_AGRO_FPX_BUSINESS", "DD_ALLIANCE_FPX_BUSINESS", "DD_AMBANK_FPX_BUSINESS", "DD_ISLAM_FPX_BUSINESS", "DD_MUAMALAT_FPX_BUSINESS", "DD_HLB_FPX_BUSINESS", "DD_HSBC_FPX_BUSINESS", "DD_RAKYAT_FPX_BUSINESS", "DD_KFH_FPX_BUSINESS", "DD_OCBC_FPX_BUSINESS", "DD_PUBLIC_FPX_BUSINESS", "DD_RHB_FPX_BUSINESS", "DD_SCH_FPX_BUSINESS", "DD_CITIBANK_FPX_BUSINESS", "DD_BNP_FPX_BUSINESS", "DD_DEUTSCHE_FPX_BUSINESS", "DD_MAYB2E_FPX_BUSINESS", "DD_CIMB_FPX_BUSINESS", "DD_AFFIN_FPX_BUSINESS", ] # 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. @@ -217,10 +256,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 Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", ] # noqa: E501 + args[0] (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", "DD_PUBLIC_FPX", "DD_AMBANK_FPX", "DD_KFH_FPX", "DD_AGRO_FPX", "DD_AFFIN_FPX", "DD_ALLIANCE_FPX", "DD_MUAMALAT_FPX", "DD_HLB_FPX", "DD_ISLAM_FPX", "DD_RAKYAT_FPX", "DD_CIMB_FPX", "DD_UOB_FPX", "DD_BOC_FPX", "DD_BSN_FPX", "DD_OCBC_FPX", "DD_HSBC_FPX", "DD_SCH_FPX", "DD_MAYB2U_FPX", "DD_RHB_FPX", "DD_UOB_FPX_BUSINESS", "DD_AGRO_FPX_BUSINESS", "DD_ALLIANCE_FPX_BUSINESS", "DD_AMBANK_FPX_BUSINESS", "DD_ISLAM_FPX_BUSINESS", "DD_MUAMALAT_FPX_BUSINESS", "DD_HLB_FPX_BUSINESS", "DD_HSBC_FPX_BUSINESS", "DD_RAKYAT_FPX_BUSINESS", "DD_KFH_FPX_BUSINESS", "DD_OCBC_FPX_BUSINESS", "DD_PUBLIC_FPX_BUSINESS", "DD_RHB_FPX_BUSINESS", "DD_SCH_FPX_BUSINESS", "DD_CITIBANK_FPX_BUSINESS", "DD_BNP_FPX_BUSINESS", "DD_DEUTSCHE_FPX_BUSINESS", "DD_MAYB2E_FPX_BUSINESS", "DD_CIMB_FPX_BUSINESS", "DD_AFFIN_FPX_BUSINESS", ] # noqa: E501 Keyword Args: - value (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", ] # noqa: E501 + value (str): Representing the available Direct Debit channels used for invoice-related transactions.., must be one of ["BA_BRI", "DC_BRI", "DD_BRI", "DD_MANDIRI", "BA_BPI", "DC_BPI", "DD_BPI", "BA_UBP", "DC_UBP", "DD_UBP", "BCA_KLIKPAY", "BA_BCA_KLIKPAY", "DC_BCA_KLIKPAY", "DD_BCA_KLIKPAY", "DD_BDO_EPAY", "DD_RCBC", "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", "DD_PUBLIC_FPX", "DD_AMBANK_FPX", "DD_KFH_FPX", "DD_AGRO_FPX", "DD_AFFIN_FPX", "DD_ALLIANCE_FPX", "DD_MUAMALAT_FPX", "DD_HLB_FPX", "DD_ISLAM_FPX", "DD_RAKYAT_FPX", "DD_CIMB_FPX", "DD_UOB_FPX", "DD_BOC_FPX", "DD_BSN_FPX", "DD_OCBC_FPX", "DD_HSBC_FPX", "DD_SCH_FPX", "DD_MAYB2U_FPX", "DD_RHB_FPX", "DD_UOB_FPX_BUSINESS", "DD_AGRO_FPX_BUSINESS", "DD_ALLIANCE_FPX_BUSINESS", "DD_AMBANK_FPX_BUSINESS", "DD_ISLAM_FPX_BUSINESS", "DD_MUAMALAT_FPX_BUSINESS", "DD_HLB_FPX_BUSINESS", "DD_HSBC_FPX_BUSINESS", "DD_RAKYAT_FPX_BUSINESS", "DD_KFH_FPX_BUSINESS", "DD_OCBC_FPX_BUSINESS", "DD_PUBLIC_FPX_BUSINESS", "DD_RHB_FPX_BUSINESS", "DD_SCH_FPX_BUSINESS", "DD_CITIBANK_FPX_BUSINESS", "DD_BNP_FPX_BUSINESS", "DD_DEUTSCHE_FPX_BUSINESS", "DD_MAYB2E_FPX_BUSINESS", "DD_CIMB_FPX_BUSINESS", "DD_AFFIN_FPX_BUSINESS", ] # 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/ewallet.py b/xendit/invoice/model/ewallet.py index 3d836a66..0b82a41e 100644 --- a/xendit/invoice/model/ewallet.py +++ b/xendit/invoice/model/ewallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/ewallet_type.py b/xendit/invoice/model/ewallet_type.py index 14bd3a20..84f4dbbf 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -65,6 +65,10 @@ class EwalletType(ModelSimple): 'VIETTELPAY': "VIETTELPAY", 'VNPTWALLET': "VNPTWALLET", 'APPOTA': "APPOTA", + 'LINEPAY': "LINEPAY", + 'TRUEMONEY': "TRUEMONEY", + 'WECHATPAY': "WECHATPAY", + 'TOUCHNGO': "TOUCHNGO", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -117,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): 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 + 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", "LINEPAY", "TRUEMONEY", "WECHATPAY", "TOUCHNGO", ] # 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", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # 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", "LINEPAY", "TRUEMONEY", "WECHATPAY", "TOUCHNGO", ] # 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. @@ -213,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): 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 + 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", "LINEPAY", "TRUEMONEY", "WECHATPAY", "TOUCHNGO", ] # 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", "MOMO", "ZALOPAY", "VIETTELPAY", "VNPTWALLET", "APPOTA", ] # 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", "LINEPAY", "TRUEMONEY", "WECHATPAY", "TOUCHNGO", ] # 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 c462ed2b..6c219e53 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice.py b/xendit/invoice/model/invoice.py index 1e95b07c..37c3946d 100644 --- a/xendit/invoice/model/invoice.py +++ b/xendit/invoice/model/invoice.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -25,6 +25,7 @@ from xendit.exceptions import ApiAttributeError from xendit.invoice.model.bank import Bank +from xendit.invoice.model.channel_properties import ChannelProperties from xendit.invoice.model.customer_object import CustomerObject from xendit.invoice.model.direct_debit import DirectDebit from xendit.invoice.model.ewallet import Ewallet @@ -38,6 +39,7 @@ from xendit.invoice.model.qr_code import QrCode from xendit.invoice.model.retail_outlet import RetailOutlet globals()['Bank'] = Bank +globals()['ChannelProperties'] = ChannelProperties globals()['CustomerObject'] = CustomerObject globals()['DirectDebit'] = DirectDebit globals()['Ewallet'] = Ewallet @@ -140,6 +142,7 @@ def openapi_types(): 'customer': (CustomerObject, none_type), # noqa: E501 'customer_notification_preference': (NotificationPreference, none_type), # noqa: E501 'fees': ([InvoiceFee], none_type), # noqa: E501 + 'channel_properties': (ChannelProperties, none_type), # noqa: E501 } @cached_property @@ -181,6 +184,7 @@ def discriminator(): 'customer': 'customer', # noqa: E501 'customer_notification_preference': 'customer_notification_preference', # noqa: E501 'fees': 'fees', # noqa: E501 + 'channel_properties': 'channel_properties', # noqa: E501 } read_only_vars = { @@ -259,6 +263,7 @@ def _from_openapi_data(cls, external_id, user_id, status, merchant_name, merchan customer (CustomerObject): [optional] # noqa: E501 customer_notification_preference (NotificationPreference): [optional] # noqa: E501 fees ([InvoiceFee]): An array of fees associated with the invoice.. [optional] # noqa: E501 + channel_properties (ChannelProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -363,6 +368,7 @@ def __init__(self, customer: CustomerObject | None = None, customer_notification_preference: NotificationPreference | None = None, fees: list | None = None, + channel_properties: ChannelProperties | None = None, *args, **kwargs ): # noqa: E501 """Invoice - a model defined in OpenAPI @@ -434,6 +440,7 @@ def __init__(self, customer (CustomerObject): [optional] # noqa: E501 customer_notification_preference (NotificationPreference): [optional] # noqa: E501 fees ([InvoiceFee]): An array of fees associated with the invoice.. [optional] # noqa: E501 + channel_properties (ChannelProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -514,6 +521,8 @@ def __init__(self, self.customer_notification_preference = customer_notification_preference if fees is not None: self.fees = fees + if channel_properties is not None: + self.channel_properties = channel_properties for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/invoice/model/invoice_callback.py b/xendit/invoice/model/invoice_callback.py index ad88f067..e7a532fd 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_callback_item.py b/xendit/invoice/model/invoice_callback_item.py index e08bceed..19d04e03 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_client_type.py b/xendit/invoice/model/invoice_client_type.py index 231ef911..86b9ef14 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_currency.py b/xendit/invoice/model/invoice_currency.py index 3f8fbdf8..63705688 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_error404_response_definition.py b/xendit/invoice/model/invoice_error404_response_definition.py index 74c9a56f..21003aef 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_fee.py b/xendit/invoice/model/invoice_fee.py index cf60931d..c4384f43 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_item.py b/xendit/invoice/model/invoice_item.py index e4af5597..e4359cf4 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_not_found_error.py b/xendit/invoice/model/invoice_not_found_error.py index a26c2ec5..60d7cac8 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/invoice_payment_method.py b/xendit/invoice/model/invoice_payment_method.py index 3c056c51..94376cac 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -60,6 +60,7 @@ class InvoicePaymentMethod(ModelSimple): 'DIRECT_DEBIT': "DIRECT_DEBIT", 'BANK_TRANSFER': "BANK_TRANSFER", 'PAYLATER': "PAYLATER", + 'CRYPTOCURRENCY': "CRYPTOCURRENCY", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -112,10 +113,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 payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", ] # noqa: E501 + args[0] (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "CRYPTOCURRENCY", ] # noqa: E501 Keyword Args: - value (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", ] # noqa: E501 + value (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "CRYPTOCURRENCY", ] # 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 +209,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 payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", ] # noqa: E501 + args[0] (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "CRYPTOCURRENCY", ] # noqa: E501 Keyword Args: - value (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", ] # noqa: E501 + value (str): Representing the payment method used for an invoice.., must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "CRYPTOCURRENCY", ] # 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/invoice_status.py b/xendit/invoice/model/invoice_status.py index 5486423f..f67ce5a5 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/notification_channel.py b/xendit/invoice/model/notification_channel.py index e9b4ffcd..7342c409 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/notification_preference.py b/xendit/invoice/model/notification_preference.py index 3e75ba4a..f4c6fa99 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.6.0 + The version of the XENDIT API: 1.7.6 """ @@ -85,7 +85,6 @@ def openapi_types(): return { 'invoice_created': ([NotificationChannel], none_type), # noqa: E501 'invoice_reminder': ([NotificationChannel], none_type), # noqa: E501 - 'invoice_expired': ([NotificationChannel], none_type), # noqa: E501 'invoice_paid': ([NotificationChannel], none_type), # noqa: E501 } @@ -97,7 +96,6 @@ def discriminator(): attribute_map = { 'invoice_created': 'invoice_created', # noqa: E501 'invoice_reminder': 'invoice_reminder', # noqa: E501 - 'invoice_expired': 'invoice_expired', # noqa: E501 'invoice_paid': 'invoice_paid', # noqa: E501 } @@ -144,7 +142,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) invoice_created ([NotificationChannel]): Notification channels for when an invoice is created.. [optional] # noqa: E501 invoice_reminder ([NotificationChannel]): Notification channels for invoice reminders.. [optional] # noqa: E501 - invoice_expired ([NotificationChannel]): Notification channels for expired invoices.. [optional] # noqa: E501 invoice_paid ([NotificationChannel]): Notification channels for when an invoice is paid.. [optional] # noqa: E501 """ @@ -202,7 +199,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 def __init__(self, invoice_created: list | None = None, invoice_reminder: list | None = None, - invoice_expired: list | None = None, invoice_paid: list | None = None, *args, **kwargs ): # noqa: E501 @@ -242,7 +238,6 @@ def __init__(self, _visited_composed_classes = (Animal,) invoice_created ([NotificationChannel]): Notification channels for when an invoice is created.. [optional] # noqa: E501 invoice_reminder ([NotificationChannel]): Notification channels for invoice reminders.. [optional] # noqa: E501 - invoice_expired ([NotificationChannel]): Notification channels for expired invoices.. [optional] # noqa: E501 invoice_paid ([NotificationChannel]): Notification channels for when an invoice is paid.. [optional] # noqa: E501 """ @@ -279,8 +274,6 @@ def __init__(self, self.invoice_created = invoice_created if invoice_reminder is not None: self.invoice_reminder = invoice_reminder - if invoice_expired is not None: - self.invoice_expired = invoice_expired if invoice_paid is not None: self.invoice_paid = invoice_paid for var_name, var_value in kwargs.items(): diff --git a/xendit/invoice/model/paylater.py b/xendit/invoice/model/paylater.py index d4e81c8f..828522df 100644 --- a/xendit/invoice/model/paylater.py +++ b/xendit/invoice/model/paylater.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/paylater_type.py b/xendit/invoice/model/paylater_type.py index b8128ef7..67c062bf 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/payment_details.py b/xendit/invoice/model/payment_details.py index d13b014f..6c02bab5 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/qr_code.py b/xendit/invoice/model/qr_code.py index 39772fb3..1d44f710 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/qr_code_type.py b/xendit/invoice/model/qr_code_type.py index 594addba..bb75bbf5 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/retail_outlet.py b/xendit/invoice/model/retail_outlet.py index df50bb7e..7b02f79e 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/retail_outlet_name.py b/xendit/invoice/model/retail_outlet_name.py index f08d0358..5eefacae 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/server_error.py b/xendit/invoice/model/server_error.py index 2e83a45f..224def60 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.6.0 + The version of the XENDIT API: 1.7.6 """ diff --git a/xendit/invoice/model/unauthorized_error.py b/xendit/invoice/model/unauthorized_error.py index 5ea10dcf..710dcc59 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.6.0 + The version of the XENDIT API: 1.7.6 """