@medusajs/types 1.12.0-preview-20240925125714 → 1.12.0-preview-20240930112011

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.
Files changed (57) hide show
  1. package/dist/cart/workflows.d.ts +1 -0
  2. package/dist/cart/workflows.d.ts.map +1 -1
  3. package/dist/common/config-module.d.ts +2 -2
  4. package/dist/common/config-module.d.ts.map +1 -1
  5. package/dist/fulfillment/mutations/fulfillment.d.ts +5 -0
  6. package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
  7. package/dist/http/cart/store/entities.d.ts +14 -2
  8. package/dist/http/cart/store/entities.d.ts.map +1 -1
  9. package/dist/http/claim/admin/entities.d.ts +5 -0
  10. package/dist/http/claim/admin/entities.d.ts.map +1 -1
  11. package/dist/http/claim/admin/responses.d.ts +4 -3
  12. package/dist/http/claim/admin/responses.d.ts.map +1 -1
  13. package/dist/http/claim/common.d.ts +1 -1
  14. package/dist/http/exchange/admin/responses.d.ts +4 -3
  15. package/dist/http/exchange/admin/responses.d.ts.map +1 -1
  16. package/dist/http/order/admin/entities.d.ts +24 -12
  17. package/dist/http/order/admin/entities.d.ts.map +1 -1
  18. package/dist/http/order/admin/responses.d.ts +2 -3
  19. package/dist/http/order/admin/responses.d.ts.map +1 -1
  20. package/dist/http/order/common.d.ts +17 -50
  21. package/dist/http/order/common.d.ts.map +1 -1
  22. package/dist/http/order/store/entities.d.ts +19 -3
  23. package/dist/http/order/store/entities.d.ts.map +1 -1
  24. package/dist/http/order-edit/admin/responses.d.ts +3 -3
  25. package/dist/http/order-edit/admin/responses.d.ts.map +1 -1
  26. package/dist/http/payment/admin/entities.d.ts +7 -0
  27. package/dist/http/payment/admin/entities.d.ts.map +1 -1
  28. package/dist/http/payment/store/entities.d.ts +3 -0
  29. package/dist/http/payment/store/entities.d.ts.map +1 -1
  30. package/dist/http/product/admin/entitites.d.ts +8 -1
  31. package/dist/http/product/admin/entitites.d.ts.map +1 -1
  32. package/dist/http/product/store/entitites.d.ts +16 -4
  33. package/dist/http/product/store/entitites.d.ts.map +1 -1
  34. package/dist/http/product-category/store/entities.d.ts +3 -1
  35. package/dist/http/product-category/store/entities.d.ts.map +1 -1
  36. package/dist/http/promotion/admin/entities.d.ts +8 -1
  37. package/dist/http/promotion/admin/entities.d.ts.map +1 -1
  38. package/dist/http/return/admin/entities.d.ts +1 -0
  39. package/dist/http/return/admin/entities.d.ts.map +1 -1
  40. package/dist/http/return/store/entities.d.ts +4 -1
  41. package/dist/http/return/store/entities.d.ts.map +1 -1
  42. package/dist/http/return-reason/admin/payloads.d.ts +7 -4
  43. package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
  44. package/dist/http/tax-rate/admin/entities.d.ts +1 -1
  45. package/dist/http/tax-rate/admin/entities.d.ts.map +1 -1
  46. package/dist/http/tax-rate/admin/payloads.d.ts +2 -2
  47. package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
  48. package/dist/http/tax-region/admin/payloads.d.ts +1 -1
  49. package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
  50. package/dist/modules-sdk/index.d.ts +5 -0
  51. package/dist/modules-sdk/index.d.ts.map +1 -1
  52. package/dist/order/common.d.ts +335 -13
  53. package/dist/order/common.d.ts.map +1 -1
  54. package/dist/payment/common.d.ts +1 -1
  55. package/dist/payment/common.d.ts.map +1 -1
  56. package/dist/tsconfig.tsbuildinfo +1 -0
  57. package/package.json +18 -5
@@ -3,11 +3,12 @@ import { OperatorMap } from "../dal/utils";
3
3
  import { FulfillmentDTO } from "../fulfillment";
4
4
  import { PaymentCollectionDTO } from "../payment";
