@wix/ecom 1.0.687 → 1.0.688

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ecom",
3
- "version": "1.0.687",
3
+ "version": "1.0.688",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -23,12 +23,12 @@
23
23
  "@wix/ecom_additional-fees": "1.0.15",
24
24
  "@wix/ecom_back-in-stock-notifications": "1.0.43",
25
25
  "@wix/ecom_back-in-stock-settings": "1.0.29",
26
- "@wix/ecom_cart": "1.0.58",
26
+ "@wix/ecom_cart": "1.0.59",
27
27
  "@wix/ecom_checkout": "1.0.63",
28
28
  "@wix/ecom_checkout-settings": "1.0.43",
29
29
  "@wix/ecom_checkout-templates": "1.0.64",
30
30
  "@wix/ecom_currencies": "1.0.30",
31
- "@wix/ecom_current-cart": "1.0.58",
31
+ "@wix/ecom_current-cart": "1.0.59",
32
32
  "@wix/ecom_custom-triggers": "1.0.13",
33
33
  "@wix/ecom_delivery-profile": "1.0.10",
34
34
  "@wix/ecom_discount-rules": "1.0.45",
@@ -71,5 +71,5 @@
71
71
  "fqdn": ""
72
72
  }
73
73
  },
74
- "falconPackageHash": "a20802ada06b7784b53259734a97fce3fbe21e405bb0d88f53e0d80f"
74
+ "falconPackageHash": "0f123dd6c0a9206cdf26339c1c25b3f08e117b6a3ebddcd95af2cdcc"
75
75
  }
@@ -3723,6 +3723,8 @@ interface UpdateCartRequest$1 {
3723
3723
  merchantDiscounts?: MerchantDiscountInput$2[];
3724
3724
  /** Catalog line items. */
3725
3725
  lineItems?: LineItem$5[];
3726
+ /** Custom line items. */
3727
+ customLineItems?: CustomLineItem$4[];
3726
3728
  }
