Skip to content

Commit fab038a

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

9 files changed

+17
-17
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-2023 Xendit
3+
Copyright (c) 2017-2024 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: 4.1.0
8+
* Package version: 4.2.0
99

1010
## Requirements
1111

docs/refund/RefundCallbackData.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Name | Type | Required | Description | Examples |
77
|------------|:-------------:|:-------------:|-------------|:-------------:|
88
| **id** | **str** | ☑️ | | | |
9-
| **payment_request_id** | **str** | ☑️ | | | |
9+
| **payment_id** | **str** | ☑️ | | | |
1010
| **payment_method_type** | **str** | ☑️ | | | |
1111
| **amount** | **float** | ☑️ | | | |
1212
| **channel_code** | **str** | ☑️ | | | |

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

7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/4.1.0/python'
81+
self.user_agent = 'OpenAPI-Generator/4.2.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.1.0".\
368+
"SDK Package Version: 4.2.0".\
369369
format(env=sys.platform, pyversion=sys.version)
370370

371371
def get_host_settings(self):

xendit/refund/model/refund_callback_data.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def openapi_types():
8080
"""
8181
return {
8282
'id': (str,), # noqa: E501
83-
'payment_request_id': (str,), # noqa: E501
83+
'payment_id': (str,), # noqa: E501
8484
'payment_method_type': (str,), # noqa: E501
8585
'amount': (float,), # noqa: E501
8686
'channel_code': (str,), # noqa: E501
@@ -104,7 +104,7 @@ def discriminator():
104104

105105
attribute_map = {
106106
'id': 'id', # noqa: E501
107-
'payment_request_id': 'payment_request_id', # noqa: E501
107+
'payment_id': 'payment_id', # noqa: E501
108108
'payment_method_type': 'payment_method_type', # noqa: E501
109109
'amount': 'amount', # noqa: E501
110110
'channel_code': 'channel_code', # noqa: E501
@@ -128,12 +128,12 @@ def discriminator():
128128

129129
@classmethod
130130
@convert_js_args_to_python_args
131-
def _from_openapi_data(cls, id, payment_request_id, payment_method_type, amount, channel_code, status, reason, country, currency, created, updated, *args, **kwargs): # noqa: E501
131+
def _from_openapi_data(cls, id, payment_id, payment_method_type, amount, channel_code, status, reason, country, currency, created, updated, *args, **kwargs): # noqa: E501
132132
"""RefundCallbackData - a model defined in OpenAPI
133133
134134
Args:
135135
id (str):
136-
payment_request_id (str):
136+
payment_id (str):
137137
payment_method_type (str):
138138
amount (float):
139139
channel_code (str):
@@ -214,7 +214,7 @@ def _from_openapi_data(cls, id, payment_request_id, payment_method_type, amount,
214214
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
215215

216216
self.id = id
217-
self.payment_request_id = payment_request_id
217+
self.payment_id = payment_id
218218
self.payment_method_type = payment_method_type
219219
self.amount = amount
220220
self.channel_code = channel_code
@@ -246,7 +246,7 @@ def _from_openapi_data(cls, id, payment_request_id, payment_method_type, amount,
246246
@convert_js_args_to_python_args
247247
def __init__(self,
248248
id: str,
249-
payment_request_id: str,
249+
payment_id: str,
250250
payment_method_type: str,
251251
amount: float,
252252
channel_code: str,
@@ -267,7 +267,7 @@ def __init__(self,
267267
268268
Args:
269269
id (str):
270-
payment_request_id (str):
270+
payment_id (str):
271271
payment_method_type (str):
272272
amount (float):
273273
channel_code (str):
@@ -347,7 +347,7 @@ def __init__(self,
347347
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
348348

349349
self.id = id
350-
self.payment_request_id = payment_request_id
350+
self.payment_id = payment_id
351351
self.payment_method_type = payment_method_type
352352
self.amount = amount
353353
self.channel_code = channel_code

0 commit comments

Comments
 (0)