@wix/ecom 1.0.772 → 1.0.773

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.772",
3
+ "version": "1.0.773",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -23,13 +23,13 @@
23
23
  "@wix/ecom_additional-fees": "1.0.27",
24
24
  "@wix/ecom_back-in-stock-notifications": "1.0.51",
25
25
  "@wix/ecom_back-in-stock-settings": "1.0.36",
26
- "@wix/ecom_cart": "1.0.78",
27
- "@wix/ecom_checkout": "1.0.88",
26
+ "@wix/ecom_cart": "1.0.79",
27
+ "@wix/ecom_checkout": "1.0.89",
28
28
  "@wix/ecom_checkout-content": "1.0.7",
29
29
  "@wix/ecom_checkout-settings": "1.0.52",
30
- "@wix/ecom_checkout-templates": "1.0.87",
30
+ "@wix/ecom_checkout-templates": "1.0.88",
31
31
  "@wix/ecom_currencies": "1.0.37",
32
- "@wix/ecom_current-cart": "1.0.78",
32
+ "@wix/ecom_current-cart": "1.0.79",
33
33
  "@wix/ecom_custom-triggers": "1.0.25",
34
34
  "@wix/ecom_delivery-profile": "1.0.20",
35
35
  "@wix/ecom_discount-rules": "1.0.53",
@@ -45,7 +45,7 @@
45
45
  "@wix/ecom_order-transactions": "1.0.67",
46
46
  "@wix/ecom_orders": "1.0.122",
47
47
  "@wix/ecom_orders-settings": "1.0.46",
48
- "@wix/ecom_payment-settings": "1.0.47",
48
+ "@wix/ecom_payment-settings": "1.0.48",
49
49
  "@wix/ecom_pickup-locations": "1.0.9",
50
50
  "@wix/ecom_recommendations": "1.0.42",
51
51
  "@wix/ecom_recommendations-provider": "1.0.1",
@@ -78,5 +78,5 @@
78
78
  "fqdn": ""
79
79
  }
80
80
  },
81
- "falconPackageHash": "08cfaedf179d774da0f254c5918c76725a0b6cde4774326e438c7bd1"
81
+ "falconPackageHash": "58513a8d4b90631e90e861102548ec8b6317a4848149aef7e7d471db"
82
82
  }
@@ -4146,6 +4146,16 @@ interface LineItem$6 {
4146
4146
  * @readonly
4147
4147
  */
4148
4148
  consentRequiredPaymentPolicy?: string | null;
4149
+ /**
4150
+ * Whether the price is not yet defined, and will be updated after the order is created.
4151
+ * @readonly
4152
+ */
4153
+ priceUndetermined?: boolean;
4154
+ /**
4155
+ * Whether the line item quantity is fixed and cannot be changed.
4156
+ * @readonly
4157
+ */
4158
+ fixedQuantity?: boolean;
4149
4159
  /**
4150
4160
  * Overriding values for catalog item properties.
4151
4161
  *
@@ -4426,6 +4436,12 @@ interface CatalogOverrideFields$3 {
4426
4436
  physicalProperties?: PhysicalProperties$6;
4427
4437
  /** Item image. */
4428
4438
  image?: string;
4439
+ /**
4440
+ * Whether to save the payment method on the order.
4441
+ *
4442
+ * Default: `false`
4443
+ */
4444
+ savePaymentMethod?: boolean | null;
4429
4445
  }
