@wix/auto_sdk_ecom_tax-calculation 1.0.57 → 1.0.59

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.
@@ -132,6 +132,14 @@ interface LineItem {
132
132
  * @format GUID
133
133
  */
134
134
  appId?: string | null;
135
+ /**
136
+ * ID of the tax group to apply when neither `taxGroupId` nor the default tax group of the app in `appId` applies, for example an additional fee from an app with no default tax group.
137
+ *
138
+ * Ignored if it isn't an existing tax group.
139
+ * @internal
140
+ * @format GUID
141
+ */
142
+ fallbackTaxGroupId?: string | null;
135
143
  /** Whether tax is included in the price. */
136
144
  taxIncludedInPrice?: boolean | null;
137
145
  /** Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based. */
@@ -376,6 +384,14 @@ interface LineItemTaxDetails {
376
384
  addressIndex?: AddressIndex;
377
385
  /** Whether tax is included in the price. */
378
386
  taxIncludedInPrice?: boolean;
387
+ /**
388
+ * ID of the tax group that applies to this line item.
389
+ *
390
+ * This can differ from the line item's `taxGroupId` in the request: when that is empty or isn't an existing tax group, this is the default tax group of the app in `appId`, or else `fallbackTaxGroupId`. Empty when no tax group applies, or when none of the request's line items has a tax region.
391
+ * @internal
392
+ * @format GUID
393
+ */
394
+ taxGroupId?: string | null;
379
395
  }
380
396
  /** A detailed description of all the tax authorities applied on this item. */
381
397
  interface TaxBreakdown {
@@ -133,6 +133,14 @@ interface LineItem {
133
133
  * @format GUID
134
134
  */
135
135
  appId?: string | null;
136
+ /**
137
+ * ID of the tax group to apply when neither `taxGroupId` nor the default tax group of the app in `appId` applies, for example an additional fee from an app with no default tax group.
138
+ *
139
+ * Ignored if it isn't an existing tax group.
140
+ * @internal
141
+ * @format GUID
142
+ */
143
+ fallbackTaxGroupId?: string | null;
136
144
  /** Whether tax is included in the price. */
137
145
  taxIncludedInPrice?: boolean | null;
138
146
  /** Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based. */
@@ -377,6 +385,14 @@ interface LineItemTaxDetails {
377
385
  addressIndex?: AddressIndex;
378
386
  /** Whether tax is included in the price. */
379
387
  taxIncludedInPrice?: boolean;
388
+ /**
389
+ * ID of the tax group that applies to this line item.
390
+ *
391
+ * This can differ from the line item's `taxGroupId` in the request: when that is empty or isn't an existing tax group, this is the default tax group of the app in `appId`, or else `fallbackTaxGroupId`. Empty when no tax group applies, or when none of the request's line items has a tax region.
392
+ * @internal
393
+ * @format GUID
394
+ */
395
+ taxGroupId?: string | null;
380
396
  }
381
397
  /** A detailed description of all the tax authorities applied on this item. */
382
398
  interface TaxBreakdown {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_tax-calculation",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.gateways.billing.v1.tax_calculation_gateway"
51
51
  }
52
52
  },
53
- "falconPackageHash": "cef266921b17bd79408b4a9541f026b89eb1f40f5fc6a5085b40d0be"
53
+ "falconPackageHash": "b27af9da6bb1f06ab54ecd718fbe21414f37bb34a3b526445151a75c"
54
54
  }