repzo 1.0.163 → 1.0.165
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.
- package/docs/generated/cart-bundled.yaml +1338 -0
- package/docs/generated/cart.html +2312 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +32 -0
- package/lib/types/index.d.ts +194 -0
- package/package.json +1 -1
- package/src/index.ts +77 -0
- package/src/oas/cart.yaml +1338 -0
- package/src/oas/workorder-agenda.yaml +260 -0
- package/src/types/index.ts +209 -0
|
@@ -0,0 +1,1338 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Cart
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Cart endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/cart:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find carts
|
|
12
|
+
operationId: findCarts
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
properties:
|
|
19
|
+
client_id:
|
|
20
|
+
type: string
|
|
21
|
+
description: Client ID filter
|
|
22
|
+
type:
|
|
23
|
+
type: string
|
|
24
|
+
enum: [invoice, proforma]
|
|
25
|
+
description: Cart type filter
|
|
26
|
+
per_page:
|
|
27
|
+
type: number
|
|
28
|
+
description: Number of carts per page
|
|
29
|
+
page:
|
|
30
|
+
type: number
|
|
31
|
+
description: Page number
|
|
32
|
+
from__id:
|
|
33
|
+
type: string
|
|
34
|
+
description: Start from this cart ID
|
|
35
|
+
to__id:
|
|
36
|
+
type: string
|
|
37
|
+
description: End at this cart ID
|
|
38
|
+
description: Query parameters for filtering carts
|
|
39
|
+
responses:
|
|
40
|
+
"200":
|
|
41
|
+
description: A list of carts
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: "#/components/schemas/CartFindResult"
|
|
46
|
+
post:
|
|
47
|
+
summary: Create a cart
|
|
48
|
+
operationId: createCart
|
|
49
|
+
requestBody:
|
|
50
|
+
required: true
|
|
51
|
+
content:
|
|
52
|
+
application/json:
|
|
53
|
+
schema:
|
|
54
|
+
$ref: "#/components/schemas/CartCreateBody"
|
|
55
|
+
responses:
|
|
56
|
+
"201":
|
|
57
|
+
description: Cart created
|
|
58
|
+
content:
|
|
59
|
+
application/json:
|
|
60
|
+
schema:
|
|
61
|
+
$ref: "#/components/schemas/CartCreateResult"
|
|
62
|
+
/cart/{id}:
|
|
63
|
+
get:
|
|
64
|
+
summary: Get a cart by ID
|
|
65
|
+
operationId: getCart
|
|
66
|
+
parameters:
|
|
67
|
+
- in: path
|
|
68
|
+
name: id
|
|
69
|
+
required: true
|
|
70
|
+
schema:
|
|
71
|
+
type: string
|
|
72
|
+
responses:
|
|
73
|
+
"200":
|
|
74
|
+
description: Cart details
|
|
75
|
+
content:
|
|
76
|
+
application/json:
|
|
77
|
+
schema:
|
|
78
|
+
$ref: "#/components/schemas/CartGetResult"
|
|
79
|
+
|
|
80
|
+
components:
|
|
81
|
+
schemas:
|
|
82
|
+
CartFindResult:
|
|
83
|
+
type: object
|
|
84
|
+
description: Result of finding carts
|
|
85
|
+
properties:
|
|
86
|
+
data:
|
|
87
|
+
type: array
|
|
88
|
+
items:
|
|
89
|
+
$ref: "#/components/schemas/CartData"
|
|
90
|
+
total_result:
|
|
91
|
+
type: number
|
|
92
|
+
description: Total number of carts
|
|
93
|
+
current_count:
|
|
94
|
+
type: number
|
|
95
|
+
description: Count of carts in current page
|
|
96
|
+
total_pages:
|
|
97
|
+
type: number
|
|
98
|
+
description: Total number of pages
|
|
99
|
+
current_page:
|
|
100
|
+
type: number
|
|
101
|
+
description: Current page number
|
|
102
|
+
per_page:
|
|
103
|
+
type: number
|
|
104
|
+
description: Number of carts per page
|
|
105
|
+
first_page_url:
|
|
106
|
+
type: string
|
|
107
|
+
description: URL for the first page
|
|
108
|
+
last_page_url:
|
|
109
|
+
type: string
|
|
110
|
+
description: URL for the last page
|
|
111
|
+
next_page_url:
|
|
112
|
+
type: string
|
|
113
|
+
description: URL for the next page
|
|
114
|
+
prev_page_url:
|
|
115
|
+
type: string
|
|
116
|
+
description: URL for the previous page
|
|
117
|
+
path:
|
|
118
|
+
type: string
|
|
119
|
+
description: Base URL path
|
|
120
|
+
|
|
121
|
+
CartData:
|
|
122
|
+
type: object
|
|
123
|
+
description: Cart data schema
|
|
124
|
+
properties:
|
|
125
|
+
_id:
|
|
126
|
+
type: string
|
|
127
|
+
description: Cart ID
|
|
128
|
+
type:
|
|
129
|
+
type: string
|
|
130
|
+
enum: [invoice, proforma]
|
|
131
|
+
description: Cart type
|
|
132
|
+
processable:
|
|
133
|
+
type: boolean
|
|
134
|
+
description: Whether the cart is processable
|
|
135
|
+
failure_reasons:
|
|
136
|
+
type: array
|
|
137
|
+
items:
|
|
138
|
+
type: string
|
|
139
|
+
description: List of failure reasons
|
|
140
|
+
external_serial_number:
|
|
141
|
+
type: string
|
|
142
|
+
description: External serial number
|
|
143
|
+
qr_code_tlv:
|
|
144
|
+
type: string
|
|
145
|
+
description: QR code TLV
|
|
146
|
+
skip_promos:
|
|
147
|
+
type: boolean
|
|
148
|
+
description: Skip promotions flag
|
|
149
|
+
skipped_promotions:
|
|
150
|
+
type: array
|
|
151
|
+
items:
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
_id:
|
|
155
|
+
type: string
|
|
156
|
+
name:
|
|
157
|
+
type: string
|
|
158
|
+
ref:
|
|
159
|
+
type: string
|
|
160
|
+
description: List of skipped promotions
|
|
161
|
+
client_id:
|
|
162
|
+
type: string
|
|
163
|
+
description: Client ID
|
|
164
|
+
client_name:
|
|
165
|
+
type: string
|
|
166
|
+
description: Client name
|
|
167
|
+
comment:
|
|
168
|
+
type: string
|
|
169
|
+
description: Cart comment
|
|
170
|
+
return_comment:
|
|
171
|
+
type: string
|
|
172
|
+
description: Return comment
|
|
173
|
+
creator:
|
|
174
|
+
type: object
|
|
175
|
+
properties:
|
|
176
|
+
_id:
|
|
177
|
+
type: string
|
|
178
|
+
type:
|
|
179
|
+
type: string
|
|
180
|
+
enum: [rep, client, admin]
|
|
181
|
+
rep:
|
|
182
|
+
type: string
|
|
183
|
+
admin:
|
|
184
|
+
type: string
|
|
185
|
+
client:
|
|
186
|
+
type: string
|
|
187
|
+
name:
|
|
188
|
+
type: string
|
|
189
|
+
description: Cart creator
|
|
190
|
+
implemented_by:
|
|
191
|
+
type: object
|
|
192
|
+
properties:
|
|
193
|
+
_id:
|
|
194
|
+
type: string
|
|
195
|
+
type:
|
|
196
|
+
type: string
|
|
197
|
+
enum: [rep, client, admin]
|
|
198
|
+
rep:
|
|
199
|
+
type: string
|
|
200
|
+
admin:
|
|
201
|
+
type: string
|
|
202
|
+
client:
|
|
203
|
+
type: string
|
|
204
|
+
name:
|
|
205
|
+
type: string
|
|
206
|
+
description: Cart implementer
|
|
207
|
+
latest:
|
|
208
|
+
type: boolean
|
|
209
|
+
description: Latest version flag
|
|
210
|
+
version:
|
|
211
|
+
type: number
|
|
212
|
+
description: Cart version
|
|
213
|
+
time:
|
|
214
|
+
type: number
|
|
215
|
+
description: Cart timestamp
|
|
216
|
+
issue_date:
|
|
217
|
+
type: string
|
|
218
|
+
format: date
|
|
219
|
+
description: Issue date
|
|
220
|
+
delivery_date:
|
|
221
|
+
type: string
|
|
222
|
+
format: date
|
|
223
|
+
description: Delivery date
|
|
224
|
+
currency:
|
|
225
|
+
type: string
|
|
226
|
+
description: Currency code
|
|
227
|
+
serial_number:
|
|
228
|
+
type: object
|
|
229
|
+
properties:
|
|
230
|
+
formatted:
|
|
231
|
+
type: string
|
|
232
|
+
counter:
|
|
233
|
+
type: number
|
|
234
|
+
description: Serial number
|
|
235
|
+
geo_tag:
|
|
236
|
+
type: object
|
|
237
|
+
properties:
|
|
238
|
+
type:
|
|
239
|
+
type: string
|
|
240
|
+
enum: [Point]
|
|
241
|
+
coordinates:
|
|
242
|
+
type: array
|
|
243
|
+
items:
|
|
244
|
+
type: number
|
|
245
|
+
description: Geographic location
|
|
246
|
+
sync_id:
|
|
247
|
+
type: string
|
|
248
|
+
description: Sync ID
|
|
249
|
+
address:
|
|
250
|
+
type: object
|
|
251
|
+
additionalProperties: true
|
|
252
|
+
description: Address information
|
|
253
|
+
company_namespace:
|
|
254
|
+
type: array
|
|
255
|
+
items:
|
|
256
|
+
type: string
|
|
257
|
+
description: Company namespaces
|
|
258
|
+
promotions:
|
|
259
|
+
type: array
|
|
260
|
+
items:
|
|
261
|
+
type: object
|
|
262
|
+
description: Applied promotions
|
|
263
|
+
priceLists:
|
|
264
|
+
type: array
|
|
265
|
+
items:
|
|
266
|
+
type: object
|
|
267
|
+
description: Price lists
|
|
268
|
+
visit_id:
|
|
269
|
+
type: string
|
|
270
|
+
description: Visit ID
|
|
271
|
+
teams:
|
|
272
|
+
type: array
|
|
273
|
+
items:
|
|
274
|
+
type: string
|
|
275
|
+
description: Team IDs
|
|
276
|
+
converter:
|
|
277
|
+
type: object
|
|
278
|
+
properties:
|
|
279
|
+
_id:
|
|
280
|
+
type: string
|
|
281
|
+
type:
|
|
282
|
+
type: string
|
|
283
|
+
enum: [rep, client, admin]
|
|
284
|
+
rep:
|
|
285
|
+
type: string
|
|
286
|
+
admin:
|
|
287
|
+
type: string
|
|
288
|
+
client:
|
|
289
|
+
type: string
|
|
290
|
+
name:
|
|
291
|
+
type: string
|
|
292
|
+
description: Cart converter
|
|
293
|
+
converted_proforma_serial_number:
|
|
294
|
+
type: object
|
|
295
|
+
properties:
|
|
296
|
+
formatted:
|
|
297
|
+
type: string
|
|
298
|
+
counter:
|
|
299
|
+
type: number
|
|
300
|
+
description: Converted proforma serial number
|
|
301
|
+
converted_proforma_return_serial_number:
|
|
302
|
+
type: object
|
|
303
|
+
properties:
|
|
304
|
+
formatted:
|
|
305
|
+
type: string
|
|
306
|
+
counter:
|
|
307
|
+
type: number
|
|
308
|
+
description: Converted proforma return serial number
|
|
309
|
+
proforma_reference:
|
|
310
|
+
type: string
|
|
311
|
+
description: Proforma reference
|
|
312
|
+
converted_at:
|
|
313
|
+
type: number
|
|
314
|
+
description: Conversion timestamp
|
|
315
|
+
exclude_return_items:
|
|
316
|
+
type: boolean
|
|
317
|
+
description: Exclude return items flag
|
|
318
|
+
returned_from:
|
|
319
|
+
type: string
|
|
320
|
+
description: Returned from
|
|
321
|
+
returned_to:
|
|
322
|
+
type: string
|
|
323
|
+
description: Returned to
|
|
324
|
+
returned_from_serial_number:
|
|
325
|
+
type: object
|
|
326
|
+
properties:
|
|
327
|
+
formatted:
|
|
328
|
+
type: string
|
|
329
|
+
counter:
|
|
330
|
+
type: number
|
|
331
|
+
description: Returned from serial number
|
|
332
|
+
returned_to_serial_number:
|
|
333
|
+
type: object
|
|
334
|
+
properties:
|
|
335
|
+
formatted:
|
|
336
|
+
type: string
|
|
337
|
+
counter:
|
|
338
|
+
type: number
|
|
339
|
+
description: Returned to serial number
|
|
340
|
+
partiall_returned_from:
|
|
341
|
+
type: string
|
|
342
|
+
description: Partially returned from
|
|
343
|
+
partiall_returned_from_serial_number:
|
|
344
|
+
type: object
|
|
345
|
+
properties:
|
|
346
|
+
formatted:
|
|
347
|
+
type: string
|
|
348
|
+
counter:
|
|
349
|
+
type: number
|
|
350
|
+
description: Partially returned from serial number
|
|
351
|
+
due_date:
|
|
352
|
+
type: string
|
|
353
|
+
format: date
|
|
354
|
+
description: Due date
|
|
355
|
+
return_serial_number:
|
|
356
|
+
type: object
|
|
357
|
+
properties:
|
|
358
|
+
formatted:
|
|
359
|
+
type: string
|
|
360
|
+
counter:
|
|
361
|
+
type: number
|
|
362
|
+
description: Return serial number
|
|
363
|
+
origin_warehouse:
|
|
364
|
+
type: string
|
|
365
|
+
description: Origin warehouse
|
|
366
|
+
msl_sales:
|
|
367
|
+
type: string
|
|
368
|
+
description: MSL sales
|
|
369
|
+
route:
|
|
370
|
+
type: string
|
|
371
|
+
description: Route
|
|
372
|
+
paymentsData:
|
|
373
|
+
type: object
|
|
374
|
+
properties:
|
|
375
|
+
invoice_value:
|
|
376
|
+
type: number
|
|
377
|
+
paid:
|
|
378
|
+
type: number
|
|
379
|
+
balance:
|
|
380
|
+
type: number
|
|
381
|
+
payments:
|
|
382
|
+
type: array
|
|
383
|
+
items:
|
|
384
|
+
type: object
|
|
385
|
+
properties:
|
|
386
|
+
payment_serial_number:
|
|
387
|
+
type: object
|
|
388
|
+
properties:
|
|
389
|
+
formatted:
|
|
390
|
+
type: string
|
|
391
|
+
counter:
|
|
392
|
+
type: number
|
|
393
|
+
payment_id:
|
|
394
|
+
type: string
|
|
395
|
+
invoice_serial_number:
|
|
396
|
+
type: object
|
|
397
|
+
properties:
|
|
398
|
+
formatted:
|
|
399
|
+
type: string
|
|
400
|
+
counter:
|
|
401
|
+
type: number
|
|
402
|
+
return_serial_number:
|
|
403
|
+
type: object
|
|
404
|
+
properties:
|
|
405
|
+
formatted:
|
|
406
|
+
type: string
|
|
407
|
+
counter:
|
|
408
|
+
type: number
|
|
409
|
+
fullinvoice_id:
|
|
410
|
+
type: string
|
|
411
|
+
view_serial_number:
|
|
412
|
+
type: object
|
|
413
|
+
properties:
|
|
414
|
+
formatted:
|
|
415
|
+
type: string
|
|
416
|
+
counter:
|
|
417
|
+
type: number
|
|
418
|
+
type:
|
|
419
|
+
type: string
|
|
420
|
+
enum: [invoice, payment, return_invoice]
|
|
421
|
+
amount:
|
|
422
|
+
type: number
|
|
423
|
+
description: Payment data
|
|
424
|
+
consumption:
|
|
425
|
+
type: object
|
|
426
|
+
properties:
|
|
427
|
+
status:
|
|
428
|
+
type: string
|
|
429
|
+
enum: [consumed, unconsumed, partially_consumed]
|
|
430
|
+
remainder:
|
|
431
|
+
type: number
|
|
432
|
+
description: Consumption data
|
|
433
|
+
subtotal:
|
|
434
|
+
type: number
|
|
435
|
+
description: Subtotal
|
|
436
|
+
discount_amount:
|
|
437
|
+
type: number
|
|
438
|
+
description: Discount amount
|
|
439
|
+
discount_amount_float:
|
|
440
|
+
type: number
|
|
441
|
+
description: Discount amount float
|
|
442
|
+
taxable_subtotal:
|
|
443
|
+
type: number
|
|
444
|
+
description: Taxable subtotal
|
|
445
|
+
net_total:
|
|
446
|
+
type: number
|
|
447
|
+
description: Net total
|
|
448
|
+
tax_amount:
|
|
449
|
+
type: number
|
|
450
|
+
description: Tax amount
|
|
451
|
+
tax_amount_after_deduction_float:
|
|
452
|
+
type: number
|
|
453
|
+
description: Tax amount after deduction float
|
|
454
|
+
tax_amount_after_deduction_float_rounded_sum:
|
|
455
|
+
type: number
|
|
456
|
+
description: Tax amount after deduction float rounded sum
|
|
457
|
+
tax_amount_after_deduction_float_rounded:
|
|
458
|
+
type: number
|
|
459
|
+
description: Tax amount after deduction float rounded
|
|
460
|
+
total:
|
|
461
|
+
type: number
|
|
462
|
+
description: Total amount
|
|
463
|
+
total_float:
|
|
464
|
+
type: number
|
|
465
|
+
description: Total float
|
|
466
|
+
total_float_rounded:
|
|
467
|
+
type: number
|
|
468
|
+
description: Total float rounded
|
|
469
|
+
total_float_rounded_sum:
|
|
470
|
+
type: number
|
|
471
|
+
description: Total float rounded sum
|
|
472
|
+
total_before_tax:
|
|
473
|
+
type: number
|
|
474
|
+
description: Total before tax
|
|
475
|
+
taxable_amount_float:
|
|
476
|
+
type: number
|
|
477
|
+
description: Taxable amount float
|
|
478
|
+
taxable_amount_float_rounded_sum:
|
|
479
|
+
type: number
|
|
480
|
+
description: Taxable amount float rounded sum
|
|
481
|
+
taxable_amount_float_rounded:
|
|
482
|
+
type: number
|
|
483
|
+
description: Taxable amount float rounded
|
|
484
|
+
pre_subtotal:
|
|
485
|
+
type: number
|
|
486
|
+
description: Pre-subtotal
|
|
487
|
+
pre_discount_amount:
|
|
488
|
+
type: number
|
|
489
|
+
description: Pre-discount amount
|
|
490
|
+
pre_discount_amount_float:
|
|
491
|
+
type: number
|
|
492
|
+
description: Pre-discount amount float
|
|
493
|
+
pre_taxable_subtotal:
|
|
494
|
+
type: number
|
|
495
|
+
description: Pre-taxable subtotal
|
|
496
|
+
pre_net_total:
|
|
497
|
+
type: number
|
|
498
|
+
description: Pre-net total
|
|
499
|
+
pre_tax_amount:
|
|
500
|
+
type: number
|
|
501
|
+
description: Pre-tax amount
|
|
502
|
+
pre_tax_amount_after_deduction_float:
|
|
503
|
+
type: number
|
|
504
|
+
description: Pre-tax amount after deduction float
|
|
505
|
+
pre_tax_amount_after_deduction_float_rounded:
|
|
506
|
+
type: number
|
|
507
|
+
description: Pre-tax amount after deduction float rounded
|
|
508
|
+
pre_tax_amount_after_deduction_float_rounded_sum:
|
|
509
|
+
type: number
|
|
510
|
+
description: Pre-tax amount after deduction float rounded sum
|
|
511
|
+
pre_total:
|
|
512
|
+
type: number
|
|
513
|
+
description: Pre-total
|
|
514
|
+
pre_total_float:
|
|
515
|
+
type: number
|
|
516
|
+
description: Pre-total float
|
|
517
|
+
pre_total_float_rounded:
|
|
518
|
+
type: number
|
|
519
|
+
description: Pre-total float rounded
|
|
520
|
+
pre_total_float_rounded_sum:
|
|
521
|
+
type: number
|
|
522
|
+
description: Pre-total float rounded sum
|
|
523
|
+
pre_total_before_tax:
|
|
524
|
+
type: number
|
|
525
|
+
description: Pre-total before tax
|
|
526
|
+
pre_taxable_amount_float:
|
|
527
|
+
type: number
|
|
528
|
+
description: Pre-taxable amount float
|
|
529
|
+
pre_taxable_amount_float_rounded:
|
|
530
|
+
type: number
|
|
531
|
+
description: Pre-taxable amount float rounded
|
|
532
|
+
pre_taxable_amount_float_rounded_sum:
|
|
533
|
+
type: number
|
|
534
|
+
description: Pre-taxable amount float rounded sum
|
|
535
|
+
return_subtotal:
|
|
536
|
+
type: number
|
|
537
|
+
description: Return subtotal
|
|
538
|
+
return_discount_amount:
|
|
539
|
+
type: number
|
|
540
|
+
description: Return discount amount
|
|
541
|
+
return_discount_amount_float:
|
|
542
|
+
type: number
|
|
543
|
+
description: Return discount amount float
|
|
544
|
+
return_taxable_subtotal:
|
|
545
|
+
type: number
|
|
546
|
+
description: Return taxable subtotal
|
|
547
|
+
return_net_total:
|
|
548
|
+
type: number
|
|
549
|
+
description: Return net total
|
|
550
|
+
return_tax_amount:
|
|
551
|
+
type: number
|
|
552
|
+
description: Return tax amount
|
|
553
|
+
return_tax_amount_after_deduction_float:
|
|
554
|
+
type: number
|
|
555
|
+
description: Return tax amount after deduction float
|
|
556
|
+
return_tax_amount_after_deduction_float_rounded:
|
|
557
|
+
type: number
|
|
558
|
+
description: Return tax amount after deduction float rounded
|
|
559
|
+
return_tax_amount_after_deduction_float_rounded_sum:
|
|
560
|
+
type: number
|
|
561
|
+
description: Return tax amount after deduction float rounded sum
|
|
562
|
+
return_total:
|
|
563
|
+
type: number
|
|
564
|
+
description: Return total
|
|
565
|
+
return_total_float:
|
|
566
|
+
type: number
|
|
567
|
+
description: Return total float
|
|
568
|
+
return_total_float_rounded:
|
|
569
|
+
type: number
|
|
570
|
+
description: Return total float rounded
|
|
571
|
+
return_total_float_rounded_sum:
|
|
572
|
+
type: number
|
|
573
|
+
description: Return total float rounded sum
|
|
574
|
+
return_total_before_tax:
|
|
575
|
+
type: number
|
|
576
|
+
description: Return total before tax
|
|
577
|
+
return_taxable_amount_float:
|
|
578
|
+
type: number
|
|
579
|
+
description: Return taxable amount float
|
|
580
|
+
return_taxable_amount_float_rounded:
|
|
581
|
+
type: number
|
|
582
|
+
description: Return taxable amount float rounded
|
|
583
|
+
return_taxable_amount_float_rounded_sum:
|
|
584
|
+
type: number
|
|
585
|
+
description: Return taxable amount float rounded sum
|
|
586
|
+
deductionRatio:
|
|
587
|
+
type: number
|
|
588
|
+
description: Deduction ratio
|
|
589
|
+
deductionFixed:
|
|
590
|
+
type: number
|
|
591
|
+
description: Fixed deduction
|
|
592
|
+
totalDeductedTax:
|
|
593
|
+
type: number
|
|
594
|
+
description: Total deducted tax
|
|
595
|
+
totalDeductedTaxFloat:
|
|
596
|
+
type: number
|
|
597
|
+
description: Total deducted tax float
|
|
598
|
+
totalDeduction:
|
|
599
|
+
type: number
|
|
600
|
+
description: Total deduction
|
|
601
|
+
totalDeductionFloat:
|
|
602
|
+
type: number
|
|
603
|
+
description: Total deduction float
|
|
604
|
+
totalDeductionBeforeTax:
|
|
605
|
+
type: number
|
|
606
|
+
description: Total deduction before tax
|
|
607
|
+
totalDeductionBeforeTaxFloat:
|
|
608
|
+
type: number
|
|
609
|
+
description: Total deduction before tax float
|
|
610
|
+
totalAfterDeduction:
|
|
611
|
+
type: number
|
|
612
|
+
description: Total after deduction
|
|
613
|
+
totalAfterDeductionFloat:
|
|
614
|
+
type: number
|
|
615
|
+
description: Total after deduction float
|
|
616
|
+
lines_discount:
|
|
617
|
+
type: number
|
|
618
|
+
description: Lines discount
|
|
619
|
+
lines_discount_float:
|
|
620
|
+
type: number
|
|
621
|
+
description: Lines discount float
|
|
622
|
+
taxes:
|
|
623
|
+
type: object
|
|
624
|
+
additionalProperties: true
|
|
625
|
+
description: Tax information
|
|
626
|
+
overwriteDeductionFixed:
|
|
627
|
+
type: number
|
|
628
|
+
description: Overwrite deduction fixed
|
|
629
|
+
overwriteTaxExempt:
|
|
630
|
+
type: boolean
|
|
631
|
+
description: Overwrite tax exempt
|
|
632
|
+
tax_exempt:
|
|
633
|
+
type: boolean
|
|
634
|
+
description: Tax exempt flag
|
|
635
|
+
overwriteDeductionRatio:
|
|
636
|
+
type: number
|
|
637
|
+
description: Overwrite deduction ratio
|
|
638
|
+
shipping_zone:
|
|
639
|
+
type: object
|
|
640
|
+
additionalProperties: true
|
|
641
|
+
description: Shipping zone
|
|
642
|
+
payment_method:
|
|
643
|
+
type: object
|
|
644
|
+
additionalProperties: true
|
|
645
|
+
description: Payment method
|
|
646
|
+
shipping_price:
|
|
647
|
+
type: number
|
|
648
|
+
description: Shipping price
|
|
649
|
+
shipping_tax:
|
|
650
|
+
type: number
|
|
651
|
+
description: Shipping tax
|
|
652
|
+
shipping_charge:
|
|
653
|
+
type: number
|
|
654
|
+
description: Shipping charge
|
|
655
|
+
payment_charge:
|
|
656
|
+
type: number
|
|
657
|
+
description: Payment charge
|
|
658
|
+
total_with_charges:
|
|
659
|
+
type: number
|
|
660
|
+
description: Total with charges
|
|
661
|
+
payment:
|
|
662
|
+
type: object
|
|
663
|
+
properties:
|
|
664
|
+
amount:
|
|
665
|
+
type: number
|
|
666
|
+
description: Payment information
|
|
667
|
+
workorder:
|
|
668
|
+
type: string
|
|
669
|
+
description: Work order
|
|
670
|
+
asset:
|
|
671
|
+
type: string
|
|
672
|
+
description: Asset
|
|
673
|
+
asset_unit:
|
|
674
|
+
type: string
|
|
675
|
+
description: Asset unit
|
|
676
|
+
signature:
|
|
677
|
+
type: string
|
|
678
|
+
description: Signature
|
|
679
|
+
createdAt:
|
|
680
|
+
type: string
|
|
681
|
+
format: date-time
|
|
682
|
+
description: Creation timestamp
|
|
683
|
+
updatedAt:
|
|
684
|
+
type: string
|
|
685
|
+
format: date-time
|
|
686
|
+
description: Last update timestamp
|
|
687
|
+
items:
|
|
688
|
+
type: array
|
|
689
|
+
items:
|
|
690
|
+
type: object
|
|
691
|
+
description: Cart items
|
|
692
|
+
return_items:
|
|
693
|
+
type: array
|
|
694
|
+
items:
|
|
695
|
+
type: object
|
|
696
|
+
description: Return items
|
|
697
|
+
invoice_payment_type:
|
|
698
|
+
type: string
|
|
699
|
+
enum: [cash, credit]
|
|
700
|
+
description: Invoice payment type
|
|
701
|
+
total_items_base_unit_qty:
|
|
702
|
+
type: number
|
|
703
|
+
description: Total items base unit quantity
|
|
704
|
+
total_items_qty:
|
|
705
|
+
type: number
|
|
706
|
+
description: Total items quantity
|
|
707
|
+
total_return_items_base_unit_qty:
|
|
708
|
+
type: number
|
|
709
|
+
description: Total return items base unit quantity
|
|
710
|
+
total_return_items_qty:
|
|
711
|
+
type: number
|
|
712
|
+
description: Total return items quantity
|
|
713
|
+
cart:
|
|
714
|
+
type: object
|
|
715
|
+
additionalProperties: true
|
|
716
|
+
description: Cart data
|
|
717
|
+
__v:
|
|
718
|
+
type: number
|
|
719
|
+
description: Version number
|
|
720
|
+
|
|
721
|
+
CartCreateBody:
|
|
722
|
+
type: object
|
|
723
|
+
description: Body for creating a cart
|
|
724
|
+
required:
|
|
725
|
+
- type
|
|
726
|
+
- failure_reasons
|
|
727
|
+
- client_id
|
|
728
|
+
- client_name
|
|
729
|
+
- latest
|
|
730
|
+
- issue_date
|
|
731
|
+
- currency
|
|
732
|
+
- geo_tag
|
|
733
|
+
- sync_id
|
|
734
|
+
- company_namespace
|
|
735
|
+
- promotions
|
|
736
|
+
- priceLists
|
|
737
|
+
- teams
|
|
738
|
+
- paymentsData
|
|
739
|
+
- consumption
|
|
740
|
+
- createdAt
|
|
741
|
+
- updatedAt
|
|
742
|
+
- items
|
|
743
|
+
- invoice_payment_type
|
|
744
|
+
properties:
|
|
745
|
+
type:
|
|
746
|
+
type: string
|
|
747
|
+
enum: [invoice, proforma]
|
|
748
|
+
description: Cart type
|
|
749
|
+
processable:
|
|
750
|
+
type: boolean
|
|
751
|
+
description: Whether the cart is processable
|
|
752
|
+
failure_reasons:
|
|
753
|
+
type: array
|
|
754
|
+
items:
|
|
755
|
+
type: string
|
|
756
|
+
description: List of failure reasons
|
|
757
|
+
external_serial_number:
|
|
758
|
+
type: string
|
|
759
|
+
description: External serial number
|
|
760
|
+
skip_promos:
|
|
761
|
+
type: boolean
|
|
762
|
+
description: Skip promotions flag
|
|
763
|
+
skipped_promotions:
|
|
764
|
+
type: array
|
|
765
|
+
items:
|
|
766
|
+
type: object
|
|
767
|
+
properties:
|
|
768
|
+
_id:
|
|
769
|
+
type: string
|
|
770
|
+
name:
|
|
771
|
+
type: string
|
|
772
|
+
ref:
|
|
773
|
+
type: string
|
|
774
|
+
description: List of skipped promotions
|
|
775
|
+
client_id:
|
|
776
|
+
type: string
|
|
777
|
+
description: Client ID
|
|
778
|
+
client_name:
|
|
779
|
+
type: string
|
|
780
|
+
description: Client name
|
|
781
|
+
comment:
|
|
782
|
+
type: string
|
|
783
|
+
description: Cart comment
|
|
784
|
+
return_comment:
|
|
785
|
+
type: string
|
|
786
|
+
description: Return comment
|
|
787
|
+
creator:
|
|
788
|
+
type: object
|
|
789
|
+
properties:
|
|
790
|
+
_id:
|
|
791
|
+
type: string
|
|
792
|
+
type:
|
|
793
|
+
type: string
|
|
794
|
+
enum: [rep, client, admin]
|
|
795
|
+
rep:
|
|
796
|
+
type: string
|
|
797
|
+
admin:
|
|
798
|
+
type: string
|
|
799
|
+
client:
|
|
800
|
+
type: string
|
|
801
|
+
name:
|
|
802
|
+
type: string
|
|
803
|
+
description: Cart creator
|
|
804
|
+
implemented_by:
|
|
805
|
+
type: object
|
|
806
|
+
properties:
|
|
807
|
+
_id:
|
|
808
|
+
type: string
|
|
809
|
+
type:
|
|
810
|
+
type: string
|
|
811
|
+
enum: [rep, client, admin]
|
|
812
|
+
rep:
|
|
813
|
+
type: string
|
|
814
|
+
admin:
|
|
815
|
+
type: string
|
|
816
|
+
client:
|
|
817
|
+
type: string
|
|
818
|
+
name:
|
|
819
|
+
type: string
|
|
820
|
+
description: Cart implementer
|
|
821
|
+
latest:
|
|
822
|
+
type: boolean
|
|
823
|
+
description: Latest version flag
|
|
824
|
+
version:
|
|
825
|
+
type: number
|
|
826
|
+
description: Cart version
|
|
827
|
+
time:
|
|
828
|
+
type: number
|
|
829
|
+
description: Cart timestamp
|
|
830
|
+
issue_date:
|
|
831
|
+
type: string
|
|
832
|
+
format: date
|
|
833
|
+
description: Issue date
|
|
834
|
+
delivery_date:
|
|
835
|
+
type: string
|
|
836
|
+
format: date
|
|
837
|
+
description: Delivery date
|
|
838
|
+
currency:
|
|
839
|
+
type: string
|
|
840
|
+
description: Currency code
|
|
841
|
+
serial_number:
|
|
842
|
+
type: object
|
|
843
|
+
properties:
|
|
844
|
+
formatted:
|
|
845
|
+
type: string
|
|
846
|
+
counter:
|
|
847
|
+
type: number
|
|
848
|
+
description: Serial number
|
|
849
|
+
geo_tag:
|
|
850
|
+
type: object
|
|
851
|
+
properties:
|
|
852
|
+
type:
|
|
853
|
+
type: string
|
|
854
|
+
enum: [Point]
|
|
855
|
+
coordinates:
|
|
856
|
+
type: array
|
|
857
|
+
items:
|
|
858
|
+
type: number
|
|
859
|
+
description: Geographic location
|
|
860
|
+
sync_id:
|
|
861
|
+
type: string
|
|
862
|
+
description: Sync ID
|
|
863
|
+
address:
|
|
864
|
+
type: object
|
|
865
|
+
additionalProperties: true
|
|
866
|
+
description: Address information
|
|
867
|
+
company_namespace:
|
|
868
|
+
type: array
|
|
869
|
+
items:
|
|
870
|
+
type: string
|
|
871
|
+
description: Company namespaces
|
|
872
|
+
promotions:
|
|
873
|
+
type: array
|
|
874
|
+
items:
|
|
875
|
+
type: object
|
|
876
|
+
description: Applied promotions
|
|
877
|
+
priceLists:
|
|
878
|
+
type: array
|
|
879
|
+
items:
|
|
880
|
+
type: object
|
|
881
|
+
description: Price lists
|
|
882
|
+
visit_id:
|
|
883
|
+
type: string
|
|
884
|
+
description: Visit ID
|
|
885
|
+
teams:
|
|
886
|
+
type: array
|
|
887
|
+
items:
|
|
888
|
+
type: string
|
|
889
|
+
description: Team IDs
|
|
890
|
+
converter:
|
|
891
|
+
type: object
|
|
892
|
+
properties:
|
|
893
|
+
_id:
|
|
894
|
+
type: string
|
|
895
|
+
type:
|
|
896
|
+
type: string
|
|
897
|
+
enum: [rep, client, admin]
|
|
898
|
+
rep:
|
|
899
|
+
type: string
|
|
900
|
+
admin:
|
|
901
|
+
type: string
|
|
902
|
+
client:
|
|
903
|
+
type: string
|
|
904
|
+
name:
|
|
905
|
+
type: string
|
|
906
|
+
description: Cart converter
|
|
907
|
+
converted_proforma_serial_number:
|
|
908
|
+
type: object
|
|
909
|
+
properties:
|
|
910
|
+
formatted:
|
|
911
|
+
type: string
|
|
912
|
+
counter:
|
|
913
|
+
type: number
|
|
914
|
+
description: Converted proforma serial number
|
|
915
|
+
converted_proforma_return_serial_number:
|
|
916
|
+
type: object
|
|
917
|
+
properties:
|
|
918
|
+
formatted:
|
|
919
|
+
type: string
|
|
920
|
+
counter:
|
|
921
|
+
type: number
|
|
922
|
+
description: Converted proforma return serial number
|
|
923
|
+
proforma_reference:
|
|
924
|
+
type: string
|
|
925
|
+
description: Proforma reference
|
|
926
|
+
converted_at:
|
|
927
|
+
type: number
|
|
928
|
+
description: Conversion timestamp
|
|
929
|
+
exclude_return_items:
|
|
930
|
+
type: boolean
|
|
931
|
+
description: Exclude return items flag
|
|
932
|
+
returned_from:
|
|
933
|
+
type: string
|
|
934
|
+
description: Returned from
|
|
935
|
+
returned_to:
|
|
936
|
+
type: string
|
|
937
|
+
description: Returned to
|
|
938
|
+
returned_from_serial_number:
|
|
939
|
+
type: object
|
|
940
|
+
properties:
|
|
941
|
+
formatted:
|
|
942
|
+
type: string
|
|
943
|
+
counter:
|
|
944
|
+
type: number
|
|
945
|
+
description: Returned from serial number
|
|
946
|
+
returned_to_serial_number:
|
|
947
|
+
type: object
|
|
948
|
+
properties:
|
|
949
|
+
formatted:
|
|
950
|
+
type: string
|
|
951
|
+
counter:
|
|
952
|
+
type: number
|
|
953
|
+
description: Returned to serial number
|
|
954
|
+
partiall_returned_from:
|
|
955
|
+
type: string
|
|
956
|
+
description: Partially returned from
|
|
957
|
+
partiall_returned_from_serial_number:
|
|
958
|
+
type: object
|
|
959
|
+
properties:
|
|
960
|
+
formatted:
|
|
961
|
+
type: string
|
|
962
|
+
counter:
|
|
963
|
+
type: number
|
|
964
|
+
description: Partially returned from serial number
|
|
965
|
+
due_date:
|
|
966
|
+
type: string
|
|
967
|
+
format: date
|
|
968
|
+
description: Due date
|
|
969
|
+
return_serial_number:
|
|
970
|
+
type: object
|
|
971
|
+
properties:
|
|
972
|
+
formatted:
|
|
973
|
+
type: string
|
|
974
|
+
counter:
|
|
975
|
+
type: number
|
|
976
|
+
description: Return serial number
|
|
977
|
+
origin_warehouse:
|
|
978
|
+
type: string
|
|
979
|
+
description: Origin warehouse
|
|
980
|
+
msl_sales:
|
|
981
|
+
type: string
|
|
982
|
+
description: MSL sales
|
|
983
|
+
route:
|
|
984
|
+
type: string
|
|
985
|
+
description: Route
|
|
986
|
+
paymentsData:
|
|
987
|
+
type: object
|
|
988
|
+
properties:
|
|
989
|
+
invoice_value:
|
|
990
|
+
type: number
|
|
991
|
+
paid:
|
|
992
|
+
type: number
|
|
993
|
+
balance:
|
|
994
|
+
type: number
|
|
995
|
+
payments:
|
|
996
|
+
type: array
|
|
997
|
+
items:
|
|
998
|
+
type: object
|
|
999
|
+
properties:
|
|
1000
|
+
payment_serial_number:
|
|
1001
|
+
type: object
|
|
1002
|
+
properties:
|
|
1003
|
+
formatted:
|
|
1004
|
+
type: string
|
|
1005
|
+
counter:
|
|
1006
|
+
type: number
|
|
1007
|
+
payment_id:
|
|
1008
|
+
type: string
|
|
1009
|
+
invoice_serial_number:
|
|
1010
|
+
type: object
|
|
1011
|
+
properties:
|
|
1012
|
+
formatted:
|
|
1013
|
+
type: string
|
|
1014
|
+
counter:
|
|
1015
|
+
type: number
|
|
1016
|
+
return_serial_number:
|
|
1017
|
+
type: object
|
|
1018
|
+
properties:
|
|
1019
|
+
formatted:
|
|
1020
|
+
type: string
|
|
1021
|
+
counter:
|
|
1022
|
+
type: number
|
|
1023
|
+
fullinvoice_id:
|
|
1024
|
+
type: string
|
|
1025
|
+
view_serial_number:
|
|
1026
|
+
type: object
|
|
1027
|
+
properties:
|
|
1028
|
+
formatted:
|
|
1029
|
+
type: string
|
|
1030
|
+
counter:
|
|
1031
|
+
type: number
|
|
1032
|
+
type:
|
|
1033
|
+
type: string
|
|
1034
|
+
enum: [invoice, payment, return_invoice]
|
|
1035
|
+
amount:
|
|
1036
|
+
type: number
|
|
1037
|
+
description: Payment data
|
|
1038
|
+
consumption:
|
|
1039
|
+
type: object
|
|
1040
|
+
properties:
|
|
1041
|
+
status:
|
|
1042
|
+
type: string
|
|
1043
|
+
enum: [consumed, unconsumed, partially_consumed]
|
|
1044
|
+
remainder:
|
|
1045
|
+
type: number
|
|
1046
|
+
description: Consumption data
|
|
1047
|
+
subtotal:
|
|
1048
|
+
type: number
|
|
1049
|
+
description: Subtotal
|
|
1050
|
+
discount_amount:
|
|
1051
|
+
type: number
|
|
1052
|
+
description: Discount amount
|
|
1053
|
+
discount_amount_float:
|
|
1054
|
+
type: number
|
|
1055
|
+
description: Discount amount float
|
|
1056
|
+
taxable_subtotal:
|
|
1057
|
+
type: number
|
|
1058
|
+
description: Taxable subtotal
|
|
1059
|
+
net_total:
|
|
1060
|
+
type: number
|
|
1061
|
+
description: Net total
|
|
1062
|
+
tax_amount:
|
|
1063
|
+
type: number
|
|
1064
|
+
description: Tax amount
|
|
1065
|
+
tax_amount_after_deduction_float:
|
|
1066
|
+
type: number
|
|
1067
|
+
description: Tax amount after deduction float
|
|
1068
|
+
tax_amount_after_deduction_float_rounded_sum:
|
|
1069
|
+
type: number
|
|
1070
|
+
description: Tax amount after deduction float rounded sum
|
|
1071
|
+
tax_amount_after_deduction_float_rounded:
|
|
1072
|
+
type: number
|
|
1073
|
+
description: Tax amount after deduction float rounded
|
|
1074
|
+
total:
|
|
1075
|
+
type: number
|
|
1076
|
+
description: Total amount
|
|
1077
|
+
total_float:
|
|
1078
|
+
type: number
|
|
1079
|
+
description: Total float
|
|
1080
|
+
total_float_rounded:
|
|
1081
|
+
type: number
|
|
1082
|
+
description: Total float rounded
|
|
1083
|
+
total_float_rounded_sum:
|
|
1084
|
+
type: number
|
|
1085
|
+
description: Total float rounded sum
|
|
1086
|
+
total_before_tax:
|
|
1087
|
+
type: number
|
|
1088
|
+
description: Total before tax
|
|
1089
|
+
taxable_amount_float:
|
|
1090
|
+
type: number
|
|
1091
|
+
description: Taxable amount float
|
|
1092
|
+
taxable_amount_float_rounded_sum:
|
|
1093
|
+
type: number
|
|
1094
|
+
description: Taxable amount float rounded sum
|
|
1095
|
+
taxable_amount_float_rounded:
|
|
1096
|
+
type: number
|
|
1097
|
+
description: Taxable amount float rounded
|
|
1098
|
+
pre_subtotal:
|
|
1099
|
+
type: number
|
|
1100
|
+
description: Pre-subtotal
|
|
1101
|
+
pre_discount_amount:
|
|
1102
|
+
type: number
|
|
1103
|
+
description: Pre-discount amount
|
|
1104
|
+
pre_discount_amount_float:
|
|
1105
|
+
type: number
|
|
1106
|
+
description: Pre-discount amount float
|
|
1107
|
+
pre_taxable_subtotal:
|
|
1108
|
+
type: number
|
|
1109
|
+
description: Pre-taxable subtotal
|
|
1110
|
+
pre_net_total:
|
|
1111
|
+
type: number
|
|
1112
|
+
description: Pre-net total
|
|
1113
|
+
pre_tax_amount:
|
|
1114
|
+
type: number
|
|
1115
|
+
description: Pre-tax amount
|
|
1116
|
+
pre_tax_amount_after_deduction_float:
|
|
1117
|
+
type: number
|
|
1118
|
+
description: Pre-tax amount after deduction float
|
|
1119
|
+
pre_tax_amount_after_deduction_float_rounded:
|
|
1120
|
+
type: number
|
|
1121
|
+
description: Pre-tax amount after deduction float rounded
|
|
1122
|
+
pre_tax_amount_after_deduction_float_rounded_sum:
|
|
1123
|
+
type: number
|
|
1124
|
+
description: Pre-tax amount after deduction float rounded sum
|
|
1125
|
+
pre_total:
|
|
1126
|
+
type: number
|
|
1127
|
+
description: Pre-total
|
|
1128
|
+
pre_total_float:
|
|
1129
|
+
type: number
|
|
1130
|
+
description: Pre-total float
|
|
1131
|
+
pre_total_float_rounded:
|
|
1132
|
+
type: number
|
|
1133
|
+
description: Pre-total float rounded
|
|
1134
|
+
pre_total_float_rounded_sum:
|
|
1135
|
+
type: number
|
|
1136
|
+
description: Pre-total float rounded sum
|
|
1137
|
+
pre_total_before_tax:
|
|
1138
|
+
type: number
|
|
1139
|
+
description: Pre-total before tax
|
|
1140
|
+
pre_taxable_amount_float:
|
|
1141
|
+
type: number
|
|
1142
|
+
description: Pre-taxable amount float
|
|
1143
|
+
pre_taxable_amount_float_rounded:
|
|
1144
|
+
type: number
|
|
1145
|
+
description: Pre-taxable amount float rounded
|
|
1146
|
+
pre_taxable_amount_float_rounded_sum:
|
|
1147
|
+
type: number
|
|
1148
|
+
description: Pre-taxable amount float rounded sum
|
|
1149
|
+
return_subtotal:
|
|
1150
|
+
type: number
|
|
1151
|
+
description: Return subtotal
|
|
1152
|
+
return_discount_amount:
|
|
1153
|
+
type: number
|
|
1154
|
+
description: Return discount amount
|
|
1155
|
+
return_discount_amount_float:
|
|
1156
|
+
type: number
|
|
1157
|
+
description: Return discount amount float
|
|
1158
|
+
return_taxable_subtotal:
|
|
1159
|
+
type: number
|
|
1160
|
+
description: Return taxable subtotal
|
|
1161
|
+
return_net_total:
|
|
1162
|
+
type: number
|
|
1163
|
+
description: Return net total
|
|
1164
|
+
return_tax_amount:
|
|
1165
|
+
type: number
|
|
1166
|
+
description: Return tax amount
|
|
1167
|
+
return_tax_amount_after_deduction_float:
|
|
1168
|
+
type: number
|
|
1169
|
+
description: Return tax amount after deduction float
|
|
1170
|
+
return_tax_amount_after_deduction_float_rounded:
|
|
1171
|
+
type: number
|
|
1172
|
+
description: Return tax amount after deduction float rounded
|
|
1173
|
+
return_tax_amount_after_deduction_float_rounded_sum:
|
|
1174
|
+
type: number
|
|
1175
|
+
description: Return tax amount after deduction float rounded sum
|
|
1176
|
+
return_total:
|
|
1177
|
+
type: number
|
|
1178
|
+
description: Return total
|
|
1179
|
+
return_total_float:
|
|
1180
|
+
type: number
|
|
1181
|
+
description: Return total float
|
|
1182
|
+
return_total_float_rounded:
|
|
1183
|
+
type: number
|
|
1184
|
+
description: Return total float rounded
|
|
1185
|
+
return_total_float_rounded_sum:
|
|
1186
|
+
type: number
|
|
1187
|
+
description: Return total float rounded sum
|
|
1188
|
+
return_total_before_tax:
|
|
1189
|
+
type: number
|
|
1190
|
+
description: Return total before tax
|
|
1191
|
+
return_taxable_amount_float:
|
|
1192
|
+
type: number
|
|
1193
|
+
description: Return taxable amount float
|
|
1194
|
+
return_taxable_amount_float_rounded:
|
|
1195
|
+
type: number
|
|
1196
|
+
description: Return taxable amount float rounded
|
|
1197
|
+
return_taxable_amount_float_rounded_sum:
|
|
1198
|
+
type: number
|
|
1199
|
+
description: Return taxable amount float rounded sum
|
|
1200
|
+
deductionRatio:
|
|
1201
|
+
type: number
|
|
1202
|
+
description: Deduction ratio
|
|
1203
|
+
deductionFixed:
|
|
1204
|
+
type: number
|
|
1205
|
+
description: Fixed deduction
|
|
1206
|
+
totalDeductedTax:
|
|
1207
|
+
type: number
|
|
1208
|
+
description: Total deducted tax
|
|
1209
|
+
totalDeductedTaxFloat:
|
|
1210
|
+
type: number
|
|
1211
|
+
description: Total deducted tax float
|
|
1212
|
+
totalDeduction:
|
|
1213
|
+
type: number
|
|
1214
|
+
description: Total deduction
|
|
1215
|
+
totalDeductionFloat:
|
|
1216
|
+
type: number
|
|
1217
|
+
description: Total deduction float
|
|
1218
|
+
totalDeductionBeforeTax:
|
|
1219
|
+
type: number
|
|
1220
|
+
description: Total deduction before tax
|
|
1221
|
+
totalDeductionBeforeTaxFloat:
|
|
1222
|
+
type: number
|
|
1223
|
+
description: Total deduction before tax float
|
|
1224
|
+
totalAfterDeduction:
|
|
1225
|
+
type: number
|
|
1226
|
+
description: Total after deduction
|
|
1227
|
+
totalAfterDeductionFloat:
|
|
1228
|
+
type: number
|
|
1229
|
+
description: Total after deduction float
|
|
1230
|
+
lines_discount:
|
|
1231
|
+
type: number
|
|
1232
|
+
description: Lines discount
|
|
1233
|
+
lines_discount_float:
|
|
1234
|
+
type: number
|
|
1235
|
+
description: Lines discount float
|
|
1236
|
+
taxes:
|
|
1237
|
+
type: object
|
|
1238
|
+
additionalProperties: true
|
|
1239
|
+
description: Tax information
|
|
1240
|
+
overwriteDeductionFixed:
|
|
1241
|
+
type: number
|
|
1242
|
+
description: Overwrite deduction fixed
|
|
1243
|
+
overwriteTaxExempt:
|
|
1244
|
+
type: boolean
|
|
1245
|
+
description: Overwrite tax exempt
|
|
1246
|
+
tax_exempt:
|
|
1247
|
+
type: boolean
|
|
1248
|
+
description: Tax exempt flag
|
|
1249
|
+
overwriteDeductionRatio:
|
|
1250
|
+
type: number
|
|
1251
|
+
description: Overwrite deduction ratio
|
|
1252
|
+
shipping_zone:
|
|
1253
|
+
type: object
|
|
1254
|
+
additionalProperties: true
|
|
1255
|
+
description: Shipping zone
|
|
1256
|
+
payment_method:
|
|
1257
|
+
type: object
|
|
1258
|
+
additionalProperties: true
|
|
1259
|
+
description: Payment method
|
|
1260
|
+
shipping_price:
|
|
1261
|
+
type: number
|
|
1262
|
+
description: Shipping price
|
|
1263
|
+
shipping_tax:
|
|
1264
|
+
type: number
|
|
1265
|
+
description: Shipping tax
|
|
1266
|
+
shipping_charge:
|
|
1267
|
+
type: number
|
|
1268
|
+
description: Shipping charge
|
|
1269
|
+
payment_charge:
|
|
1270
|
+
type: number
|
|
1271
|
+
description: Payment charge
|
|
1272
|
+
total_with_charges:
|
|
1273
|
+
type: number
|
|
1274
|
+
description: Total with charges
|
|
1275
|
+
payment:
|
|
1276
|
+
type: object
|
|
1277
|
+
properties:
|
|
1278
|
+
amount:
|
|
1279
|
+
type: number
|
|
1280
|
+
description: Payment information
|
|
1281
|
+
workorder:
|
|
1282
|
+
type: string
|
|
1283
|
+
description: Work order
|
|
1284
|
+
asset:
|
|
1285
|
+
type: string
|
|
1286
|
+
description: Asset
|
|
1287
|
+
asset_unit:
|
|
1288
|
+
type: string
|
|
1289
|
+
description: Asset unit
|
|
1290
|
+
signature:
|
|
1291
|
+
type: string
|
|
1292
|
+
description: Signature
|
|
1293
|
+
createdAt:
|
|
1294
|
+
type: string
|
|
1295
|
+
format: date-time
|
|
1296
|
+
description: Creation timestamp
|
|
1297
|
+
updatedAt:
|
|
1298
|
+
type: string
|
|
1299
|
+
format: date-time
|
|
1300
|
+
description: Last update timestamp
|
|
1301
|
+
items:
|
|
1302
|
+
type: array
|
|
1303
|
+
items:
|
|
1304
|
+
type: object
|
|
1305
|
+
description: Cart items
|
|
1306
|
+
return_items:
|
|
1307
|
+
type: array
|
|
1308
|
+
items:
|
|
1309
|
+
type: object
|
|
1310
|
+
description: Return items
|
|
1311
|
+
invoice_payment_type:
|
|
1312
|
+
type: string
|
|
1313
|
+
enum: [cash, credit]
|
|
1314
|
+
description: Invoice payment type
|
|
1315
|
+
total_items_base_unit_qty:
|
|
1316
|
+
type: number
|
|
1317
|
+
description: Total items base unit quantity
|
|
1318
|
+
total_items_qty:
|
|
1319
|
+
type: number
|
|
1320
|
+
description: Total items quantity
|
|
1321
|
+
total_return_items_base_unit_qty:
|
|
1322
|
+
type: number
|
|
1323
|
+
description: Total return items base unit quantity
|
|
1324
|
+
total_return_items_qty:
|
|
1325
|
+
type: number
|
|
1326
|
+
description: Total return items quantity
|
|
1327
|
+
cart:
|
|
1328
|
+
type: object
|
|
1329
|
+
additionalProperties: true
|
|
1330
|
+
description: Cart data
|
|
1331
|
+
|
|
1332
|
+
CartCreateResult:
|
|
1333
|
+
$ref: "#/components/schemas/CartData"
|
|
1334
|
+
description: Result of creating a cart
|
|
1335
|
+
|
|
1336
|
+
CartGetResult:
|
|
1337
|
+
$ref: "#/components/schemas/CartData"
|
|
1338
|
+
description: Result of getting a cart
|