noths 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +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/lib/noths/models/error.rb
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -178,7 +168,6 @@ module Noths
|
|
|
178
168
|
hash = {}
|
|
179
169
|
self.class.attribute_map.each_pair do |attr, param|
|
|
180
170
|
value = self.send(attr)
|
|
181
|
-
next if value.nil?
|
|
182
171
|
hash[param] = _to_hash(value)
|
|
183
172
|
end
|
|
184
173
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -90,7 +80,7 @@ module Noths
|
|
|
90
80
|
:'manual_payment_total' => :'FinancialsDetails',
|
|
91
81
|
:'purchase_delivery' => :'FinancialsDetails',
|
|
92
82
|
:'purchase_discount' => :'FinancialsDetails',
|
|
93
|
-
:'purchase_items' => :'FinancialsDetails',
|
|
83
|
+
:'purchase_items' => :'Array<FinancialsDetails>',
|
|
94
84
|
:'purchase_subtotal' => :'FinancialsDetails',
|
|
95
85
|
:'purchase_total' => :'FinancialsDetails',
|
|
96
86
|
:'partner_total' => :'FinancialsDetails',
|
|
@@ -153,7 +143,9 @@ module Noths
|
|
|
153
143
|
end
|
|
154
144
|
|
|
155
145
|
if attributes.has_key?(:'purchase_items')
|
|
156
|
-
|
|
146
|
+
if (value = attributes[:'purchase_items']).is_a?(Array)
|
|
147
|
+
self.purchase_items = value
|
|
148
|
+
end
|
|
157
149
|
end
|
|
158
150
|
|
|
159
151
|
if attributes.has_key?(:'purchase_subtotal')
|
|
@@ -404,7 +396,6 @@ module Noths
|
|
|
404
396
|
hash = {}
|
|
405
397
|
self.class.attribute_map.each_pair do |attr, param|
|
|
406
398
|
value = self.send(attr)
|
|
407
|
-
next if value.nil?
|
|
408
399
|
hash[param] = _to_hash(value)
|
|
409
400
|
end
|
|
410
401
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -192,7 +182,6 @@ module Noths
|
|
|
192
182
|
hash = {}
|
|
193
183
|
self.class.attribute_map.each_pair do |attr, param|
|
|
194
184
|
value = self.send(attr)
|
|
195
|
-
next if value.nil?
|
|
196
185
|
hash[param] = _to_hash(value)
|
|
197
186
|
end
|
|
198
187
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -234,7 +224,6 @@ module Noths
|
|
|
234
224
|
hash = {}
|
|
235
225
|
self.class.attribute_map.each_pair do |attr, param|
|
|
236
226
|
value = self.send(attr)
|
|
237
|
-
next if value.nil?
|
|
238
227
|
hash[param] = _to_hash(value)
|
|
239
228
|
end
|
|
240
229
|
hash
|
data/lib/noths/models/item.rb
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -264,7 +254,6 @@ module Noths
|
|
|
264
254
|
hash = {}
|
|
265
255
|
self.class.attribute_map.each_pair do |attr, param|
|
|
266
256
|
value = self.send(attr)
|
|
267
|
-
next if value.nil?
|
|
268
257
|
hash[param] = _to_hash(value)
|
|
269
258
|
end
|
|
270
259
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -234,7 +224,6 @@ module Noths
|
|
|
234
224
|
hash = {}
|
|
235
225
|
self.class.attribute_map.each_pair do |attr, param|
|
|
236
226
|
value = self.send(attr)
|
|
237
|
-
next if value.nil?
|
|
238
227
|
hash[param] = _to_hash(value)
|
|
239
228
|
end
|
|
240
229
|
hash
|
data/lib/noths/models/link.rb
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -193,7 +183,6 @@ module Noths
|
|
|
193
183
|
hash = {}
|
|
194
184
|
self.class.attribute_map.each_pair do |attr, param|
|
|
195
185
|
value = self.send(attr)
|
|
196
|
-
next if value.nil?
|
|
197
186
|
hash[param] = _to_hash(value)
|
|
198
187
|
end
|
|
199
188
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -206,7 +196,6 @@ module Noths
|
|
|
206
196
|
hash = {}
|
|
207
197
|
self.class.attribute_map.each_pair do |attr, param|
|
|
208
198
|
value = self.send(attr)
|
|
209
|
-
next if value.nil?
|
|
210
199
|
hash[param] = _to_hash(value)
|
|
211
200
|
end
|
|
212
201
|
hash
|
data/lib/noths/models/money.rb
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -178,7 +168,6 @@ module Noths
|
|
|
178
168
|
hash = {}
|
|
179
169
|
self.class.attribute_map.each_pair do |attr, param|
|
|
180
170
|
value = self.send(attr)
|
|
181
|
-
next if value.nil?
|
|
182
171
|
hash[param] = _to_hash(value)
|
|
183
172
|
end
|
|
184
173
|
hash
|
data/lib/noths/models/order.rb
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -109,6 +99,8 @@ module Noths
|
|
|
109
99
|
|
|
110
100
|
attr_accessor :links
|
|
111
101
|
|
|
102
|
+
attr_accessor :updated_at
|
|
103
|
+
|
|
112
104
|
|
|
113
105
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
114
106
|
def self.attribute_map
|
|
@@ -158,7 +150,8 @@ module Noths
|
|
|
158
150
|
:'delivery_total' => :'delivery_total',
|
|
159
151
|
:'enquiry' => :'enquiry',
|
|
160
152
|
:'items' => :'items',
|
|
161
|
-
:'links' => :'links'
|
|
153
|
+
:'links' => :'links',
|
|
154
|
+
:'updated_at' => :'updated_at'
|
|
162
155
|
}
|
|
163
156
|
end
|
|
164
157
|
|
|
@@ -167,16 +160,16 @@ module Noths
|
|
|
167
160
|
{
|
|
168
161
|
:'id' => :'Integer',
|
|
169
162
|
:'state' => :'String',
|
|
170
|
-
:'confirm_by' => :'
|
|
171
|
-
:'estimated_dispatch_at' => :'
|
|
172
|
-
:'placed_at' => :'
|
|
173
|
-
:'expired_at' => :'
|
|
174
|
-
:'declined_at' => :'
|
|
175
|
-
:'accepted_at' => :'
|
|
176
|
-
:'dispatched_at' => :'
|
|
177
|
-
:'archived_at' => :'
|
|
163
|
+
:'confirm_by' => :'DateTime',
|
|
164
|
+
:'estimated_dispatch_at' => :'DateTime',
|
|
165
|
+
:'placed_at' => :'DateTime',
|
|
166
|
+
:'expired_at' => :'DateTime',
|
|
167
|
+
:'declined_at' => :'DateTime',
|
|
168
|
+
:'accepted_at' => :'DateTime',
|
|
169
|
+
:'dispatched_at' => :'DateTime',
|
|
170
|
+
:'archived_at' => :'DateTime',
|
|
178
171
|
:'repeat_customer' => :'BOOLEAN',
|
|
179
|
-
:'customer_expected_delivery_date' => :'
|
|
172
|
+
:'customer_expected_delivery_date' => :'DateTime',
|
|
180
173
|
:'number' => :'String',
|
|
181
174
|
:'dispatch_note_viewed' => :'BOOLEAN',
|
|
182
175
|
:'express' => :'BOOLEAN',
|
|
@@ -192,7 +185,7 @@ module Noths
|
|
|
192
185
|
:'gift_receipt' => :'BOOLEAN',
|
|
193
186
|
:'delivery_note' => :'String',
|
|
194
187
|
:'has_enquiry' => :'BOOLEAN',
|
|
195
|
-
:'estimated_delivery_date' => :'
|
|
188
|
+
:'estimated_delivery_date' => :'DateTime',
|
|
196
189
|
:'rebate_qualified' => :'BOOLEAN',
|
|
197
190
|
:'rebate_achieved' => :'BOOLEAN',
|
|
198
191
|
:'financials' => :'Financials',
|
|
@@ -209,8 +202,9 @@ module Noths
|
|
|
209
202
|
:'order_total' => :'Money',
|
|
210
203
|
:'delivery_total' => :'Money',
|
|
211
204
|
:'enquiry' => :'Enquiry',
|
|
212
|
-
:'items' => :'Item',
|
|
213
|
-
:'links' => :'Array<Link>'
|
|
205
|
+
:'items' => :'Array<Item>',
|
|
206
|
+
:'links' => :'Array<Link>',
|
|
207
|
+
:'updated_at' => :'DateTime'
|
|
214
208
|
}
|
|
215
209
|
end
|
|
216
210
|
|
|
@@ -399,7 +393,9 @@ module Noths
|
|
|
399
393
|
end
|
|
400
394
|
|
|
401
395
|
if attributes.has_key?(:'items')
|
|
402
|
-
|
|
396
|
+
if (value = attributes[:'items']).is_a?(Array)
|
|
397
|
+
self.items = value
|
|
398
|
+
end
|
|
403
399
|
end
|
|
404
400
|
|
|
405
401
|
if attributes.has_key?(:'links')
|
|
@@ -408,6 +404,10 @@ module Noths
|
|
|
408
404
|
end
|
|
409
405
|
end
|
|
410
406
|
|
|
407
|
+
if attributes.has_key?(:'updated_at')
|
|
408
|
+
self.updated_at = attributes[:'updated_at']
|
|
409
|
+
end
|
|
410
|
+
|
|
411
411
|
end
|
|
412
412
|
|
|
413
413
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -688,7 +688,8 @@ module Noths
|
|
|
688
688
|
delivery_total == o.delivery_total &&
|
|
689
689
|
enquiry == o.enquiry &&
|
|
690
690
|
items == o.items &&
|
|
691
|
-
links == o.links
|
|
691
|
+
links == o.links &&
|
|
692
|
+
updated_at == o.updated_at
|
|
692
693
|
end
|
|
693
694
|
|
|
694
695
|
# @see the `==` method
|
|
@@ -700,7 +701,7 @@ module Noths
|
|
|
700
701
|
# Calculates hash code according to all attributes.
|
|
701
702
|
# @return [Fixnum] Hash code
|
|
702
703
|
def hash
|
|
703
|
-
[id, state, confirm_by, estimated_dispatch_at, placed_at, expired_at, declined_at, accepted_at, dispatched_at, archived_at, repeat_customer, customer_expected_delivery_date, number, dispatch_note_viewed, express, partner_name, delivery_recipient_name, delivery_recipient_first_name, delivery_recipient_last_name, international, dispatch_overdue, gift, gift_message, gift_wrap, gift_receipt, delivery_note, has_enquiry, estimated_delivery_date, rebate_qualified, rebate_achieved, financials, promotion_discount, promotion_present, remaining_refund_amount, refund_total, extra_refund_amount, user, delivery_address, delivery_zone, delivery_service, order_detail, order_total, delivery_total, enquiry, items, links].hash
|
|
704
|
+
[id, state, confirm_by, estimated_dispatch_at, placed_at, expired_at, declined_at, accepted_at, dispatched_at, archived_at, repeat_customer, customer_expected_delivery_date, number, dispatch_note_viewed, express, partner_name, delivery_recipient_name, delivery_recipient_first_name, delivery_recipient_last_name, international, dispatch_overdue, gift, gift_message, gift_wrap, gift_receipt, delivery_note, has_enquiry, estimated_delivery_date, rebate_qualified, rebate_achieved, financials, promotion_discount, promotion_present, remaining_refund_amount, refund_total, extra_refund_amount, user, delivery_address, delivery_zone, delivery_service, order_detail, order_total, delivery_total, enquiry, items, links, updated_at].hash
|
|
704
705
|
end
|
|
705
706
|
|
|
706
707
|
# Builds the object from hash
|
|
@@ -783,7 +784,6 @@ module Noths
|
|
|
783
784
|
hash = {}
|
|
784
785
|
self.class.attribute_map.each_pair do |attr, param|
|
|
785
786
|
value = self.send(attr)
|
|
786
|
-
next if value.nil?
|
|
787
787
|
hash[param] = _to_hash(value)
|
|
788
788
|
end
|
|
789
789
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -178,7 +168,6 @@ module Noths
|
|
|
178
168
|
hash = {}
|
|
179
169
|
self.class.attribute_map.each_pair do |attr, param|
|
|
180
170
|
value = self.send(attr)
|
|
181
|
-
next if value.nil?
|
|
182
171
|
hash[param] = _to_hash(value)
|
|
183
172
|
end
|
|
184
173
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -165,7 +155,6 @@ module Noths
|
|
|
165
155
|
hash = {}
|
|
166
156
|
self.class.attribute_map.each_pair do |attr, param|
|
|
167
157
|
value = self.send(attr)
|
|
168
|
-
next if value.nil?
|
|
169
158
|
hash[param] = _to_hash(value)
|
|
170
159
|
end
|
|
171
160
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -196,7 +186,6 @@ module Noths
|
|
|
196
186
|
hash = {}
|
|
197
187
|
self.class.attribute_map.each_pair do |attr, param|
|
|
198
188
|
value = self.send(attr)
|
|
199
|
-
next if value.nil?
|
|
200
189
|
hash[param] = _to_hash(value)
|
|
201
190
|
end
|
|
202
191
|
hash
|
|
@@ -1,14 +1,4 @@
|
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
12
2
|
|
|
13
3
|
require 'date'
|
|
14
4
|
|
|
@@ -164,7 +154,6 @@ module Noths
|
|
|
164
154
|
hash = {}
|
|
165
155
|
self.class.attribute_map.each_pair do |attr, param|
|
|
166
156
|
value = self.send(attr)
|
|
167
|
-
next if value.nil?
|
|
168
157
|
hash[param] = _to_hash(value)
|
|
169
158
|
end
|
|
170
159
|
hash
|