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