@final-commerce/common 2.11.1-online.2 → 2.11.1

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.ts CHANGED
@@ -490,25 +490,6 @@ declare enum ShippingZoneError {
490
490
  MISSING_NAME = "MISSING_NAME"
491
491
  }
492
492
 
493
- declare enum TaxRegistrationKind {
494
- GST_HST = "GST_HST",
495
- PST = "PST",
496
- QST = "QST"
497
- }
498
- declare enum TaxSource {
499
- MERCHANT = "merchant",
500
- AUTOMATIC = "automatic"
501
- }
502
- declare enum OutOfProvinceTaxes {
503
- AUTOMATIC = "automatic",
504
- HOME = "home"
505
- }
506
- declare enum TaxWarningCode {
507
- NOT_REGISTERED = "NOT_REGISTERED",
508
- NO_RULES_FOR_PLACE = "NO_RULES_FOR_PLACE",
509
- NO_TABLE = "NO_TABLE"
510
- }
511
-
512
493
  declare enum SalesLineAction {
513
494
  SALE = "sale",
514
495
  REFUND = "refund"
@@ -1917,201 +1898,6 @@ interface ShippingZoneProblem {
1917
1898
  }
1918
1899
  declare function validateShippingZone(zone: ShippingZoneRule): ShippingZoneProblem[];
1919
1900
 
1920
- interface TaxRegistration {
1921
- kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
1922
- place: string;
1923
- number?: string | null;
1924
- from?: string | null;
1925
- }
1926
-
1927
- declare const STANDARD_TAX_TYPE = "standard";
1928
- type AutomaticTaxRowStatus = 'confirmed' | 'to_confirm';
1929
- interface AutomaticTaxTypeRow {
1930
- key: string;
1931
- name: string;
1932
- description?: string | null;
1933
- sortOrder: number;
1934
- active: boolean;
1935
- }
1936
- interface AutomaticTaxPart {
1937
- code: string;
1938
- name: string;
1939
- rate: string;
1940
- level: 'federal' | 'provincial';
1941
- }
1942
- interface AutomaticTaxRateRow {
1943
- code: string;
1944
- name: string;
1945
- kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
1946
- places: string[];
1947
- rate: string;
1948
- from?: string | null;
1949
- to?: string | null;
1950
- order: number;
1951
- compound: boolean;
1952
- registrationPlace: string;
1953
- harmonized: boolean;
1954
- parts?: AutomaticTaxPart[] | null;
1955
- sourceUrl?: string | null;
1956
- status: AutomaticTaxRowStatus;
1957
- }
1958
- interface AutomaticTaxRuleRow {
1959
- taxType: string;
1960
- codes: string[];
1961
- rate: string;
1962
- from?: string | null;
1963
- to?: string | null;
1964
- sourceUrl?: string | null;
1965
- status: AutomaticTaxRowStatus;
1966
- note?: string | null;
1967
- }
1968
- interface AutomaticTaxTable {
1969
- version: string;
1970
- types: AutomaticTaxTypeRow[];
1971
- rates: AutomaticTaxRateRow[];
1972
- rules: AutomaticTaxRuleRow[];
1973
- }
1974
- declare function automaticTaxTableVersion(table: Omit<AutomaticTaxTable, 'version'>): string;
1975
- declare function buildAutomaticTaxTable(rows: {
1976
- types: readonly AutomaticTaxTypeRow[];
1977
- rates: readonly AutomaticTaxRateRow[];
1978
- rules: readonly AutomaticTaxRuleRow[];
1979
- }): AutomaticTaxTable;
1980
- declare function registrationPlacesByKind(rates: readonly AutomaticTaxRateRow[]): ReadonlyMap<string, readonly string[]>;
1981
-
1982
- declare function sha1Hex(text: string): string;
1983
-
1984
- interface CartAddress {
1985
- firstName?: string;
1986
- lastName?: string;
1987
- address1?: string;
1988
- address2?: string;
1989
- city?: string;
1990
- state?: string;
1991
- postCode?: string;
1992
- country?: string;
1993
- fromCustomer?: boolean;
1994
- }
1995
-
1996
- type ShopperScope = {
1997
- kind: 'all';
1998
- } | {
1999
- kind: 'store';
2000
- companyId: string;
2001
- };
2002
- interface ShopperIdentity {
2003
- id: string;
2004
- emails: string[];
2005
- scope: ShopperScope;
2006
- }
2007
- type ShopperOrderStatus = 'paid' | 'partially_refunded' | 'refunded' | 'cancelled';
2008
- interface ShopperStoreRef {
2009
- companyId: string;
2010
- name: string;
2011
- logo: string | null;
2012
- }
2013
- interface ShopperOrderRow {
2014
- orderId: string;
2015
- receiptId: string;
2016
- placedAt: string;
2017
- store: ShopperStoreRef;
2018
- status: ShopperOrderStatus;
2019
- total: number;
2020
- currency: CurrencyCode | null;
2021
- itemCount: number;
2022
- }
2023
- interface ShopperOrderItem {
2024
- lineId: string;
2025
- name: string;
2026
- variant: string | null;
2027
- quantity: number;
2028
- total: number;
2029
- }
2030
- interface ShopperOrderTotals {
2031
- subtotal: number;
2032
- discount: number;
2033
- tax: number;
2034
- shipping: number;
2035
- refunded: number;
2036
- }
2037
- interface ShopperCard {
2038
- brand: string;
2039
- lastFour: string;
2040
- }
2041
- interface ShopperOrderDetail extends ShopperOrderRow {
2042
- items: ShopperOrderItem[];
2043
- totals: ShopperOrderTotals;
2044
- card: ShopperCard | null;
2045
- delivery: {
2046
- type: 'pickup' | 'shipping';
2047
- place: string | null;
2048
- } | null;
2049
- returnRequestedAt: string | null;
2050
- }
2051
- interface ShopperPaymentMethod {
2052
- id: string;
2053
- brand: string;
2054
- lastFour: string;
2055
- expiryMonth: string;
2056
- expiryYear: string;
2057
- holderName: string | null;
2058
- isDefault: boolean;
2059
- }
2060
- interface ShopperStore extends ShopperStoreRef {
2061
- city: string | null;
2062
- email: string | null;
2063
- phone: string | null;
2064
- website: string | null;
2065
- returnPolicy: string | null;
2066
- news: boolean;
2067
- orderCount: number;
2068
- }
2069
- declare const SHOPPER_CONSENT_SOURCES: readonly ["checkout", "my-account", "store-account"];
2070
- type ShopperConsentSource = (typeof SHOPPER_CONSENT_SOURCES)[number];
2071
- interface ShopperSavedAddress extends Omit<CartAddress, 'fromCustomer'> {
2072
- id: string;
2073
- label: string | null;
2074
- isDefault: boolean;
2075
- }
2076
- type ShopperAddressInput = Omit<ShopperSavedAddress, 'id' | 'isDefault'>;
2077
- interface ShopperNotificationChoices {
2078
- sms: boolean;
2079
- push: boolean;
2080
- }
2081
- interface ShopperProfile {
2082
- phone: string | null;
2083
- addresses: ShopperSavedAddress[];
2084
- defaultCardId: string | null;
2085
- notifications: ShopperNotificationChoices;
2086
- }
2087
- declare const SHOPPER_RETURN_METHODS: readonly ["mail", "in-store"];
2088
- type ShopperReturnMethod = (typeof SHOPPER_RETURN_METHODS)[number];
2089
- interface ShopperReturnRequestInput {
2090
- items: {
2091
- lineId: string;
2092
- quantity: number;
2093
- }[];
2094
- method: ShopperReturnMethod;
2095
- note?: string;
2096
- }
2097
- declare const SHOPPER_ERROR_CODES: {
2098
- readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
2099
- readonly RETURN_ALREADY_REQUESTED: "RETURN_ALREADY_REQUESTED";
2100
- readonly RETURN_NOT_ALLOWED: "RETURN_NOT_ALLOWED";
2101
- readonly STORE_HAS_NO_SUPPORT_EMAIL: "STORE_HAS_NO_SUPPORT_EMAIL";
2102
- readonly TOO_MANY_ADDRESSES: "TOO_MANY_ADDRESSES";
2103
- readonly STORE_NOT_LINKED: "STORE_NOT_LINKED";
2104
- readonly STORED_METHOD_NOT_FOUND: "STORED_METHOD_NOT_FOUND";
2105
- };
2106
- type ShopperErrorCode = (typeof SHOPPER_ERROR_CODES)[keyof typeof SHOPPER_ERROR_CODES];
2107
-
2108
- declare function normalizeShopperEmail(email: unknown): string | null;
2109
-
2110
- declare function cardFromProcessorData(processorData: unknown): {
2111
- cardBrand?: string;
2112
- cardLastFour?: string;
2113
- };
2114
-
2115
1901
  interface CurrencyRate {
2116
1902
  rate: number;
2117
1903
  country: string;
@@ -2180,4 +1966,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
2180
1966
  }];
