@shushed/helpers 0.0.8

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/dist-dereferenced/country.d.ts +8 -0
  2. package/dist/dist-dereferenced/country.js +2 -0
  3. package/dist/dist-dereferenced/currency.d.ts +8 -0
  4. package/dist/dist-dereferenced/currency.js +2 -0
  5. package/dist/dist-dereferenced/index.d.ts +7 -0
  6. package/dist/dist-dereferenced/index.js +7 -0
  7. package/dist/dist-dereferenced/messages/index.d.ts +1 -0
  8. package/dist/dist-dereferenced/messages/index.js +1 -0
  9. package/dist/dist-dereferenced/messages/order/delivered.d.ts +3410 -0
  10. package/dist/dist-dereferenced/messages/order/delivered.js +2 -0
  11. package/dist/dist-dereferenced/messages/order/index.d.ts +6 -0
  12. package/dist/dist-dereferenced/messages/order/index.js +6 -0
  13. package/dist/dist-dereferenced/messages/order/new.d.ts +3410 -0
  14. package/dist/dist-dereferenced/messages/order/new.js +2 -0
  15. package/dist/dist-dereferenced/messages/order/processed.d.ts +3404 -0
  16. package/dist/dist-dereferenced/messages/order/processed.js +2 -0
  17. package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +3410 -0
  18. package/dist/dist-dereferenced/messages/order/return-initiated.js +2 -0
  19. package/dist/dist-dereferenced/messages/order/returned.d.ts +3410 -0
  20. package/dist/dist-dereferenced/messages/order/returned.js +2 -0
  21. package/dist/dist-dereferenced/messages/order/shipped.d.ts +3410 -0
  22. package/dist/dist-dereferenced/messages/order/shipped.js +2 -0
  23. package/dist/dist-dereferenced/money.d.ts +43 -0
  24. package/dist/dist-dereferenced/money.js +2 -0
  25. package/dist/dist-dereferenced/order/address.d.ts +51 -0
  26. package/dist/dist-dereferenced/order/address.js +2 -0
  27. package/dist/dist-dereferenced/order/customer.d.ts +10 -0
  28. package/dist/dist-dereferenced/order/customer.js +2 -0
  29. package/dist/dist-dereferenced/order/index.d.ts +7 -0
  30. package/dist/dist-dereferenced/order/index.js +7 -0
  31. package/dist/dist-dereferenced/order/item.d.ts +450 -0
  32. package/dist/dist-dereferenced/order/item.js +2 -0
  33. package/dist/dist-dereferenced/order/orderMain.d.ts +3394 -0
  34. package/dist/dist-dereferenced/order/orderMain.js +2 -0
  35. package/dist/dist-dereferenced/order/payment.d.ts +90 -0
  36. package/dist/dist-dereferenced/order/payment.js +2 -0
  37. package/dist/dist-dereferenced/order/shipment/index.d.ts +5 -0
  38. package/dist/dist-dereferenced/order/shipment/index.js +5 -0
  39. package/dist/dist-dereferenced/order/shipment/item/index.d.ts +3 -0
  40. package/dist/dist-dereferenced/order/shipment/item/index.js +3 -0
  41. package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +19 -0
  42. package/dist/dist-dereferenced/order/shipment/item/itemMain.js +2 -0
  43. package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +38 -0
  44. package/dist/dist-dereferenced/order/shipment/item/returned.js +2 -0
  45. package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +4 -0
  46. package/dist/dist-dereferenced/order/shipment/pos/index.js +4 -0
  47. package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +351 -0
  48. package/dist/dist-dereferenced/order/shipment/pos/outbound.js +2 -0
  49. package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +308 -0
  50. package/dist/dist-dereferenced/order/shipment/pos/posMain.js +2 -0
  51. package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +365 -0
  52. package/dist/dist-dereferenced/order/shipment/pos/return.js +2 -0
  53. package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +275 -0
  54. package/dist/dist-dereferenced/order/shipment/shipmentMain.js +2 -0
  55. package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +4 -0
  56. package/dist/dist-dereferenced/order/shipment/shipped/index.js +4 -0
  57. package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +348 -0
  58. package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +2 -0
  59. package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +369 -0
  60. package/dist/dist-dereferenced/order/shipment/shipped/return.js +2 -0
  61. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +307 -0
  62. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +2 -0
  63. package/dist/dist-dereferenced/productDraft.d.ts +523 -0
  64. package/dist/dist-dereferenced/productDraft.js +2 -0
  65. package/dist/dist-dereferenced/total.d.ts +185 -0
  66. package/dist/dist-dereferenced/total.js +2 -0
  67. package/dist/dist-types/country.d.ts +2 -0
  68. package/dist/dist-types/country.js +1 -0
  69. package/dist/dist-types/currency.d.ts +2 -0
  70. package/dist/dist-types/currency.js +1 -0
  71. package/dist/dist-types/index.d.ts +7 -0
  72. package/dist/dist-types/index.js +2 -0
  73. package/dist/dist-types/messages/index.d.ts +1 -0
  74. package/dist/dist-types/messages/index.js +1 -0
  75. package/dist/dist-types/messages/order/delivered.d.ts +178 -0
  76. package/dist/dist-types/messages/order/delivered.js +1 -0
  77. package/dist/dist-types/messages/order/index.d.ts +6 -0
  78. package/dist/dist-types/messages/order/index.js +1 -0
  79. package/dist/dist-types/messages/order/new.d.ts +178 -0
  80. package/dist/dist-types/messages/order/new.js +1 -0
  81. package/dist/dist-types/messages/order/processed.d.ts +176 -0
  82. package/dist/dist-types/messages/order/processed.js +1 -0
  83. package/dist/dist-types/messages/order/return-initiated.d.ts +178 -0
  84. package/dist/dist-types/messages/order/return-initiated.js +1 -0
  85. package/dist/dist-types/messages/order/returned.d.ts +178 -0
  86. package/dist/dist-types/messages/order/returned.js +1 -0
  87. package/dist/dist-types/messages/order/shipped.d.ts +178 -0
  88. package/dist/dist-types/messages/order/shipped.js +1 -0
  89. package/dist/dist-types/money.d.ts +11 -0
  90. package/dist/dist-types/money.js +1 -0
  91. package/dist/dist-types/order/address.d.ts +12 -0
  92. package/dist/dist-types/order/address.js +1 -0
  93. package/dist/dist-types/order/customer.d.ts +3 -0
  94. package/dist/dist-types/order/customer.js +1 -0
  95. package/dist/dist-types/order/index.d.ts +7 -0
  96. package/dist/dist-types/order/index.js +1 -0
  97. package/dist/dist-types/order/item.d.ts +70 -0
  98. package/dist/dist-types/order/item.js +1 -0
  99. package/dist/dist-types/order/orderMain.d.ts +175 -0
  100. package/dist/dist-types/order/orderMain.js +1 -0
  101. package/dist/dist-types/order/payment.d.ts +25 -0
  102. package/dist/dist-types/order/payment.js +1 -0
  103. package/dist/dist-types/order/shipment/index.d.ts +5 -0
  104. package/dist/dist-types/order/shipment/index.js +3 -0
  105. package/dist/dist-types/order/shipment/item/index.d.ts +3 -0
  106. package/dist/dist-types/order/shipment/item/index.js +1 -0
  107. package/dist/dist-types/order/shipment/item/itemMain.d.ts +5 -0
  108. package/dist/dist-types/order/shipment/item/itemMain.js +1 -0
  109. package/dist/dist-types/order/shipment/item/returned.d.ts +9 -0
  110. package/dist/dist-types/order/shipment/item/returned.js +1 -0
  111. package/dist/dist-types/order/shipment/pos/index.d.ts +4 -0
  112. package/dist/dist-types/order/shipment/pos/index.js +1 -0
  113. package/dist/dist-types/order/shipment/pos/outbound.d.ts +71 -0
  114. package/dist/dist-types/order/shipment/pos/outbound.js +1 -0
  115. package/dist/dist-types/order/shipment/pos/posMain.d.ts +66 -0
  116. package/dist/dist-types/order/shipment/pos/posMain.js +1 -0
  117. package/dist/dist-types/order/shipment/pos/return.d.ts +70 -0
  118. package/dist/dist-types/order/shipment/pos/return.js +1 -0
  119. package/dist/dist-types/order/shipment/shipmentMain.d.ts +58 -0
  120. package/dist/dist-types/order/shipment/shipmentMain.js +1 -0
  121. package/dist/dist-types/order/shipment/shipped/index.d.ts +4 -0
  122. package/dist/dist-types/order/shipment/shipped/index.js +1 -0
  123. package/dist/dist-types/order/shipment/shipped/outbound.d.ts +71 -0
  124. package/dist/dist-types/order/shipment/shipped/outbound.js +1 -0
  125. package/dist/dist-types/order/shipment/shipped/return.d.ts +70 -0
  126. package/dist/dist-types/order/shipment/shipped/return.js +1 -0
  127. package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +65 -0
  128. package/dist/dist-types/order/shipment/shipped/shippedMain.js +1 -0
  129. package/dist/dist-types/productDraft.d.ts +87 -0
  130. package/dist/dist-types/productDraft.js +1 -0
  131. package/dist/dist-types/total.d.ts +43 -0
  132. package/dist/dist-types/total.js +1 -0
  133. package/dist/index.d.ts +3 -0
  134. package/dist/index.js +3 -0
  135. package/dist/package.json +23 -0
  136. package/dist/src-public/index.d.ts +2 -0
  137. package/dist/src-public/index.js +2 -0
  138. package/dist/src-public/sanitize.d.ts +4 -0
  139. package/dist/src-public/sanitize.js +21 -0
  140. package/dist/src-public/validate.d.ts +9 -0
  141. package/dist/src-public/validate.js +28 -0
  142. package/package.json +23 -0
@@ -0,0 +1,178 @@
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,178 @@
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,178 @@
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface __MainSchema {
2
+ }
3
+ export default __MainSchema;
@@ -0,0 +1 @@
1
+ export {};