Skip to content

Commit 92be5a5

Browse files
authored
Merge pull request #20 from payjp/sdk-update-2026-03-10-99cbc86
feat: Update SDK from generator (2026-03-10)
2 parents 440780a + b62d638 commit 92be5a5

18 files changed

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

docs/PaymentMethodsApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Name | Type | Description | Notes
107107
108108
Create Payment Method
109109

110+
**このエンドポイントはテストモードでのみ使用できます。**
111+
110112
### Example
111113

112114
* Basic Authentication (HTTPBasic):

docs/ProductDetailsResponse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**object** | **str** | | [optional] [default to 'product']
99
**id** | **str** | 商品 ID |
10+
**livemode** | **bool** | 本番環境かどうか |
1011
**name** | **str** | Checkout などで顧客に表示される商品名 |
1112
**active** | **bool** | 商品が購入可能かどうか |
1213
**default_price_id** | **str** | |
1314
**description** | **str** | |
1415
**unit_label** | **str** | |
1516
**url** | **str** | |
17+
**created_at** | **datetime** | 作成日時 (UTC, ISO 8601 形式) |
18+
**updated_at** | **datetime** | 更新日時 (UTC, ISO 8601 形式) |
1619

1720
## Example
1821

docs/TaxRateDetailsResponse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**object** | **str** | | [optional] [default to 'tax_rate']
99
**id** | **str** | 税率 ID |
10+
**livemode** | **bool** | 本番環境かどうか |
1011
**display_name** | **str** | 表示名。顧客に表示されます。 |
1112
**inclusive** | **bool** | 税込みかどうか。税込 = `true` 税抜 = `false` |
1213
**percentage** | **float** | 税率 (% 単位) |
1314
**active** | **bool** | この税率が有効であるかどうか |
1415
**country** | [**Country**](Country.md) | |
1516
**description** | **str** | |
17+
**created_at** | **datetime** | 作成日時 (UTC, ISO 8601 形式) |
18+
**updated_at** | **datetime** | 更新日時 (UTC, ISO 8601 形式) |
1619
**metadata** | [**Dict[str, MetadataValue]**](MetadataValue.md) | メタデータ |
1720

1821
## Example

