@final-commerce/common 2.12.1-preprod.1 → 2.13.0-staging2.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/README.md +6 -6
- package/bin/gate-done.mjs +26 -13
- package/bin/lib/budget.mjs +1 -1
- package/dist/index.d.mts +75 -367
- package/dist/index.d.ts +75 -367
- package/dist/index.js +177 -585
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -544
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +26 -101
- package/dist/pos-types/index.d.ts +26 -101
- package/package.json +1 -1
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"
|
|
@@ -967,29 +948,7 @@ interface MeasurementUnit {
|
|
|
967
948
|
sellable?: false;
|
|
968
949
|
}
|
|
969
950
|
|
|
970
|
-
|
|
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
|
-
|
|
992
|
-
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out';
|
|
951
|
+
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out' | 'contains_itself';
|
|
993
952
|
|
|
994
953
|
interface CompositeShelf {
|
|
995
954
|
pool: string;
|
|
@@ -1054,7 +1013,9 @@ interface PoolDrawing {
|
|
|
1054
1013
|
}
|
|
1055
1014
|
declare const poolOf: (line: PoolDrawing) => string;
|
|
1056
1015
|
declare function poolDemand(lines: readonly (PoolDrawing & {
|
|
1057
|
-
components?: readonly PoolDrawing
|
|
1016
|
+
components?: readonly (PoolDrawing & {
|
|
1017
|
+
parentIndex?: number | null;
|
|
1018
|
+
})[];
|
|
1058
1019
|
})[]): Map<string, number>;
|
|
1059
1020
|
declare function poolShortfall(demand: ReadonlyMap<string, number>, poolStock: ReadonlyMap<string, number | null>, backordered?: ReadonlySet<string>): {
|
|
1060
1021
|
poolId: string;
|
|
@@ -1098,6 +1059,7 @@ interface StockLineComponent {
|
|
|
1098
1059
|
stockQuantity?: number | null;
|
|
1099
1060
|
unitId?: IdLike | null;
|
|
1100
1061
|
stockVariantId?: IdLike | null;
|
|
1062
|
+
parentIndex?: number | null;
|
|
1101
1063
|
}
|
|
1102
1064
|
interface StockLine {
|
|
1103
1065
|
internalId?: string | null;
|
|
@@ -1127,90 +1089,72 @@ interface LineStockMove {
|
|
|
1127
1089
|
componentIndex?: number;
|
|
1128
1090
|
}
|
|
1129
1091
|
declare function lineStockMoves(item: StockLine, quantity: number, reservations?: readonly StockReservationLink[]): LineStockMove[];
|
|
1092
|
+
declare function componentUnitsPerLine(components: readonly {
|
|
1093
|
+
quantity: number;
|
|
1094
|
+
parentIndex?: number | null;
|
|
1095
|
+
}[], index: number): number;
|
|
1096
|
+
declare const isInnerComposite: (components: readonly {
|
|
1097
|
+
parentIndex?: number | null;
|
|
1098
|
+
}[], index: number) => boolean;
|
|
1099
|
+
declare const shelfComponents: <C extends {
|
|
1100
|
+
quantity: number;
|
|
1101
|
+
parentIndex?: number | null;
|
|
1102
|
+
}>(components: readonly C[]) => {
|
|
1103
|
+
component: C;
|
|
1104
|
+
componentIndex: number;
|
|
1105
|
+
parentUnits: number;
|
|
1106
|
+
}[];
|
|
1130
1107
|
|
|
1131
|
-
interface
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
type TipField = keyof ShellTipSettings;
|
|
1173
|
-
type ShellStationField = TopField;
|
|
1174
|
-
type ShellTipField = TipField;
|
|
1175
|
-
interface ShellSettingsSources {
|
|
1176
|
-
fields: Record<TopField, ShellSettingsSource>;
|
|
1177
|
-
tips: Record<TipField, ShellSettingsSource>;
|
|
1178
|
-
}
|
|
1179
|
-
declare const DEFAULT_SHELL_SETTINGS: ResolvedShellSettings;
|
|
1180
|
-
declare function resolveShellSettingsWithSources(levels: ShellSettingsLevels): {
|
|
1181
|
-
settings: ResolvedShellSettings;
|
|
1182
|
-
sources: ShellSettingsSources;
|
|
1183
|
-
};
|
|
1184
|
-
declare function resolveShellSettings(levels: ShellSettingsLevels): ResolvedShellSettings;
|
|
1185
|
-
declare const SHELL_TIP_PERCENT_MIN = 1;
|
|
1186
|
-
declare const SHELL_TIP_PERCENT_MAX = 100;
|
|
1187
|
-
declare const SHELL_TIP_LABEL_MAX_LENGTH = 20;
|
|
1188
|
-
type ShellSettingsProblemCode = 'boolean' | 'timeout' | 'percent' | 'label' | 'preset';
|
|
1189
|
-
interface ShellSettingsProblem {
|
|
1190
|
-
field: string;
|
|
1191
|
-
code: ShellSettingsProblemCode;
|
|
1192
|
-
}
|
|
1193
|
-
declare const isShellTipPercent: (raw: unknown) => boolean;
|
|
1194
|
-
declare function shellTipSettingsProblems(tips: ShellTipSettings | null | undefined): ShellSettingsProblem[];
|
|
1195
|
-
declare function shellSettingsProblems(settings: ShellSettings | null | undefined): ShellSettingsProblem[];
|
|
1196
|
-
declare const SHELL_FLOW_SETTINGS_PREFIX = "flowSettingsKey";
|
|
1197
|
-
declare const SHELL_FLOW_TIPS_KEY = "flowSettingsKey.tips";
|
|
1198
|
-
declare function readShellTipSettings(raw: unknown): ShellTipSettings | undefined;
|
|
1199
|
-
declare function shellSettingsFromFlowSettings(dict: Record<string, string> | null | undefined): ShellTipsLevel;
|
|
1200
|
-
declare function flowSettingsFromShellSettings(settings: ShellTipsLevel): Record<string, string>;
|
|
1201
|
-
declare function shellSettingsFromCompanyTips(enabled: unknown, options: unknown): ShellTipsLevel;
|
|
1202
|
-
|
|
1203
|
-
declare function emailKey(email: string | null | undefined): string | null;
|
|
1204
|
-
declare function phoneKey(phone: string | null | undefined): string | null;
|
|
1205
|
-
declare const CUSTOMER_CONTACT_VERIFIED = "CUSTOMER_CONTACT_VERIFIED";
|
|
1206
|
-
declare const CUSTOMER_EMAIL_TAKEN = "CUSTOMER_EMAIL_TAKEN";
|
|
1207
|
-
type ContactSide = {
|
|
1208
|
-
email?: string | null;
|
|
1209
|
-
phone?: string | null;
|
|
1108
|
+
interface VariantCostSources {
|
|
1109
|
+
costPrice?: number | null;
|
|
1110
|
+
costPriceUpdatedAt?: Date | string | null;
|
|
1111
|
+
landedCost?: number | null;
|
|
1112
|
+
lastReceivedAt?: Date | string | null;
|
|
1113
|
+
}
|
|
1114
|
+
declare function variantCostAtSale({ costPrice, costPriceUpdatedAt, landedCost, lastReceivedAt, }: VariantCostSources): number | null;
|
|
1115
|
+
declare function compositeCostOfKnown(items: readonly {
|
|
1116
|
+
cost: number | null;
|
|
1117
|
+
quantity: number;
|
|
1118
|
+
}[]): number | null;
|
|
1119
|
+
interface CostRangeOption {
|
|
1120
|
+
name: string;
|
|
1121
|
+
quantity: number;
|
|
1122
|
+
low: number | null;
|
|
1123
|
+
high: number | null;
|
|
1124
|
+
missing: string[];
|
|
1125
|
+
}
|
|
1126
|
+
interface CostRangePart {
|
|
1127
|
+
minPicks: number;
|
|
1128
|
+
maxPicks: number;
|
|
1129
|
+
options: CostRangeOption[];
|
|
1130
|
+
}
|
|
1131
|
+
interface PartsCost {
|
|
1132
|
+
range: [number, number] | null;
|
|
1133
|
+
missing: string[];
|
|
1134
|
+
}
|
|
1135
|
+
declare function compositeCostRange(parts: readonly CostRangePart[]): PartsCost;
|
|
1136
|
+
declare function innerCompositeOption(name: string, quantity: number, cost: PartsCost): CostRangeOption;
|
|
1137
|
+
interface VariantNameFields {
|
|
1138
|
+
attributes?: {
|
|
1139
|
+
value?: string;
|
|
1140
|
+
values?: string[];
|
|
1141
|
+
}[] | null;
|
|
1142
|
+
name?: string | null;
|
|
1143
|
+
sku?: string | null;
|
|
1144
|
+
}
|
|
1145
|
+
declare function variantLabel(variant: VariantNameFields, variantCount: number): string;
|
|
1146
|
+
declare function variantDisplayName(productName: string, variant: VariantNameFields, variantCount: number): string;
|
|
1147
|
+
declare function costPriceChangeStamp(next: number | null | undefined, stored?: number | null): {
|
|
1148
|
+
costPriceUpdatedAt?: Date;
|
|
1210
1149
|
};
|
|
1211
|
-
declare function
|
|
1212
|
-
|
|
1213
|
-
|
|
1150
|
+
declare function bankersRoundDiv(numerator: bigint, denominator: bigint): bigint;
|
|
1151
|
+
declare function landedCostPerUnit(landedValue: number, baseQuantity: number, ratioToBase?: number): number;
|
|
1152
|
+
interface LandedCostBook {
|
|
1153
|
+
totalLandedValue: number;
|
|
1154
|
+
totalQuantity: number;
|
|
1155
|
+
}
|
|
1156
|
+
declare const bookCostPerUnit: (book: LandedCostBook | null | undefined, ratioToBase: number | undefined) => number | null;
|
|
1157
|
+
declare const marginPercentOf: (grossProfit: number | null, costedGross: number | null) => number | null;
|
|
1214
1158
|
|
|
1215
1159
|
declare const SYSTEM_FAMILY_IDS: {
|
|
1216
1160
|
readonly COUNT: "count";
|
|
@@ -1238,6 +1182,10 @@ declare const DEFAULT_UNIT_ID: "EA";
|
|
|
1238
1182
|
declare function isWhole(value: number): boolean;
|
|
1239
1183
|
declare const MAX_PRECISION = 5;
|
|
1240
1184
|
declare function resolveUnit(unitId: string, companyUnits?: readonly MeasurementUnit[]): MeasurementUnit;
|
|
1185
|
+
declare function attachResolvedUnits<V extends {
|
|
1186
|
+
unitId?: string;
|
|
1187
|
+
unit?: MeasurementUnit;
|
|
1188
|
+
}>(variants: V[], companyUnits: readonly MeasurementUnit[], logLabel?: string): V[];
|
|
1241
1189
|
declare function resolveFamily(familyId: string, companyFamilies?: readonly MeasurementUnitFamily[]): MeasurementUnitFamily;
|
|
1242
1190
|
declare function baseOf(familyId: string, companyFamilies?: readonly MeasurementUnitFamily[]): MeasurementBase;
|
|
1243
1191
|
declare function baseFor(unit: MeasurementUnit, companyFamilies?: readonly MeasurementUnitFamily[]): MeasurementBase;
|
|
@@ -1259,7 +1207,7 @@ declare function isSystemFamilyCode(code: string): boolean;
|
|
|
1259
1207
|
declare function deriveUnitId(abbreviation: string, documentId: string): string;
|
|
1260
1208
|
|
|
1261
1209
|
type PaymentState = 'unpaid' | 'payment_pending' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
|
|
1262
|
-
type FulfillmentState = 'draft' | 'pending' | 'on_hold' | 'in_progress' | 'fulfilled' | 'partially_fulfilled' | '
|
|
1210
|
+
type FulfillmentState = 'draft' | 'pending' | 'on_hold' | 'in_progress' | 'fulfilled' | 'partially_fulfilled' | 'returned' | 'partially_returned' | 'cancelled';
|
|
1263
1211
|
declare const PAYMENT_STATES: readonly PaymentState[];
|
|
1264
1212
|
declare const FULFILLMENT_STATES: readonly FulfillmentState[];
|
|
1265
1213
|
declare function isPaymentState(value: string): value is PaymentState;
|
|
@@ -1933,8 +1881,6 @@ interface ShippingOptionRule {
|
|
|
1933
1881
|
freeOver?: number | null;
|
|
1934
1882
|
minDays?: number | null;
|
|
1935
1883
|
maxDays?: number | null;
|
|
1936
|
-
minMinutes?: number | null;
|
|
1937
|
-
maxMinutes?: number | null;
|
|
1938
1884
|
channels: (ShippingChannel | `${ShippingChannel}`)[];
|
|
1939
1885
|
outletId?: string | null;
|
|
1940
1886
|
}
|
|
@@ -1970,8 +1916,6 @@ interface ShippingQuoteOption {
|
|
|
1970
1916
|
amountToFree: number | null;
|
|
1971
1917
|
minDays: number | null;
|
|
1972
1918
|
maxDays: number | null;
|
|
1973
|
-
minMinutes: number | null;
|
|
1974
|
-
maxMinutes: number | null;
|
|
1975
1919
|
outletId: string | null;
|
|
1976
1920
|
}
|
|
1977
1921
|
interface ShippingResolution {
|
|
@@ -2021,248 +1965,12 @@ declare function addressPlaceKeys(address: NormalizedAddress): string[];
|
|
|
2021
1965
|
declare function resolveShipping({ zones, address, itemsTotal, channel }: ResolveShippingInput): ShippingResolution;
|
|
2022
1966
|
declare function priceForTotal(option: ShippingOptionRule, itemsTotal: number): number;
|
|
2023
1967
|
|
|
2024
|
-
interface ShippingDuration {
|
|
2025
|
-
unit: 'minute' | 'hour';
|
|
2026
|
-
min: number;
|
|
2027
|
-
max: number;
|
|
2028
|
-
}
|
|
2029
|
-
declare function shippingDuration(minMinutes: number | null | undefined, maxMinutes: number | null | undefined): ShippingDuration | null;
|
|
2030
|
-
declare function formatShippingDuration(minMinutes: number | null | undefined, maxMinutes: number | null | undefined, locale?: string, display?: 'long' | 'short'): string | null;
|
|
2031
|
-
|
|
2032
1968
|
interface ShippingZoneProblem {
|
|
2033
1969
|
code: ShippingZoneError;
|
|
2034
1970
|
optionId?: string;
|
|
2035
1971
|
}
|
|
2036
1972
|
declare function validateShippingZone(zone: ShippingZoneRule): ShippingZoneProblem[];
|
|
2037
1973
|
|
|
2038
|
-
interface TaxRegistration {
|
|
2039
|
-
kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
|
|
2040
|
-
place: string;
|
|
2041
|
-
number?: string | null;
|
|
2042
|
-
from?: string | null;
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
declare const STANDARD_TAX_TYPE = "standard";
|
|
2046
|
-
type AutomaticTaxRowStatus = 'confirmed' | 'to_confirm';
|
|
2047
|
-
interface AutomaticTaxTypeRow {
|
|
2048
|
-
key: string;
|
|
2049
|
-
name: string;
|
|
2050
|
-
description?: string | null;
|
|
2051
|
-
sortOrder: number;
|
|
2052
|
-
active: boolean;
|
|
2053
|
-
}
|
|
2054
|
-
interface AutomaticTaxPart {
|
|
2055
|
-
code: string;
|
|
2056
|
-
name: string;
|
|
2057
|
-
rate: string;
|
|
2058
|
-
level: 'federal' | 'provincial';
|
|
2059
|
-
}
|
|
2060
|
-
interface AutomaticTaxRateRow {
|
|
2061
|
-
code: string;
|
|
2062
|
-
name: string;
|
|
2063
|
-
kind: TaxRegistrationKind | `${TaxRegistrationKind}`;
|
|
2064
|
-
places: string[];
|
|
2065
|
-
rate: string;
|
|
2066
|
-
from?: string | null;
|
|
2067
|
-
to?: string | null;
|
|
2068
|
-
order: number;
|
|
2069
|
-
compound: boolean;
|
|
2070
|
-
registrationPlace: string;
|
|
2071
|
-
harmonized: boolean;
|
|
2072
|
-
parts?: AutomaticTaxPart[] | null;
|
|
2073
|
-
sourceUrl?: string | null;
|
|
2074
|
-
status: AutomaticTaxRowStatus;
|
|
2075
|
-
}
|
|
2076
|
-
interface AutomaticTaxRuleRow {
|
|
2077
|
-
taxType: string;
|
|
2078
|
-
codes: string[];
|
|
2079
|
-
rate: string;
|
|
2080
|
-
from?: string | null;
|
|
2081
|
-
to?: string | null;
|
|
2082
|
-
sourceUrl?: string | null;
|
|
2083
|
-
status: AutomaticTaxRowStatus;
|
|
2084
|
-
note?: string | null;
|
|
2085
|
-
}
|
|
2086
|
-
interface AutomaticTaxTable {
|
|
2087
|
-
version: string;
|
|
2088
|
-
types: AutomaticTaxTypeRow[];
|
|
2089
|
-
rates: AutomaticTaxRateRow[];
|
|
2090
|
-
rules: AutomaticTaxRuleRow[];
|
|
2091
|
-
}
|
|
2092
|
-
declare function automaticTaxTableVersion(table: Omit<AutomaticTaxTable, 'version'>): string;
|
|
2093
|
-
declare function buildAutomaticTaxTable(rows: {
|
|
2094
|
-
types: readonly AutomaticTaxTypeRow[];
|
|
2095
|
-
rates: readonly AutomaticTaxRateRow[];
|
|
2096
|
-
rules: readonly AutomaticTaxRuleRow[];
|
|
2097
|
-
}): AutomaticTaxTable;
|
|
2098
|
-
declare function registrationPlacesByKind(rates: readonly AutomaticTaxRateRow[]): ReadonlyMap<string, readonly string[]>;
|
|
2099
|
-
|
|
2100
|
-
declare function sha1Hex(text: string): string;
|
|
2101
|
-
|
|
2102
|
-
interface CartAddress {
|
|
2103
|
-
firstName?: string;
|
|
2104
|
-
lastName?: string;
|
|
2105
|
-
address1?: string;
|
|
2106
|
-
address2?: string;
|
|
2107
|
-
city?: string;
|
|
2108
|
-
state?: string;
|
|
2109
|
-
postCode?: string;
|
|
2110
|
-
country?: string;
|
|
2111
|
-
fromCustomer?: boolean;
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
type ShopperScope = {
|
|
2115
|
-
kind: 'all';
|
|
2116
|
-
} | {
|
|
2117
|
-
kind: 'store';
|
|
2118
|
-
companyId: string;
|
|
2119
|
-
};
|
|
2120
|
-
interface ShopperIdentity {
|
|
2121
|
-
id: string;
|
|
2122
|
-
emails: string[];
|
|
2123
|
-
scope: ShopperScope;
|
|
2124
|
-
}
|
|
2125
|
-
type ShopperOrderStatus = 'paid' | 'partially_refunded' | 'refunded' | 'cancelled';
|
|
2126
|
-
interface ShopperStoreRef {
|
|
2127
|
-
companyId: string;
|
|
2128
|
-
name: string;
|
|
2129
|
-
logo: string | null;
|
|
2130
|
-
}
|
|
2131
|
-
interface ShopperOrderRow {
|
|
2132
|
-
orderId: string;
|
|
2133
|
-
receiptId: string;
|
|
2134
|
-
placedAt: string;
|
|
2135
|
-
store: ShopperStoreRef;
|
|
2136
|
-
paymentState: PaymentState;
|
|
2137
|
-
fulfillmentState: FulfillmentState;
|
|
2138
|
-
displayState: string;
|
|
2139
|
-
status?: ShopperOrderStatus;
|
|
2140
|
-
total: number;
|
|
2141
|
-
currency: CurrencyCode | null;
|
|
2142
|
-
itemCount: number;
|
|
2143
|
-
}
|
|
2144
|
-
interface ShopperOrderItem {
|
|
2145
|
-
lineId: string;
|
|
2146
|
-
name: string;
|
|
2147
|
-
variant: string | null;
|
|
2148
|
-
quantity: number;
|
|
2149
|
-
total: number;
|
|
2150
|
-
}
|
|
2151
|
-
interface ShopperOrderTotals {
|
|
2152
|
-
subtotal: number;
|
|
2153
|
-
discount: number;
|
|
2154
|
-
tax: number;
|
|
2155
|
-
shipping: number;
|
|
2156
|
-
refunded: number;
|
|
2157
|
-
}
|
|
2158
|
-
interface ShopperCard {
|
|
2159
|
-
brand: string;
|
|
2160
|
-
lastFour: string;
|
|
2161
|
-
}
|
|
2162
|
-
type ShopperPaymentKind = 'card' | 'cash' | 'gift_card' | 'pay_later' | 'other';
|
|
2163
|
-
interface ShopperPayment {
|
|
2164
|
-
kind: ShopperPaymentKind;
|
|
2165
|
-
name: string | null;
|
|
2166
|
-
lastFour: string | null;
|
|
2167
|
-
amount: number;
|
|
2168
|
-
}
|
|
2169
|
-
interface ShopperOrderDetail extends ShopperOrderRow {
|
|
2170
|
-
items: ShopperOrderItem[];
|
|
2171
|
-
totals: ShopperOrderTotals;
|
|
2172
|
-
card: ShopperCard | null;
|
|
2173
|
-
payments?: ShopperPayment[];
|
|
2174
|
-
delivery: {
|
|
2175
|
-
type: 'pickup' | 'shipping';
|
|
2176
|
-
place: string | null;
|
|
2177
|
-
} | null;
|
|
2178
|
-
returnRequestedAt: string | null;
|
|
2179
|
-
returnRequest: ShopperReturnRequestState | null;
|
|
2180
|
-
}
|
|
2181
|
-
interface ShopperPaymentMethod {
|
|
2182
|
-
id: string;
|
|
2183
|
-
brand: string;
|
|
2184
|
-
lastFour: string;
|
|
2185
|
-
expiryMonth: string;
|
|
2186
|
-
expiryYear: string;
|
|
2187
|
-
holderName: string | null;
|
|
2188
|
-
isDefault: boolean;
|
|
2189
|
-
}
|
|
2190
|
-
interface ShopperStore extends ShopperStoreRef {
|
|
2191
|
-
city: string | null;
|
|
2192
|
-
email: string | null;
|
|
2193
|
-
phone: string | null;
|
|
2194
|
-
website: string | null;
|
|
2195
|
-
returnPolicy: string | null;
|
|
2196
|
-
news: boolean;
|
|
2197
|
-
orderCount: number;
|
|
2198
|
-
}
|
|
2199
|
-
declare const SHOPPER_CONSENT_SOURCES: readonly ["checkout", "my-account", "store-account"];
|
|
2200
|
-
type ShopperConsentSource = (typeof SHOPPER_CONSENT_SOURCES)[number];
|
|
2201
|
-
interface ShopperSavedAddress extends Omit<CartAddress, 'fromCustomer'> {
|
|
2202
|
-
id: string;
|
|
2203
|
-
label: string | null;
|
|
2204
|
-
isDefault: boolean;
|
|
2205
|
-
}
|
|
2206
|
-
type ShopperAddressInput = Omit<ShopperSavedAddress, 'id' | 'isDefault'>;
|
|
2207
|
-
interface ShopperNotificationChoices {
|
|
2208
|
-
sms: boolean;
|
|
2209
|
-
push: boolean;
|
|
2210
|
-
}
|
|
2211
|
-
interface ShopperProfile {
|
|
2212
|
-
phone: string | null;
|
|
2213
|
-
addresses: ShopperSavedAddress[];
|
|
2214
|
-
defaultCardId: string | null;
|
|
2215
|
-
notifications: ShopperNotificationChoices;
|
|
2216
|
-
}
|
|
2217
|
-
declare const SHOPPER_RETURN_METHODS: readonly ["mail", "in-store"];
|
|
2218
|
-
type ShopperReturnMethod = (typeof SHOPPER_RETURN_METHODS)[number];
|
|
2219
|
-
declare const SHOPPER_RETURN_STATUSES: readonly ["requested", "accepted", "declined"];
|
|
2220
|
-
type ShopperReturnStatus = (typeof SHOPPER_RETURN_STATUSES)[number];
|
|
2221
|
-
declare const SHOPPER_RETURN_DECLINE_REASON_MAX = 500;
|
|
2222
|
-
interface ShopperReturnRequestState {
|
|
2223
|
-
status: ShopperReturnStatus;
|
|
2224
|
-
requestedAt: string;
|
|
2225
|
-
decidedAt: string | null;
|
|
2226
|
-
declineReason: string | null;
|
|
2227
|
-
}
|
|
2228
|
-
interface ShopperReturnRequestInput {
|
|
2229
|
-
items: {
|
|
2230
|
-
lineId: string;
|
|
2231
|
-
quantity: number;
|
|
2232
|
-
}[];
|
|
2233
|
-
method: ShopperReturnMethod;
|
|
2234
|
-
note?: string;
|
|
2235
|
-
}
|
|
2236
|
-
declare const SHOPPER_ERROR_CODES: {
|
|
2237
|
-
readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
|
|
2238
|
-
readonly RETURN_ALREADY_REQUESTED: "RETURN_ALREADY_REQUESTED";
|
|
2239
|
-
readonly RETURN_NOT_ALLOWED: "RETURN_NOT_ALLOWED";
|
|
2240
|
-
readonly RETURN_ALREADY_DECIDED: "RETURN_ALREADY_DECIDED";
|
|
2241
|
-
readonly STORE_HAS_NO_SUPPORT_EMAIL: "STORE_HAS_NO_SUPPORT_EMAIL";
|
|
2242
|
-
readonly TOO_MANY_ADDRESSES: "TOO_MANY_ADDRESSES";
|
|
2243
|
-
readonly STORE_NOT_LINKED: "STORE_NOT_LINKED";
|
|
2244
|
-
readonly STORED_METHOD_NOT_FOUND: "STORED_METHOD_NOT_FOUND";
|
|
2245
|
-
};
|
|
2246
|
-
type ShopperErrorCode = (typeof SHOPPER_ERROR_CODES)[keyof typeof SHOPPER_ERROR_CODES];
|
|
2247
|
-
|
|
2248
|
-
declare function normalizeShopperEmail(email: unknown): string | null;
|
|
2249
|
-
|
|
2250
|
-
declare function cardFromProcessorData(processorData: unknown): {
|
|
2251
|
-
cardBrand?: string;
|
|
2252
|
-
cardLastFour?: string;
|
|
2253
|
-
cardIssuer?: string;
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
type PaymentLegLike = {
|
|
2257
|
-
paymentType?: string;
|
|
2258
|
-
amount?: number;
|
|
2259
|
-
tip?: {
|
|
2260
|
-
amount?: number;
|
|
2261
|
-
} | null;
|
|
2262
|
-
emv?: string | null;
|
|
2263
|
-
};
|
|
2264
|
-
declare function shopperPaymentsOf(legs: readonly PaymentLegLike[] | null | undefined): ShopperPayment[];
|
|
2265
|
-
|
|
2266
1974
|
interface CurrencyRate {
|
|
2267
1975
|
rate: number;
|
|
2268
1976
|
country: string;
|
|
@@ -2331,4 +2039,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
|
|
|
2331
2039
|
}];
|
|
2332
2040
|
type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
|
|
2333
2041
|
|
|
2334
|
-
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_SHELL_SETTINGS, 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 ResolvedShellSettings, type ResolvedShellTipSettings, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, SHELL_FLOW_SETTINGS_PREFIX, SHELL_FLOW_TIPS_KEY, SHELL_TIP_LABEL_MAX_LENGTH, SHELL_TIP_PERCENT_MAX, SHELL_TIP_PERCENT_MIN, 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, type ShellSettings, type ShellSettingsLevels, type ShellSettingsProblem, type ShellSettingsProblemCode, type ShellSettingsSource, type ShellSettingsSources, type ShellStationField, type ShellTipField, type ShellTipOption, type ShellTipSettings, type ShellTipsLevel, 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, flowSettingsFromShellSettings, 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, isShellTipPercent, 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, readShellTipSettings, registrationPlacesByKind, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShellSettings, resolveShellSettingsWithSources, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, sha1Hex, shellSettingsFromCompanyTips, shellSettingsFromFlowSettings, shellSettingsProblems, shellTipSettingsProblems, shippingDuration, shipsToCountry, shopDayKey, shopDayRange, shopperPaymentsOf, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, verifiedContactChange, violatesFinancialInvariant, windowEndsAt, withinPresence };
|
|
2042
|
+
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 CostRangeOption, type CostRangePart, 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, type LandedCostBook, 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 PartsCost, 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 VariantCostSources, type VariantNameFields, type WeeklyHours, addAmounts, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, applyAssignment, assertUnitSane, attachResolvedUnits, availableIn, bankersRoundDiv, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, bookCostPerUnit, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, componentUnitsPerLine, compositeCostOfKnown, compositeCostRange, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, costPriceChangeStamp, 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, innerCompositeOption, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isInnerComposite, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, landedCostPerUnit, lineStockMoves, listCountries, listProvinces, listShippingCountries, mapToLegacyStatus, marginPercentOf, 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, shelfComponents, shipsToCountry, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, variantCostAtSale, variantDisplayName, variantLabel, violatesFinancialInvariant, windowEndsAt, withinPresence };
|