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
@@ -41798,6 +41798,56 @@ type Status$2 = {
41798
41798
  } & {
41799
41799
  [key: string]: any;
41800
41800
  };
41801
+ /**
41802
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
41803
+ *
41804
+ * @property stripe: Stripe specific properties.
41805
+ *
41806
+ * @property adyen: Ayden specific properties.
41807
+ *
41808
+ * @property paypal: PayPal specific properties.
41809
+ *
41810
+ */
41811
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
41812
+ stripe?: {
41813
+ [key: string]: any;
41814
+ };
41815
+ adyen?: {
41816
+ [key: string]: any;
41817
+ };
41818
+ paypal?: {
41819
+ [key: string]: any;
41820
+ };
41821
+ } & {
41822
+ [key: string]: any;
41823
+ };
41824
+ /**
41825
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
41826
+ *
41827
+ * @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.
41828
+ * - **Max Length:** 256
41829
+ *
41830
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
41831
+ * - **Max Length:** 256
41832
+ *
41833
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
41834
+ * - **Max Length:** 2048
41835
+ *
41836
+ * @property gateway: The payment gateway used to process the payment.
41837
+ *
41838
+ * @property gatewayProperties:
41839
+ *
41840
+ */
41841
+ type OrderPaymentInstrumentPaymentReference = {
41842
+ paymentReferenceId?: string;
41843
+ clientSecret?: string;
41844
+ redirectUrl?: string;
41845
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
41846
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
41847
+ } & {
41848
+ [key: string]: any;
41849
+ };
41850
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
41801
41851
  /**
41802
41852
  * @type PaymentCard: Document representing a payment card.
41803
41853
  *
@@ -41863,6 +41913,8 @@ type PaymentCard$2 = {
41863
41913
  * @property paymentMethodId: The payment method ID. It is read only.
41864
41914
  * - **Max Length:** 256
41865
41915
  *
41916
+ * @property paymentReference:
41917
+ *
41866
41918
  */
