@final-commerce/common 2.11.0 → 2.11.1-online.10
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/README.md +20 -0
- package/bin/gate-done.mjs +76 -54
- package/bin/lib/budget.mjs +71 -0
- package/dist/index.d.mts +295 -2
- package/dist/index.d.ts +295 -2
- package/dist/index.js +367 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +341 -9
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +72 -13
- package/dist/pos-types/index.d.ts +72 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -490,6 +490,25 @@ 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
|
+
|
|
493
512
|
declare enum SalesLineAction {
|
|
494
513
|
SALE = "sale",
|
|
495
514
|
REFUND = "refund"
|
|
@@ -948,6 +967,28 @@ interface MeasurementUnit {
|
|
|
948
967
|
sellable?: false;
|
|
949
968
|
}
|
|
950
969
|
|
|
970
|
+
declare enum TaxExceptionSource {
|
|
971
|
+
PRODUCT = "product",
|
|
972
|
+
CATEGORY = "category"
|
|
973
|
+
}
|
|
974
|
+
interface TaxException {
|
|
975
|
+
place: string;
|
|
976
|
+
skip: string[];
|
|
977
|
+
reason?: string;
|
|
978
|
+
setBy?: string;
|
|
979
|
+
setAt?: string;
|
|
980
|
+
}
|
|
981
|
+
interface OrderTaxSkip {
|
|
982
|
+
code: string;
|
|
983
|
+
name: string;
|
|
984
|
+
place: string;
|
|
985
|
+
source: TaxExceptionSource | `${TaxExceptionSource}`;
|
|
986
|
+
label: string;
|
|
987
|
+
categoryId?: string;
|
|
988
|
+
reason?: string;
|
|
989
|
+
}
|
|
990
|
+
declare const TAX_EXCEPTION_REASON_MAX = 200;
|
|
991
|
+
|
|
951
992
|
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out';
|
|
952
993
|
|
|
953
994
|
interface CompositeShelf {
|
|
@@ -1087,6 +1128,18 @@ interface LineStockMove {
|
|
|
1087
1128
|
}
|
|
1088
1129
|
declare function lineStockMoves(item: StockLine, quantity: number, reservations?: readonly StockReservationLink[]): LineStockMove[];
|
|
1089
1130
|
|
|
1131
|
+
declare function emailKey(email: string | null | undefined): string | null;
|
|
1132
|
+
declare function phoneKey(phone: string | null | undefined): string | null;
|
|
1133
|
+
declare const CUSTOMER_CONTACT_VERIFIED = "CUSTOMER_CONTACT_VERIFIED";
|
|
1134
|
+
declare const CUSTOMER_EMAIL_TAKEN = "CUSTOMER_EMAIL_TAKEN";
|
|
1135
|
+
type ContactSide = {
|
|
1136
|
+
email?: string | null;
|
|
1137
|
+
phone?: string | null;
|
|
1138
|
+
};
|
|
1139
|
+
declare function verifiedContactChange(existing: ContactSide & {
|
|
1140
|
+
verifiedShopperAt?: Date | string | null;
|
|
1141
|
+
}, change: ContactSide): 'email' | 'phone' | null;
|
|
1142
|
+
|
|
1090
1143
|
declare const SYSTEM_FAMILY_IDS: {
|
|
1091
1144
|
readonly COUNT: "count";
|
|
1092
1145
|
readonly WEIGHT: "weight-metric";
|
|
@@ -1134,7 +1187,7 @@ declare function isSystemFamilyCode(code: string): boolean;
|
|
|
1134
1187
|
declare function deriveUnitId(abbreviation: string, documentId: string): string;
|
|
1135
1188
|
|
|
1136
1189
|
type PaymentState = 'unpaid' | 'payment_pending' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
|
|
1137
|
-
type FulfillmentState = 'draft' | 'pending' | 'on_hold' | 'in_progress' | 'fulfilled' | 'partially_fulfilled' | 'returned' | 'partially_returned' | 'cancelled';
|
|
1190
|
+
type FulfillmentState = 'draft' | 'pending' | 'on_hold' | 'in_progress' | 'fulfilled' | 'partially_fulfilled' | 'return_pending' | 'returned' | 'partially_returned' | 'cancelled';
|
|
1138
1191
|
declare const PAYMENT_STATES: readonly PaymentState[];
|
|
1139
1192
|
declare const FULFILLMENT_STATES: readonly FulfillmentState[];
|
|
1140
1193
|
declare function isPaymentState(value: string): value is PaymentState;
|
|
@@ -1808,6 +1861,8 @@ interface ShippingOptionRule {
|
|
|
1808
1861
|
freeOver?: number | null;
|
|
1809
1862
|
minDays?: number | null;
|
|
1810
1863
|
maxDays?: number | null;
|
|
1864
|
+
minMinutes?: number | null;
|
|
1865
|
+
maxMinutes?: number | null;
|
|
1811
1866
|
channels: (ShippingChannel | `${ShippingChannel}`)[];
|
|
1812
1867
|
outletId?: string | null;
|
|
1813
1868
|
}
|
|
@@ -1843,6 +1898,8 @@ interface ShippingQuoteOption {
|
|
|
1843
1898
|
amountToFree: number | null;
|
|
1844
1899
|
minDays: number | null;
|
|
1845
1900
|
maxDays: number | null;
|
|
1901
|
+
minMinutes: number | null;
|
|
1902
|
+
maxMinutes: number | null;
|
|
1846
1903
|
outletId: string | null;
|
|
1847
1904
|
}
|
|
1848
1905
|
interface ShippingResolution {
|
|
@@ -1892,12 +1949,248 @@ declare function addressPlaceKeys(address: NormalizedAddress): string[];
|
|
|
1892
1949
|
declare function resolveShipping({ zones, address, itemsTotal, channel }: ResolveShippingInput): ShippingResolution;
|
|
1893
1950
|
declare function priceForTotal(option: ShippingOptionRule, itemsTotal: number): number;
|
|
1894
1951
|
|
|
1952
|
+
interface ShippingDuration {
|
|
1953
|
+
unit: 'minute' | 'hour';
|
|
1954
|
+
min: number;
|
|
1955
|
+
max: number;
|
|
1956
|
+
}
|
|
1957
|
+
declare function shippingDuration(minMinutes: number | null | undefined, maxMinutes: number | null | undefined): ShippingDuration | null;
|
|
1958
|
+
declare function formatShippingDuration(minMinutes: number | null | undefined, maxMinutes: number | null | undefined, locale?: string, display?: 'long' | 'short'): string | null;
|
|
1959
|
+
|
|
1895
1960
|
interface ShippingZoneProblem {
|
|
1896
1961
|
code: ShippingZoneError;
|
|
1897
1962
|
optionId?: string;
|
|
1898
1963
|
}
|
|
1899
1964
|
declare function validateShippingZone(zone: ShippingZoneRule): ShippingZoneProblem[];
|
|
1900
1965
|
|
|
1966
|
+
interface TaxRegistration {
|
|
1967
|
+
kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
|
|
1968
|
+
place: string;
|
|
1969
|
+
number?: string | null;
|
|
1970
|
+
from?: string | null;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
declare const STANDARD_TAX_TYPE = "standard";
|
|
1974
|
+
type AutomaticTaxRowStatus = 'confirmed' | 'to_confirm';
|
|
1975
|
+
interface AutomaticTaxTypeRow {
|
|
1976
|
+
key: string;
|
|
1977
|
+
name: string;
|
|
1978
|
+
description?: string | null;
|
|
1979
|
+
sortOrder: number;
|
|
1980
|
+
active: boolean;
|
|
1981
|
+
}
|
|
1982
|
+
interface AutomaticTaxPart {
|
|
1983
|
+
code: string;
|
|
1984
|
+
name: string;
|
|
1985
|
+
rate: string;
|
|
1986
|
+
level: 'federal' | 'provincial';
|
|
1987
|
+
}
|
|
1988
|
+
interface AutomaticTaxRateRow {
|
|
1989
|
+
code: string;
|
|
1990
|
+
name: string;
|
|
1991
|
+
kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
|
|
1992
|
+
places: string[];
|
|
1993
|
+
rate: string;
|
|
1994
|
+
from?: string | null;
|
|
1995
|
+
to?: string | null;
|
|
1996
|
+
order: number;
|
|
1997
|
+
compound: boolean;
|
|
1998
|
+
registrationPlace: string;
|
|
1999
|
+
harmonized: boolean;
|
|
2000
|
+
parts?: AutomaticTaxPart[] | null;
|
|
2001
|
+
sourceUrl?: string | null;
|
|
2002
|
+
status: AutomaticTaxRowStatus;
|
|
2003
|
+
}
|
|
2004
|
+
interface AutomaticTaxRuleRow {
|
|
2005
|
+
taxType: string;
|
|
2006
|
+
codes: string[];
|
|
2007
|
+
rate: string;
|
|
2008
|
+
from?: string | null;
|
|
2009
|
+
to?: string | null;
|
|
2010
|
+
sourceUrl?: string | null;
|
|
2011
|
+
status: AutomaticTaxRowStatus;
|
|
2012
|
+
note?: string | null;
|
|
2013
|
+
}
|
|
2014
|
+
interface AutomaticTaxTable {
|
|
2015
|
+
version: string;
|
|
2016
|
+
types: AutomaticTaxTypeRow[];
|
|
2017
|
+
rates: AutomaticTaxRateRow[];
|
|
2018
|
+
rules: AutomaticTaxRuleRow[];
|
|
2019
|
+
}
|
|
2020
|
+
declare function automaticTaxTableVersion(table: Omit<AutomaticTaxTable, 'version'>): string;
|
|
2021
|
+
declare function buildAutomaticTaxTable(rows: {
|
|
2022
|
+
types: readonly AutomaticTaxTypeRow[];
|
|
2023
|
+
rates: readonly AutomaticTaxRateRow[];
|
|
2024
|
+
rules: readonly AutomaticTaxRuleRow[];
|
|
2025
|
+
}): AutomaticTaxTable;
|
|
2026
|
+
declare function registrationPlacesByKind(rates: readonly AutomaticTaxRateRow[]): ReadonlyMap<string, readonly string[]>;
|
|
2027
|
+
|
|
2028
|
+
declare function sha1Hex(text: string): string;
|
|
2029
|
+
|
|
2030
|
+
interface CartAddress {
|
|
2031
|
+
firstName?: string;
|
|
2032
|
+
lastName?: string;
|
|
2033
|
+
address1?: string;
|
|
2034
|
+
address2?: string;
|
|
2035
|
+
city?: string;
|
|
2036
|
+
state?: string;
|
|
2037
|
+
postCode?: string;
|
|
2038
|
+
country?: string;
|
|
2039
|
+
fromCustomer?: boolean;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
type ShopperScope = {
|
|
2043
|
+
kind: 'all';
|
|
2044
|
+
} | {
|
|
2045
|
+
kind: 'store';
|
|
2046
|
+
companyId: string;
|
|
2047
|
+
};
|
|
2048
|
+
interface ShopperIdentity {
|
|
2049
|
+
id: string;
|
|
2050
|
+
emails: string[];
|
|
2051
|
+
scope: ShopperScope;
|
|
2052
|
+
}
|
|
2053
|
+
type ShopperOrderStatus = 'paid' | 'partially_refunded' | 'refunded' | 'cancelled';
|
|
2054
|
+
interface ShopperStoreRef {
|
|
2055
|
+
companyId: string;
|
|
2056
|
+
name: string;
|
|
2057
|
+
logo: string | null;
|
|
2058
|
+
}
|
|
2059
|
+
interface ShopperOrderRow {
|
|
2060
|
+
orderId: string;
|
|
2061
|
+
receiptId: string;
|
|
2062
|
+
placedAt: string;
|
|
2063
|
+
store: ShopperStoreRef;
|
|
2064
|
+
paymentState: PaymentState;
|
|
2065
|
+
fulfillmentState: FulfillmentState;
|
|
2066
|
+
displayState: string;
|
|
2067
|
+
status?: ShopperOrderStatus;
|
|
2068
|
+
total: number;
|
|
2069
|
+
currency: CurrencyCode | null;
|
|
2070
|
+
itemCount: number;
|
|
2071
|
+
}
|
|
2072
|
+
interface ShopperOrderItem {
|
|
2073
|
+
lineId: string;
|
|
2074
|
+
name: string;
|
|
2075
|
+
variant: string | null;
|
|
2076
|
+
quantity: number;
|
|
2077
|
+
total: number;
|
|
2078
|
+
}
|
|
2079
|
+
interface ShopperOrderTotals {
|
|
2080
|
+
subtotal: number;
|
|
2081
|
+
discount: number;
|
|
2082
|
+
tax: number;
|
|
2083
|
+
shipping: number;
|
|
2084
|
+
refunded: number;
|
|
2085
|
+
}
|
|
2086
|
+
interface ShopperCard {
|
|
2087
|
+
brand: string;
|
|
2088
|
+
lastFour: string;
|
|
2089
|
+
}
|
|
2090
|
+
type ShopperPaymentKind = 'card' | 'cash' | 'gift_card' | 'pay_later' | 'other';
|
|
2091
|
+
interface ShopperPayment {
|
|
2092
|
+
kind: ShopperPaymentKind;
|
|
2093
|
+
name: string | null;
|
|
2094
|
+
lastFour: string | null;
|
|
2095
|
+
amount: number;
|
|
2096
|
+
}
|
|
2097
|
+
interface ShopperOrderDetail extends ShopperOrderRow {
|
|
2098
|
+
items: ShopperOrderItem[];
|
|
2099
|
+
totals: ShopperOrderTotals;
|
|
2100
|
+
card: ShopperCard | null;
|
|
2101
|
+
payments?: ShopperPayment[];
|
|
2102
|
+
delivery: {
|
|
2103
|
+
type: 'pickup' | 'shipping';
|
|
2104
|
+
place: string | null;
|
|
2105
|
+
} | null;
|
|
2106
|
+
returnRequestedAt: string | null;
|
|
2107
|
+
returnRequest: ShopperReturnRequestState | null;
|
|
2108
|
+
}
|
|
2109
|
+
interface ShopperPaymentMethod {
|
|
2110
|
+
id: string;
|
|
2111
|
+
brand: string;
|
|
2112
|
+
lastFour: string;
|
|
2113
|
+
expiryMonth: string;
|
|
2114
|
+
expiryYear: string;
|
|
2115
|
+
holderName: string | null;
|
|
2116
|
+
isDefault: boolean;
|
|
2117
|
+
}
|
|
2118
|
+
interface ShopperStore extends ShopperStoreRef {
|
|
2119
|
+
city: string | null;
|
|
2120
|
+
email: string | null;
|
|
2121
|
+
phone: string | null;
|
|
2122
|
+
website: string | null;
|
|
2123
|
+
returnPolicy: string | null;
|
|
2124
|
+
news: boolean;
|
|
2125
|
+
orderCount: number;
|
|
2126
|
+
}
|
|
2127
|
+
declare const SHOPPER_CONSENT_SOURCES: readonly ["checkout", "my-account", "store-account"];
|
|
2128
|
+
type ShopperConsentSource = (typeof SHOPPER_CONSENT_SOURCES)[number];
|
|
2129
|
+
interface ShopperSavedAddress extends Omit<CartAddress, 'fromCustomer'> {
|
|
2130
|
+
id: string;
|
|
2131
|
+
label: string | null;
|
|
2132
|
+
isDefault: boolean;
|
|
2133
|
+
}
|
|
2134
|
+
type ShopperAddressInput = Omit<ShopperSavedAddress, 'id' | 'isDefault'>;
|
|
2135
|
+
interface ShopperNotificationChoices {
|
|
2136
|
+
sms: boolean;
|
|
2137
|
+
push: boolean;
|
|
2138
|
+
}
|
|
2139
|
+
interface ShopperProfile {
|
|
2140
|
+
phone: string | null;
|
|
2141
|
+
addresses: ShopperSavedAddress[];
|
|
2142
|
+
defaultCardId: string | null;
|
|
2143
|
+
notifications: ShopperNotificationChoices;
|
|
2144
|
+
}
|
|
2145
|
+
declare const SHOPPER_RETURN_METHODS: readonly ["mail", "in-store"];
|
|
2146
|
+
type ShopperReturnMethod = (typeof SHOPPER_RETURN_METHODS)[number];
|
|
2147
|
+
declare const SHOPPER_RETURN_STATUSES: readonly ["requested", "accepted", "declined"];
|
|
2148
|
+
type ShopperReturnStatus = (typeof SHOPPER_RETURN_STATUSES)[number];
|
|
2149
|
+
declare const SHOPPER_RETURN_DECLINE_REASON_MAX = 500;
|
|
2150
|
+
interface ShopperReturnRequestState {
|
|
2151
|
+
status: ShopperReturnStatus;
|
|
2152
|
+
requestedAt: string;
|
|
2153
|
+
decidedAt: string | null;
|
|
2154
|
+
declineReason: string | null;
|
|
2155
|
+
}
|
|
2156
|
+
interface ShopperReturnRequestInput {
|
|
2157
|
+
items: {
|
|
2158
|
+
lineId: string;
|
|
2159
|
+
quantity: number;
|
|
2160
|
+
}[];
|
|
2161
|
+
method: ShopperReturnMethod;
|
|
2162
|
+
note?: string;
|
|
2163
|
+
}
|
|
2164
|
+
declare const SHOPPER_ERROR_CODES: {
|
|
2165
|
+
readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
|
|
2166
|
+
readonly RETURN_ALREADY_REQUESTED: "RETURN_ALREADY_REQUESTED";
|
|
2167
|
+
readonly RETURN_NOT_ALLOWED: "RETURN_NOT_ALLOWED";
|
|
2168
|
+
readonly RETURN_ALREADY_DECIDED: "RETURN_ALREADY_DECIDED";
|
|
2169
|
+
readonly STORE_HAS_NO_SUPPORT_EMAIL: "STORE_HAS_NO_SUPPORT_EMAIL";
|
|
2170
|
+
readonly TOO_MANY_ADDRESSES: "TOO_MANY_ADDRESSES";
|
|
2171
|
+
readonly STORE_NOT_LINKED: "STORE_NOT_LINKED";
|
|
2172
|
+
readonly STORED_METHOD_NOT_FOUND: "STORED_METHOD_NOT_FOUND";
|
|
2173
|
+
};
|
|
2174
|
+
type ShopperErrorCode = (typeof SHOPPER_ERROR_CODES)[keyof typeof SHOPPER_ERROR_CODES];
|
|
2175
|
+
|
|
2176
|
+
declare function normalizeShopperEmail(email: unknown): string | null;
|
|
2177
|
+
|
|
2178
|
+
declare function cardFromProcessorData(processorData: unknown): {
|
|
2179
|
+
cardBrand?: string;
|
|
2180
|
+
cardLastFour?: string;
|
|
2181
|
+
cardIssuer?: string;
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
type PaymentLegLike = {
|
|
2185
|
+
paymentType?: string;
|
|
2186
|
+
amount?: number;
|
|
2187
|
+
tip?: {
|
|
2188
|
+
amount?: number;
|
|
2189
|
+
} | null;
|
|
2190
|
+
emv?: string | null;
|
|
2191
|
+
};
|
|
2192
|
+
declare function shopperPaymentsOf(legs: readonly PaymentLegLike[] | null | undefined): ShopperPayment[];
|
|
2193
|
+
|
|
1901
2194
|
interface CurrencyRate {
|
|
1902
2195
|
rate: number;
|
|
1903
2196
|
country: string;
|
|
@@ -1966,4 +2259,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
|
|
|
1966
2259
|
}];
|
|
1967
2260
|
type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
|
|
1968
2261
|
|
|
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 };
|
|
2262
|
+
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, CUSTOMER_CONTACT_VERIFIED, CUSTOMER_EMAIL_TAKEN, 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 OrderTaxSkip, type OrderWriteStrategy, OtherFixedRates, OutOfProvinceTaxes, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, type PaymentLegLike, 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_DECLINE_REASON_MAX, SHOPPER_RETURN_METHODS, SHOPPER_RETURN_STATUSES, 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, type ShippingDuration, 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 ShopperPayment, type ShopperPaymentKind, type ShopperPaymentMethod, type ShopperProfile, type ShopperReturnMethod, type ShopperReturnRequestInput, type ShopperReturnRequestState, type ShopperReturnStatus, 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, TAX_EXCEPTION_REASON_MAX, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxException, TaxExceptionSource, 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, emailKey, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, formatShippingDuration, 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, phoneKey, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, registrationPlacesByKind, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, sha1Hex, shippingDuration, shipsToCountry, shopDayKey, shopDayRange, shopperPaymentsOf, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, verifiedContactChange, violatesFinancialInvariant, windowEndsAt, withinPresence };
|