Skip to content

Commit 44fce29

Browse files
author
xendit-devx-bot
committed
Generated Xendit python SDK
1 parent 59ba26d commit 44fce29

9 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
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.4.0
8+
* Package version: 7.0.0
99

1010
## Requirements
1111

docs/InvoiceApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ create_invoice_request = CreateInvoiceRequest(
8181
amount=3.14,
8282
payer_email="payer_email_example",
8383
description="description_example",
84-
invoice_duration="invoice_duration_example",
84+
invoice_duration=3.14,
8585
callback_virtual_account_id="callback_virtual_account_id_example",
8686
should_send_email=True,
8787
customer=CustomerObject(

docs/invoice/CreateInvoiceRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ An object representing for an invoice creation request.
1010
| **amount** | **float** | ☑️ | The invoice amount. | | |
1111
| **payer_email** | **str** | | The email address of the payer. | |
1212
| **description** | **str** | | A description of the payment. | |
13-
| **invoice_duration** | **str** | | The duration of the invoice. | |
13+
| **invoice_duration** | **float** | | The duration of the invoice in seconds. | |
1414
| **callback_virtual_account_id** | **str** | | The ID of the callback virtual account. | |
1515
| **should_send_email** | **bool** | | Indicates whether email notifications should be sent. | |
1616
| **customer** | [**CustomerObject**](CustomerObject.md) | | | |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xendit-python"
3-
version = "6.4.0"
3+
version = "7.0.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 <devx@xendit.co>"]
66
license = "MIT"

setup.py

Lines changed: 1 addition & 1 deletion
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.4.0"
9+
VERSION = "7.0.0"
1010
# To install the library, run the following
1111
#
1212
# python setup.py install

xendit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77

8-
__version__ = "6.4.0"
8+
__version__ = "7.0.0"
99

1010
# import ApiClient
1111
from xendit.api_client import ApiClient

xendit/api_client.py

Lines changed: 2 additions & 2 deletions
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.4.0'
77+
self.default_headers['xendit-lib-ver'] = '7.0.0'
7878

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

8383
def __enter__(self):
8484
return self

xendit/configuration.py

Lines changed: 1 addition & 1 deletion
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.4.0".\
368+
"SDK Package Version: 7.0.0".\
369369
format(env=sys.platform, pyversion=sys.version)
370370

371371
def get_host_settings(self):

xendit/invoice/model/create_invoice_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def openapi_types():
9898
'amount': (float,), # noqa: E501
9999
'payer_email': (str, none_type), # noqa: E501
100100
'description': (str, none_type), # noqa: E501
101-
'invoice_duration': (str, none_type), # noqa: E501
101+
'invoice_duration': (float, none_type), # noqa: E501
102102
'callback_virtual_account_id': (str, none_type), # noqa: E501
103103
'should_send_email': (bool, none_type), # noqa: E501
104104
'customer': (CustomerObject, none_type), # noqa: E501
@@ -195,7 +195,7 @@ def _from_openapi_data(cls, external_id, amount, *args, **kwargs): # noqa: E501
195195
_visited_composed_classes = (Animal,)
196196
payer_email (str): The email address of the payer.. [optional] # noqa: E501
197197
description (str): A description of the payment.. [optional] # noqa: E501
198-
invoice_duration (str): The duration of the invoice.. [optional] # noqa: E501
198+
invoice_duration (float): The duration of the invoice in seconds.. [optional] # noqa: E501
199199
callback_virtual_account_id (str): The ID of the callback virtual account.. [optional] # noqa: E501
200200
should_send_email (bool): Indicates whether email notifications should be sent.. [optional] # noqa: E501
201201
customer (CustomerObject): [optional] # noqa: E501
@@ -273,7 +273,7 @@ def __init__(self,
273273
amount: float,
274274
payer_email: str | None = None,
275275
description: str | None = None,
276-
invoice_duration: str | None = None,
276+
invoice_duration: float | None = None,
277277
callback_virtual_account_id: str | None = None,
278278
should_send_email: bool | None = None,
279279
customer: CustomerObject | None = None,
@@ -333,7 +333,7 @@ def __init__(self,
333333
_visited_composed_classes = (Animal,)
334334
payer_email (str): The email address of the payer.. [optional] # noqa: E501
335335
description (str): A description of the payment.. [optional] # noqa: E501
336-
invoice_duration (str): The duration of the invoice.. [optional] # noqa: E501
336+
invoice_duration (float): The duration of the invoice in seconds.. [optional] # noqa: E501
337337
callback_virtual_account_id (str): The ID of the callback virtual account.. [optional] # noqa: E501
338338
should_send_email (bool): Indicates whether email notifications should be sent.. [optional] # noqa: E501
339339
customer (CustomerObject): [optional] # noqa: E501

0 commit comments

Comments
 (0)