@final-commerce/common 2.8.0 → 2.8.1-online.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +205 -2
- package/dist/index.d.ts +205 -2
- package/dist/index.js +473 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +448 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +305 -226
- package/dist/pos-types/index.d.ts +305 -226
- package/dist/pos-types/index.js +1 -0
- package/dist/pos-types/index.js.map +1 -1
- package/dist/pos-types/index.mjs +1 -0
- package/dist/pos-types/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -50,231 +50,6 @@ interface OrderTax {
|
|
|
50
50
|
priority?: number;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
interface OrderTip {
|
|
54
|
-
percentage?: number;
|
|
55
|
-
amount?: number;
|
|
56
|
-
tipTo?: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface OrderSummaryPayments {
|
|
60
|
-
cardTotal: number;
|
|
61
|
-
cashTotal: number;
|
|
62
|
-
customTotal: number;
|
|
63
|
-
cardProcessingFeesTotal: number;
|
|
64
|
-
}
|
|
65
|
-
interface OrderSummary {
|
|
66
|
-
discountTotal: number;
|
|
67
|
-
shippingTotal?: number;
|
|
68
|
-
total: number;
|
|
69
|
-
totalTaxes: number;
|
|
70
|
-
isTaxInclusive: boolean;
|
|
71
|
-
subtotalAfterFees: number;
|
|
72
|
-
nonRevenueTotal?: number;
|
|
73
|
-
grossSales?: number;
|
|
74
|
-
lineDiscountTotal?: number;
|
|
75
|
-
cartDiscountTotal?: number;
|
|
76
|
-
feesTotal?: number;
|
|
77
|
-
lineFeesTotal?: number;
|
|
78
|
-
cartFeesTotal?: number;
|
|
79
|
-
taxableFeesTotal?: number;
|
|
80
|
-
nonTaxableFeesTotal?: number;
|
|
81
|
-
modifiersTotal?: number;
|
|
82
|
-
taxableModifiersTotal?: number;
|
|
83
|
-
nonTaxableModifiersTotal?: number;
|
|
84
|
-
totalTaxableSales?: number;
|
|
85
|
-
totalNonTaxableSales?: number;
|
|
86
|
-
tipTotal?: number;
|
|
87
|
-
cashRounding: number;
|
|
88
|
-
payments?: OrderSummaryPayments;
|
|
89
|
-
totalBeforeTip?: number;
|
|
90
|
-
amountPaid?: number;
|
|
91
|
-
taxes: OrderTax[];
|
|
92
|
-
tip?: OrderTip;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
interface PriceModifierDetail {
|
|
96
|
-
percentage: number;
|
|
97
|
-
amount: number;
|
|
98
|
-
label?: string;
|
|
99
|
-
tax?: number;
|
|
100
|
-
taxTableId?: string;
|
|
101
|
-
taxRateId?: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface OrderCartDiscount {
|
|
105
|
-
amount: number;
|
|
106
|
-
percentage: number;
|
|
107
|
-
label?: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface OrderCartFee {
|
|
111
|
-
label: string;
|
|
112
|
-
id: string;
|
|
113
|
-
percentage: number;
|
|
114
|
-
amount: number;
|
|
115
|
-
taxName?: string;
|
|
116
|
-
taxTableId?: string;
|
|
117
|
-
tax?: number;
|
|
118
|
-
taxes?: OrderTax[];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface OrderPaymentMethod {
|
|
122
|
-
paymentType: string;
|
|
123
|
-
amount: number;
|
|
124
|
-
transactionId: string;
|
|
125
|
-
timestamp?: string;
|
|
126
|
-
emv?: string | null;
|
|
127
|
-
cashRounding?: number;
|
|
128
|
-
change?: number;
|
|
129
|
-
processor?: string;
|
|
130
|
-
processorFee?: number;
|
|
131
|
-
tendered?: number;
|
|
132
|
-
tip?: OrderTip | null;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
interface OrderPosData {
|
|
136
|
-
outlet?: string;
|
|
137
|
-
station?: string;
|
|
138
|
-
employee?: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface OrderAssignedUser {
|
|
142
|
-
userId: string;
|
|
143
|
-
assignedAt: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface OrderInCart {
|
|
147
|
-
active: boolean;
|
|
148
|
-
stationId: string | null;
|
|
149
|
-
since: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface OrderCustomStatus {
|
|
153
|
-
id: string;
|
|
154
|
-
key?: string;
|
|
155
|
-
label: string;
|
|
156
|
-
setAt: string;
|
|
157
|
-
setBy: string | null;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
interface OrderLineItemDiscount {
|
|
161
|
-
itemDiscounts?: PriceModifierDetail[];
|
|
162
|
-
cartDiscount?: PriceModifierDetail;
|
|
163
|
-
}
|
|
164
|
-
interface OrderLineItemFee {
|
|
165
|
-
cartFee?: PriceModifierDetail;
|
|
166
|
-
itemFees?: PriceModifierDetail[];
|
|
167
|
-
}
|
|
168
|
-
interface OrderLineItemModifier {
|
|
169
|
-
modifierId: string;
|
|
170
|
-
modifierName: string;
|
|
171
|
-
choiceId: string;
|
|
172
|
-
choiceName: string;
|
|
173
|
-
unitPrice: number;
|
|
174
|
-
quantity: number;
|
|
175
|
-
total: number;
|
|
176
|
-
totalTax?: number;
|
|
177
|
-
taxes?: OrderTax[];
|
|
178
|
-
componentIndex?: number;
|
|
179
|
-
}
|
|
180
|
-
interface OrderLineItemComponent {
|
|
181
|
-
productId: string;
|
|
182
|
-
variantId: string;
|
|
183
|
-
name: string;
|
|
184
|
-
attributes?: string;
|
|
185
|
-
sku?: string;
|
|
186
|
-
productExternalId?: string;
|
|
187
|
-
variantExternalId?: string;
|
|
188
|
-
partName?: string;
|
|
189
|
-
quantity: number;
|
|
190
|
-
price: number;
|
|
191
|
-
unitId?: string;
|
|
192
|
-
unitAbbreviation?: string;
|
|
193
|
-
unitRatioToBase?: number;
|
|
194
|
-
stockQuantity?: number;
|
|
195
|
-
stockVariantId?: string;
|
|
196
|
-
manageStock?: boolean;
|
|
197
|
-
taxTableId?: string;
|
|
198
|
-
totalTax?: number;
|
|
199
|
-
taxes?: OrderTax[];
|
|
200
|
-
}
|
|
201
|
-
interface OrderLineItem {
|
|
202
|
-
id?: string;
|
|
203
|
-
productId?: string;
|
|
204
|
-
variantId?: string;
|
|
205
|
-
name?: string;
|
|
206
|
-
quantity?: number;
|
|
207
|
-
manageStock?: boolean;
|
|
208
|
-
price?: number;
|
|
209
|
-
description?: string;
|
|
210
|
-
sku?: string;
|
|
211
|
-
totalTax?: number;
|
|
212
|
-
total?: number;
|
|
213
|
-
productExternalId?: string;
|
|
214
|
-
variantExternalId?: string;
|
|
215
|
-
lineItemExternalId?: string;
|
|
216
|
-
internalId?: string;
|
|
217
|
-
note?: string;
|
|
218
|
-
image?: string;
|
|
219
|
-
attributes?: string;
|
|
220
|
-
taxes?: OrderTax[];
|
|
221
|
-
discount?: OrderLineItemDiscount;
|
|
222
|
-
fee?: OrderLineItemFee;
|
|
223
|
-
modifiers?: OrderLineItemModifier[];
|
|
224
|
-
components?: OrderLineItemComponent[];
|
|
225
|
-
lineNetWithFees?: number;
|
|
226
|
-
metadata?: Metadata[];
|
|
227
|
-
stock?: number;
|
|
228
|
-
subTotal?: number;
|
|
229
|
-
unitId?: string;
|
|
230
|
-
unitAbbreviation?: string;
|
|
231
|
-
stockQuantity?: number;
|
|
232
|
-
unitRatioToBase?: number;
|
|
233
|
-
stockVariantId?: string;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
interface OrderCustomSaleDiscount {
|
|
237
|
-
cartDiscount: OrderCartDiscount;
|
|
238
|
-
}
|
|
239
|
-
interface OrderCustomSaleFee {
|
|
240
|
-
cartFee: PriceModifierDetail;
|
|
241
|
-
}
|
|
242
|
-
interface OrderCustomSale {
|
|
243
|
-
customSaleId: string;
|
|
244
|
-
applyTaxes: boolean;
|
|
245
|
-
quantity: number;
|
|
246
|
-
name: string;
|
|
247
|
-
price: number;
|
|
248
|
-
totalTax: number;
|
|
249
|
-
total: number;
|
|
250
|
-
taxes?: OrderTax[];
|
|
251
|
-
discount?: OrderCustomSaleDiscount;
|
|
252
|
-
fee?: OrderCustomSaleFee;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
interface OrderRefundSummary {
|
|
256
|
-
total?: number;
|
|
257
|
-
}
|
|
258
|
-
interface OrderRefund {
|
|
259
|
-
externalId?: string;
|
|
260
|
-
reason?: string;
|
|
261
|
-
summary?: OrderRefundSummary;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface RefundCartDiscount {
|
|
265
|
-
amount?: number;
|
|
266
|
-
percentage?: number;
|
|
267
|
-
}
|
|
268
|
-
interface RefundItemDiscount {
|
|
269
|
-
amount?: number;
|
|
270
|
-
percentage?: number;
|
|
271
|
-
label?: string;
|
|
272
|
-
}
|
|
273
|
-
interface RefundDiscount {
|
|
274
|
-
cartDiscount?: RefundCartDiscount;
|
|
275
|
-
itemDiscounts?: RefundItemDiscount[];
|
|
276
|
-
}
|
|
277
|
-
|
|
278
53
|
declare enum CurrencyCode {
|
|
279
54
|
USD = "USD",
|
|
280
55
|
EUR = "EUR",
|
|
@@ -545,6 +320,255 @@ declare enum ReservationStatus {
|
|
|
545
320
|
EXPIRED = "expired"
|
|
546
321
|
}
|
|
547
322
|
|
|
323
|
+
declare enum ShippingOptionType {
|
|
324
|
+
SHIP = "ship",
|
|
325
|
+
PICKUP = "pickup"
|
|
326
|
+
}
|
|
327
|
+
declare enum ShippingRateType {
|
|
328
|
+
FLAT = "flat"
|
|
329
|
+
}
|
|
330
|
+
declare enum ShippingChannel {
|
|
331
|
+
WEB = "web",
|
|
332
|
+
POS = "pos"
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface OrderShippingLine {
|
|
336
|
+
type: ShippingOptionType | `${ShippingOptionType}`;
|
|
337
|
+
name?: string;
|
|
338
|
+
amount: number;
|
|
339
|
+
zoneId?: string;
|
|
340
|
+
optionId?: string;
|
|
341
|
+
minDays?: number;
|
|
342
|
+
maxDays?: number;
|
|
343
|
+
pickupOutletId?: string;
|
|
344
|
+
taxes?: OrderTax[];
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface OrderTip {
|
|
348
|
+
percentage?: number;
|
|
349
|
+
amount?: number;
|
|
350
|
+
tipTo?: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
interface OrderSummaryPayments {
|
|
354
|
+
cardTotal: number;
|
|
355
|
+
cashTotal: number;
|
|
356
|
+
customTotal: number;
|
|
357
|
+
cardProcessingFeesTotal: number;
|
|
358
|
+
}
|
|
359
|
+
interface OrderSummary {
|
|
360
|
+
discountTotal: number;
|
|
361
|
+
shippingTotal?: number;
|
|
362
|
+
total: number;
|
|
363
|
+
totalTaxes: number;
|
|
364
|
+
isTaxInclusive: boolean;
|
|
365
|
+
subtotalAfterFees: number;
|
|
366
|
+
nonRevenueTotal?: number;
|
|
367
|
+
grossSales?: number;
|
|
368
|
+
lineDiscountTotal?: number;
|
|
369
|
+
cartDiscountTotal?: number;
|
|
370
|
+
feesTotal?: number;
|
|
371
|
+
lineFeesTotal?: number;
|
|
372
|
+
cartFeesTotal?: number;
|
|
373
|
+
taxableFeesTotal?: number;
|
|
374
|
+
nonTaxableFeesTotal?: number;
|
|
375
|
+
modifiersTotal?: number;
|
|
376
|
+
taxableModifiersTotal?: number;
|
|
377
|
+
nonTaxableModifiersTotal?: number;
|
|
378
|
+
totalTaxableSales?: number;
|
|
379
|
+
totalNonTaxableSales?: number;
|
|
380
|
+
tipTotal?: number;
|
|
381
|
+
cashRounding: number;
|
|
382
|
+
payments?: OrderSummaryPayments;
|
|
383
|
+
totalBeforeTip?: number;
|
|
384
|
+
amountPaid?: number;
|
|
385
|
+
taxes: OrderTax[];
|
|
386
|
+
tip?: OrderTip;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
interface PriceModifierDetail {
|
|
390
|
+
percentage: number;
|
|
391
|
+
amount: number;
|
|
392
|
+
label?: string;
|
|
393
|
+
tax?: number;
|
|
394
|
+
taxTableId?: string;
|
|
395
|
+
taxRateId?: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
interface OrderCartDiscount {
|
|
399
|
+
amount: number;
|
|
400
|
+
percentage: number;
|
|
401
|
+
label?: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
interface OrderCartFee {
|
|
405
|
+
label: string;
|
|
406
|
+
id: string;
|
|
407
|
+
percentage: number;
|
|
408
|
+
amount: number;
|
|
409
|
+
taxName?: string;
|
|
410
|
+
taxTableId?: string;
|
|
411
|
+
tax?: number;
|
|
412
|
+
taxes?: OrderTax[];
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
interface OrderPaymentMethod {
|
|
416
|
+
paymentType: string;
|
|
417
|
+
amount: number;
|
|
418
|
+
transactionId: string;
|
|
419
|
+
timestamp?: string;
|
|
420
|
+
emv?: string | null;
|
|
421
|
+
cashRounding?: number;
|
|
422
|
+
change?: number;
|
|
423
|
+
processor?: string;
|
|
424
|
+
processorFee?: number;
|
|
425
|
+
tendered?: number;
|
|
426
|
+
tip?: OrderTip | null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
interface OrderPosData {
|
|
430
|
+
outlet?: string;
|
|
431
|
+
station?: string;
|
|
432
|
+
employee?: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
interface OrderAssignedUser {
|
|
436
|
+
userId: string;
|
|
437
|
+
assignedAt: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
interface OrderInCart {
|
|
441
|
+
active: boolean;
|
|
442
|
+
stationId: string | null;
|
|
443
|
+
since: string;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
interface OrderCustomStatus {
|
|
447
|
+
id: string;
|
|
448
|
+
key?: string;
|
|
449
|
+
label: string;
|
|
450
|
+
setAt: string;
|
|
451
|
+
setBy: string | null;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
interface OrderLineItemDiscount {
|
|
455
|
+
itemDiscounts?: PriceModifierDetail[];
|
|
456
|
+
cartDiscount?: PriceModifierDetail;
|
|
457
|
+
}
|
|
458
|
+
interface OrderLineItemFee {
|
|
459
|
+
cartFee?: PriceModifierDetail;
|
|
460
|
+
itemFees?: PriceModifierDetail[];
|
|
461
|
+
}
|
|
462
|
+
interface OrderLineItemModifier {
|
|
463
|
+
modifierId: string;
|
|
464
|
+
modifierName: string;
|
|
465
|
+
choiceId: string;
|
|
466
|
+
choiceName: string;
|
|
467
|
+
unitPrice: number;
|
|
468
|
+
quantity: number;
|
|
469
|
+
total: number;
|
|
470
|
+
totalTax?: number;
|
|
471
|
+
taxes?: OrderTax[];
|
|
472
|
+
componentIndex?: number;
|
|
473
|
+
}
|
|
474
|
+
interface OrderLineItemComponent {
|
|
475
|
+
productId: string;
|
|
476
|
+
variantId: string;
|
|
477
|
+
name: string;
|
|
478
|
+
attributes?: string;
|
|
479
|
+
sku?: string;
|
|
480
|
+
productExternalId?: string;
|
|
481
|
+
variantExternalId?: string;
|
|
482
|
+
partName?: string;
|
|
483
|
+
quantity: number;
|
|
484
|
+
price: number;
|
|
485
|
+
unitId?: string;
|
|
486
|
+
unitAbbreviation?: string;
|
|
487
|
+
unitRatioToBase?: number;
|
|
488
|
+
stockQuantity?: number;
|
|
489
|
+
stockVariantId?: string;
|
|
490
|
+
manageStock?: boolean;
|
|
491
|
+
taxTableId?: string;
|
|
492
|
+
totalTax?: number;
|
|
493
|
+
taxes?: OrderTax[];
|
|
494
|
+
}
|
|
495
|
+
interface OrderLineItem {
|
|
496
|
+
id?: string;
|
|
497
|
+
productId?: string;
|
|
498
|
+
variantId?: string;
|
|
499
|
+
name?: string;
|
|
500
|
+
quantity?: number;
|
|
501
|
+
manageStock?: boolean;
|
|
502
|
+
price?: number;
|
|
503
|
+
description?: string;
|
|
504
|
+
sku?: string;
|
|
505
|
+
totalTax?: number;
|
|
506
|
+
total?: number;
|
|
507
|
+
productExternalId?: string;
|
|
508
|
+
variantExternalId?: string;
|
|
509
|
+
lineItemExternalId?: string;
|
|
510
|
+
internalId?: string;
|
|
511
|
+
note?: string;
|
|
512
|
+
image?: string;
|
|
513
|
+
attributes?: string;
|
|
514
|
+
taxes?: OrderTax[];
|
|
515
|
+
discount?: OrderLineItemDiscount;
|
|
516
|
+
fee?: OrderLineItemFee;
|
|
517
|
+
modifiers?: OrderLineItemModifier[];
|
|
518
|
+
components?: OrderLineItemComponent[];
|
|
519
|
+
lineNetWithFees?: number;
|
|
520
|
+
metadata?: Metadata[];
|
|
521
|
+
stock?: number;
|
|
522
|
+
subTotal?: number;
|
|
523
|
+
unitId?: string;
|
|
524
|
+
unitAbbreviation?: string;
|
|
525
|
+
stockQuantity?: number;
|
|
526
|
+
unitRatioToBase?: number;
|
|
527
|
+
stockVariantId?: string;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
interface OrderCustomSaleDiscount {
|
|
531
|
+
cartDiscount: OrderCartDiscount;
|
|
532
|
+
}
|
|
533
|
+
interface OrderCustomSaleFee {
|
|
534
|
+
cartFee: PriceModifierDetail;
|
|
535
|
+
}
|
|
536
|
+
interface OrderCustomSale {
|
|
537
|
+
customSaleId: string;
|
|
538
|
+
applyTaxes: boolean;
|
|
539
|
+
quantity: number;
|
|
540
|
+
name: string;
|
|
541
|
+
price: number;
|
|
542
|
+
totalTax: number;
|
|
543
|
+
total: number;
|
|
544
|
+
taxes?: OrderTax[];
|
|
545
|
+
discount?: OrderCustomSaleDiscount;
|
|
546
|
+
fee?: OrderCustomSaleFee;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
interface OrderRefundSummary {
|
|
550
|
+
total?: number;
|
|
551
|
+
}
|
|
552
|
+
interface OrderRefund {
|
|
553
|
+
externalId?: string;
|
|
554
|
+
reason?: string;
|
|
555
|
+
summary?: OrderRefundSummary;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
interface RefundCartDiscount {
|
|
559
|
+
amount?: number;
|
|
560
|
+
percentage?: number;
|
|
561
|
+
}
|
|
562
|
+
interface RefundItemDiscount {
|
|
563
|
+
amount?: number;
|
|
564
|
+
percentage?: number;
|
|
565
|
+
label?: string;
|
|
566
|
+
}
|
|
567
|
+
interface RefundDiscount {
|
|
568
|
+
cartDiscount?: RefundCartDiscount;
|
|
569
|
+
itemDiscounts?: RefundItemDiscount[];
|
|
570
|
+
}
|
|
571
|
+
|
|
548
572
|
interface RefundLineItem {
|
|
549
573
|
taxes?: OrderTax[];
|
|
550
574
|
discount?: RefundDiscount;
|
|
@@ -976,6 +1000,7 @@ interface Order extends BaseEntity {
|
|
|
976
1000
|
notes: OrderNote$1[];
|
|
977
1001
|
billing?: Address$1;
|
|
978
1002
|
shipping?: Address$1;
|
|
1003
|
+
shippingLine?: OrderShippingLine;
|
|
979
1004
|
lineItems: Partial<OrderLineItem>[];
|
|
980
1005
|
customSales?: OrderCustomSale[];
|
|
981
1006
|
nonRevenueItems?: NonRevenueItem$1[];
|
|
@@ -1889,6 +1914,12 @@ interface ActiveProduct {
|
|
|
1889
1914
|
modifierSelections?: ModifierSelection[];
|
|
1890
1915
|
modifiers?: CartLineModifier[];
|
|
1891
1916
|
components?: CartLineComponent[];
|
|
1917
|
+
compositePicks?: (CompositePick & {
|
|
1918
|
+
resourceId?: string;
|
|
1919
|
+
})[];
|
|
1920
|
+
compositeSlot?: {
|
|
1921
|
+
startAt: string;
|
|
1922
|
+
};
|
|
1892
1923
|
currency?: CurrencyCode;
|
|
1893
1924
|
minorUnits?: number;
|
|
1894
1925
|
isUnlimited?: boolean;
|
|
@@ -1907,6 +1938,48 @@ interface CartReservation extends OrderReservation {
|
|
|
1907
1938
|
fees?: CustomFee[];
|
|
1908
1939
|
}
|
|
1909
1940
|
|
|
1941
|
+
interface ShippingPriceTier {
|
|
1942
|
+
from: number;
|
|
1943
|
+
price: number;
|
|
1944
|
+
}
|
|
1945
|
+
interface ShippingOptionRule {
|
|
1946
|
+
id: string;
|
|
1947
|
+
type: ShippingOptionType | `${ShippingOptionType}`;
|
|
1948
|
+
rate?: ShippingRateType | `${ShippingRateType}`;
|
|
1949
|
+
name?: string | null;
|
|
1950
|
+
price: number;
|
|
1951
|
+
priceByTotal?: ShippingPriceTier[] | null;
|
|
1952
|
+
freeOver?: number | null;
|
|
1953
|
+
minDays?: number | null;
|
|
1954
|
+
maxDays?: number | null;
|
|
1955
|
+
channels: (ShippingChannel | `${ShippingChannel}`)[];
|
|
1956
|
+
outletId?: string | null;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
interface CartAddress {
|
|
1960
|
+
firstName?: string;
|
|
1961
|
+
lastName?: string;
|
|
1962
|
+
address1?: string;
|
|
1963
|
+
address2?: string;
|
|
1964
|
+
city?: string;
|
|
1965
|
+
state?: string;
|
|
1966
|
+
postCode?: string;
|
|
1967
|
+
country?: string;
|
|
1968
|
+
fromCustomer?: boolean;
|
|
1969
|
+
}
|
|
1970
|
+
interface CartShipping {
|
|
1971
|
+
zoneId: string;
|
|
1972
|
+
optionId: string;
|
|
1973
|
+
type: ShippingOptionType | `${ShippingOptionType}`;
|
|
1974
|
+
name: string | null;
|
|
1975
|
+
amount: number;
|
|
1976
|
+
taxes?: Tax[];
|
|
1977
|
+
minDays: number | null;
|
|
1978
|
+
maxDays: number | null;
|
|
1979
|
+
outletId: string | null;
|
|
1980
|
+
rule?: Pick<ShippingOptionRule, 'price' | 'priceByTotal' | 'freeOver'>;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1910
1983
|
interface ActiveCustomSales {
|
|
1911
1984
|
id: string;
|
|
1912
1985
|
name: string;
|
|
@@ -1942,6 +2015,10 @@ interface ActiveCart {
|
|
|
1942
2015
|
amountToBeCharged: number;
|
|
1943
2016
|
customer?: Partial<ActiveCustomer | null> | null;
|
|
1944
2017
|
orderNotes?: string;
|
|
2018
|
+
shippingAddress?: CartAddress | null;
|
|
2019
|
+
billingAddress?: CartAddress | null;
|
|
2020
|
+
shipping?: CartShipping | null;
|
|
2021
|
+
shippingTotal?: number;
|
|
1945
2022
|
cartTotal?: number;
|
|
1946
2023
|
orderTotal?: number;
|
|
1947
2024
|
orderId?: string;
|
|
@@ -2055,6 +2132,7 @@ declare enum ProcessorType {
|
|
|
2055
2132
|
REDEEM = "Redeem",
|
|
2056
2133
|
INTEGRATION = "Integration",
|
|
2057
2134
|
PAYMENT_LINK = "PaymentLink",
|
|
2135
|
+
ONLINE_PAYMENT = "OnlinePayment",
|
|
2058
2136
|
EXTERNAL = "External"
|
|
2059
2137
|
}
|
|
2060
2138
|
|
|
@@ -2265,6 +2343,7 @@ interface CalculatedTaxDetails {
|
|
|
2265
2343
|
};
|
|
2266
2344
|
totalTaxes: TaxesDetails;
|
|
2267
2345
|
cartFees: CartFeesDetails[];
|
|
2346
|
+
shipping?: CartFeesDetails;
|
|
2268
2347
|
}
|
|
2269
2348
|
interface TipData {
|
|
2270
2349
|
value: number;
|
|
@@ -2562,4 +2641,4 @@ interface PubsubEventMessage {
|
|
|
2562
2641
|
}
|
|
2563
2642
|
type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | RequestTokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | PrinterSettingsMessage | RuntimeReadyMessage | HostNavigateMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage | PubsubTopicsRequestMessage | PubsubTopicsListMessage | PubsubSubscribeMessage | PubsubEventMessage;
|
|
2564
2643
|
|
|
2565
|
-
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOrderReservation, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type AdyenCardEntryConfig, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type Booking, type BookingAvailability, type BookingResource, type BookingSlot, type BookingSlotResource, type BootstrapMessage, type CalculatedTaxDetails, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type CartLineComponent, type CartLineModifier, type CartReservation, type CashDrawerPolicy, type CashPaymentSettings, type CashRoundingIncrement, type Category, type CompanyExtension, type CompanySettingsEavValue, type CompanySettingsEavValueType, type Composite, type CompositeChoice, type CompositeItem, type CompositeItemUnavailable, type CompositePart, type CompositePick, type CustomExtension, type CustomFee, type CustomSale, type CustomSaleDetails, type CustomTable, type CustomTableField, type CustomTableMetadata, type CustomTableRow, type CustomTableValue, type Customer, type CustomerNote, type DeviceEnvAttribute, type DeviceEnvCategory, type DeviceEnvValue, type DeviceOpName, type DeviceOpRequestMessage, type DeviceOpResponseMessage, type Discount, type DiscountDetail, type DiscountLineItem, type Enrich, EnvironmentDataKeys, EnvironmentDataSubKeys, type FeeDetail, type FeeLineItem, type Flow, type FlowSettings, type FlowSettingsKey, type FlowWebApp, type FlowWebAppVersion, type FullProduct, type HostHelloMessage, type HostNavigateMessage, type HostNavigateTarget, type HostShutdownMessage, type Inventory, type LineItem, type Metadata, type MetadataItem, type ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderAssignedUser, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderCustomStatus, type OrderInCart, type OrderLineItem, type OrderLineItemComponent, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, type OrderReservation, type OrderStateActor, type OrderStateActorType, type OrderStateConfig, type OrderStateEvent, type OrderStateEventTrigger, type OrderStateHistoryEntry, type OrderStateOperation, type OrderStatePair, type OrderSummary, type OrderSummaryPayments, type OrderTax, type OrderTip, type Outlet, type PaymentMethod, type PaymentResponse, type PaymentSetting, PaymentStatus, type PosBrainReadyMessage, type PosDataItem, type PriceModifierDetail, type PrinterDetails, type PrinterSettings, type PrinterSettingsMessage, ProcessorType, type ProdDiscountBreakdown, type ProdFeeBreakdown, type ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, type ReaderCapabilities, type ReaderCapabilitiesMessage, type Refund, type RefundCartDiscount, type RefundDiscount, type RefundItem, type RefundItemDiscount, type RefundLineItem, type RefundPayment, type RefundProcessingStatus, type RefundSummary, type RefundTip, type RefundedCustomSale, type RefundedLineItem, type RefundedTipPayment, type RequestTokenRefreshMessage, type ResolvedModifier, type ResolvedModifierChoice, type Role, type RolePermission, type RuntimeReadyMessage, type SelectionContext, type SelectionFlowContext, type SelectionMessage, type SelectionRoleContext, type ServiceChannelMessage, type ServiceChannelMessageType, type ServiceInitMessage, type Session, type SessionClosingAmounts, type SmartGridSetting, type SmartGridSettings, type SmartGridSettingsData, type Station, type StripeAccount, type Summary, type SummaryPayments, type SyncProgressMessage, type Tax, type TaxRate, type TaxRateValue, type TaxTable, type TaxTableActive, type TaxTableRate, type TileGrid, type TimeClockEntry, type TimeClockEntryStatus, type Tip, type TipData, type TipPayment, type TipsDetails, type TokenRefreshMessage, type TopicDefinitionWire, type TopicEventWire, type Transaction, type TransactionPaymentData, type User, type UserType, type Variant, type VariantInventory };
|
|
2644
|
+
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOrderReservation, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type AdyenCardEntryConfig, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type Booking, type BookingAvailability, type BookingResource, type BookingSlot, type BookingSlotResource, type BootstrapMessage, type CalculatedTaxDetails, type CartAddress, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type CartLineComponent, type CartLineModifier, type CartReservation, type CartShipping, type CashDrawerPolicy, type CashPaymentSettings, type CashRoundingIncrement, type Category, type CompanyExtension, type CompanySettingsEavValue, type CompanySettingsEavValueType, type Composite, type CompositeChoice, type CompositeItem, type CompositeItemUnavailable, type CompositePart, type CompositePick, type CustomExtension, type CustomFee, type CustomSale, type CustomSaleDetails, type CustomTable, type CustomTableField, type CustomTableMetadata, type CustomTableRow, type CustomTableValue, type Customer, type CustomerNote, type DeviceEnvAttribute, type DeviceEnvCategory, type DeviceEnvValue, type DeviceOpName, type DeviceOpRequestMessage, type DeviceOpResponseMessage, type Discount, type DiscountDetail, type DiscountLineItem, type Enrich, EnvironmentDataKeys, EnvironmentDataSubKeys, type FeeDetail, type FeeLineItem, type Flow, type FlowSettings, type FlowSettingsKey, type FlowWebApp, type FlowWebAppVersion, type FullProduct, type HostHelloMessage, type HostNavigateMessage, type HostNavigateTarget, type HostShutdownMessage, type Inventory, type LineItem, type Metadata, type MetadataItem, type ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderAssignedUser, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderCustomStatus, type OrderInCart, type OrderLineItem, type OrderLineItemComponent, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, type OrderReservation, type OrderShippingLine, type OrderStateActor, type OrderStateActorType, type OrderStateConfig, type OrderStateEvent, type OrderStateEventTrigger, type OrderStateHistoryEntry, type OrderStateOperation, type OrderStatePair, type OrderSummary, type OrderSummaryPayments, type OrderTax, type OrderTip, type Outlet, type PaymentMethod, type PaymentResponse, type PaymentSetting, PaymentStatus, type PosBrainReadyMessage, type PosDataItem, type PriceModifierDetail, type PrinterDetails, type PrinterSettings, type PrinterSettingsMessage, ProcessorType, type ProdDiscountBreakdown, type ProdFeeBreakdown, type ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, type ReaderCapabilities, type ReaderCapabilitiesMessage, type Refund, type RefundCartDiscount, type RefundDiscount, type RefundItem, type RefundItemDiscount, type RefundLineItem, type RefundPayment, type RefundProcessingStatus, type RefundSummary, type RefundTip, type RefundedCustomSale, type RefundedLineItem, type RefundedTipPayment, type RequestTokenRefreshMessage, type ResolvedModifier, type ResolvedModifierChoice, type Role, type RolePermission, type RuntimeReadyMessage, type SelectionContext, type SelectionFlowContext, type SelectionMessage, type SelectionRoleContext, type ServiceChannelMessage, type ServiceChannelMessageType, type ServiceInitMessage, type Session, type SessionClosingAmounts, type SmartGridSetting, type SmartGridSettings, type SmartGridSettingsData, type Station, type StripeAccount, type Summary, type SummaryPayments, type SyncProgressMessage, type Tax, type TaxRate, type TaxRateValue, type TaxTable, type TaxTableActive, type TaxTableRate, type TileGrid, type TimeClockEntry, type TimeClockEntryStatus, type Tip, type TipData, type TipPayment, type TipsDetails, type TokenRefreshMessage, type TopicDefinitionWire, type TopicEventWire, type Transaction, type TransactionPaymentData, type User, type UserType, type Variant, type VariantInventory };
|
package/dist/pos-types/index.js
CHANGED
|
@@ -49,6 +49,7 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
|
|
|
49
49
|
ProcessorType2["REDEEM"] = "Redeem";
|
|
50
50
|
ProcessorType2["INTEGRATION"] = "Integration";
|
|
51
51
|
ProcessorType2["PAYMENT_LINK"] = "PaymentLink";
|
|
52
|
+
ProcessorType2["ONLINE_PAYMENT"] = "OnlinePayment";
|
|
52
53
|
ProcessorType2["EXTERNAL"] = "External";
|
|
53
54
|
return ProcessorType2;
|
|
54
55
|
})(ProcessorType || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../pos-types/index.ts","../../pos-types/active/PaymentStatus.ts","../../pos-types/active/ProcessorType.ts","../../pos-types/active/pos-runtime.ts"],"sourcesContent":["// @final-commerce/common/pos-types\n//\n// Public POS contract types for Final Commerce terminals — consumed by render\n// and command-frame. These mirror the public (wire) subset of data-layer's\n// Mongoose schemas (option D: manually mirrored, no data-layer dependency),\n// public-scrubbed: `_id`→`id`, `__v`/`_class`/`isDeleted` omitted, ObjectId\n// refs stringified, dates as ISO 8601 strings, secrets dropped.\n//\n// Shared primitives (CurrencyCode and the other enums, the order-state-machine\n// engine types) live elsewhere in this package — import them from\n// `@final-commerce/common` directly.\n\n// Type-level helpers (e.g. `Enrich` — builds Active* types from wire bases).\nexport type { Enrich } from './util';\n\n// Public bases for entities (BaseDocument = no companyId; BaseEntity adds it).\nexport type { BaseDocument, BaseEntity } from './base';\n\n// Embedded sub-document shapes.\nexport * from './embedded';\n\n// Entity shapes (wire).\nexport * from './entities';\n\n// Enriched (Render in-memory) `Active*` layer.\nexport * from './active';\n\n// Seam contract — the frozen station-home (HOST) ↔ pos-brain (runtime)\n// interface: selection-context snapshot + ServiceChannel message union.\nexport * from './seam';\n","export enum PaymentStatus {\n FAILED = 'failed',\n SUCCESS = 'success',\n CANCELED = 'canceled',\n IN_PROGRESS = 'inProgress',\n}\n","// Payment processor / tender type for a POS payment. Shared by Render and\n// command-frame; the string values are the wire contract used by orders.\nexport enum ProcessorType {\n FINAL_PAY = 'Terminal',\n TAP_TO_PAY = 'TapToPay',\n MOTO = 'Moto',\n CLOUD = 'Cloud',\n /**\n * @deprecated No payment path stamps this. Bluetooth-reader sales stamp `FINAL_PAY`\n * ('Terminal') as their processor; station-home reuses this member only for the\n * unrelated reader-connectionType UI field, not for an order/payment record.\n */\n BLUETOOTH = 'Bluetooth',\n CASH = 'Cash',\n CUSTOM_PAY = 'CustomPay',\n VENDARA = 'Vendara',\n /** Extension-controlled payment (e.g. gift card redeem); order uses paymentType `redeem`. */\n REDEEM = 'Redeem',\n /** Extension-controlled integration (e.g. Stripe-like); order uses paymentType `integration`. */\n INTEGRATION = 'Integration',\n /**\n * Written by hub-api's payment-link settle as the payment method's processor label — the\n * channel (like Moto/Terminal/Cloud), not the PSP brand (that lives in `paymentData.processor`).\n * Card-not-present for receipt purposes.\n */\n PAYMENT_LINK = 'PaymentLink',\n /**\n * Money taken outside the terminal (online, a delivery app, a voucher…), recorded under\n * a label with no device and no cash drawer. The order uses paymentType `external` —\n * deliberately distinct from `custom`, the Custom Payments extension's billed tender.\n */\n EXTERNAL = 'External',\n}\n","// Render in-memory POS runtime support types (tax engine, tips, cash, active-entity discriminator, environment data, flow) — the PaymentStatus-dependent active types (ActiveSplitPayment/RefundProcessingStatus/ActiveRefundOrder) remain in Render until PaymentStatus moves.\n\nimport type { CartFeeTaxEntry } from './CartFee';\nimport type { OrderTax } from '../embedded/OrderTax';\n\ninterface TaxesDetails {\n [id: string]: {\n amount: number;\n percentage: number;\n name: string;\n taxTableName: string;\n taxTableId: string;\n compounding?: boolean;\n priority?: number;\n };\n}\n\nexport interface ProdDiscountBreakdown {\n amount: number;\n percentage: number;\n label?: string;\n}\n\nexport interface ProdFeeBreakdown {\n amount: number;\n percentage: number;\n label?: string;\n tax: number;\n taxTableId?: string;\n taxRateId?: string;\n applyTaxes: boolean;\n}\n\n/**\n * One modifier row after the tax engine ran (FT-0010): the cart row extended by the\n * line quantity, plus the tax computed on it. buildOrderFromCart copies these onto\n * OrderLineItem.modifiers[] as { …row, total: amount, totalTax: tax }.\n */\nexport interface ProdModifierBreakdown {\n modifierId: string;\n modifierName: string;\n choiceId: string;\n choiceName: string;\n /** Display label from the cart row — \"{modifierName} - {choiceName}\". Not persisted on the order row. */\n label?: string;\n unitPrice: number;\n quantity: number;\n /** unitPrice × quantity × line.quantity, in minor units. */\n amount: number;\n tax: number;\n /** Engine INPUT (from the cart row): which table taxes this row. Not persisted on the order row. */\n taxTableId?: string;\n /** Engine OUTPUT: per-rate breakdown of `tax` — becomes OrderLineItemModifier.taxes. */\n taxes?: OrderTax[];\n /** From the cart row: the composite component it applies to, so rows arrive split per component (B28). */\n componentIndex?: number;\n}\n\nexport interface ProductTaxDetails {\n tax: number;\n prodDiscount: number;\n /** Line-level item discount in minor units (originalLineTotal − lineDisplayBase); drift-free, matches the value written to orders/refunds. */\n prodDiscountTotal: number;\n cartDiscount: number;\n prodDiscountPercentage: number;\n cartDiscountPercentage: number;\n taxes: TaxesDetails;\n fee?: number;\n feeTax?: number;\n feePercentage?: number;\n feeLabel?: string;\n cartFee?: number;\n cartFeeTax?: number;\n cartFeePercentage?: number;\n cartFeeLabel?: string;\n feeTaxTableId?: string;\n cartFeeTaxTableId?: string;\n prodDiscountLabel?: string;\n /** Staging: line total including fee for discount allocation */\n lineDisplayWithFee?: number;\n cartDiscountAllocated?: number;\n lineAfterCartDiscount?: number;\n computedLineTotal?: number;\n computedLineTax?: number;\n feeDisplay?: number;\n prodDiscounts?: ProdDiscountBreakdown[];\n fees?: ProdFeeBreakdown[];\n /** Staging: (price × qty) − sum(itemDiscounts) + sum(itemFees) + sum(modifiers) */\n lineNetWithFees?: number;\n /** Σ modifier rows extended by the line quantity — fee-level money, joins the line after the product discount. */\n modifierDisplay?: number;\n /** Tax computed on the modifier rows (product's tax table unless a row names its own). Inside computedLineTax. */\n modifierTax?: number;\n modifiers?: ProdModifierBreakdown[];\n}\n\nexport interface CustomSaleDetails {\n tax: number;\n cartDiscount: number;\n cartDiscountPercentage: number;\n taxes: TaxesDetails;\n cartFee?: number;\n cartFeeTax?: number;\n cartFeePercentage?: number;\n cartFeeLabel?: string;\n cartFeeTaxTableId?: string;\n applyTaxes?: boolean;\n /** Staging: for discount allocation and order total */\n lineDisplayWithFee?: number;\n cartDiscountAllocated?: number;\n lineAfterCartDiscount?: number;\n computedLineTotal?: number;\n computedLineTax?: number;\n}\n\nexport interface CartFeesDetails {\n name: string;\n amount: number;\n percentage: number;\n feeTax: number;\n taxTableId: string;\n taxName: string;\n /** Per-rate breakdown (gst, hst, etc.) so order/refund summary can show correct amounts per rate. */\n taxes?: CartFeeTaxEntry[];\n}\n\nexport interface CalculatedTaxDetails {\n tax: number;\n total: number;\n subtotal: number;\n orderSubtotal: number;\n totalDiscount: number;\n /** Staging: cart discount amount and subtotal after discount */\n discountAmount?: number;\n subtotalAfterDiscount?: number;\n products: { [id: string]: ProductTaxDetails };\n customSales: { [id: string]: CustomSaleDetails };\n totalTaxes: TaxesDetails;\n cartFees: CartFeesDetails[];\n}\n\nexport interface TipData {\n value: number;\n label?: string;\n isPercent: boolean;\n}\n\nexport interface TipsDetails {\n total: number;\n tips: TipData[];\n currency?: string;\n noTipLabel?: string;\n customTipLabel?: string;\n selectedTip?: TipData;\n cashChange?: number;\n enabled?: boolean;\n}\n\nexport type CashRoundingIncrement = '' | '0.05' | '0.10' | '0.25' | '0.50' | '1.00';\n\nexport interface CashPaymentSettings {\n cashRounding: CashRoundingIncrement;\n}\n\nexport enum ActiveEntityType {\n TAX = 'tax',\n CART = 'cart',\n USER = 'user',\n ORDER = 'order',\n PRODUCT = 'product',\n FULL_PRODUCT = 'fullProduct',\n CUSTOMER = 'customer',\n OUTLET = 'outlet',\n CHANGES = 'changes',\n SPLIT_PAYMENT = 'splitPayment',\n CALCULATED_TAX = 'calculatedTaxDetails',\n TIPS_DETAILS = 'tipsDetails',\n CASH_PAYMENT_SETTINGS = 'cashPaymentSettings',\n REFUND_DETAILS = 'refundDetails',\n COMPANY = 'company',\n IS_AUTHENTICATED = 'isAuthenticated',\n TIMER = 'timer',\n UPDATED_ORDER_ACTIONS = 'updatedOrderActions', //FOR ORDER UPDATE VIA ACTION\n BUILD = 'activeBuild',\n BUILD_UPDATE_INFO = 'buildUpdateInfo',\n GLOBAL_BLOCKS = 'globalBlocks',\n ACTIVE_STATION = 'activeStation',\n SMART_GRID = 'smartGrid',\n CUSTOM_SALE = 'customSale',\n ACTIVE_FLOW = 'activeFlow',\n ACTIVE_FLOW_VERSION_URL = 'activeFlowVersionUrl',\n}\n\nexport enum EnvironmentDataKeys {\n NETWORK_INFO = 'Network Info',\n DISPLAY = 'Display',\n APP_INFO = 'App Info',\n LOCATION = 'Location',\n DEVICE_INFO = 'Device Info',\n SYSTEM_HEALTH = 'System Health',\n DEVELOPER = 'Developer',\n PERIPHERAL_DEVICES = 'Peripheral Devices',\n}\n\nexport enum EnvironmentDataSubKeys {\n DEVICE_STATUS = 'Device Status',\n LAST_ONLINE_TIME = 'Last Online Time',\n NETWORK_TYPE = 'Network Type',\n SIGNAL_STRENGTH = 'Signal Strength',\n NETWORK_NAME = 'Network name',\n IP_ADDRESS = 'IP Address',\n\n SCREEN_RESOLUTION = 'Screen Resolution',\n PIXEL_RATIO = 'Pixel Ratio',\n ORIENTATION = 'Orientation',\n\n APP_VERSION = 'App Version',\n BUILD_NUMBER = 'Build Number',\n BUNDLE_ID = 'Bundle ID',\n INSTALLED = 'Installed',\n LAST_UPDATED = 'Last Updated',\n\n LOCATION_ACCESS = 'Location Access',\n CURRENT_LOCATION = 'Current Location',\n\n MODEL = 'Model',\n SYSTEM_VERSION = 'System Version',\n FIRMWARE_VERSION = 'Firmware Version',\n SERIAL_NUMBER = 'Serial Number',\n IMEI_NUMBER = 'IMEI Number',\n MAC_ADDRESS = 'MAC Address',\n ACTIVATION_TIME = 'Activation Time',\n TIME_ZONE = 'Time Zone',\n DEVICE_LANGUAGE = 'Device Language',\n\n TOTAL_RAM = 'Total RAM',\n BATTERY_LEVEL = 'Battery Level',\n BATTERY_STATUS = 'Battery Status',\n LOW_POWER_MODE = 'Low Power Mode',\n AVERAGE_CPU_USAGE = 'Average CPU Usage',\n CPU_SPEED = 'CPU Speed',\n AVAILABLE_STORAGE = 'Available Storage',\n TOTAL_STORAGE = 'Total Storage',\n UPTIME = 'Uptime',\n\n FLUTTER_VERSION = 'Flutter Version',\n DART_VERSION = 'Dart Version',\n ENVIRONMENT = 'Environment',\n\n CONNECTED_PRINTER = 'Connected Printer',\n}\n\nexport interface ActiveTimer {\n initialTimer: string;\n currentTimer: string;\n}\n\nexport interface ActiveUpdatedOrder {\n customerNote?: string;\n status?: string;\n}\n\nexport interface TaxTableActive {\n name: string;\n country: string;\n postcode: string;\n rate: number;\n priority: number;\n compounding: boolean;\n id: string;\n taxTableName: string;\n taxTableId: string;\n}\n\nexport interface ActiveTaxDetails {\n taxIncl?: boolean;\n tables: { [name: string]: TaxTableActive[] };\n}\n\nexport interface ActiveEntityChanges {\n productInCart: string[] | null; //array of ids of product in cart\n numberOfProductsInCart: number;\n cartValue: number;\n user: string | null;\n customer: string | null;\n order: string | null;\n role: string | null;\n product: string | null;\n}\n\nexport interface Flow {\n _id: string;\n /**\n * Stable ObjectId hub-api keys FlowSettings / PaymentSettings under.\n * Set for AI flows resolved Miami-direct (station-home adapts the service\n * projection onto this shape); absent on regular flows, where `_id` is the\n * settings key. Settings lookups should key by `hubId ?? _id`.\n */\n hubId?: string;\n companyId: string;\n title: string;\n description: string;\n template: string;\n createdBy: string;\n flowData: Record<string, any>;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n previewImage: string;\n currentVersion: string;\n webAppId: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,YAAS;AACT,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,cAAW;AACX,EAAAA,eAAA,iBAAc;AAJJ,SAAAA;AAAA,GAAA;;;ACEL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,eAAY;AACZ,EAAAA,eAAA,gBAAa;AACb,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,WAAQ;AAMR,EAAAA,eAAA,e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types/index.ts","../../pos-types/active/PaymentStatus.ts","../../pos-types/active/ProcessorType.ts","../../pos-types/active/pos-runtime.ts"],"sourcesContent":["// @final-commerce/common/pos-types\n//\n// Public POS contract types for Final Commerce terminals — consumed by render\n// and command-frame. These mirror the public (wire) subset of data-layer's\n// Mongoose schemas (option D: manually mirrored, no data-layer dependency),\n// public-scrubbed: `_id`→`id`, `__v`/`_class`/`isDeleted` omitted, ObjectId\n// refs stringified, dates as ISO 8601 strings, secrets dropped.\n//\n// Shared primitives (CurrencyCode and the other enums, the order-state-machine\n// engine types) live elsewhere in this package — import them from\n// `@final-commerce/common` directly.\n\n// Type-level helpers (e.g. `Enrich` — builds Active* types from wire bases).\nexport type { Enrich } from './util';\n\n// Public bases for entities (BaseDocument = no companyId; BaseEntity adds it).\nexport type { BaseDocument, BaseEntity } from './base';\n\n// Embedded sub-document shapes.\nexport * from './embedded';\n\n// Entity shapes (wire).\nexport * from './entities';\n\n// Enriched (Render in-memory) `Active*` layer.\nexport * from './active';\n\n// Seam contract — the frozen station-home (HOST) ↔ pos-brain (runtime)\n// interface: selection-context snapshot + ServiceChannel message union.\nexport * from './seam';\n","export enum PaymentStatus {\n FAILED = 'failed',\n SUCCESS = 'success',\n CANCELED = 'canceled',\n IN_PROGRESS = 'inProgress',\n}\n","// Payment processor / tender type for a POS payment. Shared by Render and\n// command-frame; the string values are the wire contract used by orders.\nexport enum ProcessorType {\n FINAL_PAY = 'Terminal',\n TAP_TO_PAY = 'TapToPay',\n MOTO = 'Moto',\n CLOUD = 'Cloud',\n /**\n * @deprecated No payment path stamps this. Bluetooth-reader sales stamp `FINAL_PAY`\n * ('Terminal') as their processor; station-home reuses this member only for the\n * unrelated reader-connectionType UI field, not for an order/payment record.\n */\n BLUETOOTH = 'Bluetooth',\n CASH = 'Cash',\n CUSTOM_PAY = 'CustomPay',\n VENDARA = 'Vendara',\n /** Extension-controlled payment (e.g. gift card redeem); order uses paymentType `redeem`. */\n REDEEM = 'Redeem',\n /** Extension-controlled integration (e.g. Stripe-like); order uses paymentType `integration`. */\n INTEGRATION = 'Integration',\n /**\n * Written by hub-api's payment-link settle as the payment method's processor label — the\n * channel (like Moto/Terminal/Cloud), not the PSP brand (that lives in `paymentData.processor`).\n * Card-not-present for receipt purposes.\n */\n PAYMENT_LINK = 'PaymentLink',\n /**\n * A shopper paying on a published online store, with their own card, in their own browser.\n * Written by hub-api's settle for an order whose `source` is `OrderPlatform.ONLINE_STORE`.\n *\n * SEPARATE FROM `PAYMENT_LINK` DELIBERATELY, even though both settle through the same Adyen\n * notification path: reports group a tender by `(paymentType, processor)`, so sharing a label\n * would fold every website sale into the merchant's Pay-by-Link row with no way to tell them\n * apart. Same channel-not-brand rule as the rest of this enum — the PSP stays on the\n * transaction's `paymentData.processor`.\n *\n * Card-not-present for receipt purposes, like `PAYMENT_LINK`, but the card was entered by the\n * SHOPPER on an Ecommerce checkout rather than by the merchant or on a hosted page.\n */\n ONLINE_PAYMENT = 'OnlinePayment',\n /**\n * Money taken outside the terminal (online, a delivery app, a voucher…), recorded under\n * a label with no device and no cash drawer. The order uses paymentType `external` —\n * deliberately distinct from `custom`, the Custom Payments extension's billed tender.\n */\n EXTERNAL = 'External',\n}\n","// Render in-memory POS runtime support types (tax engine, tips, cash, active-entity discriminator, environment data, flow) — the PaymentStatus-dependent active types (ActiveSplitPayment/RefundProcessingStatus/ActiveRefundOrder) remain in Render until PaymentStatus moves.\n\nimport type { CartFeeTaxEntry } from './CartFee';\nimport type { OrderTax } from '../embedded/OrderTax';\n\ninterface TaxesDetails {\n [id: string]: {\n amount: number;\n percentage: number;\n name: string;\n taxTableName: string;\n taxTableId: string;\n compounding?: boolean;\n priority?: number;\n };\n}\n\nexport interface ProdDiscountBreakdown {\n amount: number;\n percentage: number;\n label?: string;\n}\n\nexport interface ProdFeeBreakdown {\n amount: number;\n percentage: number;\n label?: string;\n tax: number;\n taxTableId?: string;\n taxRateId?: string;\n applyTaxes: boolean;\n}\n\n/**\n * One modifier row after the tax engine ran (FT-0010): the cart row extended by the\n * line quantity, plus the tax computed on it. buildOrderFromCart copies these onto\n * OrderLineItem.modifiers[] as { …row, total: amount, totalTax: tax }.\n */\nexport interface ProdModifierBreakdown {\n modifierId: string;\n modifierName: string;\n choiceId: string;\n choiceName: string;\n /** Display label from the cart row — \"{modifierName} - {choiceName}\". Not persisted on the order row. */\n label?: string;\n unitPrice: number;\n quantity: number;\n /** unitPrice × quantity × line.quantity, in minor units. */\n amount: number;\n tax: number;\n /** Engine INPUT (from the cart row): which table taxes this row. Not persisted on the order row. */\n taxTableId?: string;\n /** Engine OUTPUT: per-rate breakdown of `tax` — becomes OrderLineItemModifier.taxes. */\n taxes?: OrderTax[];\n /** From the cart row: the composite component it applies to, so rows arrive split per component (B28). */\n componentIndex?: number;\n}\n\nexport interface ProductTaxDetails {\n tax: number;\n prodDiscount: number;\n /** Line-level item discount in minor units (originalLineTotal − lineDisplayBase); drift-free, matches the value written to orders/refunds. */\n prodDiscountTotal: number;\n cartDiscount: number;\n prodDiscountPercentage: number;\n cartDiscountPercentage: number;\n taxes: TaxesDetails;\n fee?: number;\n feeTax?: number;\n feePercentage?: number;\n feeLabel?: string;\n cartFee?: number;\n cartFeeTax?: number;\n cartFeePercentage?: number;\n cartFeeLabel?: string;\n feeTaxTableId?: string;\n cartFeeTaxTableId?: string;\n prodDiscountLabel?: string;\n /** Staging: line total including fee for discount allocation */\n lineDisplayWithFee?: number;\n cartDiscountAllocated?: number;\n lineAfterCartDiscount?: number;\n computedLineTotal?: number;\n computedLineTax?: number;\n feeDisplay?: number;\n prodDiscounts?: ProdDiscountBreakdown[];\n fees?: ProdFeeBreakdown[];\n /** Staging: (price × qty) − sum(itemDiscounts) + sum(itemFees) + sum(modifiers) */\n lineNetWithFees?: number;\n /** Σ modifier rows extended by the line quantity — fee-level money, joins the line after the product discount. */\n modifierDisplay?: number;\n /** Tax computed on the modifier rows (product's tax table unless a row names its own). Inside computedLineTax. */\n modifierTax?: number;\n modifiers?: ProdModifierBreakdown[];\n}\n\nexport interface CustomSaleDetails {\n tax: number;\n cartDiscount: number;\n cartDiscountPercentage: number;\n taxes: TaxesDetails;\n cartFee?: number;\n cartFeeTax?: number;\n cartFeePercentage?: number;\n cartFeeLabel?: string;\n cartFeeTaxTableId?: string;\n applyTaxes?: boolean;\n /** Staging: for discount allocation and order total */\n lineDisplayWithFee?: number;\n cartDiscountAllocated?: number;\n lineAfterCartDiscount?: number;\n computedLineTotal?: number;\n computedLineTax?: number;\n}\n\nexport interface CartFeesDetails {\n name: string;\n amount: number;\n percentage: number;\n feeTax: number;\n taxTableId: string;\n taxName: string;\n /** Per-rate breakdown (gst, hst, etc.) so order/refund summary can show correct amounts per rate. */\n taxes?: CartFeeTaxEntry[];\n}\n\nexport interface CalculatedTaxDetails {\n tax: number;\n total: number;\n subtotal: number;\n orderSubtotal: number;\n totalDiscount: number;\n /** Staging: cart discount amount and subtotal after discount */\n discountAmount?: number;\n subtotalAfterDiscount?: number;\n products: { [id: string]: ProductTaxDetails };\n customSales: { [id: string]: CustomSaleDetails };\n totalTaxes: TaxesDetails;\n cartFees: CartFeesDetails[];\n /** The cart's shipping, taxed like a cart fee against the standard tax table. Absent when nothing ships. */\n shipping?: CartFeesDetails;\n}\n\nexport interface TipData {\n value: number;\n label?: string;\n isPercent: boolean;\n}\n\nexport interface TipsDetails {\n total: number;\n tips: TipData[];\n currency?: string;\n noTipLabel?: string;\n customTipLabel?: string;\n selectedTip?: TipData;\n cashChange?: number;\n enabled?: boolean;\n}\n\nexport type CashRoundingIncrement = '' | '0.05' | '0.10' | '0.25' | '0.50' | '1.00';\n\nexport interface CashPaymentSettings {\n cashRounding: CashRoundingIncrement;\n}\n\nexport enum ActiveEntityType {\n TAX = 'tax',\n CART = 'cart',\n USER = 'user',\n ORDER = 'order',\n PRODUCT = 'product',\n FULL_PRODUCT = 'fullProduct',\n CUSTOMER = 'customer',\n OUTLET = 'outlet',\n CHANGES = 'changes',\n SPLIT_PAYMENT = 'splitPayment',\n CALCULATED_TAX = 'calculatedTaxDetails',\n TIPS_DETAILS = 'tipsDetails',\n CASH_PAYMENT_SETTINGS = 'cashPaymentSettings',\n REFUND_DETAILS = 'refundDetails',\n COMPANY = 'company',\n IS_AUTHENTICATED = 'isAuthenticated',\n TIMER = 'timer',\n UPDATED_ORDER_ACTIONS = 'updatedOrderActions', //FOR ORDER UPDATE VIA ACTION\n BUILD = 'activeBuild',\n BUILD_UPDATE_INFO = 'buildUpdateInfo',\n GLOBAL_BLOCKS = 'globalBlocks',\n ACTIVE_STATION = 'activeStation',\n SMART_GRID = 'smartGrid',\n CUSTOM_SALE = 'customSale',\n ACTIVE_FLOW = 'activeFlow',\n ACTIVE_FLOW_VERSION_URL = 'activeFlowVersionUrl',\n}\n\nexport enum EnvironmentDataKeys {\n NETWORK_INFO = 'Network Info',\n DISPLAY = 'Display',\n APP_INFO = 'App Info',\n LOCATION = 'Location',\n DEVICE_INFO = 'Device Info',\n SYSTEM_HEALTH = 'System Health',\n DEVELOPER = 'Developer',\n PERIPHERAL_DEVICES = 'Peripheral Devices',\n}\n\nexport enum EnvironmentDataSubKeys {\n DEVICE_STATUS = 'Device Status',\n LAST_ONLINE_TIME = 'Last Online Time',\n NETWORK_TYPE = 'Network Type',\n SIGNAL_STRENGTH = 'Signal Strength',\n NETWORK_NAME = 'Network name',\n IP_ADDRESS = 'IP Address',\n\n SCREEN_RESOLUTION = 'Screen Resolution',\n PIXEL_RATIO = 'Pixel Ratio',\n ORIENTATION = 'Orientation',\n\n APP_VERSION = 'App Version',\n BUILD_NUMBER = 'Build Number',\n BUNDLE_ID = 'Bundle ID',\n INSTALLED = 'Installed',\n LAST_UPDATED = 'Last Updated',\n\n LOCATION_ACCESS = 'Location Access',\n CURRENT_LOCATION = 'Current Location',\n\n MODEL = 'Model',\n SYSTEM_VERSION = 'System Version',\n FIRMWARE_VERSION = 'Firmware Version',\n SERIAL_NUMBER = 'Serial Number',\n IMEI_NUMBER = 'IMEI Number',\n MAC_ADDRESS = 'MAC Address',\n ACTIVATION_TIME = 'Activation Time',\n TIME_ZONE = 'Time Zone',\n DEVICE_LANGUAGE = 'Device Language',\n\n TOTAL_RAM = 'Total RAM',\n BATTERY_LEVEL = 'Battery Level',\n BATTERY_STATUS = 'Battery Status',\n LOW_POWER_MODE = 'Low Power Mode',\n AVERAGE_CPU_USAGE = 'Average CPU Usage',\n CPU_SPEED = 'CPU Speed',\n AVAILABLE_STORAGE = 'Available Storage',\n TOTAL_STORAGE = 'Total Storage',\n UPTIME = 'Uptime',\n\n FLUTTER_VERSION = 'Flutter Version',\n DART_VERSION = 'Dart Version',\n ENVIRONMENT = 'Environment',\n\n CONNECTED_PRINTER = 'Connected Printer',\n}\n\nexport interface ActiveTimer {\n initialTimer: string;\n currentTimer: string;\n}\n\nexport interface ActiveUpdatedOrder {\n customerNote?: string;\n status?: string;\n}\n\nexport interface TaxTableActive {\n name: string;\n country: string;\n postcode: string;\n rate: number;\n priority: number;\n compounding: boolean;\n id: string;\n taxTableName: string;\n taxTableId: string;\n}\n\nexport interface ActiveTaxDetails {\n taxIncl?: boolean;\n tables: { [name: string]: TaxTableActive[] };\n}\n\nexport interface ActiveEntityChanges {\n productInCart: string[] | null; //array of ids of product in cart\n numberOfProductsInCart: number;\n cartValue: number;\n user: string | null;\n customer: string | null;\n order: string | null;\n role: string | null;\n product: string | null;\n}\n\nexport interface Flow {\n _id: string;\n /**\n * Stable ObjectId hub-api keys FlowSettings / PaymentSettings under.\n * Set for AI flows resolved Miami-direct (station-home adapts the service\n * projection onto this shape); absent on regular flows, where `_id` is the\n * settings key. Settings lookups should key by `hubId ?? _id`.\n */\n hubId?: string;\n companyId: string;\n title: string;\n description: string;\n template: string;\n createdBy: string;\n flowData: Record<string, any>;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n previewImage: string;\n currentVersion: string;\n webAppId: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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uBAAoB;AACpB,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,uBAAoB;AACpB,EAAAA,wBAAA,mBAAgB;AAChB,EAAAA,wBAAA,YAAS;AAET,EAAAA,wBAAA,qBAAkB;AAClB,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AAEd,EAAAA,wBAAA,uBAAoB;AA7CV,SAAAA;AAAA,GAAA;","names":["PaymentStatus","ProcessorType","ActiveEntityType","EnvironmentDataKeys","EnvironmentDataSubKeys"]}
|
package/dist/pos-types/index.mjs
CHANGED
|
@@ -20,6 +20,7 @@ var ProcessorType = /* @__PURE__ */ ((ProcessorType2) => {
|
|
|
20
20
|
ProcessorType2["REDEEM"] = "Redeem";
|
|
21
21
|
ProcessorType2["INTEGRATION"] = "Integration";
|
|
22
22
|
ProcessorType2["PAYMENT_LINK"] = "PaymentLink";
|
|
23
|
+
ProcessorType2["ONLINE_PAYMENT"] = "OnlinePayment";
|
|
23
24
|
ProcessorType2["EXTERNAL"] = "External";
|
|
24
25
|
return ProcessorType2;
|
|
25
26
|
})(ProcessorType || {});
|