@wix/auto_sdk_ecom_cart-v-2 1.0.0 → 1.0.2

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 (37) hide show
  1. package/build/cjs/index.d.ts +150 -147
  2. package/build/cjs/index.js +83 -90
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +71 -78
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +110 -127
  8. package/build/cjs/meta.js +50 -50
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +150 -147
  11. package/build/es/index.mjs +82 -88
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +70 -76
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +110 -127
  17. package/build/es/meta.mjs +49 -49
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +34 -32
  20. package/build/internal/cjs/index.js +83 -90
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +187 -182
  23. package/build/internal/cjs/index.typings.js +71 -78
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +110 -127
  26. package/build/internal/cjs/meta.js +50 -50
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +34 -32
  29. package/build/internal/es/index.mjs +82 -88
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +187 -182
  32. package/build/internal/es/index.typings.mjs +70 -76
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +110 -127
  35. package/build/internal/es/meta.mjs +49 -49
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, CompleteCheckoutRequest as CompleteCheckoutRequest$1, CompleteCheckoutResponse as CompleteCheckoutResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, AddDiscountRequest as AddDiscountRequest$1, AddDiscountResponse as AddDiscountResponse$1, RemoveDiscountRequest as RemoveDiscountRequest$1, RemoveDiscountResponse as RemoveDiscountResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.js';
1
+ import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddDiscountRequest as AddDiscountRequest$1, AddDiscountResponse as AddDiscountResponse$1, RemoveDiscountRequest as RemoveDiscountRequest$1, RemoveDiscountResponse as RemoveDiscountResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.js';
2
2
 
