@wix/auto_sdk_ecom_draft-orders 1.0.199 → 1.0.200

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.
@@ -448,7 +448,7 @@ interface LineItemTaxInfo {
448
448
  /** Amount of the line item price that was exempt from tax. */
449
449
  exemptAmount?: Price;
450
450
  /**
451
- * Tax calculator that produced this line's current tax amounts. Changes when an order edit recalculates tax.
451
+ * Tax calculators behind this line item's current tax amounts: the one that calculated the tax and the one configured for its tax region. Changes when an order edit recalculates tax.
452
452
  *
453
453
  * Not set on orders created before this field was added, on imported orders, or on orders whose creator didn't send it.
454
454
  *
@@ -508,17 +508,25 @@ declare enum JurisdictionType {
508
508
  /** @enumType */
509
509
  type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
510
510
  /**
511
- * Record of the tax calculator behind a line's current tax amounts.
511
+ * Record of the tax calculators behind a line item's current tax amounts. Orders store it on line items, on the shipping cost and on each additional fee; "line item" below stands for any of them.
512
512
  * A recalculation that changes the amounts, for example after an order edit, replaces it.
513
513
  */
514
514
  interface TaxCalculatorAttribution {
515
515
  /**
516
- * App ID of the tax calculator that calculated the line's tax. When the calculator of the line's tax region failed or isn't installed, or the buyer is tax exempt, this is the fallback calculator (Wix's manual tax calculator).
516
+ * App ID of the tax calculator that calculated the line item's tax.
517
+ * When the calculator configured for the line item's tax region didn't run (it failed, it isn't installed on the site, or the buyer is tax exempt), this is the fallback: Wix's manual tax calculator.
517
518
  *
518
- * Not set when no calculator calculated the line's tax: no tax region matches the line, tax wasn't requested, or the region's calculator and the fallback calculator both failed.
519
+ * Not set when no calculator calculated the line item's tax: no tax region matches the line item, tax wasn't requested, or the configured calculator and the fallback both failed.
519
520
  * @format GUID
520
521
  */
521
522
  calculatorId?: string | null;
523
+ /**
524
+ * App ID of the tax calculator configured for the line item's tax region. Differs from `calculatorId` when the fallback calculated the tax instead. See `calculatorId` for when that happens.
525
+ *
526
+ * Set without `calculatorId` when the configured calculator and the fallback both failed. Not set when no tax region matches the line item, when tax wasn't requested, or on attributions written before this field was filled.
527
+ * @format GUID
528
+ */
529
+ configuredCalculatorId?: string | null;
522
530
  }
523
531
  /**
524
532
  * Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
@@ -448,7 +448,7 @@ interface LineItemTaxInfo {
448
448
  /** Amount of the line item price that was exempt from tax. */
449
449
  exemptAmount?: Price;
450
450
  /**
451
- * Tax calculator that produced this line's current tax amounts. Changes when an order edit recalculates tax.
451
+ * Tax calculators behind this line item's current tax amounts: the one that calculated the tax and the one configured for its tax region. Changes when an order edit recalculates tax.
452
452
  *
453
453
  * Not set on orders created before this field was added, on imported orders, or on orders whose creator didn't send it.
454
454
  *
@@ -508,17 +508,25 @@ declare enum JurisdictionType {
508
508
  /** @enumType */
509
509
  type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
510
510
  /**
511
- * Record of the tax calculator behind a line's current tax amounts.
511
+ * Record of the tax calculators behind a line item's current tax amounts. Orders store it on line items, on the shipping cost and on each additional fee; "line item" below stands for any of them.
512
512
  * A recalculation that changes the amounts, for example after an order edit, replaces it.
513
513
  */
514
514
  interface TaxCalculatorAttribution {
515
515
  /**
516
- * App ID of the tax calculator that calculated the line's tax. When the calculator of the line's tax region failed or isn't installed, or the buyer is tax exempt, this is the fallback calculator (Wix's manual tax calculator).
516
+ * App ID of the tax calculator that calculated the line item's tax.
517
+ * When the calculator configured for the line item's tax region didn't run (it failed, it isn't installed on the site, or the buyer is tax exempt), this is the fallback: Wix's manual tax calculator.
517
518
  *
518
- * Not set when no calculator calculated the line's tax: no tax region matches the line, tax wasn't requested, or the region's calculator and the fallback calculator both failed.
519
+ * Not set when no calculator calculated the line item's tax: no tax region matches the line item, tax wasn't requested, or the configured calculator and the fallback both failed.
519
520
  * @format GUID
520
521
  */
521
522
  calculatorId?: string | null;
523
+ /**
524
+ * App ID of the tax calculator configured for the line item's tax region. Differs from `calculatorId` when the fallback calculated the tax instead. See `calculatorId` for when that happens.
525
+ *
526
+ * Set without `calculatorId` when the configured calculator and the fallback both failed. Not set when no tax region matches the line item, when tax wasn't requested, or on attributions written before this field was filled.
527
+ * @format GUID
528
+ */
529
+ configuredCalculatorId?: string | null;
522
530
  }
523
531
  /**
524
532
  * Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
@@ -448,7 +448,7 @@ interface LineItemTaxInfo {
448
448
  /** Amount of the line item price that was exempt from tax. */
449
449
  exemptAmount?: Price;
450
450
  /**
451
- * Tax calculator that produced this line's current tax amounts. Changes when an order edit recalculates tax.
451
+ * Tax calculators behind this line item's current tax amounts: the one that calculated the tax and the one configured for its tax region. Changes when an order edit recalculates tax.
452
452
  *
453
453
  * Not set on orders created before this field was added, on imported orders, or on orders whose creator didn't send it.
454
454
  *
@@ -508,17 +508,25 @@ declare enum JurisdictionType {
508
508
  /** @enumType */
509
509
  type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
510
510
  /**
511
- * Record of the tax calculator behind a line's current tax amounts.
511
+ * Record of the tax calculators behind a line item's current tax amounts. Orders store it on line items, on the shipping cost and on each additional fee; "line item" below stands for any of them.
512
512
  * A recalculation that changes the amounts, for example after an order edit, replaces it.
513
513
  */
514
514
  interface TaxCalculatorAttribution {
515
515
  /**
516
- * App ID of the tax calculator that calculated the line's tax. When the calculator of the line's tax region failed or isn't installed, or the buyer is tax exempt, this is the fallback calculator (Wix's manual tax calculator).
516
+ * App ID of the tax calculator that calculated the line item's tax.
517
+ * When the calculator configured for the line item's tax region didn't run (it failed, it isn't installed on the site, or the buyer is tax exempt), this is the fallback: Wix's manual tax calculator.
517
518
  *
518
- * Not set when no calculator calculated the line's tax: no tax region matches the line, tax wasn't requested, or the region's calculator and the fallback calculator both failed.
519
+ * Not set when no calculator calculated the line item's tax: no tax region matches the line item, tax wasn't requested, or the configured calculator and the fallback both failed.
519
520
  * @format GUID
520
521
  */
521
522
  calculatorId?: string | null;
523
+ /**
524
+ * App ID of the tax calculator configured for the line item's tax region. Differs from `calculatorId` when the fallback calculated the tax instead. See `calculatorId` for when that happens.
525
+ *
526
+ * Set without `calculatorId` when the configured calculator and the fallback both failed. Not set when no tax region matches the line item, when tax wasn't requested, or on attributions written before this field was filled.
527
+ * @format GUID
528
+ */
529
+ configuredCalculatorId?: string | null;
522
530
  }
523
531
  /**
524
532
  * Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
@@ -448,7 +448,7 @@ interface LineItemTaxInfo {
448
448
  /** Amount of the line item price that was exempt from tax. */
449
449
  exemptAmount?: Price;
450
450
  /**
451
- * Tax calculator that produced this line's current tax amounts. Changes when an order edit recalculates tax.
451
+ * Tax calculators behind this line item's current tax amounts: the one that calculated the tax and the one configured for its tax region. Changes when an order edit recalculates tax.
452
452
  *
453
453
  * Not set on orders created before this field was added, on imported orders, or on orders whose creator didn't send it.
454
454
  *
@@ -508,17 +508,25 @@ declare enum JurisdictionType {
508
508
  /** @enumType */
509
509
  type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
510
510
  /**
511
- * Record of the tax calculator behind a line's current tax amounts.
511
+ * Record of the tax calculators behind a line item's current tax amounts. Orders store it on line items, on the shipping cost and on each additional fee; "line item" below stands for any of them.
512
512
  * A recalculation that changes the amounts, for example after an order edit, replaces it.
513
513
  */
514
514
  interface TaxCalculatorAttribution {
515
515
  /**
516
- * App ID of the tax calculator that calculated the line's tax. When the calculator of the line's tax region failed or isn't installed, or the buyer is tax exempt, this is the fallback calculator (Wix's manual tax calculator).
516
+ * App ID of the tax calculator that calculated the line item's tax.
517
+ * When the calculator configured for the line item's tax region didn't run (it failed, it isn't installed on the site, or the buyer is tax exempt), this is the fallback: Wix's manual tax calculator.
517
518
  *
518
- * Not set when no calculator calculated the line's tax: no tax region matches the line, tax wasn't requested, or the region's calculator and the fallback calculator both failed.
519
+ * Not set when no calculator calculated the line item's tax: no tax region matches the line item, tax wasn't requested, or the configured calculator and the fallback both failed.
519
520
  * @format GUID
520
521
  */
521
522
  calculatorId?: string | null;
523
+ /**
524
+ * App ID of the tax calculator configured for the line item's tax region. Differs from `calculatorId` when the fallback calculated the tax instead. See `calculatorId` for when that happens.
525
+ *
526
+ * Set without `calculatorId` when the configured calculator and the fallback both failed. Not set when no tax region matches the line item, when tax wasn't requested, or on attributions written before this field was filled.
527
+ * @format GUID
528
+ */
529
+ configuredCalculatorId?: string | null;
522
530
  }
523
531
  /**
524
532
  * Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_draft-orders",
3
- "version": "1.0.199",
3
+ "version": "1.0.200",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.ecom.v1.draft_order"
51
51
  }
52
52
  },
53
- "falconPackageHash": "698d49dfa038ff5b0420f62ed46441234d7e824ed6c740d23a21d2e1"
53
+ "falconPackageHash": "7017f0b89ca8a00eabdce658fcc697bb2a708da8fb8c5e048a39356f"
54
54
  }