@final-commerce/common 2.2.3-staging3.3 → 2.2.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.d.mts +4 -19
- package/dist/index.d.ts +4 -19
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +4 -87
- package/dist/pos-types/index.d.ts +4 -87
- 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.d.mts
CHANGED
|
@@ -222,7 +222,9 @@ declare enum InventorySpecificActionType {
|
|
|
222
222
|
TRANSFER = "TRANSFER",
|
|
223
223
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
224
224
|
APPLIED_FROM_WOO = "APPLIED_FROM_WOO",
|
|
225
|
-
PO_RECEIVED = "PO_RECEIVED"
|
|
225
|
+
PO_RECEIVED = "PO_RECEIVED",
|
|
226
|
+
EXTERNAL_SALE = "EXTERNAL_SALE",
|
|
227
|
+
EXTERNAL_RESTOCK = "EXTERNAL_RESTOCK"
|
|
226
228
|
}
|
|
227
229
|
declare enum ExtensionCategory {
|
|
228
230
|
SYNC = "sync",
|
|
@@ -434,15 +436,6 @@ interface FeesBreakdown {
|
|
|
434
436
|
refundedTaxableFees?: number;
|
|
435
437
|
refundedNonTaxableFees?: number;
|
|
436
438
|
}
|
|
437
|
-
interface ModifiersBreakdown {
|
|
438
|
-
grossTotal: number;
|
|
439
|
-
refundTotal: number;
|
|
440
|
-
netTotal: number;
|
|
441
|
-
taxableModifiers?: number;
|
|
442
|
-
nonTaxableModifiers?: number;
|
|
443
|
-
refundedTaxableModifiers?: number;
|
|
444
|
-
refundedNonTaxableModifiers?: number;
|
|
445
|
-
}
|
|
446
439
|
interface ProductDiscountBucket {
|
|
447
440
|
grossProductDiscounts: number;
|
|
448
441
|
refundedProductDiscounts: number;
|
|
@@ -465,11 +458,6 @@ interface FeesTuple {
|
|
|
465
458
|
refundedFees: number;
|
|
466
459
|
netFees: number;
|
|
467
460
|
}
|
|
468
|
-
interface ModifiersTuple {
|
|
469
|
-
grossModifiers: number;
|
|
470
|
-
refundedModifiers: number;
|
|
471
|
-
netModifiers: number;
|
|
472
|
-
}
|
|
473
461
|
interface DiscountsTuple {
|
|
474
462
|
grossDiscounts: number;
|
|
475
463
|
refundedDiscounts: number;
|
|
@@ -495,7 +483,6 @@ interface SalesSummary {
|
|
|
495
483
|
discounts: DiscountsTuple;
|
|
496
484
|
refundsItems: number;
|
|
497
485
|
fees: FeesTuple;
|
|
498
|
-
modifiers?: ModifiersTuple;
|
|
499
486
|
taxes?: TaxesTuple;
|
|
500
487
|
totalSales: number;
|
|
501
488
|
tips: TipsTuple;
|
|
@@ -557,7 +544,6 @@ interface SettlementBreakdown {
|
|
|
557
544
|
interface RefundsBreakdown {
|
|
558
545
|
itemsRefunded: number;
|
|
559
546
|
feesReversed: number;
|
|
560
|
-
modifiersReversed?: number;
|
|
561
547
|
discountsReversed: number;
|
|
562
548
|
taxRefunded: number;
|
|
563
549
|
totalRefunded: number;
|
|
@@ -613,7 +599,6 @@ interface EndOfSessionReport {
|
|
|
613
599
|
staffSales: StaffSales;
|
|
614
600
|
discountsBreakdown: DiscountsBreakdown;
|
|
615
601
|
feesBreakdown: FeesBreakdown;
|
|
616
|
-
modifiersBreakdown?: ModifiersBreakdown;
|
|
617
602
|
tipsBreakdown?: TipsBreakdown;
|
|
618
603
|
sessionNumber?: string;
|
|
619
604
|
stationName?: string;
|
|
@@ -1212,4 +1197,4 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
|
|
|
1212
1197
|
declare const OtherFixedRates: Record<string, CurrencyRate>;
|
|
1213
1198
|
declare const COUNTRY_CURRENCIES: Record<string, string>;
|
|
1214
1199
|
|
|
1215
|
-
export { ADYEN_ROLLOUT_COUNTRY_CODES, type Amount, AttributeType, type AvailableTransition, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, CompanyType, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, type EndOfSessionReport, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject,
|
|
1200
|
+
export { ADYEN_ROLLOUT_COUNTRY_CODES, type Amount, AttributeType, type AvailableTransition, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, CompanyType, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, type EndOfSessionReport, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderStateEventPayload, type OrderStateWritable, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, addAmounts, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, signReportForDisplay, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant };
|
package/dist/index.d.ts
CHANGED
|
@@ -222,7 +222,9 @@ declare enum InventorySpecificActionType {
|
|
|
222
222
|
TRANSFER = "TRANSFER",
|
|
223
223
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
224
224
|
APPLIED_FROM_WOO = "APPLIED_FROM_WOO",
|
|
225
|
-
PO_RECEIVED = "PO_RECEIVED"
|
|
225
|
+
PO_RECEIVED = "PO_RECEIVED",
|
|
226
|
+
EXTERNAL_SALE = "EXTERNAL_SALE",
|
|
227
|
+
EXTERNAL_RESTOCK = "EXTERNAL_RESTOCK"
|
|
226
228
|
}
|
|
227
229
|
declare enum ExtensionCategory {
|
|
228
230
|
SYNC = "sync",
|
|
@@ -434,15 +436,6 @@ interface FeesBreakdown {
|
|
|
434
436
|
refundedTaxableFees?: number;
|
|
435
437
|
refundedNonTaxableFees?: number;
|
|
436
438
|
}
|
|
437
|
-
interface ModifiersBreakdown {
|
|
438
|
-
grossTotal: number;
|
|
439
|
-
refundTotal: number;
|
|
440
|
-
netTotal: number;
|
|
441
|
-
taxableModifiers?: number;
|
|
442
|
-
nonTaxableModifiers?: number;
|
|
443
|
-
refundedTaxableModifiers?: number;
|
|
444
|
-
refundedNonTaxableModifiers?: number;
|
|
445
|
-
}
|
|
446
439
|
interface ProductDiscountBucket {
|
|
447
440
|
grossProductDiscounts: number;
|
|
448
441
|
refundedProductDiscounts: number;
|
|
@@ -465,11 +458,6 @@ interface FeesTuple {
|
|
|
465
458
|
refundedFees: number;
|
|
466
459
|
netFees: number;
|
|
467
460
|
}
|
|
468
|
-
interface ModifiersTuple {
|
|
469
|
-
grossModifiers: number;
|
|
470
|
-
refundedModifiers: number;
|
|
471
|
-
netModifiers: number;
|
|
472
|
-
}
|
|
473
461
|
interface DiscountsTuple {
|
|
474
462
|
grossDiscounts: number;
|
|
475
463
|
refundedDiscounts: number;
|
|
@@ -495,7 +483,6 @@ interface SalesSummary {
|
|
|
495
483
|
discounts: DiscountsTuple;
|
|
496
484
|
refundsItems: number;
|
|
497
485
|
fees: FeesTuple;
|
|
498
|
-
modifiers?: ModifiersTuple;
|
|
499
486
|
taxes?: TaxesTuple;
|
|
500
487
|
totalSales: number;
|
|
501
488
|
tips: TipsTuple;
|
|
@@ -557,7 +544,6 @@ interface SettlementBreakdown {
|
|
|
557
544
|
interface RefundsBreakdown {
|
|
558
545
|
itemsRefunded: number;
|
|
559
546
|
feesReversed: number;
|
|
560
|
-
modifiersReversed?: number;
|
|
561
547
|
discountsReversed: number;
|
|
562
548
|
taxRefunded: number;
|
|
563
549
|
totalRefunded: number;
|
|
@@ -613,7 +599,6 @@ interface EndOfSessionReport {
|
|
|
613
599
|
staffSales: StaffSales;
|
|
614
600
|
discountsBreakdown: DiscountsBreakdown;
|
|
615
601
|
feesBreakdown: FeesBreakdown;
|
|
616
|
-
modifiersBreakdown?: ModifiersBreakdown;
|
|
617
602
|
tipsBreakdown?: TipsBreakdown;
|
|
618
603
|
sessionNumber?: string;
|
|
619
604
|
stationName?: string;
|
|
@@ -1212,4 +1197,4 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
|
|
|
1212
1197
|
declare const OtherFixedRates: Record<string, CurrencyRate>;
|
|
1213
1198
|
declare const COUNTRY_CURRENCIES: Record<string, string>;
|
|
1214
1199
|
|
|
1215
|
-
export { ADYEN_ROLLOUT_COUNTRY_CODES, type Amount, AttributeType, type AvailableTransition, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, CompanyType, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, type EndOfSessionReport, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject,
|
|
1200
|
+
export { ADYEN_ROLLOUT_COUNTRY_CODES, type Amount, AttributeType, type AvailableTransition, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, CompanyType, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, type EndOfSessionReport, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderStateEventPayload, type OrderStateWritable, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, addAmounts, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, signReportForDisplay, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant };
|
package/dist/index.js
CHANGED
|
@@ -407,6 +407,8 @@ var InventorySpecificActionType = /* @__PURE__ */ ((InventorySpecificActionType2
|
|
|
407
407
|
InventorySpecificActionType2["BULK_RECOUNT"] = "BULK_RECOUNT";
|
|
408
408
|
InventorySpecificActionType2["APPLIED_FROM_WOO"] = "APPLIED_FROM_WOO";
|
|
409
409
|
InventorySpecificActionType2["PO_RECEIVED"] = "PO_RECEIVED";
|
|
410
|
+
InventorySpecificActionType2["EXTERNAL_SALE"] = "EXTERNAL_SALE";
|
|
411
|
+
InventorySpecificActionType2["EXTERNAL_RESTOCK"] = "EXTERNAL_RESTOCK";
|
|
410
412
|
return InventorySpecificActionType2;
|
|
411
413
|
})(InventorySpecificActionType || {});
|
|
412
414
|
var ExtensionCategory = /* @__PURE__ */ ((ExtensionCategory2) => {
|
|
@@ -1415,8 +1417,6 @@ var REPORT_NEGATE_PATHS = /* @__PURE__ */ new Set([
|
|
|
1415
1417
|
// Fees breakdown — refunded magnitudes are money flowing back out
|
|
1416
1418
|
"feesBreakdown.productFee.refundedProductFees",
|
|
1417
1419
|
"feesBreakdown.cartFee.refundedCartFees",
|
|
1418
|
-
// Modifiers breakdown — refunded magnitudes are money flowing back out
|
|
1419
|
-
"modifiersBreakdown.refundTotal",
|
|
1420
1420
|
// Discounts breakdown — refunded magnitudes reverse discount reductions
|
|
1421
1421
|
"discountsBreakdown.productDiscounts.refundedProductDiscounts",
|
|
1422
1422
|
"discountsBreakdown.cartDiscounts.refundedCartDiscounts",
|