3
3
  interface Cart {
4
4
  /**
@@ -22,11 +22,6 @@ interface Cart {
22
22
  * @readonly
23
23
  */
24
24
  revision?: string | null;
25
- /**
26
- * Custom fields.
27
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
28
- */
29
- extendedFields?: ExtendedFields;
30
25
  /**
31
26
  * Line items added to the Cart by the customer.
32
27
  * This list may include both valid items (in stock) and invalid ones (e.g., out of stock).
@@ -35,6 +30,14 @@ interface Cart {
35
30
  * @readonly
36
31
  */
37
32
  lineItems?: V2LineItem[];
33
+ /** The sum of all line item final prices. */
34
+ subtotal?: MultiCurrencyPrice;
35
+ /**
36
+ * Optional message left by the customer.
37
+ * Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.
38
+ * @maxLength 1000
39
+ */
40
+ note?: string | null;
38
41
  /**
39
42
  * The discounts of the Cart.
40
43
  * Automatic discounts are removed from the Cart entirely when they are no longer valid.
@@ -46,7 +49,7 @@ interface Cart {
46
49
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
47
50
  source?: CartSource;
48
51
  /** Information about the site from which the Cart's line items were added. */
49
- siteInfo?: SiteInfo;
52
+ businessInfo?: BusinessInfo;
50
53
  /** Information about the customer that owns the Cart. */
51
54
  customerInfo?: CustomerInfo;
52
55
  /** Delivery-related information associated with the Cart. */
@@ -56,15 +59,24 @@ interface Cart {
56
59
  /** Payment-related information associated with the Cart. */
57
60
  paymentInfo?: PaymentInfo;
58
61
  /**
59
- * The estimated costs that the customer will pay.
62
+ * Whether the Cart has been placed as an Order.
63
+ * Defaults to `false`.
60
64
  * @readonly
61
65
  */
62
- pricingInfo?: PricingInfo;
66
+ orderPlaced?: boolean;
63
67
  /**
64
- * The current status of the Cart.
68
+ * The ID of the Order created from the Cart.
69
+ * This field is empty until the checkout process is completed.
70
+ * @format GUID
71
+ * @readonly
72
+ */
73
+ orderId?: string | null;
74
+ /**
75
+ * Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).
76
+ * @format GUID
65
77
  * @readonly
66
78
  */
67
- status?: CartStatusWithLiterals;
79
+ purchaseFlowId?: string | null;
68
80
  /**
69
81
  * Additional Cart settings.
70
82
  *
@@ -73,7 +85,7 @@ interface Cart {
73
85
  * > * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
74
86
  * @immutable
75
87
  */
76
- customSettings?: CustomSettings;
88
+ settings?: CartSettings;
77
89
  /**
78
90
  * Custom checkout URL to redirect the customer to a checkout page.
79
91
  * By default, customers are redirected to the standard Wix checkout page.
@@ -83,29 +95,10 @@ interface Cart {
83
95
  */
84
96
  customCheckoutUrl?: string | null;
85
97
  /**
86
- * The ID of the Order created from the Cart.
87
- * This field is empty until the checkout process is completed.
88
- * @format GUID
89
- * @readonly
90
- */
91
- orderId?: string | null;
92
- /**
93
- * Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).
94
- * @format GUID
95
- * @readonly
96
- */
97
- purchaseFlowId?: string | null;
98
- }
99
- interface ExtendedFields {
100
- /**
101
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
102
- * The value of each key is structured according to the schema defined when the extended fields were configured.
103
- *
104
- * You can only access fields for which you have the appropriate permissions.
105
- *
106
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
98
+ * Custom fields.
99
+ * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
107
100
  */
108
- namespaces?: Record<string, Record<string, any>>;
101
+ extendedFields?: ExtendedFields;
109
102
  }
110
103
  interface V2LineItem {
111
104
  /**
@@ -148,10 +141,10 @@ interface V2LineItem {
148
141
  */
149
142
  modifierGroups?: ModifierGroup[];
150
143
  /**
151
- * Whether the item can only be purchased by site members.
152
- * Default: `false`
144
+ * Whether the line item is a custom line item.
145
+ * Custom line items don't trigger the Catalog service plugin.
153
146
  */
154
- membersOnly?: boolean;
147
+ customLineItem?: boolean;
155
148
  }
156
149
  interface TranslatableString {
157
150
  /**
@@ -190,7 +183,10 @@ interface ItemQuantityInfo {
190
183
  requestedQuantity?: number;
191
184
  /** The maximum quantity of items available for purchase. */
192
185
  availableQuantity?: number | null;
193
- /** Whether the line item quantity is fixed and cannot be changed. */
186
+ /**
187
+ * Whether the line item quantity is fixed and cannot be changed.
188
+ * Default: `false`.
189
+ */
194
190
  fixedQuantity?: boolean;
195
191
  }
196
192
  interface ItemPricingInfo {
@@ -273,11 +269,6 @@ interface ItemPriceBreakdown {
273
269
  totalDiscount?: MultiCurrencyPrice;
274
270
  }
275
271
  interface ItemSource {
276
- /**
277
- * Whether the line item is a custom line item.
278
- * Custom line items don't trigger the Catalog service plugin.
279
- */
280
- customLineItem?: boolean;
281
272
  /**
282
273
  * Catalog and item reference.
283
274
  * Holds IDs for the item and the catalog it came from, as well as further optional info.
@@ -531,6 +522,11 @@ interface ItemAttributes {
531
522
  subscriptionInfo?: SubscriptionOptionInfo;
532
523
  /** Service properties. When relevant, this contains information such as date and number of participants. */
533
524
  serviceProperties?: ServiceProperties;
525
+ /**
526
+ * Whether the item can only be purchased by site members.
527
+ * Default: `false`
528
+ */
529
+ membersOnly?: boolean;
534
530
  }
535
531
  interface PageUrlV2 {
536
532
  /**
@@ -761,16 +757,27 @@ interface V2SelectedMembership {
761
757
  declare enum ItemStatus {
762
758
  UNKNOWN_ITEM_STATUS = "UNKNOWN_ITEM_STATUS",
763
759
  /** The item is available in the requested quantity. */
764
- AVAILABLE = "AVAILABLE",
760
+ IN_STOCK = "IN_STOCK",
765
761
  /** Only part of the requested quantity is available. */
766
- PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE",
762
+ PARTIALLY_IN_STOCK = "PARTIALLY_IN_STOCK",
767
763
  /** The item is out of stock. */
768
764
  OUT_OF_STOCK = "OUT_OF_STOCK",
769
765
  /** The item is no longer exists in the catalog. */
770
- NOT_EXISTS = "NOT_EXISTS"
766
+ REMOVED_FROM_CATALOG = "REMOVED_FROM_CATALOG"
771
767
  }
772
768
  /** @enumType */
773
- type ItemStatusWithLiterals = ItemStatus | 'UNKNOWN_ITEM_STATUS' | 'AVAILABLE' | 'PARTIALLY_AVAILABLE' | 'OUT_OF_STOCK' | 'NOT_EXISTS';
769
+ type ItemStatusWithLiterals = ItemStatus | 'UNKNOWN_ITEM_STATUS' | 'IN_STOCK' | 'PARTIALLY_IN_STOCK' | 'OUT_OF_STOCK' | 'REMOVED_FROM_CATALOG';
770
+ interface ExtendedFields {
771
+ /**
772
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
773
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
774
+ *
775
+ * You can only access fields for which you have the appropriate permissions.
776
+ *
777
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
778
+ */
779
+ namespaces?: Record<string, Record<string, any>>;
780
+ }
774
781
  interface AdditionalFee {
775
782
  /**
776
783
  * Additional fee's unique code or ID.
@@ -1083,18 +1090,13 @@ interface CustomContentReference {
1083
1090
  */
1084
1091
  componentId?: string;
1085
1092
  }
1086
- interface SiteInfo {
1093
+ interface BusinessInfo {
1087
1094
  /**
1088
1095
  * The ID of the business location associated with the cart.
1089
1096
  * Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
1090
1097
  * @format GUID
1091
1098
  */
1092
- businessLocationId?: string | null;
1093
- /**
1094
- * The business’s unit of weight measurement (e.g., KG, LB).
1095
- * @readonly
1096
- */
1097
- weightUnit?: WeightUnitWithLiterals;
1099
+ locationId?: string | null;
1098
1100
  /**
1099
1101
  * The business’s default language, represented as a two-letter ISO 639-1 code.
1100
1102
  * @format LANGUAGE
@@ -1108,16 +1110,6 @@ interface SiteInfo {
1108
1110
  */
1109
1111
  currencyCode?: string;
1110
1112
  }
1111
- declare enum WeightUnit {
1112
- /** Weight unit can't be classified due to an error. */
1113
- UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
1114
- /** Kilograms. */
1115
- KG = "KG",
1116
- /** Pounds. */
1117
- LB = "LB"
1118
- }
1119
- /** @enumType */
1120
- type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
1121
1113
  interface CustomerInfo extends CustomerInfoIdOneOf {
1122
1114
  /**
1123
1115
  * Site visitor ID (if site visitor is **not** a member).
@@ -1165,11 +1157,6 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1165
1157
  * @readonly
1166
1158
  */
1167
1159
  currencyCode?: string;
1168
- /**
1169
- * The [buyer note](https://support.wix.com/en/article/wix-stores-viewing-customer-notes) left by the customer.
1170
- * @maxLength 1000
1171
- */
1172
- buyerNote?: string | null;
1173
1160
  }
1174
1161
  /** @oneof */
1175
1162
  interface CustomerInfoIdOneOf {
@@ -1200,6 +1187,11 @@ interface DeliveryInfo {
1200
1187
  recipient?: FullAddressContactDetails;
1201
1188
  /** The selected delivery method by the customer. */
1202
1189
  method?: DeliveryMethod;
1190
+ /**
1191
+ * The unit of weight measurement when shipping items (e.g., KG, LB).
1192
+ * @readonly
1193
+ */
1194
+ weightUnit?: WeightUnitWithLiterals;
1203
1195
  }
1204
1196
  /** Physical address */
1205
1197
  interface Address {
@@ -1323,6 +1315,16 @@ interface DeliveryMethod {
1323
1315
  */
1324
1316
  pickup?: boolean;
1325
1317
  }
1318
+ declare enum WeightUnit {
1319
+ /** Weight unit can't be classified due to an error. */
1320
+ UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
1321
+ /** Kilograms. */
1322
+ KG = "KG",
1323
+ /** Pounds. */
1324
+ LB = "LB"
1325
+ }
1326
+ /** @enumType */
1327
+ type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
1326
1328
  interface TaxInfo {
1327
1329
  /**
1328
1330
  * Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).
@@ -1376,23 +1378,7 @@ interface GiftCard {
1376
1378
  */
1377
1379
  externalId?: string | null;
1378
1380
  }
1379
- interface PricingInfo {
1380
- /** The sum of all line items after applying automatic discounts. */
1381
- subtotal?: MultiCurrencyPrice;
1382
- /** The coupon discount amount. Automatic discounts are not included in this amount. */
1383
- discount?: MultiCurrencyPrice;
1384
- /** The sum of all line items after applying all discounts. */
1385
- discountedSubtotal?: MultiCurrencyPrice;
1386
- }
1387
- declare enum CartStatus {
1388
- /** A new Cart. */
1389
- CREATED = "CREATED",
1390
- /** The checkout process is completed. */
1391
- CHECKOUT_COMPLETED = "CHECKOUT_COMPLETED"
1392
- }
1393
- /** @enumType */
1394
- type CartStatusWithLiterals = CartStatus | 'CREATED' | 'CHECKOUT_COMPLETED';
1395
- interface CustomSettings {
1381
+ interface CartSettings {
1396
1382
  /**
1397
1383
  * Whether to restrict the option to add or remove a gift card on the checkout page.
1398
1384
  * Default: `false`
@@ -1596,7 +1582,7 @@ interface AdditionalFeeTax {
1596
1582
  interface PriceSummary {
1597
1583
  /**
1598
1584
  * Total price of all line items after applying item-level discounts.
1599
- * FIXME: Currently we don't know if the subtotal includes tax or not.
1585
+ * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1600
1586
  */
1601
1587
  subtotal?: MultiCurrencyPrice;
1602
1588
  /**
@@ -1607,20 +1593,17 @@ interface PriceSummary {
1607
1593
  discount?: MultiCurrencyPrice;
1608
1594
  /**
1609
1595
  * Final delivery cost for the cart.
1610
- * FIXME: Currently we don't know if the subtotal includes tax or not.
1596
+ * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1611
1597
  */
1612
1598
  delivery?: MultiCurrencyPrice;
1613
1599
  /**
1614
1600
  * Total additional fees associated with the cart.
1615
- * FIXME: Currently we don't know if the subtotal includes tax or not.
1601
+ * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1616
1602
  */
1617
1603
  additionalFees?: MultiCurrencyPrice;
1618
1604
  /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
1619
1605
  tax?: MultiCurrencyPrice;
1620
- /**
1621
- * Total amount to be paid.
1622
- * Curenntly, total = subtotal - discount + delivery + additional_fees + tax.
1623
- */
1606
+ /** Total amount to be paid. */
1624
1607
  total?: MultiCurrencyPrice;
1625
1608
  }
1626
1609
  interface PaymentSummary {
@@ -1815,11 +1798,6 @@ interface CustomItemInput {
1815
1798
  * @maxSize 25
1816
1799
  */
1817
1800
  modifierGroups?: ModifierGroup[];
1818
- /**
1819
- * Whether the item can only be purchased by site members.
1820
- * Default: `false`
1821
- */
1822
- membersOnly?: boolean;
1823
1801
  }
1824
1802
  interface CustomItemQuantityInfo {
1825
1803
  /**
@@ -1900,6 +1878,11 @@ interface CustomItemAttributes {
1900
1878
  subscriptionInfo?: SubscriptionOptionInfo;
1901
1879
  /** Service properties. When relevant, this contains information such as date and number of participants. */
1902
1880
  serviceProperties?: ServiceProperties;
1881
+ /**
1882
+ * Whether the item can only be purchased by site members.
1883
+ * Default: `false`
1884
+ */
1885
+ membersOnly?: boolean;
1903
1886
  }
1904
1887
  interface CustomItemDeliveryConfig {
1905
1888
  /**
@@ -1971,9 +1954,9 @@ interface LineItemUpdate {
1971
1954
  */
1972
1955
  lineItemId?: string;
1973
1956
  /** Quantity update (optional - if not provided, quantity is not updated) */
1974
- quantityUpdate?: QuantityUpdate;
1957
+ quantity?: QuantityUpdate;
1975
1958
  /** Selected membership update (optional - if not provided, membership is not updated) */
1976
- selectedMembershipUpdate?: SelectedMembershipUpdate;
1959
+ selectedMembership?: SelectedMembershipUpdate;
1977
1960
  }
1978
1961
  interface QuantityUpdate {
1979
1962
  /**
@@ -1981,7 +1964,7 @@ interface QuantityUpdate {
1981
1964
  * @min 1
1982
1965
  * @max 100000
1983
1966
  */
1984
- quantity?: number;
1967
+ newQuantity?: number;
1985
1968
  }
1986
1969
  interface SelectedMembershipUpdate {
1987
1970
  /**
@@ -1989,7 +1972,7 @@ interface SelectedMembershipUpdate {
1989
1972
  *
1990
1973
  * To just remove current selected membership, and not replace with a new one, pass an empty value here.
1991
1974
  */
1992
- membership?: V2SelectedMembership;
1975
+ newMembership?: V2SelectedMembership;
1993
1976
  }
1994
1977
  interface CreateCartRequest {
1995
1978
  /** Cart to be created. */
@@ -2112,7 +2095,7 @@ interface GetCheckoutURLResponse {
2112
2095
  */
2113
2096
  checkoutUrl?: string;
2114
2097
  }
2115
- interface CompleteCheckoutRequest {
2098
+ interface PlaceOrderRequest {
2116
2099
  /**
2117
2100
  * Cart ID.
2118
2101
  * @format GUID
@@ -2154,7 +2137,7 @@ interface RedirectUrls {
2154
2137
  */
2155
2138
  pendingUrl?: string | null;
2156
2139
  }
2157
- interface CompleteCheckoutResponse {
2140
+ interface PlaceOrderResponse {
2158
2141
  /**
2159
2142
  * The order ID of the created order.
2160
2143
  * @format GUID
@@ -2216,6 +2199,23 @@ interface RemoveLineItemsResponse {
2216
2199
  /** Updated Cart. */
2217
2200
  cart?: Cart;
2218
2201
  }
2202
+ interface UpdateLineItemsRequest {
2203
+ /**
2204
+ * Cart ID.
2205
+ * @format GUID
2206
+ */
2207
+ cartId: string;
2208
+ /**
2209
+ * Line item updates to apply.
2210
+ * @minSize 1
2211
+ * @maxSize 300
2212
+ */
2213
+ lineItems?: LineItemUpdate[];
2214
+ }
2215
+ interface UpdateLineItemsResponse {
2216
+ /** Updated Cart. */
2217
+ cart?: Cart;
2218
+ }
2219
2219
  interface AddDiscountRequest {
2220
2220
  /**
2221
2221
  * Cart ID.
@@ -2285,23 +2285,6 @@ interface RemoveGiftCardResponse {
2285
2285
  /** Updated Cart. */
2286
2286
  cart?: Cart;
2287
2287
  }
2288
- interface UpdateLineItemsRequest {
2289
- /**
2290
- * Cart ID.
2291
- * @format GUID
2292
- */
2293
- cartId: string;
2294
- /**
2295
- * Line item updates to apply.
2296
- * @minSize 1
2297
- * @maxSize 100
2298
- */
2299
- lineItemUpdates?: LineItemUpdate[];
2300
- }
2301
- interface UpdateLineItemsResponse {
2302
- /** Updated Cart. */
2303
- cart?: Cart;
2304
- }
2305
2288
  interface MarkCartAsCompletedRequest {
2306
2289
  /**
2307
2290
  * Cart ID.
@@ -2364,15 +2347,18 @@ declare function calculateCart(): __PublicMethodMetaInfo<'POST', {
2364
2347
  declare function getCheckoutUrl(): __PublicMethodMetaInfo<'POST', {
2365
2348
  cartId: string;
2366
2349
  }, GetCheckoutURLRequest$1, GetCheckoutURLRequest, GetCheckoutURLResponse$1, GetCheckoutURLResponse>;
2367
- declare function completeCheckout(): __PublicMethodMetaInfo<'POST', {
2350
+ declare function placeOrder(): __PublicMethodMetaInfo<'POST', {
2368
2351
  cartId: string;
2369
- }, CompleteCheckoutRequest$1, CompleteCheckoutRequest, CompleteCheckoutResponse$1, CompleteCheckoutResponse>;
2352
+ }, PlaceOrderRequest$1, PlaceOrderRequest, PlaceOrderResponse$1, PlaceOrderResponse>;
2370
2353
  declare function addLineItems(): __PublicMethodMetaInfo<'POST', {
2371
2354
  cartId: string;
2372
2355
  }, AddLineItemsRequest$1, AddLineItemsRequest, AddLineItemsResponse$1, AddLineItemsResponse>;
2373
2356
  declare function removeLineItems(): __PublicMethodMetaInfo<'POST', {
2374
2357
  cartId: string;
2375
2358
  }, RemoveLineItemsRequest$1, RemoveLineItemsRequest, RemoveLineItemsResponse$1, RemoveLineItemsResponse>;
2359
+ declare function updateLineItems(): __PublicMethodMetaInfo<'POST', {
2360
+ cartId: string;
2361
+ }, UpdateLineItemsRequest$1, UpdateLineItemsRequest, UpdateLineItemsResponse$1, UpdateLineItemsResponse>;
2376
2362
  declare function addDiscount(): __PublicMethodMetaInfo<'POST', {
2377
2363
  cartId: string;
2378
2364
  }, AddDiscountRequest$1, AddDiscountRequest, AddDiscountResponse$1, AddDiscountResponse>;
@@ -2385,12 +2371,9 @@ declare function addGiftCard(): __PublicMethodMetaInfo<'POST', {
2385
2371
  declare function removeGiftCard(): __PublicMethodMetaInfo<'POST', {
2386
2372
  cartId: string;
2387
2373
  }, RemoveGiftCardRequest$1, RemoveGiftCardRequest, RemoveGiftCardResponse$1, RemoveGiftCardResponse>;
2388
- declare function updateLineItems(): __PublicMethodMetaInfo<'POST', {
2389
- cartId: string;
2390
- }, UpdateLineItemsRequest$1, UpdateLineItemsRequest, UpdateLineItemsResponse$1, UpdateLineItemsResponse>;
2391
2374
  declare function markCartAsCompleted(): __PublicMethodMetaInfo<'POST', {
2392
2375
  cartId: string;
2393
2376
  }, MarkCartAsCompletedRequest$1, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse$1, MarkCartAsCompletedResponse>;
2394
2377
  declare function handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<'POST', {}, HandleAsyncCheckoutCompletionRequest$1, HandleAsyncCheckoutCompletionRequest, RawHttpResponse$1, RawHttpResponse>;
2395
2378
 
2396
- export { type __PublicMethodMetaInfo, addDiscount, addGiftCard, addLineItems, calculateCart, completeCheckout, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, refreshCart, removeDiscount, removeGiftCard, removeLineItems, updateCart, updateLineItems };
2379
+ export { type __PublicMethodMetaInfo, addDiscount, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeDiscount, removeGiftCard, removeLineItems, updateCart, updateLineItems };