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 Feb 13, 2024
1 parent 8825e9b commit fab038a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
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.1.0
* Package version: 4.2.0

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion docs/refund/RefundCallbackData.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | ☑️ | | | |
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.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 <devx@xendit.co>"]
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.1.0"
VERSION = "4.2.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.1.0"
__version__ = "4.2.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.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
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.1.0".\
"SDK Package Version: 4.2.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
16 changes: 8 additions & 8 deletions xendit/refund/model/refund_callback_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fab038a

Please sign in to comment.