Skip to content

Commit

Permalink
Generated Xendit python SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Mar 8, 2024
1 parent fab038a commit bba09ec
Show file tree
Hide file tree
Showing 54 changed files with 799 additions and 69 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Python.

* Package version: 4.2.0
* Package version: 4.3.0

## Requirements

Expand Down
10 changes: 7 additions & 3 deletions docs/InvoiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ create_invoice_request = CreateInvoiceRequest(
invoice_reminder=[
NotificationChannel("email"),
],
invoice_expired=[
NotificationChannel("email"),
],
invoice_paid=[
NotificationChannel("email"),
],
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions docs/invoice/BankCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions docs/invoice/ChannelProperties.md
Original file line number Diff line number Diff line change
@@ -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)


14 changes: 14 additions & 0 deletions docs/invoice/ChannelPropertiesCards.md
Original file line number Diff line number Diff line change
@@ -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)


1 change: 1 addition & 0 deletions docs/invoice/CreateInvoiceRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
78 changes: 78 additions & 0 deletions docs/invoice/DirectDebitType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions docs/invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions docs/invoice/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions docs/invoice/InvoicePaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion docs/invoice/NotificationPreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xendit-python"
version = "4.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 <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup, find_packages # noqa: H301

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


__version__ = "4.2.0"
__version__ = "4.3.0"

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

# XENDIT headers
self.default_headers['xendit-lib'] = 'python'
self.default_headers['xendit-lib-ver'] = '4.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
Expand Down
2 changes: 1 addition & 1 deletion xendit/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.45.2\n"\
"SDK Package Version: 4.2.0".\
"SDK Package Version: 4.3.0".\
format(env=sys.platform, pyversion=sys.version)

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

import re # noqa: F401
Expand Down
2 changes: 2 additions & 0 deletions xendit/invoice/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xendit/invoice/model/address_object.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The version of the XENDIT API: 1.6.0
The version of the XENDIT API: 1.7.6
"""


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


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


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


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


Expand Down Expand Up @@ -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',
},
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Loading

0 comments on commit bba09ec

Please sign in to comment.