noths 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +149 -0
- data/Rakefile +8 -0
- data/bin/generate_gem +18 -0
- data/bin/refresh_schemas +94 -0
- data/docs/AcceptanceBulkModel.md +11 -0
- data/docs/Currency.md +11 -0
- data/docs/DeclineBulkModel.md +9 -0
- data/docs/DeliveryAddress.md +13 -0
- data/docs/DeliveryService.md +9 -0
- data/docs/DeliveryZone.md +9 -0
- data/docs/DispatchBulkModel.md +12 -0
- data/docs/DispatchNotesBulkModel.md +8 -0
- data/docs/Enquiry.md +10 -0
- data/docs/EnquiryMessage.md +8 -0
- data/docs/Error.md +9 -0
- data/docs/Financials.md +25 -0
- data/docs/FinancialsDetails.md +10 -0
- data/docs/ImageUrl.md +13 -0
- data/docs/Item.md +15 -0
- data/docs/ItemFinancials.md +13 -0
- data/docs/Link.md +10 -0
- data/docs/ManualPayment.md +11 -0
- data/docs/Money.md +9 -0
- data/docs/Order.md +53 -0
- data/docs/OrderDetail.md +9 -0
- data/docs/OrderDetailsBulkModel.md +8 -0
- data/docs/OrderIndex.md +10 -0
- data/docs/OrderRefund.md +8 -0
- data/docs/OrdersApi.md +796 -0
- data/docs/Product.md +12 -0
- data/docs/ProductOption.md +9 -0
- data/docs/RefundResponse.md +10 -0
- data/docs/RefundsApi.md +69 -0
- data/docs/SearchResultMeta.md +9 -0
- data/docs/User.md +10 -0
- data/lib/noths.rb +70 -0
- data/lib/noths/api/orders_api.rb +819 -0
- data/lib/noths/api/refunds_api.rb +88 -0
- data/lib/noths/api_client.rb +389 -0
- data/lib/noths/api_error.rb +38 -0
- data/lib/noths/configuration.rb +209 -0
- data/lib/noths/models/acceptance_bulk_model.rb +233 -0
- data/lib/noths/models/currency.rb +235 -0
- data/lib/noths/models/decline_bulk_model.rb +208 -0
- data/lib/noths/models/delivery_address.rb +263 -0
- data/lib/noths/models/delivery_service.rb +207 -0
- data/lib/noths/models/delivery_zone.rb +207 -0
- data/lib/noths/models/dispatch_bulk_model.rb +236 -0
- data/lib/noths/models/dispatch_notes_bulk_model.rb +194 -0
- data/lib/noths/models/enquiry.rb +223 -0
- data/lib/noths/models/enquiry_message.rb +193 -0
- data/lib/noths/models/error.rb +207 -0
- data/lib/noths/models/financials.rb +433 -0
- data/lib/noths/models/financials_details.rb +221 -0
- data/lib/noths/models/image_url.rb +263 -0
- data/lib/noths/models/item.rb +293 -0
- data/lib/noths/models/item_financials.rb +263 -0
- data/lib/noths/models/link.rb +222 -0
- data/lib/noths/models/manual_payment.rb +235 -0
- data/lib/noths/models/money.rb +207 -0
- data/lib/noths/models/order.rb +812 -0
- data/lib/noths/models/order_detail.rb +207 -0
- data/lib/noths/models/order_details_bulk_model.rb +194 -0
- data/lib/noths/models/order_index.rb +225 -0
- data/lib/noths/models/order_refund.rb +193 -0
- data/lib/noths/models/product.rb +249 -0
- data/lib/noths/models/product_option.rb +207 -0
- data/lib/noths/models/refund_response.rb +223 -0
- data/lib/noths/models/search_result_meta.rb +207 -0
- data/lib/noths/models/user.rb +221 -0
- data/lib/noths/version.rb +15 -0
- data/noths.gemspec +45 -0
- data/schemas/api-docs.json +26 -0
- data/schemas/orders.json +2013 -0
- data/schemas/refunds.json +128 -0
- data/spec/api/orders_api_spec.rb +239 -0
- data/spec/api/refunds_api_spec.rb +50 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/acceptance_bulk_model_spec.rb +60 -0
- data/spec/models/currency_spec.rb +60 -0
- data/spec/models/decline_bulk_model_spec.rb +48 -0
- data/spec/models/delivery_address_spec.rb +72 -0
- data/spec/models/delivery_service_spec.rb +48 -0
- data/spec/models/delivery_zone_spec.rb +48 -0
- data/spec/models/dispatch_bulk_model_spec.rb +66 -0
- data/spec/models/dispatch_notes_bulk_model_spec.rb +42 -0
- data/spec/models/enquiry_message_spec.rb +42 -0
- data/spec/models/enquiry_spec.rb +54 -0
- data/spec/models/error_spec.rb +48 -0
- data/spec/models/financials_details_spec.rb +54 -0
- data/spec/models/financials_spec.rb +144 -0
- data/spec/models/image_url_spec.rb +72 -0
- data/spec/models/item_financials_spec.rb +72 -0
- data/spec/models/item_spec.rb +84 -0
- data/spec/models/link_spec.rb +54 -0
- data/spec/models/manual_payment_spec.rb +60 -0
- data/spec/models/money_spec.rb +48 -0
- data/spec/models/order_detail_spec.rb +48 -0
- data/spec/models/order_details_bulk_model_spec.rb +42 -0
- data/spec/models/order_index_spec.rb +54 -0
- data/spec/models/order_refund_spec.rb +42 -0
- data/spec/models/order_spec.rb +312 -0
- data/spec/models/product_option_spec.rb +48 -0
- data/spec/models/product_spec.rb +66 -0
- data/spec/models/refund_response_spec.rb +54 -0
- data/spec/models/search_result_meta_spec.rb +48 -0
- data/spec/models/user_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger_config.json +16 -0
- metadata +370 -0
data/noths.gemspec
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
=begin
|
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
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "noths/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "noths"
|
20
|
+
s.version = Noths::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Rustam Sharshenov"]
|
23
|
+
s.email = ["rustam@sharshenov.com"]
|
24
|
+
s.homepage = "https://github.com/veeqo/noths"
|
25
|
+
s.summary = "Swagger client for https://www.notonthehighstreet.com/"
|
26
|
+
s.description = "Swagger client for https://www.notonthehighstreet.com/"
|
27
|
+
s.license = "MIT"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"apiVersion": "1.0",
|
3
|
+
"swaggerVersion": "1.2",
|
4
|
+
"basePath": "/",
|
5
|
+
"apis": [
|
6
|
+
{
|
7
|
+
"path": "orders.json",
|
8
|
+
"description": "Order Management"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"path": "refunds.json",
|
12
|
+
"description": "Refunds"
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"info": {
|
16
|
+
"title": "Noths",
|
17
|
+
"description": "www.notonthehighstreet.com API client"
|
18
|
+
},
|
19
|
+
"authorizations": {
|
20
|
+
"token": {
|
21
|
+
"type": "apiKey",
|
22
|
+
"passAs": "query",
|
23
|
+
"keyname": "token"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
data/schemas/orders.json
ADDED
@@ -0,0 +1,2013 @@
|
|
1
|
+
{
|
2
|
+
"apiVersion": "1.0",
|
3
|
+
"swaggerVersion": "1.2",
|
4
|
+
"basePath": "/",
|
5
|
+
"resourcePath": "orders",
|
6
|
+
"apis": [
|
7
|
+
{
|
8
|
+
"path": "/api/v1/orders/{id}/accept",
|
9
|
+
"operations": [
|
10
|
+
{
|
11
|
+
"parameters": [
|
12
|
+
{
|
13
|
+
"paramType": "path",
|
14
|
+
"name": "id",
|
15
|
+
"type": "integer",
|
16
|
+
"description": "Order id",
|
17
|
+
"required": true
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"paramType": "form",
|
21
|
+
"name": "estimated_delivery_date",
|
22
|
+
"type": "string",
|
23
|
+
"description": "'yyyy-mm-dd'",
|
24
|
+
"required": true,
|
25
|
+
"format": "date"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"paramType": "form",
|
29
|
+
"name": "estimated_dispatch_at",
|
30
|
+
"type": "string",
|
31
|
+
"description": "'yyyy-mm-dd'",
|
32
|
+
"required": true,
|
33
|
+
"format": "date"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"paramType": "form",
|
37
|
+
"name": "confirmation_note",
|
38
|
+
"type": "string",
|
39
|
+
"description": null,
|
40
|
+
"required": false
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"summary": "Accept an order",
|
44
|
+
"notes": " Accept an order that is in the placed state.\n Note: In rare instances orders may not transition to the 'accepted' state\n immediately.\n",
|
45
|
+
"responseMessages": [
|
46
|
+
{
|
47
|
+
"code": 200,
|
48
|
+
"responseModel": null,
|
49
|
+
"message": "Ok"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"code": 400,
|
53
|
+
"responseModel": null,
|
54
|
+
"message": "Bad Request"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"code": 401,
|
58
|
+
"responseModel": null,
|
59
|
+
"message": "Unauthorized"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"code": 404,
|
63
|
+
"responseModel": null,
|
64
|
+
"message": "Not Found"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"method": "post",
|
68
|
+
"nickname": "Orders#acceptance",
|
69
|
+
"authorizations": {
|
70
|
+
"token": [
|
71
|
+
|
72
|
+
]
|
73
|
+
}
|
74
|
+
}
|
75
|
+
]
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"path": "/api/v1/orders/{id}/decline",
|
79
|
+
"operations": [
|
80
|
+
{
|
81
|
+
"parameters": [
|
82
|
+
{
|
83
|
+
"paramType": "path",
|
84
|
+
"name": "id",
|
85
|
+
"type": "integer",
|
86
|
+
"description": "Order id",
|
87
|
+
"required": true
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"paramType": "form",
|
91
|
+
"name": "decline_reason",
|
92
|
+
"type": "string",
|
93
|
+
"description": null,
|
94
|
+
"required": true
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"summary": "Decline an order",
|
98
|
+
"notes": "Declines an order that is in the placed state",
|
99
|
+
"responseMessages": [
|
100
|
+
{
|
101
|
+
"code": 200,
|
102
|
+
"responseModel": null,
|
103
|
+
"message": "Ok"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"code": 400,
|
107
|
+
"responseModel": null,
|
108
|
+
"message": "Bad Request"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"code": 401,
|
112
|
+
"responseModel": null,
|
113
|
+
"message": "Unauthorized"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"code": 404,
|
117
|
+
"responseModel": null,
|
118
|
+
"message": "Not Found"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"method": "post",
|
122
|
+
"nickname": "Orders#decline",
|
123
|
+
"authorizations": {
|
124
|
+
"token": [
|
125
|
+
|
126
|
+
]
|
127
|
+
}
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"path": "/api/v1/orders/{id}/dispatch",
|
133
|
+
"operations": [
|
134
|
+
{
|
135
|
+
"parameters": [
|
136
|
+
{
|
137
|
+
"paramType": "path",
|
138
|
+
"name": "id",
|
139
|
+
"type": "integer",
|
140
|
+
"description": "Order id",
|
141
|
+
"required": true
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"paramType": "form",
|
145
|
+
"name": "estimated_delivery_date",
|
146
|
+
"type": "string",
|
147
|
+
"description": "'yyyy-mm-dd'",
|
148
|
+
"required": true,
|
149
|
+
"format": "date"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"paramType": "form",
|
153
|
+
"name": "resolve_enquiry",
|
154
|
+
"type": "boolean",
|
155
|
+
"description": null,
|
156
|
+
"required": false
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"paramType": "form",
|
160
|
+
"name": "tracking_number",
|
161
|
+
"type": "string",
|
162
|
+
"description": null,
|
163
|
+
"required": false
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"paramType": "form",
|
167
|
+
"name": "parcel_tracking_url",
|
168
|
+
"type": "string",
|
169
|
+
"description": null,
|
170
|
+
"required": false
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"paramType": "form",
|
174
|
+
"name": "ignore_unresolved_enquiries",
|
175
|
+
"type": "boolean",
|
176
|
+
"description": "Defaults to false",
|
177
|
+
"required": false
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"summary": "Dispatch an order",
|
181
|
+
"notes": "Dispatches an order that is in an accepted state and has also had its dispatch note printed",
|
182
|
+
"responseMessages": [
|
183
|
+
{
|
184
|
+
"code": 200,
|
185
|
+
"responseModel": null,
|
186
|
+
"message": "Ok"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"code": 400,
|
190
|
+
"responseModel": null,
|
191
|
+
"message": "Bad Request"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"code": 401,
|
195
|
+
"responseModel": null,
|
196
|
+
"message": "Unauthorized"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"code": 404,
|
200
|
+
"responseModel": null,
|
201
|
+
"message": "Not Found"
|
202
|
+
}
|
203
|
+
],
|
204
|
+
"method": "post",
|
205
|
+
"nickname": "Orders#dispatch_order",
|
206
|
+
"authorizations": {
|
207
|
+
"token": [
|
208
|
+
|
209
|
+
]
|
210
|
+
}
|
211
|
+
}
|
212
|
+
]
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"path": "/api/v1/orders/{id}/dispatch_note",
|
216
|
+
"operations": [
|
217
|
+
{
|
218
|
+
"parameters": [
|
219
|
+
{
|
220
|
+
"paramType": "path",
|
221
|
+
"name": "id",
|
222
|
+
"type": "integer",
|
223
|
+
"description": "Order id",
|
224
|
+
"required": true
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"paramType": "query",
|
228
|
+
"name": "force_type",
|
229
|
+
"type": "string",
|
230
|
+
"description": "Type of document",
|
231
|
+
"required": false,
|
232
|
+
"allowableValues": {
|
233
|
+
"valueType": "LIST",
|
234
|
+
"values": [
|
235
|
+
"regular"
|
236
|
+
]
|
237
|
+
}
|
238
|
+
}
|
239
|
+
],
|
240
|
+
"summary": "Generate a dispatch note pdf or gift note pdf.",
|
241
|
+
"notes": "Force the kind of document by passing the force_type parameter. A gift note can only be printed for an order that is a gift, which will be the default behaviour.<p/>Here is an example of how to obtain a pdf using curl:\n <pre>curl -XPOST [URL] > document.pdf</pre>",
|
242
|
+
"responseMessages": [
|
243
|
+
{
|
244
|
+
"code": 200,
|
245
|
+
"responseModel": null,
|
246
|
+
"message": "Returns a PDF"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"code": 400,
|
250
|
+
"responseModel": null,
|
251
|
+
"message": "Bad Request"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"code": 401,
|
255
|
+
"responseModel": null,
|
256
|
+
"message": "Unauthorized"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"code": 404,
|
260
|
+
"responseModel": null,
|
261
|
+
"message": "Not Found"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"method": "get",
|
265
|
+
"nickname": "Orders#dispatch_note",
|
266
|
+
"authorizations": {
|
267
|
+
"token": [
|
268
|
+
|
269
|
+
]
|
270
|
+
}
|
271
|
+
}
|
272
|
+
]
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"path": "/api/v1/orders/{id}/order_details",
|
276
|
+
"operations": [
|
277
|
+
{
|
278
|
+
"parameters": [
|
279
|
+
{
|
280
|
+
"paramType": "path",
|
281
|
+
"name": "id",
|
282
|
+
"type": "integer",
|
283
|
+
"description": "Order id",
|
284
|
+
"required": true
|
285
|
+
}
|
286
|
+
],
|
287
|
+
"summary": "Generate an order details pdf",
|
288
|
+
"notes": "Here is an example of how to obtain a pdf using curl:\n <pre>curl -XPOST [URL] > document.pdf</pre>",
|
289
|
+
"responseMessages": [
|
290
|
+
{
|
291
|
+
"code": 200,
|
292
|
+
"responseModel": null,
|
293
|
+
"message": "Returns a PDF"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"code": 400,
|
297
|
+
"responseModel": null,
|
298
|
+
"message": "Bad Request"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"code": 401,
|
302
|
+
"responseModel": null,
|
303
|
+
"message": "Unauthorized"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"code": 404,
|
307
|
+
"responseModel": null,
|
308
|
+
"message": "Not Found"
|
309
|
+
}
|
310
|
+
],
|
311
|
+
"method": "get",
|
312
|
+
"nickname": "Orders#order_details",
|
313
|
+
"authorizations": {
|
314
|
+
"token": [
|
315
|
+
|
316
|
+
]
|
317
|
+
}
|
318
|
+
}
|
319
|
+
]
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"path": "/api/v1/orders/{id}/invoice",
|
323
|
+
"operations": [
|
324
|
+
{
|
325
|
+
"parameters": [
|
326
|
+
{
|
327
|
+
"paramType": "path",
|
328
|
+
"name": "id",
|
329
|
+
"type": "integer",
|
330
|
+
"description": "Order id",
|
331
|
+
"required": true
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"paramType": "query",
|
335
|
+
"name": "type",
|
336
|
+
"type": "string",
|
337
|
+
"description": "Type of invoice",
|
338
|
+
"required": true,
|
339
|
+
"allowableValues": {
|
340
|
+
"valueType": "LIST",
|
341
|
+
"values": [
|
342
|
+
"vat_invoice",
|
343
|
+
"additional_payment"
|
344
|
+
]
|
345
|
+
}
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"summary": "Generate a vat invoice pdf.",
|
349
|
+
"notes": "<p>Invoices are currently only applicable for the UK site</p>Here is an example of how to obtain a pdf using curl:\n <pre>curl -XPOST [URL] > document.pdf</pre>",
|
350
|
+
"responseMessages": [
|
351
|
+
{
|
352
|
+
"code": 200,
|
353
|
+
"responseModel": null,
|
354
|
+
"message": "Returns a PDF"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"code": 400,
|
358
|
+
"responseModel": null,
|
359
|
+
"message": "Bad Request"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"code": 401,
|
363
|
+
"responseModel": null,
|
364
|
+
"message": "Unauthorized"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"code": 404,
|
368
|
+
"responseModel": null,
|
369
|
+
"message": "Not Found"
|
370
|
+
}
|
371
|
+
],
|
372
|
+
"method": "get",
|
373
|
+
"nickname": "Orders#invoice",
|
374
|
+
"authorizations": {
|
375
|
+
"token": [
|
376
|
+
|
377
|
+
]
|
378
|
+
}
|
379
|
+
}
|
380
|
+
]
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"path": "/api/v1/orders/accept",
|
384
|
+
"operations": [
|
385
|
+
{
|
386
|
+
"parameters": [
|
387
|
+
{
|
388
|
+
"paramType": "body",
|
389
|
+
"name": "payload",
|
390
|
+
"type": "array",
|
391
|
+
"description": null,
|
392
|
+
"required": true,
|
393
|
+
"items": {
|
394
|
+
"$ref": "AcceptanceBulkModel"
|
395
|
+
}
|
396
|
+
}
|
397
|
+
],
|
398
|
+
"summary": "Accept multiple orders",
|
399
|
+
"notes": "Returns an array of hashes containing order ids and status codes. A status code of 200 indicates that the order was eligible to be accepted and is expected to be processed successfully. This is not a guarantee that the order will be accepted. Processing acceptance is not instantaneous and may take some time while funds are captured. Example response:\n <pre>\n [\n {\n \"id\": 12,\n \"status\": 200,\n \"errors\": []\n },\n {\n \"id\": 22,\n \"status\": 404,\n \"errors\": [\n {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"title\": \"Couldn't find the requested resource\"\n }\n ]\n }\n ]\n </pre>\n",
|
400
|
+
"responseMessages": [
|
401
|
+
{
|
402
|
+
"code": 200,
|
403
|
+
"responseModel": null,
|
404
|
+
"message": "Ok"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"code": 207,
|
408
|
+
"responseModel": null,
|
409
|
+
"message": "Partial success"
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"code": 400,
|
413
|
+
"responseModel": null,
|
414
|
+
"message": "Also includes not found"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"code": 401,
|
418
|
+
"responseModel": null,
|
419
|
+
"message": "Unauthorized"
|
420
|
+
}
|
421
|
+
],
|
422
|
+
"method": "post",
|
423
|
+
"nickname": "Orders#acceptance_bulk",
|
424
|
+
"authorizations": {
|
425
|
+
"token": [
|
426
|
+
|
427
|
+
]
|
428
|
+
}
|
429
|
+
}
|
430
|
+
]
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"path": "/api/v1/orders/decline",
|
434
|
+
"operations": [
|
435
|
+
{
|
436
|
+
"parameters": [
|
437
|
+
{
|
438
|
+
"paramType": "body",
|
439
|
+
"name": "payload",
|
440
|
+
"type": "array",
|
441
|
+
"description": null,
|
442
|
+
"required": true,
|
443
|
+
"items": {
|
444
|
+
"$ref": "DeclineBulkModel"
|
445
|
+
}
|
446
|
+
}
|
447
|
+
],
|
448
|
+
"summary": "Decline multiple orders",
|
449
|
+
"notes": "Returns an array of hashes containing order ids and status codes. A status code of 200\n indicates a successful update whereas a code of 400 indicates failure. Example response:\n <pre>\n [\n {\n \"id\": 12,\n \"status\": 200,\n \"errors\": []\n },\n {\n \"id\": 22,\n \"status\": 404,\n \"errors\": [\n {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"title\": \"Couldn't find the requested resource\"\n }\n ]\n }\n ]\n </pre>\n",
|
450
|
+
"responseMessages": [
|
451
|
+
{
|
452
|
+
"code": 200,
|
453
|
+
"responseModel": null,
|
454
|
+
"message": "Ok"
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"code": 207,
|
458
|
+
"responseModel": null,
|
459
|
+
"message": "Partial success"
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"code": 400,
|
463
|
+
"responseModel": null,
|
464
|
+
"message": "Also includes not found"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"code": 401,
|
468
|
+
"responseModel": null,
|
469
|
+
"message": "Unauthorized"
|
470
|
+
}
|
471
|
+
],
|
472
|
+
"method": "post",
|
473
|
+
"nickname": "Orders#decline_bulk",
|
474
|
+
"authorizations": {
|
475
|
+
"token": [
|
476
|
+
|
477
|
+
]
|
478
|
+
}
|
479
|
+
}
|
480
|
+
]
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"path": "/api/v1/orders/dispatch",
|
484
|
+
"operations": [
|
485
|
+
{
|
486
|
+
"parameters": [
|
487
|
+
{
|
488
|
+
"paramType": "query",
|
489
|
+
"name": "ignore_unresolved_enquiries",
|
490
|
+
"type": "boolean",
|
491
|
+
"description": "Defaults to false",
|
492
|
+
"required": false
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"paramType": "body",
|
496
|
+
"name": "payload",
|
497
|
+
"type": "array",
|
498
|
+
"description": null,
|
499
|
+
"required": true,
|
500
|
+
"items": {
|
501
|
+
"$ref": "DispatchBulkModel"
|
502
|
+
}
|
503
|
+
}
|
504
|
+
],
|
505
|
+
"summary": "Dispatch multiple orders",
|
506
|
+
"notes": "Returns an array of hashes containing order ids and status codes. A status code of 200\n indicates a successful update whereas a code of 400 indicates failure. Example response:\n <pre>\n [\n {\n \"id\": 12,\n \"status\": 200,\n \"errors\": []\n },\n {\n \"id\": 22,\n \"status\": 404,\n \"errors\": [\n {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"title\": \"Couldn't find the requested resource\"\n }\n ]\n }\n ]\n </pre>\n",
|
507
|
+
"responseMessages": [
|
508
|
+
{
|
509
|
+
"code": 200,
|
510
|
+
"responseModel": null,
|
511
|
+
"message": "Ok"
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"code": 207,
|
515
|
+
"responseModel": null,
|
516
|
+
"message": "Partial success"
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"code": 400,
|
520
|
+
"responseModel": null,
|
521
|
+
"message": "Also includes not found"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"code": 401,
|
525
|
+
"responseModel": null,
|
526
|
+
"message": "Unauthorized"
|
527
|
+
}
|
528
|
+
],
|
529
|
+
"method": "post",
|
530
|
+
"nickname": "Orders#dispatch_orders_bulk",
|
531
|
+
"authorizations": {
|
532
|
+
"token": [
|
533
|
+
|
534
|
+
]
|
535
|
+
}
|
536
|
+
}
|
537
|
+
]
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"path": "/api/v1/orders/dispatch_notes",
|
541
|
+
"operations": [
|
542
|
+
{
|
543
|
+
"parameters": [
|
544
|
+
{
|
545
|
+
"paramType": "body",
|
546
|
+
"name": "payload",
|
547
|
+
"type": "array",
|
548
|
+
"description": null,
|
549
|
+
"required": true,
|
550
|
+
"items": {
|
551
|
+
"$ref": "DispatchNotesBulkModel"
|
552
|
+
}
|
553
|
+
}
|
554
|
+
],
|
555
|
+
"summary": "Generate pdf with dispatch note for each order",
|
556
|
+
"notes": "<p/> Here is an example of how to obtain a pdf using curl:\n <pre>curl -H \"Content-Type: application/json\" -d '[{\"id\": 123}, {\"id\": 456}]' -XPOST [URL] > document.pdf</pre><p/>\n Ensure that the Content-Type header is set to \"Content-Type: application/json\".<p/>",
|
557
|
+
"responseMessages": [
|
558
|
+
{
|
559
|
+
"code": 200,
|
560
|
+
"responseModel": null,
|
561
|
+
"message": "Returns a PDF"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"code": 400,
|
565
|
+
"responseModel": null,
|
566
|
+
"message": "Bad Request"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"code": 401,
|
570
|
+
"responseModel": null,
|
571
|
+
"message": "Unauthorized"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"code": 404,
|
575
|
+
"responseModel": null,
|
576
|
+
"message": "Not Found"
|
577
|
+
}
|
578
|
+
],
|
579
|
+
"method": "post",
|
580
|
+
"nickname": "Orders#dispatch_notes_bulk",
|
581
|
+
"authorizations": {
|
582
|
+
"token": [
|
583
|
+
|
584
|
+
]
|
585
|
+
}
|
586
|
+
}
|
587
|
+
]
|
588
|
+
},
|
589
|
+
{
|
590
|
+
"path": "/api/v1/orders/order_details",
|
591
|
+
"operations": [
|
592
|
+
{
|
593
|
+
"parameters": [
|
594
|
+
{
|
595
|
+
"paramType": "body",
|
596
|
+
"name": "payload",
|
597
|
+
"type": "array",
|
598
|
+
"description": null,
|
599
|
+
"required": true,
|
600
|
+
"items": {
|
601
|
+
"$ref": "OrderDetailsBulkModel"
|
602
|
+
}
|
603
|
+
}
|
604
|
+
],
|
605
|
+
"summary": "Generate pdf with order details for each order",
|
606
|
+
"notes": "<p/> Here is an example of how to obtain a pdf using curl:\n <pre>curl -H \"Content-Type: application/json\" -d '[{\"id\": 123}, {\"id\": 456}]' -XPOST [URL] > document.pdf</pre><p/>\n Ensure that the Content-Type header is set to \"Content-Type: application/json\".<p/>",
|
607
|
+
"responseMessages": [
|
608
|
+
{
|
609
|
+
"code": 200,
|
610
|
+
"responseModel": null,
|
611
|
+
"message": "Returns a PDF"
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"code": 400,
|
615
|
+
"responseModel": null,
|
616
|
+
"message": "Bad Request"
|
617
|
+
},
|
618
|
+
{
|
619
|
+
"code": 401,
|
620
|
+
"responseModel": null,
|
621
|
+
"message": "Unauthorized"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"code": 404,
|
625
|
+
"responseModel": null,
|
626
|
+
"message": "Not Found"
|
627
|
+
}
|
628
|
+
],
|
629
|
+
"method": "post",
|
630
|
+
"nickname": "Orders#order_details_bulk",
|
631
|
+
"authorizations": {
|
632
|
+
"token": [
|
633
|
+
|
634
|
+
]
|
635
|
+
}
|
636
|
+
}
|
637
|
+
]
|
638
|
+
},
|
639
|
+
{
|
640
|
+
"path": "/api/v1/orders",
|
641
|
+
"operations": [
|
642
|
+
{
|
643
|
+
"parameters": [
|
644
|
+
{
|
645
|
+
"paramType": "query",
|
646
|
+
"name": "customer_expected_delivery_date[from]",
|
647
|
+
"type": "string",
|
648
|
+
"description": "Earliest customer_expected_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
649
|
+
"required": false,
|
650
|
+
"format": "date-time"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"paramType": "query",
|
654
|
+
"name": "customer_expected_delivery_date[to]",
|
655
|
+
"type": "string",
|
656
|
+
"description": "Latest customer_expected_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
657
|
+
"required": false,
|
658
|
+
"format": "date-time"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"paramType": "query",
|
662
|
+
"name": "delivery_service_code",
|
663
|
+
"type": "string",
|
664
|
+
"description": "Delivery service code",
|
665
|
+
"required": false,
|
666
|
+
"allowableValues": {
|
667
|
+
"valueType": "LIST",
|
668
|
+
"values": [
|
669
|
+
"EXPRESS_12",
|
670
|
+
"EXPRESS_24",
|
671
|
+
"EXPRESS_48",
|
672
|
+
"FREE",
|
673
|
+
"SATURDAY",
|
674
|
+
"STANDARD",
|
675
|
+
"STANDARD_COURIER"
|
676
|
+
]
|
677
|
+
}
|
678
|
+
},
|
679
|
+
{
|
680
|
+
"paramType": "query",
|
681
|
+
"name": "delivery_zone_ids",
|
682
|
+
"type": "string",
|
683
|
+
"description": "List of delivery zone ids",
|
684
|
+
"required": false
|
685
|
+
},
|
686
|
+
{
|
687
|
+
"paramType": "query",
|
688
|
+
"name": "dir",
|
689
|
+
"type": "string",
|
690
|
+
"description": "Direction (defaults to desc)",
|
691
|
+
"required": false,
|
692
|
+
"allowableValues": {
|
693
|
+
"valueType": "LIST",
|
694
|
+
"values": [
|
695
|
+
"asc",
|
696
|
+
"desc"
|
697
|
+
]
|
698
|
+
}
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"paramType": "query",
|
702
|
+
"name": "dispatch_note_viewed",
|
703
|
+
"type": "boolean",
|
704
|
+
"description": null,
|
705
|
+
"required": false
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"paramType": "query",
|
709
|
+
"name": "enquiry_state",
|
710
|
+
"type": "string",
|
711
|
+
"description": " Enquiry state where `unresolved` includes `opened`, `acknowledged` and `overdue`\n",
|
712
|
+
"required": false,
|
713
|
+
"allowableValues": {
|
714
|
+
"valueType": "LIST",
|
715
|
+
"values": [
|
716
|
+
"opened",
|
717
|
+
"acknowledged",
|
718
|
+
"overdue",
|
719
|
+
"resolved",
|
720
|
+
"unresolved"
|
721
|
+
]
|
722
|
+
}
|
723
|
+
},
|
724
|
+
{
|
725
|
+
"paramType": "query",
|
726
|
+
"name": "estimated_delivery_date[from]",
|
727
|
+
"type": "string",
|
728
|
+
"description": "Earliest estimated_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
729
|
+
"required": false,
|
730
|
+
"format": "date-time"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"paramType": "query",
|
734
|
+
"name": "estimated_delivery_date[to]",
|
735
|
+
"type": "string",
|
736
|
+
"description": "Latest estimated_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
737
|
+
"required": false,
|
738
|
+
"format": "date-time"
|
739
|
+
},
|
740
|
+
{
|
741
|
+
"paramType": "query",
|
742
|
+
"name": "estimated_dispatch_at[from]",
|
743
|
+
"type": "string",
|
744
|
+
"description": "Earliest estimated_dispatch_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
745
|
+
"required": false,
|
746
|
+
"format": "date-time"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"paramType": "query",
|
750
|
+
"name": "estimated_dispatch_at[to]",
|
751
|
+
"type": "string",
|
752
|
+
"description": "Latest estimated_dispatch_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'",
|
753
|
+
"required": false,
|
754
|
+
"format": "date-time"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"paramType": "query",
|
758
|
+
"name": "updated_at[from]",
|
759
|
+
"type": "string",
|
760
|
+
"description": "Earliest updated_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'. Is not changed on nested resource updates eg 'Enquiry'",
|
761
|
+
"required": false,
|
762
|
+
"format": "date-time"
|
763
|
+
},
|
764
|
+
{
|
765
|
+
"paramType": "query",
|
766
|
+
"name": "updated_at[to]",
|
767
|
+
"type": "string",
|
768
|
+
"description": "Latest updated_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'. Is not changed on nested resource updates eg 'Enquiry'",
|
769
|
+
"required": false,
|
770
|
+
"format": "date-time"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"paramType": "query",
|
774
|
+
"name": "gift",
|
775
|
+
"type": "boolean",
|
776
|
+
"description": null,
|
777
|
+
"required": false
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"paramType": "query",
|
781
|
+
"name": "unresolved_enquiry",
|
782
|
+
"type": "boolean",
|
783
|
+
"description": null,
|
784
|
+
"required": false
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"paramType": "query",
|
788
|
+
"name": "ids",
|
789
|
+
"type": "string",
|
790
|
+
"description": "List of order ids",
|
791
|
+
"required": false
|
792
|
+
},
|
793
|
+
{
|
794
|
+
"paramType": "query",
|
795
|
+
"name": "offset",
|
796
|
+
"type": "integer",
|
797
|
+
"description": null,
|
798
|
+
"required": false
|
799
|
+
},
|
800
|
+
{
|
801
|
+
"paramType": "query",
|
802
|
+
"name": "per_page",
|
803
|
+
"type": "integer",
|
804
|
+
"description": "Defaults to 30, maximum is 250",
|
805
|
+
"required": false
|
806
|
+
},
|
807
|
+
{
|
808
|
+
"paramType": "query",
|
809
|
+
"name": "product_ids",
|
810
|
+
"type": "string",
|
811
|
+
"description": "List of product ids",
|
812
|
+
"required": false
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"paramType": "query",
|
816
|
+
"name": "query",
|
817
|
+
"type": "string",
|
818
|
+
"description": "Matches your query to information related to your orders",
|
819
|
+
"required": false
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"paramType": "query",
|
823
|
+
"name": "repeat_customer",
|
824
|
+
"type": "boolean",
|
825
|
+
"description": null,
|
826
|
+
"required": false
|
827
|
+
},
|
828
|
+
{
|
829
|
+
"paramType": "query",
|
830
|
+
"name": "sort",
|
831
|
+
"type": "string",
|
832
|
+
"description": "Defaults to placed_at",
|
833
|
+
"required": false,
|
834
|
+
"allowableValues": {
|
835
|
+
"valueType": "LIST",
|
836
|
+
"values": [
|
837
|
+
"accepted_at",
|
838
|
+
"confirm_by",
|
839
|
+
"customer_email",
|
840
|
+
"customer_expected_delivery_date",
|
841
|
+
"customer_name",
|
842
|
+
"declined_at",
|
843
|
+
"delivery_recipient_name",
|
844
|
+
"delivery_service_code",
|
845
|
+
"dispatch_note_viewed",
|
846
|
+
"dispatched_at",
|
847
|
+
"enquiry_state",
|
848
|
+
"estimated_delivery_date",
|
849
|
+
"estimated_dispatch_at",
|
850
|
+
"expired_at",
|
851
|
+
"gift",
|
852
|
+
"international",
|
853
|
+
"listing_total_gross_value",
|
854
|
+
"partner_name",
|
855
|
+
"partner_shortcode",
|
856
|
+
"placed_at",
|
857
|
+
"state"
|
858
|
+
]
|
859
|
+
}
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"paramType": "query",
|
863
|
+
"name": "state",
|
864
|
+
"type": "string",
|
865
|
+
"description": "State",
|
866
|
+
"required": false,
|
867
|
+
"allowableValues": {
|
868
|
+
"valueType": "LIST",
|
869
|
+
"values": [
|
870
|
+
"placed",
|
871
|
+
"expired",
|
872
|
+
"accepted",
|
873
|
+
"declined",
|
874
|
+
"dispatched",
|
875
|
+
"refunded",
|
876
|
+
"archived"
|
877
|
+
]
|
878
|
+
}
|
879
|
+
}
|
880
|
+
],
|
881
|
+
"summary": "Fetch orders",
|
882
|
+
"notes": "Lists orders descending by placed at time by default.<p/>If you just want a count, use per_page=0 and offset=0 .",
|
883
|
+
"responseMessages": [
|
884
|
+
{
|
885
|
+
"code": 200,
|
886
|
+
"responseModel": "OrderIndex",
|
887
|
+
"message": "Ok"
|
888
|
+
},
|
889
|
+
{
|
890
|
+
"code": 401,
|
891
|
+
"responseModel": null,
|
892
|
+
"message": "Unauthorized"
|
893
|
+
}
|
894
|
+
],
|
895
|
+
"method": "get",
|
896
|
+
"nickname": "Orders#index",
|
897
|
+
"authorizations": {
|
898
|
+
"token": [
|
899
|
+
|
900
|
+
]
|
901
|
+
}
|
902
|
+
}
|
903
|
+
]
|
904
|
+
},
|
905
|
+
{
|
906
|
+
"path": "/api/v1/orders/{id}",
|
907
|
+
"operations": [
|
908
|
+
{
|
909
|
+
"parameters": [
|
910
|
+
{
|
911
|
+
"paramType": "path",
|
912
|
+
"name": "id",
|
913
|
+
"type": "integer",
|
914
|
+
"description": "Order Id",
|
915
|
+
"required": true
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"paramType": "query",
|
919
|
+
"name": "include",
|
920
|
+
"type": "string",
|
921
|
+
"description": " Comma separated list of nodes to expand. Currently the available values are:\n <br /><b style=\"margin-left: 10px\">financials</b>\n <p style=\"margin-left: 20px\">\n Additional financial data about this order, eg: commission and discount amounts.\n </p>\n",
|
922
|
+
"required": false
|
923
|
+
}
|
924
|
+
],
|
925
|
+
"summary": "Fetch a single Order",
|
926
|
+
"responseMessages": [
|
927
|
+
{
|
928
|
+
"code": 200,
|
929
|
+
"responseModel": "Order",
|
930
|
+
"message": "Ok"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"code": 400,
|
934
|
+
"responseModel": null,
|
935
|
+
"message": "Bad Request"
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"code": 401,
|
939
|
+
"responseModel": null,
|
940
|
+
"message": "Unauthorized"
|
941
|
+
},
|
942
|
+
{
|
943
|
+
"code": 404,
|
944
|
+
"responseModel": null,
|
945
|
+
"message": "Not Found"
|
946
|
+
}
|
947
|
+
],
|
948
|
+
"method": "get",
|
949
|
+
"nickname": "Orders#show",
|
950
|
+
"authorizations": {
|
951
|
+
"token": [
|
952
|
+
|
953
|
+
]
|
954
|
+
}
|
955
|
+
}
|
956
|
+
]
|
957
|
+
}
|
958
|
+
],
|
959
|
+
"models": {
|
960
|
+
"Order": {
|
961
|
+
"id": "Order",
|
962
|
+
"required": [
|
963
|
+
"id",
|
964
|
+
"state",
|
965
|
+
"confirm_by",
|
966
|
+
"estimated_dispatch_at",
|
967
|
+
"placed_at",
|
968
|
+
"expired_at",
|
969
|
+
"declined_at",
|
970
|
+
"accepted_at",
|
971
|
+
"dispatched_at",
|
972
|
+
"repeat_customer",
|
973
|
+
"customer_expected_delivery_date",
|
974
|
+
"number",
|
975
|
+
"dispatch_note_viewed",
|
976
|
+
"express",
|
977
|
+
"partner_name",
|
978
|
+
"delivery_recipient_name",
|
979
|
+
"delivery_recipient_first_name",
|
980
|
+
"delivery_recipient_last_name",
|
981
|
+
"international",
|
982
|
+
"dispatch_overdue",
|
983
|
+
"gift",
|
984
|
+
"gift_message",
|
985
|
+
"gift_wrap",
|
986
|
+
"gift_receipt",
|
987
|
+
"delivery_note",
|
988
|
+
"has_enquiry",
|
989
|
+
"estimated_delivery_date",
|
990
|
+
"financials",
|
991
|
+
"promotion_discount",
|
992
|
+
"promotion_present",
|
993
|
+
"remaining_refund_amount",
|
994
|
+
"refund_total",
|
995
|
+
"extra_refund_amount",
|
996
|
+
"user",
|
997
|
+
"delivery_address",
|
998
|
+
"delivery_zone",
|
999
|
+
"delivery_service",
|
1000
|
+
"order_detail",
|
1001
|
+
"order_total",
|
1002
|
+
"delivery_total",
|
1003
|
+
"enquiry",
|
1004
|
+
"items",
|
1005
|
+
"links"
|
1006
|
+
],
|
1007
|
+
"properties": {
|
1008
|
+
"id": {
|
1009
|
+
"type": "integer",
|
1010
|
+
"description": null
|
1011
|
+
},
|
1012
|
+
"state": {
|
1013
|
+
"type": "string",
|
1014
|
+
"description": null
|
1015
|
+
},
|
1016
|
+
"confirm_by": {
|
1017
|
+
"type": "date",
|
1018
|
+
"description": null
|
1019
|
+
},
|
1020
|
+
"estimated_dispatch_at": {
|
1021
|
+
"type": "date",
|
1022
|
+
"description": null
|
1023
|
+
},
|
1024
|
+
"placed_at": {
|
1025
|
+
"type": "date",
|
1026
|
+
"description": null
|
1027
|
+
},
|
1028
|
+
"expired_at": {
|
1029
|
+
"type": "date",
|
1030
|
+
"description": null
|
1031
|
+
},
|
1032
|
+
"declined_at": {
|
1033
|
+
"type": "date",
|
1034
|
+
"description": null
|
1035
|
+
},
|
1036
|
+
"accepted_at": {
|
1037
|
+
"type": "date",
|
1038
|
+
"description": null
|
1039
|
+
},
|
1040
|
+
"dispatched_at": {
|
1041
|
+
"type": "date",
|
1042
|
+
"description": null
|
1043
|
+
},
|
1044
|
+
"archived_at": {
|
1045
|
+
"type": "date",
|
1046
|
+
"description": null
|
1047
|
+
},
|
1048
|
+
"repeat_customer": {
|
1049
|
+
"type": "boolean",
|
1050
|
+
"description": null
|
1051
|
+
},
|
1052
|
+
"customer_expected_delivery_date": {
|
1053
|
+
"type": "date",
|
1054
|
+
"description": null
|
1055
|
+
},
|
1056
|
+
"number": {
|
1057
|
+
"type": "string",
|
1058
|
+
"description": null
|
1059
|
+
},
|
1060
|
+
"dispatch_note_viewed": {
|
1061
|
+
"type": "boolean",
|
1062
|
+
"description": null
|
1063
|
+
},
|
1064
|
+
"express": {
|
1065
|
+
"type": "boolean",
|
1066
|
+
"description": null
|
1067
|
+
},
|
1068
|
+
"partner_name": {
|
1069
|
+
"type": "string",
|
1070
|
+
"description": null
|
1071
|
+
},
|
1072
|
+
"delivery_recipient_name": {
|
1073
|
+
"type": "string",
|
1074
|
+
"description": null
|
1075
|
+
},
|
1076
|
+
"delivery_recipient_first_name": {
|
1077
|
+
"type": "string",
|
1078
|
+
"description": null
|
1079
|
+
},
|
1080
|
+
"delivery_recipient_last_name": {
|
1081
|
+
"type": "string",
|
1082
|
+
"description": null
|
1083
|
+
},
|
1084
|
+
"international": {
|
1085
|
+
"type": "boolean",
|
1086
|
+
"description": null
|
1087
|
+
},
|
1088
|
+
"dispatch_overdue": {
|
1089
|
+
"type": "boolean",
|
1090
|
+
"description": null
|
1091
|
+
},
|
1092
|
+
"gift": {
|
1093
|
+
"type": "boolean",
|
1094
|
+
"description": null
|
1095
|
+
},
|
1096
|
+
"gift_message": {
|
1097
|
+
"type": "string",
|
1098
|
+
"description": null
|
1099
|
+
},
|
1100
|
+
"gift_wrap": {
|
1101
|
+
"type": "boolean",
|
1102
|
+
"description": null
|
1103
|
+
},
|
1104
|
+
"gift_receipt": {
|
1105
|
+
"type": "boolean",
|
1106
|
+
"description": null
|
1107
|
+
},
|
1108
|
+
"delivery_note": {
|
1109
|
+
"type": "string",
|
1110
|
+
"description": null
|
1111
|
+
},
|
1112
|
+
"has_enquiry": {
|
1113
|
+
"type": "boolean",
|
1114
|
+
"description": null
|
1115
|
+
},
|
1116
|
+
"estimated_delivery_date": {
|
1117
|
+
"type": "date",
|
1118
|
+
"description": null
|
1119
|
+
},
|
1120
|
+
"rebate_qualified": {
|
1121
|
+
"type": "boolean",
|
1122
|
+
"description": "null in sites where rebates are not offered"
|
1123
|
+
},
|
1124
|
+
"rebate_achieved": {
|
1125
|
+
"type": "boolean",
|
1126
|
+
"description": "null in sites where rebates are not offered"
|
1127
|
+
},
|
1128
|
+
"financials": {
|
1129
|
+
"type": "Financials",
|
1130
|
+
"description": null,
|
1131
|
+
"items": {
|
1132
|
+
"$ref": "Financials"
|
1133
|
+
}
|
1134
|
+
},
|
1135
|
+
"promotion_discount": {
|
1136
|
+
"type": "integer",
|
1137
|
+
"description": null
|
1138
|
+
},
|
1139
|
+
"promotion_present": {
|
1140
|
+
"type": "boolean",
|
1141
|
+
"description": null
|
1142
|
+
},
|
1143
|
+
"remaining_refund_amount": {
|
1144
|
+
"type": "Money",
|
1145
|
+
"description": null,
|
1146
|
+
"items": {
|
1147
|
+
"$ref": "Money"
|
1148
|
+
}
|
1149
|
+
},
|
1150
|
+
"refund_total": {
|
1151
|
+
"type": "Money",
|
1152
|
+
"description": null,
|
1153
|
+
"items": {
|
1154
|
+
"$ref": "Money"
|
1155
|
+
}
|
1156
|
+
},
|
1157
|
+
"extra_refund_amount": {
|
1158
|
+
"type": "Money",
|
1159
|
+
"description": null,
|
1160
|
+
"items": {
|
1161
|
+
"$ref": "Money"
|
1162
|
+
}
|
1163
|
+
},
|
1164
|
+
"user": {
|
1165
|
+
"type": "User",
|
1166
|
+
"description": null,
|
1167
|
+
"items": {
|
1168
|
+
"$ref": "User"
|
1169
|
+
}
|
1170
|
+
},
|
1171
|
+
"delivery_address": {
|
1172
|
+
"type": "DeliveryAddress",
|
1173
|
+
"description": null,
|
1174
|
+
"items": {
|
1175
|
+
"$ref": "DeliveryAddress"
|
1176
|
+
}
|
1177
|
+
},
|
1178
|
+
"delivery_zone": {
|
1179
|
+
"type": "DeliveryZone",
|
1180
|
+
"description": null,
|
1181
|
+
"items": {
|
1182
|
+
"$ref": "DeliveryZone"
|
1183
|
+
}
|
1184
|
+
},
|
1185
|
+
"delivery_service": {
|
1186
|
+
"type": "DeliveryService",
|
1187
|
+
"description": null,
|
1188
|
+
"items": {
|
1189
|
+
"$ref": "DeliveryService"
|
1190
|
+
}
|
1191
|
+
},
|
1192
|
+
"order_detail": {
|
1193
|
+
"type": "OrderDetail",
|
1194
|
+
"description": null,
|
1195
|
+
"items": {
|
1196
|
+
"$ref": "OrderDetail"
|
1197
|
+
}
|
1198
|
+
},
|
1199
|
+
"order_total": {
|
1200
|
+
"type": "Money",
|
1201
|
+
"description": null,
|
1202
|
+
"items": {
|
1203
|
+
"$ref": "Money"
|
1204
|
+
}
|
1205
|
+
},
|
1206
|
+
"delivery_total": {
|
1207
|
+
"type": "Money",
|
1208
|
+
"description": null,
|
1209
|
+
"items": {
|
1210
|
+
"$ref": "Money"
|
1211
|
+
}
|
1212
|
+
},
|
1213
|
+
"enquiry": {
|
1214
|
+
"type": "Enquiry",
|
1215
|
+
"description": null,
|
1216
|
+
"items": {
|
1217
|
+
"$ref": "Enquiry"
|
1218
|
+
}
|
1219
|
+
},
|
1220
|
+
"items": {
|
1221
|
+
"type": "Item",
|
1222
|
+
"description": null,
|
1223
|
+
"items": {
|
1224
|
+
"$ref": "Item"
|
1225
|
+
}
|
1226
|
+
},
|
1227
|
+
"links": {
|
1228
|
+
"type": "array",
|
1229
|
+
"description": null,
|
1230
|
+
"items": {
|
1231
|
+
"$ref": "Link"
|
1232
|
+
}
|
1233
|
+
}
|
1234
|
+
}
|
1235
|
+
},
|
1236
|
+
"DeliveryAddress": {
|
1237
|
+
"id": "DeliveryAddress",
|
1238
|
+
"required": [
|
1239
|
+
"address1",
|
1240
|
+
"address2",
|
1241
|
+
"town",
|
1242
|
+
"post_code",
|
1243
|
+
"country",
|
1244
|
+
"county"
|
1245
|
+
],
|
1246
|
+
"properties": {
|
1247
|
+
"address1": {
|
1248
|
+
"type": "string",
|
1249
|
+
"description": null
|
1250
|
+
},
|
1251
|
+
"address2": {
|
1252
|
+
"type": "string",
|
1253
|
+
"description": null
|
1254
|
+
},
|
1255
|
+
"town": {
|
1256
|
+
"type": "string",
|
1257
|
+
"description": null
|
1258
|
+
},
|
1259
|
+
"post_code": {
|
1260
|
+
"type": "string",
|
1261
|
+
"description": null
|
1262
|
+
},
|
1263
|
+
"country": {
|
1264
|
+
"type": "string",
|
1265
|
+
"description": null
|
1266
|
+
},
|
1267
|
+
"county": {
|
1268
|
+
"type": "string",
|
1269
|
+
"description": null
|
1270
|
+
}
|
1271
|
+
}
|
1272
|
+
},
|
1273
|
+
"ManualPayment": {
|
1274
|
+
"id": "ManualPayment",
|
1275
|
+
"required": [
|
1276
|
+
"id",
|
1277
|
+
"payment_reason",
|
1278
|
+
"commission",
|
1279
|
+
"amount"
|
1280
|
+
],
|
1281
|
+
"properties": {
|
1282
|
+
"id": {
|
1283
|
+
"type": "integer",
|
1284
|
+
"description": null
|
1285
|
+
},
|
1286
|
+
"payment_reason": {
|
1287
|
+
"type": "string",
|
1288
|
+
"description": null
|
1289
|
+
},
|
1290
|
+
"commission": {
|
1291
|
+
"type": "FinancialsDetails",
|
1292
|
+
"description": null,
|
1293
|
+
"items": {
|
1294
|
+
"$ref": "FinancialsDetails"
|
1295
|
+
}
|
1296
|
+
},
|
1297
|
+
"amount": {
|
1298
|
+
"type": "FinancialsDetails",
|
1299
|
+
"description": null,
|
1300
|
+
"items": {
|
1301
|
+
"$ref": "FinancialsDetails"
|
1302
|
+
}
|
1303
|
+
}
|
1304
|
+
}
|
1305
|
+
},
|
1306
|
+
"Financials": {
|
1307
|
+
"id": "Financials",
|
1308
|
+
"required": [
|
1309
|
+
"commission",
|
1310
|
+
"delivery_commission",
|
1311
|
+
"items_commission",
|
1312
|
+
"listing_delivery",
|
1313
|
+
"listing_discount",
|
1314
|
+
"listing_items",
|
1315
|
+
"listing_subtotal",
|
1316
|
+
"listing_total",
|
1317
|
+
"manual_payment_total",
|
1318
|
+
"purchase_delivery",
|
1319
|
+
"purchase_discount",
|
1320
|
+
"purchase_items",
|
1321
|
+
"purchase_subtotal",
|
1322
|
+
"purchase_total",
|
1323
|
+
"partner_total",
|
1324
|
+
"listing_items_discounted",
|
1325
|
+
"listing_total_with_discount",
|
1326
|
+
"manual_payments"
|
1327
|
+
],
|
1328
|
+
"properties": {
|
1329
|
+
"commission": {
|
1330
|
+
"type": "FinancialsDetails",
|
1331
|
+
"description": null,
|
1332
|
+
"items": {
|
1333
|
+
"$ref": "FinancialsDetails"
|
1334
|
+
}
|
1335
|
+
},
|
1336
|
+
"delivery_commission": {
|
1337
|
+
"type": "FinancialsDetails",
|
1338
|
+
"description": null,
|
1339
|
+
"items": {
|
1340
|
+
"$ref": "FinancialsDetails"
|
1341
|
+
}
|
1342
|
+
},
|
1343
|
+
"items_commission": {
|
1344
|
+
"type": "FinancialsDetails",
|
1345
|
+
"description": null,
|
1346
|
+
"items": {
|
1347
|
+
"$ref": "FinancialsDetails"
|
1348
|
+
}
|
1349
|
+
},
|
1350
|
+
"listing_delivery": {
|
1351
|
+
"type": "FinancialsDetails",
|
1352
|
+
"description": null,
|
1353
|
+
"items": {
|
1354
|
+
"$ref": "FinancialsDetails"
|
1355
|
+
}
|
1356
|
+
},
|
1357
|
+
"listing_discount": {
|
1358
|
+
"type": "FinancialsDetails",
|
1359
|
+
"description": null,
|
1360
|
+
"items": {
|
1361
|
+
"$ref": "FinancialsDetails"
|
1362
|
+
}
|
1363
|
+
},
|
1364
|
+
"listing_items": {
|
1365
|
+
"type": "FinancialsDetails",
|
1366
|
+
"description": null,
|
1367
|
+
"items": {
|
1368
|
+
"$ref": "FinancialsDetails"
|
1369
|
+
}
|
1370
|
+
},
|
1371
|
+
"listing_subtotal": {
|
1372
|
+
"type": "FinancialsDetails",
|
1373
|
+
"description": null,
|
1374
|
+
"items": {
|
1375
|
+
"$ref": "FinancialsDetails"
|
1376
|
+
}
|
1377
|
+
},
|
1378
|
+
"listing_total": {
|
1379
|
+
"type": "FinancialsDetails",
|
1380
|
+
"description": null,
|
1381
|
+
"items": {
|
1382
|
+
"$ref": "FinancialsDetails"
|
1383
|
+
}
|
1384
|
+
},
|
1385
|
+
"manual_payment_total": {
|
1386
|
+
"type": "FinancialsDetails",
|
1387
|
+
"description": null,
|
1388
|
+
"items": {
|
1389
|
+
"$ref": "FinancialsDetails"
|
1390
|
+
}
|
1391
|
+
},
|
1392
|
+
"purchase_delivery": {
|
1393
|
+
"type": "FinancialsDetails",
|
1394
|
+
"description": null,
|
1395
|
+
"items": {
|
1396
|
+
"$ref": "FinancialsDetails"
|
1397
|
+
}
|
1398
|
+
},
|
1399
|
+
"purchase_discount": {
|
1400
|
+
"type": "FinancialsDetails",
|
1401
|
+
"description": null,
|
1402
|
+
"items": {
|
1403
|
+
"$ref": "FinancialsDetails"
|
1404
|
+
}
|
1405
|
+
},
|
1406
|
+
"purchase_items": {
|
1407
|
+
"type": "FinancialsDetails",
|
1408
|
+
"description": null,
|
1409
|
+
"items": {
|
1410
|
+
"$ref": "FinancialsDetails"
|
1411
|
+
}
|
1412
|
+
},
|
1413
|
+
"purchase_subtotal": {
|
1414
|
+
"type": "FinancialsDetails",
|
1415
|
+
"description": null,
|
1416
|
+
"items": {
|
1417
|
+
"$ref": "FinancialsDetails"
|
1418
|
+
}
|
1419
|
+
},
|
1420
|
+
"purchase_total": {
|
1421
|
+
"type": "FinancialsDetails",
|
1422
|
+
"description": null,
|
1423
|
+
"items": {
|
1424
|
+
"$ref": "FinancialsDetails"
|
1425
|
+
}
|
1426
|
+
},
|
1427
|
+
"partner_total": {
|
1428
|
+
"type": "FinancialsDetails",
|
1429
|
+
"description": null,
|
1430
|
+
"items": {
|
1431
|
+
"$ref": "FinancialsDetails"
|
1432
|
+
}
|
1433
|
+
},
|
1434
|
+
"listing_items_discounted": {
|
1435
|
+
"type": "FinancialsDetails",
|
1436
|
+
"description": null,
|
1437
|
+
"items": {
|
1438
|
+
"$ref": "FinancialsDetails"
|
1439
|
+
}
|
1440
|
+
},
|
1441
|
+
"listing_total_with_discount": {
|
1442
|
+
"type": "FinancialsDetails",
|
1443
|
+
"description": null,
|
1444
|
+
"items": {
|
1445
|
+
"$ref": "FinancialsDetails"
|
1446
|
+
}
|
1447
|
+
},
|
1448
|
+
"manual_payments": {
|
1449
|
+
"type": "array",
|
1450
|
+
"description": null,
|
1451
|
+
"items": {
|
1452
|
+
"$ref": "ManualPayment"
|
1453
|
+
}
|
1454
|
+
}
|
1455
|
+
}
|
1456
|
+
},
|
1457
|
+
"FinancialsDetails": {
|
1458
|
+
"id": "FinancialsDetails",
|
1459
|
+
"required": [
|
1460
|
+
"vat",
|
1461
|
+
"net",
|
1462
|
+
"gross"
|
1463
|
+
],
|
1464
|
+
"properties": {
|
1465
|
+
"vat": {
|
1466
|
+
"type": "Money",
|
1467
|
+
"description": null,
|
1468
|
+
"items": {
|
1469
|
+
"$ref": "Money"
|
1470
|
+
}
|
1471
|
+
},
|
1472
|
+
"net": {
|
1473
|
+
"type": "Money",
|
1474
|
+
"description": null,
|
1475
|
+
"items": {
|
1476
|
+
"$ref": "Money"
|
1477
|
+
}
|
1478
|
+
},
|
1479
|
+
"gross": {
|
1480
|
+
"type": "Money",
|
1481
|
+
"description": null,
|
1482
|
+
"items": {
|
1483
|
+
"$ref": "Money"
|
1484
|
+
}
|
1485
|
+
}
|
1486
|
+
}
|
1487
|
+
},
|
1488
|
+
"DeliveryZone": {
|
1489
|
+
"id": "DeliveryZone",
|
1490
|
+
"required": [
|
1491
|
+
"id",
|
1492
|
+
"name"
|
1493
|
+
],
|
1494
|
+
"properties": {
|
1495
|
+
"id": {
|
1496
|
+
"type": "integer",
|
1497
|
+
"description": null
|
1498
|
+
},
|
1499
|
+
"name": {
|
1500
|
+
"type": "string",
|
1501
|
+
"description": null
|
1502
|
+
}
|
1503
|
+
}
|
1504
|
+
},
|
1505
|
+
"DeliveryService": {
|
1506
|
+
"id": "DeliveryService",
|
1507
|
+
"required": [
|
1508
|
+
"name",
|
1509
|
+
"code"
|
1510
|
+
],
|
1511
|
+
"properties": {
|
1512
|
+
"name": {
|
1513
|
+
"type": "string",
|
1514
|
+
"description": null
|
1515
|
+
},
|
1516
|
+
"code": {
|
1517
|
+
"type": "string",
|
1518
|
+
"description": null
|
1519
|
+
}
|
1520
|
+
}
|
1521
|
+
},
|
1522
|
+
"OrderDetail": {
|
1523
|
+
"id": "OrderDetail",
|
1524
|
+
"required": [
|
1525
|
+
"tracking_number",
|
1526
|
+
"parcel_tracking_url"
|
1527
|
+
],
|
1528
|
+
"properties": {
|
1529
|
+
"tracking_number": {
|
1530
|
+
"type": "string",
|
1531
|
+
"description": null
|
1532
|
+
},
|
1533
|
+
"parcel_tracking_url": {
|
1534
|
+
"type": "string",
|
1535
|
+
"description": null
|
1536
|
+
}
|
1537
|
+
}
|
1538
|
+
},
|
1539
|
+
"Currency": {
|
1540
|
+
"id": "Currency",
|
1541
|
+
"required": [
|
1542
|
+
"subunit_to_unit",
|
1543
|
+
"symbol",
|
1544
|
+
"html_entity",
|
1545
|
+
"iso_code"
|
1546
|
+
],
|
1547
|
+
"properties": {
|
1548
|
+
"subunit_to_unit": {
|
1549
|
+
"type": "integer",
|
1550
|
+
"description": null
|
1551
|
+
},
|
1552
|
+
"symbol": {
|
1553
|
+
"type": "string",
|
1554
|
+
"description": null
|
1555
|
+
},
|
1556
|
+
"html_entity": {
|
1557
|
+
"type": "string",
|
1558
|
+
"description": null
|
1559
|
+
},
|
1560
|
+
"iso_code": {
|
1561
|
+
"type": "string",
|
1562
|
+
"description": null
|
1563
|
+
}
|
1564
|
+
}
|
1565
|
+
},
|
1566
|
+
"Money": {
|
1567
|
+
"id": "Money",
|
1568
|
+
"required": [
|
1569
|
+
"cents",
|
1570
|
+
"currency"
|
1571
|
+
],
|
1572
|
+
"properties": {
|
1573
|
+
"cents": {
|
1574
|
+
"type": "integer",
|
1575
|
+
"description": null
|
1576
|
+
},
|
1577
|
+
"currency": {
|
1578
|
+
"type": "Currency",
|
1579
|
+
"description": null,
|
1580
|
+
"items": {
|
1581
|
+
"$ref": "Currency"
|
1582
|
+
}
|
1583
|
+
}
|
1584
|
+
}
|
1585
|
+
},
|
1586
|
+
"Enquiry": {
|
1587
|
+
"id": "Enquiry",
|
1588
|
+
"required": [
|
1589
|
+
"id",
|
1590
|
+
"state",
|
1591
|
+
"messages"
|
1592
|
+
],
|
1593
|
+
"properties": {
|
1594
|
+
"id": {
|
1595
|
+
"type": "integer",
|
1596
|
+
"description": null
|
1597
|
+
},
|
1598
|
+
"state": {
|
1599
|
+
"type": "string",
|
1600
|
+
"description": null
|
1601
|
+
},
|
1602
|
+
"messages": {
|
1603
|
+
"type": "array",
|
1604
|
+
"description": null,
|
1605
|
+
"items": {
|
1606
|
+
"$ref": "EnquiryMessage"
|
1607
|
+
}
|
1608
|
+
}
|
1609
|
+
}
|
1610
|
+
},
|
1611
|
+
"EnquiryMessage": {
|
1612
|
+
"id": "EnquiryMessage",
|
1613
|
+
"required": [
|
1614
|
+
"body"
|
1615
|
+
],
|
1616
|
+
"properties": {
|
1617
|
+
"body": {
|
1618
|
+
"type": "string",
|
1619
|
+
"description": null
|
1620
|
+
}
|
1621
|
+
}
|
1622
|
+
},
|
1623
|
+
"Item": {
|
1624
|
+
"id": "Item",
|
1625
|
+
"required": [
|
1626
|
+
"id",
|
1627
|
+
"item_title",
|
1628
|
+
"quantity",
|
1629
|
+
"commission_vat_rate",
|
1630
|
+
"listing_total_gross",
|
1631
|
+
"product",
|
1632
|
+
"options",
|
1633
|
+
"financials"
|
1634
|
+
],
|
1635
|
+
"properties": {
|
1636
|
+
"id": {
|
1637
|
+
"type": "integer",
|
1638
|
+
"description": null
|
1639
|
+
},
|
1640
|
+
"item_title": {
|
1641
|
+
"type": "string",
|
1642
|
+
"description": null
|
1643
|
+
},
|
1644
|
+
"quantity": {
|
1645
|
+
"type": "integer",
|
1646
|
+
"description": null
|
1647
|
+
},
|
1648
|
+
"commission_vat_rate": {
|
1649
|
+
"type": "string",
|
1650
|
+
"description": null
|
1651
|
+
},
|
1652
|
+
"listing_total_gross": {
|
1653
|
+
"type": "Money",
|
1654
|
+
"description": null,
|
1655
|
+
"items": {
|
1656
|
+
"$ref": "Money"
|
1657
|
+
}
|
1658
|
+
},
|
1659
|
+
"product": {
|
1660
|
+
"type": "Product",
|
1661
|
+
"description": null,
|
1662
|
+
"items": {
|
1663
|
+
"$ref": "Product"
|
1664
|
+
}
|
1665
|
+
},
|
1666
|
+
"options": {
|
1667
|
+
"type": "array",
|
1668
|
+
"description": null,
|
1669
|
+
"items": {
|
1670
|
+
"$ref": "ProductOption"
|
1671
|
+
}
|
1672
|
+
},
|
1673
|
+
"financials": {
|
1674
|
+
"type": "ItemFinancials",
|
1675
|
+
"description": null,
|
1676
|
+
"items": {
|
1677
|
+
"$ref": "ItemFinancials"
|
1678
|
+
}
|
1679
|
+
}
|
1680
|
+
}
|
1681
|
+
},
|
1682
|
+
"ItemFinancials": {
|
1683
|
+
"id": "ItemFinancials",
|
1684
|
+
"required": [
|
1685
|
+
"commission_rate",
|
1686
|
+
"commission_vat_rate",
|
1687
|
+
"commission",
|
1688
|
+
"listing_price",
|
1689
|
+
"listing_total",
|
1690
|
+
"listing_discounted_price"
|
1691
|
+
],
|
1692
|
+
"properties": {
|
1693
|
+
"commission_rate": {
|
1694
|
+
"type": "integer",
|
1695
|
+
"description": null
|
1696
|
+
},
|
1697
|
+
"commission_vat_rate": {
|
1698
|
+
"type": "integer",
|
1699
|
+
"description": null
|
1700
|
+
},
|
1701
|
+
"commission": {
|
1702
|
+
"type": "FinancialsDetails",
|
1703
|
+
"description": null,
|
1704
|
+
"items": {
|
1705
|
+
"$ref": "FinancialsDetails"
|
1706
|
+
}
|
1707
|
+
},
|
1708
|
+
"listing_price": {
|
1709
|
+
"type": "FinancialsDetails",
|
1710
|
+
"description": null,
|
1711
|
+
"items": {
|
1712
|
+
"$ref": "FinancialsDetails"
|
1713
|
+
}
|
1714
|
+
},
|
1715
|
+
"listing_total": {
|
1716
|
+
"type": "FinancialsDetails",
|
1717
|
+
"description": null,
|
1718
|
+
"items": {
|
1719
|
+
"$ref": "FinancialsDetails"
|
1720
|
+
}
|
1721
|
+
},
|
1722
|
+
"listing_discounted_price": {
|
1723
|
+
"type": "FinancialsDetails",
|
1724
|
+
"description": null,
|
1725
|
+
"items": {
|
1726
|
+
"$ref": "FinancialsDetails"
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
}
|
1730
|
+
},
|
1731
|
+
"ProductOption": {
|
1732
|
+
"id": "ProductOption",
|
1733
|
+
"required": [
|
1734
|
+
"name",
|
1735
|
+
"value"
|
1736
|
+
],
|
1737
|
+
"properties": {
|
1738
|
+
"name": {
|
1739
|
+
"type": "string",
|
1740
|
+
"description": null
|
1741
|
+
},
|
1742
|
+
"value": {
|
1743
|
+
"type": "string",
|
1744
|
+
"description": null
|
1745
|
+
}
|
1746
|
+
}
|
1747
|
+
},
|
1748
|
+
"Product": {
|
1749
|
+
"id": "Product",
|
1750
|
+
"required": [
|
1751
|
+
"id",
|
1752
|
+
"sku",
|
1753
|
+
"title",
|
1754
|
+
"personalisable",
|
1755
|
+
"image"
|
1756
|
+
],
|
1757
|
+
"properties": {
|
1758
|
+
"id": {
|
1759
|
+
"type": "integer",
|
1760
|
+
"description": null
|
1761
|
+
},
|
1762
|
+
"sku": {
|
1763
|
+
"type": "string",
|
1764
|
+
"description": null
|
1765
|
+
},
|
1766
|
+
"title": {
|
1767
|
+
"type": "string",
|
1768
|
+
"description": null
|
1769
|
+
},
|
1770
|
+
"personalisable": {
|
1771
|
+
"type": "boolean",
|
1772
|
+
"description": null
|
1773
|
+
},
|
1774
|
+
"image": {
|
1775
|
+
"type": "ImageUrl",
|
1776
|
+
"description": null,
|
1777
|
+
"items": {
|
1778
|
+
"$ref": "ImageUrl"
|
1779
|
+
}
|
1780
|
+
}
|
1781
|
+
}
|
1782
|
+
},
|
1783
|
+
"ImageUrl": {
|
1784
|
+
"id": "ImageUrl",
|
1785
|
+
"required": [
|
1786
|
+
"micro_url",
|
1787
|
+
"mini_url",
|
1788
|
+
"thumb_url",
|
1789
|
+
"medium_url",
|
1790
|
+
"preview_url",
|
1791
|
+
"normal_url"
|
1792
|
+
],
|
1793
|
+
"properties": {
|
1794
|
+
"micro_url": {
|
1795
|
+
"type": "string",
|
1796
|
+
"description": null
|
1797
|
+
},
|
1798
|
+
"mini_url": {
|
1799
|
+
"type": "string",
|
1800
|
+
"description": null
|
1801
|
+
},
|
1802
|
+
"thumb_url": {
|
1803
|
+
"type": "string",
|
1804
|
+
"description": null
|
1805
|
+
},
|
1806
|
+
"medium_url": {
|
1807
|
+
"type": "string",
|
1808
|
+
"description": null
|
1809
|
+
},
|
1810
|
+
"preview_url": {
|
1811
|
+
"type": "string",
|
1812
|
+
"description": null
|
1813
|
+
},
|
1814
|
+
"normal_url": {
|
1815
|
+
"type": "string",
|
1816
|
+
"description": null
|
1817
|
+
}
|
1818
|
+
}
|
1819
|
+
},
|
1820
|
+
"OrderIndex": {
|
1821
|
+
"id": "OrderIndex",
|
1822
|
+
"required": [
|
1823
|
+
"query",
|
1824
|
+
"data",
|
1825
|
+
"links"
|
1826
|
+
],
|
1827
|
+
"properties": {
|
1828
|
+
"query": {
|
1829
|
+
"type": "SearchResultMeta",
|
1830
|
+
"description": null,
|
1831
|
+
"items": {
|
1832
|
+
"$ref": "SearchResultMeta"
|
1833
|
+
}
|
1834
|
+
},
|
1835
|
+
"data": {
|
1836
|
+
"type": "array",
|
1837
|
+
"description": null,
|
1838
|
+
"items": {
|
1839
|
+
"$ref": "Order"
|
1840
|
+
}
|
1841
|
+
},
|
1842
|
+
"links": {
|
1843
|
+
"type": "array",
|
1844
|
+
"description": null,
|
1845
|
+
"items": {
|
1846
|
+
"$ref": "Link"
|
1847
|
+
}
|
1848
|
+
}
|
1849
|
+
}
|
1850
|
+
},
|
1851
|
+
"SearchResultMeta": {
|
1852
|
+
"id": "SearchResultMeta",
|
1853
|
+
"required": [
|
1854
|
+
"results",
|
1855
|
+
"total"
|
1856
|
+
],
|
1857
|
+
"properties": {
|
1858
|
+
"results": {
|
1859
|
+
"type": "integer",
|
1860
|
+
"description": null
|
1861
|
+
},
|
1862
|
+
"total": {
|
1863
|
+
"type": "integer",
|
1864
|
+
"description": null
|
1865
|
+
}
|
1866
|
+
}
|
1867
|
+
},
|
1868
|
+
"Link": {
|
1869
|
+
"id": "Link",
|
1870
|
+
"required": [
|
1871
|
+
"rel",
|
1872
|
+
"method",
|
1873
|
+
"href"
|
1874
|
+
],
|
1875
|
+
"properties": {
|
1876
|
+
"rel": {
|
1877
|
+
"type": "string",
|
1878
|
+
"description": "a unique reference for an action or relation on this object"
|
1879
|
+
},
|
1880
|
+
"method": {
|
1881
|
+
"type": "string",
|
1882
|
+
"description": null
|
1883
|
+
},
|
1884
|
+
"href": {
|
1885
|
+
"type": "string",
|
1886
|
+
"description": null
|
1887
|
+
}
|
1888
|
+
}
|
1889
|
+
},
|
1890
|
+
"User": {
|
1891
|
+
"id": "User",
|
1892
|
+
"required": [
|
1893
|
+
"name",
|
1894
|
+
"telephone",
|
1895
|
+
"telephone_country_code"
|
1896
|
+
],
|
1897
|
+
"properties": {
|
1898
|
+
"name": {
|
1899
|
+
"type": "string",
|
1900
|
+
"description": null
|
1901
|
+
},
|
1902
|
+
"telephone": {
|
1903
|
+
"type": "string",
|
1904
|
+
"description": null
|
1905
|
+
},
|
1906
|
+
"telephone_country_code": {
|
1907
|
+
"type": "string",
|
1908
|
+
"description": null
|
1909
|
+
}
|
1910
|
+
}
|
1911
|
+
},
|
1912
|
+
"AcceptanceBulkModel": {
|
1913
|
+
"id": "AcceptanceBulkModel",
|
1914
|
+
"required": [
|
1915
|
+
"id",
|
1916
|
+
"estimated_delivery_date",
|
1917
|
+
"estimated_dispatch_at"
|
1918
|
+
],
|
1919
|
+
"properties": {
|
1920
|
+
"id": {
|
1921
|
+
"type": "integer",
|
1922
|
+
"description": "Order Id"
|
1923
|
+
},
|
1924
|
+
"estimated_delivery_date": {
|
1925
|
+
"type": "date",
|
1926
|
+
"description": "'yyyy-mm-dd'",
|
1927
|
+
"required": "required"
|
1928
|
+
},
|
1929
|
+
"estimated_dispatch_at": {
|
1930
|
+
"type": "date",
|
1931
|
+
"description": "'yyyy-mm-dd'",
|
1932
|
+
"required": "required"
|
1933
|
+
},
|
1934
|
+
"confirmation_note": {
|
1935
|
+
"type": "string",
|
1936
|
+
"description": null
|
1937
|
+
}
|
1938
|
+
}
|
1939
|
+
},
|
1940
|
+
"DeclineBulkModel": {
|
1941
|
+
"id": "DeclineBulkModel",
|
1942
|
+
"required": [
|
1943
|
+
"id",
|
1944
|
+
"decline_reason"
|
1945
|
+
],
|
1946
|
+
"properties": {
|
1947
|
+
"id": {
|
1948
|
+
"type": "integer",
|
1949
|
+
"description": "Order Id"
|
1950
|
+
},
|
1951
|
+
"decline_reason": {
|
1952
|
+
"type": "string",
|
1953
|
+
"description": null,
|
1954
|
+
"required": "required"
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
},
|
1958
|
+
"DispatchBulkModel": {
|
1959
|
+
"id": "DispatchBulkModel",
|
1960
|
+
"required": [
|
1961
|
+
"id",
|
1962
|
+
"estimated_delivery_date"
|
1963
|
+
],
|
1964
|
+
"properties": {
|
1965
|
+
"id": {
|
1966
|
+
"type": "integer",
|
1967
|
+
"description": "Order Id"
|
1968
|
+
},
|
1969
|
+
"estimated_delivery_date": {
|
1970
|
+
"type": "date",
|
1971
|
+
"description": "'yyyy-mm-dd'",
|
1972
|
+
"required": "required"
|
1973
|
+
},
|
1974
|
+
"resolve_enquiry": {
|
1975
|
+
"type": "boolean",
|
1976
|
+
"description": null
|
1977
|
+
},
|
1978
|
+
"tracking_number": {
|
1979
|
+
"type": "string",
|
1980
|
+
"description": null
|
1981
|
+
},
|
1982
|
+
"parcel_tracking_url": {
|
1983
|
+
"type": "string",
|
1984
|
+
"description": null
|
1985
|
+
}
|
1986
|
+
}
|
1987
|
+
},
|
1988
|
+
"DispatchNotesBulkModel": {
|
1989
|
+
"id": "DispatchNotesBulkModel",
|
1990
|
+
"required": [
|
1991
|
+
"id"
|
1992
|
+
],
|
1993
|
+
"properties": {
|
1994
|
+
"id": {
|
1995
|
+
"type": "integer",
|
1996
|
+
"description": "Order Id"
|
1997
|
+
}
|
1998
|
+
}
|
1999
|
+
},
|
2000
|
+
"OrderDetailsBulkModel": {
|
2001
|
+
"id": "OrderDetailsBulkModel",
|
2002
|
+
"required": [
|
2003
|
+
"id"
|
2004
|
+
],
|
2005
|
+
"properties": {
|
2006
|
+
"id": {
|
2007
|
+
"type": "integer",
|
2008
|
+
"description": "Order Id"
|
2009
|
+
}
|
2010
|
+
}
|
2011
|
+
}
|
2012
|
+
}
|
2013
|
+
}
|