5
5
  import { BigNumberInput, BigNumberRawValue, BigNumberValue } from "../totals";
6
- import { ClaimReason } from "./mutations";
6
+ import { ClaimReason, OrderClaimType } from "./mutations";
7
7
  /**
8
8
  * The change action's type.
9
9
  */
10
10
  export type ChangeActionType = "CANCEL_RETURN_ITEM" | "FULFILL_ITEM" | "DELIVER_ITEM" | "CANCEL_ITEM_FULFILLMENT" | "ITEM_ADD" | "ITEM_REMOVE" | "ITEM_UPDATE" | "RECEIVE_DAMAGED_RETURN_ITEM" | "RECEIVE_RETURN_ITEM" | "RETURN_ITEM" | "SHIPPING_ADD" | "SHIPPING_REMOVE" | "SHIP_ITEM" | "WRITE_OFF_ITEM" | "REINSTATE_ITEM";
11
+ export type OrderChangeStatus = "confirmed" | "declined" | "requested" | "pending" | "canceled";
11
12
  /**
12
13
  * @interface
13
14
  *
@@ -80,6 +81,8 @@ export type OrderSummaryDTO = {
80
81
  pending_difference: BigNumberValue;
81
82
  /**
82
83
  * The raw pending difference of the order.
84
+ *
85
+ * @ignore
83
86
  */
84
87
  raw_pending_difference: BigNumberRawValue;
85
88
  };
@@ -215,10 +218,14 @@ export interface OrderShippingMethodTaxLineDTO extends OrderTaxLineDTO {
215
218
  subtotal: BigNumberValue;
216
219
  /**
217
220
  * The raw total tax relative to the shipping method.
221
+ *
222
+ * @ignore
218
223
  */
219
224
  raw_total: BigNumberRawValue;
220
225
  /**
221
226
  * The raw subtotal tax relative to the shipping method.
227
+ *
228
+ * @ignore
222
229
  */
223
230
  raw_subtotal: BigNumberRawValue;
224
231
  }
@@ -246,10 +253,14 @@ export interface OrderLineItemTaxLineDTO extends OrderTaxLineDTO {
246
253
  subtotal: BigNumberValue;
247
254
  /**
248
255
  * The raw total tax relative to the item.
256
+ *
257
+ * @ignore
249
258
  */
250
259
  raw_total: BigNumberRawValue;
251
260
  /**
252
261
  * The raw subtotal tax relative to the item.
262
+ *
263
+ * @ignore
253
264
  */
254
265
  raw_subtotal: BigNumberRawValue;
255
266
  }
@@ -344,6 +355,8 @@ export interface OrderShippingMethodDTO {
344
355
  amount: BigNumberValue;
345
356
  /**
346
357
  * The raw price of the shipping method.
358
+ *
359
+ * @ignore
347
360
  */
348
361
  raw_amount: BigNumberRawValue;
349
362
  /**
@@ -416,34 +429,50 @@ export interface OrderShippingMethodDTO {
416
429
  discount_tax_total: BigNumberValue;
417
430
  /**
418
431
  * The raw original total of the order shipping method.
432
+ *
433
+ * @ignore
419
434
  */
420
435
  raw_original_total: BigNumberRawValue;
421
436
  /**
422
437
  * The raw original subtotal of the order shipping method.
438
+ *
439
+ * @ignore
423
440
  */
424
441
  raw_original_subtotal: BigNumberRawValue;
425
442
  /**
426
443
  * The raw original tax total of the order shipping method.
444
+ *
445
+ * @ignore
427
446
  */
428
447
  raw_original_tax_total: BigNumberRawValue;
429
448
  /**
430
449
  * The raw total of the order shipping method.
450
+ *
451
+ * @ignore
431
452
  */
432
453
  raw_total: BigNumberRawValue;
433
454
  /**
434
455
  * The raw subtotal of the order shipping method.
456
+ *
457
+ * @ignore
435
458
  */
436
459
  raw_subtotal: BigNumberRawValue;
437
460
  /**
438
461
  * The raw tax total of the order shipping method.
462
+ *
463
+ * @ignore
439
464
  */
440
465
  raw_tax_total: BigNumberRawValue;
441
466
  /**
442
467
  * The raw discount total of the order shipping method.
468
+ *
469
+ * @ignore
443
470
  */
444
471
  raw_discount_total: BigNumberRawValue;
445
472
  /**
446
473
  * The raw discount tax total of the order shipping method.
474
+ *
475
+ * @ignore
447
476
  */
448
477
  raw_discount_tax_total: BigNumberRawValue;
449
478
  }
