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/lib/noths/models/product.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
|
|
@@ -220,7 +210,6 @@ module Noths
|
|
220
210
|
hash = {}
|
221
211
|
self.class.attribute_map.each_pair do |attr, param|
|
222
212
|
value = self.send(attr)
|
223
|
-
next if value.nil?
|
224
213
|
hash[param] = _to_hash(value)
|
225
214
|
end
|
226
215
|
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
|
|
@@ -194,7 +184,6 @@ module Noths
|
|
194
184
|
hash = {}
|
195
185
|
self.class.attribute_map.each_pair do |attr, param|
|
196
186
|
value = self.send(attr)
|
197
|
-
next if value.nil?
|
198
187
|
hash[param] = _to_hash(value)
|
199
188
|
end
|
200
189
|
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
|
data/lib/noths/models/user.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
|
|
@@ -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
|
data/lib/noths/version.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
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
|
module Noths
|
14
|
-
VERSION = "0.
|
4
|
+
VERSION = "0.2.0"
|
15
5
|
end
|
data/noths.gemspec
CHANGED
@@ -1,16 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
#
|
3
|
-
|
4
|
-
#Noths
|
5
|
-
|
6
|
-
#www.notonthehighstreet.com API client
|
7
|
-
|
8
|
-
OpenAPI spec version: 1.0
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.3.1
|
12
|
-
|
13
|
-
=end
|
3
|
+
# frozen_string_literal: true
|
14
4
|
|
15
5
|
$:.push File.expand_path("../lib", __FILE__)
|
16
6
|
require "noths/version"
|
data/schemas/api-docs.json
CHANGED
data/schemas/orders.json
CHANGED
@@ -9,6 +9,13 @@
|
|
9
9
|
"operations": [
|
10
10
|
{
|
11
11
|
"parameters": [
|
12
|
+
{
|
13
|
+
"paramType": "query",
|
14
|
+
"name": "token",
|
15
|
+
"type": "string",
|
16
|
+
"description": "Authentication credential",
|
17
|
+
"required": true
|
18
|
+
},
|
12
19
|
{
|
13
20
|
"paramType": "path",
|
14
21
|
"name": "id",
|
@@ -66,11 +73,9 @@
|
|
66
73
|
],
|
67
74
|
"method": "post",
|
68
75
|
"nickname": "Orders#acceptance",
|
69
|
-
"
|
70
|
-
"
|
71
|
-
|
72
|
-
]
|
73
|
-
}
|
76
|
+
"consumes": [
|
77
|
+
"application/x-www-form-urlencoded"
|
78
|
+
]
|
74
79
|
}
|
75
80
|
]
|
76
81
|
},
|
@@ -79,6 +84,13 @@
|
|
79
84
|
"operations": [
|
80
85
|
{
|
81
86
|
"parameters": [
|
87
|
+
{
|
88
|
+
"paramType": "query",
|
89
|
+
"name": "token",
|
90
|
+
"type": "string",
|
91
|
+
"description": "Authentication credential",
|
92
|
+
"required": true
|
93
|
+
},
|
82
94
|
{
|
83
95
|
"paramType": "path",
|
84
96
|
"name": "id",
|
@@ -120,11 +132,9 @@
|
|
120
132
|
],
|
121
133
|
"method": "post",
|
122
134
|
"nickname": "Orders#decline",
|
123
|
-
"
|
124
|
-
"
|
125
|
-
|
126
|
-
]
|
127
|
-
}
|
135
|
+
"consumes": [
|
136
|
+
"application/x-www-form-urlencoded"
|
137
|
+
]
|
128
138
|
}
|
129
139
|
]
|
130
140
|
},
|
@@ -133,6 +143,13 @@
|
|
133
143
|
"operations": [
|
134
144
|
{
|
135
145
|
"parameters": [
|
146
|
+
{
|
147
|
+
"paramType": "query",
|
148
|
+
"name": "token",
|
149
|
+
"type": "string",
|
150
|
+
"description": "Authentication credential",
|
151
|
+
"required": true
|
152
|
+
},
|
136
153
|
{
|
137
154
|
"paramType": "path",
|
138
155
|
"name": "id",
|
@@ -203,11 +220,9 @@
|
|
203
220
|
],
|
204
221
|
"method": "post",
|
205
222
|
"nickname": "Orders#dispatch_order",
|
206
|
-
"
|
207
|
-
"
|
208
|
-
|
209
|
-
]
|
210
|
-
}
|
223
|
+
"consumes": [
|
224
|
+
"application/x-www-form-urlencoded"
|
225
|
+
]
|
211
226
|
}
|
212
227
|
]
|
213
228
|
},
|
@@ -216,6 +231,13 @@
|
|
216
231
|
"operations": [
|
217
232
|
{
|
218
233
|
"parameters": [
|
234
|
+
{
|
235
|
+
"paramType": "query",
|
236
|
+
"name": "token",
|
237
|
+
"type": "string",
|
238
|
+
"description": "Authentication credential",
|
239
|
+
"required": true
|
240
|
+
},
|
219
241
|
{
|
220
242
|
"paramType": "path",
|
221
243
|
"name": "id",
|
@@ -242,7 +264,7 @@
|
|
242
264
|
"responseMessages": [
|
243
265
|
{
|
244
266
|
"code": 200,
|
245
|
-
"responseModel":
|
267
|
+
"responseModel": "File",
|
246
268
|
"message": "Returns a PDF"
|
247
269
|
},
|
248
270
|
{
|
@@ -263,11 +285,10 @@
|
|
263
285
|
],
|
264
286
|
"method": "get",
|
265
287
|
"nickname": "Orders#dispatch_note",
|
266
|
-
"
|
267
|
-
"
|
268
|
-
|
269
|
-
|
270
|
-
}
|
288
|
+
"produces": [
|
289
|
+
"application/pdf",
|
290
|
+
"application/json"
|
291
|
+
]
|
271
292
|
}
|
272
293
|
]
|
273
294
|
},
|
@@ -276,6 +297,13 @@
|
|
276
297
|
"operations": [
|
277
298
|
{
|
278
299
|
"parameters": [
|
300
|
+
{
|
301
|
+
"paramType": "query",
|
302
|
+
"name": "token",
|
303
|
+
"type": "string",
|
304
|
+
"description": "Authentication credential",
|
305
|
+
"required": true
|
306
|
+
},
|
279
307
|
{
|
280
308
|
"paramType": "path",
|
281
309
|
"name": "id",
|
@@ -289,7 +317,7 @@
|
|
289
317
|
"responseMessages": [
|
290
318
|
{
|
291
319
|
"code": 200,
|
292
|
-
"responseModel":
|
320
|
+
"responseModel": "File",
|
293
321
|
"message": "Returns a PDF"
|
294
322
|
},
|
295
323
|
{
|
@@ -310,11 +338,10 @@
|
|
310
338
|
],
|
311
339
|
"method": "get",
|
312
340
|
"nickname": "Orders#order_details",
|
313
|
-
"
|
314
|
-
"
|
315
|
-
|
316
|
-
|
317
|
-
}
|
341
|
+
"produces": [
|
342
|
+
"application/pdf",
|
343
|
+
"application/json"
|
344
|
+
]
|
318
345
|
}
|
319
346
|
]
|
320
347
|
},
|
@@ -323,6 +350,13 @@
|
|
323
350
|
"operations": [
|
324
351
|
{
|
325
352
|
"parameters": [
|
353
|
+
{
|
354
|
+
"paramType": "query",
|
355
|
+
"name": "token",
|
356
|
+
"type": "string",
|
357
|
+
"description": "Authentication credential",
|
358
|
+
"required": true
|
359
|
+
},
|
326
360
|
{
|
327
361
|
"paramType": "path",
|
328
362
|
"name": "id",
|
@@ -350,7 +384,7 @@
|
|
350
384
|
"responseMessages": [
|
351
385
|
{
|
352
386
|
"code": 200,
|
353
|
-
"responseModel":
|
387
|
+
"responseModel": "File",
|
354
388
|
"message": "Returns a PDF"
|
355
389
|
},
|
356
390
|
{
|
@@ -371,11 +405,10 @@
|
|
371
405
|
],
|
372
406
|
"method": "get",
|
373
407
|
"nickname": "Orders#invoice",
|
374
|
-
"
|
375
|
-
"
|
376
|
-
|
377
|
-
|
378
|
-
}
|
408
|
+
"produces": [
|
409
|
+
"application/pdf",
|
410
|
+
"application/json"
|
411
|
+
]
|
379
412
|
}
|
380
413
|
]
|
381
414
|
},
|
@@ -384,6 +417,13 @@
|
|
384
417
|
"operations": [
|
385
418
|
{
|
386
419
|
"parameters": [
|
420
|
+
{
|
421
|
+
"paramType": "query",
|
422
|
+
"name": "token",
|
423
|
+
"type": "string",
|
424
|
+
"description": "Authentication credential",
|
425
|
+
"required": true
|
426
|
+
},
|
387
427
|
{
|
388
428
|
"paramType": "body",
|
389
429
|
"name": "payload",
|
@@ -421,11 +461,9 @@
|
|
421
461
|
],
|
422
462
|
"method": "post",
|
423
463
|
"nickname": "Orders#acceptance_bulk",
|
424
|
-
"
|
425
|
-
"
|
426
|
-
|
427
|
-
]
|
428
|
-
}
|
464
|
+
"consumes": [
|
465
|
+
"application/x-www-form-urlencoded"
|
466
|
+
]
|
429
467
|
}
|
430
468
|
]
|
431
469
|
},
|
@@ -434,6 +472,13 @@
|
|
434
472
|
"operations": [
|
435
473
|
{
|
436
474
|
"parameters": [
|
475
|
+
{
|
476
|
+
"paramType": "query",
|
477
|
+
"name": "token",
|
478
|
+
"type": "string",
|
479
|
+
"description": "Authentication credential",
|
480
|
+
"required": true
|
481
|
+
},
|
437
482
|
{
|
438
483
|
"paramType": "body",
|
439
484
|
"name": "payload",
|
@@ -471,11 +516,9 @@
|
|
471
516
|
],
|
472
517
|
"method": "post",
|
473
518
|
"nickname": "Orders#decline_bulk",
|
474
|
-
"
|
475
|
-
"
|
476
|
-
|
477
|
-
]
|
478
|
-
}
|
519
|
+
"consumes": [
|
520
|
+
"application/x-www-form-urlencoded"
|
521
|
+
]
|
479
522
|
}
|
480
523
|
]
|
481
524
|
},
|
@@ -484,6 +527,13 @@
|
|
484
527
|
"operations": [
|
485
528
|
{
|
486
529
|
"parameters": [
|
530
|
+
{
|
531
|
+
"paramType": "query",
|
532
|
+
"name": "token",
|
533
|
+
"type": "string",
|
534
|
+
"description": "Authentication credential",
|
535
|
+
"required": true
|
536
|
+
},
|
487
537
|
{
|
488
538
|
"paramType": "query",
|
489
539
|
"name": "ignore_unresolved_enquiries",
|
@@ -528,11 +578,9 @@
|
|
528
578
|
],
|
529
579
|
"method": "post",
|
530
580
|
"nickname": "Orders#dispatch_orders_bulk",
|
531
|
-
"
|
532
|
-
"
|
533
|
-
|
534
|
-
]
|
535
|
-
}
|
581
|
+
"consumes": [
|
582
|
+
"application/x-www-form-urlencoded"
|
583
|
+
]
|
536
584
|
}
|
537
585
|
]
|
538
586
|
},
|
@@ -541,6 +589,13 @@
|
|
541
589
|
"operations": [
|
542
590
|
{
|
543
591
|
"parameters": [
|
592
|
+
{
|
593
|
+
"paramType": "query",
|
594
|
+
"name": "token",
|
595
|
+
"type": "string",
|
596
|
+
"description": "Authentication credential",
|
597
|
+
"required": true
|
598
|
+
},
|
544
599
|
{
|
545
600
|
"paramType": "body",
|
546
601
|
"name": "payload",
|
@@ -557,7 +612,7 @@
|
|
557
612
|
"responseMessages": [
|
558
613
|
{
|
559
614
|
"code": 200,
|
560
|
-
"responseModel":
|
615
|
+
"responseModel": "File",
|
561
616
|
"message": "Returns a PDF"
|
562
617
|
},
|
563
618
|
{
|
@@ -578,11 +633,13 @@
|
|
578
633
|
],
|
579
634
|
"method": "post",
|
580
635
|
"nickname": "Orders#dispatch_notes_bulk",
|
581
|
-
"
|
582
|
-
"
|
583
|
-
|
584
|
-
|
585
|
-
|
636
|
+
"consumes": [
|
637
|
+
"application/x-www-form-urlencoded"
|
638
|
+
],
|
639
|
+
"produces": [
|
640
|
+
"application/pdf",
|
641
|
+
"application/json"
|
642
|
+
]
|
586
643
|
}
|
587
644
|
]
|
588
645
|
},
|
@@ -591,6 +648,13 @@
|
|
591
648
|
"operations": [
|
592
649
|
{
|
593
650
|
"parameters": [
|
651
|
+
{
|
652
|
+
"paramType": "query",
|
653
|
+
"name": "token",
|
654
|
+
"type": "string",
|
655
|
+
"description": "Authentication credential",
|
656
|
+
"required": true
|
657
|
+
},
|
594
658
|
{
|
595
659
|
"paramType": "body",
|
596
660
|
"name": "payload",
|
@@ -607,7 +671,7 @@
|
|
607
671
|
"responseMessages": [
|
608
672
|
{
|
609
673
|
"code": 200,
|
610
|
-
"responseModel":
|
674
|
+
"responseModel": "File",
|
611
675
|
"message": "Returns a PDF"
|
612
676
|
},
|
613
677
|
{
|
@@ -628,11 +692,13 @@
|
|
628
692
|
],
|
629
693
|
"method": "post",
|
630
694
|
"nickname": "Orders#order_details_bulk",
|
631
|
-
"
|
632
|
-
"
|
633
|
-
|
634
|
-
|
635
|
-
|
695
|
+
"consumes": [
|
696
|
+
"application/x-www-form-urlencoded"
|
697
|
+
],
|
698
|
+
"produces": [
|
699
|
+
"application/pdf",
|
700
|
+
"application/json"
|
701
|
+
]
|
636
702
|
}
|
637
703
|
]
|
638
704
|
},
|
@@ -641,6 +707,13 @@
|
|
641
707
|
"operations": [
|
642
708
|
{
|
643
709
|
"parameters": [
|
710
|
+
{
|
711
|
+
"paramType": "query",
|
712
|
+
"name": "token",
|
713
|
+
"type": "string",
|
714
|
+
"description": "Authentication credential",
|
715
|
+
"required": true
|
716
|
+
},
|
644
717
|
{
|
645
718
|
"paramType": "query",
|
646
719
|
"name": "customer_expected_delivery_date[from]",
|
@@ -875,7 +948,8 @@
|
|
875
948
|
"refunded",
|
876
949
|
"archived"
|
877
950
|
]
|
878
|
-
}
|
951
|
+
},
|
952
|
+
"allowMultiple": true
|
879
953
|
}
|
880
954
|
],
|
881
955
|
"summary": "Fetch orders",
|
@@ -893,12 +967,7 @@
|
|
893
967
|
}
|
894
968
|
],
|
895
969
|
"method": "get",
|
896
|
-
"nickname": "Orders#index"
|
897
|
-
"authorizations": {
|
898
|
-
"token": [
|
899
|
-
|
900
|
-
]
|
901
|
-
}
|
970
|
+
"nickname": "Orders#index"
|
902
971
|
}
|
903
972
|
]
|
904
973
|
},
|
@@ -907,6 +976,13 @@
|
|
907
976
|
"operations": [
|
908
977
|
{
|
909
978
|
"parameters": [
|
979
|
+
{
|
980
|
+
"paramType": "query",
|
981
|
+
"name": "token",
|
982
|
+
"type": "string",
|
983
|
+
"description": "Authentication credential",
|
984
|
+
"required": true
|
985
|
+
},
|
910
986
|
{
|
911
987
|
"paramType": "path",
|
912
988
|
"name": "id",
|
@@ -946,12 +1022,7 @@
|
|
946
1022
|
}
|
947
1023
|
],
|
948
1024
|
"method": "get",
|
949
|
-
"nickname": "Orders#show"
|
950
|
-
"authorizations": {
|
951
|
-
"token": [
|
952
|
-
|
953
|
-
]
|
954
|
-
}
|
1025
|
+
"nickname": "Orders#show"
|
955
1026
|
}
|
956
1027
|
]
|
957
1028
|
}
|
@@ -1014,35 +1085,35 @@
|
|
1014
1085
|
"description": null
|
1015
1086
|
},
|
1016
1087
|
"confirm_by": {
|
1017
|
-
"type": "date",
|
1088
|
+
"type": "date-time",
|
1018
1089
|
"description": null
|
1019
1090
|
},
|
1020
1091
|
"estimated_dispatch_at": {
|
1021
|
-
"type": "date",
|
1092
|
+
"type": "date-time",
|
1022
1093
|
"description": null
|
1023
1094
|
},
|
1024
1095
|
"placed_at": {
|
1025
|
-
"type": "date",
|
1096
|
+
"type": "date-time",
|
1026
1097
|
"description": null
|
1027
1098
|
},
|
1028
1099
|
"expired_at": {
|
1029
|
-
"type": "date",
|
1100
|
+
"type": "date-time",
|
1030
1101
|
"description": null
|
1031
1102
|
},
|
1032
1103
|
"declined_at": {
|
1033
|
-
"type": "date",
|
1104
|
+
"type": "date-time",
|
1034
1105
|
"description": null
|
1035
1106
|
},
|
1036
1107
|
"accepted_at": {
|
1037
|
-
"type": "date",
|
1108
|
+
"type": "date-time",
|
1038
1109
|
"description": null
|
1039
1110
|
},
|
1040
1111
|
"dispatched_at": {
|
1041
|
-
"type": "date",
|
1112
|
+
"type": "date-time",
|
1042
1113
|
"description": null
|
1043
1114
|
},
|
1044
1115
|
"archived_at": {
|
1045
|
-
"type": "date",
|
1116
|
+
"type": "date-time",
|
1046
1117
|
"description": null
|
1047
1118
|
},
|
1048
1119
|
"repeat_customer": {
|
@@ -1050,7 +1121,7 @@
|
|
1050
1121
|
"description": null
|
1051
1122
|
},
|
1052
1123
|
"customer_expected_delivery_date": {
|
1053
|
-
"type": "date",
|
1124
|
+
"type": "date-time",
|
1054
1125
|
"description": null
|
1055
1126
|
},
|
1056
1127
|
"number": {
|
@@ -1114,7 +1185,7 @@
|
|
1114
1185
|
"description": null
|
1115
1186
|
},
|
1116
1187
|
"estimated_delivery_date": {
|
1117
|
-
"type": "date",
|
1188
|
+
"type": "date-time",
|
1118
1189
|
"description": null
|
1119
1190
|
},
|
1120
1191
|
"rebate_qualified": {
|
@@ -1218,7 +1289,7 @@
|
|
1218
1289
|
}
|
1219
1290
|
},
|
1220
1291
|
"items": {
|
1221
|
-
"type": "
|
1292
|
+
"type": "array",
|
1222
1293
|
"description": null,
|
1223
1294
|
"items": {
|
1224
1295
|
"$ref": "Item"
|
@@ -1230,6 +1301,10 @@
|
|
1230
1301
|
"items": {
|
1231
1302
|
"$ref": "Link"
|
1232
1303
|
}
|
1304
|
+
},
|
1305
|
+
"updated_at": {
|
1306
|
+
"type": "date-time",
|
1307
|
+
"description": null
|
1233
1308
|
}
|
1234
1309
|
}
|
1235
1310
|
},
|
@@ -1404,7 +1479,7 @@
|
|
1404
1479
|
}
|
1405
1480
|
},
|
1406
1481
|
"purchase_items": {
|
1407
|
-
"type": "
|
1482
|
+
"type": "array",
|
1408
1483
|
"description": null,
|
1409
1484
|
"items": {
|
1410
1485
|
"$ref": "FinancialsDetails"
|
@@ -1922,12 +1997,12 @@
|
|
1922
1997
|
"description": "Order Id"
|
1923
1998
|
},
|
1924
1999
|
"estimated_delivery_date": {
|
1925
|
-
"type": "date",
|
2000
|
+
"type": "date-time",
|
1926
2001
|
"description": "'yyyy-mm-dd'",
|
1927
2002
|
"required": "required"
|
1928
2003
|
},
|
1929
2004
|
"estimated_dispatch_at": {
|
1930
|
-
"type": "date",
|
2005
|
+
"type": "date-time",
|
1931
2006
|
"description": "'yyyy-mm-dd'",
|
1932
2007
|
"required": "required"
|
1933
2008
|
},
|
@@ -1967,7 +2042,7 @@
|
|
1967
2042
|
"description": "Order Id"
|
1968
2043
|
},
|
1969
2044
|
"estimated_delivery_date": {
|
1970
|
-
"type": "date",
|
2045
|
+
"type": "date-time",
|
1971
2046
|
"description": "'yyyy-mm-dd'",
|
1972
2047
|
"required": "required"
|
1973
2048
|
},
|