@final-commerce/common 2.4.1-online.1 → 2.4.1-staging2.2

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/bin/gate-done.mjs CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Runs four sweeps inside a 90-second wall-clock budget:
6
6
  *
7
- * 1. npm audit — known CVE check against the installed dependency tree
7
+ * 1. npm audit — known CVE check against the installed dependency tree (warn only)
8
8
  * 2. gitleaks — credential / secret scanning (git log + staged)
9
9
  * 3. vitest — full test suite with coverage threshold enforcement
10
10
  * 4. bundle — size-limit or custom bundle-size script (if configured)
11
11
  *
12
- * Any sweep failure exits 1, blocking the push.
12
+ * Any sweep failure except npm audit exits 1, blocking the push.
13
13
  * Budget overrun also exits 1.
14
14
  *
15
15
  * Install as Husky pre-push hook:
@@ -81,9 +81,10 @@ checkBudget('npm audit');
81
81
 
82
82
  const auditResult = run('npm audit --audit-level=high');
83
83
  if (auditResult.status !== 0) {
84
- fail('npm audit found high or critical vulnerabilities. Run `npm audit` for details.');
84
+ warn('npm audit found high or critical vulnerabilities. Run `npm audit` for details.');
85
+ } else {
86
+ ok('npm audit: no high/critical vulnerabilities.');
85
87
  }
86
- ok('npm audit: no high/critical vulnerabilities.');
87
88
 
88
89
  // ── 2. gitleaks ───────────────────────────────────────────────────────────────
89
90
 
