diff --git a/Gemfile.lock b/Gemfile.lock index b426488..e2735a0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - payjpv2 (1.0.9) + payjpv2 (1.0.10) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/README.md b/README.md index 7a68dbe..9381c6b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A Ruby client library for the PAY.JP v2 API. This SDK provides a convenient way This Ruby gem is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 2.0.0 -- Package version: 1.0.9 +- Package version: 1.0.10 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -26,7 +26,7 @@ gem install payjpv2 Add this line to your application's Gemfile: ```ruby -gem 'payjpv2', '~> 1.0.9' +gem 'payjpv2', '~> 1.0.10' ``` Then execute: diff --git a/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md b/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md index 5b12afd..068a900 100644 --- a/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md +++ b/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] | +| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] | | **request_three_d_secure** | **String** | 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] | ## Example diff --git a/docs/PaymentFlowPaymentMethodOptionsCardRequest.md b/docs/PaymentFlowPaymentMethodOptionsCardRequest.md index 0490f22..bd6a62d 100644 --- a/docs/PaymentFlowPaymentMethodOptionsCardRequest.md +++ b/docs/PaymentFlowPaymentMethodOptionsCardRequest.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] | +| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] | | **request_three_d_secure** | **String** | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] | ## Example diff --git a/docs/PaymentFlowResponse.md b/docs/PaymentFlowResponse.md index 5f8fd95..5652f2b 100644 --- a/docs/PaymentFlowResponse.md +++ b/docs/PaymentFlowResponse.md @@ -24,6 +24,7 @@ | **last_payment_error** | **Hash<String, Object>** | | | | **cancellation_reason** | [**PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | | | | **canceled_at** | **Time** | | | +| **expired_at** | **Time** | | [optional] | | **metadata** | [**Hash<String, MetadataValue>**](MetadataValue.md) | メタデータ | | | **created_at** | **Time** | 作成日時 (UTC, ISO 8601 形式) | | | **updated_at** | **Time** | 更新日時 (UTC, ISO 8601 形式) | | @@ -54,6 +55,7 @@ instance = PAYJPv2::PaymentFlowResponse.new( last_payment_error: null, cancellation_reason: null, canceled_at: null, + expired_at: null, metadata: null, created_at: null, updated_at: null diff --git a/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb b/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb index 421cf3a..202994e 100644 --- a/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb +++ b/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb @@ -15,7 +15,7 @@ module PAYJPv2 class CheckoutSessionPaymentMethodOptionsCardRequest - # オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | + # オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | attr_accessor :request_extended_authorization # 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | @@ -103,7 +103,7 @@ def initialize(attributes = {}) # Custom attribute writer method checking allowed values (enum). # @param [Object] request_extended_authorization Object to be assigned def request_extended_authorization=(request_extended_authorization) - validator = EnumAttributeValidator.new('String', ["if_available", "never"]) + validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"]) unless validator.valid?(request_extended_authorization) raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}." end diff --git a/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb b/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb index ab81bbc..8765c47 100644 --- a/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb +++ b/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb @@ -15,7 +15,7 @@ module PAYJPv2 class PaymentFlowPaymentMethodOptionsCardRequest - # オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | + # オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | attr_accessor :request_extended_authorization # 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | @@ -103,7 +103,7 @@ def initialize(attributes = {}) # Custom attribute writer method checking allowed values (enum). # @param [Object] request_extended_authorization Object to be assigned def request_extended_authorization=(request_extended_authorization) - validator = EnumAttributeValidator.new('String', ["if_available", "never"]) + validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"]) unless validator.valid?(request_extended_authorization) raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}." end diff --git a/lib/payjpv2/models/payment_flow_response.rb b/lib/payjpv2/models/payment_flow_response.rb index 89bea5f..28e54b9 100644 --- a/lib/payjpv2/models/payment_flow_response.rb +++ b/lib/payjpv2/models/payment_flow_response.rb @@ -63,6 +63,8 @@ class PaymentFlowResponse attr_accessor :canceled_at + attr_accessor :expired_at + # メタデータ attr_accessor :metadata @@ -117,6 +119,7 @@ def self.attribute_map :last_payment_error => :last_payment_error, :cancellation_reason => :cancellation_reason, :canceled_at => :canceled_at, + :expired_at => :expired_at, :metadata => :metadata, :created_at => :created_at, :updated_at => :updated_at @@ -156,6 +159,7 @@ def self.openapi_types :last_payment_error => :'Hash', :cancellation_reason => :'PaymentFlowCancellationReason', :canceled_at => :'Time', + :expired_at => :'Time', :metadata => :'Hash', :created_at => :'Time', :updated_at => :'Time' @@ -176,6 +180,7 @@ def self.openapi_nullable :last_payment_error, :cancellation_reason, :canceled_at, + :expired_at, ]) end @@ -323,6 +328,10 @@ def initialize(attributes = {}) self.canceled_at = nil end + if attributes.key?(:expired_at) + self.expired_at = attributes[:expired_at] + end + if attributes.key?(:metadata) if (value = attributes[:metadata]).is_a?(Hash) self.metadata = value @@ -489,6 +498,7 @@ def ==(o) last_payment_error == o.last_payment_error && cancellation_reason == o.cancellation_reason && canceled_at == o.canceled_at && + expired_at == o.expired_at && metadata == o.metadata && created_at == o.created_at && updated_at == o.updated_at @@ -503,7 +513,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/lib/payjpv2/version.rb b/lib/payjpv2/version.rb index 8c9d805..9ddaabf 100644 --- a/lib/payjpv2/version.rb +++ b/lib/payjpv2/version.rb @@ -11,5 +11,5 @@ =end module PAYJPv2 - VERSION = '1.0.9' + VERSION = '1.0.10' end diff --git a/spec/models/checkout_session_payment_method_options_card_request_spec.rb b/spec/models/checkout_session_payment_method_options_card_request_spec.rb index 059a108..7888cb3 100644 --- a/spec/models/checkout_session_payment_method_options_card_request_spec.rb +++ b/spec/models/checkout_session_payment_method_options_card_request_spec.rb @@ -30,7 +30,7 @@ describe 'test attribute "request_extended_authorization"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "never"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"]) # validator.allowable_values.each do |value| # expect { instance.request_extended_authorization = value }.not_to raise_error # end diff --git a/spec/models/payment_flow_payment_method_options_card_request_spec.rb b/spec/models/payment_flow_payment_method_options_card_request_spec.rb index db019a9..97d6ad5 100644 --- a/spec/models/payment_flow_payment_method_options_card_request_spec.rb +++ b/spec/models/payment_flow_payment_method_options_card_request_spec.rb @@ -30,7 +30,7 @@ describe 'test attribute "request_extended_authorization"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "never"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"]) # validator.allowable_values.each do |value| # expect { instance.request_extended_authorization = value }.not_to raise_error # end diff --git a/spec/models/payment_flow_response_spec.rb b/spec/models/payment_flow_response_spec.rb index 8a3574d..95f1019 100644 --- a/spec/models/payment_flow_response_spec.rb +++ b/spec/models/payment_flow_response_spec.rb @@ -151,6 +151,12 @@ end end + describe 'test attribute "expired_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "metadata"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/