payjpv2 1.0.11 → 1.2.0
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 +8 -2
- data/docs/CheckoutSessionCreateRequest.md +2 -0
- data/docs/CheckoutSessionDetailsResponse.md +2 -0
- data/docs/CheckoutSessionsApi.md +70 -0
- data/docs/CustomerUpdateRequest.md +1 -1
- data/docs/LineItemRequest.md +3 -1
- data/docs/PaymentFlowCreateRequest.md +2 -0
- data/docs/PaymentFlowResponse.md +2 -0
- data/docs/PaymentFlowUpdateRequest.md +2 -0
- data/docs/PriceDataRequest.md +24 -0
- data/docs/ProductDataRequest.md +20 -0
- data/docs/RedirectOptionsRequest.md +18 -0
- data/docs/RedirectOptionsResponse.md +18 -0
- data/docs/SetupFlowCancelRequest.md +1 -1
- data/docs/SetupFlowCreateRequest.md +2 -0
- data/docs/SetupFlowResponse.md +2 -0
- data/docs/SetupFlowUpdateRequest.md +2 -0
- data/docs/TaxRateCreateRequest.md +2 -0
- data/docs/TaxRateDetailsResponse.md +2 -0
- data/docs/TaxRateUpdateRequest.md +2 -0
- data/docs/TaxType.md +15 -0
- data/lib/payjpv2/api/checkout_sessions_api.rb +60 -0
- data/lib/payjpv2/models/checkout_session_create_request.rb +11 -1
- data/lib/payjpv2/models/checkout_session_details_response.rb +23 -1
- data/lib/payjpv2/models/customer_update_request.rb +1 -1
- data/lib/payjpv2/models/line_item_request.rb +26 -14
- data/lib/payjpv2/models/payment_flow_create_request.rb +11 -1
- data/lib/payjpv2/models/payment_flow_response.rb +23 -1
- data/lib/payjpv2/models/payment_flow_update_request.rb +11 -1
- data/lib/payjpv2/models/price_data_request.rb +286 -0
- data/lib/payjpv2/models/product_data_request.rb +228 -0
- data/lib/payjpv2/models/redirect_options_request.rb +206 -0
- data/lib/payjpv2/models/redirect_options_response.rb +208 -0
- data/lib/payjpv2/models/setup_flow_cancel_request.rb +1 -1
- data/lib/payjpv2/models/setup_flow_cancellation_reason.rb +2 -1
- data/lib/payjpv2/models/setup_flow_create_request.rb +11 -1
- data/lib/payjpv2/models/setup_flow_response.rb +23 -1
- data/lib/payjpv2/models/setup_flow_update_request.rb +11 -1
- data/lib/payjpv2/models/tax_rate_create_request.rb +11 -1
- data/lib/payjpv2/models/tax_rate_details_response.rb +13 -1
- data/lib/payjpv2/models/tax_rate_update_request.rb +11 -1
- data/lib/payjpv2/models/tax_type.rb +39 -0
- data/lib/payjpv2/version.rb +1 -1
- data/lib/payjpv2.rb +5 -0
- data/spec/api/checkout_sessions_api_spec.rb +33 -0
- data/spec/models/checkout_session_create_request_spec.rb +6 -0
- data/spec/models/checkout_session_details_response_spec.rb +6 -0
- data/spec/models/line_item_request_spec.rb +6 -0
- data/spec/models/payment_flow_create_request_spec.rb +6 -0
- data/spec/models/payment_flow_response_spec.rb +6 -0
- data/spec/models/payment_flow_update_request_spec.rb +6 -0
- data/spec/models/price_data_request_spec.rb +54 -0
- data/spec/models/product_data_request_spec.rb +42 -0
- data/spec/models/redirect_options_request_spec.rb +36 -0
- data/spec/models/redirect_options_response_spec.rb +36 -0
- data/spec/models/setup_flow_create_request_spec.rb +6 -0
- data/spec/models/setup_flow_response_spec.rb +6 -0
- data/spec/models/setup_flow_update_request_spec.rb +6 -0
- data/spec/models/tax_rate_create_request_spec.rb +6 -0
- data/spec/models/tax_rate_details_response_spec.rb +6 -0
- data/spec/models/tax_rate_update_request_spec.rb +6 -0
- data/spec/models/tax_type_spec.rb +30 -0
- metadata +21 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PAYJPv2::RedirectOptionsRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PAYJPv2::RedirectOptionsRequest do
|
|
21
|
+
let(:instance) { PAYJPv2::RedirectOptionsRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RedirectOptionsRequest' do
|
|
24
|
+
it 'should create an instance of RedirectOptionsRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PAYJPv2::RedirectOptionsRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "include_client_secret"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PAYJPv2::RedirectOptionsResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PAYJPv2::RedirectOptionsResponse do
|
|
21
|
+
let(:instance) { PAYJPv2::RedirectOptionsResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RedirectOptionsResponse' do
|
|
24
|
+
it 'should create an instance of RedirectOptionsResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PAYJPv2::RedirectOptionsResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "include_client_secret"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -55,6 +55,12 @@ describe PAYJPv2::SetupFlowCreateRequest do
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "redirect_options"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
58
64
|
describe 'test attribute "description"' do
|
|
59
65
|
it 'should work' do
|
|
60
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -109,6 +109,12 @@ describe PAYJPv2::SetupFlowResponse do
|
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
+
describe 'test attribute "redirect_options"' do
|
|
113
|
+
it 'should work' do
|
|
114
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
112
118
|
describe 'test attribute "last_setup_error"' do
|
|
113
119
|
it 'should work' do
|
|
114
120
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -49,6 +49,12 @@ describe PAYJPv2::SetupFlowUpdateRequest do
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
describe 'test attribute "redirect_options"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
52
58
|
describe 'test attribute "description"' do
|
|
53
59
|
it 'should work' do
|
|
54
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -63,6 +63,12 @@ describe PAYJPv2::TaxRateCreateRequest do
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
describe 'test attribute "tax_type"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
66
72
|
describe 'test attribute "metadata"' do
|
|
67
73
|
it 'should work' do
|
|
68
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -85,6 +85,12 @@ describe PAYJPv2::TaxRateDetailsResponse do
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
describe 'test attribute "tax_type"' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
88
94
|
describe 'test attribute "created_at"' do
|
|
89
95
|
it 'should work' do
|
|
90
96
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -51,6 +51,12 @@ describe PAYJPv2::TaxRateUpdateRequest do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "tax_type"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
describe 'test attribute "metadata"' do
|
|
55
61
|
it 'should work' do
|
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PAYJPv2::TaxType
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PAYJPv2::TaxType do
|
|
21
|
+
let(:instance) { PAYJPv2::TaxType.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of TaxType' do
|
|
24
|
+
it 'should create an instance of TaxType' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PAYJPv2::TaxType)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: payjpv2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PAY.JP
|
|
@@ -164,17 +164,21 @@ files:
|
|
|
164
164
|
- docs/PaymentTransactionType.md
|
|
165
165
|
- docs/PaymentTransactionsApi.md
|
|
166
166
|
- docs/PriceCreateRequest.md
|
|
167
|
+
- docs/PriceDataRequest.md
|
|
167
168
|
- docs/PriceDetailsResponse.md
|
|
168
169
|
- docs/PriceListResponse.md
|
|
169
170
|
- docs/PriceType.md
|
|
170
171
|
- docs/PriceUpdateRequest.md
|
|
171
172
|
- docs/PricesApi.md
|
|
172
173
|
- docs/ProductCreateRequest.md
|
|
174
|
+
- docs/ProductDataRequest.md
|
|
173
175
|
- docs/ProductDeletedResponse.md
|
|
174
176
|
- docs/ProductDetailsResponse.md
|
|
175
177
|
- docs/ProductListResponse.md
|
|
176
178
|
- docs/ProductUpdateRequest.md
|
|
177
179
|
- docs/ProductsApi.md
|
|
180
|
+
- docs/RedirectOptionsRequest.md
|
|
181
|
+
- docs/RedirectOptionsResponse.md
|
|
178
182
|
- docs/SetupFlowCancelRequest.md
|
|
179
183
|
- docs/SetupFlowCancellationReason.md
|
|
180
184
|
- docs/SetupFlowCreateRequest.md
|
|
@@ -198,6 +202,7 @@ files:
|
|
|
198
202
|
- docs/TaxRateListResponse.md
|
|
199
203
|
- docs/TaxRateUpdateRequest.md
|
|
200
204
|
- docs/TaxRatesApi.md
|
|
205
|
+
- docs/TaxType.md
|
|
201
206
|
- docs/TermListResponse.md
|
|
202
207
|
- docs/TermResponse.md
|
|
203
208
|
- docs/TermsApi.md
|
|
@@ -312,15 +317,19 @@ files:
|
|
|
312
317
|
- lib/payjpv2/models/payment_transaction_response.rb
|
|
313
318
|
- lib/payjpv2/models/payment_transaction_type.rb
|
|
314
319
|
- lib/payjpv2/models/price_create_request.rb
|
|
320
|
+
- lib/payjpv2/models/price_data_request.rb
|
|
315
321
|
- lib/payjpv2/models/price_details_response.rb
|
|
316
322
|
- lib/payjpv2/models/price_list_response.rb
|
|
317
323
|
- lib/payjpv2/models/price_type.rb
|
|
318
324
|
- lib/payjpv2/models/price_update_request.rb
|
|
319
325
|
- lib/payjpv2/models/product_create_request.rb
|
|
326
|
+
- lib/payjpv2/models/product_data_request.rb
|
|
320
327
|
- lib/payjpv2/models/product_deleted_response.rb
|
|
321
328
|
- lib/payjpv2/models/product_details_response.rb
|
|
322
329
|
- lib/payjpv2/models/product_list_response.rb
|
|
323
330
|
- lib/payjpv2/models/product_update_request.rb
|
|
331
|
+
- lib/payjpv2/models/redirect_options_request.rb
|
|
332
|
+
- lib/payjpv2/models/redirect_options_response.rb
|
|
324
333
|
- lib/payjpv2/models/setup_flow_cancel_request.rb
|
|
325
334
|
- lib/payjpv2/models/setup_flow_cancellation_reason.rb
|
|
326
335
|
- lib/payjpv2/models/setup_flow_create_request.rb
|
|
@@ -341,6 +350,7 @@ files:
|
|
|
341
350
|
- lib/payjpv2/models/tax_rate_details_response.rb
|
|
342
351
|
- lib/payjpv2/models/tax_rate_list_response.rb
|
|
343
352
|
- lib/payjpv2/models/tax_rate_update_request.rb
|
|
353
|
+
- lib/payjpv2/models/tax_type.rb
|
|
344
354
|
- lib/payjpv2/models/term_list_response.rb
|
|
345
355
|
- lib/payjpv2/models/term_response.rb
|
|
346
356
|
- lib/payjpv2/models/usage.rb
|
|
@@ -453,15 +463,19 @@ files:
|
|
|
453
463
|
- spec/models/payment_transaction_response_spec.rb
|
|
454
464
|
- spec/models/payment_transaction_type_spec.rb
|
|
455
465
|
- spec/models/price_create_request_spec.rb
|
|
466
|
+
- spec/models/price_data_request_spec.rb
|
|
456
467
|
- spec/models/price_details_response_spec.rb
|
|
457
468
|
- spec/models/price_list_response_spec.rb
|
|
458
469
|
- spec/models/price_type_spec.rb
|
|
459
470
|
- spec/models/price_update_request_spec.rb
|
|
460
471
|
- spec/models/product_create_request_spec.rb
|
|
472
|
+
- spec/models/product_data_request_spec.rb
|
|
461
473
|
- spec/models/product_deleted_response_spec.rb
|
|
462
474
|
- spec/models/product_details_response_spec.rb
|
|
463
475
|
- spec/models/product_list_response_spec.rb
|
|
464
476
|
- spec/models/product_update_request_spec.rb
|
|
477
|
+
- spec/models/redirect_options_request_spec.rb
|
|
478
|
+
- spec/models/redirect_options_response_spec.rb
|
|
465
479
|
- spec/models/setup_flow_cancel_request_spec.rb
|
|
466
480
|
- spec/models/setup_flow_cancellation_reason_spec.rb
|
|
467
481
|
- spec/models/setup_flow_create_request_spec.rb
|
|
@@ -482,6 +496,7 @@ files:
|
|
|
482
496
|
- spec/models/tax_rate_details_response_spec.rb
|
|
483
497
|
- spec/models/tax_rate_list_response_spec.rb
|
|
484
498
|
- spec/models/tax_rate_update_request_spec.rb
|
|
499
|
+
- spec/models/tax_type_spec.rb
|
|
485
500
|
- spec/models/term_list_response_spec.rb
|
|
486
501
|
- spec/models/term_response_spec.rb
|
|
487
502
|
- spec/models/usage_spec.rb
|
|
@@ -620,15 +635,19 @@ test_files:
|
|
|
620
635
|
- spec/models/payment_transaction_response_spec.rb
|
|
621
636
|
- spec/models/payment_transaction_type_spec.rb
|
|
622
637
|
- spec/models/price_create_request_spec.rb
|
|
638
|
+
- spec/models/price_data_request_spec.rb
|
|
623
639
|
- spec/models/price_details_response_spec.rb
|
|
624
640
|
- spec/models/price_list_response_spec.rb
|
|
625
641
|
- spec/models/price_type_spec.rb
|
|
626
642
|
- spec/models/price_update_request_spec.rb
|
|
627
643
|
- spec/models/product_create_request_spec.rb
|
|
644
|
+
- spec/models/product_data_request_spec.rb
|
|
628
645
|
- spec/models/product_deleted_response_spec.rb
|
|
629
646
|
- spec/models/product_details_response_spec.rb
|
|
630
647
|
- spec/models/product_list_response_spec.rb
|
|
631
648
|
- spec/models/product_update_request_spec.rb
|
|
649
|
+
- spec/models/redirect_options_request_spec.rb
|
|
650
|
+
- spec/models/redirect_options_response_spec.rb
|
|
632
651
|
- spec/models/setup_flow_cancel_request_spec.rb
|
|
633
652
|
- spec/models/setup_flow_cancellation_reason_spec.rb
|
|
634
653
|
- spec/models/setup_flow_create_request_spec.rb
|
|
@@ -649,6 +668,7 @@ test_files:
|
|
|
649
668
|
- spec/models/tax_rate_details_response_spec.rb
|
|
650
669
|
- spec/models/tax_rate_list_response_spec.rb
|
|
651
670
|
- spec/models/tax_rate_update_request_spec.rb
|
|
671
|
+
- spec/models/tax_type_spec.rb
|
|
652
672
|
- spec/models/term_list_response_spec.rb
|
|
653
673
|
- spec/models/term_response_spec.rb
|
|
654
674
|
- spec/models/usage_spec.rb
|