maytes-api-client-rb 0.1.1
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +47 -0
- data/Rakefile +10 -0
- data/docs/CancelCheckout409Response.md +24 -0
- data/docs/CancelCheckoutRequest.md +18 -0
- data/docs/CancelCheckoutResponse.md +18 -0
- data/docs/CaptureCheckout409Response.md +24 -0
- data/docs/CaptureCheckout422Response.md +24 -0
- data/docs/CaptureCheckoutRequest.md +24 -0
- data/docs/CaptureCheckoutResponse.md +18 -0
- data/docs/Checkout.md +48 -0
- data/docs/CheckoutCancelled.md +22 -0
- data/docs/CheckoutCaptured.md +28 -0
- data/docs/CheckoutCreated.md +24 -0
- data/docs/CheckoutDiscount.md +30 -0
- data/docs/CheckoutFee.md +32 -0
- data/docs/CreateCheckout401Response.md +24 -0
- data/docs/CreateCheckout409Response.md +24 -0
- data/docs/CreateCheckout422Response.md +24 -0
- data/docs/CreateCheckoutRequest.md +44 -0
- data/docs/CreateCheckoutResponse.md +18 -0
- data/docs/CreateRefundRequest.md +20 -0
- data/docs/CustomerData.md +22 -0
- data/docs/DefaultApi.md +633 -0
- data/docs/DigitalGoodsCustomData.md +18 -0
- data/docs/DigitalGoodsLineItem.md +38 -0
- data/docs/DonationLineItem.md +36 -0
- data/docs/ErrorResponseDto.md +24 -0
- data/docs/Fee.md +24 -0
- data/docs/FeeBreakdownLine.md +24 -0
- data/docs/FoodBeverageLineItem.md +36 -0
- data/docs/GetCheckout404Response.md +24 -0
- data/docs/GetCheckout422Response.md +24 -0
- data/docs/GetCheckoutResponse.md +18 -0
- data/docs/GetSettlementResponse.md +18 -0
- data/docs/HealthResponse.md +18 -0
- data/docs/LineItem.md +94 -0
- data/docs/ListSettlementsResponse.md +18 -0
- data/docs/OAuthTokenRequest.md +30 -0
- data/docs/OAuthTokenResponse.md +26 -0
- data/docs/OtherLineItem.md +36 -0
- data/docs/PhysicalGoodsCustomData.md +20 -0
- data/docs/PhysicalGoodsLineItem.md +38 -0
- data/docs/RefundCheckout402Response.md +24 -0
- data/docs/RefundCheckout409Response.md +24 -0
- data/docs/ServiceCustomData.md +18 -0
- data/docs/ServiceLineItem.md +38 -0
- data/docs/Settlement.md +52 -0
- data/docs/Tax.md +22 -0
- data/docs/TicketCustomData.md +40 -0
- data/docs/TicketLineItem.md +38 -0
- data/docs/TicketSeating.md +24 -0
- data/lib/maytes_api_client/api/default_api.rb +642 -0
- data/lib/maytes_api_client/api_client.rb +397 -0
- data/lib/maytes_api_client/api_error.rb +58 -0
- data/lib/maytes_api_client/api_model_base.rb +88 -0
- data/lib/maytes_api_client/configuration.rb +316 -0
- data/lib/maytes_api_client/managed_client.rb +140 -0
- data/lib/maytes_api_client/models/cancel_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/cancel_checkout_request.rb +147 -0
- data/lib/maytes_api_client/models/cancel_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/capture_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/capture_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/capture_checkout_request.rb +218 -0
- data/lib/maytes_api_client/models/capture_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/checkout.rb +483 -0
- data/lib/maytes_api_client/models/checkout_cancelled.rb +202 -0
- data/lib/maytes_api_client/models/checkout_captured.rb +266 -0
- data/lib/maytes_api_client/models/checkout_created.rb +242 -0
- data/lib/maytes_api_client/models/checkout_discount.rb +329 -0
- data/lib/maytes_api_client/models/checkout_fee.rb +351 -0
- data/lib/maytes_api_client/models/create_checkout401_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout_request.rb +444 -0
- data/lib/maytes_api_client/models/create_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/create_refund_request.rb +212 -0
- data/lib/maytes_api_client/models/customer_data.rb +168 -0
- data/lib/maytes_api_client/models/digital_goods_custom_data.rb +148 -0
- data/lib/maytes_api_client/models/digital_goods_line_item.rb +414 -0
- data/lib/maytes_api_client/models/donation_line_item.rb +405 -0
- data/lib/maytes_api_client/models/error_response_dto.rb +227 -0
- data/lib/maytes_api_client/models/fee.rb +271 -0
- data/lib/maytes_api_client/models/fee_breakdown_line.rb +266 -0
- data/lib/maytes_api_client/models/food_beverage_line_item.rb +405 -0
- data/lib/maytes_api_client/models/get_checkout404_response.rb +258 -0
- data/lib/maytes_api_client/models/get_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/get_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/get_settlement_response.rb +164 -0
- data/lib/maytes_api_client/models/health_response.rb +164 -0
- data/lib/maytes_api_client/models/line_item.rb +65 -0
- data/lib/maytes_api_client/models/list_settlements_response.rb +166 -0
- data/lib/maytes_api_client/models/o_auth_token_request.rb +244 -0
- data/lib/maytes_api_client/models/o_auth_token_response.rb +251 -0
- data/lib/maytes_api_client/models/other_line_item.rb +405 -0
- data/lib/maytes_api_client/models/physical_goods_custom_data.rb +173 -0
- data/lib/maytes_api_client/models/physical_goods_line_item.rb +431 -0
- data/lib/maytes_api_client/models/refund_checkout402_response.rb +258 -0
- data/lib/maytes_api_client/models/refund_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/service_custom_data.rb +148 -0
- data/lib/maytes_api_client/models/service_line_item.rb +414 -0
- data/lib/maytes_api_client/models/settlement.rb +526 -0
- data/lib/maytes_api_client/models/tax.rb +202 -0
- data/lib/maytes_api_client/models/ticket_custom_data.rb +333 -0
- data/lib/maytes_api_client/models/ticket_line_item.rb +431 -0
- data/lib/maytes_api_client/models/ticket_seating.rb +176 -0
- data/lib/maytes_api_client/version.rb +15 -0
- data/lib/maytes_api_client/webhook_verifier.rb +212 -0
- data/lib/maytes_api_client.rb +95 -0
- data/maytes_api_client.gemspec +39 -0
- data/spec/api/default_api_spec.rb +145 -0
- data/spec/models/cancel_checkout409_response_spec.rb +58 -0
- data/spec/models/cancel_checkout_request_spec.rb +36 -0
- data/spec/models/cancel_checkout_response_spec.rb +36 -0
- data/spec/models/capture_checkout409_response_spec.rb +58 -0
- data/spec/models/capture_checkout422_response_spec.rb +58 -0
- data/spec/models/capture_checkout_request_spec.rb +54 -0
- data/spec/models/capture_checkout_response_spec.rb +36 -0
- data/spec/models/checkout_cancelled_spec.rb +48 -0
- data/spec/models/checkout_captured_spec.rb +66 -0
- data/spec/models/checkout_created_spec.rb +54 -0
- data/spec/models/checkout_discount_spec.rb +76 -0
- data/spec/models/checkout_fee_spec.rb +86 -0
- data/spec/models/checkout_spec.rb +126 -0
- data/spec/models/create_checkout401_response_spec.rb +58 -0
- data/spec/models/create_checkout409_response_spec.rb +58 -0
- data/spec/models/create_checkout422_response_spec.rb +58 -0
- data/spec/models/create_checkout_request_spec.rb +118 -0
- data/spec/models/create_checkout_response_spec.rb +36 -0
- data/spec/models/create_refund_request_spec.rb +42 -0
- data/spec/models/customer_data_spec.rb +48 -0
- data/spec/models/digital_goods_custom_data_spec.rb +36 -0
- data/spec/models/digital_goods_line_item_spec.rb +100 -0
- data/spec/models/donation_line_item_spec.rb +94 -0
- data/spec/models/error_response_dto_spec.rb +54 -0
- data/spec/models/fee_breakdown_line_spec.rb +58 -0
- data/spec/models/fee_spec.rb +54 -0
- data/spec/models/food_beverage_line_item_spec.rb +94 -0
- data/spec/models/get_checkout404_response_spec.rb +58 -0
- data/spec/models/get_checkout422_response_spec.rb +58 -0
- data/spec/models/get_checkout_response_spec.rb +36 -0
- data/spec/models/get_settlement_response_spec.rb +36 -0
- data/spec/models/health_response_spec.rb +36 -0
- data/spec/models/line_item_spec.rb +44 -0
- data/spec/models/list_settlements_response_spec.rb +36 -0
- data/spec/models/o_auth_token_request_spec.rb +72 -0
- data/spec/models/o_auth_token_response_spec.rb +60 -0
- data/spec/models/other_line_item_spec.rb +94 -0
- data/spec/models/physical_goods_custom_data_spec.rb +42 -0
- data/spec/models/physical_goods_line_item_spec.rb +100 -0
- data/spec/models/refund_checkout402_response_spec.rb +58 -0
- data/spec/models/refund_checkout409_response_spec.rb +58 -0
- data/spec/models/service_custom_data_spec.rb +36 -0
- data/spec/models/service_line_item_spec.rb +100 -0
- data/spec/models/settlement_spec.rb +138 -0
- data/spec/models/tax_spec.rb +48 -0
- data/spec/models/ticket_custom_data_spec.rb +106 -0
- data/spec/models/ticket_line_item_spec.rb +100 -0
- data/spec/models/ticket_seating_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +295 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::OtherLineItem
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::OtherLineItem do
|
|
21
|
+
#let(:instance) { MaytesApiClient::OtherLineItem.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OtherLineItem' do
|
|
24
|
+
it 'should create an instance of OtherLineItem' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::OtherLineItem)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "item_ref"' 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
|
+
describe 'test attribute "parent_ref"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "sku"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "name"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "description"' 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
|
+
|
|
60
|
+
describe 'test attribute "image_url"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "quantity"' 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
|
+
|
|
72
|
+
describe 'test attribute "unit_price"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "currency"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "category"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["other"])
|
|
88
|
+
# validator.allowable_values.each do |value|
|
|
89
|
+
# expect { instance.category = value }.not_to raise_error
|
|
90
|
+
# end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::PhysicalGoodsCustomData
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::PhysicalGoodsCustomData do
|
|
21
|
+
#let(:instance) { MaytesApiClient::PhysicalGoodsCustomData.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PhysicalGoodsCustomData' do
|
|
24
|
+
it 'should create an instance of PhysicalGoodsCustomData' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::PhysicalGoodsCustomData)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "product_id"' 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
|
+
describe 'test attribute "comments"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::PhysicalGoodsLineItem
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::PhysicalGoodsLineItem do
|
|
21
|
+
#let(:instance) { MaytesApiClient::PhysicalGoodsLineItem.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PhysicalGoodsLineItem' do
|
|
24
|
+
it 'should create an instance of PhysicalGoodsLineItem' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::PhysicalGoodsLineItem)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "item_ref"' 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
|
+
describe 'test attribute "parent_ref"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "sku"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "name"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "description"' 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
|
+
|
|
60
|
+
describe 'test attribute "image_url"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "quantity"' 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
|
+
|
|
72
|
+
describe 'test attribute "unit_price"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "currency"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "category"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["physical_goods"])
|
|
88
|
+
# validator.allowable_values.each do |value|
|
|
89
|
+
# expect { instance.category = value }.not_to raise_error
|
|
90
|
+
# end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "custom_data"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::RefundCheckout402Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::RefundCheckout402Response do
|
|
21
|
+
#let(:instance) { MaytesApiClient::RefundCheckout402Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RefundCheckout402Response' do
|
|
24
|
+
it 'should create an instance of RefundCheckout402Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::RefundCheckout402Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "message"' 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
|
+
describe 'test attribute "error"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "code"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["refund_insufficient_funds"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.code = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "metadata"' 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
|
+
|
|
58
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::RefundCheckout409Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::RefundCheckout409Response do
|
|
21
|
+
#let(:instance) { MaytesApiClient::RefundCheckout409Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RefundCheckout409Response' do
|
|
24
|
+
it 'should create an instance of RefundCheckout409Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::RefundCheckout409Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "message"' 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
|
+
describe 'test attribute "error"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "code"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["not_refundable"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.code = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "metadata"' 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
|
+
|
|
58
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::ServiceCustomData
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::ServiceCustomData do
|
|
21
|
+
#let(:instance) { MaytesApiClient::ServiceCustomData.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ServiceCustomData' do
|
|
24
|
+
it 'should create an instance of ServiceCustomData' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::ServiceCustomData)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "service_type"' 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,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::ServiceLineItem
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::ServiceLineItem do
|
|
21
|
+
#let(:instance) { MaytesApiClient::ServiceLineItem.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ServiceLineItem' do
|
|
24
|
+
it 'should create an instance of ServiceLineItem' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::ServiceLineItem)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "item_ref"' 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
|
+
describe 'test attribute "parent_ref"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "sku"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "name"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "description"' 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
|
+
|
|
60
|
+
describe 'test attribute "image_url"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "quantity"' 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
|
+
|
|
72
|
+
describe 'test attribute "unit_price"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "currency"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "category"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["service"])
|
|
88
|
+
# validator.allowable_values.each do |value|
|
|
89
|
+
# expect { instance.category = value }.not_to raise_error
|
|
90
|
+
# end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "custom_data"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::Settlement
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::Settlement do
|
|
21
|
+
#let(:instance) { MaytesApiClient::Settlement.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Settlement' do
|
|
24
|
+
it 'should create an instance of Settlement' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::Settlement)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "uuid"' 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
|
+
describe 'test attribute "merchant_uuid"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "period_from"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "period_to"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "idempotency_key"' 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
|
+
|
|
60
|
+
describe 'test attribute "merchant_payable_amount"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "settled_amount"' 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
|
+
|
|
72
|
+
describe 'test attribute "currency"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "status"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "stripe_transfer_id"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
describe 'test attribute "notes"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
describe 'test attribute "settled_at"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'test attribute "expires_at"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
describe 'test attribute "reviewed_by_user_uuid"' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
describe 'test attribute "reviewed_at"' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
describe 'test attribute "rejection_reason"' do
|
|
121
|
+
it 'should work' do
|
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
describe 'test attribute "created_at"' do
|
|
127
|
+
it 'should work' do
|
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
describe 'test attribute "updated_at"' do
|
|
133
|
+
it 'should work' do
|
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MaytesApiClient::Tax
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe MaytesApiClient::Tax do
|
|
21
|
+
#let(:instance) { MaytesApiClient::Tax.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Tax' do
|
|
24
|
+
it 'should create an instance of Tax' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(MaytesApiClient::Tax)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "amount"' 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
|
+
describe 'test attribute "percentage"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "inclusive"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|