3727
3729
  interface MerchantDiscountInput$2 {
3728
3730
  /** Discount amount. */
@@ -3815,6 +3817,8 @@ interface UpdateCartResponse$1 {
3815
3817
  interface AddToCurrentCartRequest$1 {
3816
3818
  /** Catalog line items. */
3817
3819
  lineItems?: LineItem$5[];
3820
+ /** Custom line items. */
3821
+ customLineItems?: CustomLineItem$4[];
3818
3822
  }
3819
3823
  interface AddToCartResponse$1 {
3820
3824
  /** Updated cart. */
@@ -3823,6 +3827,8 @@ interface AddToCartResponse$1 {
3823
3827
  interface AddToCurrentCartAndEstimateTotalsRequest$1 {
3824
3828
  /** Catalog line items. */
3825
3829
  lineItems?: LineItem$5[];
3830
+ /** Custom line items. */
3831
+ customLineItems?: CustomLineItem$4[];
3826
3832
  /** Selected shipping option. */
3827
3833
  selectedShippingOption?: SelectedShippingOption$1;
3828
3834
  /** Shipping address. Used for calculating tax and shipping (when applicable). */
@@ -4726,6 +4732,8 @@ interface CreateCartRequest$1 {
4726
4732
  merchantDiscounts?: MerchantDiscountInput$2[];
4727
4733
  /** Catalog line items. */
4728
4734
  lineItems?: LineItem$5[];
4735
+ /** Custom line items. */
4736
+ customLineItems?: CustomLineItem$4[];
4729
4737
  }
4730
4738
  interface CreateCartResponse$1 {
4731
4739
  /** Cart. */
@@ -4752,6 +4760,8 @@ interface AddToCartRequest$1 {
4752
4760
  _id: string;
4753
4761
  /** Catalog line items. */
4754
4762
  lineItems?: LineItem$5[];
4763
+ /** Custom line items. */
4764
+ customLineItems?: CustomLineItem$4[];
4755
4765
  }
4756
4766
  interface RemoveLineItemsRequest$2 {
4757
4767
  /** Cart ID. */
@@ -5310,6 +5320,8 @@ interface CreateCartOptions {
5310
5320
  merchantDiscounts?: MerchantDiscountInput$2[];
5311
5321
  /** Catalog line items. */
5312
5322
  lineItems?: LineItem$5[];
5323
+ /** Custom line items. */
5324
+ customLineItems?: CustomLineItem$4[];
5313
5325
  }
5314
5326
  interface UpdateCartOptions {
5315
5327
  /** The information for the cart being updated. */
@@ -5399,10 +5411,14 @@ interface UpdateCartOptions {
5399
5411
  merchantDiscounts?: MerchantDiscountInput$2[];
5400
5412
  /** Catalog line items. */
5401
5413
  lineItems?: LineItem$5[];
5414
+ /** Custom line items. */
5415
+ customLineItems?: CustomLineItem$4[];
5402
5416
  }
5403
5417
  interface AddToCartOptions {
5404
5418
  /** Catalog line items. */
5405
5419
  lineItems?: LineItem$5[];
5420
+ /** Custom line items. */
5421
+ customLineItems?: CustomLineItem$4[];
5406
5422
  }
5407
5423
  interface CreateCheckoutOptions$1 {
5408
5424
  /** **Required**. Sales channel type. */
@@ -6073,6 +6089,8 @@ interface UpdateCartRequest {
6073
6089
  merchantDiscounts?: MerchantDiscountInput$1[];
6074
6090
  /** Catalog line items. */
6075
6091
  lineItems?: LineItem$4[];
6092
+ /** Custom line items. */
6093
+ customLineItems?: CustomLineItem$3[];
6076
6094
  }
6077
6095
  interface MerchantDiscountInput$1 {
6078
6096
  /** Discount amount. */
@@ -6165,6 +6183,8 @@ interface UpdateCartResponse {
6165
6183
  interface AddToCurrentCartRequest {
6166
6184
  /** Catalog line items. */
6167
6185
  lineItems?: LineItem$4[];
6186
+ /** Custom line items. */
6187
+ customLineItems?: CustomLineItem$3[];
6168
6188
  }
6169
6189
  interface AddToCartResponse {
6170
6190
  /** Updated cart. */
@@ -6173,6 +6193,8 @@ interface AddToCartResponse {
6173
6193
  interface AddToCurrentCartAndEstimateTotalsRequest {
6174
6194
  /** Catalog line items. */
6175
6195
  lineItems?: LineItem$4[];
6196
+ /** Custom line items. */
6197
+ customLineItems?: CustomLineItem$3[];
6176
6198
  /** Selected shipping option. */
6177
6199
  selectedShippingOption?: SelectedShippingOption;
6178
6200
  /** Shipping address. Used for calculating tax and shipping (when applicable). */
@@ -7076,6 +7098,8 @@ interface CreateCartRequest {
7076
7098
  merchantDiscounts?: MerchantDiscountInput$1[];
7077
7099
  /** Catalog line items. */
7078
7100
  lineItems?: LineItem$4[];
7101
+ /** Custom line items. */
7102
+ customLineItems?: CustomLineItem$3[];
7079
7103
  }
7080
7104
  interface CreateCartResponse {
7081
7105
  /** Cart. */
@@ -7102,6 +7126,8 @@ interface AddToCartRequest {
7102
7126
  _id: string;
7103
7127
  /** Catalog line items. */
7104
7128
  lineItems?: LineItem$4[];
7129
+ /** Custom line items. */
7130
+ customLineItems?: CustomLineItem$3[];
7105
7131
  }
7106
7132
  interface RemoveLineItemsRequest$1 {
7107
7133
  /** Cart ID. */
@@ -7660,10 +7686,14 @@ interface UpdateCurrentCartOptions {
7660
7686
  merchantDiscounts?: MerchantDiscountInput$1[];
7661
7687
  /** Catalog line items. */
7662
7688
  lineItems?: LineItem$4[];
7689
+ /** Custom line items. */
7690
+ customLineItems?: CustomLineItem$3[];
7663
7691
  }
7664
7692
  interface AddToCurrentCartOptions {
7665
7693
  /** Catalog line items. */
7666
7694
  lineItems?: LineItem$4[];
7695
+ /** Custom line items. */
7696
+ customLineItems?: CustomLineItem$3[];
7667
7697
  }
7668
7698
  interface CreateCheckoutFromCurrentCartOptions {
7669
7699
  /** **Required**. Sales channel type. */
@@ -3723,6 +3723,8 @@ interface UpdateCartRequest$1 {
3723
3723
  merchantDiscounts?: MerchantDiscountInput$2[];
3724
3724
  /** Catalog line items. */
3725
3725
  lineItems?: LineItem$5[];
3726
+ /** Custom line items. */
3727
+ customLineItems?: CustomLineItem$4[];
3726
3728
  }
3727
3729
  interface MerchantDiscountInput$2 {
3728
3730
  /** Discount amount. */
@@ -3815,6 +3817,8 @@ interface UpdateCartResponse$1 {
3815
3817
  interface AddToCurrentCartRequest$1 {
3816
3818
  /** Catalog line items. */
3817
3819
  lineItems?: LineItem$5[];
3820
+ /** Custom line items. */
3821
+ customLineItems?: CustomLineItem$4[];
3818
3822
  }
3819
3823
  interface AddToCartResponse$1 {
3820
3824
  /** Updated cart. */
@@ -3823,6 +3827,8 @@ interface AddToCartResponse$1 {
3823
3827
  interface AddToCurrentCartAndEstimateTotalsRequest$1 {
3824
3828
  /** Catalog line items. */
3825
3829
  lineItems?: LineItem$5[];
3830
+ /** Custom line items. */
3831
+ customLineItems?: CustomLineItem$4[];
3826
3832
  /** Selected shipping option. */
3827
3833
  selectedShippingOption?: SelectedShippingOption$1;
3828
3834
  /** Shipping address. Used for calculating tax and shipping (when applicable). */
@@ -4726,6 +4732,8 @@ interface CreateCartRequest$1 {
4726
4732
  merchantDiscounts?: MerchantDiscountInput$2[];
4727
4733
  /** Catalog line items. */
4728
4734
  lineItems?: LineItem$5[];
4735
+ /** Custom line items. */
4736
+ customLineItems?: CustomLineItem$4[];
4729
4737
  }
4730
4738
  interface CreateCartResponse$1 {
4731
4739
  /** Cart. */
@@ -4752,6 +4760,8 @@ interface AddToCartRequest$1 {
4752
4760
  _id: string;
4753
4761
  /** Catalog line items. */
4754
4762
  lineItems?: LineItem$5[];
4763
+ /** Custom line items. */
4764
+ customLineItems?: CustomLineItem$4[];
4755
4765
  }
4756
4766
  interface RemoveLineItemsRequest$2 {
4757
4767
  /** Cart ID. */
@@ -5310,6 +5320,8 @@ interface CreateCartOptions {
5310
5320
  merchantDiscounts?: MerchantDiscountInput$2[];
5311
5321
  /** Catalog line items. */
5312
5322
  lineItems?: LineItem$5[];
5323
+ /** Custom line items. */
5324
+ customLineItems?: CustomLineItem$4[];
5313
5325
  }
5314
5326
  interface UpdateCartOptions {
5315
5327
  /** The information for the cart being updated. */
@@ -5399,10 +5411,14 @@ interface UpdateCartOptions {
5399
5411
  merchantDiscounts?: MerchantDiscountInput$2[];
5400
5412
  /** Catalog line items. */
5401
5413
  lineItems?: LineItem$5[];
5414
+ /** Custom line items. */
5415
+ customLineItems?: CustomLineItem$4[];
5402
5416
  }
5403
5417
  interface AddToCartOptions {
5404
5418
  /** Catalog line items. */
5405
5419
  lineItems?: LineItem$5[];
5420
+ /** Custom line items. */
5421
+ customLineItems?: CustomLineItem$4[];
5406
5422
  }
5407
5423
  interface CreateCheckoutOptions$1 {
5408
5424
  /** **Required**. Sales channel type. */
@@ -6073,6 +6089,8 @@ interface UpdateCartRequest {
6073
6089
  merchantDiscounts?: MerchantDiscountInput$1[];
6074
6090
  /** Catalog line items. */
6075
6091
  lineItems?: LineItem$4[];
6092
+ /** Custom line items. */
6093
+ customLineItems?: CustomLineItem$3[];
6076
6094
  }
6077
6095
  interface MerchantDiscountInput$1 {
6078
6096
  /** Discount amount. */
@@ -6165,6 +6183,8 @@ interface UpdateCartResponse {
6165
6183
  interface AddToCurrentCartRequest {
6166
6184
  /** Catalog line items. */
6167
6185
  lineItems?: LineItem$4[];
6186
+ /** Custom line items. */
6187
+ customLineItems?: CustomLineItem$3[];
6168
6188
  }
6169
6189
  interface AddToCartResponse {
6170
6190
  /** Updated cart. */
@@ -6173,6 +6193,8 @@ interface AddToCartResponse {
6173
6193
  interface AddToCurrentCartAndEstimateTotalsRequest {
6174
6194
  /** Catalog line items. */
6175
6195
  lineItems?: LineItem$4[];
6196
+ /** Custom line items. */
6197
+ customLineItems?: CustomLineItem$3[];
6176
6198
  /** Selected shipping option. */
6177
6199
  selectedShippingOption?: SelectedShippingOption;
6178
6200
  /** Shipping address. Used for calculating tax and shipping (when applicable). */
@@ -7076,6 +7098,8 @@ interface CreateCartRequest {
7076
7098
  merchantDiscounts?: MerchantDiscountInput$1[];
7077
7099
  /** Catalog line items. */
7078
7100
  lineItems?: LineItem$4[];
7101
+ /** Custom line items. */
7102
+ customLineItems?: CustomLineItem$3[];
7079
7103
  }
7080
7104
  interface CreateCartResponse {
7081
7105
  /** Cart. */
@@ -7102,6 +7126,8 @@ interface AddToCartRequest {
7102
7126
  _id: string;
7103
7127
  /** Catalog line items. */
7104
7128
  lineItems?: LineItem$4[];
7129
+ /** Custom line items. */
7130
+ customLineItems?: CustomLineItem$3[];
7105
7131
  }
7106
7132
  interface RemoveLineItemsRequest$1 {
7107
7133
  /** Cart ID. */
@@ -7660,10 +7686,14 @@ interface UpdateCurrentCartOptions {
7660
7686
  merchantDiscounts?: MerchantDiscountInput$1[];
7661
7687
  /** Catalog line items. */
7662
7688
  lineItems?: LineItem$4[];
7689
+ /** Custom line items. */
7690
+ customLineItems?: CustomLineItem$3[];
7663
7691
  }
7664
7692
  interface AddToCurrentCartOptions {
7665
7693
  /** Catalog line items. */
7666
7694
  lineItems?: LineItem$4[];
7695
+ /** Custom line items. */
7696
+ customLineItems?: CustomLineItem$3[];
7667
7697
  }
7668
7698
  interface CreateCheckoutFromCurrentCartOptions {
7669
7699
  /** **Required**. Sales channel type. */
@@ -2123,9 +2123,9 @@ interface BackInStockItemDetails$1 {
2123
2123
  /** Item price. */
2124
2124
  price?: string;
2125
2125
  /** Item image. */
2126
- image?: Image$3;
2126
+ image?: Image$5;
2127
2127
  }
2128
- interface Image$3 {
2128
+ interface Image$5 {
2129
2129
  /** WixMedia image ID. */
2130
2130
  id?: string;
2131
2131
  /** Image URL. */
@@ -3194,6 +3194,18 @@ interface SelectedMembership$5 {
3194
3194
  /** ID of the app providing this payment option. */
3195
3195
  appId?: string;
3196
3196
  }
3197
+ interface Image$4 {
3198
+ /** WixMedia image ID. */
3199
+ id?: string;
3200
+ /** Original image height. */
3201
+ height?: number;
3202
+ /** Original image width. */
3203
+ width?: number;
3204
+ /** Image alt text. Optional. */
3205
+ altText?: string | null;
3206
+ /** Image filename. Optional. */
3207
+ filename?: string | null;
3208
+ }
3197
3209
  /** Buyer Info */
3198
3210
  interface BuyerInfo$9 extends BuyerInfoIdOneOf$9 {
3199
3211
  /**
@@ -3353,6 +3365,8 @@ interface UpdateCartRequest$3 {
3353
3365
  merchantDiscounts?: MerchantDiscountInput$3[];
3354
3366
  /** Catalog line items. */
3355
3367
  lineItems?: LineItem$5[];
3368
+ /** Custom line items. */
3369
+ customLineItems?: CustomLineItem$5[];
3356
3370
  }
3357
3371
  interface MerchantDiscountInput$3 {
3358
3372
  /** Discount amount. */
@@ -3360,6 +3374,80 @@ interface MerchantDiscountInput$3 {
3360
3374
  /** IDs of line items the discount applies to. */
3361
3375
  lineItemIds?: string[];
3362
3376
  }
3377
+ interface CustomLineItem$5 {
3378
+ /**
3379
+ * Custom line item quantity.
3380
+ *
3381
+ * Min: `1`
3382
+ * Max: `100000`
3383
+ */
3384
+ quantity?: number;
3385
+ /**
3386
+ * Custom line item price.
3387
+ *
3388
+ * Must be a number or a decimal without symbols.
3389
+ */
3390
+ price?: string;
3391
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
3392
+ priceDescription?: PriceDescription$9;
3393
+ /** Custom line item description lines. Used for display purposes for the cart, checkout and order. */
3394
+ descriptionLines?: DescriptionLine$9[];
3395
+ /** Custom line item's media. */
3396
+ media?: Image$4;
3397
+ /**
3398
+ * Custom line item ID. If passed, `id` must be unique.
3399
+ * Default: auto-generated ID.
3400
+ */
3401
+ id?: string | null;
3402
+ /** Tax group ID for this custom line item. */
3403
+ taxGroupId?: string | null;
3404
+ /** Name of the item or product. */
3405
+ productName?: ProductName$9;
3406
+ /**
3407
+ * Optional - URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
3408
+ * The URL is optional and if not provided, the site URL will be used.
3409
+ */
3410
+ url?: PageUrlV2$3;
3411
+ /** Item type. Either a preset type or custom. */
3412
+ itemType?: ItemType$9;
3413
+ /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
3414
+ fullPrice?: string | null;
3415
+ /**
3416
+ * Optional - Item quantity available for purchase. Only return this if inventory is managed.
3417
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
3418
+ */
3419
+ quantityAvailable?: number | null;
3420
+ /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
3421
+ physicalProperties?: PhysicalProperties$9;
3422
+ /**
3423
+ * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
3424
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
3425
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
3426
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
3427
+ * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
3428
+ */
3429
+ paymentOption?: PaymentOptionType$b;
3430
+ /**
3431
+ * Optional - Service properties. When relevant, this contains information such as date and number of participants.
3432
+ * Used, among other things, when checking for valid memberships.
3433
+ */
3434
+ serviceProperties?: ServiceProperties$5;
3435
+ /**
3436
+ * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
3437
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
3438
+ * + in most cases, this field is the name as `catalogReference.catalogItemId`.
3439
+ * + Used in membership validation.
3440
+ */
3441
+ rootCatalogItemId?: string | null;
3442
+ /**
3443
+ * Optional - partial payment for the given item to be paid upfront during the checkout.
3444
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
3445
+ * If omitted - item's price will not be split and is expected to be paid in single installment
3446
+ */
3447
+ depositAmount?: string | null;
3448
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
3449
+ catalogReference?: CatalogReference$b;
3450
+ }
3363
3451
  interface UpdateCartResponse$3 {
3364
3452
  /** Updated Cart. */
3365
3453
  cart?: Cart$3;
@@ -4054,6 +4142,8 @@ interface CreateCartRequest$1 {
4054
4142
  merchantDiscounts?: MerchantDiscountInput$3[];
4055
4143
  /** Catalog line items. */
4056
4144
  lineItems?: LineItem$5[];
4145
+ /** Custom line items. */
4146
+ customLineItems?: CustomLineItem$5[];
4057
4147
  }
4058
4148
  interface CreateCartResponse$1 {
4059
4149
  /** Cart. */
@@ -4072,6 +4162,8 @@ interface AddToCartRequest$1 {
4072
4162
  id: string;
4073
4163
  /** Catalog line items. */
4074
4164
  lineItems?: LineItem$5[];
4165
+ /** Custom line items. */
4166
+ customLineItems?: CustomLineItem$5[];
4075
4167
  }
4076
4168
  interface RemoveLineItemsRequest$3 {
4077
4169
  /** Cart ID. */
@@ -5099,6 +5191,8 @@ interface UpdateCartRequest$2 {
5099
5191
  merchantDiscounts?: MerchantDiscountInput$2[];
5100
5192
  /** Catalog line items. */
5101
5193
  lineItems?: LineItem$4[];
5194
+ /** Custom line items. */
5195
+ customLineItems?: CustomLineItem$4[];
5102
5196
  }
5103
5197
  interface MerchantDiscountInput$2 {
5104
5198
  /** Discount amount. */
@@ -5106,6 +5200,84 @@ interface MerchantDiscountInput$2 {
5106
5200
  /** IDs of the line items the discount applies to. */
5107
5201
  lineItemIds?: string[];
5108
5202
  }
5203
+ interface CustomLineItem$4 {
5204
+ /**
5205
+ * Custom line item quantity.
5206
+ *
5207
+ * Min: `1`
5208
+ * Max: `100000`
5209
+ */
5210
+ quantity?: number;
5211
+ /**
5212
+ * Custom line item price.
5213
+ *
5214
+ * Must be a number or a decimal without symbols.
5215
+ */
5216
+ price?: string;
5217
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
5218
+ priceDescription?: PriceDescription$8;
5219
+ /** Custom line item description lines. Used for displaying the cart, checkout and order. */
5220
+ descriptionLines?: DescriptionLine$8[];
5221
+ /**
5222
+ * Custom line item media. Supported formats:
5223
+ * + Link to an image/video from the [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000"`.
5224
+ * + An image from the web - `"http(s)://<image url>"`.
5225
+ */
5226
+ media?: string;
5227
+ /**
5228
+ * Custom line item ID. If passed, `id` must be unique.
5229
+ * Default: auto-generated ID.
5230
+ */
5231
+ _id?: string | null;
5232
+ /** Tax group ID for this custom line item. */
5233
+ taxGroupId?: string | null;
5234
+ /** Name of the item or product. */
5235
+ productName?: ProductName$8;
5236
+ /**
5237
+ * Optional - URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
5238
+ * The URL is optional and if not provided, the site URL will be used.
5239
+ */
5240
+ url?: string;
5241
+ /** Item type. Either a preset type or custom. */
5242
+ itemType?: ItemType$8;
5243
+ /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
5244
+ fullPrice?: string | null;
5245
+ /**
5246
+ * Optional - Item quantity available for purchase. Only return this if inventory is managed.
5247
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
5248
+ */
5249
+ quantityAvailable?: number | null;
5250
+ /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
5251
+ physicalProperties?: PhysicalProperties$8;
5252
+ /**
5253
+ * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
5254
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
5255
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
5256
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
5257
+ * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
5258
+ */
5259
+ paymentOption?: PaymentOptionType$a;
5260
+ /**
5261
+ * Optional - Service properties. When relevant, this contains information such as date and number of participants.
5262
+ * Used, among other things, when checking for valid memberships.
5263
+ */
5264
+ serviceProperties?: ServiceProperties$4;
5265
+ /**
5266
+ * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
5267
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
5268
+ * + in most cases, this field is the name as `catalogReference.catalogItemId`.
5269
+ * + Used in membership validation.
5270
+ */
5271
+ rootCatalogItemId?: string | null;
5272
+ /**
5273
+ * Optional - partial payment for the given item to be paid upfront during the checkout.
5274
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
5275
+ * If omitted - item's price will not be split and is expected to be paid in single installment
5276
+ */
5277
+ depositAmount?: string | null;
5278
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
5279
+ catalogReference?: CatalogReference$a;
5280
+ }
5109
5281
  interface UpdateCartResponse$2 {
5110
5282
  /** Updated Cart. */
5111
5283
  cart?: Cart$2;
@@ -5809,6 +5981,8 @@ interface CreateCartRequest {
5809
5981
  merchantDiscounts?: MerchantDiscountInput$2[];
5810
5982
  /** Catalog line items. */
5811
5983
  lineItems?: LineItem$4[];
5984
+ /** Custom line items. */
5985
+ customLineItems?: CustomLineItem$4[];
5812
5986
  }
5813
5987
  interface CreateCartResponse {
5814
5988
  /** Cart. */
@@ -5827,6 +6001,8 @@ interface AddToCartRequest {
5827
6001
  _id: string;
5828
6002
  /** Catalog line items. */
5829
6003
  lineItems?: LineItem$4[];
6004
+ /** Custom line items. */
6005
+ customLineItems?: CustomLineItem$4[];
5830
6006
  }
5831
6007
  interface RemoveLineItemsRequest$2 {
5832
6008
  /** Cart ID. */
@@ -6794,6 +6970,18 @@ interface SelectedMembership$3 {
6794
6970
  /** ID of the app providing this payment option. */
6795
6971
  appId?: string;
6796
6972
  }
6973
+ interface Image$3 {
6974
+ /** WixMedia image ID. */
6975
+ id?: string;
6976
+ /** Original image height. */
6977
+ height?: number;
6978
+ /** Original image width. */
6979
+ width?: number;
6980
+ /** Image alt text. Optional. */
6981
+ altText?: string | null;
6982
+ /** Image filename. Optional. */
6983
+ filename?: string | null;
6984
+ }
6797
6985
  /** Buyer Info */
6798
6986
  interface BuyerInfo$7 extends BuyerInfoIdOneOf$7 {
6799
6987
  /**
@@ -6959,6 +7147,8 @@ interface UpdateCartRequest$1 {
6959
7147
  merchantDiscounts?: MerchantDiscountInput$1[];
6960
7148
  /** Catalog line items. */
6961
7149
  lineItems?: LineItem$3[];
7150
+ /** Custom line items. */
7151
+ customLineItems?: CustomLineItem$3[];
6962
7152
  }
6963
7153
  interface MerchantDiscountInput$1 {
6964
7154
  /** Discount amount. */
@@ -6966,6 +7156,80 @@ interface MerchantDiscountInput$1 {
6966
7156
  /** IDs of line items the discount applies to. */
6967
7157
  lineItemIds?: string[];
6968
7158
  }
7159
+ interface CustomLineItem$3 {
7160
+ /**
7161
+ * Custom line item quantity.
7162
+ *
7163
+ * Min: `1`
7164
+ * Max: `100000`
7165
+ */
7166
+ quantity?: number;
7167
+ /**
7168
+ * Custom line item price.
7169
+ *
7170
+ * Must be a number or a decimal without symbols.
7171
+ */
7172
+ price?: string;
7173
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
7174
+ priceDescription?: PriceDescription$7;
7175
+ /** Custom line item description lines. Used for display purposes for the cart, checkout and order. */
7176
+ descriptionLines?: DescriptionLine$7[];
7177
+ /** Custom line item's media. */
7178
+ media?: Image$3;
7179
+ /**
7180
+ * Custom line item ID. If passed, `id` must be unique.
7181
+ * Default: auto-generated ID.
7182
+ */
7183
+ id?: string | null;
7184
+ /** Tax group ID for this custom line item. */
7185
+ taxGroupId?: string | null;
7186
+ /** Name of the item or product. */
7187
+ productName?: ProductName$7;
7188
+ /**
7189
+ * Optional - URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
7190
+ * The URL is optional and if not provided, the site URL will be used.
7191
+ */
7192
+ url?: PageUrlV2$2;
7193
+ /** Item type. Either a preset type or custom. */
7194
+ itemType?: ItemType$7;
7195
+ /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
7196
+ fullPrice?: string | null;
7197
+ /**
7198
+ * Optional - Item quantity available for purchase. Only return this if inventory is managed.
7199
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
7200
+ */
7201
+ quantityAvailable?: number | null;
7202
+ /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
7203
+ physicalProperties?: PhysicalProperties$7;
7204
+ /**
7205
+ * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
7206
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
7207
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
7208
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
7209
+ * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
7210
+ */
7211
+ paymentOption?: PaymentOptionType$9;
7212
+ /**
7213
+ * Optional - Service properties. When relevant, this contains information such as date and number of participants.
7214
+ * Used, among other things, when checking for valid memberships.
7215
+ */
7216
+ serviceProperties?: ServiceProperties$3;
7217
+ /**
7218
+ * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
7219
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
7220
+ * + in most cases, this field is the name as `catalogReference.catalogItemId`.
7221
+ * + Used in membership validation.
7222
+ */
7223
+ rootCatalogItemId?: string | null;
7224
+ /**
7225
+ * Optional - partial payment for the given item to be paid upfront during the checkout.
7226
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
7227
+ * If omitted - item's price will not be split and is expected to be paid in single installment
7228
+ */
7229
+ depositAmount?: string | null;
7230
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
7231
+ catalogReference?: CatalogReference$9;
7232
+ }
6969
7233
  interface UpdateCartResponse$1 {
6970
7234
  /** Updated Cart. */
6971
7235
  cart?: Cart$1;
@@ -6973,6 +7237,8 @@ interface UpdateCartResponse$1 {
6973
7237
  interface AddToCurrentCartRequest$1 {
6974
7238
  /** Catalog line items. */
6975
7239
  lineItems?: LineItem$3[];
7240
+ /** Custom line items. */
7241
+ customLineItems?: CustomLineItem$3[];
6976
7242
  }
6977
7243
  interface AddToCartResponse$1 {
6978
7244
  /** Updated cart. */
@@ -8672,6 +8938,8 @@ interface UpdateCartRequest {
8672
8938
  merchantDiscounts?: MerchantDiscountInput[];
8673
8939
  /** Catalog line items. */
8674
8940
  lineItems?: LineItem$2[];
8941
+ /** Custom line items. */
8942
+ customLineItems?: CustomLineItem$2[];
8675
8943
  }
8676
8944
  interface MerchantDiscountInput {
8677
8945
  /** Discount amount. */
@@ -8679,6 +8947,84 @@ interface MerchantDiscountInput {
8679
8947
  /** IDs of the line items the discount applies to. */
8680
8948
  lineItemIds?: string[];
8681
8949
  }
8950
+ interface CustomLineItem$2 {
8951
+ /**
8952
+ * Custom line item quantity.
8953
+ *
8954
+ * Min: `1`
8955
+ * Max: `100000`
8956
+ */
8957
+ quantity?: number;
8958
+ /**
8959
+ * Custom line item price.
8960
+ *
8961
+ * Must be a number or a decimal without symbols.
8962
+ */
8963
+ price?: string;
8964
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
8965
+ priceDescription?: PriceDescription$6;
8966
+ /** Custom line item description lines. Used for displaying the cart, checkout and order. */
8967
+ descriptionLines?: DescriptionLine$6[];
8968
+ /**
8969
+ * Custom line item media. Supported formats:
8970
+ * + Link to an image/video from the [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000"`.
8971
+ * + An image from the web - `"http(s)://<image url>"`.
8972
+ */
8973
+ media?: string;
8974
+ /**
8975
+ * Custom line item ID. If passed, `id` must be unique.
8976
+ * Default: auto-generated ID.
8977
+ */
8978
+ _id?: string | null;
8979
+ /** Tax group ID for this custom line item. */
8980
+ taxGroupId?: string | null;
8981
+ /** Name of the item or product. */
8982
+ productName?: ProductName$6;
8983
+ /**
8984
+ * Optional - URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
8985
+ * The URL is optional and if not provided, the site URL will be used.
8986
+ */
8987
+ url?: string;
8988
+ /** Item type. Either a preset type or custom. */
8989
+ itemType?: ItemType$6;
8990
+ /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
8991
+ fullPrice?: string | null;
8992
+ /**
8993
+ * Optional - Item quantity available for purchase. Only return this if inventory is managed.
8994
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
8995
+ */
8996
+ quantityAvailable?: number | null;
8997
+ /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
8998
+ physicalProperties?: PhysicalProperties$6;
8999
+ /**
9000
+ * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
9001
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
9002
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
9003
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
9004
+ * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
9005
+ */
9006
+ paymentOption?: PaymentOptionType$8;
9007
+ /**
9008
+ * Optional - Service properties. When relevant, this contains information such as date and number of participants.
9009
+ * Used, among other things, when checking for valid memberships.
9010
+ */
9011
+ serviceProperties?: ServiceProperties$2;
9012
+ /**
9013
+ * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
9014
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
9015
+ * + in most cases, this field is the name as `catalogReference.catalogItemId`.
9016
+ * + Used in membership validation.
9017
+ */
9018
+ rootCatalogItemId?: string | null;
9019
+ /**
9020
+ * Optional - partial payment for the given item to be paid upfront during the checkout.
9021
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
9022
+ * If omitted - item's price will not be split and is expected to be paid in single installment
9023
+ */
9024
+ depositAmount?: string | null;
9025
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
9026
+ catalogReference?: CatalogReference$8;
9027
+ }
8682
9028
  interface UpdateCartResponse {
8683
9029
  /** Updated Cart. */
8684
9030
  cart?: Cart;
@@ -8686,6 +9032,8 @@ interface UpdateCartResponse {
8686
9032
  interface AddToCurrentCartRequest {
8687
9033
  /** Catalog line items. */
8688
9034
  lineItems?: LineItem$2[];
9035
+ /** Custom line items. */
9036
+ customLineItems?: CustomLineItem$2[];
8689
9037
  }
8690
9038
  interface AddToCartResponse {
8691
9039
  /** Updated cart. */