order3000 0.18.3 → 0.19.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/dist/client.d.cts CHANGED
@@ -55,6 +55,280 @@ declare abstract class BaseResource {
55
55
 
56
56
  interface components {
57
57
  schemas: {
58
+ /**
59
+ * Area
60
+ * @description A bookable + public area for a venue. Assets are only included when the request expands them.
61
+ */
62
+ Area: {
63
+ id: string;
64
+ venueId: string;
65
+ accessor: string;
66
+ name: {
67
+ [key: string]: string;
68
+ };
69
+ description: {
70
+ [key: string]: string;
71
+ } | null;
72
+ longDescription: {
73
+ [key: string]: string;
74
+ } | null;
75
+ minCapacity: number | null;
76
+ maxCapacity: number;
77
+ /** @enum {string} */
78
+ currency: "EUR" | "CHF";
79
+ basePrice: number | null;
80
+ perPersonPrice: number | null;
81
+ features: {
82
+ icon: string;
83
+ label: {
84
+ [key: string]: string;
85
+ };
86
+ description?: {
87
+ [key: string]: string;
88
+ };
89
+ }[] | null;
90
+ /** @enum {string} */
91
+ bookingMode: "slot" | "day";
92
+ assets?: {
93
+ id: string;
94
+ /** @enum {string} */
95
+ type: "image" | "video" | "document";
96
+ tags: string[] | null;
97
+ filename: string;
98
+ contentType: string;
99
+ metadata: {
100
+ width?: number;
101
+ height?: number;
102
+ duration?: number;
103
+ } | null;
104
+ cropArea: {
105
+ x: number;
106
+ y: number;
107
+ width: number;
108
+ height: number;
109
+ } | null;
110
+ /** Format: uri */
111
+ publicUrl: string;
112
+ }[];
113
+ };
114
+ /** ListAreasResponse */
115
+ ListAreasResponse: components["schemas"]["Area"][];
116
+ /**
117
+ * GetAreaResponse
118
+ * @description A bookable + public area for a venue. Assets are only included when the request expands them.
119
+ */
120
+ GetAreaResponse: {
121
+ id: string;
122
+ venueId: string;
123
+ accessor: string;
124
+ name: {
125
+ [key: string]: string;
126
+ };
127
+ description: {
128
+ [key: string]: string;
129
+ } | null;
130
+ longDescription: {
131
+ [key: string]: string;
132
+ } | null;
133
+ minCapacity: number | null;
134
+ maxCapacity: number;
135
+ /** @enum {string} */
136
+ currency: "EUR" | "CHF";
137
+ basePrice: number | null;
138
+ perPersonPrice: number | null;
139
+ features: {
140
+ icon: string;
141
+ label: {
142
+ [key: string]: string;
143
+ };
144
+ description?: {
145
+ [key: string]: string;
146
+ };
147
+ }[] | null;
148
+ /** @enum {string} */
149
+ bookingMode: "slot" | "day";
150
+ assets?: {
151
+ id: string;
152
+ /** @enum {string} */
153
+ type: "image" | "video" | "document";
154
+ tags: string[] | null;
155
+ filename: string;
156
+ contentType: string;
157
+ metadata: {
158
+ width?: number;
159
+ height?: number;
160
+ duration?: number;
161
+ } | null;
162
+ cropArea: {
163
+ x: number;
164
+ y: number;
165
+ width: number;
166
+ height: number;
167
+ } | null;
168
+ /** Format: uri */
169
+ publicUrl: string;
170
+ }[];
171
+ };
172
+ /** GetAreaAvailabilityResponse */
173
+ GetAreaAvailabilityResponse: {
174
+ from: string;
175
+ to: string;
176
+ /** @enum {string} */
177
+ bookingMode: "slot" | "day";
178
+ occupied: {
179
+ date: string;
180
+ startTime: string | null;
181
+ endTime: string | null;
182
+ }[];
183
+ };
184
+ /** SubmitAreaBookingRequest */
185
+ SubmitAreaBookingRequest: {
186
+ requestedDate: string;
187
+ requestedStartTime?: string;
188
+ requestedEndTime?: string;
189
+ partySize: number;
190
+ customerFirstName: string;
191
+ customerLastName: string;
192
+ /** Format: email */
193
+ customerEmail: string;
194
+ customerPhone?: string;
195
+ message?: string;
196
+ /** @enum {string} */
197
+ source?: "website" | "phone" | "walk_in";
198
+ };
199
+ /** SubmitAreaBookingResponse */
200
+ SubmitAreaBookingResponse: {
201
+ id: string;
202
+ venueId: string;
203
+ areaId: string;
204
+ requestedDate: string;
205
+ requestedStartTime: string | null;
206
+ requestedEndTime: string | null;
207
+ partySize: number;
208
+ customerFirstName: string;
209
+ customerLastName: string;
210
+ customerEmail: string;
211
+ customerPhone: string | null;
212
+ message: string | null;
213
+ /** @enum {string} */
214
+ source: "website" | "phone" | "walk_in";
215
+ /** @enum {string} */
216
+ status: "pending" | "approved" | "rejected" | "cancelled";
217
+ areaBookingId: string | null;
218
+ createdAt: string | null;
219
+ updatedAt: string | null;
220
+ };
221
+ /**
222
+ * AddToBasketRequest
223
+ * @description Add an item to the shopping basket
224
+ */
225
+ AddToBasketRequest: {
226
+ /** Format: uuid */
227
+ venueId: string;
228
+ sessionId: string;
229
+ menuItems: {
230
+ menuItemId: string;
231
+ role?: string;
232
+ quantity?: number;
233
+ /** @enum {string} */
234
+ unit?: "grams" | "kilograms" | "liters" | "milliliters" | "pieces";
235
+ }[];
236
+ metadata?: {
237
+ [key: string]: unknown;
238
+ };
239
+ };
240
+ /** AddToBasketResponse */
241
+ AddToBasketResponse: {
242
+ /** Format: uuid */
243
+ basketItemId: string;
244
+ itemCount: number;
245
+ deposit: {
246
+ depositwareTemplateId: string;
247
+ name: {
248
+ [key: string]: string;
249
+ };
250
+ amount: number;
251
+ /** @enum {string} */
252
+ currency: "EUR" | "CHF";
253
+ } | null;
254
+ totals: {
255
+ /** @enum {string} */
256
+ currency: "EUR" | "CHF";
257
+ itemsTotal: number;
258
+ taxAmount: number;
259
+ depositCharge: number;
260
+ grossTotal: number;
261
+ depositCredit: number;
262
+ effectiveTotal: number;
263
+ cashRefund: number;
264
+ returnable: {
265
+ depositwareTemplateId: string;
266
+ count: number;
267
+ }[];
268
+ };
269
+ };
270
+ /** RemoveFromBasketResponse */
271
+ RemoveFromBasketResponse: {
272
+ success: boolean;
273
+ /** Format: uuid */
274
+ basketItemId: string;
275
+ itemCount: number;
276
+ totals: {
277
+ /** @enum {string} */
278
+ currency: "EUR" | "CHF";
279
+ itemsTotal: number;
280
+ taxAmount: number;
281
+ depositCharge: number;
282
+ grossTotal: number;
283
+ depositCredit: number;
284
+ effectiveTotal: number;
285
+ cashRefund: number;
286
+ returnable: {
287
+ depositwareTemplateId: string;
288
+ count: number;
289
+ }[];
290
+ } | null;
291
+ };
292
+ /** GetBasketTotalsRequest */
293
+ GetBasketTotalsRequest: {
294
+ declaredReturns?: {
295
+ depositwareTemplateId: string;
296
+ count: number;
297
+ }[];
298
+ };
299
+ /** GetBasketTotalsResponse */
300
+ GetBasketTotalsResponse: {
301
+ /** @enum {string} */
302
+ currency: "EUR" | "CHF";
303
+ itemsTotal: number;
304
+ taxAmount: number;
305
+ depositCharge: number;
306
+ grossTotal: number;
307
+ depositCredit: number;
308
+ effectiveTotal: number;
309
+ cashRefund: number;
310
+ returnable: {
311
+ depositwareTemplateId: string;
312
+ count: number;
313
+ }[];
314
+ };
315
+ /** SetBasketDeclaredReturnsRequest */
316
+ SetBasketDeclaredReturnsRequest: {
317
+ basketId: string;
318
+ sessionId: string;
319
+ declaredReturns: {
320
+ depositwareTemplateId: string;
321
+ count: number;
322
+ }[];
323
+ };
324
+ /** SetBasketDeclaredReturnsResponse */
325
+ SetBasketDeclaredReturnsResponse: {
326
+ basketId: string;
327
+ declaredReturns: {
328
+ depositwareTemplateId: string;
329
+ count: number;
330
+ }[];
331
+ };
58
332
  /**
59
333
  * CreateEventRequest
60
334
  * @description Request payload for creating a new event
@@ -95,6 +369,7 @@ interface components {
95
369
  intervalMinutes?: number | null;
96
370
  durationMinutes?: number | null;
97
371
  } | null;
372
+ ritualAccessor?: string | null;
98
373
  venueAccessor: string;
99
374
  };
100
375
  /**
@@ -112,6 +387,7 @@ interface components {
112
387
  [key: string]: unknown;
113
388
  } | unknown[]) | null;
114
389
  scheduleId: string | null;
390
+ ritualId: string | null;
115
391
  maxBookings: number | null;
116
392
  maxGuests: number | null;
117
393
  minPartySize: number | null;
@@ -129,6 +405,34 @@ interface components {
129
405
  createdAt: unknown;
130
406
  updatedAt: unknown;
131
407
  };
408
+ /**
409
+ * GetMenuResponse
410
+ * @description Menu details. Nested arrays (items, assets, bundles, schedule, etc.) pass through; their shape follows the SDK Menu interface.
411
+ */
412
+ GetMenuResponse: {
413
+ id: string;
414
+ venueId: string;
415
+ accessor: string;
416
+ name: {
417
+ [key: string]: string;
418
+ };
419
+ } & {
420
+ [key: string]: unknown;
421
+ };
422
+ /** ListMenuBundlesResponse */
423
+ ListMenuBundlesResponse: ({
424
+ id: string;
425
+ menuId: string;
426
+ } & {
427
+ [key: string]: unknown;
428
+ })[];
429
+ /** ListMenuSubscriptionsResponse */
430
+ ListMenuSubscriptionsResponse: ({
431
+ id: string;
432
+ menuId: string;
433
+ } & {
434
+ [key: string]: unknown;
435
+ })[];
132
436
  /**
133
437
  * PlaceOrderRequest
134
438
  * @description Place a new order for a specific venue
@@ -159,6 +463,7 @@ interface components {
159
463
  updatedBy?: string | null;
160
464
  teamOrderId?: string | null;
161
465
  participantDisplayName?: string | null;
466
+ leadSettledAt?: unknown;
162
467
  };
163
468
  /** PlaceOrderResponse */
164
469
  PlaceOrderResponse: {
@@ -187,6 +492,68 @@ interface components {
187
492
  updatedBy: string | null;
188
493
  teamOrderId: string | null;
189
494
  participantDisplayName: string | null;
495
+ leadSettledAt: unknown;
496
+ };
497
+ /** CreatePaymentIntentRequest */
498
+ CreatePaymentIntentRequest: {
499
+ basketId: string;
500
+ /** @enum {string} */
501
+ currency: "EUR" | "CHF";
502
+ sessionId: string;
503
+ /** @enum {string} */
504
+ fulfillmentType: "pickup" | "delivery";
505
+ /** Format: date-time */
506
+ fulfillmentAt?: string | null;
507
+ customerFirstName?: string;
508
+ customerLastName?: string;
509
+ teamOrderPublicId?: string;
510
+ declaredReturns?: {
511
+ depositwareTemplateId: string;
512
+ count: number;
513
+ }[];
514
+ };
515
+ /** CreatePaymentIntentResponse */
516
+ CreatePaymentIntentResponse: {
517
+ clientSecret: string | null;
518
+ paymentIntentId: string;
519
+ orderId: string;
520
+ };
521
+ /** CreateDeltaPaymentIntentRequest */
522
+ CreateDeltaPaymentIntentRequest: {
523
+ basketId: string;
524
+ sessionId: string;
525
+ /** @enum {string} */
526
+ currency: "EUR" | "CHF";
527
+ declaredReturns?: {
528
+ depositwareTemplateId: string;
529
+ count: number;
530
+ }[];
531
+ };
532
+ /** CreateDeltaPaymentIntentResponse */
533
+ CreateDeltaPaymentIntentResponse: {
534
+ clientSecret: string | null;
535
+ paymentIntentId: string;
536
+ orderId: string;
537
+ amount: number;
538
+ /** @enum {string} */
539
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
540
+ };
541
+ /** ReduceDeltaPaymentIntentRequest */
542
+ ReduceDeltaPaymentIntentRequest: {
543
+ basketId: string;
544
+ sessionId: string;
545
+ /** @enum {string} */
546
+ currency: "EUR" | "CHF";
547
+ declaredReturns?: {
548
+ depositwareTemplateId: string;
549
+ count: number;
550
+ }[];
551
+ };
552
+ /** ReduceDeltaPaymentIntentResponse */
553
+ ReduceDeltaPaymentIntentResponse: {
554
+ orderId: string;
555
+ paidTotal: number;
556
+ released: number;
190
557
  };
191
558
  /**
192
559
  * MakeReservationRequest
@@ -328,6 +695,377 @@ interface components {
328
695
  /** @description Last update timestamp */
329
696
  updatedAt: unknown;
330
697
  };
698
+ /** GetSubscriptionResponse */
699
+ GetSubscriptionResponse: {
700
+ id: string;
701
+ menuId: string;
702
+ accessor: string;
703
+ name: {
704
+ [key: string]: string;
705
+ };
706
+ shortName: {
707
+ [key: string]: string;
708
+ } | null;
709
+ description: {
710
+ [key: string]: string;
711
+ } | null;
712
+ scheduleId: string | null;
713
+ allowance: number;
714
+ /** @enum {string} */
715
+ billingPeriod: "week" | "month" | "year";
716
+ /** @enum {string} */
717
+ allowancePeriod: "week" | "month" | "year";
718
+ redeemableTagSets: string[] | null;
719
+ expiryInDays: number | null;
720
+ price: number;
721
+ /** @enum {string} */
722
+ currency: "EUR" | "CHF";
723
+ isActive: boolean;
724
+ sortIndex: number | null;
725
+ posters: {
726
+ id: string;
727
+ menuSubscriptionId: string;
728
+ storagePath: string;
729
+ /** Format: uri */
730
+ publicUrl: string;
731
+ filename: string;
732
+ contentType: string;
733
+ sizeBytes: number | null;
734
+ sortIndex: number | null;
735
+ createdBy: string | null;
736
+ createdAt: string | null;
737
+ }[];
738
+ };
739
+ /** SubscribeRequest */
740
+ SubscribeRequest: {
741
+ /** Format: email */
742
+ email: string;
743
+ firstName?: string;
744
+ lastName?: string;
745
+ sessionId?: string;
746
+ /** Format: uri */
747
+ successUrl: string;
748
+ /** Format: uri */
749
+ cancelUrl: string;
750
+ };
751
+ /** SubscribeResponse */
752
+ SubscribeResponse: {
753
+ /** Format: uri */
754
+ checkoutUrl: string | null;
755
+ sessionId: string;
756
+ };
757
+ /** CancelSubscriptionRequest */
758
+ CancelSubscriptionRequest: {
759
+ subscriberId: string;
760
+ };
761
+ /** CancelSubscriptionResponse */
762
+ CancelSubscriptionResponse: {
763
+ /** @enum {boolean} */
764
+ success: true;
765
+ };
766
+ /** GetSubscriptionCreditsResponse */
767
+ GetSubscriptionCreditsResponse: {
768
+ id: string;
769
+ subscriberId: string;
770
+ periodStart: string;
771
+ periodEnd: string;
772
+ expiresAt: string | null;
773
+ /** @enum {string} */
774
+ status: "available" | "redeemed" | "expired";
775
+ redeemedAt: string | null;
776
+ orderId: string | null;
777
+ createdAt: string | null;
778
+ }[];
779
+ /**
780
+ * CreateTeamOrderRequest
781
+ * @description Create a team order: promotes the lead's active basket into a shared team basket and returns the share token.
782
+ */
783
+ CreateTeamOrderRequest: {
784
+ /** Format: uuid */
785
+ venueId: string;
786
+ sessionId: string;
787
+ /** Format: uuid */
788
+ menuId: string;
789
+ leadDisplayName: string;
790
+ teamName?: string;
791
+ /** Format: uri */
792
+ logoUrl?: string;
793
+ /** Format: date-time */
794
+ deadlineAt?: string | null;
795
+ /** @enum {string} */
796
+ fulfillmentType: "pickup" | "delivery";
797
+ /** Format: date-time */
798
+ fulfillmentAt?: string | null;
799
+ deliveryAddress?: {
800
+ street: string;
801
+ city: string;
802
+ state: string;
803
+ postalCode: string;
804
+ country: string;
805
+ };
806
+ allowedPaymentMethods: ("card" | "cash" | "voucher")[];
807
+ /** Format: uuid */
808
+ eventId?: string;
809
+ };
810
+ /** CreateTeamOrderResponse */
811
+ CreateTeamOrderResponse: {
812
+ publicId: string;
813
+ /** Format: uuid */
814
+ teamOrderId: string;
815
+ };
816
+ /** FetchTeamOrderResponse */
817
+ FetchTeamOrderResponse: {
818
+ teamOrder: {
819
+ id: string;
820
+ publicId: string;
821
+ venueId: string;
822
+ menuId: string;
823
+ eventId: string | null;
824
+ teamName: string | null;
825
+ logoUrl: string | null;
826
+ leadDisplayName: string;
827
+ /** @enum {string} */
828
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
829
+ allowedPaymentMethods: ("card" | "cash" | "voucher")[];
830
+ /** @enum {string} */
831
+ fulfillmentType: "pickup" | "delivery";
832
+ /** Format: date-time */
833
+ fulfillmentAt: string | null;
834
+ /** Format: date-time */
835
+ deadlineAt: string | null;
836
+ /** Format: date-time */
837
+ lockedAt: string | null;
838
+ /** Format: date-time */
839
+ placedAt: string | null;
840
+ /** Format: date-time */
841
+ cancelledAt: string | null;
842
+ cancelReason: string | null;
843
+ deliveryAddressId: string | null;
844
+ diningLocation: string | null;
845
+ diningTime: string | null;
846
+ isDeliveryEnabled: boolean;
847
+ quickReferenceNumber: number | null;
848
+ };
849
+ deliveryThreshold: {
850
+ amount: number | null;
851
+ quantity: number | null;
852
+ };
853
+ participants: {
854
+ customerId: string;
855
+ basketId: string | null;
856
+ orderId: string | null;
857
+ participantNumber: number | null;
858
+ displayName: string | null;
859
+ /** @enum {string} */
860
+ status: "browsing" | "authorized" | "cash_pending" | "placed" | "completed" | "cancelled";
861
+ bundleCount: number;
862
+ amount: number;
863
+ /** @enum {string|null} */
864
+ paymentMethod: "card" | "cash" | "voucher" | null;
865
+ isLead: boolean;
866
+ isMe: boolean;
867
+ /** Format: date-time */
868
+ joinedAt: string;
869
+ items: {
870
+ id: string;
871
+ metadata: unknown;
872
+ menuItems: {
873
+ menuItemId: string;
874
+ role: string | null;
875
+ quantity: number;
876
+ /** @enum {string} */
877
+ unit: "grams" | "kilograms" | "liters" | "milliliters" | "pieces";
878
+ }[];
879
+ isPaid: boolean;
880
+ }[];
881
+ payments: {
882
+ amount: number;
883
+ /** @enum {string} */
884
+ method: "card" | "cash" | "voucher";
885
+ /** @enum {string} */
886
+ status: "authorized" | "captured" | "cash_pending" | "cash_received";
887
+ /** Format: date-time */
888
+ createdAt: string;
889
+ cardLast4: string | null;
890
+ }[];
891
+ paidTotal: number;
892
+ amountDue: number;
893
+ declaredReturns: {
894
+ depositwareTemplateId: string;
895
+ count: number;
896
+ }[];
897
+ leadSettledAt: string | null;
898
+ }[];
899
+ aggregatedTotals: {
900
+ confirmedBundleCount: number;
901
+ confirmedAmount: number;
902
+ totalBundleCount: number;
903
+ };
904
+ thresholdCheck: {
905
+ meets: boolean;
906
+ failedConstraints: ("quantity" | "amount")[];
907
+ requiredQuantity: number | null;
908
+ currentQuantity: number;
909
+ requiredAmount: number | null;
910
+ currentAmount: number;
911
+ };
912
+ isLead: boolean;
913
+ };
914
+ /** JoinTeamOrderRequest */
915
+ JoinTeamOrderRequest: {
916
+ publicId: string;
917
+ sessionId: string;
918
+ displayName?: string;
919
+ };
920
+ /** JoinTeamOrderResponse */
921
+ JoinTeamOrderResponse: {
922
+ /** Format: uuid */
923
+ teamOrderId: string;
924
+ basketId: string;
925
+ customerId: string;
926
+ /** @enum {string} */
927
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
928
+ isLead: boolean;
929
+ alreadyJoined: boolean;
930
+ };
931
+ /** SubmitTeamOrderRequest */
932
+ SubmitTeamOrderRequest: {
933
+ publicId: string;
934
+ sessionId: string;
935
+ };
936
+ /** SubmitTeamOrderResponse */
937
+ SubmitTeamOrderResponse: {
938
+ /** Format: uuid */
939
+ teamOrderId: string;
940
+ /** @enum {string} */
941
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
942
+ capturedOrderIds: string[];
943
+ cashPendingOrderIds: string[];
944
+ droppedBasketIds: string[];
945
+ /** Format: date-time */
946
+ placedAt: string;
947
+ };
948
+ /** CancelTeamOrderRequest */
949
+ CancelTeamOrderRequest: {
950
+ publicId: string;
951
+ sessionId: string;
952
+ reason?: string;
953
+ };
954
+ /** CancelTeamOrderResponse */
955
+ CancelTeamOrderResponse: {
956
+ /** Format: uuid */
957
+ teamOrderId: string;
958
+ /** @enum {string} */
959
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
960
+ voidedPaymentIntentIds: string[];
961
+ /** Format: date-time */
962
+ cancelledAt: string;
963
+ };
964
+ /** ExtendDeadlineTeamOrderRequest */
965
+ ExtendDeadlineTeamOrderRequest: {
966
+ publicId: string;
967
+ sessionId: string;
968
+ /** Format: date-time */
969
+ newDeadlineAt: string;
970
+ };
971
+ /** ExtendDeadlineTeamOrderResponse */
972
+ ExtendDeadlineTeamOrderResponse: {
973
+ /** Format: uuid */
974
+ teamOrderId: string;
975
+ /** @enum {string} */
976
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
977
+ /** Format: date-time */
978
+ deadlineAt: string | null;
979
+ };
980
+ /** SetFulfillmentAtTeamOrderRequest */
981
+ SetFulfillmentAtTeamOrderRequest: {
982
+ publicId: string;
983
+ sessionId: string;
984
+ /** Format: date-time */
985
+ fulfillmentAt: string;
986
+ };
987
+ /** SetFulfillmentAtTeamOrderResponse */
988
+ SetFulfillmentAtTeamOrderResponse: {
989
+ /** Format: uuid */
990
+ teamOrderId: string;
991
+ /** @enum {string} */
992
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
993
+ /** Format: date-time */
994
+ fulfillmentAt: string;
995
+ /** Format: date-time */
996
+ deadlineAt: string | null;
997
+ };
998
+ /** SetDiningLocationTeamOrderRequest */
999
+ SetDiningLocationTeamOrderRequest: {
1000
+ publicId: string;
1001
+ sessionId: string;
1002
+ diningLocation: string;
1003
+ };
1004
+ /** SetDiningLocationTeamOrderResponse */
1005
+ SetDiningLocationTeamOrderResponse: {
1006
+ /** Format: uuid */
1007
+ teamOrderId: string;
1008
+ /** @enum {string} */
1009
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
1010
+ diningLocation: string | null;
1011
+ };
1012
+ /** SetDiningTimeTeamOrderRequest */
1013
+ SetDiningTimeTeamOrderRequest: {
1014
+ publicId: string;
1015
+ sessionId: string;
1016
+ diningTime: string;
1017
+ };
1018
+ /** SetDiningTimeTeamOrderResponse */
1019
+ SetDiningTimeTeamOrderResponse: {
1020
+ /** Format: uuid */
1021
+ teamOrderId: string;
1022
+ /** @enum {string} */
1023
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
1024
+ diningTime: string;
1025
+ diningOffsetMinutes: number;
1026
+ };
1027
+ /** SwitchFulfillmentTeamOrderRequest */
1028
+ SwitchFulfillmentTeamOrderRequest: {
1029
+ publicId: string;
1030
+ sessionId: string;
1031
+ /** @enum {string} */
1032
+ fulfillmentType: "pickup" | "delivery";
1033
+ deliveryAddress?: {
1034
+ street: string;
1035
+ city: string;
1036
+ state: string;
1037
+ postalCode: string;
1038
+ country: string;
1039
+ };
1040
+ };
1041
+ /** SwitchFulfillmentTeamOrderResponse */
1042
+ SwitchFulfillmentTeamOrderResponse: {
1043
+ /** Format: uuid */
1044
+ teamOrderId: string;
1045
+ /** @enum {string} */
1046
+ status: "draft" | "collecting" | "locked" | "placed" | "ready" | "completed" | "cancelled";
1047
+ /** @enum {string} */
1048
+ fulfillmentType: "pickup" | "delivery";
1049
+ deliveryAddressId: string | null;
1050
+ };
1051
+ /** UpdateDeliveryAddressTeamOrderRequest */
1052
+ UpdateDeliveryAddressTeamOrderRequest: {
1053
+ publicId: string;
1054
+ sessionId: string;
1055
+ deliveryAddress: {
1056
+ street: string;
1057
+ city: string;
1058
+ state: string;
1059
+ postalCode: string;
1060
+ country: string;
1061
+ };
1062
+ };
1063
+ /** UpdateDeliveryAddressTeamOrderResponse */
1064
+ UpdateDeliveryAddressTeamOrderResponse: {
1065
+ /** Format: uuid */
1066
+ teamOrderId: string;
1067
+ deliveryAddressId: string;
1068
+ };
331
1069
  };
332
1070
  responses: never;
333
1071
  parameters: never;
@@ -1023,22 +1761,6 @@ interface ReduceDeltaPaymentIntentResponse {
1023
1761
  /** Amount actually released (cents). */
1024
1762
  released: number;
1025
1763
  }
1026
- interface AddCashDeltaRequest {
1027
- basketId: string;
1028
- sessionId: string;
1029
- /**
1030
- * Deposit containers the participant declares they will return at pickup.
1031
- * Per-template references only.
1032
- */
1033
- declaredReturns?: DeclaredReturn[];
1034
- }
1035
- interface AddCashDeltaResponse {
1036
- orderId: string;
1037
- /** Delta amount (cents) recorded in this call. */
1038
- amount: number;
1039
- /** Sum of all active cash payments on this order after the delta row was inserted. */
1040
- paidTotal: number;
1041
- }
1042
1764
  interface ConfirmOrderRequest {
1043
1765
  paymentIntentId: string;
1044
1766
  }
@@ -1290,12 +2012,6 @@ declare class OrdersResource extends BaseResource {
1290
2012
  * the order to 'paid' status.
1291
2013
  */
1292
2014
  confirm(orderId: string, request: ConfirmOrderRequest): Promise<ConfirmOrderResponse>;
1293
- /**
1294
- * Record an additional cash handover amount for a team-order participant
1295
- * who has added items after their initial cash payment. No Stripe
1296
- * interaction — this updates the handover total the Lead will collect.
1297
- */
1298
- addCashDelta(request: AddCashDeltaRequest): Promise<AddCashDeltaResponse>;
1299
2015
  }
1300
2016
 
1301
2017
  declare class PaymentIntentsResource extends BaseResource {
@@ -1497,6 +2213,13 @@ interface TeamOrderParticipant {
1497
2213
  displayName: string | null;
1498
2214
  status: ParticipantStatus;
1499
2215
  bundleCount: number;
2216
+ /**
2217
+ * What this participant currently owes the lead — *Ihr Anteil*. For
2218
+ * cash payers, kept live by every basket-mutation action; for card
2219
+ * payers, refreshed on delta-pay and at submit-time partial-capture.
2220
+ * Drives every Anteil / cash-handover UI (TiffinExchange, the lead's
2221
+ * settle-up cash total, the step-2 confirmation, the step-3 row).
2222
+ */
1500
2223
  amount: number;
1501
2224
  paymentMethod: PaymentMethod | null;
1502
2225
  isLead: boolean;
@@ -1987,4 +2710,4 @@ declare class Order3000Client {
1987
2710
  }
1988
2711
 
1989
2712
  export { Order3000Client, fulfillmentTypeEnum, getScheduleInfo, participantStatusEnum, paymentMethodEnum, teamOrderStatusEnum };
1990
- export type { AddCashDeltaRequest, AddCashDeltaResponse, AddToBasketRequest, AddToBasketResponse, Area, AreaAsset, AreaAvailabilityResponse, AreaAvailabilityWindow, AreaBookingMode, AreaBookingRequestResponse, AreaBookingRequestSource, AreaBookingRequestStatus, AreaBookingStatus, AreaFeature, Basket, BasketItem, BasketItemDeposit, BasketItemMenuItemRef, BasketItemMetadata, BasketStatus, BasketTotals, CancelTeamOrderResponse, ConfirmOrderRequest, ConfirmOrderResponse, CreateDeltaPaymentIntentRequest, CreateDeltaPaymentIntentResponse, CreatePaymentIntentRequest, CreatePaymentIntentResponse, CreateTeamOrderRequest, CreateTeamOrderResponse, CropArea, Currency, DayOfWeek, DeclaredReturn, Event, EventByAccessor, EventMenu, EventPoster, EventRow, ExtendDeadlineResponse as ExtendTeamOrderDeadlineResponse, FetchTeamOrderResponse, GetAreaAvailabilityOptions, GetAreaOptions, GetEventOptions, GetMenuOptions, JoinTeamOrderRequest, JoinTeamOrderResponse, LatestOrder, ListEventsOptions, ListEventsResponse, Menu, MenuAsset, MenuBeverage, MenuBundle, MenuBundleDeposit, MenuDish, MenuItem, MenuItemRow, MenuItemType, MenuSubscription, MenuSubscriptionPoster, Order3000ClientConfig, OrderFulfillmentType, OrderStatus, PaymentStatus, PlaceOrderRequest, Promotion, RealtimeConfig, RealtimeEvent, RealtimeSubscription, RemoveFromBasketResponse, Schedule, ScheduleInfo, ScheduleOverride, ScheduleOverrideRow, ScheduleRow, ScheduleTimeSlot, ScheduleWithTimeSlots, SubmitAreaBookingRequestPayload, SubmitTeamOrderResponse, SubscribeRequest, SubscribeResponse, SubscriberStatus, SubscriptionCredit, SubscriptionCreditStatus, SubscriptionOptions, SubscriptionPeriod, SwitchFulfillmentResponse as SwitchTeamOrderFulfillmentResponse, TeamDeliveryAddress, TeamOrderBasketItem, TeamOrderBasketItemMenuItemRef, FulfillmentType as TeamOrderFulfillmentType, TeamOrderParticipant, ParticipantStatus as TeamOrderParticipantStatus, PaymentMethod as TeamOrderPaymentMethod, TeamOrderStatus, ThresholdCheck as TeamOrderThresholdCheck, TimeSlot, Unit, UpdateDeliveryAddressResponse as UpdateTeamOrderDeliveryAddressResponse };
2713
+ export type { AddToBasketRequest, AddToBasketResponse, Area, AreaAsset, AreaAvailabilityResponse, AreaAvailabilityWindow, AreaBookingMode, AreaBookingRequestResponse, AreaBookingRequestSource, AreaBookingRequestStatus, AreaBookingStatus, AreaFeature, Basket, BasketItem, BasketItemDeposit, BasketItemMenuItemRef, BasketItemMetadata, BasketStatus, BasketTotals, CancelTeamOrderResponse, ConfirmOrderRequest, ConfirmOrderResponse, CreateDeltaPaymentIntentRequest, CreateDeltaPaymentIntentResponse, CreatePaymentIntentRequest, CreatePaymentIntentResponse, CreateTeamOrderRequest, CreateTeamOrderResponse, CropArea, Currency, DayOfWeek, DeclaredReturn, Event, EventByAccessor, EventMenu, EventPoster, EventRow, ExtendDeadlineResponse as ExtendTeamOrderDeadlineResponse, FetchTeamOrderResponse, GetAreaAvailabilityOptions, GetAreaOptions, GetEventOptions, GetMenuOptions, JoinTeamOrderRequest, JoinTeamOrderResponse, LatestOrder, ListEventsOptions, ListEventsResponse, Menu, MenuAsset, MenuBeverage, MenuBundle, MenuBundleDeposit, MenuDish, MenuItem, MenuItemRow, MenuItemType, MenuSubscription, MenuSubscriptionPoster, Order3000ClientConfig, OrderFulfillmentType, OrderStatus, PaymentStatus, PlaceOrderRequest, Promotion, RealtimeConfig, RealtimeEvent, RealtimeSubscription, RemoveFromBasketResponse, Schedule, ScheduleInfo, ScheduleOverride, ScheduleOverrideRow, ScheduleRow, ScheduleTimeSlot, ScheduleWithTimeSlots, SubmitAreaBookingRequestPayload, SubmitTeamOrderResponse, SubscribeRequest, SubscribeResponse, SubscriberStatus, SubscriptionCredit, SubscriptionCreditStatus, SubscriptionOptions, SubscriptionPeriod, SwitchFulfillmentResponse as SwitchTeamOrderFulfillmentResponse, TeamDeliveryAddress, TeamOrderBasketItem, TeamOrderBasketItemMenuItemRef, FulfillmentType as TeamOrderFulfillmentType, TeamOrderParticipant, ParticipantStatus as TeamOrderParticipantStatus, PaymentMethod as TeamOrderPaymentMethod, TeamOrderStatus, ThresholdCheck as TeamOrderThresholdCheck, TimeSlot, Unit, UpdateDeliveryAddressResponse as UpdateTeamOrderDeliveryAddressResponse };