4430
4446
  interface TaxableAddress$6 extends TaxableAddressTaxableAddressDataOneOf$6 {
4431
4447
  /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
@@ -4706,6 +4722,30 @@ interface CustomLineItem$4 {
4706
4722
  depositAmount?: string | null;
4707
4723
  /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
4708
4724
  catalogReference?: CatalogReference$6;
4725
+ /**
4726
+ * Whether the price is not yet defined, and will be updated after the order is created.
4727
+ *
4728
+ * Default: `false`
4729
+ */
4730
+ priceUndetermined?: boolean;
4731
+ /**
4732
+ * Whether the line item quantity is fixed and cannot be changed.
4733
+ *
4734
+ * Default: `false`
4735
+ */
4736
+ fixedQuantity?: boolean;
4737
+ /**
4738
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
4739
+ * @readonly
4740
+ */
4741
+ consentRequiredPaymentPolicy?: string | null;
4742
+ /**
4743
+ * Whether to save the payment method on the order.
4744
+ *
4745
+ * Default: `false`
4746
+ * @readonly
4747
+ */
4748
+ savePaymentMethod?: boolean;
4709
4749
  }
4710
4750
  interface UpdateCartResponse$1 {
4711
4751
  /** Updated Cart. */
@@ -4744,6 +4784,18 @@ interface AddToCurrentCartAndEstimateTotalsRequest$1 {
4744
4784
  billingAddress?: Address$9;
4745
4785
  /** The selected membership payment options and which line items they apply to. */
4746
4786
  selectedMemberships?: SelectedMemberships$4;
4787
+ /**
4788
+ * Whether to calculate tax in the calculation request.
4789
+ *
4790
+ * Default: `true`
4791
+ */
4792
+ calculateTax?: boolean | null;
4793
+ /**
4794
+ * Whether to calculate shipping in the calculation request.
4795
+ *
4796
+ * Default: `true`
4797
+ */
4798
+ calculateShipping?: boolean | null;
4747
4799
  }
4748
4800
  interface SelectedMemberships$4 {
4749
4801
  /** Selected memberships. */
@@ -5522,6 +5574,18 @@ interface EstimateCurrentCartTotalsRequest$1 {
5522
5574
  billingAddress?: Address$9;
5523
5575
  /** The selected membership payment options and which line items they apply to. */
5524
5576
  selectedMemberships?: SelectedMemberships$4;
5577
+ /**
5578
+ * Whether to calculate tax in the calculation request.
5579
+ *
5580
+ * Default: `true`
5581
+ */
5582
+ calculateTax?: boolean | null;
5583
+ /**
5584
+ * Whether to calculate shipping in the calculation request.
5585
+ *
5586
+ * Default: `true`
5587
+ */
5588
+ calculateShipping?: boolean | null;
5525
5589
  }
5526
5590
  interface DeleteCurrentCartRequest$1 {
5527
5591
  }
@@ -5728,6 +5792,18 @@ interface EstimateTotalsRequest$1 {
5728
5792
  billingAddress?: Address$9;
5729
5793
  /** The selected membership payment options and which line items they apply to. */
5730
5794
  selectedMemberships?: SelectedMemberships$4;
5795
+ /**
5796
+ * Whether to calculate tax in the calculation request.
5797
+ *
5798
+ * Default: `true`
5799
+ */
5800
+ calculateTax?: boolean | null;
5801
+ /**
5802
+ * Whether to calculate shipping in the calculation request.
5803
+ *
5804
+ * Default: `true`
5805
+ */
5806
+ calculateShipping?: boolean | null;
5731
5807
  }
5732
5808
  interface DeleteCartRequest$1 {
5733
5809
  /** ID of the cart to delete. */
@@ -6386,6 +6462,18 @@ interface EstimateTotalsOptions {
6386
6462
  billingAddress?: Address$9;
6387
6463
  /** The selected membership payment options and which line items they apply to. */
6388
6464
  selectedMemberships?: SelectedMemberships$4;
6465
+ /**
6466
+ * Whether to calculate tax in the calculation request.
6467
+ *
6468
+ * Default: `true`
6469
+ */
6470
+ calculateTax?: boolean | null;
6471
+ /**
6472
+ * Whether to calculate shipping in the calculation request.
6473
+ *
6474
+ * Default: `true`
6475
+ */
6476
+ calculateShipping?: boolean | null;
6389
6477
  }
6390
6478
 
6391
6479
  declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
@@ -6784,6 +6872,16 @@ interface LineItem$5 {
6784
6872
  * @readonly
6785
6873
  */
6786
6874
  consentRequiredPaymentPolicy?: string | null;
6875
+ /**
6876
+ * Whether the price is not yet defined, and will be updated after the order is created.
6877
+ * @readonly
6878
+ */
6879
+ priceUndetermined?: boolean;
6880
+ /**
6881
+ * Whether the line item quantity is fixed and cannot be changed.
6882
+ * @readonly
6883
+ */
6884
+ fixedQuantity?: boolean;
6787
6885
  /**
6788
6886
  * Overriding values for catalog item properties.
6789
6887
  *
@@ -7064,6 +7162,12 @@ interface CatalogOverrideFields$2 {
7064
7162
  physicalProperties?: PhysicalProperties$5;
7065
7163
  /** Item image. */
7066
7164
  image?: string;
7165
+ /**
7166
+ * Whether to save the payment method on the order.
7167
+ *
7168
+ * Default: `false`
7169
+ */
7170
+ savePaymentMethod?: boolean | null;
7067
7171
  }
7068
7172
  interface TaxableAddress$5 extends TaxableAddressTaxableAddressDataOneOf$5 {
7069
7173
  /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
@@ -7344,6 +7448,30 @@ interface CustomLineItem$3 {
7344
7448
  depositAmount?: string | null;
7345
7449
  /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
7346
7450
  catalogReference?: CatalogReference$5;
7451
+ /**
7452
+ * Whether the price is not yet defined, and will be updated after the order is created.
7453
+ *
7454
+ * Default: `false`
7455
+ */
7456
+ priceUndetermined?: boolean;
7457
+ /**
7458
+ * Whether the line item quantity is fixed and cannot be changed.
7459
+ *
7460
+ * Default: `false`
7461
+ */
7462
+ fixedQuantity?: boolean;
7463
+ /**
7464
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
7465
+ * @readonly
7466
+ */
7467
+ consentRequiredPaymentPolicy?: string | null;
7468
+ /**
7469
+ * Whether to save the payment method on the order.
7470
+ *
7471
+ * Default: `false`
7472
+ * @readonly
7473
+ */
7474
+ savePaymentMethod?: boolean;
7347
7475
  }
7348
7476
  interface UpdateCartResponse {
7349
7477
  /** Updated Cart. */
@@ -7382,6 +7510,18 @@ interface AddToCurrentCartAndEstimateTotalsRequest {
7382
7510
  billingAddress?: Address$8;
7383
7511
  /** The selected membership payment options and which line items they apply to. */
7384
7512
  selectedMemberships?: SelectedMemberships$3;
7513
+ /**
7514
+ * Whether to calculate tax in the calculation request.
7515
+ *
7516
+ * Default: `true`
7517
+ */
7518
+ calculateTax?: boolean | null;
7519
+ /**
7520
+ * Whether to calculate shipping in the calculation request.
7521
+ *
7522
+ * Default: `true`
7523
+ */
7524
+ calculateShipping?: boolean | null;
7385
7525
  }
7386
7526
  interface SelectedMemberships$3 {
7387
7527
  /** Selected memberships. */
@@ -8160,6 +8300,18 @@ interface EstimateCurrentCartTotalsRequest {
8160
8300
  billingAddress?: Address$8;
8161
8301
  /** The selected membership payment options and which line items they apply to. */
8162
8302
  selectedMemberships?: SelectedMemberships$3;
8303
+ /**
8304
+ * Whether to calculate tax in the calculation request.
8305
+ *
8306
+ * Default: `true`
8307
+ */
8308
+ calculateTax?: boolean | null;
8309
+ /**
8310
+ * Whether to calculate shipping in the calculation request.
8311
+ *
8312
+ * Default: `true`
8313
+ */
8314
+ calculateShipping?: boolean | null;
8163
8315
  }
8164
8316
  interface DeleteCurrentCartRequest {
8165
8317
  }
@@ -8366,6 +8518,18 @@ interface EstimateTotalsRequest {
8366
8518
  billingAddress?: Address$8;
8367
8519
  /** The selected membership payment options and which line items they apply to. */
8368
8520
  selectedMemberships?: SelectedMemberships$3;
8521
+ /**
8522
+ * Whether to calculate tax in the calculation request.
8523
+ *
8524
+ * Default: `true`
8525
+ */
8526
+ calculateTax?: boolean | null;
8527
+ /**
8528
+ * Whether to calculate shipping in the calculation request.
8529
+ *
8530
+ * Default: `true`
8531
+ */
8532
+ calculateShipping?: boolean | null;
8369
8533
  }
8370
8534
  interface DeleteCartRequest {
8371
8535
  /** ID of the cart to delete. */
@@ -8928,6 +9092,18 @@ interface EstimateCurrentCartTotalsOptions {
8928
9092
  billingAddress?: Address$8;
8929
9093
  /** The selected membership payment options and which line items they apply to. */
8930
9094
  selectedMemberships?: SelectedMemberships$3;
9095
+ /**
9096
+ * Whether to calculate tax in the calculation request.
9097
+ *
9098
+ * Default: `true`
9099
+ */
9100
+ calculateTax?: boolean | null;
9101
+ /**
9102
+ * Whether to calculate shipping in the calculation request.
9103
+ *
9104
+ * Default: `true`
9105
+ */
9106
+ calculateShipping?: boolean | null;
8931
9107
  }
8932
9108
 
8933
9109
  declare function getCurrentCart$1(httpClient: HttpClient): GetCurrentCartSignature;
@@ -9464,6 +9640,16 @@ interface LineItem$4 {
9464
9640
  * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
9465
9641
  */
9466
9642
  catalogOverrideFields?: CatalogOverrideFields$1;
9643
+ /**
9644
+ * Whether the price is not yet defined, and will be updated after the order is created.
9645
+ * @readonly
9646
+ */
9647
+ priceUndetermined?: boolean;
9648
+ /**
9649
+ * Whether the line item quantity is fixed and cannot be changed.
9650
+ * @readonly
9651
+ */
9652
+ fixedQuantity?: boolean;
9467
9653
  /**
9468
9654
  * Whether to save the payment method on the order.
9469
9655
  *
@@ -9809,6 +9995,12 @@ interface CatalogOverrideFields$1 {
9809
9995
  physicalProperties?: PhysicalProperties$4;
9810
9996
  /** Item image. */
9811
9997
  image?: string;
9998
+ /**
9999
+ * Whether to save the payment method on the order.
10000
+ *
10001
+ * Default: `false`
10002
+ */
10003
+ savePaymentMethod?: boolean | null;
9812
10004
  }
9813
10005
  interface TaxableAddress$4 extends TaxableAddressTaxableAddressDataOneOf$4 {
9814
10006
  /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
@@ -10759,6 +10951,30 @@ interface CustomLineItem$2 {
10759
10951
  depositAmount?: string | null;
10760
10952
  /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
10761
10953
  catalogReference?: CatalogReference$4;
10954
+ /**
10955
+ * Whether the price is not yet defined, and will be updated after the order is created.
10956
+ *
10957
+ * Default: `false`
10958
+ */
10959
+ priceUndetermined?: boolean;
10960
+ /**
10961
+ * Whether the line item quantity is fixed and cannot be changed.
10962
+ *
10963
+ * Default: `false`
10964
+ */
10965
+ fixedQuantity?: boolean;
10966
+ /**
10967
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
10968
+ * @readonly
10969
+ */
10970
+ consentRequiredPaymentPolicy?: string | null;
10971
+ /**
10972
+ * Whether to save the payment method on the order.
10973
+ *
10974
+ * Default: `false`
10975
+ * @readonly
10976
+ */
10977
+ savePaymentMethod?: boolean;
10762
10978
  }
10763
10979
  interface MerchantDiscountInput$1 {
10764
10980
  /** Discount amount. */
@@ -10900,6 +11116,8 @@ interface RemoveLineItemsResponse {
10900
11116
  interface CreateOrderRequest$1 {
10901
11117
  /** Checkout ID. */
10902
11118
  _id: string;
11119
+ /** Indicates the payment method should be saved on the order */
11120
+ savePaymentMethod?: boolean;
10903
11121
  /** Indicates whether to authorize the payment and delay the capture */
10904
11122
  delayCapture?: boolean;
10905
11123
  }
@@ -10952,6 +11170,8 @@ interface CreateOrderAndChargeRequest {
10952
11170
  _id?: string;
10953
11171
  /** Payment token. */
10954
11172
  paymentToken?: string | null;
11173
+ /** Indicates the payment method should be saved on the order */
11174
+ savePaymentMethod?: boolean;
10955
11175
  /** Indicates whether to authorize the payment and delay the capture */
10956
11176
  delayCapture?: boolean;
10957
11177
  }
@@ -12266,6 +12486,8 @@ interface AddToCheckoutOptions {
12266
12486
  customLineItems?: CustomLineItem$2[];
12267
12487
  }
12268
12488
  interface CreateOrderOptions {
12489
+ /** Indicates the payment method should be saved on the order */
12490
+ savePaymentMethod?: boolean;
12269
12491
  /** Indicates whether to authorize the payment and delay the capture */
12270
12492
  delayCapture?: boolean;
12271
12493
  }
@@ -13231,6 +13453,12 @@ interface CatalogOverrideFields {
13231
13453
  physicalProperties?: PhysicalProperties$3;
13232
13454
  /** Item image. */
13233
13455
  image?: string;
13456
+ /**
13457
+ * Whether to save the payment method on the order.
13458
+ *
13459
+ * Default: `false`
13460
+ */
13461
+ savePaymentMethod?: boolean | null;
13234
13462
  }
13235
13463
  interface ProductName$2 {
13236
13464
  /**
@@ -13386,6 +13614,30 @@ interface CustomLineItem$1 {
13386
13614
  depositAmount?: string | null;
13387
13615
  /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
13388
13616
  catalogReference?: CatalogReference$3;
13617
+ /**
13618
+ * Whether the price is not yet defined, and will be updated after the order is created.
13619
+ *
13620
+ * Default: `false`
13621
+ */
13622
+ priceUndetermined?: boolean;
13623
+ /**
13624
+ * Whether the line item quantity is fixed and cannot be changed.
13625
+ *
13626
+ * Default: `false`
13627
+ */
13628
+ fixedQuantity?: boolean;
13629
+ /**
13630
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
13631
+ * @readonly
13632
+ */
13633
+ consentRequiredPaymentPolicy?: string | null;
13634
+ /**
13635
+ * Whether to save the payment method on the order.
13636
+ *
13637
+ * Default: `false`
13638
+ * @readonly
13639
+ */
13640
+ savePaymentMethod?: boolean;
13389
13641
  }
13390
13642
  interface PriceDescription$2 {
13391
13643
  /** __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
@@ -13971,6 +14223,16 @@ interface LineItem$3 {
13971
14223
  * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
13972
14224
  */
13973
14225
  catalogOverrideFields?: CatalogOverrideFields;
14226
+ /**
14227
+ * Whether the price is not yet defined, and will be updated after the order is created.
14228
+ * @readonly
14229
+ */
14230
+ priceUndetermined?: boolean;
14231
+ /**
14232
+ * Whether the line item quantity is fixed and cannot be changed.
14233
+ * @readonly
14234
+ */
14235
+ fixedQuantity?: boolean;
13974
14236
  /**
13975
14237
  * Whether to save the payment method on the order.
13976
14238
  *