41867
41919
  type OrderPaymentInstrument$2 = {
41868
41920
  amount?: number;
@@ -41872,6 +41924,7 @@ type OrderPaymentInstrument$2 = {
41872
41924
  paymentCard?: PaymentCard$2;
41873
41925
  paymentInstrumentId?: string;
41874
41926
  paymentMethodId?: string;
41927
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
41875
41928
  } & {
41876
41929
  [key: string]: any;
41877
41930
  };
@@ -42411,6 +42464,21 @@ type OptionItem$2 = {
42411
42464
  } & {
42412
42465
  [key: string]: any;
42413
42466
  };
42467
+ /**
42468
+ * @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.
42469
+ *
42470
+ * @property status: Salesforce Order Management (SOM) status
42471
+ *
42472
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
42473
+ *
42474
+ */
42475
+ type SomInfo = {
42476
+ status?: SomInfoStatusEnum;
42477
+ quantityAvailableToCancel?: number;
42478
+ } & {
42479
+ [key: string]: any;
42480
+ };
42481
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
42414
42482
  /**
42415
42483
  * @type ProductItem: Document representing a product item.
42416
42484
  *
@@ -42461,6 +42529,8 @@ type OptionItem$2 = {
42461
42529
  *
42462
42530
  * @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.
42463
42531
  *
42532
+ * @property somInfo:
42533
+ *
42464
42534
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
42465
42535
  *
42466
42536
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -42493,6 +42563,7 @@ type ProductItem$2 = {
42493
42563
  quantity?: number;
42494
42564
  shipmentId?: string;
42495
42565
  shippingItemId?: string;
42566
+ somInfo?: SomInfo;
42496
42567
  tax?: number;
42497
42568
  taxBasis?: number;
42498
42569
  taxClassId?: string;
@@ -42607,11 +42678,86 @@ type BasketTaxationEnum$2 = "gross" | "net";
42607
42678
  * A specialized value indicating the system default values for locales.
42608
42679
  */
42609
42680
  type DefaultFallback$3 = "default";
42681
+ /**
42682
+ * @type FailOrderRequest: Document representing a fail order request.
42683
+ *
42684
+ * @property reasonCode: The reason code for failing the order.
42685
+ *
42686
+ */
42687
+ type FailOrderRequest = {
42688
+ reasonCode?: FailOrderRequestReasonCodeEnum;
42689
+ } & {
42690
+ [key: string]: any;
42691
+ };
42692
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
42610
42693
  /**
42611
42694
  * @type LocaleCode
42612
42695
  * 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.
42613
42696
  */
42614
42697
  type LocaleCode$4 = DefaultFallback$3 | string;
42698
+ /**
42699
+ * @type ShipmentItem: Individual item within a shipment
42700
+ *
42701
+ * @property id: Unique identifier for the shipment item
42702
+ *
42703
+ * @property productItemId: Reference to the product item in the order
42704
+ *
42705
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
42706
+ *
42707
+ */
42708
+ type ShipmentItem = {
42709
+ id?: string;
42710
+ productItemId?: string;
42711
+ quantity?: number;
42712
+ } & {
42713
+ [key: string]: any;
42714
+ };
42715
+ /**
42716
+ * @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.
42717
+ *
42718
+ * @property id: Unique identifier for the shipment
42719
+ *
42720
+ * @property status: Current status of the shipment
42721
+ *
42722
+ * @property provider: Shipping provider name
42723
+ *
42724
+ * @property trackingNumber: Tracking number for the shipment
42725
+ *
42726
+ * @property trackingUrl: URL to track the shipment
42727
+ *
42728
+ * @property expectedDeliveryDate: Expected delivery date and time
42729
+ *
42730
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
42731
+ *
42732
+ * @property shipmentItems: Items included in this shipment
42733
+ *
42734
+ */
42735
+ type SchemasShipment = {
42736
+ id?: string;
42737
+ status?: string;
42738
+ provider?: string;
42739
+ trackingNumber?: string;
42740
+ trackingUrl?: string;
42741
+ expectedDeliveryDate?: string;
42742
+ actualDeliveryDate?: string;
42743
+ shipmentItems?: Array<ShipmentItem>;
42744
+ } & {
42745
+ [key: string]: any;
42746
+ };
42747
+ /**
42748
+ * @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.
42749
+ *
42750
+ * @property status: Current status of the order
42751
+ *
42752
+ * @property shipments: List of shipments associated with the order
42753
+ *
42754
+ */
42755
+ type SchemasSomInfo = {
42756
+ status?: string;
42757
+ shipments?: Array<SchemasShipment>;
42758
+ } & {
42759
+ [key: string]: any;
42760
+ };
42615
42761
  /**
42616
42762
  * @type Order: Document representing an order.
42617
42763
  *
@@ -42689,6 +42835,8 @@ type LocaleCode$4 = DefaultFallback$3 | string;
42689
42835
  * - **Min Length:** 1
42690
42836
  * - **Max Length:** 32
42691
42837
  *
42838
+ * @property somInfo:
42839
+ *
42692
42840
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
42693
42841
  *
42694
42842
  * @property status: The status.
@@ -42738,6 +42886,7 @@ type Order$0 = {
42738
42886
  shippingTotal?: number;
42739
42887
  shippingTotalTax?: number;
42740
42888
  siteId?: string;
42889
+ somInfo?: SchemasSomInfo;
42741
42890
  sourceCode?: string;
42742
42891
  status?: OrderStatusEnum;
42743
42892
  taxTotal?: number;
@@ -42809,21 +42958,35 @@ type OrderPaymentCardRequest$1 = {
42809
42958
  [key: string]: any;
42810
42959
  };
42811
42960
  /**
42812
- * @type SalesforcePaymentsRequest: Document representing a Salesforce Payments request.
42961
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
42813
42962
  *
42814
- * @property paymentMethodType: The payment method type (for example: Visa).
42815
- * - **Max Length:** 100
42963
+ * @property paymentMethodType: Payment Method Type
42964
+ * - **Max Length:** 64
42816
42965
  *
42817
- * @property zoneId: The zone ID.
42966
+ * @property zoneId: The unique identifier for a Payments zone.
42967
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
42968
+ * - **Min Length:** 1
42818
42969
  * - **Max Length:** 100
42819
42970
  *
42971
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
42972
+ * - **Max Length:** 64
42973
+ *
42974
+ * @property gateway: The payment gateway used to process the payment.
42975
+ *
42976
+ * @property gatewayProperties:
42977
+ *
42820
42978
  */
42821
- type SalesforcePaymentsRequest$0 = {
42979
+ type PaymentReferenceRequest = {
42822
42980
  paymentMethodType?: string;
42823
42981
  zoneId?: string;
42982
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
42983
+ gateway?: PaymentReferenceRequestGatewayEnum;
42984
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
42824
42985
  } & {
42825
42986
  [key: string]: any;
42826
42987
  };
42988
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
42989
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
42827
42990
  /**
42828
42991
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
42829
42992
  *
@@ -42840,7 +43003,7 @@ type SalesforcePaymentsRequest$0 = {
42840
43003
  * @property paymentMethodId: The payment method ID.
42841
43004
  * - **Max Length:** 256
42842
43005
  *
42843
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
43006
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
42844
43007
  *
42845
43008
  */
42846
43009
  type OrderPaymentInstrumentRequest = {
@@ -42849,7 +43012,7 @@ type OrderPaymentInstrumentRequest = {
42849
43012
  giftCertificateCode?: string;
42850
43013
  paymentCard?: OrderPaymentCardRequest$1;
42851
43014
  paymentMethodId?: string;
42852
- paymentReferenceRequest?: SalesforcePaymentsRequest$0;
43015
+ paymentReferenceRequest?: PaymentReferenceRequest;
42853
43016
  } & {
42854
43017
  [key: string]: any;
42855
43018
  };
@@ -42964,6 +43127,7 @@ type Taxes$1 = {
42964
43127
  } & {
42965
43128
  [key: string]: any;
42966
43129
  };
43130
+ type GetOrderExpandEnum = "som" | "som_shipments";
42967
43131
  type createOrderQueryParameters = {
42968
43132
  siteId: string;
42969
43133
  locale?: LocaleCode$4;
@@ -42979,9 +43143,19 @@ type createPaymentInstrumentForOrderPathParameters = {
42979
43143
  organizationId: string;
42980
43144
  orderNo: string;
42981
43145
  };
43146
+ type failOrderQueryParameters = {
43147
+ siteId: string;
43148
+ locale?: LocaleCode$4;
43149
+ reopenBasket?: boolean;
43150
+ };
43151
+ type failOrderPathParameters = {
43152
+ organizationId: string;
43153
+ orderNo: string;
43154
+ };
42982
43155
  type getOrderQueryParameters = {
42983
43156
  siteId: string;
42984
43157
  locale?: LocaleCode$4;
43158
+ expand?: Array<"som" | "som_shipments">;
42985
43159
  };
42986
43160
  type getOrderPathParameters = {
42987
43161
  orderNo: string;
@@ -43031,11 +43205,11 @@ type updatePaymentInstrumentForOrderPathParameters = {
43031
43205
  /**
43032
43206
  * All path parameters that are used by at least one ShopperOrders method.
43033
43207
  */
43034
- type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
43208
+ type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & failOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
43035
43209
  /**
43036
43210
  * All query parameters that are used by at least one ShopperOrders method.
43037
43211
  */
43038
- type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
43212
+ type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & failOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
43039
43213
  /**
43040
43214
  * All parameters that are used by ShopperOrders.
43041
43215
  */
@@ -43044,7 +43218,9 @@ type ShopperOrdersParameters = ShopperOrdersPathParameters & BaseUriParameters &
43044
43218
  * [Shopper Orders](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-orders:Summary)
43045
43219
  * ==================================
43046
43220
  *
43047
- * *# API Overview
43221
+ * *[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-orders/shopper-orders-oas-v1-public.yaml)
43222
+
43223
+ # API Overview
43048
43224
 
43049
43225
  The Shopper Orders API enables you to:
43050
43226
 
@@ -43107,6 +43283,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43107
43283
  static readonly apiPaths: {
43108
43284
  createOrder: string;
43109
43285
  createPaymentInstrumentForOrder: string;
43286
+ failOrder: string;
43110
43287
  getOrder: string;
43111
43288
  getPaymentMethodsForOrder: string;
43112
43289
  getTaxesFromOrder: string;
@@ -43136,11 +43313,24 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43136
43313
  "orderNo",
43137
43314
  "siteId"
43138
43315
  ];
43316
+ readonly failOrder: readonly [
43317
+ "organizationId",
43318
+ "orderNo",
43319
+ "siteId",
43320
+ "locale",
43321
+ "reopenBasket"
43322
+ ];
43323
+ readonly failOrderRequired: readonly [
43324
+ "organizationId",
43325
+ "orderNo",
43326
+ "siteId"
43327
+ ];
43139
43328
  readonly getOrder: readonly [
43140
43329
  "orderNo",
43141
43330
  "organizationId",
43142
43331
  "siteId",
43143
- "locale"
43332
+ "locale",
43333
+ "expand"
43144
43334
  ];
43145
43335
  readonly getOrderRequired: readonly [
43146
43336
  "orderNo",
@@ -43322,6 +43512,71 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43322
43512
  };
43323
43513
  body: OrderPaymentInstrumentRequest & CustomRequestBody;
43324
43514
  }>, rawResponse?: T): Promise<T extends true ? Response : Order$0>;
43515
+ /**
43516
+ * Fails an unplaced order and optionally reopens the basket when indicated.
43517
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
43518
+ *
43519
+ * If you would like to get a raw Response object use the other failOrder function.
43520
+ *
43521
+ * @param options - An object containing the options for this method.
43522
+ * @param options.parameters - An object containing the parameters for this method.
43523
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
43524
+ * @param options.parameters.orderNo - The order number of the order to be modified.
43525
+ * @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.
43526
+ * @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.
43527
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
43528
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
43529
+ since a customer is limited to 1 storefront basket at a time.
43530
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
43531
+ * @param options.body - The data to send as the request body.
43532
+ *
43533
+ * @returns A promise of type void.
43534
+ */
43535
+ failOrder(options: RequireParametersUnlessAllAreOptional<{
43536
+ parameters?: CompositeParameters<{
43537
+ organizationId: string;
43538
+ orderNo: string;
43539
+ siteId: string;
43540
+ locale?: LocaleCode$4;
43541
+ reopenBasket?: boolean;
43542
+ } & QueryParameters, ConfigParameters>;
43543
+ headers?: {
43544
+ [key: string]: string;
43545
+ };
43546
+ body: FailOrderRequest & CustomRequestBody;
43547
+ }>): Promise<void>;
43548
+ /**
43549
+ * Fails an unplaced order and optionally reopens the basket when indicated.
43550
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
43551
+ *
43552
+ * @param options - An object containing the options for this method.
43553
+ * @param options.parameters - An object containing the parameters for this method.
43554
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
43555
+ * @param options.parameters.orderNo - The order number of the order to be modified.
43556
+ * @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.
43557
+ * @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.
43558
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
43559
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
43560
+ since a customer is limited to 1 storefront basket at a time.
43561
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
43562
+ * @param options.body - The data to send as the request body.
43563
+ * @param rawResponse - Set to true to return entire Response object instead of DTO.
43564
+ *
43565
+ * @returns A promise of type Response if rawResponse is true, a promise of type void otherwise.
43566
+ */
43567
+ failOrder<T extends boolean>(options: RequireParametersUnlessAllAreOptional<{
43568
+ parameters?: CompositeParameters<{
43569
+ organizationId: string;
43570
+ orderNo: string;
43571
+ siteId: string;
43572
+ locale?: LocaleCode$4;
43573
+ reopenBasket?: boolean;
43574
+ } & QueryParameters, ConfigParameters>;
43575
+ headers?: {
43576
+ [key: string]: string;
43577
+ };
43578
+ body: FailOrderRequest & CustomRequestBody;
43579
+ }>, rawResponse?: T): Promise<T extends true ? Response : void>;
43325
43580
  /**
43326
43581
  * Gets information for an order.
43327
43582
  *
@@ -43333,6 +43588,12 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43333
43588
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
43334
43589
  * @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.
43335
43590
  * @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.
43591
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
43592
+ When data is available in SOM, the expand parameter has the following behavior:
43593
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
43594
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
43595
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
43596
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
43336
43597
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
43337
43598
  *
43338
43599
  * @returns A promise of type Order.
@@ -43343,6 +43604,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43343
43604
  organizationId: string;
43344
43605
  siteId: string;
43345
43606
  locale?: LocaleCode$4;
43607
+ expand?: Array<GetOrderExpandEnum>;
43346
43608
  } & QueryParameters, ConfigParameters>;
43347
43609
  headers?: {
43348
43610
  [key: string]: string;
@@ -43357,6 +43619,12 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43357
43619
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
43358
43620
  * @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.
43359
43621
  * @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.
43622
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
43623
+ When data is available in SOM, the expand parameter has the following behavior:
43624
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
43625
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
43626
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
43627
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
43360
43628
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
43361
43629
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
43362
43630
  *
@@ -43368,6 +43636,7 @@ declare class ShopperOrders<ConfigParameters extends ShopperOrdersParameters & R
43368
43636
  organizationId: string;
43369
43637
  siteId: string;
43370
43638
  locale?: LocaleCode$4;
43639
+ expand?: Array<GetOrderExpandEnum>;
43371
43640
  } & QueryParameters, ConfigParameters>;
43372
43641
  headers?: {
43373
43642
  [key: string]: string;
@@ -43842,6 +44111,56 @@ declare namespace ShopperOrdersApiTypes {
43842
44111
  } & {
43843
44112
  [key: string]: any;
43844
44113
  };
44114
+ /**
44115
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
44116
+ *
44117
+ * @property stripe: Stripe specific properties.
44118
+ *
44119
+ * @property adyen: Ayden specific properties.
44120
+ *
44121
+ * @property paypal: PayPal specific properties.
44122
+ *
44123
+ */
44124
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
44125
+ stripe?: {
44126
+ [key: string]: any;
44127
+ };
44128
+ adyen?: {
44129
+ [key: string]: any;
44130
+ };
44131
+ paypal?: {
44132
+ [key: string]: any;
44133
+ };
44134
+ } & {
44135
+ [key: string]: any;
44136
+ };
44137
+ /**
44138
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
44139
+ *
44140
+ * @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.
44141
+ * - **Max Length:** 256
44142
+ *
44143
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
44144
+ * - **Max Length:** 256
44145
+ *
44146
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
44147
+ * - **Max Length:** 2048
44148
+ *
44149
+ * @property gateway: The payment gateway used to process the payment.
44150
+ *
44151
+ * @property gatewayProperties:
44152
+ *
44153
+ */
44154
+ type OrderPaymentInstrumentPaymentReference = {
44155
+ paymentReferenceId?: string;
44156
+ clientSecret?: string;
44157
+ redirectUrl?: string;
44158
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
44159
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
44160
+ } & {
44161
+ [key: string]: any;
44162
+ };
44163
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
43845
44164
  /**
43846
44165
  * @type PaymentCard: Document representing a payment card.
43847
44166
  *
@@ -43907,6 +44226,8 @@ declare namespace ShopperOrdersApiTypes {
43907
44226
  * @property paymentMethodId: The payment method ID. It is read only.
43908
44227
  * - **Max Length:** 256
43909
44228
  *
44229
+ * @property paymentReference:
44230
+ *
43910
44231
  */
43911
44232
  type OrderPaymentInstrument = {
43912
44233
  amount?: number;
@@ -43916,6 +44237,7 @@ declare namespace ShopperOrdersApiTypes {
43916
44237
  paymentCard?: PaymentCard;
43917
44238
  paymentInstrumentId?: string;
43918
44239
  paymentMethodId?: string;
44240
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
43919
44241
  } & {
43920
44242
  [key: string]: any;
43921
44243
  };
@@ -44455,6 +44777,21 @@ declare namespace ShopperOrdersApiTypes {
44455
44777
  } & {
44456
44778
  [key: string]: any;
44457
44779
  };
44780
+ /**
44781
+ * @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.
44782
+ *
44783
+ * @property status: Salesforce Order Management (SOM) status
44784
+ *
44785
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
44786
+ *
44787
+ */
44788
+ type SomInfo = {
44789
+ status?: SomInfoStatusEnum;
44790
+ quantityAvailableToCancel?: number;
44791
+ } & {
44792
+ [key: string]: any;
44793
+ };
44794
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
44458
44795
  /**
44459
44796
  * @type ProductItem: Document representing a product item.
44460
44797
  *
@@ -44505,6 +44842,8 @@ declare namespace ShopperOrdersApiTypes {
44505
44842
  *
44506
44843
  * @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.
44507
44844
  *
44845
+ * @property somInfo:
44846
+ *
44508
44847
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
44509
44848
  *
44510
44849
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -44537,6 +44876,7 @@ declare namespace ShopperOrdersApiTypes {
44537
44876
  quantity?: number;
44538
44877
  shipmentId?: string;
44539
44878
  shippingItemId?: string;
44879
+ somInfo?: SomInfo;
44540
44880
  tax?: number;
44541
44881
  taxBasis?: number;
44542
44882
  taxClassId?: string;
@@ -44674,11 +45014,86 @@ declare namespace ShopperOrdersApiTypes {
44674
45014
  } & {
44675
45015
  [key: string]: any;
44676
45016
  };
45017
+ /**
45018
+ * @type FailOrderRequest: Document representing a fail order request.
45019
+ *
45020
+ * @property reasonCode: The reason code for failing the order.
45021
+ *
45022
+ */
45023
+ type FailOrderRequest = {
45024
+ reasonCode?: FailOrderRequestReasonCodeEnum;
45025
+ } & {
45026
+ [key: string]: any;
45027
+ };
45028
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
44677
45029
  /**
44678
45030
  * @type LocaleCode
44679
45031
  * 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.
44680
45032
  */
44681
45033
  type LocaleCode$0 = DefaultFallback | string;
45034
+ /**
45035
+ * @type ShipmentItem: Individual item within a shipment
45036
+ *
45037
+ * @property id: Unique identifier for the shipment item
45038
+ *
45039
+ * @property productItemId: Reference to the product item in the order
45040
+ *
45041
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
45042
+ *
45043
+ */
45044
+ type ShipmentItem = {
45045
+ id?: string;
45046
+ productItemId?: string;
45047
+ quantity?: number;
45048
+ } & {
45049
+ [key: string]: any;
45050
+ };
45051
+ /**
45052
+ * @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.
45053
+ *
45054
+ * @property id: Unique identifier for the shipment
45055
+ *
45056
+ * @property status: Current status of the shipment
45057
+ *
45058
+ * @property provider: Shipping provider name
45059
+ *
45060
+ * @property trackingNumber: Tracking number for the shipment
45061
+ *
45062
+ * @property trackingUrl: URL to track the shipment
45063
+ *
45064
+ * @property expectedDeliveryDate: Expected delivery date and time
45065
+ *
45066
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
45067
+ *
45068
+ * @property shipmentItems: Items included in this shipment
45069
+ *
45070
+ */
45071
+ type SchemasShipment = {
45072
+ id?: string;
45073
+ status?: string;
45074
+ provider?: string;
45075
+ trackingNumber?: string;
45076
+ trackingUrl?: string;
45077
+ expectedDeliveryDate?: string;
45078
+ actualDeliveryDate?: string;
45079
+ shipmentItems?: Array<ShipmentItem>;
45080
+ } & {
45081
+ [key: string]: any;
45082
+ };
45083
+ /**
45084
+ * @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.
45085
+ *
45086
+ * @property status: Current status of the order
45087
+ *
45088
+ * @property shipments: List of shipments associated with the order
45089
+ *
45090
+ */
45091
+ type SchemasSomInfo = {
45092
+ status?: string;
45093
+ shipments?: Array<SchemasShipment>;
45094
+ } & {
45095
+ [key: string]: any;
45096
+ };
44682
45097
  /**
44683
45098
  * @type Order: Document representing an order.
44684
45099
  *
@@ -44756,6 +45171,8 @@ declare namespace ShopperOrdersApiTypes {
44756
45171
  * - **Min Length:** 1
44757
45172
  * - **Max Length:** 32
44758
45173
  *
45174
+ * @property somInfo:
45175
+ *
44759
45176
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
44760
45177
  *
44761
45178
  * @property status: The status.
@@ -44805,6 +45222,7 @@ declare namespace ShopperOrdersApiTypes {
44805
45222
  shippingTotal?: number;
44806
45223
  shippingTotalTax?: number;
44807
45224
  siteId?: string;
45225
+ somInfo?: SchemasSomInfo;
44808
45226
  sourceCode?: string;
44809
45227
  status?: OrderStatusEnum$0;
44810
45228
  taxTotal?: number;
@@ -44875,12 +45293,36 @@ declare namespace ShopperOrdersApiTypes {
44875
45293
  } & {
44876
45294
  [key: string]: any;
44877
45295
  };
44878
- type SalesforcePaymentsRequest = {
45296
+ /**
45297
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
45298
+ *
45299
+ * @property paymentMethodType: Payment Method Type
45300
+ * - **Max Length:** 64
45301
+ *
45302
+ * @property zoneId: The unique identifier for a Payments zone.
45303
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
45304
+ * - **Min Length:** 1
45305
+ * - **Max Length:** 100
45306
+ *
45307
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
45308
+ * - **Max Length:** 64
45309
+ *
45310
+ * @property gateway: The payment gateway used to process the payment.
45311
+ *
45312
+ * @property gatewayProperties:
45313
+ *
45314
+ */
45315
+ type PaymentReferenceRequest = {
44879
45316
  paymentMethodType?: string;
44880
45317
  zoneId?: string;
45318
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
45319
+ gateway?: PaymentReferenceRequestGatewayEnum;
45320
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
44881
45321
  } & {
44882
45322
  [key: string]: any;
44883
45323
  };
45324
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
45325
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
44884
45326
  /**
44885
45327
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
44886
45328
  *
@@ -44897,7 +45339,7 @@ declare namespace ShopperOrdersApiTypes {
44897
45339
  * @property paymentMethodId: The payment method ID.
44898
45340
  * - **Max Length:** 256
44899
45341
  *
44900
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
45342
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
44901
45343
  *
44902
45344
  */
44903
45345
  type OrderPaymentInstrumentRequest = {
@@ -44906,7 +45348,7 @@ declare namespace ShopperOrdersApiTypes {
44906
45348
  giftCertificateCode?: string;
44907
45349
  paymentCard?: OrderPaymentCardRequest;
44908
45350
  paymentMethodId?: string;
44909
- paymentReferenceRequest?: SalesforcePaymentsRequest;
45351
+ paymentReferenceRequest?: PaymentReferenceRequest;
44910
45352
  } & {
44911
45353
  [key: string]: any;
44912
45354
  };
@@ -45021,6 +45463,7 @@ declare namespace ShopperOrdersApiTypes {
45021
45463
  } & {
45022
45464
  [key: string]: any;
45023
45465
  };
45466
+ type GetOrderExpandEnum = "som" | "som_shipments";
45024
45467
  type createOrderQueryParameters = {
45025
45468
  siteId: string;
45026
45469
  locale?: LocaleCode$0;
@@ -45036,9 +45479,19 @@ declare namespace ShopperOrdersApiTypes {
45036
45479
  organizationId: string;
45037
45480
  orderNo: string;
45038
45481
  };
45482
+ type failOrderQueryParameters = {
45483
+ siteId: string;
45484
+ locale?: LocaleCode$0;
45485
+ reopenBasket?: boolean;
45486
+ };
45487
+ type failOrderPathParameters = {
45488
+ organizationId: string;
45489
+ orderNo: string;
45490
+ };
45039
45491
  type getOrderQueryParameters = {
45040
45492
  siteId: string;
45041
45493
  locale?: LocaleCode$0;
45494
+ expand?: Array<"som" | "som_shipments">;
45042
45495
  };
45043
45496
  type getOrderPathParameters = {
45044
45497
  orderNo: string;
@@ -45088,11 +45541,11 @@ declare namespace ShopperOrdersApiTypes {
45088
45541
  /**
45089
45542
  * All path parameters that are used by at least one ShopperOrders method.
45090
45543
  */
45091
- type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
45544
+ type ShopperOrdersPathParameters = Partial<createOrderPathParameters & createPaymentInstrumentForOrderPathParameters & failOrderPathParameters & getOrderPathParameters & getPaymentMethodsForOrderPathParameters & getTaxesFromOrderPathParameters & guestOrderLookupPathParameters & removePaymentInstrumentFromOrderPathParameters & updatePaymentInstrumentForOrderPathParameters & {}>;
45092
45545
  /**
45093
45546
  * All query parameters that are used by at least one ShopperOrders method.
45094
45547
  */
45095
- type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
45548
+ type ShopperOrdersQueryParameters = Partial<createOrderQueryParameters & createPaymentInstrumentForOrderQueryParameters & failOrderQueryParameters & getOrderQueryParameters & getPaymentMethodsForOrderQueryParameters & getTaxesFromOrderQueryParameters & guestOrderLookupQueryParameters & removePaymentInstrumentFromOrderQueryParameters & updatePaymentInstrumentForOrderQueryParameters & {}>;
45096
45549
  /**
45097
45550
  * All parameters that are used by ShopperOrders.
45098
45551
  */
@@ -45101,7 +45554,9 @@ declare namespace ShopperOrdersApiTypes {
45101
45554
  * [Shopper Orders](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-orders:Summary)
45102
45555
  * ==================================
45103
45556
  *
45104
- * *# API Overview
45557
+ * *[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-orders/shopper-orders-oas-v1-public.yaml)
45558
+
45559
+ # API Overview
45105
45560
 
45106
45561
  The Shopper Orders API enables you to:
45107
45562
 
@@ -45164,6 +45619,7 @@ declare namespace ShopperOrdersApiTypes {
45164
45619
  static readonly apiPaths: {
45165
45620
  createOrder: string;
45166
45621
  createPaymentInstrumentForOrder: string;
45622
+ failOrder: string;
45167
45623
  getOrder: string;
45168
45624
  getPaymentMethodsForOrder: string;
45169
45625
  getTaxesFromOrder: string;
@@ -45193,11 +45649,24 @@ declare namespace ShopperOrdersApiTypes {
45193
45649
  "orderNo",
45194
45650
  "siteId"
45195
45651
  ];
45652
+ readonly failOrder: readonly [
45653
+ "organizationId",
45654
+ "orderNo",
45655
+ "siteId",
45656
+ "locale",
45657
+ "reopenBasket"
45658
+ ];
45659
+ readonly failOrderRequired: readonly [
45660
+ "organizationId",
45661
+ "orderNo",
45662
+ "siteId"
45663
+ ];
45196
45664
  readonly getOrder: readonly [
45197
45665
  "orderNo",
45198
45666
  "organizationId",
45199
45667
  "siteId",
45200
- "locale"
45668
+ "locale",
45669
+ "expand"
45201
45670
  ];
45202
45671
  readonly getOrderRequired: readonly [
45203
45672
  "orderNo",
@@ -45379,6 +45848,71 @@ declare namespace ShopperOrdersApiTypes {
45379
45848
  };
45380
45849
  body: OrderPaymentInstrumentRequest & CustomRequestBody;
45381
45850
  }>, rawResponse?: T): Promise<T extends true ? Response : Order>;
45851
+ /**
45852
+ * Fails an unplaced order and optionally reopens the basket when indicated.
45853
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
45854
+ *
45855
+ * If you would like to get a raw Response object use the other failOrder function.
45856
+ *
45857
+ * @param options - An object containing the options for this method.
45858
+ * @param options.parameters - An object containing the parameters for this method.
45859
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
45860
+ * @param options.parameters.orderNo - The order number of the order to be modified.
45861
+ * @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.
45862
+ * @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.
45863
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
45864
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
45865
+ since a customer is limited to 1 storefront basket at a time.
45866
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
45867
+ * @param options.body - The data to send as the request body.
45868
+ *
45869
+ * @returns A promise of type void.
45870
+ */
45871
+ failOrder(options: RequireParametersUnlessAllAreOptional<{
45872
+ parameters?: CompositeParameters<{
45873
+ organizationId: string;
45874
+ orderNo: string;
45875
+ siteId: string;
45876
+ locale?: LocaleCode$0;
45877
+ reopenBasket?: boolean;
45878
+ } & QueryParameters, ConfigParameters>;
45879
+ headers?: {
45880
+ [key: string]: string;
45881
+ };
45882
+ body: FailOrderRequest & CustomRequestBody;
45883
+ }>): Promise<void>;
45884
+ /**
45885
+ * Fails an unplaced order and optionally reopens the basket when indicated.
45886
+ Creates a HistoryEntry in the failed Order with provided reasonCode.
45887
+ *
45888
+ * @param options - An object containing the options for this method.
45889
+ * @param options.parameters - An object containing the parameters for this method.
45890
+ * @param options.parameters.organizationId - An identifier for the organization the request is being made by
45891
+ * @param options.parameters.orderNo - The order number of the order to be modified.
45892
+ * @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.
45893
+ * @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.
45894
+ * @param options.parameters.reopenBasket - Set to true to reopen basket from the order.
45895
+ A basket can only be reopened if no other basket for the customer exists at the moment of the call to fail Order,
45896
+ since a customer is limited to 1 storefront basket at a time.
45897
+ * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
45898
+ * @param options.body - The data to send as the request body.
45899
+ * @param rawResponse - Set to true to return entire Response object instead of DTO.
45900
+ *
45901
+ * @returns A promise of type Response if rawResponse is true, a promise of type void otherwise.
45902
+ */
45903
+ failOrder<T extends boolean>(options: RequireParametersUnlessAllAreOptional<{
45904
+ parameters?: CompositeParameters<{
45905
+ organizationId: string;
45906
+ orderNo: string;
45907
+ siteId: string;
45908
+ locale?: LocaleCode$0;
45909
+ reopenBasket?: boolean;
45910
+ } & QueryParameters, ConfigParameters>;
45911
+ headers?: {
45912
+ [key: string]: string;
45913
+ };
45914
+ body: FailOrderRequest & CustomRequestBody;
45915
+ }>, rawResponse?: T): Promise<T extends true ? Response : void>;
45382
45916
  /**
45383
45917
  * Gets information for an order.
45384
45918
  *
@@ -45390,6 +45924,12 @@ declare namespace ShopperOrdersApiTypes {
45390
45924
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
45391
45925
  * @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.
45392
45926
  * @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.
45927
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
45928
+ When data is available in SOM, the expand parameter has the following behavior:
45929
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
45930
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
45931
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
45932
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
45393
45933
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
45394
45934
  *
45395
45935
  * @returns A promise of type Order.
@@ -45400,6 +45940,7 @@ declare namespace ShopperOrdersApiTypes {
45400
45940
  organizationId: string;
45401
45941
  siteId: string;
45402
45942
  locale?: LocaleCode$0;
45943
+ expand?: Array<GetOrderExpandEnum>;
45403
45944
  } & QueryParameters, ConfigParameters>;
45404
45945
  headers?: {
45405
45946
  [key: string]: string;
@@ -45414,6 +45955,12 @@ declare namespace ShopperOrdersApiTypes {
45414
45955
  * @param options.parameters.organizationId - An identifier for the organization the request is being made by
45415
45956
  * @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.
45416
45957
  * @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.
45958
+ * @param options.parameters.expand - When a 'som' expand is selected, data is primarily loaded from Salesforce Order Management (SOM), if available.
45959
+ When data is available in SOM, the expand parameter has the following behavior:
45960
+ "expand=som": order and related order entities (product items, delivery group, etc) are returned.
45961
+ "expand=som_shipments": order and fulfillment (shipment) data is returned.
45962
+ "expand=som,som_shipments": order, related order entities and fulfillment (shipment) data is returned
45963
+ If your instance is not integrated with SOM or the order data is not available, the `expand=som` command is disregarded.
45417
45964
  * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
45418
45965
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
45419
45966
  *
@@ -45425,6 +45972,7 @@ declare namespace ShopperOrdersApiTypes {
45425
45972
  organizationId: string;
45426
45973
  siteId: string;
45427
45974
  locale?: LocaleCode$0;
45975
+ expand?: Array<GetOrderExpandEnum>;
45428
45976
  } & QueryParameters, ConfigParameters>;
45429
45977
  headers?: {
45430
45978
  [key: string]: string;
@@ -45792,6 +46340,56 @@ declare namespace ShopperOrdersModelTypes {
45792
46340
  } & {
45793
46341
  [key: string]: any;
45794
46342
  };
46343
+ /**
46344
+ * @type OrderPaymentInstrumentPaymentReferenceGatewayProperties: The payment gateway specific properties.
46345
+ *
46346
+ * @property stripe: Stripe specific properties.
46347
+ *
46348
+ * @property adyen: Ayden specific properties.
46349
+ *
46350
+ * @property paypal: PayPal specific properties.
46351
+ *
46352
+ */
46353
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = {
46354
+ stripe?: {
46355
+ [key: string]: any;
46356
+ };
46357
+ adyen?: {
46358
+ [key: string]: any;
46359
+ };
46360
+ paypal?: {
46361
+ [key: string]: any;
46362
+ };
46363
+ } & {
46364
+ [key: string]: any;
46365
+ };
46366
+ /**
46367
+ * @type OrderPaymentInstrumentPaymentReference: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
46368
+ *
46369
+ * @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.
46370
+ * - **Max Length:** 256
46371
+ *
46372
+ * @property clientSecret: Client secret for payment confirmation. Used primarily by Stripe for client-side payment confirmation.
46373
+ * - **Max Length:** 256
46374
+ *
46375
+ * @property redirectUrl: Redirect URL for payment methods that require user redirection to complete payment.
46376
+ * - **Max Length:** 2048
46377
+ *
46378
+ * @property gateway: The payment gateway used to process the payment.
46379
+ *
46380
+ * @property gatewayProperties:
46381
+ *
46382
+ */
46383
+ type OrderPaymentInstrumentPaymentReference = {
46384
+ paymentReferenceId?: string;
46385
+ clientSecret?: string;
46386
+ redirectUrl?: string;
46387
+ gateway?: OrderPaymentInstrumentPaymentReferenceGatewayEnum;
46388
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
46389
+ } & {
46390
+ [key: string]: any;
46391
+ };
46392
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = "stripe" | "paypal" | "adyen";
45795
46393
  /**
45796
46394
  * @type PaymentCard: Document representing a payment card.
45797
46395
  *
@@ -45857,6 +46455,8 @@ declare namespace ShopperOrdersModelTypes {
45857
46455
  * @property paymentMethodId: The payment method ID. It is read only.
45858
46456
  * - **Max Length:** 256
45859
46457
  *
46458
+ * @property paymentReference:
46459
+ *
45860
46460
  */
45861
46461
  type OrderPaymentInstrument = {
45862
46462
  amount?: number;
@@ -45866,6 +46466,7 @@ declare namespace ShopperOrdersModelTypes {
45866
46466
  paymentCard?: PaymentCard;
45867
46467
  paymentInstrumentId?: string;
45868
46468
  paymentMethodId?: string;
46469
+ paymentReference?: OrderPaymentInstrumentPaymentReference;
45869
46470
  } & {
45870
46471
  [key: string]: any;
45871
46472
  };
@@ -46405,6 +47006,21 @@ declare namespace ShopperOrdersModelTypes {
46405
47006
  } & {
46406
47007
  [key: string]: any;
46407
47008
  };
47009
+ /**
47010
+ * @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.
47011
+ *
47012
+ * @property status: Salesforce Order Management (SOM) status
47013
+ *
47014
+ * @property quantityAvailableToCancel: The quantity that can be cancelled.
47015
+ *
47016
+ */
47017
+ type SomInfo = {
47018
+ status?: SomInfoStatusEnum;
47019
+ quantityAvailableToCancel?: number;
47020
+ } & {
47021
+ [key: string]: any;
47022
+ };
47023
+ type SomInfoStatusEnum = "ordered" | "returned" | "canceled" | "paid" | "reshipped" | "fulfilled" | "partially_fulfilled" | "allocated" | "partially_allocated" | "return_initiated";
46408
47024
  /**
46409
47025
  * @type ProductItem: Document representing a product item.
46410
47026
  *
@@ -46455,6 +47071,8 @@ declare namespace ShopperOrdersModelTypes {
46455
47071
  *
46456
47072
  * @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.
46457
47073
  *
47074
+ * @property somInfo:
47075
+ *
46458
47076
  * @property tax: The tax for the product item, not including price adjustments. It is read only.
46459
47077
  *
46460
47078
  * @property taxBasis: The price used to calculate the tax for this product item. It is read only.
@@ -46487,6 +47105,7 @@ declare namespace ShopperOrdersModelTypes {
46487
47105
  quantity?: number;
46488
47106
  shipmentId?: string;
46489
47107
  shippingItemId?: string;
47108
+ somInfo?: SomInfo;
46490
47109
  tax?: number;
46491
47110
  taxBasis?: number;
46492
47111
  taxClassId?: string;
@@ -46624,11 +47243,86 @@ declare namespace ShopperOrdersModelTypes {
46624
47243
  } & {
46625
47244
  [key: string]: any;
46626
47245
  };
47246
+ /**
47247
+ * @type FailOrderRequest: Document representing a fail order request.
47248
+ *
47249
+ * @property reasonCode: The reason code for failing the order.
47250
+ *
47251
+ */
47252
+ type FailOrderRequest = {
47253
+ reasonCode?: FailOrderRequestReasonCodeEnum;
47254
+ } & {
47255
+ [key: string]: any;
47256
+ };
47257
+ type FailOrderRequestReasonCodeEnum = "payment_confirm_failure" | "payment_capture_failure" | "payment_auth_failure";
46627
47258
  /**
46628
47259
  * @type LocaleCode
46629
47260
  * 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.
46630
47261
  */
46631
47262
  type LocaleCode = DefaultFallback | string;
47263
+ /**
47264
+ * @type ShipmentItem: Individual item within a shipment
47265
+ *
47266
+ * @property id: Unique identifier for the shipment item
47267
+ *
47268
+ * @property productItemId: Reference to the product item in the order
47269
+ *
47270
+ * @property quantity: Quantity of product items with the referenced productItemId in this shipment
47271
+ *
47272
+ */
47273
+ type ShipmentItem = {
47274
+ id?: string;
47275
+ productItemId?: string;
47276
+ quantity?: number;
47277
+ } & {
47278
+ [key: string]: any;
47279
+ };
47280
+ /**
47281
+ * @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.
47282
+ *
47283
+ * @property id: Unique identifier for the shipment
47284
+ *
47285
+ * @property status: Current status of the shipment
47286
+ *
47287
+ * @property provider: Shipping provider name
47288
+ *
47289
+ * @property trackingNumber: Tracking number for the shipment
47290
+ *
47291
+ * @property trackingUrl: URL to track the shipment
47292
+ *
47293
+ * @property expectedDeliveryDate: Expected delivery date and time
47294
+ *
47295
+ * @property actualDeliveryDate: Actual delivery date and time (null if not yet delivered)
47296
+ *
47297
+ * @property shipmentItems: Items included in this shipment
47298
+ *
47299
+ */
47300
+ type SchemasShipment = {
47301
+ id?: string;
47302
+ status?: string;
47303
+ provider?: string;
47304
+ trackingNumber?: string;
47305
+ trackingUrl?: string;
47306
+ expectedDeliveryDate?: string;
47307
+ actualDeliveryDate?: string;
47308
+ shipmentItems?: Array<ShipmentItem>;
47309
+ } & {
47310
+ [key: string]: any;
47311
+ };
47312
+ /**
47313
+ * @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.
47314
+ *
47315
+ * @property status: Current status of the order
47316
+ *
47317
+ * @property shipments: List of shipments associated with the order
47318
+ *
47319
+ */
47320
+ type SchemasSomInfo = {
47321
+ status?: string;
47322
+ shipments?: Array<SchemasShipment>;
47323
+ } & {
47324
+ [key: string]: any;
47325
+ };
46632
47326
  /**
46633
47327
  * @type Order: Document representing an order.
46634
47328
  *
@@ -46706,6 +47400,8 @@ declare namespace ShopperOrdersModelTypes {
46706
47400
  * - **Min Length:** 1
46707
47401
  * - **Max Length:** 32
46708
47402
  *
47403
+ * @property somInfo:
47404
+ *
46709
47405
  * @property sourceCode: The source code assigned to the basket from which this order was created. It is read only.
46710
47406
  *
46711
47407
  * @property status: The status.
@@ -46755,6 +47451,7 @@ declare namespace ShopperOrdersModelTypes {
46755
47451
  shippingTotal?: number;
46756
47452
  shippingTotalTax?: number;
46757
47453
  siteId?: string;
47454
+ somInfo?: SchemasSomInfo;
46758
47455
  sourceCode?: string;
46759
47456
  status?: OrderStatusEnum;
46760
47457
  taxTotal?: number;
@@ -46825,12 +47522,36 @@ declare namespace ShopperOrdersModelTypes {
46825
47522
  } & {
46826
47523
  [key: string]: any;
46827
47524
  };
46828
- type SalesforcePaymentsRequest = {
47525
+ /**
47526
+ * @type PaymentReferenceRequest: Properties for Payments Reference Request
47527
+ *
47528
+ * @property paymentMethodType: Payment Method Type
47529
+ * - **Max Length:** 64
47530
+ *
47531
+ * @property zoneId: The unique identifier for a Payments zone.
47532
+ * - **Pattern:** /^[a-zA-Z0-9\\-_]{1,100}$/
47533
+ * - **Min Length:** 1
47534
+ * - **Max Length:** 100
47535
+ *
47536
+ * @property shippingPreference: Shipping preference for PayPal payment processing. Applicable only for basket payment instruments.
47537
+ * - **Max Length:** 64
47538
+ *
47539
+ * @property gateway: The payment gateway used to process the payment.
47540
+ *
47541
+ * @property gatewayProperties:
47542
+ *
47543
+ */
47544
+ type PaymentReferenceRequest = {
46829
47545
  paymentMethodType?: string;
46830
47546
  zoneId?: string;
47547
+ shippingPreference?: PaymentReferenceRequestShippingPreferenceEnum;
47548
+ gateway?: PaymentReferenceRequestGatewayEnum;
47549
+ gatewayProperties?: OrderPaymentInstrumentPaymentReferenceGatewayProperties;
46831
47550
  } & {
46832
47551
  [key: string]: any;
46833
47552
  };
47553
+ type PaymentReferenceRequestShippingPreferenceEnum = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
47554
+ type PaymentReferenceRequestGatewayEnum = "stripe" | "paypal" | "adyen";
46834
47555
  /**
46835
47556
  * @type OrderPaymentInstrumentRequest: Document representing an order payment instrument request.
46836
47557
  *
@@ -46847,7 +47568,7 @@ declare namespace ShopperOrdersModelTypes {
46847
47568
  * @property paymentMethodId: The payment method ID.
46848
47569
  * - **Max Length:** 256
46849
47570
  *
46850
- * @property paymentReferenceRequest: The payment reference request used by Salesforce Payments.
47571
+ * @property paymentReferenceRequest: Payment reference information for various payment service providers, only when Salesforce Payments is enabled.
46851
47572
  *
46852
47573
  */
46853
47574
  type OrderPaymentInstrumentRequest = {
@@ -46856,7 +47577,7 @@ declare namespace ShopperOrdersModelTypes {
46856
47577
  giftCertificateCode?: string;
46857
47578
  paymentCard?: OrderPaymentCardRequest;
46858
47579
  paymentMethodId?: string;
46859
- paymentReferenceRequest?: SalesforcePaymentsRequest;
47580
+ paymentReferenceRequest?: PaymentReferenceRequest;
46860
47581
  } & {
46861
47582
  [key: string]: any;
46862
47583
  };
@@ -46980,6 +47701,9 @@ declare namespace ShopperOrdersTypes {
46980
47701
  type createOrderPathParameters = ShopperOrdersApiTypes.createOrderPathParameters;
46981
47702
  type createPaymentInstrumentForOrderQueryParameters = ShopperOrdersApiTypes.createPaymentInstrumentForOrderQueryParameters;
46982
47703
  type createPaymentInstrumentForOrderPathParameters = ShopperOrdersApiTypes.createPaymentInstrumentForOrderPathParameters;
47704
+ type failOrderQueryParameters = ShopperOrdersApiTypes.failOrderQueryParameters;
47705
+ type failOrderPathParameters = ShopperOrdersApiTypes.failOrderPathParameters;
47706
+ type GetOrderExpandEnum = ShopperOrdersApiTypes.GetOrderExpandEnum;
46983
47707
  type getOrderQueryParameters = ShopperOrdersApiTypes.getOrderQueryParameters;
46984
47708
  type getOrderPathParameters = ShopperOrdersApiTypes.getOrderPathParameters;
46985
47709
  type getPaymentMethodsForOrderQueryParameters = ShopperOrdersApiTypes.getPaymentMethodsForOrderQueryParameters;
@@ -47005,6 +47729,8 @@ declare namespace ShopperOrdersTypes {
47005
47729
  type Discount = ShopperOrdersModelTypes.Discount;
47006
47730
  type DiscountTypeEnum = ShopperOrdersModelTypes.DiscountTypeEnum;
47007
47731
  type ErrorResponse = ShopperOrdersModelTypes.ErrorResponse;
47732
+ type FailOrderRequest = ShopperOrdersModelTypes.FailOrderRequest;
47733
+ type FailOrderRequestReasonCodeEnum = ShopperOrdersModelTypes.FailOrderRequestReasonCodeEnum;
47008
47734
  type GiftCertificateItem = ShopperOrdersModelTypes.GiftCertificateItem;
47009
47735
  type GroupedTaxItem = ShopperOrdersModelTypes.GroupedTaxItem;
47010
47736
  type LocaleCode = ShopperOrdersModelTypes.LocaleCode;
@@ -47022,11 +47748,17 @@ declare namespace ShopperOrdersTypes {
47022
47748
  type OrderLookupRequest = ShopperOrdersModelTypes.OrderLookupRequest;
47023
47749
  type OrderPaymentCardRequest = ShopperOrdersModelTypes.OrderPaymentCardRequest;
47024
47750
  type OrderPaymentInstrument = ShopperOrdersModelTypes.OrderPaymentInstrument;
47751
+ type OrderPaymentInstrumentPaymentReference = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReference;
47752
+ type OrderPaymentInstrumentPaymentReferenceGatewayEnum = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReferenceGatewayEnum;
47753
+ type OrderPaymentInstrumentPaymentReferenceGatewayProperties = ShopperOrdersModelTypes.OrderPaymentInstrumentPaymentReferenceGatewayProperties;
47025
47754
  type OrderPaymentInstrumentRequest = ShopperOrdersModelTypes.OrderPaymentInstrumentRequest;
47026
47755
  type PaymentCard = ShopperOrdersModelTypes.PaymentCard;
47027
47756
  type PaymentCardSpec = ShopperOrdersModelTypes.PaymentCardSpec;
47028
47757
  type PaymentMethod = ShopperOrdersModelTypes.PaymentMethod;
47029
47758
  type PaymentMethodResult = ShopperOrdersModelTypes.PaymentMethodResult;
47759
+ type PaymentReferenceRequest = ShopperOrdersModelTypes.PaymentReferenceRequest;
47760
+ type PaymentReferenceRequestShippingPreferenceEnum = ShopperOrdersModelTypes.PaymentReferenceRequestShippingPreferenceEnum;
47761
+ type PaymentReferenceRequestGatewayEnum = ShopperOrdersModelTypes.PaymentReferenceRequestGatewayEnum;
47030
47762
  type PriceAdjustment = ShopperOrdersModelTypes.PriceAdjustment;
47031
47763
  type ProductDetailsLink = ShopperOrdersModelTypes.ProductDetailsLink;
47032
47764
  type ProductItem = ShopperOrdersModelTypes.ProductItem;
@@ -47034,12 +47766,16 @@ declare namespace ShopperOrdersTypes {
47034
47766
  type ProductListItemReferenceTypeEnum = ShopperOrdersModelTypes.ProductListItemReferenceTypeEnum;
47035
47767
  type ProductListLink = ShopperOrdersModelTypes.ProductListLink;
47036
47768
  type ProductListLinkTypeEnum = ShopperOrdersModelTypes.ProductListLinkTypeEnum;
47037
- type SalesforcePaymentsRequest = ShopperOrdersModelTypes.SalesforcePaymentsRequest;
47769
+ type SchemasShipment = ShopperOrdersModelTypes.SchemasShipment;
47770
+ type SchemasSomInfo = ShopperOrdersModelTypes.SchemasSomInfo;
47038
47771
  type Shipment = ShopperOrdersModelTypes.Shipment;
47039
47772
  type ShipmentShippingStatusEnum = ShopperOrdersModelTypes.ShipmentShippingStatusEnum;
47773
+ type ShipmentItem = ShopperOrdersModelTypes.ShipmentItem;
47040
47774
  type ShippingItem = ShopperOrdersModelTypes.ShippingItem;
47041
47775
  type ShippingMethod = ShopperOrdersModelTypes.ShippingMethod;
47042
47776
  type ShippingPromotion = ShopperOrdersModelTypes.ShippingPromotion;
47777
+ type SomInfo = ShopperOrdersModelTypes.SomInfo;
47778
+ type SomInfoStatusEnum = ShopperOrdersModelTypes.SomInfoStatusEnum;
47043
47779
  type Status = ShopperOrdersModelTypes.Status;
47044
47780
  type TaxItem = ShopperOrdersModelTypes.TaxItem;
47045
47781
  type TaxItems = ShopperOrdersModelTypes.TaxItems;