zip_money 1.2.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 +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +128 -0
- data/Rakefile +8 -0
- data/docs/Address.md +15 -0
- data/docs/Authority.md +9 -0
- data/docs/CaptureChargeRequest.md +8 -0
- data/docs/Charge.md +17 -0
- data/docs/ChargeCollection.md +8 -0
- data/docs/ChargeOrder.md +11 -0
- data/docs/ChargesApi.md +307 -0
- data/docs/Checkout.md +18 -0
- data/docs/CheckoutConfiguration.md +8 -0
- data/docs/CheckoutFeatures.md +8 -0
- data/docs/CheckoutFeaturesTokenisation.md +8 -0
- data/docs/CheckoutOrder.md +13 -0
- data/docs/CheckoutsApi.md +119 -0
- data/docs/CreateChargeRequest.md +14 -0
- data/docs/CreateCheckoutRequest.md +13 -0
- data/docs/CreateCheckoutRequestFeatures.md +8 -0
- data/docs/CreateCheckoutRequestFeaturesTokenisation.md +8 -0
- data/docs/CreateRefundRequest.md +11 -0
- data/docs/CreateTokenRequest.md +8 -0
- data/docs/Customer.md +15 -0
- data/docs/CustomersApi.md +96 -0
- data/docs/ErrorResponse.md +8 -0
- data/docs/ErrorResponseError.md +10 -0
- data/docs/ErrorResponseErrorDetails.md +9 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/Metadata.md +7 -0
- data/docs/OrderItem.md +16 -0
- data/docs/OrderShipping.md +10 -0
- data/docs/OrderShippingTracking.md +10 -0
- data/docs/Refund.md +13 -0
- data/docs/RefundsApi.md +181 -0
- data/docs/SettlementsApi.md +96 -0
- data/docs/Shopper.md +17 -0
- data/docs/ShopperStatistics.md +16 -0
- data/docs/Token.md +11 -0
- data/docs/TokensApi.md +66 -0
- data/lib/zip_money.rb +68 -0
- data/lib/zip_money/api/charges_api.rb +301 -0
- data/lib/zip_money/api/checkouts_api.rb +120 -0
- data/lib/zip_money/api/customers_api.rb +116 -0
- data/lib/zip_money/api/refunds_api.rb +181 -0
- data/lib/zip_money/api/settlements_api.rb +116 -0
- data/lib/zip_money/api/tokens_api.rb +70 -0
- data/lib/zip_money/api_client.rb +386 -0
- data/lib/zip_money/api_error.rb +31 -0
- data/lib/zip_money/configuration.rb +238 -0
- data/lib/zip_money/models/address.rb +413 -0
- data/lib/zip_money/models/authority.rb +235 -0
- data/lib/zip_money/models/capture_charge_request.rb +206 -0
- data/lib/zip_money/models/charge.rb +369 -0
- data/lib/zip_money/models/charge_collection.rb +188 -0
- data/lib/zip_money/models/charge_order.rb +250 -0
- data/lib/zip_money/models/checkout.rb +344 -0
- data/lib/zip_money/models/checkout_configuration.rb +187 -0
- data/lib/zip_money/models/checkout_features.rb +181 -0
- data/lib/zip_money/models/checkout_features_tokenisation.rb +184 -0
- data/lib/zip_money/models/checkout_order.rb +299 -0
- data/lib/zip_money/models/create_charge_request.rb +289 -0
- data/lib/zip_money/models/create_checkout_request.rb +272 -0
- data/lib/zip_money/models/create_checkout_request_features.rb +181 -0
- data/lib/zip_money/models/create_checkout_request_features_tokenisation.rb +189 -0
- data/lib/zip_money/models/create_refund_request.rb +246 -0
- data/lib/zip_money/models/create_token_request.rb +186 -0
- data/lib/zip_money/models/customer.rb +310 -0
- data/lib/zip_money/models/error_response.rb +181 -0
- data/lib/zip_money/models/error_response_error.rb +211 -0
- data/lib/zip_money/models/error_response_error_details.rb +190 -0
- data/lib/zip_money/models/inline_response_200.rb +188 -0
- data/lib/zip_money/models/metadata.rb +172 -0
- data/lib/zip_money/models/order_item.rb +333 -0
- data/lib/zip_money/models/order_shipping.rb +200 -0
- data/lib/zip_money/models/order_shipping_tracking.rb +247 -0
- data/lib/zip_money/models/refund.rb +252 -0
- data/lib/zip_money/models/shopper.rb +339 -0
- data/lib/zip_money/models/shopper_statistics.rb +295 -0
- data/lib/zip_money/models/token.rb +228 -0
- data/lib/zip_money/version.rb +8 -0
- data/spec/api/charges_api_spec.rb +114 -0
- data/spec/api/checkouts_api_spec.rb +54 -0
- data/spec/api/customers_api_spec.rb +51 -0
- data/spec/api/refunds_api_spec.rb +67 -0
- data/spec/api/settlements_api_spec.rb +51 -0
- data/spec/api/tokens_api_spec.rb +41 -0
- data/spec/api_client_spec.rb +219 -0
- data/spec/configuration_spec.rb +50 -0
- data/spec/models/address_spec.rb +77 -0
- data/spec/models/authority_spec.rb +45 -0
- data/spec/models/capture_charge_request_spec.rb +35 -0
- data/spec/models/charge_collection_spec.rb +35 -0
- data/spec/models/charge_order_spec.rb +53 -0
- data/spec/models/charge_spec.rb +93 -0
- data/spec/models/checkout_configuration_spec.rb +35 -0
- data/spec/models/checkout_features_spec.rb +35 -0
- data/spec/models/checkout_features_tokenisation_spec.rb +35 -0
- data/spec/models/checkout_order_spec.rb +65 -0
- data/spec/models/checkout_spec.rb +103 -0
- data/spec/models/create_charge_request_spec.rb +75 -0
- data/spec/models/create_checkout_request_features_spec.rb +35 -0
- data/spec/models/create_checkout_request_features_tokenisation_spec.rb +35 -0
- data/spec/models/create_checkout_request_spec.rb +69 -0
- data/spec/models/create_refund_request_spec.rb +53 -0
- data/spec/models/create_token_request_spec.rb +35 -0
- data/spec/models/customer_spec.rb +81 -0
- data/spec/models/error_response_error_details_spec.rb +41 -0
- data/spec/models/error_response_error_spec.rb +47 -0
- data/spec/models/error_response_spec.rb +35 -0
- data/spec/models/inline_response_200_spec.rb +35 -0
- data/spec/models/metadata_spec.rb +29 -0
- data/spec/models/order_item_spec.rb +87 -0
- data/spec/models/order_shipping_spec.rb +47 -0
- data/spec/models/order_shipping_tracking_spec.rb +47 -0
- data/spec/models/refund_spec.rb +65 -0
- data/spec/models/shopper_spec.rb +92 -0
- data/spec/models/shopper_statistics_spec.rb +86 -0
- data/spec/models/token_spec.rb +52 -0
- data/spec/payload_helper.rb +96 -0
- data/spec/spec_helper.rb +104 -0
- data/zip_money.gemspec +38 -0
- metadata +380 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateChargeRequest
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateChargeRequest' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateChargeRequest.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateChargeRequest' do
|
|
24
|
+
it 'should create an instact of CreateChargeRequest' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateChargeRequest)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "authority"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe 'test attribute "reference"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "amount"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "currency"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AUD", "NZD"])
|
|
50
|
+
#validator.allowable_values.each do |value|
|
|
51
|
+
# expect { @instance.currency = value }.not_to raise_error
|
|
52
|
+
#end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
describe 'test attribute "capture"' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
describe 'test attribute "order"' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'test attribute "metadata"' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateCheckoutRequestFeatures
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateCheckoutRequestFeatures' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateCheckoutRequestFeatures.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateCheckoutRequestFeatures' do
|
|
24
|
+
it 'should create an instact of CreateCheckoutRequestFeatures' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateCheckoutRequestFeatures)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "tokenisation"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateCheckoutRequestFeaturesTokenisation
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateCheckoutRequestFeaturesTokenisation' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateCheckoutRequestFeaturesTokenisation.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateCheckoutRequestFeaturesTokenisation' do
|
|
24
|
+
it 'should create an instact of CreateCheckoutRequestFeaturesTokenisation' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateCheckoutRequestFeaturesTokenisation)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "required"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateCheckoutRequest
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateCheckoutRequest' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateCheckoutRequest.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateCheckoutRequest' do
|
|
24
|
+
it 'should create an instact of CreateCheckoutRequest' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateCheckoutRequest)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "type"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["standard", "express"])
|
|
32
|
+
#validator.allowable_values.each do |value|
|
|
33
|
+
# expect { @instance.type = value }.not_to raise_error
|
|
34
|
+
#end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
describe 'test attribute "shopper"' do
|
|
39
|
+
it 'should work' do
|
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe 'test attribute "order"' do
|
|
45
|
+
it 'should work' do
|
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
describe 'test attribute "features"' do
|
|
51
|
+
it 'should work' do
|
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
describe 'test attribute "metadata"' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
describe 'test attribute "config"' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateRefundRequest
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateRefundRequest' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateRefundRequest.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateRefundRequest' do
|
|
24
|
+
it 'should create an instact of CreateRefundRequest' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateRefundRequest)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "charge_id"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe 'test attribute "reason"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "amount"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "metadata"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::CreateTokenRequest
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'CreateTokenRequest' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::CreateTokenRequest.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateTokenRequest' do
|
|
24
|
+
it 'should create an instact of CreateTokenRequest' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::CreateTokenRequest)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "authority"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::Customer
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'Customer' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::Customer.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Customer' do
|
|
24
|
+
it 'should create an instact of Customer' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::Customer)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "title"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe 'test attribute "first_name"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "middle_name"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "last_name"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "phone"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "email"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "birth_date"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "gender"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Male", "Female", "Other"])
|
|
74
|
+
#validator.allowable_values.each do |value|
|
|
75
|
+
# expect { @instance.gender = value }.not_to raise_error
|
|
76
|
+
#end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
end
|
|
81
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::ErrorResponseErrorDetails
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'ErrorResponseErrorDetails' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::ErrorResponseErrorDetails.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ErrorResponseErrorDetails' do
|
|
24
|
+
it 'should create an instact of ErrorResponseErrorDetails' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::ErrorResponseErrorDetails)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "name"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe 'test attribute "message"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
end
|
|
41
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#Merchant API
|
|
2
|
+
#ZipMoney Merchant API Initial build
|
|
3
|
+
#zipMoney Merchant API version: 2017-03-01
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'spec_helper'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'date'
|
|
9
|
+
|
|
10
|
+
# Unit tests for ZipMoney::ErrorResponseError
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'ErrorResponseError' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::ErrorResponseError.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ErrorResponseError' do
|
|
24
|
+
it 'should create an instact of ErrorResponseError' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::ErrorResponseError)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "code"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe 'test attribute "message"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "details"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
|