noths 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +10 -23
- data/bin/generate_gem +3 -1
- data/bin/refresh_schemas +22 -16
- data/docs/AcceptanceBulkModel.md +2 -2
- data/docs/DispatchBulkModel.md +1 -1
- data/docs/Financials.md +1 -1
- data/docs/Order.md +12 -11
- data/docs/OrdersApi.md +104 -151
- data/docs/RefundsApi.md +8 -12
- data/git_push.sh +55 -0
- data/lib/noths.rb +1 -11
- data/lib/noths/api/orders_api.rb +234 -114
- data/lib/noths/api/refunds_api.rb +25 -15
- data/lib/noths/api_client.rb +3 -12
- data/lib/noths/api_error.rb +16 -11
- data/lib/noths/configuration.rb +3 -20
- data/lib/noths/models/acceptance_bulk_model.rb +3 -14
- data/lib/noths/models/currency.rb +1 -12
- data/lib/noths/models/decline_bulk_model.rb +1 -12
- data/lib/noths/models/delivery_address.rb +1 -12
- data/lib/noths/models/delivery_service.rb +1 -12
- data/lib/noths/models/delivery_zone.rb +1 -12
- data/lib/noths/models/dispatch_bulk_model.rb +2 -13
- data/lib/noths/models/dispatch_notes_bulk_model.rb +1 -12
- data/lib/noths/models/enquiry.rb +1 -12
- data/lib/noths/models/enquiry_message.rb +1 -12
- data/lib/noths/models/error.rb +1 -12
- data/lib/noths/models/financials.rb +5 -14
- data/lib/noths/models/financials_details.rb +1 -12
- data/lib/noths/models/image_url.rb +1 -12
- data/lib/noths/models/item.rb +1 -12
- data/lib/noths/models/item_financials.rb +1 -12
- data/lib/noths/models/link.rb +1 -12
- data/lib/noths/models/manual_payment.rb +1 -12
- data/lib/noths/models/money.rb +1 -12
- data/lib/noths/models/order.rb +28 -28
- data/lib/noths/models/order_detail.rb +1 -12
- data/lib/noths/models/order_details_bulk_model.rb +1 -12
- data/lib/noths/models/order_index.rb +1 -12
- data/lib/noths/models/order_refund.rb +1 -12
- data/lib/noths/models/product.rb +1 -12
- data/lib/noths/models/product_option.rb +1 -12
- data/lib/noths/models/refund_response.rb +1 -12
- data/lib/noths/models/search_result_meta.rb +1 -12
- data/lib/noths/models/user.rb +1 -12
- data/lib/noths/version.rb +2 -12
- data/noths.gemspec +1 -11
- data/schemas/api-docs.json +3 -7
- data/schemas/orders.json +163 -88
- data/schemas/refunds.json +10 -5
- data/spec/api/orders_api_spec.rb +53 -99
- data/spec/api/refunds_api_spec.rb +6 -28
- data/spec/api_client_spec.rb +2 -14
- data/spec/configuration_spec.rb +9 -25
- data/spec/models/acceptance_bulk_model_spec.rb +7 -38
- data/spec/models/currency_spec.rb +7 -38
- data/spec/models/decline_bulk_model_spec.rb +5 -32
- data/spec/models/delivery_address_spec.rb +9 -44
- data/spec/models/delivery_service_spec.rb +5 -32
- data/spec/models/delivery_zone_spec.rb +5 -32
- data/spec/models/dispatch_bulk_model_spec.rb +8 -41
- data/spec/models/dispatch_notes_bulk_model_spec.rb +4 -29
- data/spec/models/enquiry_message_spec.rb +4 -29
- data/spec/models/enquiry_spec.rb +6 -35
- data/spec/models/error_spec.rb +5 -32
- data/spec/models/financials_details_spec.rb +6 -35
- data/spec/models/financials_spec.rb +21 -80
- data/spec/models/image_url_spec.rb +9 -44
- data/spec/models/item_financials_spec.rb +9 -44
- data/spec/models/item_spec.rb +11 -50
- data/spec/models/link_spec.rb +6 -35
- data/spec/models/manual_payment_spec.rb +7 -38
- data/spec/models/money_spec.rb +5 -32
- data/spec/models/order_detail_spec.rb +5 -32
- data/spec/models/order_details_bulk_model_spec.rb +4 -29
- data/spec/models/order_index_spec.rb +6 -35
- data/spec/models/order_refund_spec.rb +4 -29
- data/spec/models/order_spec.rb +53 -164
- data/spec/models/product_option_spec.rb +5 -32
- data/spec/models/product_spec.rb +8 -41
- data/spec/models/refund_response_spec.rb +6 -35
- data/spec/models/search_result_meta_spec.rb +5 -32
- data/spec/models/user_spec.rb +6 -35
- data/spec/spec_helper.rb +1 -11
- data/swagger_config.json +1 -1
- data/templates/Gemfile.mustache +7 -0
- data/templates/README.mustache +127 -0
- data/templates/Rakefile.mustache +8 -0
- data/templates/api.mustache +194 -0
- data/templates/api_client.mustache +383 -0
- data/templates/api_client_spec.mustache +214 -0
- data/templates/api_doc.mustache +79 -0
- data/templates/api_error.mustache +43 -0
- data/templates/api_info.mustache +12 -0
- data/templates/api_test.mustache +29 -0
- data/templates/base_object.mustache +102 -0
- data/templates/base_object_spec.mustache +107 -0
- data/templates/configuration.mustache +221 -0
- data/templates/configuration_spec.mustache +26 -0
- data/templates/gem.mustache +38 -0
- data/templates/gemspec.mustache +41 -0
- data/templates/git_push.sh.mustache +55 -0
- data/templates/gitignore.mustache +35 -0
- data/templates/model.mustache +7 -0
- data/templates/model_doc.mustache +9 -0
- data/templates/model_test.mustache +19 -0
- data/templates/partial_model_enum_class.mustache +13 -0
- data/templates/partial_model_generic.mustache +275 -0
- data/templates/rspec.mustache +2 -0
- data/templates/spec_helper.mustache +101 -0
- data/templates/version.mustache +5 -0
- metadata +30 -3
data/spec/models/item_spec.rb
CHANGED
@@ -1,83 +1,44 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::Item
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'Item' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::Item.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::Item.new }
|
29
6
|
|
30
7
|
describe 'test an instance of Item' do
|
31
8
|
it 'should create an instance of Item' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::Item)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "id"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "item_title"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
describe 'test attribute "quantity"' do
|
48
|
-
it 'should work'
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
21
|
+
it 'should work'
|
51
22
|
end
|
52
23
|
|
53
24
|
describe 'test attribute "commission_vat_rate"' do
|
54
|
-
it 'should work'
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
25
|
+
it 'should work'
|
57
26
|
end
|
58
27
|
|
59
28
|
describe 'test attribute "listing_total_gross"' do
|
60
|
-
it 'should work'
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
29
|
+
it 'should work'
|
63
30
|
end
|
64
31
|
|
65
32
|
describe 'test attribute "product"' do
|
66
|
-
it 'should work'
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
end
|
33
|
+
it 'should work'
|
69
34
|
end
|
70
35
|
|
71
36
|
describe 'test attribute "options"' do
|
72
|
-
it 'should work'
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
end
|
37
|
+
it 'should work'
|
75
38
|
end
|
76
39
|
|
77
40
|
describe 'test attribute "financials"' do
|
78
|
-
it 'should work'
|
79
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
-
end
|
41
|
+
it 'should work'
|
81
42
|
end
|
82
43
|
|
83
44
|
end
|
data/spec/models/link_spec.rb
CHANGED
@@ -1,53 +1,24 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::Link
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'Link' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::Link.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::Link.new }
|
29
6
|
|
30
7
|
describe 'test an instance of Link' do
|
31
8
|
it 'should create an instance of Link' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::Link)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "rel"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "method"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
describe 'test attribute "href"' do
|
48
|
-
it 'should work'
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
21
|
+
it 'should work'
|
51
22
|
end
|
52
23
|
|
53
24
|
end
|
@@ -1,59 +1,28 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::ManualPayment
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'ManualPayment' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::ManualPayment.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::ManualPayment.new }
|
29
6
|
|
30
7
|
describe 'test an instance of ManualPayment' do
|
31
8
|
it 'should create an instance of ManualPayment' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::ManualPayment)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "id"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "payment_reason"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
describe 'test attribute "commission"' do
|
48
|
-
it 'should work'
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
21
|
+
it 'should work'
|
51
22
|
end
|
52
23
|
|
53
24
|
describe 'test attribute "amount"' do
|
54
|
-
it 'should work'
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
25
|
+
it 'should work'
|
57
26
|
end
|
58
27
|
|
59
28
|
end
|
data/spec/models/money_spec.rb
CHANGED
@@ -1,47 +1,20 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::Money
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'Money' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::Money.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::Money.new }
|
29
6
|
|
30
7
|
describe 'test an instance of Money' do
|
31
8
|
it 'should create an instance of Money' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::Money)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "cents"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "currency"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
end
|
@@ -1,47 +1,20 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::OrderDetail
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'OrderDetail' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::OrderDetail.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::OrderDetail.new }
|
29
6
|
|
30
7
|
describe 'test an instance of OrderDetail' do
|
31
8
|
it 'should create an instance of OrderDetail' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::OrderDetail)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "tracking_number"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "parcel_tracking_url"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
end
|
@@ -1,41 +1,16 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::OrderDetailsBulkModel
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'OrderDetailsBulkModel' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::OrderDetailsBulkModel.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::OrderDetailsBulkModel.new }
|
29
6
|
|
30
7
|
describe 'test an instance of OrderDetailsBulkModel' do
|
31
8
|
it 'should create an instance of OrderDetailsBulkModel' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::OrderDetailsBulkModel)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "id"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
end
|
@@ -1,53 +1,24 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::OrderIndex
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'OrderIndex' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::OrderIndex.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::OrderIndex.new }
|
29
6
|
|
30
7
|
describe 'test an instance of OrderIndex' do
|
31
8
|
it 'should create an instance of OrderIndex' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::OrderIndex)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "query"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
describe 'test attribute "data"' do
|
42
|
-
it 'should work'
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
17
|
+
it 'should work'
|
45
18
|
end
|
46
19
|
|
47
20
|
describe 'test attribute "links"' do
|
48
|
-
it 'should work'
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
21
|
+
it 'should work'
|
51
22
|
end
|
52
23
|
|
53
24
|
end
|
@@ -1,41 +1,16 @@
|
|
1
|
-
|
2
|
-
#Noths
|
3
|
-
|
4
|
-
#www.notonthehighstreet.com API client
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
3
|
# Unit tests for Noths::OrderRefund
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
4
|
describe 'OrderRefund' do
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Noths::OrderRefund.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
5
|
+
let(:instance) { Noths::OrderRefund.new }
|
29
6
|
|
30
7
|
describe 'test an instance of OrderRefund' do
|
31
8
|
it 'should create an instance of OrderRefund' do
|
32
|
-
expect(
|
9
|
+
expect(instance).to be_instance_of(Noths::OrderRefund)
|
33
10
|
end
|
34
11
|
end
|
35
12
|
describe 'test attribute "id"' do
|
36
|
-
it 'should work'
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
13
|
+
it 'should work'
|
39
14
|
end
|
40
15
|
|
41
16
|
end
|