2181
1967
  type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
2182
1968
 
2183
- 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, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, type AssignUserChange, AttributeType, type AutomaticTaxPart, type AutomaticTaxRateRow, type AutomaticTaxRowStatus, type AutomaticTaxRuleRow, type AutomaticTaxTable, type AutomaticTaxTypeRow, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CANADA_PROVINCES, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CountryOption, 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, EVERYWHERE_KEY, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, 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, HttpMethod, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, type LineStockMove, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, type NormalizedAddress, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForAssignedUsers, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OutOfProvinceTaxes, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductSalesChartStep, ProductSalesReportCompare, ProductStatus, ProductType, type Province, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveShippingInput, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, SHIPPING_COUNTRIES, SHOPPER_CONSENT_SOURCES, SHOPPER_ERROR_CODES, SHOPPER_RETURN_METHODS, STANDARD_TAX_TYPE, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, SalesLineAction, SalesLineSourceArray, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, ShippingChannel, ShippingNoOptionReason, type ShippingOptionRule, ShippingOptionType, type ShippingPlace, type ShippingPriceTier, type ShippingQuoteOption, ShippingRateType, type ShippingResolution, type ShippingTuple, ShippingZoneError, ShippingZoneKind, type ShippingZoneProblem, type ShippingZoneRule, type ShopperAddressInput, type ShopperCard, type ShopperConsentSource, type ShopperErrorCode, type ShopperIdentity, type ShopperNotificationChoices, type ShopperOrderDetail, type ShopperOrderItem, type ShopperOrderRow, type ShopperOrderStatus, type ShopperOrderTotals, type ShopperPaymentMethod, type ShopperProfile, type ShopperReturnMethod, type ShopperReturnRequestInput, type ShopperSavedAddress, type ShopperScope, type ShopperStore, type ShopperStoreRef, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StockLine, type StockLineComponent, type StockReservationLink, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxRegistration, TaxRegistrationKind, TaxSource, TaxWarningCode, 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, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, applyAssignment, assertUnitSane, automaticTaxTableVersion, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAutomaticTaxTable, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cardFromProcessorData, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, currentAssignees, 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, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, lineStockMoves, listCountries, listProvinces, listShippingCountries, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeAddress, normalizeCityKey, normalizeCountry, normalizeMongoIdString, normalizePostCode, normalizeProvince, normalizeShopperEmail, occupancyIn, orderAssignments, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, registrationPlacesByKind, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, sha1Hex, shipsToCountry, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, violatesFinancialInvariant, windowEndsAt, withinPresence };
1969
+ 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, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, type AssignUserChange, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CANADA_PROVINCES, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CountryOption, 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, EVERYWHERE_KEY, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, 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, HttpMethod, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, type LineStockMove, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, type NormalizedAddress, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForAssignedUsers, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductSalesChartStep, ProductSalesReportCompare, ProductStatus, ProductType, type Province, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveShippingInput, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, SHIPPING_COUNTRIES, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, SalesLineAction, SalesLineSourceArray, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, ShippingChannel, ShippingNoOptionReason, type ShippingOptionRule, ShippingOptionType, type ShippingPlace, type ShippingPriceTier, type ShippingQuoteOption, ShippingRateType, type ShippingResolution, type ShippingTuple, ShippingZoneError, ShippingZoneKind, type ShippingZoneProblem, type ShippingZoneRule, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StockLine, type StockLineComponent, type StockReservationLink, 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, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, applyAssignment, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, currentAssignees, 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, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, lineStockMoves, listCountries, listProvinces, listShippingCountries, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeAddress, normalizeCityKey, normalizeCountry, normalizeMongoIdString, normalizePostCode, normalizeProvince, occupancyIn, orderAssignments, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shipsToCountry, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, violatesFinancialInvariant, windowEndsAt, withinPresence };
package/dist/index.js CHANGED
@@ -77,7 +77,6 @@ __export(index_exports, {
77
77
  ORDER_STATE_TOPIC: () => ORDER_STATE_TOPIC,
78
78
  OrderPlatform: () => OrderPlatform,
79
79
  OtherFixedRates: () => OtherFixedRates,
80
- OutOfProvinceTaxes: () => OutOfProvinceTaxes,
81
80
  OwnerType: () => OwnerType,
82
81
  PATH_MODES: () => PATH_MODES,
83
82
  PAYMENT_CHANNELS: () => PAYMENT_CHANNELS,
@@ -106,10 +105,6 @@ __export(index_exports, {
106
105
  ResidualStatus: () => ResidualStatus,
107
106
  ResourceAvailabilityState: () => ResourceAvailabilityState,
108
107
  SHIPPING_COUNTRIES: () => SHIPPING_COUNTRIES,
109
- SHOPPER_CONSENT_SOURCES: () => SHOPPER_CONSENT_SOURCES,
110
- SHOPPER_ERROR_CODES: () => SHOPPER_ERROR_CODES,
111
- SHOPPER_RETURN_METHODS: () => SHOPPER_RETURN_METHODS,
112
- STANDARD_TAX_TYPE: () => STANDARD_TAX_TYPE,
113
108
  STATE_SCHEMA: () => STATE_SCHEMA,
114
109
  STRIPE_SUPPORTED_COUNTRIES: () => STRIPE_SUPPORTED_COUNTRIES,
115
110
  SYSTEM_FAMILIES: () => SYSTEM_FAMILIES,
@@ -127,9 +122,6 @@ __export(index_exports, {
127
122
  StationStatus: () => StationStatus,
128
123
  StripeCurrencyCode: () => StripeCurrencyCode,
129
124
  StripeStatus: () => StripeStatus,
130
- TaxRegistrationKind: () => TaxRegistrationKind,
131
- TaxSource: () => TaxSource,
132
- TaxWarningCode: () => TaxWarningCode,
133
125
  TimePeriod: () => TimePeriod,
134
126
  TopMetericsSort: () => TopMetericsSort,
135
127
  UserTypes: () => UserTypes,
@@ -144,13 +136,11 @@ __export(index_exports, {
144
136
  ancestorChain: () => ancestorChain,
145
137
  applyAssignment: () => applyAssignment,
146
138
  assertUnitSane: () => assertUnitSane,
147
- automaticTaxTableVersion: () => automaticTaxTableVersion,
148
139
  availableIn: () => availableIn,
149
140
  baseFor: () => baseFor,
150
141
  baseFulfillmentDefinitions: () => baseFulfillmentDefinitions,
151
142
  baseOf: () => baseOf,
152
143
  basePaymentDefinitions: () => basePaymentDefinitions,
153
- buildAutomaticTaxTable: () => buildAutomaticTaxTable,
154
144
  buildAvailability: () => buildAvailability,
155
145
  buildGrid: () => buildGrid,
156
146
  buildOrderContext: () => buildOrderContext,
@@ -158,7 +148,6 @@ __export(index_exports, {
158
148
  buildResolvedConfig: () => buildResolvedConfig,
159
149
  calculatePercentage: () => calculatePercentage,
160
150
  canTransition: () => canTransition,
161
- cardFromProcessorData: () => cardFromProcessorData,
162
151
  cheapestCompositeItem: () => cheapestCompositeItem,
163
152
  cheapestCompositePrice: () => cheapestCompositePrice,
164
153
  compositeItemCost: () => compositeItemCost,
@@ -233,7 +222,6 @@ __export(index_exports, {
233
222
  normalizeMongoIdString: () => normalizeMongoIdString,
234
223
  normalizePostCode: () => normalizePostCode,
235
224
  normalizeProvince: () => normalizeProvince,
236
- normalizeShopperEmail: () => normalizeShopperEmail,
237
225
  occupancyIn: () => occupancyIn,
238
226
  orderAssignments: () => orderAssignments,
239
227
  parseAmountToMinorUnits: () => parseAmountToMinorUnits,
@@ -249,7 +237,6 @@ __export(index_exports, {
249
237
  presentAt: () => presentAt,
250
238
  priceForTotal: () => priceForTotal,
251
239
  provincesForPostCode: () => provincesForPostCode,
252
- registrationPlacesByKind: () => registrationPlacesByKind,
253
240
  removeFragment: () => removeFragment,
254
241
  resolveFamily: () => resolveFamily,
255
242
  resolveModifiersForProduct: () => resolveModifiersForProduct,
@@ -259,7 +246,6 @@ __export(index_exports, {
259
246
  roundToPrecision: () => roundToPrecision,
260
247
  sameFamily: () => sameFamily,
261
248
  setOrderState: () => setOrderState,
262
- sha1Hex: () => sha1Hex,
263
249
  shipsToCountry: () => shipsToCountry,
264
250
  shopDayKey: () => shopDayKey,
265
251
  shopDayRange: () => shopDayRange,
@@ -822,30 +808,6 @@ var ShippingZoneError = /* @__PURE__ */ ((ShippingZoneError2) => {
822
808
  return ShippingZoneError2;
823
809
  })(ShippingZoneError || {});
824
810
 
825
- // enums/tax.enum.ts
826
- var TaxRegistrationKind = /* @__PURE__ */ ((TaxRegistrationKind2) => {
827
- TaxRegistrationKind2["GST_HST"] = "GST_HST";
828
- TaxRegistrationKind2["PST"] = "PST";
829
- TaxRegistrationKind2["QST"] = "QST";
830
- return TaxRegistrationKind2;
831
- })(TaxRegistrationKind || {});
832
- var TaxSource = /* @__PURE__ */ ((TaxSource2) => {
833
- TaxSource2["MERCHANT"] = "merchant";
834
- TaxSource2["AUTOMATIC"] = "automatic";
835
- return TaxSource2;
836
- })(TaxSource || {});
837
- var OutOfProvinceTaxes = /* @__PURE__ */ ((OutOfProvinceTaxes2) => {
838
- OutOfProvinceTaxes2["AUTOMATIC"] = "automatic";
839
- OutOfProvinceTaxes2["HOME"] = "home";
840
- return OutOfProvinceTaxes2;
841
- })(OutOfProvinceTaxes || {});
842
- var TaxWarningCode = /* @__PURE__ */ ((TaxWarningCode2) => {
843
- TaxWarningCode2["NOT_REGISTERED"] = "NOT_REGISTERED";
844
- TaxWarningCode2["NO_RULES_FOR_PLACE"] = "NO_RULES_FOR_PLACE";
845
- TaxWarningCode2["NO_TABLE"] = "NO_TABLE";
846
- return TaxWarningCode2;
847
- })(TaxWarningCode || {});
848
-
849
811
  // enums/sales-line.enum.ts
850
812
  var SalesLineAction = /* @__PURE__ */ ((SalesLineAction2) => {
851
813
  SalesLineAction2["SALE"] = "sale";
@@ -4350,187 +4312,6 @@ function tiersAreValid(option) {
4350
4312
  return tiers.every((tier) => Number.isInteger(tier.from) && tier.from > 0 && isAmount(tier.price)) && new Set(froms).size === froms.length;
4351
4313
  }
4352
4314
 
4353
- // tax/sha1.ts
4354
- function utf8Bytes(text) {
4355
- const bytes = [];
4356
- for (const char of text) {
4357
- const cp = char.codePointAt(0);
4358
- if (cp < 128) bytes.push(cp);
4359
- else if (cp < 2048) bytes.push(192 | cp >> 6, 128 | cp & 63);
4360
- else if (cp < 65536) bytes.push(224 | cp >> 12, 128 | cp >> 6 & 63, 128 | cp & 63);
4361
- else bytes.push(240 | cp >> 18, 128 | cp >> 12 & 63, 128 | cp >> 6 & 63, 128 | cp & 63);
4362
- }
4363
- return bytes;
4364
- }
4365
- var rotl = (x, n) => x << n | x >>> 32 - n;
4366
- function sha1Hex(text) {
4367
- const bytes = utf8Bytes(text);
4368
- const bitLength = bytes.length * 8;
4369
- bytes.push(128);
4370
- while (bytes.length % 64 !== 56) bytes.push(0);
4371
- const high = Math.floor(bitLength / 4294967296);
4372
- for (const word of [high, bitLength >>> 0])
4373
- bytes.push(word >>> 24 & 255, word >>> 16 & 255, word >>> 8 & 255, word & 255);
4374
- const h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
4375
- const w = new Array(80);
4376
- for (let offset = 0; offset < bytes.length; offset += 64) {
4377
- for (let i = 0; i < 16; i++) {
4378
- const j = offset + i * 4;
4379
- w[i] = bytes[j] << 24 | bytes[j + 1] << 16 | bytes[j + 2] << 8 | bytes[j + 3];
4380
- }
4381
- for (let i = 16; i < 80; i++) w[i] = rotl(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1);
4382
- let [a, b, c, d, e] = h;
4383
- for (let i = 0; i < 80; i++) {
4384
- const [f, k] = i < 20 ? [b & c | ~b & d, 1518500249] : i < 40 ? [b ^ c ^ d, 1859775393] : i < 60 ? [b & c | b & d | c & d, 2400959708] : [b ^ c ^ d, 3395469782];
4385
- const t = rotl(a, 5) + f + e + k + w[i] | 0;
4386
- e = d;
4387
- d = c;
4388
- c = rotl(b, 30);
4389
- b = a;
4390
- a = t;
4391
- }
4392
- h[0] = h[0] + a | 0;
4393
- h[1] = h[1] + b | 0;
4394
- h[2] = h[2] + c | 0;
4395
- h[3] = h[3] + d | 0;
4396
- h[4] = h[4] + e | 0;
4397
- }
4398
- return h.map((x) => (x >>> 0).toString(16).padStart(8, "0")).join("");
4399
- }
4400
-
4401
- // tax/table.ts
4402
- var STANDARD_TAX_TYPE = "standard";
4403
- var TYPE_FIELDS = ["key", "name", "description", "sortOrder", "active"];
4404
- var RATE_FIELDS = [
4405
- "code",
4406
- "name",
4407
- "kind",
4408
- "places",
4409
- "rate",
4410
- "from",
4411
- "to",
4412
- "order",
4413
- "compound",
4414
- "registrationPlace",
4415
- "harmonized",
4416
- "parts",
4417
- "sourceUrl",
4418
- "status"
4419
- ];
4420
- var RULE_FIELDS = ["taxType", "codes", "rate", "from", "to", "sourceUrl", "status", "note"];
4421
- function canonical(row, fields) {
4422
- return JSON.stringify(fields.map((field) => row[field] ?? null));
4423
- }
4424
- var sortedCanonical = (rows, fields) => rows.map((row) => canonical(row, fields)).sort();
4425
- function automaticTaxTableVersion(table) {
4426
- return sha1Hex(
4427
- JSON.stringify([
4428
- sortedCanonical(table.types, TYPE_FIELDS),
4429
- sortedCanonical(table.rates, RATE_FIELDS),
4430
- sortedCanonical(table.rules, RULE_FIELDS)
4431
- ])
4432
- );
4433
- }
4434
- var toTypeRow = ({ key, name, description, sortOrder, active }) => ({
4435
- key,
4436
- name,
4437
- description,
4438
- sortOrder,
4439
- active
4440
- });
4441
- var toRateRow = (rate) => ({
4442
- code: rate.code,
4443
- name: rate.name,
4444
- kind: rate.kind,
4445
- places: rate.places,
4446
- rate: rate.rate,
4447
- from: rate.from,
4448
- to: rate.to,
4449
- order: rate.order,
4450
- compound: rate.compound,
4451
- registrationPlace: rate.registrationPlace,
4452
- harmonized: rate.harmonized,
4453
- parts: rate.parts?.map(({ code, name, rate: partRate, level }) => ({ code, name, rate: partRate, level })),
4454
- sourceUrl: rate.sourceUrl,
4455
- status: rate.status
4456
- });
4457
- var toRuleRow = ({
4458
- taxType,
4459
- codes: codes2,
4460
- rate,
4461
- from,
4462
- to,
4463
- sourceUrl,
4464
- status,
4465
- note
4466
- }) => ({
4467
- taxType,
4468
- codes: codes2,
4469
- rate,
4470
- from,
4471
- to,
4472
- sourceUrl,
4473
- status,
4474
- note
4475
- });
4476
- function buildAutomaticTaxTable(rows) {
4477
- const table = {
4478
- types: [...rows.types].sort((a, b) => a.sortOrder - b.sortOrder).map(toTypeRow),
4479
- rates: rows.rates.map(toRateRow),
4480
- rules: rows.rules.map(toRuleRow)
4481
- };
4482
- return { version: automaticTaxTableVersion(table), ...table };
4483
- }
4484
- function registrationPlacesByKind(rates) {
4485
- const places = /* @__PURE__ */ new Map();
4486
- for (const rate of rates) {
4487
- const list = places.get(rate.kind) ?? [];
4488
- if (!list.includes(rate.registrationPlace)) list.push(rate.registrationPlace);
4489
- places.set(rate.kind, list);
4490
- }
4491
- return places;
4492
- }
4493
-
4494
- // shopper/types.ts
4495
- var SHOPPER_CONSENT_SOURCES = ["checkout", "my-account", "store-account"];
4496
- var SHOPPER_RETURN_METHODS = ["mail", "in-store"];
4497
- var SHOPPER_ERROR_CODES = {
4498
- ORDER_NOT_FOUND: "ORDER_NOT_FOUND",
4499
- RETURN_ALREADY_REQUESTED: "RETURN_ALREADY_REQUESTED",
4500
- RETURN_NOT_ALLOWED: "RETURN_NOT_ALLOWED",
4501
- STORE_HAS_NO_SUPPORT_EMAIL: "STORE_HAS_NO_SUPPORT_EMAIL",
4502
- TOO_MANY_ADDRESSES: "TOO_MANY_ADDRESSES",
4503
- STORE_NOT_LINKED: "STORE_NOT_LINKED",
4504
- STORED_METHOD_NOT_FOUND: "STORED_METHOD_NOT_FOUND"
4505
- };
4506
-
4507
- // shopper/email.ts
4508
- function normalizeShopperEmail(email) {
4509
- if (typeof email !== "string") return null;
4510
- const value = email.trim().toLowerCase();
4511
- return /^[^\s@]+@[^\s@]+$/.test(value) ? value : null;
4512
- }
4513
-
4514
- // shopper/card.ts
4515
- function cardFromProcessorData(processorData) {
4516
- if (typeof processorData !== "string" || !processorData) return {};
4517
- let data;
4518
- try {
4519
- data = JSON.parse(processorData);
4520
- } catch {
4521
- return {};
4522
- }
4523
- if (!data || typeof data !== "object") return {};
4524
- const fields = new Map(Object.entries(data));
4525
- const text = (...keys) => keys.map((key) => fields.get(key)).find((value) => typeof value === "string" && !!value.trim());
4526
- const brand = text("Brand", "brand")?.trim();
4527
- const digits = text("Card Number", "card", "card_number")?.replace(/\D/g, "");
4528
- return {
4529
- ...brand ? { cardBrand: brand.charAt(0).toUpperCase() + brand.slice(1) } : {},
4530
- ...digits && digits.length >= 4 ? { cardLastFour: digits.slice(-4) } : {}
4531
- };
4532
- }
4533
-
4534
4315
  // constants/adyen.constants.ts
4535
4316
  var ADYEN_ROLLOUT_COUNTRY_CODES = /* @__PURE__ */ new Set(["CA"]);
4536
4317
  function isAdyenRolloutCountry(alpha2) {
@@ -4684,7 +4465,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4684
4465
  ORDER_STATE_TOPIC,
4685
4466
  OrderPlatform,
4686
4467
  OtherFixedRates,
4687
- OutOfProvinceTaxes,
4688
4468
  OwnerType,
4689
4469
  PATH_MODES,
4690
4470
  PAYMENT_CHANNELS,
@@ -4713,10 +4493,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4713
4493
  ResidualStatus,
4714
4494
  ResourceAvailabilityState,
4715
4495
  SHIPPING_COUNTRIES,
4716
- SHOPPER_CONSENT_SOURCES,
4717
- SHOPPER_ERROR_CODES,
4718
- SHOPPER_RETURN_METHODS,
4719
- STANDARD_TAX_TYPE,
4720
4496
  STATE_SCHEMA,
4721
4497
  STRIPE_SUPPORTED_COUNTRIES,
4722
4498
  SYSTEM_FAMILIES,
@@ -4734,9 +4510,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4734
4510
  StationStatus,
4735
4511
  StripeCurrencyCode,
4736
4512
  StripeStatus,
4737
- TaxRegistrationKind,
4738
- TaxSource,
4739
- TaxWarningCode,
4740
4513
  TimePeriod,
4741
4514
  TopMetericsSort,
4742
4515
  UserTypes,
@@ -4751,13 +4524,11 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4751
4524
  ancestorChain,
4752
4525
  applyAssignment,
4753
4526
  assertUnitSane,
4754
- automaticTaxTableVersion,
4755
4527
  availableIn,
4756
4528
  baseFor,
4757
4529
  baseFulfillmentDefinitions,
4758
4530
  baseOf,
4759
4531
  basePaymentDefinitions,
4760
- buildAutomaticTaxTable,
4761
4532
  buildAvailability,
4762
4533
  buildGrid,
4763
4534
  buildOrderContext,
@@ -4765,7 +4536,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4765
4536
  buildResolvedConfig,
4766
4537
  calculatePercentage,
4767
4538
  canTransition,
4768
- cardFromProcessorData,
4769
4539
  cheapestCompositeItem,
4770
4540
  cheapestCompositePrice,
4771
4541
  compositeItemCost,
@@ -4840,7 +4610,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4840
4610
  normalizeMongoIdString,
4841
4611
  normalizePostCode,
4842
4612
  normalizeProvince,
4843
- normalizeShopperEmail,
4844
4613
  occupancyIn,
4845
4614
  orderAssignments,
4846
4615
  parseAmountToMinorUnits,
@@ -4856,7 +4625,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4856
4625
  presentAt,
4857
4626
  priceForTotal,
4858
4627
  provincesForPostCode,
4859
- registrationPlacesByKind,
4860
4628
  removeFragment,
4861
4629
  resolveFamily,
4862
4630
  resolveModifiersForProduct,
@@ -4866,7 +4634,6 @@ var EXPENSE_DEFAULT_CATEGORIES = [
4866
4634
  roundToPrecision,
4867
4635
  sameFamily,
4868
4636
  setOrderState,
4869
- sha1Hex,
4870
4637
  shipsToCountry,
4871
4638
  shopDayKey,
4872
4639
  shopDayRange,