package/dist/index.d.mts CHANGED
@@ -190,8 +190,7 @@ declare enum Platform {
190
190
  declare enum OrderPlatform {
191
191
  POS = "in-store",
192
192
  WOO_COMMERCE = "woo-commerce",
193
- PUBLIC_API = "public-api",
194
- ONLINE_STORE = "online-store"
193
+ PUBLIC_API = "public-api"
195
194
  }
196
195
  declare enum CustomerPlatform {
197
196
  POS = "in-store",
@@ -844,7 +843,7 @@ interface OrderContext {
844
843
  paymentMethods: OrderPaymentMethod[];
845
844
  refunds: OrderRefund[];
846
845
  lineItems: OrderLineItem[];
847
- reservations: OrderReservationForContext[];
846
+ reservations?: OrderReservationForContext[];
848
847
  };
849
848
  computed: {
850
849
  balance: number;
@@ -1402,9 +1401,23 @@ declare const holdExpiresAt: (rule: BookingRulesInput, now: Date) => Date;
1402
1401
 
1403
1402
  declare const ADYEN_ROLLOUT_COUNTRY_CODES: Set<string>;
1404
1403
  declare function isAdyenRolloutCountry(alpha2: string): boolean;
1405
- declare const AFFIRM_PRICE_PLANS: readonly ["core", "standard", "signature"];
1406
- type AffirmPricePlan = (typeof AFFIRM_PRICE_PLANS)[number];
1407
- declare function isAffirmPricePlan(value: unknown): value is AffirmPricePlan;
1404
+ declare const ADYEN_STORE_STATE_PROVINCE_COUNTRIES: Set<string>;
1405
+ declare function adyenStoreRequiresStateOrProvince(alpha2: string | undefined): boolean;
1406
+ declare const ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES: Set<string>;
1407
+ declare function adyenLegalEntityRequiresStateOrProvince(alpha2: string | undefined): boolean;
1408
+ declare const ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES: Set<string>;
1409
+ declare function adyenSupportsTaxNumberAbsent(alpha2: string | undefined): boolean;
1410
+ declare const ADYEN_TAX_NUMBER_FORMATS: Record<string, {
1411
+ pattern: RegExp;
1412
+ length: number;
1413
+ }>;
1414
+ declare function adyenTaxNumberFormat(alpha2: string | undefined): {
1415
+ pattern: RegExp;
1416
+ length: number;
1417
+ } | undefined;
1418
+ declare const ADYEN_TAX_NUMBER_MIN_LENGTH = 5;
1419
+ declare const ADYEN_JOB_TITLE_ASSOCIATION_TYPES: readonly string[];
1420
+ declare function adyenRequiresJobTitle(associationType: string): boolean;
1408
1421
 
1409
1422
  interface CurrencyRate {
1410
1423
  rate: number;
@@ -1417,19 +1430,4 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
1417
1430
  declare const OtherFixedRates: Record<string, CurrencyRate>;
1418
1431
  declare const COUNTRY_CURRENCIES: Record<string, string>;
1419
1432
 
1420
- declare enum ProcessorType {
1421
- FINAL_PAY = "Terminal",
1422
- TAP_TO_PAY = "TapToPay",
1423
- MOTO = "Moto",
1424
- CLOUD = "Cloud",
1425
- BLUETOOTH = "Bluetooth",
1426
- CASH = "Cash",
1427
- CUSTOM_PAY = "CustomPay",
1428
- VENDARA = "Vendara",
1429
- REDEEM = "Redeem",
1430
- INTEGRATION = "Integration",
1431
- PAYMENT_LINK = "PaymentLink",
1432
- ONLINE_PAYMENT = "OnlinePayment"
1433
- }
1434
-
1435
- export { ADYEN_ROLLOUT_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, 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_HOLD_MINUTES, 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, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifiersBreakdown, type ModifiersTuple, 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 OrderReservationForContext, 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, type PlanWindowInput, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, 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, type WeeklyHours, addAmounts, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, 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, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmPricePlan, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, presentAt, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant, windowEndsAt, withinPresence };
1433
+ export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, 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_HOLD_MINUTES, 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, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifiersBreakdown, type ModifiersTuple, 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 OrderReservationForContext, 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, type PlanWindowInput, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, 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, type WeeklyHours, addAmounts, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, 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, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, presentAt, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant, windowEndsAt, withinPresence };
package/dist/index.d.ts CHANGED
@@ -190,8 +190,7 @@ declare enum Platform {
190
190
  declare enum OrderPlatform {
191
191
  POS = "in-store",
192
192
  WOO_COMMERCE = "woo-commerce",
193
- PUBLIC_API = "public-api",
194
- ONLINE_STORE = "online-store"
193
+ PUBLIC_API = "public-api"
195
194
  }
196
195
  declare enum CustomerPlatform {
197
196
  POS = "in-store",
@@ -844,7 +843,7 @@ interface OrderContext {
844
843
  paymentMethods: OrderPaymentMethod[];
845
844
  refunds: OrderRefund[];
846
845
  lineItems: OrderLineItem[];
847
- reservations: OrderReservationForContext[];
846
+ reservations?: OrderReservationForContext[];
848
847
  };
849
848
  computed: {
850
849
  balance: number;
@@ -1402,9 +1401,23 @@ declare const holdExpiresAt: (rule: BookingRulesInput, now: Date) => Date;
1402
1401
 
1403
1402
  declare const ADYEN_ROLLOUT_COUNTRY_CODES: Set<string>;
1404
1403
  declare function isAdyenRolloutCountry(alpha2: string): boolean;
1405
- declare const AFFIRM_PRICE_PLANS: readonly ["core", "standard", "signature"];
1406
- type AffirmPricePlan = (typeof AFFIRM_PRICE_PLANS)[number];
1407
- declare function isAffirmPricePlan(value: unknown): value is AffirmPricePlan;
1404
+ declare const ADYEN_STORE_STATE_PROVINCE_COUNTRIES: Set<string>;
1405
+ declare function adyenStoreRequiresStateOrProvince(alpha2: string | undefined): boolean;
1406
+ declare const ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES: Set<string>;
1407
+ declare function adyenLegalEntityRequiresStateOrProvince(alpha2: string | undefined): boolean;
1408
+ declare const ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES: Set<string>;
1409
+ declare function adyenSupportsTaxNumberAbsent(alpha2: string | undefined): boolean;
1410
+ declare const ADYEN_TAX_NUMBER_FORMATS: Record<string, {
1411
+ pattern: RegExp;
1412
+ length: number;
1413
+ }>;
1414
+ declare function adyenTaxNumberFormat(alpha2: string | undefined): {
1415
+ pattern: RegExp;
1416
+ length: number;
1417
+ } | undefined;
1418
+ declare const ADYEN_TAX_NUMBER_MIN_LENGTH = 5;
1419
+ declare const ADYEN_JOB_TITLE_ASSOCIATION_TYPES: readonly string[];
1420
+ declare function adyenRequiresJobTitle(associationType: string): boolean;
1408
1421
 
1409
1422
  interface CurrencyRate {
1410
1423
  rate: number;
@@ -1417,19 +1430,4 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
1417
1430
  declare const OtherFixedRates: Record<string, CurrencyRate>;
1418
1431
  declare const COUNTRY_CURRENCIES: Record<string, string>;
1419
1432
 
1420
- declare enum ProcessorType {
1421
- FINAL_PAY = "Terminal",
1422
- TAP_TO_PAY = "TapToPay",
1423
- MOTO = "Moto",
1424
- CLOUD = "Cloud",
1425
- BLUETOOTH = "Bluetooth",
1426
- CASH = "Cash",
1427
- CUSTOM_PAY = "CustomPay",
1428
- VENDARA = "Vendara",
1429
- REDEEM = "Redeem",
1430
- INTEGRATION = "Integration",
1431
- PAYMENT_LINK = "PaymentLink",
1432
- ONLINE_PAYMENT = "OnlinePayment"
1433
- }
1434
-
1435
- export { ADYEN_ROLLOUT_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, 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_HOLD_MINUTES, 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, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifiersBreakdown, type ModifiersTuple, 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 OrderReservationForContext, 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, type PlanWindowInput, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, 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, type WeeklyHours, addAmounts, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, 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, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmPricePlan, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, presentAt, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant, windowEndsAt, withinPresence };
1433
+ export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, 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_HOLD_MINUTES, 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, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifiersBreakdown, type ModifiersTuple, 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 OrderReservationForContext, 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, type PlanWindowInput, Platform, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, 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, type WeeklyHours, addAmounts, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, 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, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isConditionOperator, isFulfillmentState, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, presentAt, removeFragment, resolveFamily, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, violatesFinancialInvariant, windowEndsAt, withinPresence };
package/dist/index.js CHANGED
@@ -19,8 +19,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // index.ts
20
20
  var index_exports = {};
21
21
  __export(index_exports, {
22
+ ADYEN_JOB_TITLE_ASSOCIATION_TYPES: () => ADYEN_JOB_TITLE_ASSOCIATION_TYPES,
23
+ ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES: () => ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES,
24
+ ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES: () => ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES,
22
25
  ADYEN_ROLLOUT_COUNTRY_CODES: () => ADYEN_ROLLOUT_COUNTRY_CODES,
23
- AFFIRM_PRICE_PLANS: () => AFFIRM_PRICE_PLANS,
26
+ ADYEN_STORE_STATE_PROVINCE_COUNTRIES: () => ADYEN_STORE_STATE_PROVINCE_COUNTRIES,
27
+ ADYEN_TAX_NUMBER_FORMATS: () => ADYEN_TAX_NUMBER_FORMATS,
28
+ ADYEN_TAX_NUMBER_MIN_LENGTH: () => ADYEN_TAX_NUMBER_MIN_LENGTH,
24
29
  AttributeType: () => AttributeType,
25
30
  BookingRatePeriod: () => BookingRatePeriod,
26
31
  BookingResourceKind: () => BookingResourceKind,
@@ -73,7 +78,6 @@ __export(index_exports, {
73
78
  PricingLevel: () => PricingLevel,
74
79
  PricingPlanEnum: () => PricingPlanEnum,
75
80
  PricingRegionEnum: () => PricingRegionEnum,
76
- ProcessorType: () => ProcessorType,
77
81
  ProductStatus: () => ProductStatus,
78
82
  ProductType: () => ProductType,
79
83
  PublicationAvailability: () => PublicationAvailability,
@@ -99,6 +103,11 @@ __export(index_exports, {
99
103
  TopMetericsSort: () => TopMetericsSort,
100
104
  UserTypes: () => UserTypes,
101
105
  addAmounts: () => addAmounts,
106
+ adyenLegalEntityRequiresStateOrProvince: () => adyenLegalEntityRequiresStateOrProvince,
107
+ adyenRequiresJobTitle: () => adyenRequiresJobTitle,
108
+ adyenStoreRequiresStateOrProvince: () => adyenStoreRequiresStateOrProvince,
109
+ adyenSupportsTaxNumberAbsent: () => adyenSupportsTaxNumberAbsent,
110
+ adyenTaxNumberFormat: () => adyenTaxNumberFormat,
102
111
  amountToString: () => amountToString,
103
112
  assertUnitSane: () => assertUnitSane,
104
113
  availableIn: () => availableIn,
@@ -150,7 +159,6 @@ __export(index_exports, {
150
159
  holdExpiresAt: () => holdExpiresAt,
151
160
  inferStatesFromLegacyStatus: () => inferStatesFromLegacyStatus,
152
161
  isAdyenRolloutCountry: () => isAdyenRolloutCountry,
153
- isAffirmPricePlan: () => isAffirmPricePlan,
154
162
  isConditionOperator: () => isConditionOperator,
155
163
  isFulfillmentState: () => isFulfillmentState,
156
164
  isPaymentState: () => isPaymentState,
@@ -394,7 +402,6 @@ var OrderPlatform = /* @__PURE__ */ ((OrderPlatform2) => {
394
402
  OrderPlatform2["POS"] = "in-store";
395
403
  OrderPlatform2["WOO_COMMERCE"] = "woo-commerce";
396
404
  OrderPlatform2["PUBLIC_API"] = "public-api";
397
- OrderPlatform2["ONLINE_STORE"] = "online-store";
398
405
  return OrderPlatform2;
399
406
  })(OrderPlatform || {});
400
407
  var CustomerPlatform = /* @__PURE__ */ ((CustomerPlatform2) => {
@@ -3197,7 +3204,9 @@ function buildGrid(rule, timeZone, from, to, now, busy = []) {
3197
3204
  const start = startAt.getTime();
3198
3205
  if (start < askedFrom || start >= askedTo) return false;
3199
3206
  if (start < notBefore || start > notAfter) return false;
3200
- return !blocked.some(({ from: blockFrom, to: blockTo }) => start < blockTo && bufferEndAt.getTime() > blockFrom);
3207
+ return !blocked.some(
3208
+ ({ from: blockFrom, to: blockTo }) => start < blockTo && bufferEndAt.getTime() > blockFrom
3209
+ );
3201
3210
  }).sort((first, second) => +first.startAt - +second.startAt);
3202
3211
  }
3203
3212
  function slotsForWindow(grid, startAt, endAt) {
@@ -3316,7 +3325,14 @@ function buildAvailability({
3316
3325
  for (const slot of slots2) {
3317
3326
  const { taken, foreignProductId } = occupancyIn(mine, productId, slot.startAt, slot.bufferEndAt, shared);
3318
3327
  const free = foreignProductId ? 0 : Math.max(capacity - taken, 0);
3319
- const entry = byInstant.get(+slot.startAt) ?? { ...slot, capacity: 0, booked: 0, free: 0, resources: [], dayKey: shopDayKey(slot.startAt, resource.timeZone) };
3328
+ const entry = byInstant.get(+slot.startAt) ?? {
3329
+ ...slot,
3330
+ capacity: 0,
3331
+ booked: 0,
3332
+ free: 0,
3333
+ resources: [],
3334
+ dayKey: shopDayKey(slot.startAt, resource.timeZone)
3335
+ };
3320
3336
  entry.capacity += capacity;
3321
3337
  entry.booked += foreignProductId ? capacity : taken;
3322
3338
  entry.free += free;
@@ -3394,31 +3410,38 @@ var ADYEN_ROLLOUT_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
3394
3410
  function isAdyenRolloutCountry(alpha2) {
3395
3411
  return ADYEN_ROLLOUT_COUNTRY_CODES.has(alpha2);
3396
3412
  }
3397
- var AFFIRM_PRICE_PLANS = ["core", "standard", "signature"];
3398
- function isAffirmPricePlan(value) {
3399
- return typeof value === "string" && AFFIRM_PRICE_PLANS.includes(value);
3413
+ var ADYEN_STORE_STATE_PROVINCE_COUNTRIES = /* @__PURE__ */ new Set(["AU", "BR", "CA", "IN", "MX", "NZ", "US"]);
3414
+ function adyenStoreRequiresStateOrProvince(alpha2) {
3415
+ return !!alpha2 && ADYEN_STORE_STATE_PROVINCE_COUNTRIES.has(alpha2);
3416
+ }
3417
+ var ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES = /* @__PURE__ */ new Set(["AU", "BR", "CA", "IN", "MX", "NZ", "US"]);
3418
+ function adyenLegalEntityRequiresStateOrProvince(alpha2) {
3419
+ return !!alpha2 && ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES.has(alpha2);
3420
+ }
3421
+ var ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES = /* @__PURE__ */ new Set(["CA"]);
3422
+ function adyenSupportsTaxNumberAbsent(alpha2) {
3423
+ return !!alpha2 && !ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES.has(alpha2);
3424
+ }
3425
+ var ADYEN_TAX_NUMBER_FORMATS = {
3426
+ CA: { pattern: /^\d{9}$/, length: 9 }
3427
+ };
3428
+ function adyenTaxNumberFormat(alpha2) {
3429
+ return alpha2 ? ADYEN_TAX_NUMBER_FORMATS[alpha2] : void 0;
3430
+ }
3431
+ var ADYEN_TAX_NUMBER_MIN_LENGTH = 5;
3432
+ var ADYEN_JOB_TITLE_ASSOCIATION_TYPES = ["signatory", "uboThroughControl"];
3433
+ function adyenRequiresJobTitle(associationType) {
3434
+ return ADYEN_JOB_TITLE_ASSOCIATION_TYPES.includes(associationType);
3400
3435
  }
3401
-
3402
- // pos-types/active/ProcessorType.ts
3403
- var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
3404
- ProcessorType2["FINAL_PAY"] = "Terminal";
3405
- ProcessorType2["TAP_TO_PAY"] = "TapToPay";
3406
- ProcessorType2["MOTO"] = "Moto";
3407
- ProcessorType2["CLOUD"] = "Cloud";
3408
- ProcessorType2["BLUETOOTH"] = "Bluetooth";
3409
- ProcessorType2["CASH"] = "Cash";
3410
- ProcessorType2["CUSTOM_PAY"] = "CustomPay";
3411
- ProcessorType2["VENDARA"] = "Vendara";
3412
- ProcessorType2["REDEEM"] = "Redeem";
3413
- ProcessorType2["INTEGRATION"] = "Integration";
3414
- ProcessorType2["PAYMENT_LINK"] = "PaymentLink";
3415
- ProcessorType2["ONLINE_PAYMENT"] = "OnlinePayment";
3416
- return ProcessorType2;
3417
- })(ProcessorType || {});
3418
3436
  // Annotate the CommonJS export names for ESM import in node:
3419
3437
  0 && (module.exports = {
3438
+ ADYEN_JOB_TITLE_ASSOCIATION_TYPES,
3439
+ ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES,
3440
+ ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES,
3420
3441
  ADYEN_ROLLOUT_COUNTRY_CODES,
3421
- AFFIRM_PRICE_PLANS,
3442
+ ADYEN_STORE_STATE_PROVINCE_COUNTRIES,
3443
+ ADYEN_TAX_NUMBER_FORMATS,
3444
+ ADYEN_TAX_NUMBER_MIN_LENGTH,
3422
3445
  AttributeType,
3423
3446
  BookingRatePeriod,
3424
3447
  BookingResourceKind,
@@ -3471,7 +3494,6 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
3471
3494
  PricingLevel,
3472
3495
  PricingPlanEnum,
3473
3496
  PricingRegionEnum,
3474
- ProcessorType,
3475
3497
  ProductStatus,
3476
3498
  ProductType,
3477
3499
  PublicationAvailability,
@@ -3497,6 +3519,11 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
3497
3519
  TopMetericsSort,
3498
3520
  UserTypes,
3499
3521
  addAmounts,
3522
+ adyenLegalEntityRequiresStateOrProvince,
3523
+ adyenRequiresJobTitle,
3524
+ adyenStoreRequiresStateOrProvince,
3525
+ adyenSupportsTaxNumberAbsent,
3526
+ adyenTaxNumberFormat,
3500
3527
  amountToString,
3501
3528
  assertUnitSane,
3502
3529
  availableIn,
@@ -3548,7 +3575,6 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
3548
3575
  holdExpiresAt,
3549
3576
  inferStatesFromLegacyStatus,
3550
3577
  isAdyenRolloutCountry,
3551
- isAffirmPricePlan,
3552
3578
  isConditionOperator,
3553
3579
  isFulfillmentState,
3554
3580
  isPaymentState,