commerce-sdk-isomorphic 4.0.0-unstable-20251202080814 → 4.0.0-unstable-20251204080831

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 (45) hide show
  1. package/lib/helpers.cjs.js +1 -1
  2. package/lib/helpers.js +1 -1
  3. package/lib/index.cjs.d.ts +758 -22
  4. package/lib/index.cjs.js +1 -1
  5. package/lib/index.esm.d.ts +758 -22
  6. package/lib/index.esm.js +1 -1
  7. package/lib/shopperBaskets.cjs.js +1 -1
  8. package/lib/shopperBaskets.js +1 -1
  9. package/lib/shopperBasketsv2.cjs.js +1 -1
  10. package/lib/shopperBasketsv2.js +1 -1
  11. package/lib/shopperConfigurations.cjs.js +1 -1
  12. package/lib/shopperConfigurations.js +1 -1
  13. package/lib/shopperConsents.cjs.js +1 -1
  14. package/lib/shopperConsents.js +1 -1
  15. package/lib/shopperContext.cjs.js +1 -1
  16. package/lib/shopperContext.js +1 -1
  17. package/lib/shopperCustomers.cjs.js +1 -1
  18. package/lib/shopperCustomers.js +1 -1
  19. package/lib/shopperExperience.cjs.js +1 -1
  20. package/lib/shopperExperience.js +1 -1
  21. package/lib/shopperGiftCertificates.cjs.js +1 -1
  22. package/lib/shopperGiftCertificates.js +1 -1
  23. package/lib/shopperLogin.cjs.js +1 -1
  24. package/lib/shopperLogin.js +1 -1
  25. package/lib/shopperOrders.cjs.d.ts +747 -31
  26. package/lib/shopperOrders.cjs.js +1 -1
  27. package/lib/shopperOrders.d.ts +747 -31
  28. package/lib/shopperOrders.js +1 -1
  29. package/lib/shopperPayments.cjs.js +1 -1
  30. package/lib/shopperPayments.js +1 -1
  31. package/lib/shopperProducts.cjs.js +1 -1
  32. package/lib/shopperProducts.js +1 -1
  33. package/lib/shopperPromotions.cjs.js +1 -1
  34. package/lib/shopperPromotions.js +1 -1
  35. package/lib/shopperSearch.cjs.js +1 -1
  36. package/lib/shopperSearch.js +1 -1
  37. package/lib/shopperSeo.cjs.js +1 -1
  38. package/lib/shopperSeo.js +1 -1
  39. package/lib/shopperStores.cjs.js +1 -1
  40. package/lib/shopperStores.js +1 -1
  41. package/lib/version.cjs.d.ts +1 -1
  42. package/lib/version.cjs.js +1 -1
  43. package/lib/version.d.ts +1 -1
  44. package/lib/version.js +1 -1
  45. package/package.json +2 -2
@@ -160,6 +160,56 @@ type Status = {
160
160
  } & {
161
161
  [key: string]: any;
162
162
  };
163
+ /**
164
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
165
+ *
166
+ * @property stripe: Stripe specific properties.
167
+ *
168
+ * @property adyen: Ayden specific properties.
169
+ *
170
+ * @property paypal: PayPal specific properties.
171
+ *
172
+ */
173
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
174
+ stripe?: {
175
+ [key: string]: any;
176
+ };
177
+ adyen?: {
178
+ [key: string]: any;
179
+ };
180
+ paypal?: {
181
+ [key: string]: any;
182
+ };
183
+ } & {
184
+ [key: string]: any;
185
+ };
186
+ /**
187
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
188
+ *
189
+ * @property paymentReferenceId: Payment reference identifier. Can be payment intent ID for Stripe, PSP reference for Adyen, PayPal order ID for PayPal, or similar identifier for other payment providers.
190
+ * - **Max Length:** 256
191
+ *
192
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
193
+ * - **Max Length:** 256
194
+ *
195
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
196
+ * - **Max Length:** 2048
197
+ *
198
+ * @property gateway: The payment gateway used to process the payment.
199
+ *
200
+ * @property gatewayProperties:
201
+ *
202
+ */
203
+ type OrderPaymentInstrumentPaymentReference = {
204
+ paymentReferenceId?: string;
205
+ clientSecret?: string;
206
+ redirectUrl?: string;
207
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
208
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
209
+ } & {
210
+ [key: string]: any;
211
+ };
212
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
163
213
  /**
164
214
  * @type PaymentCard: Document representing a payment card.
165
215
  *
@@ -225,6 +275,8 @@ type PaymentCard = {
225
275
  * @property paymentMethodId: The payment method ID. It is read only.
226
276
  * - **Max Length:** 256
227
277
  *
278
+ * @property paymentReference:
279
+ *
228
280
  */