docs/TaxRatesApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Name | Type | Description | Notes
9696
[[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)
9797

9898
# **get_all_tax_rates**
99-
> TaxRateListResponse get_all_tax_rates(limit=limit, starting_after=starting_after, ending_before=ending_before)
99+
> TaxRateListResponse get_all_tax_rates(limit=limit, starting_after=starting_after, ending_before=ending_before, active=active, inclusive=inclusive)
100100
101101
Get All Tax Rates
102102

@@ -140,10 +140,12 @@ with payjpv2.ApiClient(configuration) as api_client:
140140
limit = 10 # int | 取得するデータの最大件数 (optional) (default to 10)
141141
starting_after = 'starting_after_example' # str | このIDより後のデータを取得 (optional)
142142
ending_before = 'ending_before_example' # str | このIDより前のデータを取得 (optional)
143+
active = True # bool | この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。 (optional)
144+
inclusive = True # bool | 税込みかどうか。税込 = `true` 税抜 = `false` (optional)
143145

144146
try:
145147
# Get All Tax Rates
146-
api_response = api_instance.get_all_tax_rates(limit=limit, starting_after=starting_after, ending_before=ending_before)
148+
api_response = api_instance.get_all_tax_rates(limit=limit, starting_after=starting_after, ending_before=ending_before, active=active, inclusive=inclusive)
147149
print("The response of TaxRatesApi->get_all_tax_rates:\n")
148150
pprint(api_response)
149151
except Exception as e:
@@ -160,6 +162,8 @@ Name | Type | Description | Notes
160162
**limit** | **int**| 取得するデータの最大件数 | [optional] [default to 10]
161163
**starting_after** | **str**| このIDより後のデータを取得 | [optional]
162164
**ending_before** | **str**| このIDより前のデータを取得 | [optional]
165+
**active** | **bool**| この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。 | [optional]
166+
**inclusive** | **bool**| 税込みかどうか。税込 = `true` 税抜 = `false` | [optional]
163167

164168
### Return type
165169

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.6"
18+
__version__ = "1.0.7"
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
@@ -373,6 +373,7 @@ def create_payment_method(
373373
) -> PaymentMethodResponse:
374374
"""Create Payment Method
375375
376+
**このエンドポイントはテストモードでのみ使用できます。**
376377
377378
:param payment_method_create_request: (required)
378379
:type payment_method_create_request: PaymentMethodCreateRequest
@@ -444,6 +445,7 @@ def create_payment_method_with_http_info(
444445
) -> ApiResponse[PaymentMethodResponse]:
445446
"""Create Payment Method
446447
448+
**このエンドポイントはテストモードでのみ使用できます。**
447449
448450
:param payment_method_create_request: (required)
449451
:type payment_method_create_request: PaymentMethodCreateRequest
@@ -515,6 +517,7 @@ def create_payment_method_without_preload_content(
515517
) -> RESTResponseType:
516518
"""Create Payment Method
517519
520+
**このエンドポイントはテストモードでのみ使用できます。**
518521
519522
:param payment_method_create_request: (required)
520523
:type payment_method_create_request: PaymentMethodCreateRequest

payjpv2/api/tax_rates_api.py

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import Any, Dict, List, Optional, Tuple, Union
1818
from typing_extensions import Annotated
1919

20-
from pydantic import Field, StrictStr
20+
from pydantic import Field, StrictBool, StrictStr
2121
from typing import Optional
2222
from typing_extensions import Annotated
2323
from payjpv2.models.tax_rate_create_request import TaxRateCreateRequest
@@ -337,6 +337,8 @@ def get_all_tax_rates(
337337
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="取得するデータの最大件数")] = None,
338338
starting_after: Annotated[Optional[StrictStr], Field(description="このIDより後のデータを取得")] = None,
339339
ending_before: Annotated[Optional[StrictStr], Field(description="このIDより前のデータを取得")] = None,
340+
active: Annotated[Optional[StrictBool], Field(description="この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。")] = None,
341+
inclusive: Annotated[Optional[StrictBool], Field(description="税込みかどうか。税込 = `true` 税抜 = `false`")] = None,
340342
*,
341343
request_timeout: Union[
342344
None,
@@ -360,6 +362,10 @@ def get_all_tax_rates(
360362
:type starting_after: str
361363
:param ending_before: このIDより前のデータを取得
362364
:type ending_before: str
365+
:param active: この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。
366+
:type active: bool
367+
:param inclusive: 税込みかどうか。税込 = `true` 税抜 = `false`
368+
:type inclusive: bool
363369
:param request_timeout: timeout setting for this request. If one
364370
number provided, it will be total request
365371
timeout. It can also be a pair (tuple) of
@@ -387,6 +393,8 @@ def get_all_tax_rates(
387393
limit=limit,
388394
starting_after=starting_after,
389395
ending_before=ending_before,
396+
active=active,
397+
inclusive=inclusive,
390398
_request_auth=request_auth,
391399
_content_type='application/json',
392400
_headers=headers,
@@ -416,6 +424,8 @@ def get_all_tax_rates_with_http_info(
416424
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="取得するデータの最大件数")] = None,
417425
starting_after: Annotated[Optional[StrictStr], Field(description="このIDより後のデータを取得")] = None,
418426
ending_before: Annotated[Optional[StrictStr], Field(description="このIDより前のデータを取得")] = None,
427+
active: Annotated[Optional[StrictBool], Field(description="この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。")] = None,
428+
inclusive: Annotated[Optional[StrictBool], Field(description="税込みかどうか。税込 = `true` 税抜 = `false`")] = None,
419429
*,
420430
request_timeout: Union[
421431
None,
@@ -439,6 +449,10 @@ def get_all_tax_rates_with_http_info(
439449
:type starting_after: str
440450
:param ending_before: このIDより前のデータを取得
441451
:type ending_before: str
452+
:param active: この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。
453+
:type active: bool
454+
:param inclusive: 税込みかどうか。税込 = `true` 税抜 = `false`
455+
:type inclusive: bool
442456
:param request_timeout: timeout setting for this request. If one
443457
number provided, it will be total request
444458
timeout. It can also be a pair (tuple) of
@@ -466,6 +480,8 @@ def get_all_tax_rates_with_http_info(
466480
limit=limit,
467481
starting_after=starting_after,
468482
ending_before=ending_before,
483+
active=active,
484+
inclusive=inclusive,
469485
_request_auth=request_auth,
470486
_content_type='application/json',
471487
_headers=headers,
@@ -495,6 +511,8 @@ def get_all_tax_rates_without_preload_content(
495511
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="取得するデータの最大件数")] = None,
496512
starting_after: Annotated[Optional[StrictStr], Field(description="このIDより後のデータを取得")] = None,
497513
ending_before: Annotated[Optional[StrictStr], Field(description="このIDより前のデータを取得")] = None,
514+
active: Annotated[Optional[StrictBool], Field(description="この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。")] = None,
515+
inclusive: Annotated[Optional[StrictBool], Field(description="税込みかどうか。税込 = `true` 税抜 = `false`")] = None,
498516
*,
499517
request_timeout: Union[
500518
None,
@@ -518,6 +536,10 @@ def get_all_tax_rates_without_preload_content(
518536
:type starting_after: str
519537
:param ending_before: このIDより前のデータを取得
520538
:type ending_before: str
539+
:param active: この税率が有効であるかどうか。無効にした場合でも、すでに設定されている定期課金などでは使用可能です。
540+
:type active: bool
541+
:param inclusive: 税込みかどうか。税込 = `true` 税抜 = `false`
542+
:type inclusive: bool
521543
:param request_timeout: timeout setting for this request. If one
522544
number provided, it will be total request
523545
timeout. It can also be a pair (tuple) of
@@ -545,6 +567,8 @@ def get_all_tax_rates_without_preload_content(
545567
limit=limit,
546568
starting_after=starting_after,
547569
ending_before=ending_before,
570+
active=active,
571+
inclusive=inclusive,
548572
_request_auth=request_auth,
549573
_content_type='application/json',
550574
_headers=headers,
@@ -569,6 +593,8 @@ def _get_all_tax_rates_serialize(
569593
limit,
570594
starting_after,
571595
ending_before,
596+
active,
597+
inclusive,
572598
_request_auth,
573599
_content_type,
574600
_headers,
@@ -606,6 +632,14 @@ def _get_all_tax_rates_serialize(
606632

607633
_query_params.append(('ending_before', ending_before))
608634

635+
if active is not None:
636+
637+
_query_params.append(('active', active))
638+
639+
if inclusive is not None:
640+
641+
_query_params.append(('inclusive', inclusive))
642+
609643
# process the header parameters
610644
# process the form parameters
611645
# process the body parameter

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

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

0 commit comments

Comments
 (0)