Skip to content

Commit bba09ec

Browse files
author
xendit-devx-bot
committed
Generated Xendit python SDK
1 parent fab038a commit bba09ec

Some content is hidden

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

54 files changed

+799
-69
lines changed

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: 4.2.0
8+
* Package version: 4.3.0
99

1010
## Requirements
1111

docs/InvoiceApi.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ create_invoice_request = CreateInvoiceRequest(
111111
invoice_reminder=[
112112
NotificationChannel("email"),
113113
],
114-
invoice_expired=[
115-
NotificationChannel("email"),
116-
],
117114
invoice_paid=[
118115
NotificationChannel("email"),
119116
],
@@ -145,6 +142,13 @@ create_invoice_request = CreateInvoiceRequest(
145142
value=3.14,
146143
),
147144
],
145+
channel_properties=ChannelProperties(
146+
cards=ChannelPropertiesCards(
147+
allowed_bins=[
148+
"allowed_bins_example",
149+
],
150+
),
151+
),
148152
) # CreateInvoiceRequest
149153
for_user_id = "62efe4c33e45694d63f585f0" # str | Business ID of the sub-account merchant (XP feature)
150154

docs/invoice/BankCode.md

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Representing the available bank channels used for invoice-related transactions.
2727

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

30+
* `HANA` (value: `"HANA"`)
31+
32+
* `MUAMALAT` (value: `"MUAMALAT"`)
33+
3034
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
3135

