@wix/subscription 1.0.12 → 1.0.14

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.
@@ -359,7 +359,19 @@ interface TaxValueOneOf$1 {
359
359
  dynamic?: DynamicTax$1;
360
360
  }
361
361
  interface DynamicTax$1 {
362
+ /** Tax group ID used to calculate tax, default will be used if not available */
362
363
  taxGroupId?: string | null;
364
+ /** Taxable address used to calculate tax */
365
+ taxableAddressType?: TaxableAddressType$1;
366
+ }
367
+ declare enum TaxableAddressType$1 {
368
+ UNKNOWN = "UNKNOWN",
369
+ /** Tax will be calculated using a single address */
370
+ BUSINESS = "BUSINESS",
371
+ /** Tax will be calculated using multiple address (from BUSINESS to BILLING) */
372
+ BILLING = "BILLING",
373
+ /** Tax will be calculated using multiple address (from BUSINESS to SHIPPING) */
374
+ SHIPPING = "SHIPPING"
363
375
  }
364
376
  interface ShippingCharges$1 {
365
377
  /**
@@ -725,6 +737,11 @@ interface Item$1 {
725
737
  discounts?: Discount$1[];
726
738
  /** Application specific fee, positive value, optional (if application_fee == 0, don't include it to request). Only positive values. */
727
739
  applicationFee?: ApplicationFee$1;
740
+ /**
741
+ * External reference identifier for mapping item in consumer's system.
742
+ * This allows the consumer to correlate the item in their system with the item in this API.
743
+ */
744
+ externalId?: string | null;
728
745
  /**
729
746
  * Key / Value store to keep up to 10 additional values related to the subscription item.
730
747
  * Key max length = 50, Value max length = 200. Value can not be empty.
@@ -1528,9 +1545,13 @@ interface FullAddressDetailsNonNullableFields$1 {
1528
1545
  interface TaxSettingsNonNullableFields$1 {
1529
1546
  inclusive: boolean;
1530
1547
  }
1548
+ interface DynamicTaxNonNullableFields$1 {
1549
+ taxableAddressType: TaxableAddressType$1;
1550
+ }
1531
1551
  interface TaxNonNullableFields$1 {
1532
1552
  amount: string;
1533
1553
  percentage: string;
1554
+ dynamic?: DynamicTaxNonNullableFields$1;
1534
1555
  }
1535
1556
  interface AdditionalFeeNonNullableFields$1 {
1536
1557
  name: string;
@@ -2194,7 +2215,19 @@ interface TaxValueOneOf {
2194
2215
  dynamic?: DynamicTax;
2195
2216
  }
2196
2217
  interface DynamicTax {
2218
+ /** Tax group ID used to calculate tax, default will be used if not available */
2197
2219
  taxGroupId?: string | null;
2220
+ /** Taxable address used to calculate tax */
2221
+ taxableAddressType?: TaxableAddressType;
2222
+ }
2223
+ declare enum TaxableAddressType {
2224
+ UNKNOWN = "UNKNOWN",
2225
+ /** Tax will be calculated using a single address */
2226
+ BUSINESS = "BUSINESS",
2227
+ /** Tax will be calculated using multiple address (from BUSINESS to BILLING) */
2228
+ BILLING = "BILLING",
2229
+ /** Tax will be calculated using multiple address (from BUSINESS to SHIPPING) */
2230
+ SHIPPING = "SHIPPING"
2198
2231
  }
2199
2232
  interface ShippingCharges {
2200
2233
  /**
@@ -2560,6 +2593,11 @@ interface Item {
2560
2593
  discounts?: Discount[];
2561
2594
  /** Application specific fee, positive value, optional (if application_fee == 0, don't include it to request). Only positive values. */
2562
2595
  applicationFee?: ApplicationFee;
2596
+ /**
2597
+ * External reference identifier for mapping item in consumer's system.
2598
+ * This allows the consumer to correlate the item in their system with the item in this API.
2599
+ */
2600
+ externalId?: string | null;
2563
2601
  /**
2564
2602
  * Key / Value store to keep up to 10 additional values related to the subscription item.
2565
2603
  * Key max length = 50, Value max length = 200. Value can not be empty.
@@ -3363,9 +3401,13 @@ interface FullAddressDetailsNonNullableFields {
3363
3401
  interface TaxSettingsNonNullableFields {
3364
3402
  inclusive: boolean;
3365
3403
  }
3404
+ interface DynamicTaxNonNullableFields {
3405
+ taxableAddressType: TaxableAddressType;
3406
+ }
3366
3407
  interface TaxNonNullableFields {
3367
3408
  amount: string;
3368
3409
  percentage: string;
3410
+ dynamic?: DynamicTaxNonNullableFields;
3369
3411
  }
3370
3412
  interface AdditionalFeeNonNullableFields {
3371
3413
  name: string;