@shushed/helpers 0.0.8 → 0.0.10

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 (142) hide show
  1. package/dist/index.d.ts +29663 -3
  2. package/dist/index.js +348 -3
  3. package/dist/package.json +1 -3
  4. package/package.json +2 -4
  5. package/dist/dist-dereferenced/country.d.ts +0 -8
  6. package/dist/dist-dereferenced/country.js +0 -2
  7. package/dist/dist-dereferenced/currency.d.ts +0 -8
  8. package/dist/dist-dereferenced/currency.js +0 -2
  9. package/dist/dist-dereferenced/index.d.ts +0 -7
  10. package/dist/dist-dereferenced/index.js +0 -7
  11. package/dist/dist-dereferenced/messages/index.d.ts +0 -1
  12. package/dist/dist-dereferenced/messages/index.js +0 -1
  13. package/dist/dist-dereferenced/messages/order/delivered.d.ts +0 -3410
  14. package/dist/dist-dereferenced/messages/order/delivered.js +0 -2
  15. package/dist/dist-dereferenced/messages/order/index.d.ts +0 -6
  16. package/dist/dist-dereferenced/messages/order/index.js +0 -6
  17. package/dist/dist-dereferenced/messages/order/new.d.ts +0 -3410
  18. package/dist/dist-dereferenced/messages/order/new.js +0 -2
  19. package/dist/dist-dereferenced/messages/order/processed.d.ts +0 -3404
  20. package/dist/dist-dereferenced/messages/order/processed.js +0 -2
  21. package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3410
  22. package/dist/dist-dereferenced/messages/order/return-initiated.js +0 -2
  23. package/dist/dist-dereferenced/messages/order/returned.d.ts +0 -3410
  24. package/dist/dist-dereferenced/messages/order/returned.js +0 -2
  25. package/dist/dist-dereferenced/messages/order/shipped.d.ts +0 -3410
  26. package/dist/dist-dereferenced/messages/order/shipped.js +0 -2
  27. package/dist/dist-dereferenced/money.d.ts +0 -43
  28. package/dist/dist-dereferenced/money.js +0 -2
  29. package/dist/dist-dereferenced/order/address.d.ts +0 -51
  30. package/dist/dist-dereferenced/order/address.js +0 -2
  31. package/dist/dist-dereferenced/order/customer.d.ts +0 -10
  32. package/dist/dist-dereferenced/order/customer.js +0 -2
  33. package/dist/dist-dereferenced/order/index.d.ts +0 -7
  34. package/dist/dist-dereferenced/order/index.js +0 -7
  35. package/dist/dist-dereferenced/order/item.d.ts +0 -450
  36. package/dist/dist-dereferenced/order/item.js +0 -2
  37. package/dist/dist-dereferenced/order/orderMain.d.ts +0 -3394
  38. package/dist/dist-dereferenced/order/orderMain.js +0 -2
  39. package/dist/dist-dereferenced/order/payment.d.ts +0 -90
  40. package/dist/dist-dereferenced/order/payment.js +0 -2
  41. package/dist/dist-dereferenced/order/shipment/index.d.ts +0 -5
  42. package/dist/dist-dereferenced/order/shipment/index.js +0 -5
  43. package/dist/dist-dereferenced/order/shipment/item/index.d.ts +0 -3
  44. package/dist/dist-dereferenced/order/shipment/item/index.js +0 -3
  45. package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -19
  46. package/dist/dist-dereferenced/order/shipment/item/itemMain.js +0 -2
  47. package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +0 -38
  48. package/dist/dist-dereferenced/order/shipment/item/returned.js +0 -2
  49. package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +0 -4
  50. package/dist/dist-dereferenced/order/shipment/pos/index.js +0 -4
  51. package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -351
  52. package/dist/dist-dereferenced/order/shipment/pos/outbound.js +0 -2
  53. package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -308
  54. package/dist/dist-dereferenced/order/shipment/pos/posMain.js +0 -2
  55. package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +0 -365
  56. package/dist/dist-dereferenced/order/shipment/pos/return.js +0 -2
  57. package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -275
  58. package/dist/dist-dereferenced/order/shipment/shipmentMain.js +0 -2
  59. package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -4
  60. package/dist/dist-dereferenced/order/shipment/shipped/index.js +0 -4
  61. package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -348
  62. package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +0 -2
  63. package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -369
  64. package/dist/dist-dereferenced/order/shipment/shipped/return.js +0 -2
  65. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -307
  66. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -2
  67. package/dist/dist-dereferenced/productDraft.d.ts +0 -523
  68. package/dist/dist-dereferenced/productDraft.js +0 -2
  69. package/dist/dist-dereferenced/total.d.ts +0 -185
  70. package/dist/dist-dereferenced/total.js +0 -2
  71. package/dist/dist-types/country.d.ts +0 -2
  72. package/dist/dist-types/country.js +0 -1
  73. package/dist/dist-types/currency.d.ts +0 -2
  74. package/dist/dist-types/currency.js +0 -1
  75. package/dist/dist-types/index.d.ts +0 -7
  76. package/dist/dist-types/index.js +0 -2
  77. package/dist/dist-types/messages/index.d.ts +0 -1
  78. package/dist/dist-types/messages/index.js +0 -1
  79. package/dist/dist-types/messages/order/delivered.d.ts +0 -178
  80. package/dist/dist-types/messages/order/delivered.js +0 -1
  81. package/dist/dist-types/messages/order/index.d.ts +0 -6
  82. package/dist/dist-types/messages/order/index.js +0 -1
  83. package/dist/dist-types/messages/order/new.d.ts +0 -178
  84. package/dist/dist-types/messages/order/new.js +0 -1
  85. package/dist/dist-types/messages/order/processed.d.ts +0 -176
  86. package/dist/dist-types/messages/order/processed.js +0 -1
  87. package/dist/dist-types/messages/order/return-initiated.d.ts +0 -178
  88. package/dist/dist-types/messages/order/return-initiated.js +0 -1
  89. package/dist/dist-types/messages/order/returned.d.ts +0 -178
  90. package/dist/dist-types/messages/order/returned.js +0 -1
  91. package/dist/dist-types/messages/order/shipped.d.ts +0 -178
  92. package/dist/dist-types/messages/order/shipped.js +0 -1
  93. package/dist/dist-types/money.d.ts +0 -11
  94. package/dist/dist-types/money.js +0 -1
  95. package/dist/dist-types/order/address.d.ts +0 -12
  96. package/dist/dist-types/order/address.js +0 -1
  97. package/dist/dist-types/order/customer.d.ts +0 -3
  98. package/dist/dist-types/order/customer.js +0 -1
  99. package/dist/dist-types/order/index.d.ts +0 -7
  100. package/dist/dist-types/order/index.js +0 -1
  101. package/dist/dist-types/order/item.d.ts +0 -70
  102. package/dist/dist-types/order/item.js +0 -1
  103. package/dist/dist-types/order/orderMain.d.ts +0 -175
  104. package/dist/dist-types/order/orderMain.js +0 -1
  105. package/dist/dist-types/order/payment.d.ts +0 -25
  106. package/dist/dist-types/order/payment.js +0 -1
  107. package/dist/dist-types/order/shipment/index.d.ts +0 -5
  108. package/dist/dist-types/order/shipment/index.js +0 -3
  109. package/dist/dist-types/order/shipment/item/index.d.ts +0 -3
  110. package/dist/dist-types/order/shipment/item/index.js +0 -1
  111. package/dist/dist-types/order/shipment/item/itemMain.d.ts +0 -5
  112. package/dist/dist-types/order/shipment/item/itemMain.js +0 -1
  113. package/dist/dist-types/order/shipment/item/returned.d.ts +0 -9
  114. package/dist/dist-types/order/shipment/item/returned.js +0 -1
  115. package/dist/dist-types/order/shipment/pos/index.d.ts +0 -4
  116. package/dist/dist-types/order/shipment/pos/index.js +0 -1
  117. package/dist/dist-types/order/shipment/pos/outbound.d.ts +0 -71
  118. package/dist/dist-types/order/shipment/pos/outbound.js +0 -1
  119. package/dist/dist-types/order/shipment/pos/posMain.d.ts +0 -66
  120. package/dist/dist-types/order/shipment/pos/posMain.js +0 -1
  121. package/dist/dist-types/order/shipment/pos/return.d.ts +0 -70
  122. package/dist/dist-types/order/shipment/pos/return.js +0 -1
  123. package/dist/dist-types/order/shipment/shipmentMain.d.ts +0 -58
  124. package/dist/dist-types/order/shipment/shipmentMain.js +0 -1
  125. package/dist/dist-types/order/shipment/shipped/index.d.ts +0 -4
  126. package/dist/dist-types/order/shipment/shipped/index.js +0 -1
  127. package/dist/dist-types/order/shipment/shipped/outbound.d.ts +0 -71
  128. package/dist/dist-types/order/shipment/shipped/outbound.js +0 -1
  129. package/dist/dist-types/order/shipment/shipped/return.d.ts +0 -70
  130. package/dist/dist-types/order/shipment/shipped/return.js +0 -1
  131. package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -65
  132. package/dist/dist-types/order/shipment/shipped/shippedMain.js +0 -1
  133. package/dist/dist-types/productDraft.d.ts +0 -87
  134. package/dist/dist-types/productDraft.js +0 -1
  135. package/dist/dist-types/total.d.ts +0 -43
  136. package/dist/dist-types/total.js +0 -1
  137. package/dist/src-public/index.d.ts +0 -2
  138. package/dist/src-public/index.js +0 -2
  139. package/dist/src-public/sanitize.d.ts +0 -4
  140. package/dist/src-public/sanitize.js +0 -21
  141. package/dist/src-public/validate.d.ts +0 -9
  142. package/dist/src-public/validate.js +0 -28
