@things-factory/operato-hub 4.3.103 → 4.3.104

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.
@@ -0,0 +1,843 @@
1
+ definitions:
2
+ # GetMarketplace
3
+ GetMarketplace:
4
+ type: 'object'
5
+ properties:
6
+ data:
7
+ type: 'array'
8
+ items:
9
+ type: 'object'
10
+ properties:
11
+ id:
12
+ type: 'string'
13
+ example: 'c409e848-b952-4ebe-9705-14614dde60aa'
14
+ name:
15
+ type: 'string'
16
+ example: Hatio Shopee
17
+ platform:
18
+ type: 'string'
19
+ example: shopee
20
+ eTrax:
21
+ type: 'boolean'
22
+ example: false
23
+ storeName:
24
+ type: 'string'
25
+ example: Hatio Shopee
26
+ storeUrl:
27
+ type: 'string'
28
+ example: https://shop.hatio.com/
29
+ isAutoUpdateStockQty:
30
+ type: 'boolean'
31
+ example: true
32
+ isAutoUpdateShipment:
33
+ type: 'boolean'
34
+ example: true
35
+ storeId:
36
+ type: 'string'
37
+ example: '6336552'
38
+ countryCode:
39
+ type: 'string'
40
+ example: 'my'
41
+ status:
42
+ type: 'string'
43
+ example: 'ACTIVE'
44
+ totalCount:
45
+ type: 'integer'
46
+ example: 1
47
+ limit:
48
+ type: 'integer'
49
+ example: 100
50
+ offset:
51
+ type: 'integer'
52
+ example: 0
53
+ xml:
54
+ name: 'GetMarketplace'
55
+
56
+ # AddMarketplaceOrder
57
+ AddMarketplaceOrder:
58
+ type: 'object'
59
+ properties:
60
+ data:
61
+ type: 'object'
62
+ properties:
63
+ orderNo:
64
+ type: 'string'
65
+ example: 'string'
66
+ itemCount:
67
+ type: 'integer'
68
+ example: 0
69
+ paymentMethod:
70
+ type: 'string'
71
+ example: 'string'
72
+ remark:
73
+ type: 'string'
74
+ example: 'string'
75
+ giftOption:
76
+ type: 'boolean'
77
+ example: false
78
+ orderCreatedAt:
79
+ type: 'datetime'
80
+ example: '2021-01-14 14:32:15'
81
+ orderUpdatedAt:
82
+ type: 'datetime'
83
+ example: '2021-01-14 14:32:15'
84
+ marketplaceOrderItems:
85
+ type: 'array'
86
+ items:
87
+ type: 'object'
88
+ properties:
89
+ marketplaceProductVariation:
90
+ type: 'object'
91
+ properties:
92
+ variationId:
93
+ type: 'string'
94
+ example: 'string'
95
+ sku:
96
+ type: 'string'
97
+ example: 'string'
98
+ variationSku:
99
+ type: 'string'
100
+ example: 'string'
101
+ variationName:
102
+ type: 'string'
103
+ example: 'string'
104
+ marketplaceOrderShipping:
105
+ type: 'object'
106
+ properties:
107
+ attentionTo:
108
+ type: 'string'
109
+ example: 'string'
110
+ address1:
111
+ type: 'string'
112
+ example: 'string'
113
+ address2:
114
+ type: 'string'
115
+ example: 'string'
116
+ address3:
117
+ type: 'string'
118
+ example: 'string'
119
+ address4:
120
+ type: 'string'
121
+ example: 'string'
122
+ address5:
123
+ type: 'string'
124
+ example: 'string'
125
+ state:
126
+ type: 'string'
127
+ example: 'string'
128
+ city:
129
+ type: 'string'
130
+ example: 'string'
131
+ postCode:
132
+ type: 'string'
133
+ example: 'string'
134
+ country:
135
+ type: 'string'
136
+ example: 'string'
137
+ phone1:
138
+ type: 'string'
139
+ example: 'string'
140
+ phone2:
141
+ type: 'string'
142
+ example: 'string'
143
+ email:
144
+ type: 'string'
145
+ example: 'string'
146
+ freightType:
147
+ type: 'string'
148
+ example: 'string'
149
+ parcelType:
150
+ type: 'string'
151
+ example: 'string'
152
+ deliveryMethod:
153
+ type: 'string'
154
+ example: 'string'
155
+ totalWeight:
156
+ type: 'string'
157
+ example: 'string'
158
+ totalVolume:
159
+ type: 'string'
160
+ example: 'string'
161
+ transporter:
162
+ type: 'string'
163
+ example: 'string'
164
+ orderItemId:
165
+ type: 'string'
166
+ example: 'string'
167
+ qty:
168
+ type: 'integer'
169
+ example: 1
170
+ cancelBy:
171
+ type: 'string'
172
+ example: 'string'
173
+ returnStatus:
174
+ type: 'string'
175
+ example: 'string'
176
+ packageId:
177
+ type: 'string'
178
+ example: 'string'
179
+ status:
180
+ type: 'string'
181
+ example: 'string'
182
+ xml:
183
+ name: 'AddMarketplaceOrder'
184
+
185
+ # CancelMarketplaceOrder
186
+ CancelMarketplaceOrder:
187
+ type: 'object'
188
+ properties:
189
+ data:
190
+ type: 'object'
191
+ properties:
192
+ storeId:
193
+ type: 'string'
194
+ example: 'BL76D28F'
195
+ orderNo:
196
+ type: 'string'
197
+ example: 'string'
198
+ status:
199
+ type: 'string'
200
+ example: 'string'
201
+ cancelBy:
202
+ type: 'string'
203
+ example: 'string'
204
+ updatedAt:
205
+ type: 'datetime'
206
+ example: '2021-01-14T14:32:15Z'
207
+ xml:
208
+ name: 'CancelMarketplaceOrder'
209
+
210
+ # UpdateMarketplaceOrderDelivered
211
+ UpdateMarketplaceOrderDelivered:
212
+ type: 'object'
213
+ properties:
214
+ data:
215
+ type: 'object'
216
+ properties:
217
+ orderNo:
218
+ type: 'string'
219
+ example: 'string'
220
+ xml:
221
+ name: 'UpddateMarketplaceOrderDelivered'
222
+
223
+ # GetMarketplaceOrderShippingList
224
+ GetMarketplaceOrderShippingList:
225
+ type: 'object'
226
+ properties:
227
+ data:
228
+ type: 'array'
229
+ items:
230
+ type: 'object'
231
+ properties:
232
+ attentionTo:
233
+ type: 'string'
234
+ example: 'string'
235
+ address1:
236
+ type: 'string'
237
+ example: 'string'
238
+ address2:
239
+ type: 'string'
240
+ example: 'string'
241
+ address3:
242
+ type: 'string'
243
+ example: 'string'
244
+ address4:
245
+ type: 'string'
246
+ example: 'string'
247
+ address5:
248
+ type: 'string'
249
+ example: 'string'
250
+ state:
251
+ type: 'string'
252
+ example: 'string'
253
+ city:
254
+ type: 'string'
255
+ example: 'string'
256
+ postCode:
257
+ type: 'string'
258
+ example: 'string'
259
+ country:
260
+ type: 'string'
261
+ example: 'string'
262
+ phone1:
263
+ type: 'string'
264
+ example: 'string'
265
+ phone2:
266
+ type: 'string'
267
+ example: 'string'
268
+ email:
269
+ type: 'string'
270
+ example: 'string'
271
+ freightType:
272
+ type: 'string'
273
+ example: 'string'
274
+ parcelType:
275
+ type: 'string'
276
+ example: 'string'
277
+ deliveryMethod:
278
+ type: 'string'
279
+ example: 'string'
280
+ totalWeight:
281
+ type: 'integer'
282
+ format: 'double'
283
+ example: 1
284
+ totalVolume:
285
+ type: 'integer'
286
+ format: 'double'
287
+ example: 1
288
+ transporter:
289
+ type: 'string'
290
+ example: 'string'
291
+ marketplaceStore:
292
+ type: 'object'
293
+ properties:
294
+ name:
295
+ type: 'string'
296
+ example: 'string'
297
+ storeId:
298
+ type: 'string'
299
+ example: 'string'
300
+ marketplaceOrderItems:
301
+ type: 'array'
302
+ items:
303
+ type: 'object'
304
+ properties:
305
+ marketplaceProductVariation:
306
+ type: 'object'
307
+ properties:
308
+ variationId:
309
+ type: 'string'
310
+ example: 'string'
311
+ sku:
312
+ type: 'string'
313
+ example: 'string'
314
+ variationSku:
315
+ type: 'string'
316
+ example: 'string'
317
+ variationName:
318
+ type: 'string'
319
+ example: 'string'
320
+ orderItemId:
321
+ type: 'string'
322
+ example: 'string'
323
+ qty:
324
+ type: 'integer'
325
+ example: 1
326
+ cancelBy:
327
+ type: 'string'
328
+ example: 'string'
329
+ returnStatus:
330
+ type: 'string'
331
+ example: 'string'
332
+ packageId:
333
+ type: 'string'
334
+ example: 'string'
335
+ status:
336
+ type: 'string'
337
+ example: 'string'
338
+ totalCount:
339
+ type: 'integer'
340
+ example: 1
341
+ limit:
342
+ type: 'integer'
343
+ example: 100
344
+ offset:
345
+ type: 'integer'
346
+ example: 0
347
+ xml:
348
+ name: 'GetMarketplaceOrderShippingList'
349
+
350
+ # UpdateMarketplaceShippingOrder
351
+ UpdateMarketplaceShippingOrder:
352
+ type: 'object'
353
+ properties:
354
+ data:
355
+ type: 'object'
356
+ properties:
357
+ orderNoRef:
358
+ type: 'string'
359
+ example: 'string'
360
+ transporter:
361
+ type: 'string'
362
+ example: 'string'
363
+ airwayBill:
364
+ type: 'string'
365
+ example: 'string'
366
+ trackingNo:
367
+ type: 'string'
368
+ example: 'string'
369
+ # status:
370
+ # type: 'string'
371
+ # example: 'string'
372
+ xml:
373
+ name: 'UpdateMarketplaceShippingOrder'
374
+
375
+ paths:
376
+ # get-marketplace-store-list
377
+ api/v1/marketplace/get-marketplace-store-list:
378
+ get:
379
+ tags:
380
+ - 'Marketplace'
381
+ summary: 'Get List of Marketplace Store(s).'
382
+ description: 'Get list of marketplace store.'
383
+ operationId: 'getMarketplaceStoreList'
384
+ consumes:
385
+ - 'application/json'
386
+ produces:
387
+ - 'application/json'
388
+ parameters:
389
+ - in: 'query'
390
+ name: 'limit'
391
+ type: 'integer'
392
+ default: 100
393
+ - in: 'query'
394
+ name: 'offset'
395
+ type: 'integer'
396
+ default: 0
397
+ responses:
398
+ '200':
399
+ description: 'successful operation'
400
+ content:
401
+ application/json:
402
+ schema:
403
+ type: 'array'
404
+ items:
405
+ $ref: '#/definitions/GetMarketplace'
406
+
407
+ # add-marketplace-order
408
+ api/v1/marketplace/add-marketplace-order:
409
+ post:
410
+ tags:
411
+ - 'Marketplace'
412
+ summary: 'Add marketplace order(s).'
413
+ description: 'Add Marketplace Order.'
414
+ operationId: 'addMarketPlace'
415
+ produces:
416
+ - 'application/json'
417
+ parameters:
418
+ - in: 'body'
419
+ name: 'body'
420
+ schema:
421
+ type: 'object'
422
+ properties:
423
+ data:
424
+ type: 'object'
425
+ required:
426
+ - 'storeId'
427
+ - 'orderNo'
428
+ - 'status'
429
+ - 'marketplaceOrderItems'
430
+ properties:
431
+ storeId:
432
+ type: 'string'
433
+ required: true
434
+ example: 'BL76D28F'
435
+ orderNo:
436
+ type: 'string'
437
+ required: true
438
+ example: 'string'
439
+ status:
440
+ type: 'string'
441
+ required: true
442
+ example: 'processing'
443
+ itemCount:
444
+ type: 'integer'
445
+ example: 0
446
+ paymentMethod:
447
+ type: 'string'
448
+ example: 'string'
449
+ remark:
450
+ type: 'string'
451
+ example: 'string'
452
+ giftOption:
453
+ type: 'boolean'
454
+ example: false
455
+ orderCreatedAt:
456
+ type: 'datetime'
457
+ example: '2021-01-14T14:32:15Z'
458
+ orderUpdatedAt:
459
+ type: 'datetime'
460
+ example: '2021-01-14T14:32:15Z'
461
+ marketplaceOrderItems:
462
+ type: 'array'
463
+ items:
464
+ type: 'object'
465
+ required:
466
+ - 'orderItemId'
467
+ - 'qty'
468
+ - 'marketplaceProductVariation'
469
+ - 'marketplaceOrderShipping'
470
+ properties:
471
+ orderItemId:
472
+ type: 'string'
473
+ required: true
474
+ example: 'string'
475
+ qty:
476
+ type: 'integer'
477
+ required: true
478
+ example: 1
479
+ cancelBy:
480
+ type: 'string'
481
+ example: 'string'
482
+ returnStatus:
483
+ type: 'string'
484
+ example: 'string'
485
+ packageId:
486
+ type: 'string'
487
+ example: 'string'
488
+ status:
489
+ type: 'string'
490
+ example: 'string'
491
+ marketplaceProductVariation:
492
+ type: 'object'
493
+ required:
494
+ - 'variationId'
495
+ - 'variationSku'
496
+ - 'variationName'
497
+ properties:
498
+ variationId:
499
+ type: 'string'
500
+ required: true
501
+ example: 'string'
502
+ sku:
503
+ type: 'string'
504
+ example: 'string'
505
+ variationSku:
506
+ type: 'string'
507
+ required: true
508
+ example: 'string'
509
+ variationName:
510
+ type: 'string'
511
+ required: true
512
+ example: 'string'
513
+ marketplaceOrderShipping:
514
+ type: 'object'
515
+ required:
516
+ - 'attentionTo'
517
+ - 'address1'
518
+ - 'state'
519
+ - 'city'
520
+ - 'postCode'
521
+ - 'country'
522
+ - 'phone1'
523
+ - 'email'
524
+ properties:
525
+ attentionTo:
526
+ type: 'string'
527
+ required: true
528
+ example: 'string'
529
+ address1:
530
+ type: 'string'
531
+ required: true
532
+ example: 'string'
533
+ address2:
534
+ type: 'string'
535
+ example: 'string'
536
+ address3:
537
+ type: 'string'
538
+ example: 'string'
539
+ address4:
540
+ type: 'string'
541
+ example: 'string'
542
+ address5:
543
+ type: 'string'
544
+ example: 'string'
545
+ state:
546
+ type: 'string'
547
+ required: true
548
+ example: 'string'
549
+ city:
550
+ type: 'string'
551
+ required: true
552
+ example: 'string'
553
+ postCode:
554
+ type: 'string'
555
+ required: true
556
+ example: 'string'
557
+ country:
558
+ type: 'string'
559
+ required: true
560
+ example: 'string'
561
+ phone1:
562
+ type: 'string'
563
+ required: true
564
+ example: 'string'
565
+ phone2:
566
+ type:
567
+ example: 'string'
568
+ email:
569
+ type: 'string'
570
+ required: true
571
+ example: 'string'
572
+ freightType:
573
+ type: 'string'
574
+ example: 'string'
575
+ parcelType:
576
+ type: 'string'
577
+ example: 'string'
578
+ deliveryMethod:
579
+ type: 'string'
580
+ example: 'string'
581
+ totalWeight:
582
+ type: 'integer'
583
+ format: 'double'
584
+ example: 1
585
+ totalVolume:
586
+ type: 'integer'
587
+ format: 'double'
588
+ example: 1
589
+ transporter:
590
+ type: 'string'
591
+ example: 'string'
592
+ responses:
593
+ '200':
594
+ description: 'successful operation'
595
+ content:
596
+ application/json:
597
+ schema:
598
+ type: 'array'
599
+ items:
600
+ $ref: '#/definitions/AddMarketplaceOrder'
601
+
602
+ # cancel-marketplace-order
603
+ api/v1/marketplace/cancel-marketplace-order:
604
+ post:
605
+ tags:
606
+ - 'Marketplace'
607
+ summary: 'Cancel marketplace order(s).'
608
+ description: 'Cancel Marketplace Order.'
609
+ operationId: 'cancelMarketplaceOrder'
610
+ produces:
611
+ - 'application/json'
612
+ parameters:
613
+ # - in: 'query'
614
+ # name: 'storeId'
615
+ # description: 'storeId parameter refers to the name column in the MarketplaceStores table.'
616
+ # type: 'string'
617
+ # required: true
618
+ # - in: 'query'
619
+ # name: 'orderNo'
620
+ # description: 'Order Number'
621
+ # type: 'string'
622
+ # required: true
623
+ # - in: 'query'
624
+ # name: 'remark'
625
+ # description: 'Remarks'
626
+ # type: 'string'
627
+ # required: true
628
+ # - in: 'query'
629
+ # name: 'cancelBy'
630
+ # description: 'For MarketplaceOrderItems table'
631
+ # type: 'string'
632
+ - in: 'body'
633
+ name: 'body'
634
+ schema:
635
+ type: 'object'
636
+ properties:
637
+ data:
638
+ type: 'object'
639
+ properties:
640
+ storeId:
641
+ type: 'string'
642
+ example: 'BL76D28F'
643
+ required: true
644
+ description: 'storeId parameter refers to the name column in the MarketplaceStores table.'
645
+ orderNo:
646
+ type: 'string'
647
+ example: 'string'
648
+ required: true
649
+ remark:
650
+ type: 'string'
651
+ example: 'string'
652
+ required: true
653
+ cancelBy:
654
+ type: 'string'
655
+ example: 'string'
656
+ description: 'For MarketplaceOrderItems table'
657
+ responses:
658
+ '200':
659
+ description: 'successful operation'
660
+ content:
661
+ application/json:
662
+ schema:
663
+ type: 'array'
664
+ items:
665
+ $ref: '#/definitions/CancelMarketplaceOrder'
666
+
667
+ # update-marketplace-order-delivered
668
+ api/v1/marketplace/update-marketplace-order-delivered:
669
+ post:
670
+ tags:
671
+ - 'Marketplace'
672
+ summary: 'Update marketplace order delivered.'
673
+ description: 'Update Marketplace Order Delivered.'
674
+ operationId: 'updateMarketplaceOrderDelivered'
675
+ produces:
676
+ - 'application/json'
677
+ parameters:
678
+ # - in: 'query'
679
+ # name: 'storeId'
680
+ # description: 'storeId parameter refers to the name column in the MarketplaceStores table.'
681
+ # type: 'string'
682
+ # required: true
683
+ # - in: 'query'
684
+ # name: 'orderNo'
685
+ # description: 'Order Number'
686
+ # type: 'string'
687
+ # required: true
688
+ - in: 'body'
689
+ name: 'body'
690
+ schema:
691
+ type: 'object'
692
+ properties:
693
+ data:
694
+ type: 'object'
695
+ properties:
696
+ storeId:
697
+ type: 'string'
698
+ example: 'BL76D28F'
699
+ description: 'storeId parameter refers to the name column in the MarketplaceStores table.'
700
+ required: true
701
+ orderNo:
702
+ type: 'string'
703
+ example: 'string'
704
+ required: true
705
+ responses:
706
+ '200':
707
+ description: 'success'
708
+ content:
709
+ application/json:
710
+ schema:
711
+ type: 'array'
712
+ items:
713
+ $ref: '#/definitions/UpdateMarketplaceOrderDelivered'
714
+
715
+ # get-marketplace-order-shipping-list
716
+ api/v1/marketplace/get-marketplace-order-shipping-list:
717
+ get:
718
+ tags:
719
+ - 'Marketplace'
720
+ summary: 'Get list of marketplace order shipping list.'
721
+ description: 'Get list of marketplace order shipping list.'
722
+ operationId: 'getMarketplaceOrderShippingList'
723
+ consumes:
724
+ - 'application/json'
725
+ produces:
726
+ - 'application/json'
727
+ parameters: # edit fields
728
+ - in: 'query'
729
+ name: 'storeId'
730
+ type: 'string'
731
+ required: true
732
+ - in: 'query'
733
+ name: 'shippingNo'
734
+ type: 'string'
735
+ - in: 'query'
736
+ name: 'orderNo'
737
+ type: 'string'
738
+ - in: 'query'
739
+ name: 'status'
740
+ type: 'string'
741
+ - in: 'query'
742
+ name: 'fromDate'
743
+ type: 'datetime'
744
+ default: '7 days before current datetime.'
745
+ description: '(Must use in conjunction with “toDate”) In UTC format eg: 2022-07-25T03:40:04Z'
746
+ - in: 'query'
747
+ name: 'toDate'
748
+ type: 'datetime'
749
+ default: 'Current datetime.'
750
+ description: '(Must use in conjunction with “fromDate”) In UTC format eg: 2022-07-25T03:40:04Z'
751
+ - in: 'query'
752
+ name: 'limit'
753
+ type: 'integer'
754
+ default: 100
755
+ max: 100
756
+ - in: 'query'
757
+ name: 'offset'
758
+ type: 'integer'
759
+ default: 0
760
+ responses:
761
+ '200':
762
+ description: 'successful operation'
763
+ content:
764
+ application/json:
765
+ schema:
766
+ type: 'array'
767
+ items:
768
+ $ref: '#/definitions/GetMarketplaceOrderShippingList'
769
+
770
+ # update-marketplace-shipping-order
771
+ api/v1/marketplace/update-marketplace-shipping-order:
772
+ post:
773
+ tags:
774
+ - 'Marketplace'
775
+ summary: 'Update marketplace shipping order.'
776
+ description: 'Update Marketplace Shipping Order.'
777
+ operationId: 'updateMarketplaceShippingOrder'
778
+ produces:
779
+ - 'application/json'
780
+ parameters:
781
+ # - in: 'query'
782
+ # name: 'storeId'
783
+ # description: 'storeId parameter refers to the name column in the MarketplaceStores table.'
784
+ # type: 'string'
785
+ # required: true
786
+ # - in: 'query'
787
+ # name: 'orderNo'
788
+ # description: 'Order Number'
789
+ # type: 'string'
790
+ # required: true
791
+ # - in: 'query'
792
+ # name: 'transporter'
793
+ # type: 'string'
794
+ # - in: 'query'
795
+ # name: 'airwayBill'
796
+ # type: 'string'
797
+ # required: true
798
+ # - in: 'query'
799
+ # name: 'trackingNo'
800
+ # type: 'string'
801
+ # required: true
802
+ # - in: 'query'
803
+ # name: 'status'
804
+ # type: 'string'
805
+ - in: 'body'
806
+ name: 'body'
807
+ schema:
808
+ type: 'object'
809
+ properties:
810
+ data:
811
+ type: 'object'
812
+ properties:
813
+ storeId:
814
+ type: 'string'
815
+ example: 'BL76D28F'
816
+ required: true
817
+ orderNo:
818
+ type: 'string'
819
+ example: 'string'
820
+ required: true
821
+ transporter:
822
+ type: 'string'
823
+ example: 'string'
824
+ airwayBill:
825
+ type: 'string'
826
+ example: 'string'
827
+ required: true
828
+ trackingNo:
829
+ type: 'string'
830
+ example: 'string'
831
+ required: true
832
+ # status:
833
+ # type: 'string'
834
+ # example: 'string'
835
+ responses:
836
+ '200':
837
+ description: 'success'
838
+ content:
839
+ application/json:
840
+ schema:
841
+ type: 'array'
842
+ items:
843
+ $ref: '#/definitions/UpdateMarketplaceShippingOrder'