Skip to content

Commit a53986f

Browse files
authored
Merge pull request #21 from payjp/sdk-update-2026-03-25-7c129f0
fix: Update SDK from generator (2026-03-25)
2 parents 92be5a5 + d74d7cd commit a53986f

16 files changed

Lines changed: 36 additions & 16 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.7
8+
- Package version: 1.0.8
99
- Generator version: 7.14.0
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111

docs/CustomersApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Name | Type | Description | Notes
9494
|-------------|-------------|------------------|
9595
**200** | Successful Response | - |
9696
**422** | Validation Error | - |
97-
**400** | Already Exists ID<br>Unsupported Payment Method Type | - |
97+
**400** | Already Exists ID<br>Unsupported Payment Method Type<br>Payment Method Already Attached<br>Payment Method Customer Mismatch | - |
9898
**404** | Not Found | - |
9999

100100
[[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/PaymentFlowResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
**payment_method_id** | **str** | |
1919
**payment_method_options** | **Dict[str, object]** | |
2020
**payment_method_types** | [**List[PaymentMethodTypes]**](PaymentMethodTypes.md) | この PaymentFlow で使用できる支払い方法の種類のリスト |
21-
**status** | [**PaymentFlowStatus**](PaymentFlowStatus.md) | この PaymentFlow のステータス。<a href=\"https://docs.pay.jp/v2/payment_flows#status\" target=\"_blank\">ステータスの詳細についてはこちらをご覧ください。</a> | 値 | |:---| | **requires_payment_method**: 支払い方法が必要です。 | | **requires_confirmation**: 確認が必要です。 | | **requires_action**: 顧客のアクションが必要です。 | | **processing**: 処理中です。 | | **requires_capture**: 確定が必要です。 | | **canceled**: キャンセルされました。 | | **succeeded**: 成功しました。 | |
21+
**status** | [**PaymentFlowStatus**](PaymentFlowStatus.md) | この PaymentFlow のステータス。 | 値 | |:---| | **requires_payment_method**: 支払い方法が必要です。 | | **requires_confirmation**: 確認が必要です。 | | **requires_action**: 顧客のアクションが必要です。 | | **processing**: 処理中です。 | | **requires_capture**: 確定が必要です。 | | **canceled**: キャンセルされました。 | | **succeeded**: 成功しました。 | |
2222
**next_action** | **Dict[str, object]** | |
2323
**return_url** | **str** | |
2424
**capture_method** | [**CaptureMethod**](CaptureMethod.md) | 支払いの確定方法 | 値 | |:---| | **automatic**: (デフォルト) 顧客が支払いを承認すると、自動的に確定させます。 | | **manual**: 顧客が支払いを承認すると一旦確定を保留し、後で Capture API を使用して確定します。(すべての支払い方法がこれをサポートしているわけではありません)。 | |

docs/PaymentFlowsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 | - |
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 | - |
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** | Detached Payment Method Not Usable<br>Payment Method Not Owned By Customer<br>Payment Method Type Not Allowed | - |
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 | - |
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/PaymentMethodsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Name | Type | Description | Notes
187187
**200** | Successful Response | - |
188188
**422** | Validation Error | - |
189189
**404** | Not Found | - |
190+
**400** | Invalid Apple Pay Token<br>Unacceptable Brand On Apple Pay | - |
190191

191192
[[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)
192193

docs/PaymentTransactionsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Name | Type | Description | Notes
100100
**200** | Successful Response | - |
101101
**422** | Validation Error | - |
102102
**400** | Resource Missing | - |
103+
**404** | Not Found | - |
103104

104105
[[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)
105106

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** | Detached Payment Method Not Usable<br>Unsupported Payment Method Type<br>Invalid Request | - |
186+
**400** | Invalid Request | - |
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

example.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
create_request = payjpv2.CustomerCreateRequest(
2828
email="test@example.com",
2929
description="Test customer from Python SDK",
30+
metadata={
31+
"key1": payjpv2.MetadataValue("value1"),
32+
"key2": payjpv2.MetadataValue(123),
33+
"key3": payjpv2.MetadataValue(True),
34+
},
3035
)
3136

3237
idempotency_key = str(uuid.uuid4())
@@ -38,26 +43,33 @@
3843
)
3944
customer_id = customer.id
4045
print(f"Created customer: {customer_id}")
41-
print(f"Email: {customer.email}\n")
46+
print(f"Email: {customer.email}")
47+
print(f"Metadata: {customer.metadata}\n")
4248

4349
# 2. Get Customer
4450
print("=== 2. Get Customer ===")
4551
retrieved = customers_api.get_customer(customer_id)
4652
print(f"Retrieved customer: {retrieved.id}")
4753
print(f"Email: {retrieved.email}")
48-
print(f"Description: {retrieved.description or '(none)'}\n")
54+
print(f"Description: {retrieved.description or '(none)'}")
55+
print(f"Metadata: {retrieved.metadata}\n")
4956

5057
# 3. Update Customer
5158
print("=== 3. Update Customer ===")
5259
update_request = payjpv2.CustomerUpdateRequest(
5360
description="Updated description from Python SDK",
5461
email="updated@example.com",
62+
metadata={
63+
"key1": payjpv2.MetadataValue("updated_value"),
64+
"key4": payjpv2.MetadataValue(456),
65+
},
5566
)
5667

5768
updated = customers_api.update_customer(customer_id, update_request)
5869
print(f"Updated customer: {updated.id}")
5970
print(f"New email: {updated.email}")
60-
print(f"New description: {updated.description or '(none)'}\n")
71+
print(f"New description: {updated.description or '(none)'}")
72+
print(f"Metadata: {updated.metadata}\n")
6173

6274
# 4. List Customers
6375
print("=== 4. List Customers ===")

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.7"
18+
__version__ = "1.0.8"
1919

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

payjpv2/api/payment_methods_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ def create_payment_method(
413413
'200': "PaymentMethodResponse",
414414
'422': "ErrorResponse",
415415
'404': "ErrorResponse",
416+
'400': "ErrorResponse",
416417
}
417418
response_data = self.api_client.call_api(
418419
*_param,
@@ -485,6 +486,7 @@ def create_payment_method_with_http_info(
485486
'200': "PaymentMethodResponse",
486487
'422': "ErrorResponse",
487488
'404': "ErrorResponse",
489+
'400': "ErrorResponse",
488490
}
489491
response_data = self.api_client.call_api(
490492
*_param,
@@ -557,6 +559,7 @@ def create_payment_method_without_preload_content(
557559
'200': "PaymentMethodResponse",
558560
'422': "ErrorResponse",
559561
'404': "ErrorResponse",
562+
'400': "ErrorResponse",
560563
}
561564
response_data = self.api_client.call_api(
562565
*_param,

0 commit comments

Comments
 (0)