From fab038a9860e992f13d5fd96f5f0ac6f0f5b41d3 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Tue, 13 Feb 2024 02:42:54 +0000 Subject: [PATCH] Generated Xendit python SDK --- LICENSE | 2 +- README.md | 2 +- docs/refund/RefundCallbackData.md | 2 +- pyproject.toml | 2 +- setup.py | 2 +- xendit/__init__.py | 2 +- xendit/api_client.py | 4 ++-- xendit/configuration.py | 2 +- xendit/refund/model/refund_callback_data.py | 16 ++++++++-------- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/LICENSE b/LICENSE index 0d37b6c5..74911bc5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017-2023 Xendit +Copyright (c) 2017-2024 Xendit Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index b3a62240..19726df7 100644 --- a/README.md +++ b/README.md @@ -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.1.0 +* Package version: 4.2.0 ## Requirements diff --git a/docs/refund/RefundCallbackData.md b/docs/refund/RefundCallbackData.md index 11b4beb6..c15e78dc 100644 --- a/docs/refund/RefundCallbackData.md +++ b/docs/refund/RefundCallbackData.md @@ -6,7 +6,7 @@ | Name | Type | Required | Description | Examples | |------------|:-------------:|:-------------:|-------------|:-------------:| | **id** | **str** | ☑️ | | | | -| **payment_request_id** | **str** | ☑️ | | | | +| **payment_id** | **str** | ☑️ | | | | | **payment_method_type** | **str** | ☑️ | | | | | **amount** | **float** | ☑️ | | | | | **channel_code** | **str** | ☑️ | | | | diff --git a/pyproject.toml b/pyproject.toml index 5ca64431..e1cd606a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xendit-python" -version = "4.1.0" +version = "4.2.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 "] license = "MIT" diff --git a/setup.py b/setup.py index b009256e..623279ce 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "xendit" -VERSION = "4.1.0" +VERSION = "4.2.0" # To install the library, run the following # # python setup.py install diff --git a/xendit/__init__.py b/xendit/__init__.py index 86b9a6ec..bab661ae 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "4.1.0" +__version__ = "4.2.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index a761fd6e..8af3a420 100644 --- a/xendit/api_client.py +++ b/xendit/api_client.py @@ -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.1.0' + self.default_headers['xendit-lib-ver'] = '4.2.0' self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.1.0/python' + self.user_agent = 'OpenAPI-Generator/4.2.0/python' def __enter__(self): return self diff --git a/xendit/configuration.py b/xendit/configuration.py index 65475cc6..5db0144a 100644 --- a/xendit/configuration.py +++ b/xendit/configuration.py @@ -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.1.0".\ + "SDK Package Version: 4.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/xendit/refund/model/refund_callback_data.py b/xendit/refund/model/refund_callback_data.py index 7f329634..78c95189 100644 --- a/xendit/refund/model/refund_callback_data.py +++ b/xendit/refund/model/refund_callback_data.py @@ -80,7 +80,7 @@ def openapi_types(): """ return { 'id': (str,), # noqa: E501 - 'payment_request_id': (str,), # noqa: E501 + 'payment_id': (str,), # noqa: E501 'payment_method_type': (str,), # noqa: E501 'amount': (float,), # noqa: E501 'channel_code': (str,), # noqa: E501 @@ -104,7 +104,7 @@ def discriminator(): attribute_map = { 'id': 'id', # noqa: E501 - 'payment_request_id': 'payment_request_id', # noqa: E501 + 'payment_id': 'payment_id', # noqa: E501 'payment_method_type': 'payment_method_type', # noqa: E501 'amount': 'amount', # noqa: E501 'channel_code': 'channel_code', # noqa: E501 @@ -128,12 +128,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - 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 + def _from_openapi_data(cls, id, payment_id, payment_method_type, amount, channel_code, status, reason, country, currency, created, updated, *args, **kwargs): # noqa: E501 """RefundCallbackData - a model defined in OpenAPI Args: id (str): - payment_request_id (str): + payment_id (str): payment_method_type (str): amount (float): channel_code (str): @@ -214,7 +214,7 @@ def _from_openapi_data(cls, id, payment_request_id, payment_method_type, amount, self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.payment_request_id = payment_request_id + self.payment_id = payment_id self.payment_method_type = payment_method_type self.amount = amount self.channel_code = channel_code @@ -246,7 +246,7 @@ def _from_openapi_data(cls, id, payment_request_id, payment_method_type, amount, @convert_js_args_to_python_args def __init__(self, id: str, - payment_request_id: str, + payment_id: str, payment_method_type: str, amount: float, channel_code: str, @@ -267,7 +267,7 @@ def __init__(self, Args: id (str): - payment_request_id (str): + payment_id (str): payment_method_type (str): amount (float): channel_code (str): @@ -347,7 +347,7 @@ def __init__(self, self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.payment_request_id = payment_request_id + self.payment_id = payment_id self.payment_method_type = payment_method_type self.amount = amount self.channel_code = channel_code