Skip to content

Commit 01d22fa

Browse files
authored
Merge pull request #15 from payjp/sdk-update-2025-12-16-03db8f9
feat: Update SDK from generator (2025-12-16)
2 parents 1aa3dcf + d2b47e4 commit 01d22fa

11 files changed

Lines changed: 13 additions & 13 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A Python client library for the PAY.JP v2 API. This SDK provides a convenient wa
55
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: 2.0.0
8-
- Package version: 1.0.0
8+
- Package version: 1.0.1
99
- Generator version: 7.14.0
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111

docs/SetupFlowCancellationReason.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Enum
55

6-
* `ABONDONED` (value: `'abondoned'`)
6+
* `ABANDONED` (value: `'abandoned'`)
77

88
* `DUPLICATE` (value: `'duplicate'`)
99

payjpv2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.0.0"
18+
__version__ = "1.0.1"
1919

2020
# import apis into sdk package
2121
from payjpv2.api.balances_api import BalancesApi

payjpv2/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'payjp/payjpv2 PythonBindings/1.0.0'
95+
self.user_agent = 'payjp/payjpv2 PythonBindings/1.0.1'
9696
# Set X-Payjp-Client-User-Agent header.
9797
self.default_headers['X-Payjp-Client-User-Agent'] = self._build_client_user_agent()
9898
self.client_side_validation = configuration.client_side_validation
@@ -115,7 +115,7 @@ def user_agent(self, value):
115115
def _build_client_user_agent(self):
116116
"""Build X-Payjp-Client-User-Agent header value."""
117117
ua_info = {
118-
'bindings_version': '1.0.0',
118+
'bindings_version': '1.0.1',
119119
'lang': 'python',
120120
'lang_version': sys.version.split()[0],
121121
'publisher': 'payjp',

payjpv2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def to_debug_report(self) -> str:
525525
"OS: {env}\n"\
526526
"Python Version: {pyversion}\n"\
527527
"Version of the API: 2.0.0\n"\
528-
"SDK Package Version: 1.0.0".\
528+
"SDK Package Version: 1.0.1".\
529529
format(env=sys.platform, pyversion=sys.version)
530530

531531
def get_host_settings(self) -> List[HostSetting]:

payjpv2/models/payment_flow_cancel_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def cancellation_reason_validate_enum(cls, value):
3636
if value is None:
3737
return value
3838

39-
if value not in set(['duplicate', 'fraudulent', 'requested_by_customer', 'abondoned']):
40-
raise ValueError("must be one of enum values ('duplicate', 'fraudulent', 'requested_by_customer', 'abondoned')")
39+
if value not in set(['duplicate', 'fraudulent', 'requested_by_customer', 'abandoned']):
40+
raise ValueError("must be one of enum values ('duplicate', 'fraudulent', 'requested_by_customer', 'abandoned')")
4141
return value
4242

4343
model_config = ConfigDict(

payjpv2/models/setup_flow_cancellation_reason.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SetupFlowCancellationReason(str, Enum):
2727
"""
2828
allowed enum values
2929
"""
30-
ABONDONED = 'abondoned'
30+
ABANDONED = 'abandoned'
3131
DUPLICATE = 'duplicate'
3232
REQUESTED_BY_CUSTOMER = 'requested_by_customer'
3333

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "payjpv2"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "PAY.JP Python SDK - A Python client library for PAY.JP v2 API"
55
authors = [{name = "PAY.JP", email = "support@pay.jp"}]
66
license = {text = "MIT"}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "payjpv2"
25-
VERSION = "1.0.0"
25+
VERSION = "1.0.1"
2626
PYTHON_REQUIRES = ">= 3.8"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",

test/test_setup_flow_cancel_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> SetupFlowCancelRequest:
3636
model = SetupFlowCancelRequest()
3737
if include_optional:
3838
return SetupFlowCancelRequest(
39-
cancellation_reason = 'abondoned'
39+
cancellation_reason = 'abandoned'
4040
)
4141
else:
4242
return SetupFlowCancelRequest(

0 commit comments

Comments
 (0)