Skip to content

Commit 8960338

Browse files
Merge pull request #18 from payjp/sdk-update-2026-02-13-c481d41
feat: Update SDK from generator (2026-02-13)
2 parents 78bcef7 + aebd6a0 commit 8960338

38 files changed

Lines changed: 1698 additions & 58 deletions

.github/workflows/release.yml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: Release Python Package
1+
name: release
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
release:
5+
types: [published]
76

87
jobs:
9-
release:
8+
publish-pypi:
109
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1113

1214
steps:
1315
- uses: actions/checkout@v4
1416

1517
- name: Set up Python
16-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1719
with:
1820
python-version: "3.8"
1921

@@ -25,31 +27,13 @@ jobs:
2527
pip install -r test-requirements.txt
2628
2729
- name: Run tests
28-
run: |
29-
pytest --cov=payjpv2
30+
run: pytest --cov=payjpv2
3031

3132
- name: Build package
32-
run: |
33-
python -m build
33+
run: python -m build
3434

3535
- name: Publish to PyPI
3636
env:
3737
TWINE_USERNAME: __token__
3838
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
39-
run: |
40-
twine upload dist/*
41-
42-
- name: Create GitHub Release
43-
uses: actions/create-release@v1
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
with:
47-
tag_name: ${{ github.ref }}
48-
release_name: Release ${{ github.ref }}
49-
body: |
50-
Changes in this Release
51-
- Updated package metadata
52-
- Improved security
53-
- See CHANGELOG.md for details
54-
draft: false
55-
prerelease: false
39+
run: twine upload dist/*

README.md

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

@@ -95,6 +95,8 @@ Class | Method | HTTP request | Description
9595
*CustomersApi* | [**update_customer**](docs/CustomersApi.md#update_customer) | **POST** /v2/customers/{customer_id} | Update Customer
9696
*EventsApi* | [**get_all_events**](docs/EventsApi.md#get_all_events) | **GET** /v2/events | Get All Events
9797
*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /v2/events/{event_id} | Get Event
98+
*PaymentDisputesApi* | [**get_all_payment_disputes**](docs/PaymentDisputesApi.md#get_all_payment_disputes) | **GET** /v2/payment_disputes | Get All Payment Disputes
99+
*PaymentDisputesApi* | [**get_payment_dispute**](docs/PaymentDisputesApi.md#get_payment_dispute) | **GET** /v2/payment_disputes/{payment_dispute_id} | Get Payment Dispute
98100
*PaymentRefundsApi* | [**create_payment_refund**](docs/PaymentRefundsApi.md#create_payment_refund) | **POST** /v2/payment_refunds | Create Payment Refund
99101
*PaymentRefundsApi* | [**get_all_payment_refunds**](docs/PaymentRefundsApi.md#get_all_payment_refunds) | **GET** /v2/payment_refunds | Get All Payment Refunds
100102
*PaymentRefundsApi* | [**get_payment_refund**](docs/PaymentRefundsApi.md#get_payment_refund) | **GET** /v2/payment_refunds/{payment_refund_id} | Get Payment Refund
@@ -182,6 +184,10 @@ Class | Method | HTTP request | Description
182184
- [Locale](docs/Locale.md)
183185
- [MetadataValue](docs/MetadataValue.md)
184186
- [PayPayConfigRequest](docs/PayPayConfigRequest.md)
187+
- [PaymentDisputeListResponse](docs/PaymentDisputeListResponse.md)
188+
- [PaymentDisputeReason](docs/PaymentDisputeReason.md)
189+
- [PaymentDisputeResponse](docs/PaymentDisputeResponse.md)
190+
- [PaymentDisputeStatus](docs/PaymentDisputeStatus.md)
185191
- [PaymentFlowCancelRequest](docs/PaymentFlowCancelRequest.md)
186192
- [PaymentFlowCancellationReason](docs/PaymentFlowCancellationReason.md)
187193
- [PaymentFlowCaptureRequest](docs/PaymentFlowCaptureRequest.md)

docs/CheckoutSessionLineItemDataResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**amount_tax** | **int** | 税額 |
1212
**amount_total** | **int** | 割引と税金が適用された後のすべての商品の合計金額 |
1313
**currency** | [**Currency**](Currency.md) | 価格の通貨。現在は `jpy` のみサポートしています。 |
14-
**description** | **str** | 説明 |
14+
**description** | **str** | |
1515
**price** | [**PriceDetailsResponse**](PriceDetailsResponse.md) | 料金情報 |
1616
**quantity** | **int** | 数量 |
1717

docs/PaymentDisputeListResponse.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# PaymentDisputeListResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**object** | **str** | | [optional] [default to 'list']
9+
**url** | **str** | リスト取得URL |
10+
**has_more** | **bool** | 次のページがあるかどうか |
11+
**data** | [**List[PaymentDisputeResponse]**](PaymentDisputeResponse.md) | PaymentDispute リスト |
12+
13+
## Example
14+
15+
```python
16+
from payjpv2.models.payment_dispute_list_response import PaymentDisputeListResponse
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of PaymentDisputeListResponse from a JSON string
21+
payment_dispute_list_response_instance = PaymentDisputeListResponse.from_json(json)
22+
# print the JSON string representation of the object
23+
print(PaymentDisputeListResponse.to_json())
24+
25+
# convert the object into a dict
26+
payment_dispute_list_response_dict = payment_dispute_list_response_instance.to_dict()
27+
# create an instance of PaymentDisputeListResponse from a dict
28+
payment_dispute_list_response_from_dict = PaymentDisputeListResponse.from_dict(payment_dispute_list_response_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

docs/PaymentDisputeReason.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# PaymentDisputeReason
2+
3+
4+
## Enum
5+
6+
* `RESEARCHING` (value: `'researching'`)
7+
8+
* `RESEARCHING_FRAUDULENT` (value: `'researching_fraudulent'`)
9+
10+
* `WARNED_FRAUDULENT` (value: `'warned_fraudulent'`)
11+
12+
* `CONFIRMED_FRAUDULENT` (value: `'confirmed_fraudulent'`)
13+
14+
* `UNRECOGNIZED` (value: `'unrecognized'`)
15+
16+
* `FRAUDULENT` (value: `'fraudulent'`)
17+
18+
* `PRODUCT_NOT_RECEIVED` (value: `'product_not_received'`)
19+
20+
* `ONLINE_FRAUDULENT` (value: `'online_fraudulent'`)
21+
22+
* `INCORRECT_ACCOUNT_DETAILS` (value: `'incorrect_account_details'`)
23+
24+
* `RECEIVING_CHARGEBACK` (value: `'receiving_chargeback'`)
25+
26+
* `DUPLICATE` (value: `'duplicate'`)
27+
28+
* `NOT_AUTHORIZED` (value: `'not_authorized'`)
29+
30+
* `SUBSCRIPTION_CANCELED` (value: `'subscription_canceled'`)
31+
32+
* `CHECK_RETURNED` (value: `'check_returned'`)
33+
34+
* `OTHER` (value: `'other'`)
35+
36+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
37+
38+

docs/PaymentDisputeResponse.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# PaymentDisputeResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**object** | **str** | | [optional] [default to 'payment_dispute']
9+
**id** | **str** | PaymentDispute ID |
10+
**livemode** | **bool** | 本番環境かどうか |
11+
**payment_flow_id** | **str** | 関連する PaymentFlow の ID |
12+
**amount** | **int** | 金額 |
13+
**currency** | [**Currency**](Currency.md) | 通貨コード (ISO 4217) |
14+
**status** | [**PaymentDisputeStatus**](PaymentDisputeStatus.md) | disputeのステータス | 値 | |:---| | **pre_warning_needs_response**: 利用照会 | | **warning_needs_response**: 配送保留 | | **warning_needs_refund**: 配送停止 | | **warning_under_review**: 加盟店回答済 | | **needs_response**: チャージバック | | **under_review**: 反証済 | | **lost**: チャージバック受入 | | **cancel**: 取下げ | |
15+
**reason** | [**PaymentDisputeReason**](PaymentDisputeReason.md) | |
16+
**due_by** | **datetime** | |
17+
**payment_method_type** | [**PaymentMethodTypes**](PaymentMethodTypes.md) | 支払い方法の種類 |
18+
**metadata** | [**Dict[str, MetadataValue]**](MetadataValue.md) | メタデータ |
19+
**created_at** | **datetime** | 作成日時 (UTC, ISO 8601 形式) |
20+
**updated_at** | **datetime** | 更新日時 (UTC, ISO 8601 形式) |
21+
22+
## Example
23+
24+
```python
25+
from payjpv2.models.payment_dispute_response import PaymentDisputeResponse
26+
27+
# TODO update the JSON string below
28+
json = "{}"
29+
# create an instance of PaymentDisputeResponse from a JSON string
30+
payment_dispute_response_instance = PaymentDisputeResponse.from_json(json)
31+
# print the JSON string representation of the object
32+
print(PaymentDisputeResponse.to_json())
33+
34+
# convert the object into a dict
35+
payment_dispute_response_dict = payment_dispute_response_instance.to_dict()
36+
# create an instance of PaymentDisputeResponse from a dict
37+
payment_dispute_response_from_dict = PaymentDisputeResponse.from_dict(payment_dispute_response_dict)
38+
```
39+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
40+
41+

docs/PaymentDisputeStatus.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# PaymentDisputeStatus
2+
3+
4+
## Enum
5+
6+
* `PRE_WARNING_NEEDS_RESPONSE` (value: `'pre_warning_needs_response'`)
7+
8+
* `WARNING_NEEDS_RESPONSE` (value: `'warning_needs_response'`)
9+
10+
* `WARNING_NEEDS_REFUND` (value: `'warning_needs_refund'`)
11+
12+
* `WARNING_UNDER_REVIEW` (value: `'warning_under_review'`)
13+
14+
* `NEEDS_RESPONSE` (value: `'needs_response'`)
15+
16+
* `UNDER_REVIEW` (value: `'under_review'`)
17+
18+
* `LOST` (value: `'lost'`)
19+
20+
* `CANCEL` (value: `'cancel'`)
21+
22+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
23+
24+

0 commit comments

Comments
 (0)