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,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::ErrorResponse
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'ErrorResponse' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::ErrorResponse.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ErrorResponse' do
|
|
24
|
+
it 'should create an instact of ErrorResponse' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::ErrorResponse)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "error"' 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::InlineResponse200
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'InlineResponse200' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::InlineResponse200.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InlineResponse200' do
|
|
24
|
+
it 'should create an instact of InlineResponse200' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::InlineResponse200)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "items"' 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,29 @@
|
|
|
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::Metadata
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'Metadata' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::Metadata.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Metadata' do
|
|
24
|
+
it 'should create an instact of Metadata' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::Metadata)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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::OrderItem
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'OrderItem' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::OrderItem.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrderItem' do
|
|
24
|
+
it 'should create an instact of OrderItem' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::OrderItem)
|
|
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 "amount"' 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 "reference"' 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 "description"' 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 "quantity"' 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 "type"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sku", "tax", "shipping", "discount"])
|
|
62
|
+
#validator.allowable_values.each do |value|
|
|
63
|
+
# expect { @instance.type = value }.not_to raise_error
|
|
64
|
+
#end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'test attribute "image_uri"' 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
|
+
describe 'test attribute "item_uri"' do
|
|
75
|
+
it 'should work' do
|
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
describe 'test attribute "product_code"' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
end
|
|
87
|
+
|
|
@@ -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::OrderShipping
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'OrderShipping' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::OrderShipping.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrderShipping' do
|
|
24
|
+
it 'should create an instact of OrderShipping' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::OrderShipping)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "pickup"' 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 "tracking"' 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 "address"' 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
|
+
|
|
@@ -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::OrderShippingTracking
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'OrderShippingTracking' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::OrderShippingTracking.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrderShippingTracking' do
|
|
24
|
+
it 'should create an instact of OrderShippingTracking' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::OrderShippingTracking)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "uri"' 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 "number"' 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 "carrier"' 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
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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::Refund
|
|
11
|
+
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'Refund' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@instance = ZipMoney::Refund.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Refund' do
|
|
24
|
+
it 'should create an instact of Refund' do
|
|
25
|
+
expect(@instance).to be_instance_of(ZipMoney::Refund)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "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 "charge_id"' 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 "reason"' 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 "amount"' 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 "created"' 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 "metadata"' 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
|
+
end
|
|
65
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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::Shopper
|
|
11
|
+
# Please update as you see appropriate
|
|
12
|
+
describe 'Shopper' do
|
|
13
|
+
before do
|
|
14
|
+
# run before each test
|
|
15
|
+
@instance = ZipMoney::Shopper.new
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
after do
|
|
19
|
+
# run after each test
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of Shopper' do
|
|
23
|
+
it 'should create an instact of Shopper' do
|
|
24
|
+
expect(@instance).to be_instance_of(ZipMoney::Shopper)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "title"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "first_name"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "last_name"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "middle_name"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "phone"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "email"' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
describe 'test attribute "birth_date"' do
|
|
64
|
+
it 'should work' do
|
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
describe 'test attribute "gender"' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Male", "Female", "Other"])
|
|
73
|
+
#validator.allowable_values.each do |value|
|
|
74
|
+
# expect { @instance.gender = value }.not_to raise_error
|
|
75
|
+
#end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
describe 'test attribute "statistics"' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
describe 'test attribute "billing_address"' do
|
|
86
|
+
it 'should work' do
|
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
end
|
|
92
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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::ShopperStatistics
|
|
11
|
+
# Please update as you see appropriate
|
|
12
|
+
describe 'ShopperStatistics' do
|
|
13
|
+
before do
|
|
14
|
+
# run before each test
|
|
15
|
+
@instance = ZipMoney::ShopperStatistics.new
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
after do
|
|
19
|
+
# run after each test
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of ShopperStatistics' do
|
|
23
|
+
it 'should create an instact of ShopperStatistics' do
|
|
24
|
+
expect(@instance).to be_instance_of(ZipMoney::ShopperStatistics)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "account_created"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "sales_total_count"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "sales_total_amount"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "sales_avg_amount"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "sales_max_amount"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "refunds_total_amount"' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
describe 'test attribute "previous_chargeback"' do
|
|
64
|
+
it 'should work' do
|
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
describe 'test attribute "currency"' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AUD", "NZD"])
|
|
73
|
+
#validator.allowable_values.each do |value|
|
|
74
|
+
# expect { @instance.currency = value }.not_to raise_error
|
|
75
|
+
#end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
describe 'test attribute "last_login"' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
end
|
|
86
|
+
|