@@ -505,54 +534,80 @@ export interface OrderLineItemTotalsDTO {
505
534
  refundable_total_per_unit: BigNumberValue;
506
535
  /**
507
536
  * The raw original total of the order line item.
537
+ *
538
+ * @ignore
508
539
  */
509
540
  raw_original_total: BigNumberRawValue;
510
541
  /**
511
542
  * The raw original subtotal of the order line item.
543
+ *
544
+ * @ignore
512
545
  */
513
546
  raw_original_subtotal: BigNumberRawValue;
514
547
  /**
515
548
  * The raw original tax total of the order line item.
549
+ *
550
+ * @ignore
516
551
  */
517
552
  raw_original_tax_total: BigNumberRawValue;
518
553
  /**
519
554
  * The raw item total of the order line item.
555
+ *
556
+ * @ignore
520
557
  */
521
558
  raw_item_total: BigNumberRawValue;
522
559
  /**
523
560
  * The raw item subtotal of the order line item.
561
+ *
562
+ * @ignore
524
563
  */
525
564
  raw_item_subtotal: BigNumberRawValue;
526
565
  /**
527
566
  * The raw item tax total of the order line item.
567
+ *
568
+ * @ignore
528
569
  */
529
570
  raw_item_tax_total: BigNumberRawValue;
530
571
  /**
531
572
  * The raw total of the order line item.
573
+ *
574
+ * @ignore
532
575
  */
533
576
  raw_total: BigNumberRawValue;
534
577
  /**
535
578
  * The raw subtotal of the order line item.
579
+ *
580
+ * @ignore
536
581
  */
537
582
  raw_subtotal: BigNumberRawValue;
538
583
  /**
539
584
  * The raw tax total of the order line item.
585
+ *
586
+ * @ignore
540
587
  */
541
588
  raw_tax_total: BigNumberRawValue;
542
589
  /**
543
590
  * The raw discount total of the order line item.
591
+ *
592
+ * @ignore
544
593
  */
545
594
  raw_discount_total: BigNumberRawValue;
546
595
  /**
547
596
  * The raw discount tax total of the order line item.
597
+ *
598
+ * @ignore
548
599
  */
549
600
  raw_discount_tax_total: BigNumberRawValue;
550
601
  /**
551
602
  * The raw refundable total of the order line item..
603
+ *
604
+ * @ignore
552
605
  */
553
606
  raw_refundable_total: BigNumberRawValue;
554
607
  /**
555
608
  * The raw refundable total per unit of the order line item.
609
+ *
610
+ * @ignore
556
611
  */
557
612
  raw_refundable_total_per_unit: BigNumberRawValue;
558
613
  }