3236
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/ChannelProperties.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ChannelProperties
2+
> xendit.invoice.model.ChannelProperties
3+
4+
An object representing channel-specific properties.
5+
6+
## Properties
7+
| Name | Type | Required | Description | Examples |
8+
|------------|:-------------:|:-------------:|-------------|:-------------:|
9+
| **cards** | [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | |
10+
11+
12+
[[Back to README]](../../README.md)
13+
14+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ChannelPropertiesCards
2+
> xendit.invoice.model.ChannelPropertiesCards
3+
4+
An object representing properties specific for credit card payment method.
5+
6+
## Properties
7+
| Name | Type | Required | Description | Examples |
8+
|------------|:-------------:|:-------------:|-------------|:-------------:|
9+
| **allowed_bins** | **[str]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | |
10+
11+
12+
[[Back to README]](../../README.md)
13+
14+

docs/invoice/CreateInvoiceRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ An object representing for an invoice creation request.
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. | |
29+
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | |
2930

3031

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

docs/invoice/DirectDebitType.md

+78
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,84 @@ Representing the available Direct Debit channels used for invoice-related transa
4545

4646
* `DC_CHINABANK` (value: `"DC_CHINABANK"`)
4747

48+
* `DD_PUBLIC_FPX` (value: `"DD_PUBLIC_FPX"`)
49+
50+
* `DD_AMBANK_FPX` (value: `"DD_AMBANK_FPX"`)
51+
52+
* `DD_KFH_FPX` (value: `"DD_KFH_FPX"`)
53+
54+
* `DD_AGRO_FPX` (value: `"DD_AGRO_FPX"`)
55+
56+
* `DD_AFFIN_FPX` (value: `"DD_AFFIN_FPX"`)
57+
58+
* `DD_ALLIANCE_FPX` (value: `"DD_ALLIANCE_FPX"`)
59+
60+
* `DD_MUAMALAT_FPX` (value: `"DD_MUAMALAT_FPX"`)
61+
62+
* `DD_HLB_FPX` (value: `"DD_HLB_FPX"`)
63+
64+
* `DD_ISLAM_FPX` (value: `"DD_ISLAM_FPX"`)
65+
66+
* `DD_RAKYAT_FPX` (value: `"DD_RAKYAT_FPX"`)
67+
68+
* `DD_CIMB_FPX` (value: `"DD_CIMB_FPX"`)
69+
70+
* `DD_UOB_FPX` (value: `"DD_UOB_FPX"`)
71+
72+
* `DD_BOC_FPX` (value: `"DD_BOC_FPX"`)
73+
74+
* `DD_BSN_FPX` (value: `"DD_BSN_FPX"`)
75+
76+
* `DD_OCBC_FPX` (value: `"DD_OCBC_FPX"`)
77+
78+
* `DD_HSBC_FPX` (value: `"DD_HSBC_FPX"`)
79+
80+
* `DD_SCH_FPX` (value: `"DD_SCH_FPX"`)
81+
82+
* `DD_MAYB2U_FPX` (value: `"DD_MAYB2U_FPX"`)
83+
84+
* `DD_RHB_FPX` (value: `"DD_RHB_FPX"`)
85+
86+
* `DD_UOB_FPX_BUSINESS` (value: `"DD_UOB_FPX_BUSINESS"`)
87+
88+
* `DD_AGRO_FPX_BUSINESS` (value: `"DD_AGRO_FPX_BUSINESS"`)
89+
90+
* `DD_ALLIANCE_FPX_BUSINESS` (value: `"DD_ALLIANCE_FPX_BUSINESS"`)
91+
92+
* `DD_AMBANK_FPX_BUSINESS` (value: `"DD_AMBANK_FPX_BUSINESS"`)
93+
94+
* `DD_ISLAM_FPX_BUSINESS` (value: `"DD_ISLAM_FPX_BUSINESS"`)
95+
96+
* `DD_MUAMALAT_FPX_BUSINESS` (value: `"DD_MUAMALAT_FPX_BUSINESS"`)
97+
98+
* `DD_HLB_FPX_BUSINESS` (value: `"DD_HLB_FPX_BUSINESS"`)
99+
100+
* `DD_HSBC_FPX_BUSINESS` (value: `"DD_HSBC_FPX_BUSINESS"`)
101+
102+
* `DD_RAKYAT_FPX_BUSINESS` (value: `"DD_RAKYAT_FPX_BUSINESS"`)
103+
104+
* `DD_KFH_FPX_BUSINESS` (value: `"DD_KFH_FPX_BUSINESS"`)
105+
106+
* `DD_OCBC_FPX_BUSINESS` (value: `"DD_OCBC_FPX_BUSINESS"`)
107+
108+
* `DD_PUBLIC_FPX_BUSINESS` (value: `"DD_PUBLIC_FPX_BUSINESS"`)
109+
110+
* `DD_RHB_FPX_BUSINESS` (value: `"DD_RHB_FPX_BUSINESS"`)
111+
112+
* `DD_SCH_FPX_BUSINESS` (value: `"DD_SCH_FPX_BUSINESS"`)
113+
114+
* `DD_CITIBANK_FPX_BUSINESS` (value: `"DD_CITIBANK_FPX_BUSINESS"`)
115+
116+
* `DD_BNP_FPX_BUSINESS` (value: `"DD_BNP_FPX_BUSINESS"`)
117+
118+
* `DD_DEUTSCHE_FPX_BUSINESS` (value: `"DD_DEUTSCHE_FPX_BUSINESS"`)
119+
120+
* `DD_MAYB2E_FPX_BUSINESS` (value: `"DD_MAYB2E_FPX_BUSINESS"`)
121+
122+
* `DD_CIMB_FPX_BUSINESS` (value: `"DD_CIMB_FPX_BUSINESS"`)
123+
124+
* `DD_AFFIN_FPX_BUSINESS` (value: `"DD_AFFIN_FPX_BUSINESS"`)
125+
48126
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
49127

50128
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/EwalletType.md

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ Representing the available eWallet channels used for invoice-related transaction
3737

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

40+
* `LINEPAY` (value: `"LINEPAY"`)
41+
42+
* `TRUEMONEY` (value: `"TRUEMONEY"`)
43+
44+
* `WECHATPAY` (value: `"WECHATPAY"`)
45+
46+
* `TOUCHNGO` (value: `"TOUCHNGO"`)
47+
4048
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
4149

4250
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/Invoice.md

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ An object representing details for an invoice.
3939
| **customer** | [**CustomerObject**](CustomerObject.md) | | | |
4040
| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | |
4141
| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
42+
| **channel_properties** | [**ChannelProperties**](ChannelProperties.md) | | | |
4243

4344

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

docs/invoice/InvoicePaymentMethod.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Representing the payment method used for an invoice.
2727

2828
* `PAYLATER` (value: `"PAYLATER"`)
2929

30+
* `CRYPTOCURRENCY` (value: `"CRYPTOCURRENCY"`)
31+
3032
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
3133

3234
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/NotificationPreference.md

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ An object representing notification preferences for different invoice events.
88
|------------|:-------------:|:-------------:|-------------|:-------------:|
99
| **invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is created. | |
1010
| **invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for invoice reminders. | |
11-
| **invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for expired invoices. | |
1211
| **invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | |
1312

1413

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 = "4.2.0"
3+
version = "4.3.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 = "4.2.0"
9+
VERSION = "4.3.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__ = "4.2.0"
8+
__version__ = "4.3.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'] = '4.2.0'
77+
self.default_headers['xendit-lib-ver'] = '4.3.0'
7878

7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/4.2.0/python'
81+
self.user_agent = 'OpenAPI-Generator/4.3.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.45.2\n"\
368-
"SDK Package Version: 4.2.0".\
368+
"SDK Package Version: 4.3.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.6.0
6+
The version of the OpenAPI document: 1.7.6
77
"""
88

99
import re # noqa: F401

xendit/invoice/model/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from xendit.invoice.model.bad_request_error import BadRequestError
1515
from xendit.invoice.model.bank import Bank
1616
from xendit.invoice.model.bank_code import BankCode
17+
from xendit.invoice.model.channel_properties import ChannelProperties
18+
from xendit.invoice.model.channel_properties_cards import ChannelPropertiesCards
1719
from xendit.invoice.model.create_invoice_request import CreateInvoiceRequest
1820
from xendit.invoice.model.customer_object import CustomerObject
1921
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.6.0
2+
The version of the XENDIT API: 1.7.6
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.6.0
2+
The version of the XENDIT API: 1.7.6
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.6.0
2+
The version of the XENDIT API: 1.7.6
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.6.0
2+
The version of the XENDIT API: 1.7.6
33
"""
44

55

xendit/invoice/model/bank_code.py

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

55

@@ -60,6 +60,8 @@ class BankCode(ModelSimple):
6060
'SAHABAT_SAMPOERNA': "SAHABAT_SAMPOERNA",
6161
'CIMB': "CIMB",
6262
'BNC': "BNC",
63+
'HANA': "HANA",
64+
'MUAMALAT': "MUAMALAT",
6365
'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE',
6466
},
6567
}
@@ -112,10 +114,10 @@ def __init__(self, *args, **kwargs):
112114
Note that value can be passed either in args or in kwargs, but not in both.
113115
114116
Args:
115-
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
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
116118
117119
Keyword Args:
118-
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
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
119121
_check_type (bool): if True, values for parameters in openapi_types
120122
will be type checked and a TypeError will be
121123
raised if the wrong type is input.
@@ -208,10 +210,10 @@ def _from_openapi_data(cls, *args, **kwargs):
208210
Note that value can be passed either in args or in kwargs, but not in both.
209211
210212
Args:
211-
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
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
212214
213215
Keyword Args:
214-
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
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
215217
_check_type (bool): if True, values for parameters in openapi_types
216218
will be type checked and a TypeError will be
217219
raised if the wrong type is input.

0 commit comments

Comments
 (0)