payjpv2 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md +1 -1
- data/docs/PaymentFlowPaymentMethodOptionsCardRequest.md +1 -1
- data/docs/PaymentFlowResponse.md +2 -0
- data/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb +2 -2
- data/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb +2 -2
- data/lib/payjpv2/models/payment_flow_response.rb +11 -1
- data/lib/payjpv2/version.rb +1 -1
- data/spec/models/checkout_session_payment_method_options_card_request_spec.rb +1 -1
- data/spec/models/payment_flow_payment_method_options_card_request_spec.rb +1 -1
- data/spec/models/payment_flow_response_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 763b163bb9ca0ca64ab5680c2ce6a4692b23ba7adfe6565bfa9c7af5d69503c3
|
|
4
|
+
data.tar.gz: 6ea914a0427bcf2fbafd02f1605545229c3320169d5324f1a590999ea4c583b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b8a6fa2ca6a2736cb7490326aa9592276c9163d7a068de1c451d02dea05271d012336a0625650fe281c84d77cb30092d7047dbb0e85a89ef3ac82b79812b24b
|
|
7
|
+
data.tar.gz: 14ecb925bd10aa5494c46d1035ab7233f4ecc2246f8ac13a65f229b1dadd604a0161837c0ba700fbe43e74d041258bbf9453aa903151622497069081750d7b46
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A Ruby client library for the PAY.JP v2 API. This SDK provides a convenient way
|
|
|
5
5
|
This Ruby gem is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
6
|
|
|
7
7
|
- API version: 2.0.0
|
|
8
|
-
- Package version: 1.0.
|
|
8
|
+
- Package version: 1.0.10
|
|
9
9
|
- Generator version: 7.14.0
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@ gem install payjpv2
|
|
|
26
26
|
Add this line to your application's Gemfile:
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
|
-
gem 'payjpv2', '~> 1.0.
|
|
29
|
+
gem 'payjpv2', '~> 1.0.10'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Then execute:
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
7
|
+
| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
8
8
|
| **request_three_d_secure** | **String** | 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
7
|
+
| **request_extended_authorization** | **String** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
8
8
|
| **request_three_d_secure** | **String** | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
data/docs/PaymentFlowResponse.md
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
| **last_payment_error** | **Hash<String, Object>** | | |
|
|
25
25
|
| **cancellation_reason** | [**PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | | |
|
|
26
26
|
| **canceled_at** | **Time** | | |
|
|
27
|
+
| **expired_at** | **Time** | | [optional] |
|
|
27
28
|
| **metadata** | [**Hash<String, MetadataValue>**](MetadataValue.md) | メタデータ | |
|
|
28
29
|
| **created_at** | **Time** | 作成日時 (UTC, ISO 8601 形式) | |
|
|
29
30
|
| **updated_at** | **Time** | 更新日時 (UTC, ISO 8601 形式) | |
|
|
@@ -54,6 +55,7 @@ instance = PAYJPv2::PaymentFlowResponse.new(
|
|
|
54
55
|
last_payment_error: null,
|
|
55
56
|
cancellation_reason: null,
|
|
56
57
|
canceled_at: null,
|
|
58
|
+
expired_at: null,
|
|
57
59
|
metadata: null,
|
|
58
60
|
created_at: null,
|
|
59
61
|
updated_at: null
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module PAYJPv2
|
|
17
17
|
class CheckoutSessionPaymentMethodOptionsCardRequest
|
|
18
|
-
# オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 |
|
|
18
|
+
# オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 |
|
|
19
19
|
attr_accessor :request_extended_authorization
|
|
20
20
|
|
|
21
21
|
# 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 |
|
|
@@ -103,7 +103,7 @@ module PAYJPv2
|
|
|
103
103
|
# Custom attribute writer method checking allowed values (enum).
|
|
104
104
|
# @param [Object] request_extended_authorization Object to be assigned
|
|
105
105
|
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"])
|
|
107
107
|
unless validator.valid?(request_extended_authorization)
|
|
108
108
|
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
|
|
109
109
|
end
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module PAYJPv2
|
|
17
17
|
class PaymentFlowPaymentMethodOptionsCardRequest
|
|
18
|
-
# オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 |
|
|
18
|
+
# オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 |
|
|
19
19
|
attr_accessor :request_extended_authorization
|
|
20
20
|
|
|
21
21
|
# 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 |
|
|
@@ -103,7 +103,7 @@ module PAYJPv2
|
|
|
103
103
|
# Custom attribute writer method checking allowed values (enum).
|
|
104
104
|
# @param [Object] request_extended_authorization Object to be assigned
|
|
105
105
|
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"])
|
|
107
107
|
unless validator.valid?(request_extended_authorization)
|
|
108
108
|
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
|
|
109
109
|
end
|
|
@@ -63,6 +63,8 @@ module PAYJPv2
|
|
|
63
63
|
|
|
64
64
|
attr_accessor :canceled_at
|
|
65
65
|
|
|
66
|
+
attr_accessor :expired_at
|
|
67
|
+
|
|
66
68
|
# メタデータ
|
|
67
69
|
attr_accessor :metadata
|
|
68
70
|
|
|
@@ -117,6 +119,7 @@ module PAYJPv2
|
|
|
117
119
|
:last_payment_error => :last_payment_error,
|
|
118
120
|
:cancellation_reason => :cancellation_reason,
|
|
119
121
|
:canceled_at => :canceled_at,
|
|
122
|
+
:expired_at => :expired_at,
|
|
120
123
|
:metadata => :metadata,
|
|
121
124
|
:created_at => :created_at,
|
|
122
125
|
:updated_at => :updated_at
|
|
@@ -156,6 +159,7 @@ module PAYJPv2
|
|
|
156
159
|
:last_payment_error => :'Hash<String, Object>',
|
|
157
160
|
:cancellation_reason => :'PaymentFlowCancellationReason',
|
|
158
161
|
:canceled_at => :'Time',
|
|
162
|
+
:expired_at => :'Time',
|
|
159
163
|
:metadata => :'Hash<String, MetadataValue>',
|
|
160
164
|
:created_at => :'Time',
|
|
161
165
|
:updated_at => :'Time'
|
|
@@ -176,6 +180,7 @@ module PAYJPv2
|
|
|
176
180
|
:last_payment_error,
|
|
177
181
|
:cancellation_reason,
|
|
178
182
|
:canceled_at,
|
|
183
|
+
:expired_at,
|
|
179
184
|
])
|
|
180
185
|
end
|
|
181
186
|
|
|
@@ -323,6 +328,10 @@ module PAYJPv2
|
|
|
323
328
|
self.canceled_at = nil
|
|
324
329
|
end
|
|
325
330
|
|
|
331
|
+
if attributes.key?(:expired_at)
|
|
332
|
+
self.expired_at = attributes[:expired_at]
|
|
333
|
+
end
|
|
334
|
+
|
|
326
335
|
if attributes.key?(:metadata)
|
|
327
336
|
if (value = attributes[:metadata]).is_a?(Hash)
|
|
328
337
|
self.metadata = value
|
|
@@ -489,6 +498,7 @@ module PAYJPv2
|
|
|
489
498
|
last_payment_error == o.last_payment_error &&
|
|
490
499
|
cancellation_reason == o.cancellation_reason &&
|
|
491
500
|
canceled_at == o.canceled_at &&
|
|
501
|
+
expired_at == o.expired_at &&
|
|
492
502
|
metadata == o.metadata &&
|
|
493
503
|
created_at == o.created_at &&
|
|
494
504
|
updated_at == o.updated_at
|
|
@@ -503,7 +513,7 @@ module PAYJPv2
|
|
|
503
513
|
# Calculates hash code according to all attributes.
|
|
504
514
|
# @return [Integer] Hash code
|
|
505
515
|
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
|
|
507
517
|
end
|
|
508
518
|
|
|
509
519
|
# Builds the object from hash
|
data/lib/payjpv2/version.rb
CHANGED
|
@@ -30,7 +30,7 @@ describe PAYJPv2::CheckoutSessionPaymentMethodOptionsCardRequest do
|
|
|
30
30
|
describe 'test attribute "request_extended_authorization"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# 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"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.request_extended_authorization = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -30,7 +30,7 @@ describe PAYJPv2::PaymentFlowPaymentMethodOptionsCardRequest do
|
|
|
30
30
|
describe 'test attribute "request_extended_authorization"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# 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"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.request_extended_authorization = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -151,6 +151,12 @@ describe PAYJPv2::PaymentFlowResponse do
|
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
+
describe 'test attribute "expired_at"' do
|
|
155
|
+
it 'should work' do
|
|
156
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
154
160
|
describe 'test attribute "metadata"' do
|
|
155
161
|
it 'should work' do
|
|
156
162
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|