Skip to content

Commit 968e579

Browse files
Merge pull request #23 from payjp/sdk-update-2026-04-02-9258468
feat: Update SDK from generator (2026-04-02)
2 parents c332027 + 5b7102b commit 968e579

16 files changed

+31
-20
lines changed

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.9
8+
- Package version: 1.0.10
99
- Generator version: 7.14.0
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111

docs/CheckoutSessionPaymentMethodOptionsCardRequest.md

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

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**request_extended_authorization** | **str** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional]
8+
**request_extended_authorization** | **str** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional]
99
**request_three_d_secure** | **str** | 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional]
1010

1111
## Example

docs/PaymentFlowPaymentMethodOptionsCardRequest.md

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

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**request_extended_authorization** | **str** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional]
8+
**request_extended_authorization** | **str** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional]
99
**request_three_d_secure** | **str** | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional]
1010

1111
## Example

docs/PaymentFlowResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**last_payment_error** | **Dict[str, object]** | |
2626
**cancellation_reason** | [**PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | |
2727
**canceled_at** | **datetime** | |
28+
**expired_at** | **datetime** | | [optional]
2829
**metadata** | [**Dict[str, MetadataValue]**](MetadataValue.md) | メタデータ |
2930
**created_at** | **datetime** | 作成日時 (UTC, ISO 8601 形式) |
3031
**updated_at** | **datetime** | 更新日時 (UTC, ISO 8601 形式) |

docs/PaymentFlowsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Name | Type | Description | Notes
188188
**200** | Successful Response | - |
189189
**422** | Validation Error | - |
190190
**404** | Not Found | - |
191-
**400** | Invalid Status | - |
191+
**400** | Invalid Status<br>Payment Flow Expired | - |
192192
**402** | Payment Failed | - |
193193

194194
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -278,7 +278,7 @@ Name | Type | Description | Notes
278278
**200** | Successful Response | - |
279279
**422** | Validation Error | - |
280280
**404** | Not Found | - |
281-
**400** | Invalid Status<br>Missing Payment Method<br>Detached Payment Method Not Usable<br>Payment Method Not Owned By Customer<br>Customer Required For Payment Method<br>Payment Method Type Not Allowed<br>Apple Pay Disabled In Livemode<br>Invalid Apple Pay Token<br>Unacceptable Brand On Apple Pay | - |
281+
**400** | Invalid Status<br>Missing Payment Method<br>Detached Payment Method Not Usable<br>Payment Method Not Owned By Customer<br>Customer Required For Payment Method<br>Payment Method Type Not Allowed<br>Extended Authorization Not Available<br>Apple Pay Disabled In Livemode<br>Invalid Apple Pay Token<br>Unacceptable Brand On Apple Pay | - |
282282
**402** | Payment Failed | - |
283283

284284
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -366,7 +366,7 @@ Name | Type | Description | Notes
366366
**200** | Successful Response | - |
367367
**422** | Validation Error | - |
368368
**404** | Not Found | - |
369-
**400** | Missing Payment Method<br>Detached Payment Method Not Usable<br>Payment Method Not Owned By Customer<br>Payment Method Type Not Allowed<br>Apple Pay Disabled In Livemode<br>Invalid Apple Pay Token<br>Unacceptable Brand On Apple Pay | - |
369+
**400** | Missing Payment Method<br>Detached Payment Method Not Usable<br>Payment Method Not Owned By Customer<br>Payment Method Type Not Allowed<br>Extended Authorization Not Available<br>Apple Pay Disabled In Livemode<br>Invalid Apple Pay Token<br>Unacceptable Brand On Apple Pay | - |
370370
**402** | Payment Failed | - |
371371

372372
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

docs/SetupFlowsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
183183
**200** | Successful Response | - |
184184
**422** | Validation Error | - |
185185
**404** | Not Found | - |
186-
**400** | Invalid Request | - |
186+
**400** | Invalid Payment Method Types | - |
187187

188188
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
189189

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.9"
18+
__version__ = "1.0.10"
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.9'
95+
self.user_agent = 'payjp/payjpv2 PythonBindings/1.0.10'
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.9',
118+
'bindings_version': '1.0.10',
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.9".\
528+
"SDK Package Version: 1.0.10".\
529529
format(env=sys.platform, pyversion=sys.version)
530530

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

payjpv2/models/checkout_session_payment_method_options_card_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CheckoutSessionPaymentMethodOptionsCardRequest(BaseModel):
2727
"""
2828
CheckoutSessionPaymentMethodOptionsCardRequest
2929
""" # noqa: E501
30-
request_extended_authorization: Optional[StrictStr] = Field(default=None, description="オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 |")
30+
request_extended_authorization: Optional[StrictStr] = Field(default=None, description="オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 |")
3131
request_three_d_secure: Optional[StrictStr] = Field(default=None, description="3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 |")
3232
__properties: ClassVar[List[str]] = ["request_extended_authorization", "request_three_d_secure"]
3333

@@ -37,8 +37,8 @@ def request_extended_authorization_validate_enum(cls, value):
3737
if value is None:
3838
return value
3939

40-
if value not in set(['if_available', 'never']):
41-
raise ValueError("must be one of enum values ('if_available', 'never')")
40+
if value not in set(['if_available', 'must_extend', 'never']):
41+
raise ValueError("must be one of enum values ('if_available', 'must_extend', 'never')")
4242
return value
4343

4444
@field_validator('request_three_d_secure')

0 commit comments

Comments
 (0)