@final-commerce/common 2.2.4-online.2 → 2.2.4-online.4
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.d.mts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +84 -1
- package/dist/pos-types/index.d.ts +84 -1
- package/dist/pos-types/index.js.map +1 -1
- package/dist/pos-types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1246,6 +1246,8 @@ var REPORT_NEGATE_PATHS = /* @__PURE__ */ new Set([
|
|
|
1246
1246
|
// Fees breakdown — refunded magnitudes are money flowing back out
|
|
1247
1247
|
"feesBreakdown.productFee.refundedProductFees",
|
|
1248
1248
|
"feesBreakdown.cartFee.refundedCartFees",
|
|
1249
|
+
// Modifiers breakdown — refunded magnitudes are money flowing back out
|
|
1250
|
+
"modifiersBreakdown.refundTotal",
|
|
1249
1251
|
// Discounts breakdown — refunded magnitudes reverse discount reductions
|
|
1250
1252
|
"discountsBreakdown.productDiscounts.refundedProductDiscounts",
|
|
1251
1253
|
"discountsBreakdown.cartDiscounts.refundedCartDiscounts",
|
|
@@ -2764,6 +2766,10 @@ var ADYEN_ROLLOUT_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
|
|
|
2764
2766
|
function isAdyenRolloutCountry(alpha2) {
|
|
2765
2767
|
return ADYEN_ROLLOUT_COUNTRY_CODES.has(alpha2);
|
|
2766
2768
|
}
|
|
2769
|
+
var AFFIRM_PRICE_PLANS = ["core", "standard", "signature"];
|
|
2770
|
+
function isAffirmPricePlan(value) {
|
|
2771
|
+
return typeof value === "string" && AFFIRM_PRICE_PLANS.includes(value);
|
|
2772
|
+
}
|
|
2767
2773
|
|
|
2768
2774
|
// pos-types/active/ProcessorType.ts
|
|
2769
2775
|
var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
|
|
@@ -2783,6 +2789,7 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
|
|
|
2783
2789
|
})(ProcessorType || {});
|
|
2784
2790
|
export {
|
|
2785
2791
|
ADYEN_ROLLOUT_COUNTRY_CODES,
|
|
2792
|
+
AFFIRM_PRICE_PLANS,
|
|
2786
2793
|
AttributeType,
|
|
2787
2794
|
CONDITION_OPERATORS,
|
|
2788
2795
|
COUNTRY_CURRENCIES,
|
|
@@ -2901,6 +2908,7 @@ export {
|
|
|
2901
2908
|
getTotalCollected,
|
|
2902
2909
|
inferStatesFromLegacyStatus,
|
|
2903
2910
|
isAdyenRolloutCountry,
|
|
2911
|
+
isAffirmPricePlan,
|
|
2904
2912
|
isConditionOperator,
|
|
2905
2913
|
isFulfillmentState,
|
|
2906
2914
|
isPaymentState,
|