Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
payjpv2 (1.0.9)
payjpv2 (1.0.10)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/CheckoutSessionPaymentMethodOptionsCardRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentFlowPaymentMethodOptionsCardRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/PaymentFlowResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 形式) | |
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 セキュア認証を要求します。 |
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 セキュア認証を要求します。 |
Expand Down Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion lib/payjpv2/models/payment_flow_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class PaymentFlowResponse

attr_accessor :canceled_at

attr_accessor :expired_at

# メタデータ
attr_accessor :metadata

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -156,6 +159,7 @@ def self.openapi_types
:last_payment_error => :'Hash<String, Object>',
:cancellation_reason => :'PaymentFlowCancellationReason',
:canceled_at => :'Time',
:expired_at => :'Time',
:metadata => :'Hash<String, MetadataValue>',
:created_at => :'Time',
:updated_at => :'Time'
Expand All @@ -176,6 +180,7 @@ def self.openapi_nullable
:last_payment_error,
:cancellation_reason,
:canceled_at,
:expired_at,
])
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/payjpv2/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module PAYJPv2
VERSION = '1.0.9'
VERSION = '1.0.10'
end
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions spec/models/payment_flow_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Loading