@@ -1,178 +0,0 @@
1
- export type __MainSchema = (Order & {
2
- status?: ("SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
3
- });
4
- export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
5
- export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
6
- export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
7
- export type OrderShipmentShippedOutbound = (OrderShipmentOutbound & {
8
- type?: "SHIPPED-OUTBOUND";
9
- shipped_by?: ("TORQUE" | "GLOBALE");
10
- items?: OrderShipmentItem[];
11
- [k: string]: unknown;
12
- });
13
- export type OrderShipmentOutbound = (Shipment & {
14
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN");
15
- shipped_by: ("TORQUE" | "GLOBALE" | "CUSTOMER");
16
- courier_name: (("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE") | null);
17
- tracking_code: (string | null);
18
- class_name: ("STANDARD" | "PRIORITY");
19
- });
20
- export type Shipment = (Total & {
21
- erp_id: string;
22
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN" | "POS-OUTBOUND" | "POS-RETURN");
23
- shipped_at: string;
24
- status: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
25
- items: (OrderShipmentItem | OrderShipmentItemReturned)[];
26
- });
27
- export type DiscountAmountPercent = number;
28
- export type OrderShipmentItemReturned = (OrderShipmentItem & {
29
- returnReasonCode: string;
30
- returnReason: (string | null);
31
- });
32
- export type OrderShipmentShippedReturn = (OrderShipmentOutbound & {
33
- type: "SHIPPED-RETURN";
34
- shipped_by: "CUSTOMER";
35
- items: OrderShipmentItemReturned[];
36
- });
37
- export type OrderShipmentPOSOutbound = (OrderShipmentOutbound1 & {
38
- type: "POS-OUTBOUND";
39
- shipped_by: ("TORQUE" | "GLOBALE");
40
- items: OrderShipmentItem[];
41
- });
42
- export type OrderShipmentOutbound1 = (Shipment & {
43
- type?: ("POS-OUTBOUND" | "POS-RETURN");
44
- status?: "RECEIVED";
45
- store_id: (string | null);
46
- store_name: (string | null);
47
- associate_id: (string | null);
48
- associate_name: (string | null);
49
- });
50
- export type OrderShipmentPOSReturn = (OrderShipmentOutbound1 & {
51
- type?: "POS-RETURN";
52
- items?: OrderShipmentItemReturned[];
53
- });
54
- export type Item = (Total & {
55
- sku: string;
56
- linked_style_id?: (string | null);
57
- colour_id?: string;
58
- style_id: string;
59
- colour_label?: string;
60
- size_label?: string;
61
- preorder_date?: (string | null);
62
- quantity: number;
63
- unit_price_status: ("FD" | "MD" | "POS");
64
- returned_quantity?: number;
65
- unit_price_net: Money;
66
- unit_price_gross: Money;
67
- discount_code?: (string | null);
68
- discount_amount_net: Money;
69
- discount_amount_gross: Money;
70
- discount_amount_percent?: number;
71
- cost_net?: Money;
72
- });
73
- export interface Order {
74
- status: ("PENDING" | "PROCESSED" | "SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
75
- erp_order_id: string;
76
- centra_order_id?: string;
77
- sfcc_order_id?: (string | null);
78
- globalee_order_id?: (string | null);
79
- sitoo_order_id?: (string | null);
80
- system_created_by?: ("CUSTOMER" | "POS" | "ECOMMERCE" | "SYSTEM");
81
- ordered_at: string;
82
- payments?: Payment[];
83
- is_anonymous?: boolean;
84
- is_gift?: boolean;
85
- customer?: Customer;
86
- billing_address?: (Address | null);
87
- shipping_address?: (Address | null);
88
- is_pos?: boolean;
89
- shipments?: [
90
- (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
- ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
92
- ];
93
- items: [
94
- Item,
95
- ...(Item)[]
96
- ];
97
- total: Total;
98
- return_total?: Total;
99
- net_total?: Total;
100
- }
101
- export interface Payment {
102
- type?: ("REFUND" | "CHARGE");
103
- additionalProperties?: never;
104
- created_at: string;
105
- payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
106
- transaction_id: string;
107
- card_number?: (string | null);
108
- journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
109
- psp_reference: string;
110
- card_brand?: (string | null);
111
- status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
112
- amount: Money;
113
- created_by: ("CUSTOMER" | "SYSTEM");
114
- }
115
- export interface Money {
116
- value: number;
117
- decimal_places: number;
118
- currency: Currency;
119
- lcy_value: number;
120
- lcy_currency: LCYCurrency;
121
- lcy_decimal_places: number;
122
- }
123
- export interface Customer {
124
- }
125
- export interface Address {
126
- first_name: string;
127
- last_name: string;
128
- address1: string;
129
- address2?: (string | null);
130
- city: string;
131
- post_code: string;
132
- country_code: Country;
133
- phone?: (string | null);
134
- }
135
- export interface Total {
136
- amount_net: Money1;
137
- amount_gross: Money2;
138
- discount_amount_net: Money3;
139
- discount_amount_gross: Money4;
140
- discount_amount_percent: DiscountAmountPercent;
141
- }
142
- export interface Money1 {
143
- value: number;
144
- decimal_places: number;
145
- currency: Currency;
146
- lcy_value: number;
147
- lcy_currency: LCYCurrency;
148
- lcy_decimal_places: number;
149
- }
150
- export interface Money2 {
151
- value: number;
152
- decimal_places: number;
153
- currency: Currency;
154
- lcy_value: number;
155
- lcy_currency: LCYCurrency;
156
- lcy_decimal_places: number;
157
- }
158
- export interface Money3 {
159
- value: number;
160
- decimal_places: number;
161
- currency: Currency;
162
- lcy_value: number;
163
- lcy_currency: LCYCurrency;
164
- lcy_decimal_places: number;
165
- }
166
- export interface Money4 {
167
- value: number;
168
- decimal_places: number;
169
- currency: Currency;
170
- lcy_value: number;
171
- lcy_currency: LCYCurrency;
172
- lcy_decimal_places: number;
173
- }
174
- export interface OrderShipmentItem {
175
- lineNumber: number;
176
- quantity: number;
177
- }
178
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};
@@ -1,178 +0,0 @@
1
- export type __MainSchema = (Order & {
2
- status?: ("SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
3
- });
4
- export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
5
- export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
6
- export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
7
- export type OrderShipmentShippedOutbound = (OrderShipmentOutbound & {
8
- type?: "SHIPPED-OUTBOUND";
9
- shipped_by?: ("TORQUE" | "GLOBALE");
10
- items?: OrderShipmentItem[];
11
- [k: string]: unknown;
12
- });
13
- export type OrderShipmentOutbound = (Shipment & {
14
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN");
15
- shipped_by: ("TORQUE" | "GLOBALE" | "CUSTOMER");
16
- courier_name: (("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE") | null);
17
- tracking_code: (string | null);
18
- class_name: ("STANDARD" | "PRIORITY");
19
- });
20
- export type Shipment = (Total & {
21
- erp_id: string;
22
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN" | "POS-OUTBOUND" | "POS-RETURN");
23
- shipped_at: string;
24
- status: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
25
- items: (OrderShipmentItem | OrderShipmentItemReturned)[];
26
- });
27
- export type DiscountAmountPercent = number;
28
- export type OrderShipmentItemReturned = (OrderShipmentItem & {
29
- returnReasonCode: string;
30
- returnReason: (string | null);
31
- });
32
- export type OrderShipmentShippedReturn = (OrderShipmentOutbound & {
33
- type: "SHIPPED-RETURN";
34
- shipped_by: "CUSTOMER";
35
- items: OrderShipmentItemReturned[];
36
- });
37
- export type OrderShipmentPOSOutbound = (OrderShipmentOutbound1 & {
38
- type: "POS-OUTBOUND";
39
- shipped_by: ("TORQUE" | "GLOBALE");
40
- items: OrderShipmentItem[];
41
- });
42
- export type OrderShipmentOutbound1 = (Shipment & {
43
- type?: ("POS-OUTBOUND" | "POS-RETURN");
44
- status?: "RECEIVED";
45
- store_id: (string | null);
46
- store_name: (string | null);
47
- associate_id: (string | null);
48
- associate_name: (string | null);
49
- });
50
- export type OrderShipmentPOSReturn = (OrderShipmentOutbound1 & {
51
- type?: "POS-RETURN";
52
- items?: OrderShipmentItemReturned[];
53
- });
54
- export type Item = (Total & {
55
- sku: string;
56
- linked_style_id?: (string | null);
57
- colour_id?: string;
58
- style_id: string;
59
- colour_label?: string;
60
- size_label?: string;
61
- preorder_date?: (string | null);
62
- quantity: number;
63
- unit_price_status: ("FD" | "MD" | "POS");
64
- returned_quantity?: number;
65
- unit_price_net: Money;
66
- unit_price_gross: Money;
67
- discount_code?: (string | null);
68
- discount_amount_net: Money;
69
- discount_amount_gross: Money;
70
- discount_amount_percent?: number;
71
- cost_net?: Money;
72
- });
73
- export interface Order {
74
- status: ("PENDING" | "PROCESSED" | "SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
75
- erp_order_id: string;
76
- centra_order_id?: string;
77
- sfcc_order_id?: (string | null);
78
- globalee_order_id?: (string | null);
79
- sitoo_order_id?: (string | null);
80
- system_created_by?: ("CUSTOMER" | "POS" | "ECOMMERCE" | "SYSTEM");
81
- ordered_at: string;
82
- payments?: Payment[];
83
- is_anonymous?: boolean;
84
- is_gift?: boolean;
85
- customer?: Customer;
86
- billing_address?: (Address | null);
87
- shipping_address?: (Address | null);
88
- is_pos?: boolean;
89
- shipments?: [
90
- (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
- ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
92
- ];
93
- items: [
94
- Item,
95
- ...(Item)[]
96
- ];
97
- total: Total;
98
- return_total?: Total;
99
- net_total?: Total;
100
- }
101
- export interface Payment {
102
- type?: ("REFUND" | "CHARGE");
103
- additionalProperties?: never;
104
- created_at: string;
105
- payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
106
- transaction_id: string;
107
- card_number?: (string | null);
108
- journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
109
- psp_reference: string;
110
- card_brand?: (string | null);
111
- status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
112
- amount: Money;
113
- created_by: ("CUSTOMER" | "SYSTEM");
114
- }
115
- export interface Money {
116
- value: number;
117
- decimal_places: number;
118
- currency: Currency;
119
- lcy_value: number;
120
- lcy_currency: LCYCurrency;
121
- lcy_decimal_places: number;
122
- }
123
- export interface Customer {
124
- }
125
- export interface Address {
126
- first_name: string;
127
- last_name: string;
128
- address1: string;
129
- address2?: (string | null);
130
- city: string;
131
- post_code: string;
132
- country_code: Country;
133
- phone?: (string | null);
134
- }
135
- export interface Total {
136
- amount_net: Money1;
137
- amount_gross: Money2;
138
- discount_amount_net: Money3;
139
- discount_amount_gross: Money4;
140
- discount_amount_percent: DiscountAmountPercent;
141
- }
142
- export interface Money1 {
143
- value: number;
144
- decimal_places: number;
145
- currency: Currency;
146
- lcy_value: number;
147
- lcy_currency: LCYCurrency;
148
- lcy_decimal_places: number;
149
- }
150
- export interface Money2 {
151
- value: number;
152
- decimal_places: number;
153
- currency: Currency;
154
- lcy_value: number;
155
- lcy_currency: LCYCurrency;
156
- lcy_decimal_places: number;
157
- }
158
- export interface Money3 {
159
- value: number;
160
- decimal_places: number;
161
- currency: Currency;
162
- lcy_value: number;
163
- lcy_currency: LCYCurrency;
164
- lcy_decimal_places: number;
165
- }
166
- export interface Money4 {
167
- value: number;
168
- decimal_places: number;
169
- currency: Currency;
170
- lcy_value: number;
171
- lcy_currency: LCYCurrency;
172
- lcy_decimal_places: number;
173
- }
174
- export interface OrderShipmentItem {
175
- lineNumber: number;
176
- quantity: number;
177
- }
178
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};
@@ -1,178 +0,0 @@
1
- export type __MainSchema = (Order & {
2
- status?: ("SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
3
- });
4
- export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
5
- export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
6
- export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
7
- export type OrderShipmentShippedOutbound = (OrderShipmentOutbound & {
8
- type?: "SHIPPED-OUTBOUND";
9
- shipped_by?: ("TORQUE" | "GLOBALE");
10
- items?: OrderShipmentItem[];
11
- [k: string]: unknown;
12
- });
13
- export type OrderShipmentOutbound = (Shipment & {
14
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN");
15
- shipped_by: ("TORQUE" | "GLOBALE" | "CUSTOMER");
16
- courier_name: (("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE") | null);
17
- tracking_code: (string | null);
18
- class_name: ("STANDARD" | "PRIORITY");
19
- });
20
- export type Shipment = (Total & {
21
- erp_id: string;
22
- type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN" | "POS-OUTBOUND" | "POS-RETURN");
23
- shipped_at: string;
24
- status: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
25
- items: (OrderShipmentItem | OrderShipmentItemReturned)[];
26
- });
27
- export type DiscountAmountPercent = number;
28
- export type OrderShipmentItemReturned = (OrderShipmentItem & {
29
- returnReasonCode: string;
30
- returnReason: (string | null);
31
- });
32
- export type OrderShipmentShippedReturn = (OrderShipmentOutbound & {
33
- type: "SHIPPED-RETURN";
34
- shipped_by: "CUSTOMER";
35
- items: OrderShipmentItemReturned[];
36
- });
37
- export type OrderShipmentPOSOutbound = (OrderShipmentOutbound1 & {
38
- type: "POS-OUTBOUND";
39
- shipped_by: ("TORQUE" | "GLOBALE");
40
- items: OrderShipmentItem[];
41
- });
42
- export type OrderShipmentOutbound1 = (Shipment & {
43
- type?: ("POS-OUTBOUND" | "POS-RETURN");
44
- status?: "RECEIVED";
45
- store_id: (string | null);
46
- store_name: (string | null);
47
- associate_id: (string | null);
48
- associate_name: (string | null);
49
- });
50
- export type OrderShipmentPOSReturn = (OrderShipmentOutbound1 & {
51
- type?: "POS-RETURN";
52
- items?: OrderShipmentItemReturned[];
53
- });
54
- export type Item = (Total & {
55
- sku: string;
56
- linked_style_id?: (string | null);
57
- colour_id?: string;
58
- style_id: string;
59
- colour_label?: string;
60
- size_label?: string;
61
- preorder_date?: (string | null);
62
- quantity: number;
63
- unit_price_status: ("FD" | "MD" | "POS");
64
- returned_quantity?: number;
65
- unit_price_net: Money;
66
- unit_price_gross: Money;
67
- discount_code?: (string | null);
68
- discount_amount_net: Money;
69
- discount_amount_gross: Money;
70
- discount_amount_percent?: number;
71
- cost_net?: Money;
72
- });
73
- export interface Order {
74
- status: ("PENDING" | "PROCESSED" | "SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
75
- erp_order_id: string;
76
- centra_order_id?: string;
77
- sfcc_order_id?: (string | null);
78
- globalee_order_id?: (string | null);
79
- sitoo_order_id?: (string | null);
80
- system_created_by?: ("CUSTOMER" | "POS" | "ECOMMERCE" | "SYSTEM");
81
- ordered_at: string;
82
- payments?: Payment[];
83
- is_anonymous?: boolean;
84
- is_gift?: boolean;
85
- customer?: Customer;
86
- billing_address?: (Address | null);
87
- shipping_address?: (Address | null);
88
- is_pos?: boolean;
89
- shipments?: [
90
- (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
- ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
92
- ];
93
- items: [
94
- Item,
95
- ...(Item)[]
96
- ];
97
- total: Total;
98
- return_total?: Total;
99
- net_total?: Total;
100
- }
101
- export interface Payment {
102
- type?: ("REFUND" | "CHARGE");
103
- additionalProperties?: never;
104
- created_at: string;
105
- payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
106
- transaction_id: string;
107
- card_number?: (string | null);
108
- journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
109
- psp_reference: string;
110
- card_brand?: (string | null);
111
- status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
112
- amount: Money;
113
- created_by: ("CUSTOMER" | "SYSTEM");
114
- }
115
- export interface Money {
116
- value: number;
117
- decimal_places: number;
118
- currency: Currency;
119
- lcy_value: number;
120
- lcy_currency: LCYCurrency;
121
- lcy_decimal_places: number;
122
- }
123
- export interface Customer {
124
- }
125
- export interface Address {
126
- first_name: string;
127
- last_name: string;
128
- address1: string;
129
- address2?: (string | null);
130
- city: string;
131
- post_code: string;
132
- country_code: Country;
133
- phone?: (string | null);
134
- }
135
- export interface Total {
136
- amount_net: Money1;
137
- amount_gross: Money2;
138
- discount_amount_net: Money3;
139
- discount_amount_gross: Money4;
140
- discount_amount_percent: DiscountAmountPercent;
141
- }
142
- export interface Money1 {
143
- value: number;
144
- decimal_places: number;
145
- currency: Currency;
146
- lcy_value: number;
147
- lcy_currency: LCYCurrency;
148
- lcy_decimal_places: number;
149
- }
150
- export interface Money2 {
151
- value: number;
152
- decimal_places: number;
153
- currency: Currency;
154
- lcy_value: number;
155
- lcy_currency: LCYCurrency;
156
- lcy_decimal_places: number;
157
- }
158
- export interface Money3 {
159
- value: number;
160
- decimal_places: number;
161
- currency: Currency;
162
- lcy_value: number;
163
- lcy_currency: LCYCurrency;
164
- lcy_decimal_places: number;
165
- }
166
- export interface Money4 {
167
- value: number;
168
- decimal_places: number;
169
- currency: Currency;
170
- lcy_value: number;
171
- lcy_currency: LCYCurrency;
172
- lcy_decimal_places: number;
173
- }
174
- export interface OrderShipmentItem {
175
- lineNumber: number;
176
- quantity: number;
177
- }
178
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
2
- export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
3
- export interface __MainSchema {
4
- value: number;
5
- decimal_places: number;
6
- currency: Currency;
7
- lcy_value: number;
8
- lcy_currency: LCYCurrency;
9
- lcy_decimal_places: number;
10
- }
11
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
2
- export interface __MainSchema {
3
- first_name: string;
4
- last_name: string;
5
- address1: string;
6
- address2?: (string | null);
7
- city: string;
8
- post_code: string;
9
- country_code: Country;
10
- phone?: (string | null);
11
- }
12
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export interface __MainSchema {
2
- }
3
- export default __MainSchema;
@@ -1 +0,0 @@
1
- export {};