@iveri/contracts 0.144.0 → 0.145.0
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
CHANGED
|
@@ -322,6 +322,8 @@ Conduit's outbox.
|
|
|
322
322
|
`UniboxAgents` under `@iveri/contracts/unibox`, so the inbox picks agents by name.
|
|
323
323
|
- Version `0.139.0` adds a trainer's notes on a member: `GymTrainerNote`, `GymTrainerNotes`, `SaveGymTrainerNoteRequest`,
|
|
324
324
|
`GymMyTrainerNote` and the `GymRefusal` member `not-their-trainer` under `@iveri/contracts/gym`.
|
|
325
|
+
- Version `0.145.0` adds `tenderedMinor` / `changeMinor` on `RestaurantPayment`, an optional `tenderedMinor` on
|
|
326
|
+
`RecordRestaurantPaymentRequest` and `round` on `RestaurantKitchenTicket`, for printed receipts and kitchen tickets.
|
|
325
327
|
- Version `0.144.0` adds `unibox:ai:run-any`, `AiAgentSetting` and `UpdateAiAgentSettingBody` under
|
|
326
328
|
`@iveri/contracts/unibox`, and `AgentRunOutcome`, `AgentRunResult` and optional `AgentRunRequest` fields under `/unibox-ai`.
|
|
327
329
|
- Version `0.143.0` adds `billing:payment:refund` (moved off `billing:payment:manage`), `ClinicOnlineRefund`,
|
|
@@ -11,6 +11,13 @@ export interface RestaurantPayment {
|
|
|
11
11
|
/** Negative for a refund. */
|
|
12
12
|
amountMinor: number;
|
|
13
13
|
tipMinor: number;
|
|
14
|
+
/**
|
|
15
|
+
* The cash the diner handed over, when the till recorded it: at least the amount and the tip. Null for a card, an
|
|
16
|
+
* online payment, a refund, and cash taken without counting what was handed over.
|
|
17
|
+
*/
|
|
18
|
+
tenderedMinor: number | null;
|
|
19
|
+
/** What was given back from `tenderedMinor`, worked out by the server. Null whenever `tenderedMinor` is. */
|
|
20
|
+
changeMinor: number | null;
|
|
14
21
|
/** The payment a refund gives back. */
|
|
15
22
|
refundOfId: UUID | null;
|
|
16
23
|
note: string | null;
|
|
@@ -60,6 +67,8 @@ export interface RecordRestaurantPaymentRequest {
|
|
|
60
67
|
method: RestaurantPaymentMethod.CASH | RestaurantPaymentMethod.CARD;
|
|
61
68
|
amountMinor: number;
|
|
62
69
|
tipMinor?: number;
|
|
70
|
+
/** Cash only: what the diner handed over, at least `amountMinor` plus `tipMinor`. The change is the rest. */
|
|
71
|
+
tenderedMinor?: number | null;
|
|
63
72
|
note?: string | null;
|
|
64
73
|
}
|
|
65
74
|
export interface RefundRestaurantPaymentRequest {
|
|
@@ -18,6 +18,11 @@ export interface RestaurantKitchenLine {
|
|
|
18
18
|
export interface RestaurantKitchenTicket {
|
|
19
19
|
orderId: UUID;
|
|
20
20
|
number: number;
|
|
21
|
+
/**
|
|
22
|
+
* Which round of its bill this order is: 1 for the first, 2 for the next a table ordered, and so on. Cancelled
|
|
23
|
+
* orders are not counted. A takeaway or a delivery is always 1.
|
|
24
|
+
*/
|
|
25
|
+
round: number;
|
|
21
26
|
stationId: UUID;
|
|
22
27
|
channel: RestaurantChannel;
|
|
23
28
|
tableLabel: string | null;
|