@@ -642,6 +697,8 @@ export interface OrderLineItemDTO extends OrderLineItemTotalsDTO {
642
697
  compare_at_unit_price?: number;
643
698
  /**
644
699
  * The raw compare at unit price of the line item.
700
+ *
701
+ * @ignore
645
702
  */
646
703
  raw_compare_at_unit_price?: BigNumberRawValue;
647
704
  /**
@@ -650,6 +707,8 @@ export interface OrderLineItemDTO extends OrderLineItemTotalsDTO {
650
707
  unit_price: number;
651
708
  /**
652
709
  * The raw unit price of the line item.
710
+ *
711
+ * @ignore
653
712
  */
654
713
  raw_unit_price: BigNumberRawValue;
655
714
  /**
@@ -658,6 +717,8 @@ export interface OrderLineItemDTO extends OrderLineItemTotalsDTO {
658
717
  quantity: number;
659
718
  /**
660
719
  * The raw quantity of the line item.
720
+ *
721
+ * @ignore
661
722
  */
662
723
  raw_quantity: BigNumberRawValue;
663
724
  /**
@@ -713,6 +774,8 @@ export interface OrderItemDTO {
713
774
  quantity: number;
714
775
  /**
715
776
  * The raw quantity of the order line item.
777
+ *
778
+ * @ignore
716
779
  */
717
780
  raw_quantity: BigNumberRawValue;
718
781
  /**
@@ -721,6 +784,8 @@ export interface OrderItemDTO {
721
784
  fulfilled_quantity: number;
722
785
  /**
723
786
  * The raw fulfilled quantity of the order line item.
787
+ *
788
+ * @ignore
724
789
  */
725
790
  raw_fulfilled_quantity: BigNumberRawValue;
726
791
  /**
@@ -729,6 +794,8 @@ export interface OrderItemDTO {
729
794
  delivered_quantity: number;
730
795
  /**
731
796
  * The raw delivered quantity of the order line item.
797
+ *
798
+ * @ignore
732
799
  */
733
800
  raw_delivered_quantity: BigNumberRawValue;
734
801
  /**
@@ -737,6 +804,8 @@ export interface OrderItemDTO {
737
804
  shipped_quantity: number;
738
805
  /**
739
806
  * The raw shipped quantity of the order line item.
807
+ *
808
+ * @ignore
740
809
  */
741
810
  raw_shipped_quantity: BigNumberRawValue;
742
811
  /**
@@ -745,6 +814,8 @@ export interface OrderItemDTO {
745
814
  return_requested_quantity: number;
746
815
  /**
747
816
  * The raw quantity of return requested for the order line item.
817
+ *
818
+ * @ignore
748
819
  */
749
820
  raw_return_requested_quantity: BigNumberRawValue;
750
821
  /**
@@ -753,6 +824,8 @@ export interface OrderItemDTO {
753
824
  return_received_quantity: number;
754
825
  /**
755
826
  * The raw quantity of return received for the order line item.
827
+ *
828
+ * @ignore
756
829
  */
757
830
  raw_return_received_quantity: BigNumberRawValue;
758
831
  /**
@@ -761,6 +834,8 @@ export interface OrderItemDTO {
761
834
  return_dismissed_quantity: number;
762
835
  /**
763
836
  * The raw quantity of return dismissed for the order line item.
837
+ *
838
+ * @ignore
764
839
  */
765
840
  raw_return_dismissed_quantity: BigNumberRawValue;
766
841
  /**
@@ -769,6 +844,8 @@ export interface OrderItemDTO {
769
844
  written_off_quantity: number;
770
845
  /**
771
846
  * The raw quantity of written off for the order line item.
847
+ *
848
+ * @ignore
772
849
  */
773
850
  raw_written_off_quantity: BigNumberRawValue;
774
851
  /**
@@ -877,11 +954,11 @@ export interface OrderDTO {
877
954
  /**
878
955
  * When the order was created.
879
956
  */
880
- created_at?: string | Date;
957
+ created_at: string | Date;
881
958
  /**
882
959
  * When the order was updated.
883
960
  */
884
- updated_at?: string | Date;
961
+ updated_at: string | Date;
885
962
  /**
886
963
  * The original item total of the order.
887
964
  */
@@ -976,90 +1053,134 @@ export interface OrderDTO {
976
1053
  original_shipping_tax_total: BigNumberValue;
977
1054
  /**
978
1055
  * The raw original item total of the order.
1056
+ *
1057
+ * @ignore
979
1058
  */
980
1059
  raw_original_item_total: BigNumberRawValue;
981
1060
  /**
982
1061
  * The raw original item subtotal of the order.
1062
+ *
1063
+ * @ignore
983
1064
  */
984
1065
  raw_original_item_subtotal: BigNumberRawValue;
985
1066
  /**
986
1067
  * The raw original item tax total of the order.
1068
+ *
1069
+ * @ignore
987
1070
  */
988
1071
  raw_original_item_tax_total: BigNumberRawValue;
989
1072
  /**
990
1073
  * The raw item total of the order.
1074
+ *
1075
+ * @ignore
991
1076
  */
992
1077
  raw_item_total: BigNumberRawValue;
993
1078
  /**
994
1079
  * The raw item subtotal of the order.
1080
+ *
1081
+ * @ignore
995
1082
  */
996
1083
  raw_item_subtotal: BigNumberRawValue;
997
1084
  /**
998
1085
  * The raw item tax total of the order.
1086
+ *
1087
+ * @ignore
999
1088
  */
1000
1089
  raw_item_tax_total: BigNumberRawValue;
1001
1090
  /**
1002
1091
  * The raw original total of the order.
1092
+ *
1093
+ * @ignore
1003
1094
  */
1004
1095
  raw_original_total: BigNumberRawValue;
1005
1096
  /**
1006
1097
  * The raw original subtotal of the order.
1098
+ *
1099
+ * @ignore
1007
1100
  */
1008
1101
  raw_original_subtotal: BigNumberRawValue;
1009
1102
  /**
1010
1103
  * The raw original tax total of the order.
1104
+ *
1105
+ * @ignore
1011
1106
  */
1012
1107
  raw_original_tax_total: BigNumberRawValue;
1013
1108
  /**
1014
1109
  * The raw total of the order.
1110
+ *
1111
+ * @ignore
1015
1112
  */
1016
1113
  raw_total: BigNumberRawValue;
1017
1114
  /**
1018
1115
  * The raw subtotal of the order. (Excluding taxes)
1116
+ *
1117
+ * @ignore
1019
1118
  */
1020
1119
  raw_subtotal: BigNumberRawValue;
1021
1120
  /**
1022
1121
  * The raw tax total of the order.
1122
+ *
1123
+ * @ignore
1023
1124
  */
1024
1125
  raw_tax_total: BigNumberRawValue;
1025
1126
  /**
1026
1127
  * The raw discount total of the order.
1128
+ *
1129
+ * @ignore
1027
1130
  */
1028
1131
  raw_discount_total: BigNumberRawValue;
1029
1132
  /**
1030
1133
  * The raw discount tax total of the order.
1134
+ *
1135
+ * @ignore
1031
1136
  */
1032
1137
  raw_discount_tax_total: BigNumberRawValue;
1033
1138
  /**
1034
1139
  * The raw gift card total of the order.
1140
+ *
1141
+ * @ignore
1035
1142
  */
1036
1143
  raw_gift_card_total: BigNumberRawValue;
1037
1144
  /**
1038
1145
  * The raw gift card tax total of the order.
1146
+ *
1147
+ * @ignore
1039
1148
  */
1040
1149
  raw_gift_card_tax_total: BigNumberRawValue;
1041
1150
  /**
1042
1151
  * The raw shipping total of the order.
1152
+ *
1153
+ * @ignore
1043
1154
  */
1044
1155
  raw_shipping_total: BigNumberRawValue;
1045
1156
  /**
1046
1157
  * The raw shipping subtotal of the order.
1158
+ *
1159
+ * @ignore
1047
1160
  */
1048
1161
  raw_shipping_subtotal: BigNumberRawValue;
1049
1162
  /**
1050
1163
  * The raw shipping tax total of the order.
1164
+ *
1165
+ * @ignore
1051
1166
  */
1052
1167
  raw_shipping_tax_total: BigNumberRawValue;
1053
1168
  /**
1054
1169
  * The raw original shipping total of the order.
1170
+ *
1171
+ * @ignore
1055
1172
  */
1056
1173
  raw_original_shipping_total: BigNumberRawValue;
1057
1174
  /**
1058
1175
  * The raw original shipping subtotal of the order.
1176
+ *
1177
+ * @ignore
1059
1178
  */
1060
1179
  raw_original_shipping_subtotal: BigNumberRawValue;
1061
1180
  /**
1062
1181
  * The raw original shipping tax total of the order.
1182
+ *
1183
+ * @ignore
1063
1184
  */
1064
1185
  raw_original_shipping_tax_total: BigNumberRawValue;
1065
1186
  }
@@ -1070,7 +1191,7 @@ type ReturnStatus = "requested" | "received" | "partially_received" | "canceled"
1070
1191
  /**
1071
1192
  * The return details.
1072
1193
  */
1073
- export interface ReturnDTO extends Omit<OrderDTO, "status" | "version" | "items"> {
1194
+ export interface ReturnDTO {
1074
1195
  /**
1075
1196
  * The ID of the return.
1076
1197
  */
@@ -1083,14 +1204,91 @@ export interface ReturnDTO extends Omit<OrderDTO, "status" | "version" | "items"
1083
1204
  * The refund amount of the return.
1084
1205
  */
1085
1206
  refund_amount?: BigNumberValue;
1207
+ /**
1208
+ * The raw refund amount of the return.
1209
+ */
1210
+ raw_refund_amount?: BigNumberValue;
1086
1211
  /**
1087
1212
  * The associated order's ID.
1088
1213
  */
1089
1214
  order_id: string;
1215
+ /**
1216
+ * The associated order.
1217
+ */
1218
+ order?: OrderDTO;
1090
1219
  /**
1091
1220
  * The items of the return
1092
1221
  */
1093
1222
  items: OrderReturnItemDTO[];
1223
+ /**
1224
+ * The associated exchange's ID.
1225
+ */
1226
+ exchange_id?: string;
1227
+ /**
1228
+ * The associated exchange.
1229
+ */
1230
+ exchange?: OrderExchangeDTO;
1231
+ /**
1232
+ * The associated claim's ID.
1233
+ */
1234
+ claim_id?: string;
1235
+ /**
1236
+ * The associated claim.
1237
+ */
1238
+ claim?: OrderClaimDTO;
1239
+ /**
1240
+ * The return's display ID.
1241
+ */
1242
+ display_id: number;
1243
+ /**
1244
+ * The ID of the location to return the items to.
1245
+ */
1246
+ location_id?: string;
1247
+ /**
1248
+ * Whether the customer should receive notifications related
1249
+ * to updates on the return.
1250
+ */
1251
+ no_notification?: boolean;
1252
+ /**
1253
+ * The id of the user that created the return
1254
+ */
1255
+ created_by?: string | null;
1256
+ /**
1257
+ * The shipping methods used to receive the returned items.
1258
+ */
1259
+ shipping_methods?: OrderShippingMethodDTO[];
1260
+ /**
1261
+ * The return's transactions if refund is required.
1262
+ */
1263
+ transactions?: OrderTransactionDTO[];
1264
+ /**
1265
+ * Holds custom data in key-value pairs.
1266
+ */
1267
+ metadata: Record<string, unknown> | null;
1268
+ /**
1269
+ * The creation date of the return.
1270
+ */
1271
+ created_at?: Date | string;
1272
+ /**
1273
+ * The update date of the return.
1274
+ */
1275
+ updated_at?: Date | string;
1276
+ /**
1277
+ * The deletion date of the return.
1278
+ */
1279
+ deleted_at?: Date | string;
1280
+ /**
1281
+ * The cancelation date of the return.
1282
+ */
1283
+ canceled_at?: Date | string;
1284
+ /**
1285
+ * The request date of the return.
1286
+ */
1287
+ requested_at?: Date | string;
1288
+ /**
1289
+ * The receival date of the return.
1290
+ */
1291
+ received_at?: Date | string;
1094
1292
  }
1095
1293
  /**
1096
1294
  * The order return item details.
@@ -1122,6 +1320,8 @@ export interface OrderReturnItemDTO {
1122
1320
  quantity: number;
1123
1321
  /**
1124
1322
  * The raw quantity of the item to return.
1323
+ *
1324
+ * @ignore
1125
1325
  */
1126
1326
  raw_quantity: BigNumberRawValue;
1127
1327
  /**
@@ -1130,6 +1330,8 @@ export interface OrderReturnItemDTO {
1130
1330
  received_quantity?: number;
1131
1331
  /**
1132
1332
  * The raw received quantity of the return item.
1333
+ *
1334
+ * @ignore
1133
1335
  */
1134
1336
  raw_received_quantity?: BigNumberRawValue;
1135
1337
  /**
@@ -1165,6 +1367,10 @@ export interface OrderClaimItemDTO {
1165
1367
  * The associated item's ID.
1166
1368
  */
1167
1369
  item_id: string;
1370
+ /**
1371
+ * The associated item.
1372
+ */
1373
+ item: OrderLineItemDTO;
1168
1374
  /**
1169
1375
  * The quantity of the order claim item
1170
1376
  */
@@ -1175,6 +1381,8 @@ export interface OrderClaimItemDTO {
1175
1381
  reason: ClaimReason;
1176
1382
  /**
1177
1383
  * The raw quantity of the order claim item
1384
+ *
1385
+ * @ignore
1178
1386
  */
1179
1387
  raw_quantity: BigNumberRawValue;
1180
1388
  /**
@@ -1239,12 +1447,18 @@ export interface OrderExchangeItemDTO {
1239
1447
  * The associated item's ID.
1240
1448
  */
1241
1449
  item_id: string;
1450
+ /**
1451
+ * The associated item.
1452
+ */
1453
+ item: OrderLineItemDTO;
1242
1454
  /**
1243
1455
  * The quantity of the order exchange item
1244
1456
  */
1245
1457
  quantity: number;
1246
1458
  /**
1247
1459
  * The raw quantity of the order exchange item
1460
+ *
1461
+ * @ignore
1248
1462
  */
1249
1463
  raw_quantity: BigNumberRawValue;
1250
1464
  /**
@@ -1263,14 +1477,33 @@ export interface OrderExchangeItemDTO {
1263
1477
  /**
1264
1478
  * The claim details.
1265
1479
  */
1266
- export interface OrderClaimDTO extends Omit<OrderDTO, "status" | "version" | "items"> {
1480
+ export interface OrderClaimDTO {
1481
+ /**
1482
+ * The claim's ID.
1483
+ */
1484
+ id: string;
1485
+ /**
1486
+ * The claim's type.
1487
+ */
1488
+ type: OrderClaimType;
1267
1489
  /**
1268
1490
  * The ID of the associated order.
1269
1491
  */
1270
1492
  order_id: string;
1271
1493
  /**
1272
- * The items to be received from the customer
1273
- * if the claim's type is `replace`.
1494
+ * The associated order.
1495
+ */
1496
+ order?: OrderDTO;
1497
+ /**
1498
+ * The version of the order when the claim is applied.
1499
+ */
1500
+ order_version: number;
1501
+ /**
1502
+ * The claim's display ID.
1503
+ */
1504
+ display_id: number;
1505
+ /**
1506
+ * The items to be received from the customer.
1274
1507
  */
1275
1508
  claim_items: any[];
1276
1509
  /**
@@ -1296,22 +1529,66 @@ export interface OrderClaimDTO extends Omit<OrderDTO, "status" | "version" | "it
1296
1529
  */
1297
1530
  refund_amount?: BigNumberValue;
1298
1531
  /**
1299
- * The id of the user that creates the order claim
1532
+ * The raw refund amount of the claim.
1533
+ */
1534
+ raw_refund_amount?: BigNumberValue;
1535
+ /**
1536
+ * The id of the user that created the order claim
1300
1537
  */
1301
1538
  created_by?: string | null;
1539
+ /**
1540
+ * The shipping methods used to send the additional items.
1541
+ */
1542
+ shipping_methods?: OrderShippingMethodDTO[];
1543
+ /**
1544
+ * The claim's transactions if additional payment is required.
1545
+ */
1546
+ transactions?: OrderTransactionDTO[];
1547
+ /**
1548
+ * Holds custom data in key-value pairs.
1549
+ */
1550
+ metadata: Record<string, unknown> | null;
1551
+ /**
1552
+ * The creation date of the claim.
1553
+ */
1554
+ created_at?: Date | string;
1555
+ /**
1556
+ * The update date of the claim.
1557
+ */
1558
+ updated_at?: Date | string;
1559
+ /**
1560
+ * The deletion date of the claim.
1561
+ */
1562
+ deleted_at?: Date | string;
1563
+ /**
1564
+ * The cancelation date of the claim.
1565
+ */
1566
+ canceled_at?: Date | string;
1302
1567
  }
1303
1568
  /**
1304
1569
  * The exchange details.
1305
1570
  */
1306
- export interface OrderExchangeDTO extends Omit<OrderDTO, "status" | "version" | "items"> {
1571
+ export interface OrderExchangeDTO {
1572
+ /**
1573
+ * The exchange's ID.
1574
+ */
1575
+ id: string;
1307
1576
  /**
1308
1577
  * The associated order's ID.
1309
1578
  */
1310
1579
  order_id: string;
1311
1580
  /**
1312
- * The items to be returned from the customer.
1581
+ * The associated order.
1313
1582
  */
1314
- return_items: any[];
1583
+ order?: OrderDTO;
1584
+ /**
1585
+ * The version of the order when the exchange is applied.
1586
+ */
1587
+ order_version: number;
1588
+ /**
1589
+ * The exchange's display ID.
1590
+ */
1591
+ display_id: number;
1315
1592
  /**
1316
1593
  * The items to be sent to the customer.
1317
1594
  */
@@ -1329,6 +1606,18 @@ export interface OrderExchangeDTO extends Omit<OrderDTO, "status" | "version" |
1329
1606
  * - If equal to `0`, no payment is required by either sides.
1330
1607
  */
1331
1608
  difference_due?: BigNumberValue;
1609
+ /**
1610
+ * The raw difference due of the order exchange.
1611
+ *
1612
+ * - If less than `0`, the merchant owes the customer this amount.
1613
+ * - If greater than `0`, the customer owes the merchange this amount.
1614
+ * - If equal to `0`, no payment is required by either sides.
1615
+ */
1616
+ raw_difference_due?: BigNumberValue;
1617
+ /**
1618
+ * Whether the variants that are out of stock can be added to the exchange.
1619
+ */
1620
+ allow_backorder?: boolean;
1332
1621
  /**
1333
1622
  * The associated return.
1334
1623
  */
@@ -1338,9 +1627,37 @@ export interface OrderExchangeDTO extends Omit<OrderDTO, "status" | "version" |
1338
1627
  */
1339
1628
  return_id?: string;
1340
1629
  /**
1341
- * The id of the user that creates the order exchange
1630
+ * The id of the user that created the order exchange
1342
1631
  */
1343
1632
  created_by?: string | null;
1633
+ /**
1634
+ * The shipping methods used to send the additional items.
1635
+ */
1636
+ shipping_methods?: OrderShippingMethodDTO[];
1637
+ /**
1638
+ * The exchange's transactions if additional payment is required.
1639
+ */
1640
+ transactions?: OrderTransactionDTO[];
1641
+ /**
1642
+ * Holds custom data in key-value pairs.
1643
+ */
1644
+ metadata: Record<string, unknown> | null;
1645
+ /**
1646
+ * The creation date of the exchange.
1647
+ */
1648
+ created_at?: Date | string;
1649
+ /**
1650
+ * The update date of the exchange.
1651
+ */
1652
+ updated_at?: Date | string;
1653
+ /**
1654
+ * The deletion date of the exchange.
1655
+ */
1656
+ deleted_at?: Date | string;
1657
+ /**
1658
+ * The cancelation date of the exchange.
1659
+ */
1660
+ canceled_at?: Date | string;
1344
1661
  }
1345
1662
  /**
1346
1663
  * The payment's status.
@@ -1440,7 +1757,7 @@ export interface OrderChangeDTO {
1440
1757
  /**
1441
1758
  * The status of the order change
1442
1759
  */
1443
- status: string;
1760
+ status: OrderChangeStatus;
1444
1761
  /**
1445
1762
  * The requested by of the order change
1446
1763
  */
@@ -1583,6 +1900,8 @@ export interface OrderTransactionDTO {
1583
1900
  amount: BigNumberValue;
1584
1901
  /**
1585
1902
  * The raw amount of the transaction
1903
+ *
1904
+ * @ignore
1586
1905
  */
1587
1906
  raw_amount: BigNumberRawValue;
1588
1907
  /**
@@ -1630,6 +1949,8 @@ export interface OrderTransactionDTO {
1630
1949
  amount: BigNumberValue;
1631
1950
  /**
1632
1951
  * The raw amount of the transaction
1952
+ *
1953
+ * @ignore
1633
1954
  */
1634
1955
  raw_amount: BigNumberRawValue;
1635
1956
  /**
@@ -2172,6 +2493,7 @@ export interface OrderPreviewDTO extends Omit<OrderDTO, "items" | "shipping_meth
2172
2493
  shipping_methods: (OrderShippingMethodDTO & {
2173
2494
  actions?: OrderChangeActionDTO[];
2174
2495
  })[];
2496
+ return_requested_total: number;
2175
2497
  }
2176
2498
  export {};
2177
2499
  //# sourceMappingURL=common.d.ts.map