@final-commerce/common 2.6.0-staging.2 → 2.6.0-staging.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
@@ -237,6 +237,7 @@ var InventorySpecificActionType = /* @__PURE__ */ ((InventorySpecificActionType2
237
237
  InventorySpecificActionType2["PO_RECEIVED"] = "PO_RECEIVED";
238
238
  InventorySpecificActionType2["EXTERNAL_SALE"] = "EXTERNAL_SALE";
239
239
  InventorySpecificActionType2["EXTERNAL_RESTOCK"] = "EXTERNAL_RESTOCK";
240
+ InventorySpecificActionType2["CUSTOM"] = "CUSTOM";
240
241
  return InventorySpecificActionType2;
241
242
  })(InventorySpecificActionType || {});
242
243
  var ExtensionCategory = /* @__PURE__ */ ((ExtensionCategory2) => {
@@ -3515,9 +3516,33 @@ var ADYEN_ROLLOUT_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
3515
3516
  function isAdyenRolloutCountry(alpha2) {
3516
3517
  return ADYEN_ROLLOUT_COUNTRY_CODES.has(alpha2);
3517
3518
  }
3519
+ var AFFIRM_PRICE_PLANS = ["core", "standard", "signature"];
3520
+ function isAffirmPricePlan(value) {
3521
+ return typeof value === "string" && AFFIRM_PRICE_PLANS.includes(value);
3522
+ }
3523
+ var AFFIRM_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
3524
+ function isAffirmCountry(alpha2) {
3525
+ return !!alpha2 && AFFIRM_COUNTRY_CODES.has(alpha2.toUpperCase());
3526
+ }
3527
+ var BNPL_METHOD_STATUS = {
3528
+ ACTIVE: "active",
3529
+ PENDING: "pending",
3530
+ UNAVAILABLE: "unavailable",
3531
+ UNKNOWN: "unknown"
3532
+ };
3533
+ var BNPL_SKIP_REASON = {
3534
+ PENDING: "pending",
3535
+ NO_SUPPORT_EMAIL: "no_support_email",
3536
+ NO_CURRENCY: "no_currency",
3537
+ NO_BUSINESS_LINE: "no_business_line"
3538
+ };
3518
3539
  export {
3519
3540
  ADYEN_ROLLOUT_COUNTRY_CODES,
3541
+ AFFIRM_COUNTRY_CODES,
3542
+ AFFIRM_PRICE_PLANS,
3520
3543
  AttributeType,
3544
+ BNPL_METHOD_STATUS,
3545
+ BNPL_SKIP_REASON,
3521
3546
  BookingRatePeriod,
3522
3547
  BookingResourceKind,
3523
3548
  BookingResourceStatus,
@@ -3655,6 +3680,8 @@ export {
3655
3680
  holdExpiresAt,
3656
3681
  inferStatesFromLegacyStatus,
3657
3682
  isAdyenRolloutCountry,
3683
+ isAffirmCountry,
3684
+ isAffirmPricePlan,
3658
3685
  isChoiceAvailableAtOutlet,
3659
3686
  isConditionOperator,
3660
3687
  isFulfillmentState,