Skip to content

Commit d69a2e2

Browse files
Merge pull request #18 from payjp/sdk-update-2026-04-02-9258468
feat: Update SDK from generator (2026-04-02)
2 parents 365d6a0 + d666ffe commit d69a2e2

12 files changed

Lines changed: 31 additions & 13 deletions

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
payjpv2 (1.0.9)
4+
payjpv2 (1.0.10)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A Ruby client library for the PAY.JP v2 API. This SDK provides a convenient way
55
This Ruby gem 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.RubyClientCodegen
1111

@@ -26,7 +26,7 @@ gem install payjpv2
2626
Add this line to your application's Gemfile:
2727

2828
```ruby
29-
gem 'payjpv2', '~> 1.0.9'
29+
gem 'payjpv2', '~> 1.0.10'
3030
```
3131

3232
Then execute:

docs/CheckoutSessionPaymentMethodOptionsCardRequest.md

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

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

1010
## Example

docs/PaymentFlowPaymentMethodOptionsCardRequest.md

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

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

1010
## Example

docs/PaymentFlowResponse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
| **last_payment_error** | **Hash<String, Object>** | | |
2525
| **cancellation_reason** | [**PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | | |
2626
| **canceled_at** | **Time** | | |
27+
| **expired_at** | **Time** | | [optional] |
2728
| **metadata** | [**Hash<String, MetadataValue>**](MetadataValue.md) | メタデータ | |
2829
| **created_at** | **Time** | 作成日時 (UTC, ISO 8601 形式) | |
2930
| **updated_at** | **Time** | 更新日時 (UTC, ISO 8601 形式) | |
@@ -54,6 +55,7 @@ instance = PAYJPv2::PaymentFlowResponse.new(
5455
last_payment_error: null,
5556
cancellation_reason: null,
5657
canceled_at: null,
58+
expired_at: null,
5759
metadata: null,
5860
created_at: null,
5961
updated_at: null

lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module PAYJPv2
1717
class CheckoutSessionPaymentMethodOptionsCardRequest
18-
# オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 |
18+
# オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 |
1919
attr_accessor :request_extended_authorization
2020

2121
# 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 |
@@ -103,7 +103,7 @@ def initialize(attributes = {})
103103
# Custom attribute writer method checking allowed values (enum).
104104
# @param [Object] request_extended_authorization Object to be assigned
105105
def request_extended_authorization=(request_extended_authorization)
106-
validator = EnumAttributeValidator.new('String', ["if_available", "never"])
106+
validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
107107
unless validator.valid?(request_extended_authorization)
108108
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
109109
end

lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module PAYJPv2
1717
class PaymentFlowPaymentMethodOptionsCardRequest
18-
# オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 |
18+
# オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 |
1919
attr_accessor :request_extended_authorization
2020

2121
# 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 |
@@ -103,7 +103,7 @@ def initialize(attributes = {})
103103
# Custom attribute writer method checking allowed values (enum).
104104
# @param [Object] request_extended_authorization Object to be assigned
105105
def request_extended_authorization=(request_extended_authorization)
106-
validator = EnumAttributeValidator.new('String', ["if_available", "never"])
106+
validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
107107
unless validator.valid?(request_extended_authorization)
108108
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
109109
end

lib/payjpv2/models/payment_flow_response.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class PaymentFlowResponse
6363

6464
attr_accessor :canceled_at
6565

66+
attr_accessor :expired_at
67+
6668
# メタデータ
6769
attr_accessor :metadata
6870

@@ -117,6 +119,7 @@ def self.attribute_map
117119
:last_payment_error => :last_payment_error,
118120
:cancellation_reason => :cancellation_reason,
119121
:canceled_at => :canceled_at,
122+
:expired_at => :expired_at,
120123
:metadata => :metadata,
121124
:created_at => :created_at,
122125
:updated_at => :updated_at
@@ -156,6 +159,7 @@ def self.openapi_types
156159
:last_payment_error => :'Hash<String, Object>',
157160
:cancellation_reason => :'PaymentFlowCancellationReason',
158161
:canceled_at => :'Time',
162+
:expired_at => :'Time',
159163
:metadata => :'Hash<String, MetadataValue>',
160164
:created_at => :'Time',
161165
:updated_at => :'Time'
@@ -176,6 +180,7 @@ def self.openapi_nullable
176180
:last_payment_error,
177181
:cancellation_reason,
178182
:canceled_at,
183+
:expired_at,
179184
])
180185
end
181186

@@ -323,6 +328,10 @@ def initialize(attributes = {})
323328
self.canceled_at = nil
324329
end
325330

331+
if attributes.key?(:expired_at)
332+
self.expired_at = attributes[:expired_at]
333+
end
334+
326335
if attributes.key?(:metadata)
327336
if (value = attributes[:metadata]).is_a?(Hash)
328337
self.metadata = value
@@ -489,6 +498,7 @@ def ==(o)
489498
last_payment_error == o.last_payment_error &&
490499
cancellation_reason == o.cancellation_reason &&
491500
canceled_at == o.canceled_at &&
501+
expired_at == o.expired_at &&
492502
metadata == o.metadata &&
493503
created_at == o.created_at &&
494504
updated_at == o.updated_at
@@ -503,7 +513,7 @@ def eql?(o)
503513
# Calculates hash code according to all attributes.
504514
# @return [Integer] Hash code
505515
def hash
506-
[object, id, livemode, amount, currency, amount_capturable, amount_received, client_secret, customer_id, description, payment_method_id, payment_method_options, payment_method_types, status, next_action, return_url, capture_method, last_payment_error, cancellation_reason, canceled_at, metadata, created_at, updated_at].hash
516+
[object, id, livemode, amount, currency, amount_capturable, amount_received, client_secret, customer_id, description, payment_method_id, payment_method_options, payment_method_types, status, next_action, return_url, capture_method, last_payment_error, cancellation_reason, canceled_at, expired_at, metadata, created_at, updated_at].hash
507517
end
508518

509519
# Builds the object from hash

lib/payjpv2/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module PAYJPv2
14-
VERSION = '1.0.9'
14+
VERSION = '1.0.10'
1515
end

spec/models/checkout_session_payment_method_options_card_request_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
describe 'test attribute "request_extended_authorization"' do
3131
it 'should work' do
3232
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "never"])
33+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
3434
# validator.allowable_values.each do |value|
3535
# expect { instance.request_extended_authorization = value }.not_to raise_error
3636
# end

0 commit comments

Comments
 (0)