229
281
  type OrderPaymentInstrument = {
230
282
  amount?: number;
@@ -234,6 +286,7 @@ type OrderPaymentInstrument = {
234
286
  paymentCard?: PaymentCard;
235
287
  paymentInstrumentId?: string;
236
288
  paymentMethodId?: string;
289
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
237
290
  } & {
238
291
  [key: string]: any;
239
292
  };
@@ -773,6 +826,21 @@ type OptionItem = {
773
826
  } & {
774
827
  [key: string]: any;
775
828
  };
829
+ /**
830
+ * @type SomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_orderitemsummary.htm for more information.
831
+ *
832
+ * @property status: Salesforce Order Management (SOM) status
833
+ *
834
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
835
+ *
836
+ */
837
+ type SomInfo = {
838
+ status?: SomInfoStatusEnum;
839
+ quantityAvailableToCancel?: number;
840
+ } & {
841
+ [key: string]: any;
842
+ };
843
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
776
844
  /**
777
845
  * @type ProductItem: Document representing a product item.
778
846
  *
@@ -823,6 +891,8 @@ type OptionItem = {
823
891
  *
824
892
  * @property shippingItemId: If the product line item has a related shipping item, this value is its ID. A related shipping item represents a surcharge applied to individual products using a particular shipping method. It is read only.
825
893
  *
894
+ * @property somInfo:
895
+ *
826
896
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
827
897
  *
828
898
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -855,6 +925,7 @@ type ProductItem = {
855
925
  quantity?: number;
856
926
  shipmentId?: string;
857
927
  shippingItemId?: string;
928
+ somInfo?: SomInfo;
858
929
  tax?: number;
859
930
  taxBasis?: number;
860
931
  taxClassId?: string;
@@ -992,11 +1063,86 @@ type ErrorResponse = {
992
1063
  } & {
993
1064
  [key: string]: any;
994
1065
  };
1066
+ /**
1067
+ * @type FailOrderRequest: Document representing a fail order request.
1068
+ *
1069
+ * @property reasonCode: The reason code for failing the order.
1070
+ *
1071
+ */
1072
+ type FailOrderRequest = {
1073
+ reasonCode?: FailOrderRequestReasonCodeEnum;
1074
+ } & {
1075
+ [key: string]: any;
1076
+ };
1077
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
995
1078
  /**
996
1079
  * @type LocaleCode
997
1080
  * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
998
1081
  */
999
1082
  type LocaleCode$0 = DefaultFallback | string;
1083
+ /**
1084
+ * @type ShipmentItem: Individual item within a shipment
1085
+ *
1086
+ * @property id: Unique identifier for the shipment item
1087
+ *
1088
+ * @property productItemId: Reference to the product item in the order
1089
+ *
1090
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
1091
+ *
1092
+ */
1093
+ type ShipmentItem = {
1094
+ id?: string;
1095
+ productItemId?: string;
1096
+ quantity?: number;
1097
+ } & {
1098
+ [key: string]: any;
1099
+ };
1100
+ /**
1101
+ * @type SchemasShipment: Shipment information from Salesforce Order Management created during fulfillment process. See https://developer.salesforce.com/docs/atlas.en-us.230.0.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_fulfillmentorder.htm for more information.
1102
+ *
1103
+ * @property id: Unique identifier for the shipment
1104
+ *
1105
+ * @property status: Current status of the shipment
1106
+ *
1107
+ * @property provider: Shipping provider name
1108
+ *
1109
+ * @property trackingNumber: Tracking number for the shipment
1110
+ *
1111
+ * @property trackingUrl: URL to track the shipment
1112
+ *
1113
+ * @property expectedDeliveryDate: Expected delivery date and time
1114
+ *
1115
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
1116
+ *
1117
+ * @property shipmentItems: Items included in this shipment
1118
+ *
1119
+ */
1120
+ type SchemasShipment = {
1121
+ id?: string;
1122
+ status?: string;
1123
+ provider?: string;
1124
+ trackingNumber?: string;
1125
+ trackingUrl?: string;
1126
+ expectedDeliveryDate?: string;
1127
+ actualDeliveryDate?: string;
1128
+ shipmentItems?: Array<ShipmentItem>;
1129
+ } & {
1130
+ [key: string]: any;
1131
+ };
1132
+ /**
1133
+ * @type SchemasSomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_ordersummary.htm for more information.
1134
+ *
1135
+ * @property status: Current status of the order
1136
+ *
1137
+ * @property shipments: List of shipments associated with the order
1138
+ *
1139
+ */
1140
+ type SchemasSomInfo = {
1141
+ status?: string;
1142
+ shipments?: Array<SchemasShipment>;
1143
+ } & {
1144
+ [key: string]: any;
1145
+ };
1000
1146
  /**
1001
1147
  * @type Order: Document representing an order.
1002
1148
  *
@@ -1074,6 +1220,8 @@ type LocaleCode$0 = DefaultFallback | string;
1074
1220
  * - **Min Length:** 1
1075
1221
  * - **Max Length:** 32
1076
1222
  *
1223
+ * @property somInfo:
1224
+ *
1077
1225
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
1078
1226
  *
1079
1227
  * @property status: The status.
@@ -1123,6 +1271,7 @@ type Order = {
1123
1271
  shippingTotal?: number;
1124
1272
  shippingTotalTax?: number;
1125
1273
  siteId?: string;
1274
+ somInfo?: SchemasSomInfo;
1126
1275
  sourceCode?: string;
1127
1276
  status?: OrderStatusEnum;
1128
1277
  taxTotal?: number;
@@ -1194,21 +1343,35 @@ type OrderPaymentCardRequest = {
1194
1343
  [key: string]: any;
1195
1344
  };
1196
1345
  /**
1197
- * @type SalesforcePaymentsRequest: Document representing a Salesforce Payments request.
1346
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
1198
1347
  *
1199
- * @property paymentMethodType: The payment method type (for example: Visa).
1200
- * - **Max Length:** 100
1348
+ * @property paymentMethodType: Payment Method Type
1349
+ * - **Max Length:** 64
1201
1350
  *
1202
- * @property zoneId: The zone ID.
1351
+ * @property zoneId: The unique identifier for a Payments zone.
1352
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
1353
+ * - **Min Length:** 1
1203
1354
  * - **Max Length:** 100
1204
1355
  *
1356
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
1357
+ * - **Max Length:** 64
1358
+ *
1359
+ * @property gateway: The payment gateway used to process the payment.
1360
+ *
1361
+ * @property gatewayProperties:
1362
+ *
1205
1363
  */
1206
- type SalesforcePaymentsRequest = {
1364
+ type PaymentReferenceRequest = {
1207
1365
  paymentMethodType?: string;
1208
1366
  zoneId?: string;
1367
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
1368
+ gateway?: PaymentReferenceRequestGatewayEnum;
1369
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
1209
1370
  } & {
1210
1371
  [key: string]: any;
1211
1372
  };
1373
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
1374
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
1212
1375
  /**
1213
1376
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
1214
1377
  *
@@ -1225,7 +1388,7 @@ type SalesforcePaymentsRequest = {
1225
1388
  * @property paymentMethodId: The payment method ID.
1226
1389
  * - **Max Length:** 256
1227
1390
  *
1228
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
1391
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
1229
1392
  *
1230
1393
  */
1231
1394
  type OrderPaymentInstrumentRequest = {
@@ -1234,7 +1397,7 @@ type OrderPaymentInstrumentRequest = {
1234
1397
  giftCertificateCode?: string;
1235
1398
  paymentCard?: OrderPaymentCardRequest;
1236
1399
  paymentMethodId?: string;
1237
- paymentReferenceRequest?: SalesforcePaymentsRequest;
1400
+ paymentReferenceRequest?: PaymentReferenceRequest;
1238
1401
  } & {
1239
1402
  [key: string]: any;
1240
1403
  };
@@ -1349,6 +1512,7 @@ type Taxes = {
1349
1512
  } & {
1350
1513
  [key: string]: any;
1351
1514
  };
1515
+ type GetOrderExpandEnum = "som" | "som_shipments";
1352
1516
  type createOrderQueryParameters = {
1353
1517
  siteId: string;
1354
1518
  locale?: LocaleCode$0;
@@ -1364,9 +1528,19 @@ type createPaymentInstrumentForOrderPathParameters = {
1364
1528
  organizationId: string;
1365
1529
  orderNo: string;
1366
1530
  };
1531
+ type failOrderQueryParameters = {
1532
+ siteId: string;
1533
+ locale?: LocaleCode$0;
1534
+ reopenBasket?: boolean;
1535
+ };
1536
+ type failOrderPathParameters = {
1537
+ organizationId: string;
1538
+ orderNo: string;
1539
+ };
1367
1540
  type getOrderQueryParameters = {
1368
1541
  siteId: string;
1369
1542
  locale?: LocaleCode$0;
1543
+ expand?: Array<"som" | "som_shipments">;
1370
1544
  };
1371
1545
  type getOrderPathParameters = {
1372
1546
  orderNo: string;
@@ -1416,11 +1590,11 @@ type updatePaymentInstrumentForOrderPathParameters = {
1416
1590
  /**
1417
1591
  * All path parameters that are used by at least one ShopperOrders method.
1418
1592
  */
1419
- type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
1593
+ type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & failOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
1420
1594
  /**
1421
1595
  * All query parameters that are used by at least one ShopperOrders method.
1422
1596
  */
1423
- type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
1597
+ type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & failOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
1424
1598
  /**
1425
1599
  * All parameters that are used by ShopperOrders.
1426
1600
  */
@@ -1429,7 +1603,9 @@ type ShopperOrdersParameters = ShopperOrdersPathParameters & BaseUriParameters &
1429
1603
  * [Shopper Orders](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-orders:Summary)
1430
1604
  * ==================================
1431
1605
  *
1432
- * *# API Overview
1606
+ * *[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-orders/shopper-orders-oas-v1-public.yaml)
1607
+
1608
+ # API Overview
1433
1609
 
1434
1610
  The Shopper Orders API enables you to:
1435
1611
 
@@ -1492,6 +1668,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1492
1668
  static readonly apiPaths: {
1493
1669
  createOrder: string;
1494
1670
  createPaymentInstrumentForOrder: string;
1671
+ failOrder: string;
1495
1672
  getOrder: string;
1496
1673
  getPaymentMethodsForOrder: string;
1497
1674
  getTaxesFromOrder: string;
@@ -1521,11 +1698,24 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1521
1698
  "orderNo",
1522
1699
  "siteId"
1523
1700
  ];
1701
+ readonly failOrder: readonly [
1702
+ "organizationId",
1703
+ "orderNo",
1704
+ "siteId",
1705
+ "locale",
1706
+ "reopenBasket"
1707
+ ];
1708
+ readonly failOrderRequired: readonly [
1709
+ "organizationId",
1710
+ "orderNo",
1711
+ "siteId"
1712
+ ];
1524
1713
  readonly getOrder: readonly [
1525
1714
  "orderNo",
1526
1715
  "organizationId",
1527
1716
  "siteId",
1528
- "locale"
1717
+ "locale",
1718
+ "expand"
1529
1719
  ];
1530
1720
  readonly getOrderRequired: readonly [
1531
1721
  "orderNo",
@@ -1707,6 +1897,71 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1707
1897
  };
1708
1898
  body: OrderPaymentInstrumentRequest & CustomRequestBody;
1709
1899
  }>, rawResponse?: T): Promise<T extends true ? Response : Order>;
1900
+ /**
1901
+ * Fails an unplaced order and optionally reopens the basket when indicated.
1902
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
1903
+ *
1904
+ * If you would like to get a raw Response object use the other failOrder function.
1905
+ *
1906
+ * @param options - An object containing the options for this method.
1907
+ * @param options.parameters - An object containing the parameters for this method.
1908
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
1909
+ * @param options.parameters.orderNo - The order number of the order to be modified.
1910
+ * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
1911
+ * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
1912
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
1913
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
1914
+ since a customer is limited to 1 storefront basket at a time.
1915
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
1916
+ * @param options.body - The data to send as the request body.
1917
+ *
1918
+ * @returns A promise of type void.
1919
+ */
1920
+ failOrder(options: RequireParametersUnlessAllAreOptional<{
1921
+ parameters?: CompositeParameters<{
1922
+ organizationId: string;
1923
+ orderNo: string;
1924
+ siteId: string;
1925
+ locale?: LocaleCode$0;
1926
+ reopenBasket?: boolean;
1927
+ } & QueryParameters, ConfigParameters>;
1928
+ headers?: {
1929
+ [key: string]: string;
1930
+ };
1931
+ body: FailOrderRequest & CustomRequestBody;
1932
+ }>): Promise<void>;
1933
+ /**
1934
+ * Fails an unplaced order and optionally reopens the basket when indicated.
1935
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
1936
+ *
1937
+ * @param options - An object containing the options for this method.
1938
+ * @param options.parameters - An object containing the parameters for this method.
1939
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
1940
+ * @param options.parameters.orderNo - The order number of the order to be modified.
1941
+ * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
1942
+ * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
1943
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
1944
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
1945
+ since a customer is limited to 1 storefront basket at a time.
1946
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
1947
+ * @param options.body - The data to send as the request body.
1948
+ * @param rawResponse - Set to true to return entire Response object instead of DTO.
1949
+ *
1950
+ * @returns A promise of type Response if rawResponse is true, a promise of type void otherwise.
1951
+ */
1952
+ failOrder<T extends boolean>(options: RequireParametersUnlessAllAreOptional<{
1953
+ parameters?: CompositeParameters<{
1954
+ organizationId: string;
1955
+ orderNo: string;
1956
+ siteId: string;
1957
+ locale?: LocaleCode$0;
1958
+ reopenBasket?: boolean;
1959
+ } & QueryParameters, ConfigParameters>;
1960
+ headers?: {
1961
+ [key: string]: string;
1962
+ };
1963
+ body: FailOrderRequest & CustomRequestBody;
1964
+ }>, rawResponse?: T): Promise<T extends true ? Response : void>;
1710
1965
  /**
1711
1966
  * Gets information for an order.
1712
1967
  *
@@ -1718,6 +1973,12 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1718
1973
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
1719
1974
  * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
1720
1975
  * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
1976
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
1977
+ When data is available in SOM, the expand parameter has the following behavior:
1978
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
1979
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
1980
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
1981
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
1721
1982
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
1722
1983
  *
1723
1984
  * @returns A promise of type Order.
@@ -1728,6 +1989,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1728
1989
  organizationId: string;
1729
1990
  siteId: string;
1730
1991
  locale?: LocaleCode$0;
1992
+ expand?: Array<GetOrderExpandEnum>;
1731
1993
  } & QueryParameters, ConfigParameters>;
1732
1994
  headers?: {
1733
1995
  [key: string]: string;
@@ -1742,6 +2004,12 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1742
2004
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
1743
2005
  * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
1744
2006
  * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
2007
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
2008
+ When data is available in SOM, the expand parameter has the following behavior:
2009
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
2010
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
2011
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
2012
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
1745
2013
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
1746
2014
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
1747
2015
  *
@@ -1753,6 +2021,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
1753
2021
  organizationId: string;
1754
2022
  siteId: string;
1755
2023
  locale?: LocaleCode$0;
2024
+ expand?: Array<GetOrderExpandEnum>;
1756
2025
  } & QueryParameters, ConfigParameters>;
1757
2026
  headers?: {
1758
2027
  [key: string]: string;
@@ -2227,6 +2496,56 @@ declare namespace ShopperOrdersApiTypes {
2227
2496
  } & {
2228
2497
  [key: string]: any;
2229
2498
  };
2499
+ /**
2500
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
2501
+ *
2502
+ * @property stripe: Stripe specific properties.
2503
+ *
2504
+ * @property adyen: Ayden specific properties.
2505
+ *
2506
+ * @property paypal: PayPal specific properties.
2507
+ *
2508
+ */
2509
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
2510
+ stripe?: {
2511
+ [key: string]: any;
2512
+ };
2513
+ adyen?: {
2514
+ [key: string]: any;
2515
+ };
2516
+ paypal?: {
2517
+ [key: string]: any;
2518
+ };
2519
+ } & {
2520
+ [key: string]: any;
2521
+ };
2522
+ /**
2523
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
2524
+ *
2525
+ * @property paymentReferenceId: Payment reference identifier. Can be payment intent ID for Stripe, PSP reference for Adyen, PayPal order ID for PayPal, or similar identifier for other payment providers.
2526
+ * - **Max Length:** 256
2527
+ *
2528
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
2529
+ * - **Max Length:** 256
2530
+ *
2531
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
2532
+ * - **Max Length:** 2048
2533
+ *
2534
+ * @property gateway: The payment gateway used to process the payment.
2535
+ *
2536
+ * @property gatewayProperties:
2537
+ *
2538
+ */
2539
+ type OrderPaymentInstrumentPaymentReference = {
2540
+ paymentReferenceId?: string;
2541
+ clientSecret?: string;
2542
+ redirectUrl?: string;
2543
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
2544
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
2545
+ } & {
2546
+ [key: string]: any;
2547
+ };
2548
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
2230
2549
  /**
2231
2550
  * @type PaymentCard: Document representing a payment card.
2232
2551
  *
@@ -2292,6 +2611,8 @@ declare namespace ShopperOrdersApiTypes {
2292
2611
  * @property paymentMethodId: The payment method ID. It is read only.
2293
2612
  * - **Max Length:** 256
2294
2613
  *
2614
+ * @property paymentReference:
2615
+ *
2295
2616
  */
2296
2617
  type OrderPaymentInstrument = {
2297
2618
  amount?: number;
@@ -2301,6 +2622,7 @@ declare namespace ShopperOrdersApiTypes {
2301
2622
  paymentCard?: PaymentCard;
2302
2623
  paymentInstrumentId?: string;
2303
2624
  paymentMethodId?: string;
2625
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
2304
2626
  } & {
2305
2627
  [key: string]: any;
2306
2628
  };
@@ -2840,6 +3162,21 @@ declare namespace ShopperOrdersApiTypes {
2840
3162
  } & {
2841
3163
  [key: string]: any;
2842
3164
  };
3165
+ /**
3166
+ * @type SomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_orderitemsummary.htm for more information.
3167
+ *
3168
+ * @property status: Salesforce Order Management (SOM) status
3169
+ *
3170
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
3171
+ *
3172
+ */
3173
+ type SomInfo = {
3174
+ status?: SomInfoStatusEnum;
3175
+ quantityAvailableToCancel?: number;
3176
+ } & {
3177
+ [key: string]: any;
3178
+ };
3179
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
2843
3180
  /**
2844
3181
  * @type ProductItem: Document representing a product item.
2845
3182
  *
@@ -2890,6 +3227,8 @@ declare namespace ShopperOrdersApiTypes {
2890
3227
  *
2891
3228
  * @property shippingItemId: If the product line item has a related shipping item, this value is its ID. A related shipping item represents a surcharge applied to individual products using a particular shipping method. It is read only.
2892
3229
  *
3230
+ * @property somInfo:
3231
+ *
2893
3232
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
2894
3233
  *
2895
3234
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -2922,6 +3261,7 @@ declare namespace ShopperOrdersApiTypes {
2922
3261
  quantity?: number;
2923
3262
  shipmentId?: string;
2924
3263
  shippingItemId?: string;
3264
+ somInfo?: SomInfo;
2925
3265
  tax?: number;
2926
3266
  taxBasis?: number;
2927
3267
  taxClassId?: string;
@@ -3059,11 +3399,86 @@ declare namespace ShopperOrdersApiTypes {
3059
3399
  } & {
3060
3400
  [key: string]: any;
3061
3401
  };
3402
+ /**
3403
+ * @type FailOrderRequest: Document representing a fail order request.
3404
+ *
3405
+ * @property reasonCode: The reason code for failing the order.
3406
+ *
3407
+ */
3408
+ type FailOrderRequest = {
3409
+ reasonCode?: FailOrderRequestReasonCodeEnum;
3410
+ } & {
3411
+ [key: string]: any;
3412
+ };
3413
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
3062
3414
  /**
3063
3415
  * @type LocaleCode
3064
3416
  * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
3065
3417
  */
3066
3418
  type LocaleCode$0 = DefaultFallback | string;
3419
+ /**
3420
+ * @type ShipmentItem: Individual item within a shipment
3421
+ *
3422
+ * @property id: Unique identifier for the shipment item
3423
+ *
3424
+ * @property productItemId: Reference to the product item in the order
3425
+ *
3426
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
3427
+ *
3428
+ */
3429
+ type ShipmentItem = {
3430
+ id?: string;
3431
+ productItemId?: string;
3432
+ quantity?: number;
3433
+ } & {
3434
+ [key: string]: any;
3435
+ };
3436
+ /**
3437
+ * @type SchemasShipment: Shipment information from Salesforce Order Management created during fulfillment process. See https://developer.salesforce.com/docs/atlas.en-us.230.0.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_fulfillmentorder.htm for more information.
3438
+ *
3439
+ * @property id: Unique identifier for the shipment
3440
+ *
3441
+ * @property status: Current status of the shipment
3442
+ *
3443
+ * @property provider: Shipping provider name
3444
+ *
3445
+ * @property trackingNumber: Tracking number for the shipment
3446
+ *
3447
+ * @property trackingUrl: URL to track the shipment
3448
+ *
3449
+ * @property expectedDeliveryDate: Expected delivery date and time
3450
+ *
3451
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
3452
+ *
3453
+ * @property shipmentItems: Items included in this shipment
3454
+ *
3455
+ */
3456
+ type SchemasShipment = {
3457
+ id?: string;
3458
+ status?: string;
3459
+ provider?: string;
3460
+ trackingNumber?: string;
3461
+ trackingUrl?: string;
3462
+ expectedDeliveryDate?: string;
3463
+ actualDeliveryDate?: string;
3464
+ shipmentItems?: Array<ShipmentItem>;
3465
+ } & {
3466
+ [key: string]: any;
3467
+ };
3468
+ /**
3469
+ * @type SchemasSomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_ordersummary.htm for more information.
3470
+ *
3471
+ * @property status: Current status of the order
3472
+ *
3473
+ * @property shipments: List of shipments associated with the order
3474
+ *
3475
+ */
3476
+ type SchemasSomInfo = {
3477
+ status?: string;
3478
+ shipments?: Array<SchemasShipment>;
3479
+ } & {
3480
+ [key: string]: any;
3481
+ };
3067
3482
  /**
3068
3483
  * @type Order: Document representing an order.
3069
3484
  *
@@ -3141,6 +3556,8 @@ declare namespace ShopperOrdersApiTypes {
3141
3556
  * - **Min Length:** 1
3142
3557
  * - **Max Length:** 32
3143
3558
  *
3559
+ * @property somInfo:
3560
+ *
3144
3561
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
3145
3562
  *
3146
3563
  * @property status: The status.
@@ -3190,6 +3607,7 @@ declare namespace ShopperOrdersApiTypes {
3190
3607
  shippingTotal?: number;
3191
3608
  shippingTotalTax?: number;
3192
3609
  siteId?: string;
3610
+ somInfo?: SchemasSomInfo;
3193
3611
  sourceCode?: string;
3194
3612
  status?: OrderStatusEnum;
3195
3613
  taxTotal?: number;
@@ -3261,21 +3679,35 @@ declare namespace ShopperOrdersApiTypes {
3261
3679
  [key: string]: any;
3262
3680
  };
3263
3681
  /**
3264
- * @type SalesforcePaymentsRequest: Document representing a Salesforce Payments request.
3682
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
3265
3683
  *
3266
- * @property paymentMethodType: The payment method type (for example: Visa).
3267
- * - **Max Length:** 100
3684
+ * @property paymentMethodType: Payment Method Type
3685
+ * - **Max Length:** 64
3268
3686
  *
3269
- * @property zoneId: The zone ID.
3687
+ * @property zoneId: The unique identifier for a Payments zone.
3688
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
3689
+ * - **Min Length:** 1
3270
3690
  * - **Max Length:** 100
3271
3691
  *
3692
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
3693
+ * - **Max Length:** 64
3694
+ *
3695
+ * @property gateway: The payment gateway used to process the payment.
3696
+ *
3697
+ * @property gatewayProperties:
3698
+ *
3272
3699
  */
3273
- type SalesforcePaymentsRequest = {
3700
+ type PaymentReferenceRequest = {
3274
3701
  paymentMethodType?: string;
3275
3702
  zoneId?: string;
3703
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
3704
+ gateway?: PaymentReferenceRequestGatewayEnum;
3705
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
3276
3706
  } & {
3277
3707
  [key: string]: any;
3278
3708
  };
3709
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
3710
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
3279
3711
  /**
3280
3712
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
3281
3713
  *
@@ -3292,7 +3724,7 @@ declare namespace ShopperOrdersApiTypes {
3292
3724
  * @property paymentMethodId: The payment method ID.
3293
3725
  * - **Max Length:** 256
3294
3726
  *
3295
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
3727
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
3296
3728
  *
3297
3729
  */
3298
3730
  type OrderPaymentInstrumentRequest = {
@@ -3301,7 +3733,7 @@ declare namespace ShopperOrdersApiTypes {
3301
3733
  giftCertificateCode?: string;
3302
3734
  paymentCard?: OrderPaymentCardRequest;
3303
3735
  paymentMethodId?: string;
3304
- paymentReferenceRequest?: SalesforcePaymentsRequest;
3736
+ paymentReferenceRequest?: PaymentReferenceRequest;
3305
3737
  } & {
3306
3738
  [key: string]: any;
3307
3739
  };
@@ -3416,6 +3848,7 @@ declare namespace ShopperOrdersApiTypes {
3416
3848
  } & {
3417
3849
  [key: string]: any;
3418
3850
  };
3851
+ type GetOrderExpandEnum = "som" | "som_shipments";
3419
3852
  type createOrderQueryParameters = {
3420
3853
  siteId: string;
3421
3854
  locale?: LocaleCode$0;
@@ -3431,9 +3864,19 @@ declare namespace ShopperOrdersApiTypes {
3431
3864
  organizationId: string;
3432
3865
  orderNo: string;
3433
3866
  };
3867
+ type failOrderQueryParameters = {
3868
+ siteId: string;
3869
+ locale?: LocaleCode$0;
3870
+ reopenBasket?: boolean;
3871
+ };
3872
+ type failOrderPathParameters = {
3873
+ organizationId: string;
3874
+ orderNo: string;
3875
+ };
3434
3876
  type getOrderQueryParameters = {
3435
3877
  siteId: string;
3436
3878
  locale?: LocaleCode$0;
3879
+ expand?: Array<"som" | "som_shipments">;
3437
3880
  };
3438
3881
  type getOrderPathParameters = {
3439
3882
  orderNo: string;
@@ -3483,11 +3926,11 @@ declare namespace ShopperOrdersApiTypes {
3483
3926
  /**
3484
3927
  * All path parameters that are used by at least one ShopperOrders method.
3485
3928
  */
3486
- type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
3929
+ type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & failOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
3487
3930
  /**
3488
3931
  * All query parameters that are used by at least one ShopperOrders method.
3489
3932
  */
3490
- type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
3933
+ type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & failOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
3491
3934
  /**
3492
3935
  * All parameters that are used by ShopperOrders.
3493
3936
  */
@@ -3496,7 +3939,9 @@ declare namespace ShopperOrdersApiTypes {
3496
3939
  * [Shopper Orders](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-orders:Summary)
3497
3940
  * ==================================
3498
3941
  *
3499
- * *# API Overview
3942
+ * *[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-orders/shopper-orders-oas-v1-public.yaml)
3943
+
3944
+ # API Overview
3500
3945
 
3501
3946
  The Shopper Orders API enables you to:
3502
3947
 
@@ -3559,6 +4004,7 @@ declare namespace ShopperOrdersApiTypes {
3559
4004
  static readonly apiPaths: {
3560
4005
  createOrder: string;
3561
4006
  createPaymentInstrumentForOrder: string;
4007
+ failOrder: string;
3562
4008
  getOrder: string;
3563
4009
  getPaymentMethodsForOrder: string;
3564
4010
  getTaxesFromOrder: string;
@@ -3588,11 +4034,24 @@ declare namespace ShopperOrdersApiTypes {
3588
4034
  "orderNo",
3589
4035
  "siteId"
3590
4036
  ];
4037
+ readonly failOrder: readonly [
4038
+ "organizationId",
4039
+ "orderNo",
4040
+ "siteId",
4041
+ "locale",
4042
+ "reopenBasket"
4043
+ ];
4044
+ readonly failOrderRequired: readonly [
4045
+ "organizationId",
4046
+ "orderNo",
4047
+ "siteId"
4048
+ ];
3591
4049
  readonly getOrder: readonly [
3592
4050
  "orderNo",
3593
4051
  "organizationId",
3594
4052
  "siteId",
3595
- "locale"
4053
+ "locale",
4054
+ "expand"
3596
4055
  ];
3597
4056
  readonly getOrderRequired: readonly [
3598
4057
  "orderNo",
@@ -3774,6 +4233,71 @@ declare namespace ShopperOrdersApiTypes {
3774
4233
  };
3775
4234
  body: OrderPaymentInstrumentRequest & CustomRequestBody;
3776
4235
  }>, rawResponse?: T): Promise<T extends true ? Response : Order>;
4236
+ /**
4237
+ * Fails an unplaced order and optionally reopens the basket when indicated.
4238
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
4239
+ *
4240
+ * If you would like to get a raw Response object use the other failOrder function.
4241
+ *
4242
+ * @param options - An object containing the options for this method.
4243
+ * @param options.parameters - An object containing the parameters for this method.
4244
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
4245
+ * @param options.parameters.orderNo - The order number of the order to be modified.
4246
+ * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
4247
+ * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
4248
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
4249
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
4250
+ since a customer is limited to 1 storefront basket at a time.
4251
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
4252
+ * @param options.body - The data to send as the request body.
4253
+ *
4254
+ * @returns A promise of type void.
4255
+ */
4256
+ failOrder(options: RequireParametersUnlessAllAreOptional<{
4257
+ parameters?: CompositeParameters<{
4258
+ organizationId: string;
4259
+ orderNo: string;
4260
+ siteId: string;
4261
+ locale?: LocaleCode$0;
4262
+ reopenBasket?: boolean;
4263
+ } & QueryParameters, ConfigParameters>;
4264
+ headers?: {
4265
+ [key: string]: string;
4266
+ };
4267
+ body: FailOrderRequest & CustomRequestBody;
4268
+ }>): Promise<void>;
4269
+ /**
4270
+ * Fails an unplaced order and optionally reopens the basket when indicated.
4271
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
4272
+ *
4273
+ * @param options - An object containing the options for this method.
4274
+ * @param options.parameters - An object containing the parameters for this method.
4275
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
4276
+ * @param options.parameters.orderNo - The order number of the order to be modified.
4277
+ * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
4278
+ * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
4279
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
4280
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
4281
+ since a customer is limited to 1 storefront basket at a time.
4282
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
4283
+ * @param options.body - The data to send as the request body.
4284
+ * @param rawResponse - Set to true to return entire Response object instead of DTO.
4285
+ *
4286
+ * @returns A promise of type Response if rawResponse is true, a promise of type void otherwise.
4287
+ */
4288
+ failOrder<T extends boolean>(options: RequireParametersUnlessAllAreOptional<{
4289
+ parameters?: CompositeParameters<{
4290
+ organizationId: string;
4291
+ orderNo: string;
4292
+ siteId: string;
4293
+ locale?: LocaleCode$0;
4294
+ reopenBasket?: boolean;
4295
+ } & QueryParameters, ConfigParameters>;
4296
+ headers?: {
4297
+ [key: string]: string;
4298
+ };
4299
+ body: FailOrderRequest & CustomRequestBody;
4300
+ }>, rawResponse?: T): Promise<T extends true ? Response : void>;
3777
4301
  /**
3778
4302
  * Gets information for an order.
3779
4303
  *
@@ -3785,6 +4309,12 @@ declare namespace ShopperOrdersApiTypes {
3785
4309
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
3786
4310
  * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
3787
4311
  * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
4312
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
4313
+ When data is available in SOM, the expand parameter has the following behavior:
4314
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
4315
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
4316
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
4317
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
3788
4318
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
3789
4319
  *
3790
4320
  * @returns A promise of type Order.
@@ -3795,6 +4325,7 @@ declare namespace ShopperOrdersApiTypes {
3795
4325
  organizationId: string;
3796
4326
  siteId: string;
3797
4327
  locale?: LocaleCode$0;
4328
+ expand?: Array<GetOrderExpandEnum>;
3798
4329
  } & QueryParameters, ConfigParameters>;
3799
4330
  headers?: {
3800
4331
  [key: string]: string;
@@ -3809,6 +4340,12 @@ declare namespace ShopperOrdersApiTypes {
3809
4340
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
3810
4341
  * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
3811
4342
  * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
4343
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
4344
+ When data is available in SOM, the expand parameter has the following behavior:
4345
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
4346
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
4347
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
4348
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
3812
4349
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
3813
4350
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
3814
4351
  *
@@ -3820,6 +4357,7 @@ declare namespace ShopperOrdersApiTypes {
3820
4357
  organizationId: string;
3821
4358
  siteId: string;
3822
4359
  locale?: LocaleCode$0;
4360
+ expand?: Array<GetOrderExpandEnum>;
3823
4361
  } & QueryParameters, ConfigParameters>;
3824
4362
  headers?: {
3825
4363
  [key: string]: string;
@@ -4187,6 +4725,56 @@ declare namespace ShopperOrdersModelTypes {
4187
4725
  } & {
4188
4726
  [key: string]: any;
4189
4727
  };
4728
+ /**
4729
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
4730
+ *
4731
+ * @property stripe: Stripe specific properties.
4732
+ *
4733
+ * @property adyen: Ayden specific properties.
4734
+ *
4735
+ * @property paypal: PayPal specific properties.
4736
+ *
4737
+ */
4738
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
4739
+ stripe?: {
4740
+ [key: string]: any;
4741
+ };
4742
+ adyen?: {
4743
+ [key: string]: any;
4744
+ };
4745
+ paypal?: {
4746
+ [key: string]: any;
4747
+ };
4748
+ } & {
4749
+ [key: string]: any;
4750
+ };
4751
+ /**
4752
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
4753
+ *
4754
+ * @property paymentReferenceId: Payment reference identifier. Can be payment intent ID for Stripe, PSP reference for Adyen, PayPal order ID for PayPal, or similar identifier for other payment providers.
4755
+ * - **Max Length:** 256
4756
+ *
4757
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
4758
+ * - **Max Length:** 256
4759
+ *
4760
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
4761
+ * - **Max Length:** 2048
4762
+ *
4763
+ * @property gateway: The payment gateway used to process the payment.
4764
+ *
4765
+ * @property gatewayProperties:
4766
+ *
4767
+ */
4768
+ type OrderPaymentInstrumentPaymentReference = {
4769
+ paymentReferenceId?: string;
4770
+ clientSecret?: string;
4771
+ redirectUrl?: string;
4772
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
4773
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
4774
+ } & {
4775
+ [key: string]: any;
4776
+ };
4777
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
4190
4778
  /**
4191
4779
  * @type PaymentCard: Document representing a payment card.
4192
4780
  *
@@ -4252,6 +4840,8 @@ declare namespace ShopperOrdersModelTypes {
4252
4840
  * @property paymentMethodId: The payment method ID. It is read only.
4253
4841
  * - **Max Length:** 256
4254
4842
  *
4843
+ * @property paymentReference:
4844
+ *
4255
4845
  */
4256
4846
  type OrderPaymentInstrument = {
4257
4847
  amount?: number;
@@ -4261,6 +4851,7 @@ declare namespace ShopperOrdersModelTypes {
4261
4851
  paymentCard?: PaymentCard;
4262
4852
  paymentInstrumentId?: string;
4263
4853
  paymentMethodId?: string;
4854
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
4264
4855
  } & {
4265
4856
  [key: string]: any;
4266
4857
  };
@@ -4800,6 +5391,21 @@ declare namespace ShopperOrdersModelTypes {
4800
5391
  } & {
4801
5392
  [key: string]: any;
4802
5393
  };
5394
+ /**
5395
+ * @type SomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_orderitemsummary.htm for more information.
5396
+ *
5397
+ * @property status: Salesforce Order Management (SOM) status
5398
+ *
5399
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
5400
+ *
5401
+ */
5402
+ type SomInfo = {
5403
+ status?: SomInfoStatusEnum;
5404
+ quantityAvailableToCancel?: number;
5405
+ } & {
5406
+ [key: string]: any;
5407
+ };
5408
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
4803
5409
  /**
4804
5410
  * @type ProductItem: Document representing a product item.
4805
5411
  *
@@ -4850,6 +5456,8 @@ declare namespace ShopperOrdersModelTypes {
4850
5456
  *
4851
5457
  * @property shippingItemId: If the product line item has a related shipping item, this value is its ID. A related shipping item represents a surcharge applied to individual products using a particular shipping method. It is read only.
4852
5458
  *
5459
+ * @property somInfo:
5460
+ *
4853
5461
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
4854
5462
  *
4855
5463
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -4882,6 +5490,7 @@ declare namespace ShopperOrdersModelTypes {
4882
5490
  quantity?: number;
4883
5491
  shipmentId?: string;
4884
5492
  shippingItemId?: string;
5493
+ somInfo?: SomInfo;
4885
5494
  tax?: number;
4886
5495
  taxBasis?: number;
4887
5496
  taxClassId?: string;
@@ -5019,11 +5628,86 @@ declare namespace ShopperOrdersModelTypes {
5019
5628
  } & {
5020
5629
  [key: string]: any;
5021
5630
  };
5631
+ /**
5632
+ * @type FailOrderRequest: Document representing a fail order request.
5633
+ *
5634
+ * @property reasonCode: The reason code for failing the order.
5635
+ *
5636
+ */
5637
+ type FailOrderRequest = {
5638
+ reasonCode?: FailOrderRequestReasonCodeEnum;
5639
+ } & {
5640
+ [key: string]: any;
5641
+ };
5642
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
5022
5643
  /**
5023
5644
  * @type LocaleCode
5024
5645
  * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
5025
5646
  */
5026
5647
  type LocaleCode = DefaultFallback | string;
5648
+ /**
5649
+ * @type ShipmentItem: Individual item within a shipment
5650
+ *
5651
+ * @property id: Unique identifier for the shipment item
5652
+ *
5653
+ * @property productItemId: Reference to the product item in the order
5654
+ *
5655
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
5656
+ *
5657
+ */
5658
+ type ShipmentItem = {
5659
+ id?: string;
5660
+ productItemId?: string;
5661
+ quantity?: number;
5662
+ } & {
5663
+ [key: string]: any;
5664
+ };
5665
+ /**
5666
+ * @type SchemasShipment: Shipment information from Salesforce Order Management created during fulfillment process. See https://developer.salesforce.com/docs/atlas.en-us.230.0.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_fulfillmentorder.htm for more information.
5667
+ *
5668
+ * @property id: Unique identifier for the shipment
5669
+ *
5670
+ * @property status: Current status of the shipment
5671
+ *
5672
+ * @property provider: Shipping provider name
5673
+ *
5674
+ * @property trackingNumber: Tracking number for the shipment
5675
+ *
5676
+ * @property trackingUrl: URL to track the shipment
5677
+ *
5678
+ * @property expectedDeliveryDate: Expected delivery date and time
5679
+ *
5680
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
5681
+ *
5682
+ * @property shipmentItems: Items included in this shipment
5683
+ *
5684
+ */
5685
+ type SchemasShipment = {
5686
+ id?: string;
5687
+ status?: string;
5688
+ provider?: string;
5689
+ trackingNumber?: string;
5690
+ trackingUrl?: string;
5691
+ expectedDeliveryDate?: string;
5692
+ actualDeliveryDate?: string;
5693
+ shipmentItems?: Array<ShipmentItem>;
5694
+ } & {
5695
+ [key: string]: any;
5696
+ };
5697
+ /**
5698
+ * @type SchemasSomInfo: Additional information retrieved from Salesforce Order Management (SOM) See https://developer.salesforce.com/docs/atlas.en-us.order_management_developer_guide.meta/order_management_developer_guide/sforce_api_objects_ordersummary.htm for more information.
5699
+ *
5700
+ * @property status: Current status of the order
5701
+ *
5702
+ * @property shipments: List of shipments associated with the order
5703
+ *
5704
+ */
5705
+ type SchemasSomInfo = {
5706
+ status?: string;
5707
+ shipments?: Array<SchemasShipment>;
5708
+ } & {
5709
+ [key: string]: any;
5710
+ };
5027
5711
  /**
5028
5712
  * @type Order: Document representing an order.
5029
5713
  *
@@ -5101,6 +5785,8 @@ declare namespace ShopperOrdersModelTypes {
5101
5785
  * - **Min Length:** 1
5102
5786
  * - **Max Length:** 32
5103
5787
  *
5788
+ * @property somInfo:
5789
+ *
5104
5790
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
5105
5791
  *
5106
5792
  * @property status: The status.
@@ -5150,6 +5836,7 @@ declare namespace ShopperOrdersModelTypes {
5150
5836
  shippingTotal?: number;
5151
5837
  shippingTotalTax?: number;
5152
5838
  siteId?: string;
5839
+ somInfo?: SchemasSomInfo;
5153
5840
  sourceCode?: string;
5154
5841
  status?: OrderStatusEnum;
5155
5842
  taxTotal?: number;
@@ -5221,21 +5908,35 @@ declare namespace ShopperOrdersModelTypes {
5221
5908
  [key: string]: any;
5222
5909
  };
5223
5910
  /**
5224
- * @type SalesforcePaymentsRequest: Document representing a Salesforce Payments request.
5911
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
5225
5912
  *
5226
- * @property paymentMethodType: The payment method type (for example: Visa).
5227
- * - **Max Length:** 100
5913
+ * @property paymentMethodType: Payment Method Type
5914
+ * - **Max Length:** 64
5228
5915
  *
5229
- * @property zoneId: The zone ID.
5916
+ * @property zoneId: The unique identifier for a Payments zone.
5917
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
5918
+ * - **Min Length:** 1
5230
5919
  * - **Max Length:** 100
5231
5920
  *
5921
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
5922
+ * - **Max Length:** 64
5923
+ *
5924
+ * @property gateway: The payment gateway used to process the payment.
5925
+ *
5926
+ * @property gatewayProperties:
5927
+ *
5232
5928
  */
5233
- type SalesforcePaymentsRequest = {
5929
+ type PaymentReferenceRequest = {
5234
5930
  paymentMethodType?: string;
5235
5931
  zoneId?: string;
5932
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
5933
+ gateway?: PaymentReferenceRequestGatewayEnum;
5934
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
5236
5935
  } & {
5237
5936
  [key: string]: any;
5238
5937
  };
5938
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
5939
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
5239
5940
  /**
5240
5941
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
5241
5942
  *
@@ -5252,7 +5953,7 @@ declare namespace ShopperOrdersModelTypes {
5252
5953
  * @property paymentMethodId: The payment method ID.
5253
5954
  * - **Max Length:** 256
5254
5955
  *
5255
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
5956
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
5256
5957
  *
5257
5958
  */
5258
5959
  type OrderPaymentInstrumentRequest = {
@@ -5261,7 +5962,7 @@ declare namespace ShopperOrdersModelTypes {
5261
5962
  giftCertificateCode?: string;
5262
5963
  paymentCard?: OrderPaymentCardRequest;
5263
5964
  paymentMethodId?: string;
5264
- paymentReferenceRequest?: SalesforcePaymentsRequest;
5965
+ paymentReferenceRequest?: PaymentReferenceRequest;
5265
5966
  } & {
5266
5967
  [key: string]: any;
5267
5968
  };
@@ -5384,6 +6085,9 @@ declare namespace ShopperOrdersTypes {
5384
6085
  type createOrderPathParameters = ShopperOrdersApiTypes.createOrderPathParameters;
5385
6086
  type createPaymentInstrumentForOrderQueryParameters = ShopperOrdersApiTypes.createPaymentInstrumentForOrderQueryParameters;
5386
6087
  type createPaymentInstrumentForOrderPathParameters = ShopperOrdersApiTypes.createPaymentInstrumentForOrderPathParameters;
6088
+ type failOrderQueryParameters = ShopperOrdersApiTypes.failOrderQueryParameters;
6089
+ type failOrderPathParameters = ShopperOrdersApiTypes.failOrderPathParameters;
6090
+ type GetOrderExpandEnum = ShopperOrdersApiTypes.GetOrderExpandEnum;
5387
6091
  type getOrderQueryParameters = ShopperOrdersApiTypes.getOrderQueryParameters;
5388
6092
  type getOrderPathParameters = ShopperOrdersApiTypes.getOrderPathParameters;
5389
6093
  type getPaymentMethodsForOrderQueryParameters = ShopperOrdersApiTypes.getPaymentMethodsForOrderQueryParameters;
@@ -5408,6 +6112,8 @@ declare namespace ShopperOrdersTypes {
5408
6112
  type Discount = ShopperOrdersModelTypes.Discount;
5409
6113
  type DiscountTypeEnum = ShopperOrdersModelTypes.DiscountTypeEnum;
5410
6114
  type ErrorResponse = ShopperOrdersModelTypes.ErrorResponse;
6115
+ type FailOrderRequest = ShopperOrdersModelTypes.FailOrderRequest;
6116
+ type FailOrderRequestReasonCodeEnum = ShopperOrdersModelTypes.FailOrderRequestReasonCodeEnum;
5411
6117
  type GiftCertificateItem = ShopperOrdersModelTypes.GiftCertificateItem;
5412
6118
  type GroupedTaxItem = ShopperOrdersModelTypes.GroupedTaxItem;
5413
6119
  type LocaleCode = ShopperOrdersModelTypes.LocaleCode;
@@ -5425,11 +6131,17 @@ declare namespace ShopperOrdersTypes {
5425
6131
  type OrderLookupRequest = ShopperOrdersModelTypes.OrderLookupRequest;
5426
6132
  type OrderPaymentCardRequest = ShopperOrdersModelTypes.OrderPaymentCardRequest;
5427
6133
  type OrderPaymentInstrument = ShopperOrdersModelTypes.OrderPaymentInstrument;
6134
+ type OrderPaymentInstrumentPaymentReference = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReference;
6135
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReferenceGatewayEnum;
6136
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReferenceGatewayProperties;
5428
6137
  type OrderPaymentInstrumentRequest = ShopperOrdersModelTypes.OrderPaymentInstrumentRequest;
5429
6138
  type PaymentCard = ShopperOrdersModelTypes.PaymentCard;
5430
6139
  type PaymentCardSpec = ShopperOrdersModelTypes.PaymentCardSpec;
5431
6140
  type PaymentMethod = ShopperOrdersModelTypes.PaymentMethod;
5432
6141
  type PaymentMethodResult = ShopperOrdersModelTypes.PaymentMethodResult;
6142
+ type PaymentReferenceRequest = ShopperOrdersModelTypes.PaymentReferenceRequest;
6143
+ type PaymentReferenceRequestShippingPreferenceEnum = ShopperOrdersModelTypes.PaymentReferenceRequestShippingPreferenceEnum;
6144
+ type PaymentReferenceRequestGatewayEnum = ShopperOrdersModelTypes.PaymentReferenceRequestGatewayEnum;
5433
6145
  type PriceAdjustment = ShopperOrdersModelTypes.PriceAdjustment;
5434
6146
  type ProductDetailsLink = ShopperOrdersModelTypes.ProductDetailsLink;
5435
6147
  type ProductItem = ShopperOrdersModelTypes.ProductItem;
@@ -5437,15 +6149,19 @@ declare namespace ShopperOrdersTypes {
5437
6149
  type ProductListItemReferenceTypeEnum = ShopperOrdersModelTypes.ProductListItemReferenceTypeEnum;
5438
6150
  type ProductListLink = ShopperOrdersModelTypes.ProductListLink;
5439
6151
  type ProductListLinkTypeEnum = ShopperOrdersModelTypes.ProductListLinkTypeEnum;
5440
- type SalesforcePaymentsRequest = ShopperOrdersModelTypes.SalesforcePaymentsRequest;
6152
+ type SchemasShipment = ShopperOrdersModelTypes.SchemasShipment;
6153
+ type SchemasSomInfo = ShopperOrdersModelTypes.SchemasSomInfo;
5441
6154
  type Shipment = ShopperOrdersModelTypes.Shipment;
5442
6155
  type ShipmentShippingStatusEnum = ShopperOrdersModelTypes.ShipmentShippingStatusEnum;
6156
+ type ShipmentItem = ShopperOrdersModelTypes.ShipmentItem;
5443
6157
  type ShippingItem = ShopperOrdersModelTypes.ShippingItem;
5444
6158
  type ShippingMethod = ShopperOrdersModelTypes.ShippingMethod;
5445
6159
  type ShippingPromotion = ShopperOrdersModelTypes.ShippingPromotion;
6160
+ type SomInfo = ShopperOrdersModelTypes.SomInfo;
6161
+ type SomInfoStatusEnum = ShopperOrdersModelTypes.SomInfoStatusEnum;
5446
6162
  type Status = ShopperOrdersModelTypes.Status;
5447
6163
  type TaxItem = ShopperOrdersModelTypes.TaxItem;
5448
6164
  type TaxItems = ShopperOrdersModelTypes.TaxItems;
5449
6165
  type Taxes = ShopperOrdersModelTypes.Taxes;
5450
6166
  }
5451
- export { defaultBaseUri, createOrderQueryParameters, createOrderPathParameters, createPaymentInstrumentForOrderQueryParameters, createPaymentInstrumentForOrderPathParameters, getOrderQueryParameters, getOrderPathParameters, getPaymentMethodsForOrderQueryParameters, getPaymentMethodsForOrderPathParameters, getTaxesFromOrderQueryParameters, getTaxesFromOrderPathParameters, guestOrderLookupQueryParameters, guestOrderLookupPathParameters, removePaymentInstrumentFromOrderQueryParameters, removePaymentInstrumentFromOrderPathParameters, updatePaymentInstrumentForOrderQueryParameters, updatePaymentInstrumentForOrderPathParameters, ShopperOrdersPathParameters, ShopperOrdersQueryParameters, ShopperOrdersParameters, ShopperOrders, Basket, BasketChannelTypeEnum, BasketTaxationEnum, BonusDiscountLineItem, CouponItem, CouponItemStatusCodeEnum, CurrencyCode, CustomerInfo, DefaultFallback, Discount, DiscountTypeEnum, ErrorResponse, GiftCertificateItem, GroupedTaxItem, LocaleCode$0 as LocaleCode, NoValue, OptionItem, Order, OrderChannelTypeEnum, OrderConfirmationStatusEnum, OrderExportStatusEnum, OrderPaymentStatusEnum, OrderShippingStatusEnum, OrderStatusEnum, OrderTaxationEnum, OrderAddress, OrderLookupRequest, OrderPaymentCardRequest, OrderPaymentInstrument, OrderPaymentInstrumentRequest, PaymentCard, PaymentCardSpec, PaymentMethod, PaymentMethodResult, PriceAdjustment, ProductDetailsLink, ProductItem, ProductListItemReference, ProductListItemReferenceTypeEnum, ProductListLink, ProductListLinkTypeEnum, SalesforcePaymentsRequest, Shipment, ShipmentShippingStatusEnum, ShippingItem, ShippingMethod, ShippingPromotion, Status, TaxItem, TaxItems, Taxes, ShopperOrdersTypes };
6167
+ export { defaultBaseUri, GetOrderExpandEnum, createOrderQueryParameters, createOrderPathParameters, createPaymentInstrumentForOrderQueryParameters, createPaymentInstrumentForOrderPathParameters, failOrderQueryParameters, failOrderPathParameters, getOrderQueryParameters, getOrderPathParameters, getPaymentMethodsForOrderQueryParameters, getPaymentMethodsForOrderPathParameters, getTaxesFromOrderQueryParameters, getTaxesFromOrderPathParameters, guestOrderLookupQueryParameters, guestOrderLookupPathParameters, removePaymentInstrumentFromOrderQueryParameters, removePaymentInstrumentFromOrderPathParameters, updatePaymentInstrumentForOrderQueryParameters, updatePaymentInstrumentForOrderPathParameters, ShopperOrdersPathParameters, ShopperOrdersQueryParameters, ShopperOrdersParameters, ShopperOrders, Basket, BasketChannelTypeEnum, BasketTaxationEnum, BonusDiscountLineItem, CouponItem, CouponItemStatusCodeEnum, CurrencyCode, CustomerInfo, DefaultFallback, Discount, DiscountTypeEnum, ErrorResponse, FailOrderRequest, FailOrderRequestReasonCodeEnum, GiftCertificateItem, GroupedTaxItem, LocaleCode$0 as LocaleCode, NoValue, OptionItem, Order, OrderChannelTypeEnum, OrderConfirmationStatusEnum, OrderExportStatusEnum, OrderPaymentStatusEnum, OrderShippingStatusEnum, OrderStatusEnum, OrderTaxationEnum, OrderAddress, OrderLookupRequest, OrderPaymentCardRequest, OrderPaymentInstrument, OrderPaymentInstrumentPaymentReference, OrderPaymentInstrumentPaymentReferenceGatewayEnum, OrderPaymentInstrumentPaymentReferenceGatewayProperties, OrderPaymentInstrumentRequest, PaymentCard, PaymentCardSpec, PaymentMethod, PaymentMethodResult, PaymentReferenceRequest, PaymentReferenceRequestShippingPreferenceEnum, PaymentReferenceRequestGatewayEnum, PriceAdjustment, ProductDetailsLink, ProductItem, ProductListItemReference, ProductListItemReferenceTypeEnum, ProductListLink, ProductListLinkTypeEnum, SchemasShipment, SchemasSomInfo, Shipment, ShipmentShippingStatusEnum, ShipmentItem, ShippingItem, ShippingMethod, ShippingPromotion, SomInfo, SomInfoStatusEnum, Status, TaxItem, TaxItems, Taxes, ShopperOrdersTypes };