@wix/ecom 1.0.787 → 1.0.788

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.
@@ -141,6 +141,8 @@ declare class GiftCardNotFoundWixError extends Error {
141
141
  applicationCode: string;
142
142
  /** @hidden */
143
143
  name: string;
144
+ /** @hidden */
145
+ errorType: string;
144
146
  constructor();
145
147
  /** @hidden */
146
148
  static readonly __type = "wix_spi_error";
@@ -157,6 +159,8 @@ declare class GiftCardDisabledWixError extends Error {
157
159
  applicationCode: string;
158
160
  /** @hidden */
159
161
  name: string;
162
+ /** @hidden */
163
+ errorType: string;
160
164
  constructor();
161
165
  /** @hidden */
162
166
  static readonly __type = "wix_spi_error";
@@ -173,6 +177,8 @@ declare class GiftCardExpiredWixError extends Error {
173
177
  applicationCode: string;
174
178
  /** @hidden */
175
179
  name: string;
180
+ /** @hidden */
181
+ errorType: string;
176
182
  constructor();
177
183
  /** @hidden */
178
184
  static readonly __type = "wix_spi_error";
@@ -189,6 +195,8 @@ declare class InsufficientFundsWixError extends Error {
189
195
  applicationCode: string;
190
196
  /** @hidden */
191
197
  name: string;
198
+ /** @hidden */
199
+ errorType: string;
192
200
  constructor();
193
201
  /** @hidden */
194
202
  static readonly __type = "wix_spi_error";
@@ -205,6 +213,8 @@ declare class AlreadyRedeemedWixError extends Error {
205
213
  applicationCode: string;
206
214
  /** @hidden */
207
215
  name: string;
216
+ /** @hidden */
217
+ errorType: string;
208
218
  constructor();
209
219
  /** @hidden */
210
220
  static readonly __type = "wix_spi_error";
@@ -221,6 +231,8 @@ declare class CurrencyNotSupportedWixError extends Error {
221
231
  applicationCode: string;
222
232
  /** @hidden */
223
233
  name: string;
234
+ /** @hidden */
235
+ errorType: string;
224
236
  constructor();
225
237
  /** @hidden */
226
238
  static readonly __type = "wix_spi_error";
@@ -237,6 +249,8 @@ declare class TransactionNotFoundWixError$1 extends Error {
237
249
  applicationCode: string;
238
250
  /** @hidden */
239
251
  name: string;
252
+ /** @hidden */
253
+ errorType: string;
240
254
  constructor();
241
255
  /** @hidden */
242
256
  static readonly __type = "wix_spi_error";
@@ -253,6 +267,8 @@ declare class AlreadyVoidedWixError extends Error {
253
267
  applicationCode: string;
254
268
  /** @hidden */
255
269
  name: string;
270
+ /** @hidden */
271
+ errorType: string;
256
272
  constructor();
257
273
  /** @hidden */
258
274
  static readonly __type = "wix_spi_error";
@@ -413,7 +429,7 @@ interface ServiceProperties$1 {
413
429
  * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
414
430
  * For example, the start time of a class.
415
431
  */
416
- scheduledDate?: Date;
432
+ scheduledDate?: Date | null;
417
433
  /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
418
434
  numberOfParticipants?: number | null;
419
435
  }
@@ -445,7 +461,7 @@ interface Membership$1 {
445
461
  /** Total and remaining membership credits. */
446
462
  credits?: MembershipPaymentCredits$1;
447
463
  /** Membership expiration date. */
448
- expirationDate?: Date;
464
+ expirationDate?: Date | null;
449
465
  /** Additional data about this membership. */
450
466
  additionalData?: Record<string, any> | null;
451
467
  }
@@ -597,11 +613,11 @@ interface OutOfCredits {
597
613
  }
598
614
  interface NotStartedYet {
599
615
  /** Start date of the membership. */
600
- membershipStartDate?: Date;
616
+ membershipStartDate?: Date | null;
601
617
  }
602
618
  interface Ended {
603
619
  /** End date of the membership. */
604
- endDate?: Date;
620
+ endDate?: Date | null;
605
621
  }
606
622
  interface MembershipAlreadyChargedError {
607
623
  /** ID of the transaction that was already used for membership charge. */
@@ -702,6 +718,10 @@ declare class InvalidSelectionWixError extends Error {
702
718
  name: string;
703
719
  /** @hidden */
704
720
  errorSchemaName: string;
721
+ /** @hidden */
722
+ errorType: string;
723
+ /** @hidden */
724
+ spiErrorData: object;
705
725
  data: MembershipInvalidSelectionErrors;
706
726
  constructor(data: MembershipInvalidSelectionErrors);
707
727
  /** @hidden */
@@ -719,6 +739,10 @@ declare class MembershipDoesNotApplyToItemWixError extends Error {
719
739
  applicationCode: string;
720
740
  /** @hidden */
721
741
  name: string;
742
+ /** @hidden */
743
+ errorType: string;
744
+ /** @hidden */
745
+ spiErrorData: object;
722
746
  constructor();
723
747
  /** @hidden */
724
748
  static readonly __type = "wix_spi_error";
@@ -737,6 +761,10 @@ declare class MembershipCannotBeUsedWixError extends Error {
737
761
  name: string;
738
762
  /** @hidden */
739
763
  errorSchemaName: string;
764
+ /** @hidden */
765
+ errorType: string;
766
+ /** @hidden */
767
+ spiErrorData: object;
740
768
  data: MembershipCannotBeChargedError;
741
769
  constructor(data: MembershipCannotBeChargedError);
742
770
  /** @hidden */
@@ -756,6 +784,10 @@ declare class MembershipAlreadyChargedWixError extends Error {
756
784
  name: string;
757
785
  /** @hidden */
758
786
  errorSchemaName: string;
787
+ /** @hidden */
788
+ errorType: string;
789
+ /** @hidden */
790
+ spiErrorData: object;
759
791
  data: MembershipAlreadyChargedError;
760
792
  constructor(data: MembershipAlreadyChargedError);
761
793
  /** @hidden */
@@ -773,6 +805,10 @@ declare class TransactionNotFoundWixError extends Error {
773
805
  applicationCode: string;
774
806
  /** @hidden */
775
807
  name: string;
808
+ /** @hidden */
809
+ errorType: string;
810
+ /** @hidden */
811
+ spiErrorData: object;
776
812
  constructor();
777
813
  /** @hidden */
778
814
  static readonly __type = "wix_spi_error";
@@ -789,6 +825,10 @@ declare class TransactionCannotBeVoidedWixError extends Error {
789
825
  applicationCode: string;
790
826
  /** @hidden */
791
827
  name: string;
828
+ /** @hidden */
829
+ errorType: string;
830
+ /** @hidden */
831
+ spiErrorData: object;
792
832
  constructor();
793
833
  /** @hidden */
794
834
  static readonly __type = "wix_spi_error";
@@ -805,6 +845,10 @@ declare class TransactionAlreadyVoidedWixError extends Error {
805
845
  applicationCode: string;
806
846
  /** @hidden */
807
847
  name: string;
848
+ /** @hidden */
849
+ errorType: string;
850
+ /** @hidden */
851
+ spiErrorData: object;
808
852
  constructor();
809
853
  /** @hidden */
810
854
  static readonly __type = "wix_spi_error";
@@ -1040,6 +1084,8 @@ declare class AlgorithmNotSupportedWixError extends Error {
1040
1084
  name: string;
1041
1085
  /** @hidden */
1042
1086
  errorSchemaName: string;
1087
+ /** @hidden */
1088
+ errorType: string;
1043
1089
  data: RecommendationAlgorithmNotSupported;
1044
1090
  constructor(data: RecommendationAlgorithmNotSupported);
1045
1091
  /** @hidden */
@@ -1056,6 +1102,8 @@ declare class ItemAppIdNotSupportedWixError extends Error {
1056
1102
  name: string;
1057
1103
  /** @hidden */
1058
1104
  errorSchemaName: string;
1105
+ /** @hidden */
1106
+ errorType: string;
1059
1107
  data: ItemAppIdNotSupportedError;
1060
1108
  constructor(data: ItemAppIdNotSupportedError);
1061
1109
  /** @hidden */
@@ -1346,9 +1394,9 @@ declare enum PickupMethod$2 {
1346
1394
  }
1347
1395
  interface DeliveryTimeSlot$1 {
1348
1396
  /** starting time of the delivery time slot */
1349
- from?: Date;
1397
+ from?: Date | null;
1350
1398
  /** ending time of the delivery time slot */
1351
- to?: Date;
1399
+ to?: Date | null;
1352
1400
  }
1353
1401
  interface ShippingPrice$1 {
1354
1402
  /** The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). */
@@ -1560,6 +1608,8 @@ declare class MissingPostalCodeWixError extends Error {
1560
1608
  name: string;
1561
1609
  /** @hidden */
1562
1610
  errorSchemaName: string;
1611
+ /** @hidden */
1612
+ errorType: string;
1563
1613
  data: MissingPostalCodeError;
1564
1614
  constructor(data: MissingPostalCodeError);
1565
1615
  /** @hidden */
@@ -1585,6 +1635,8 @@ declare class InvalidPostalCodeWixError extends Error {
1585
1635
  name: string;
1586
1636
  /** @hidden */
1587
1637
  errorSchemaName: string;
1638
+ /** @hidden */
1639
+ errorType: string;
1588
1640
  data: InvalidPostalCodeError;
1589
1641
  constructor(data: InvalidPostalCodeError);
1590
1642
  /** @hidden */
@@ -1609,6 +1661,8 @@ declare class InvalidAddressWixError extends Error {
1609
1661
  name: string;
1610
1662
  /** @hidden */
1611
1663
  errorSchemaName: string;
1664
+ /** @hidden */
1665
+ errorType: string;
1612
1666
  data: InvalidAddressError;
1613
1667
  constructor(data: InvalidAddressError);
1614
1668
  /** @hidden */
@@ -1633,6 +1687,8 @@ declare class GenericShippingRatesWixError extends Error {
1633
1687
  name: string;
1634
1688
  /** @hidden */
1635
1689
  errorSchemaName: string;
1690
+ /** @hidden */
1691
+ errorType: string;
1636
1692
  data: GenericShippingRatesError;
1637
1693
  constructor(data: GenericShippingRatesError);
1638
1694
  /** @hidden */
@@ -2493,6 +2549,8 @@ declare class CouponLimitPerCustomerExceededWixError extends Error {
2493
2549
  applicationCode: string;
2494
2550
  /** @hidden */
2495
2551
  name: string;
2552
+ /** @hidden */
2553
+ errorType: string;
2496
2554
  constructor();
2497
2555
  /** @hidden */
2498
2556
  static readonly __type = "wix_spi_error";
@@ -2506,6 +2564,8 @@ declare class CouponIsDisabledWixError extends Error {
2506
2564
  applicationCode: string;
2507
2565
  /** @hidden */
2508
2566
  name: string;
2567
+ /** @hidden */
2568
+ errorType: string;
2509
2569
  constructor();
2510
2570
  /** @hidden */
2511
2571
  static readonly __type = "wix_spi_error";
@@ -2519,6 +2579,8 @@ declare class CouponUsageExceededWixError extends Error {
2519
2579
  applicationCode: string;
2520
2580
  /** @hidden */
2521
2581
  name: string;
2582
+ /** @hidden */
2583
+ errorType: string;
2522
2584
  constructor();
2523
2585
  /** @hidden */
2524
2586
  static readonly __type = "wix_spi_error";
@@ -2532,6 +2594,8 @@ declare class CouponHasExpiredWixError extends Error {
2532
2594
  applicationCode: string;
2533
2595
  /** @hidden */
2534
2596
  name: string;
2597
+ /** @hidden */
2598
+ errorType: string;
2535
2599
  constructor();
2536
2600
  /** @hidden */
2537
2601
  static readonly __type = "wix_spi_error";
@@ -2545,6 +2609,8 @@ declare class CouponIsNotActiveYetWixError extends Error {
2545
2609
  applicationCode: string;
2546
2610
  /** @hidden */
2547
2611
  name: string;
2612
+ /** @hidden */
2613
+ errorType: string;
2548
2614
  constructor();
2549
2615
  /** @hidden */
2550
2616
  static readonly __type = "wix_spi_error";
@@ -2558,6 +2624,8 @@ declare class CouponDoesNotExistWixError extends Error {
2558
2624
  applicationCode: string;
2559
2625
  /** @hidden */
2560
2626
  name: string;
2627
+ /** @hidden */
2628
+ errorType: string;
2561
2629
  constructor();
2562
2630
  /** @hidden */
2563
2631
  static readonly __type = "wix_spi_error";
@@ -2634,12 +2702,12 @@ interface Order {
2634
2702
  * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
2635
2703
  * @readonly
2636
2704
  */
2637
- _createdDate?: Date;
2705
+ _createdDate?: Date | null;
2638
2706
  /**
2639
2707
  * Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
2640
2708
  * @readonly
2641
2709
  */
2642
- _updatedDate?: Date;
2710
+ _updatedDate?: Date | null;
2643
2711
  /**
2644
2712
  * Order line items.
2645
2713
  * @readonly
@@ -3065,7 +3133,7 @@ interface DigitalFile {
3065
3133
  * Link expiration time and date.
3066
3134
  * @readonly
3067
3135
  */
3068
- expirationDate?: Date;
3136
+ expirationDate?: Date | null;
3069
3137
  }
3070
3138
  interface SubscriptionInfo {
3071
3139
  /** Subscription ID. */
@@ -3295,7 +3363,7 @@ interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
3295
3363
  * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
3296
3364
  * @deprecated
3297
3365
  */
3298
- deliverByDate?: Date;
3366
+ deliverByDate?: Date | null;
3299
3367
  /** Expected delivery time. */
3300
3368
  deliveryTimeSlot?: DeliveryTimeSlot;
3301
3369
  }
@@ -3336,9 +3404,9 @@ declare enum PickupMethod {
3336
3404
  }
3337
3405
  interface DeliveryTimeSlot {
3338
3406
  /** Delivery slot starting time. */
3339
- from?: Date;
3407
+ from?: Date | null;
3340
3408
  /** Delivery slot ending time. */
3341
- to?: Date;
3409
+ to?: Date | null;
3342
3410
  }
3343
3411
  interface ShippingPrice {
3344
3412
  /** Shipping price for display purposes. */
@@ -3518,7 +3586,7 @@ interface Activity extends ActivityContentOneOf {
3518
3586
  * Activity creation date and time.
3519
3587
  * @readonly
3520
3588
  */
3521
- _createdDate?: Date;
3589
+ _createdDate?: Date | null;
3522
3590
  /** Activity type. */
3523
3591
  type?: ActivityType;
3524
3592
  }
@@ -4161,12 +4229,12 @@ interface Checkout {
4161
4229
  * Date and time the checkout was created.
4162
4230
  * @readonly
4163
4231
  */
4164
- _createdDate?: Date;
4232
+ _createdDate?: Date | null;
4165
4233
  /**
4166
4234
  * Date and time the checkout was updated.
4167
4235
  * @readonly
4168
4236
  */
4169
- _updatedDate?: Date;
4237
+ _updatedDate?: Date | null;
4170
4238
  /**
4171
4239
  * Minimal amount to pay in order to place the order.
4172
4240
  * @readonly
@@ -4531,7 +4599,7 @@ interface ServiceProperties {
4531
4599
  * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
4532
4600
  * For example, the start time of a class.
4533
4601
  */
4534
- scheduledDate?: Date;
4602
+ scheduledDate?: Date | null;
4535
4603
  /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
4536
4604
  numberOfParticipants?: number | null;
4537
4605
  }
@@ -4633,9 +4701,9 @@ declare enum PickupDetailsPickupMethod {
4633
4701
  }
4634
4702
  interface V1DeliveryTimeSlot {
4635
4703
  /** starting time of the delivery time slot */
4636
- from?: Date;
4704
+ from?: Date | null;
4637
4705
  /** ending time of the delivery time slot */
4638
- to?: Date;
4706
+ to?: Date | null;
4639
4707
  }
4640
4708
  interface SelectedCarrierServiceOptionPrices$1 {
4641
4709
  /** Total shipping price, after discount and after tax. */
@@ -5097,7 +5165,7 @@ interface Membership {
5097
5165
  /** Optional - For a membership that has limited credits, information about credit usage. */
5098
5166
  credits?: MembershipPaymentCredits;
5099
5167
  /** Optional - TMembership expiry date. */
5100
- expirationDate?: Date;
5168
+ expirationDate?: Date | null;
5101
5169
  /** Additional data about this membership. */
5102
5170
  additionalData?: Record<string, any> | null;
5103
5171
  }