@final-commerce/common 2.8.1-online.2 → 2.8.1-online.3

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/dist/index.mjs CHANGED
@@ -531,6 +531,36 @@ var ShippingZoneError = /* @__PURE__ */ ((ShippingZoneError2) => {
531
531
  return ShippingZoneError2;
532
532
  })(ShippingZoneError || {});
533
533
 
534
+ // enums/tax.enum.ts
535
+ var TaxProductType = /* @__PURE__ */ ((TaxProductType2) => {
536
+ TaxProductType2["STANDARD"] = "standard";
537
+ TaxProductType2["BASIC_FOOD"] = "basic_food";
538
+ TaxProductType2["CHILDRENS_CLOTHING"] = "childrens_clothing";
539
+ TaxProductType2["EXEMPT"] = "exempt";
540
+ return TaxProductType2;
541
+ })(TaxProductType || {});
542
+ var TaxRegistrationKind = /* @__PURE__ */ ((TaxRegistrationKind2) => {
543
+ TaxRegistrationKind2["GST_HST"] = "GST_HST";
544
+ TaxRegistrationKind2["PST"] = "PST";
545
+ TaxRegistrationKind2["QST"] = "QST";
546
+ return TaxRegistrationKind2;
547
+ })(TaxRegistrationKind || {});
548
+ var TaxSource = /* @__PURE__ */ ((TaxSource2) => {
549
+ TaxSource2["MERCHANT"] = "merchant";
550
+ TaxSource2["AUTOMATIC"] = "automatic";
551
+ return TaxSource2;
552
+ })(TaxSource || {});
553
+ var OutOfProvinceTaxes = /* @__PURE__ */ ((OutOfProvinceTaxes2) => {
554
+ OutOfProvinceTaxes2["AUTOMATIC"] = "automatic";
555
+ OutOfProvinceTaxes2["HOME"] = "home";
556
+ return OutOfProvinceTaxes2;
557
+ })(OutOfProvinceTaxes || {});
558
+ var TaxWarningCode = /* @__PURE__ */ ((TaxWarningCode2) => {
559
+ TaxWarningCode2["NOT_REGISTERED"] = "NOT_REGISTERED";
560
+ TaxWarningCode2["NO_RULES_FOR_PLACE"] = "NO_RULES_FOR_PLACE";
561
+ return TaxWarningCode2;
562
+ })(TaxWarningCode || {});
563
+
534
564
  // utils/currency.util.ts
535
565
  var CURRENCY_CONFIG = {
536
566
  // Major currencies with 2 decimal places
@@ -3966,6 +3996,13 @@ function tiersAreValid(option) {
3966
3996
  return tiers.every((tier) => Number.isInteger(tier.from) && tier.from > 0 && isAmount(tier.price)) && new Set(froms).size === froms.length;
3967
3997
  }
3968
3998
 
3999
+ // tax/registrations.ts
4000
+ var TAX_REGISTRATION_PLACES = {
4001
+ ["GST_HST" /* GST_HST */]: ["CA"],
4002
+ ["PST" /* PST */]: ["CA-BC", "CA-SK", "CA-MB"],
4003
+ ["QST" /* QST */]: ["CA-QC"]
4004
+ };
4005
+
3969
4006
  // constants/adyen.constants.ts
3970
4007
  var ADYEN_ROLLOUT_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
3971
4008
  function isAdyenRolloutCountry(alpha2) {
@@ -4117,6 +4154,7 @@ export {
4117
4154
  ORDER_STATE_TOPIC,
4118
4155
  OrderPlatform,
4119
4156
  OtherFixedRates,
4157
+ OutOfProvinceTaxes,
4120
4158
  OwnerType,
4121
4159
  PATH_MODES,
4122
4160
  PAYMENT_CHANNELS,
@@ -4157,6 +4195,11 @@ export {
4157
4195
  StationStatus,
4158
4196
  StripeCurrencyCode,
4159
4197
  StripeStatus,
4198
+ TAX_REGISTRATION_PLACES,
4199
+ TaxProductType,
4200
+ TaxRegistrationKind,
4201
+ TaxSource,
4202
+ TaxWarningCode,
4160
4203
  TimePeriod,
4161
4204
  TopMetericsSort,
4162
4205
  UserTypes,