Skip to content

Commit 63f50bf

Browse files
author
xendit-devx-bot
committed
Generated Xendit python SDK
1 parent ec58a0d commit 63f50bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+727
-66
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2024 Xendit
3+
Copyright (c) 2017-2025 Xendit
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API
66
in applications written in Python.
77

8-
* Package version: 6.0.0
8+
* Package version: 6.1.0
99

1010
## Requirements
1111

docs/InvoiceApi.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ create_invoice_request = CreateInvoiceRequest(
124124
should_authenticate_credit_card=True,
125125
currency="currency_example",
126126
reminder_time=3.14,
127-
local="local_example",
127+
locale="locale_example",
128128
reminder_time_unit="reminder_time_unit_example",
129129
items=[
130130
InvoiceItem(
@@ -147,8 +147,20 @@ create_invoice_request = CreateInvoiceRequest(
147147
allowed_bins=[
148148
"allowed_bins_example",
149149
],
150+
installment_configuration=ChannelPropertiesCardsInstallmentConfiguration(
151+
allow_full_payment=True,
152+
allowed_terms=[
153+
ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner(
154+
issuer="issuer_example",
155+
allowed_terms=[
156+
3.14,
157+
],
158+
),
159+
],
160+
),
150161
),
151162
),
163+
metadata={},
152164
) # CreateInvoiceRequest
153165
for_user_id = "62efe4c33e45694d63f585f0" # str | Business ID of the sub-account merchant (XP feature)
154166

docs/invoice/BankCode.md

+14
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ Representing the available bank channels used for invoice-related transactions.
2525

2626
* `CIMB` (value: `"CIMB"`)
2727

28+
* `VIETCAPITAL` (value: `"VIETCAPITAL"`)
29+
30+
* `WOORI` (value: `"WOORI"`)
31+
32+
* `PV` (value: `"PV"`)
33+
34+
* `MSB` (value: `"MSB"`)
35+
36+
* `VPB` (value: `"VPB"`)
37+
38+
* `BIDV` (value: `"BIDV"`)
39+
40+
* `CAKE` (value: `"CAKE"`)
41+
2842
* `BNC` (value: `"BNC"`)
2943

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

docs/invoice/ChannelPropertiesCards.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ An object representing properties specific for credit card payment method.
77
| Name | Type | Required | Description | Examples |
88
|------------|:-------------:|:-------------:|-------------|:-------------:|
99
| **allowed_bins** | **[str]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | |
10+
| **installment_configuration** | [**ChannelPropertiesCardsInstallmentConfiguration**](ChannelPropertiesCardsInstallmentConfiguration.md) | | | |
1011

1112

1213
[[Back to README]](../../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ChannelPropertiesCardsInstallmentConfiguration
2+
> xendit.invoice.model.ChannelPropertiesCardsInstallmentConfiguration
3+
4+
An object to pre-set cards installment for a specific invoice
5+
6+
## Properties
7+
| Name | Type | Required | Description | Examples |
8+
|------------|:-------------:|:-------------:|-------------|:-------------:|
9+
| **allow_full_payment** | **bool** | | Indicate whether full payment (without installment) is allowed | |
10+
| **allowed_terms** | [**[ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner]**](ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md) | | An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | |
11+
12+
13+
[[Back to README]](../../README.md)
14+
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
2+
> xendit.invoice.model.ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
3+
4+
5+
## Properties
6+
| Name | Type | Required | Description | Examples |
7+
|------------|:-------------:|:-------------:|-------------|:-------------:|
8+
| **issuer** | **str** | | The bank code of the installment provider / issuer | |
9+
| **allowed_terms** | **[float]** | | An array containing list of installment tenor available to choose | |
10+
11+
12+
[[Back to README]](../../README.md)
13+
14+

docs/invoice/CreateInvoiceRequest.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ An object representing for an invoice creation request.
2222
| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | |
2323
| **currency** | **str** | | The currency of the invoice. | |
2424
| **reminder_time** | **float** | | The reminder time. | |
25-
| **local** | **str** | | The local. | |
25+
| **locale** | **str** | | The default language to display. | |
2626
| **reminder_time_unit** | **str** | | The unit of the reminder time. | |
2727
| **items** | [**[InvoiceItem]**](InvoiceItem.md) | | An array of items included in the invoice. | |
2828
| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
2929
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | |
30+
| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | |
3031

3132

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

docs/invoice/Invoice.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ An object representing details for an invoice.
4040
| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | |
4141
| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
4242
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | |
43+
| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | |
4344

4445

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

docs/invoice/InvoiceCurrency.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Representing the currency used for an invoice.
1717

1818
* `PHP` (value: `"PHP"`)
1919

20+
* `MYR` (value: `"MYR"`)
21+
2022
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
2123

2224
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.

docs/invoice/QrCodeType.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Representing the available QR Code channels used for invoice-related transaction
1111

1212
* `PROMPTPAY` (value: `"PROMPTPAY"`)
1313

14+
* `QRPH` (value: `"QRPH"`)
15+
1416
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
1517

1618
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.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xendit-python"
3-
version = "6.0.0"
3+
version = "6.1.0"
44
description = "Xendit REST API Client for Python - Invoice, Payment Request, Payment Method, Refund, Balance, Transaction, Customer, and Payout Services https://xendit.github.io/apireference/"
55
authors = ["DevX Team <[email protected]>"]
66
license = "MIT"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages # noqa: H301
77

88
NAME = "xendit"
9-
VERSION = "6.0.0"
9+
VERSION = "6.1.0"
1010
# To install the library, run the following
1111
#
1212
# python setup.py install

xendit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77

8-
__version__ = "6.0.0"
8+
__version__ = "6.1.0"
99

1010
# import ApiClient
1111
from xendit.api_client import ApiClient

xendit/api_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7474

7575
# XENDIT headers
7676
self.default_headers['xendit-lib'] = 'python'
77-
self.default_headers['xendit-lib-ver'] = '6.0.0'
77+
self.default_headers['xendit-lib-ver'] = '6.1.0'
7878

7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/6.0.0/python'
81+
self.user_agent = 'OpenAPI-Generator/6.1.0/python'
8282

8383
def __enter__(self):
8484
return self

xendit/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def to_debug_report(self):
365365
"OS: {env}\n"\
366366
"Python Version: {pyversion}\n"\
367367
"Version of the API: 1.70.0\n"\
368-
"SDK Package Version: 6.0.0".\
368+
"SDK Package Version: 6.1.0".\
369369
format(env=sys.platform, pyversion=sys.version)
370370

371371
def get_host_settings(self):

xendit/invoice/invoice_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
xendit-invoice-service descriptions # noqa: E501
55
6-
The version of the OpenAPI document: 1.7.6
6+
The version of the OpenAPI document: 1.8.7
77
"""
88

99
import re # noqa: F401

xendit/invoice/model/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from xendit.invoice.model.bank_code import BankCode
1717
from xendit.invoice.model.channel_properties import ChannelProperties
1818
from xendit.invoice.model.channel_properties_cards import ChannelPropertiesCards
19+
from xendit.invoice.model.channel_properties_cards_installment_configuration import ChannelPropertiesCardsInstallmentConfiguration
20+
from xendit.invoice.model.channel_properties_cards_installment_configuration_allowed_terms_inner import ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
1921
from xendit.invoice.model.create_invoice_request import CreateInvoiceRequest
2022
from xendit.invoice.model.customer_object import CustomerObject
2123
from xendit.invoice.model.direct_debit import DirectDebit

xendit/invoice/model/address_object.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

xendit/invoice/model/alternative_display_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

xendit/invoice/model/bad_request_error.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

xendit/invoice/model/bank.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

xendit/invoice/model/bank_code.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

@@ -59,6 +59,13 @@ class BankCode(ModelSimple):
5959
'BJB': "BJB",
6060
'SAHABAT_SAMPOERNA': "SAHABAT_SAMPOERNA",
6161
'CIMB': "CIMB",
62+
'VIETCAPITAL': "VIETCAPITAL",
63+
'WOORI': "WOORI",
64+
'PV': "PV",
65+
'MSB': "MSB",
66+
'VPB': "VPB",
67+
'BIDV': "BIDV",
68+
'CAKE': "CAKE",
6269
'BNC': "BNC",
6370
'HANA': "HANA",
6471
'MUAMALAT': "MUAMALAT",
@@ -114,10 +121,10 @@ def __init__(self, *args, **kwargs):
114121
Note that value can be passed either in args or in kwargs, but not in both.
115122
116123
Args:
117-
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
124+
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", "VIETCAPITAL", "WOORI", "PV", "MSB", "VPB", "BIDV", "CAKE", "BNC", "HANA", "MUAMALAT", ] # noqa: E501
118125
119126
Keyword Args:
120-
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
127+
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", "VIETCAPITAL", "WOORI", "PV", "MSB", "VPB", "BIDV", "CAKE", "BNC", "HANA", "MUAMALAT", ] # noqa: E501
121128
_check_type (bool): if True, values for parameters in openapi_types
122129
will be type checked and a TypeError will be
123130
raised if the wrong type is input.
@@ -210,10 +217,10 @@ def _from_openapi_data(cls, *args, **kwargs):
210217
Note that value can be passed either in args or in kwargs, but not in both.
211218
212219
Args:
213-
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
220+
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", "VIETCAPITAL", "WOORI", "PV", "MSB", "VPB", "BIDV", "CAKE", "BNC", "HANA", "MUAMALAT", ] # noqa: E501
214221
215222
Keyword Args:
216-
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
223+
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", "VIETCAPITAL", "WOORI", "PV", "MSB", "VPB", "BIDV", "CAKE", "BNC", "HANA", "MUAMALAT", ] # noqa: E501
217224
_check_type (bool): if True, values for parameters in openapi_types
218225
will be type checked and a TypeError will be
219226
raised if the wrong type is input.

xendit/invoice/model/channel_properties.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

xendit/invoice/model/channel_properties_cards.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The version of the XENDIT API: 1.7.6
2+
The version of the XENDIT API: 1.8.7
33
"""
44

55

@@ -24,6 +24,8 @@
2424
)
2525
from xendit.exceptions import ApiAttributeError
2626

27+
from xendit.invoice.model.channel_properties_cards_installment_configuration import ChannelPropertiesCardsInstallmentConfiguration
28+
globals()['ChannelPropertiesCardsInstallmentConfiguration'] = ChannelPropertiesCardsInstallmentConfiguration
2729

2830
def lazy_import():
2931
pass
@@ -64,6 +66,7 @@ def additional_properties_type():
6466
This must be a method because a model may have properties that are
6567
of type self, this must run after the class is loaded
6668
"""
69+
lazy_import()
6770
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
6871

6972
_nullable = False
@@ -78,8 +81,10 @@ def openapi_types():
7881
openapi_types (dict): The key is attribute name
7982
and the value is attribute type.
8083
"""
84+
lazy_import()
8185
return {
8286
'allowed_bins': ([str], none_type), # noqa: E501
87+
'installment_configuration': (ChannelPropertiesCardsInstallmentConfiguration, none_type), # noqa: E501
8388
}
8489

8590
@cached_property
@@ -89,6 +94,7 @@ def discriminator():
8994

9095
attribute_map = {
9196
'allowed_bins': 'allowed_bins', # noqa: E501
97+
'installment_configuration': 'installment_configuration', # noqa: E501
9298
}
9399

94100
read_only_vars = {
@@ -133,6 +139,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
133139
through its discriminator because we passed in
134140
_visited_composed_classes = (Animal,)
135141
allowed_bins ([str]): An array of allowed BINs (6 or 8 digits) for credit card payments.. [optional] # noqa: E501
142+
installment_configuration (ChannelPropertiesCardsInstallmentConfiguration): [optional] # noqa: E501
136143
"""
137144

138145
_check_type = kwargs.pop('_check_type', True)
@@ -188,6 +195,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
188195
@convert_js_args_to_python_args
189196
def __init__(self,
190197
allowed_bins: list | None = None,
198+
installment_configuration: ChannelPropertiesCardsInstallmentConfiguration | None = None,
191199
*args, **kwargs
192200
): # noqa: E501
193201
"""ChannelPropertiesCards - a model defined in OpenAPI
@@ -225,6 +233,7 @@ def __init__(self,
225233
through its discriminator because we passed in
226234
_visited_composed_classes = (Animal,)
227235
allowed_bins ([str]): An array of allowed BINs (6 or 8 digits) for credit card payments.. [optional] # noqa: E501
236+
installment_configuration (ChannelPropertiesCardsInstallmentConfiguration): [optional] # noqa: E501
228237
"""
229238

230239
_check_type = kwargs.pop('_check_type', True)
@@ -258,6 +267,8 @@ def __init__(self,
258267

259268
if allowed_bins is not None:
260269
self.allowed_bins = allowed_bins
270+
if installment_configuration is not None:
271+
self.installment_configuration = installment_configuration
261272
for var_name, var_value in kwargs.items():
262273
if var_name not in self.attribute_map and \
263274
self._configuration is not None and \

0 commit comments

Comments
 (0)