order3000 0.18.3 → 0.18.4

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.cjs CHANGED
@@ -431,14 +431,6 @@ class OrdersResource extends BaseResource {
431
431
  async confirm(orderId, request) {
432
432
  return this.request("POST", `/${orderId}/confirm`, request);
433
433
  }
434
- /**
435
- * Record an additional cash handover amount for a team-order participant
436
- * who has added items after their initial cash payment. No Stripe
437
- * interaction — this updates the handover total the Lead will collect.
438
- */
439
- async addCashDelta(request) {
440
- return this.request("POST", "/cash-delta", request);
441
- }
442
434
  }
443
435
 
444
436
  class PaymentIntentsResource extends BaseResource {
package/dist/client.d.cts CHANGED
@@ -159,6 +159,7 @@ interface components {
159
159
  updatedBy?: string | null;
160
160
  teamOrderId?: string | null;
161
161
  participantDisplayName?: string | null;
162
+ leadSettledAt?: unknown;
162
163
  };
163
164
  /** PlaceOrderResponse */
164
165
  PlaceOrderResponse: {
@@ -187,6 +188,7 @@ interface components {
187
188
  updatedBy: string | null;
188
189
  teamOrderId: string | null;
189
190
  participantDisplayName: string | null;
191
+ leadSettledAt: unknown;
190
192
  };
191
193
  /**
192
194
  * MakeReservationRequest
@@ -1023,22 +1025,6 @@ interface ReduceDeltaPaymentIntentResponse {
1023
1025
  /** Amount actually released (cents). */
1024
1026
  released: number;
1025
1027
  }
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
1028
  interface ConfirmOrderRequest {
1043
1029
  paymentIntentId: string;
1044
1030
  }
@@ -1290,12 +1276,6 @@ declare class OrdersResource extends BaseResource {
1290
1276
  * the order to 'paid' status.
1291
1277
  */
1292
1278
  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
1279
  }
1300
1280
 
1301
1281
  declare class PaymentIntentsResource extends BaseResource {
@@ -1497,6 +1477,13 @@ interface TeamOrderParticipant {
1497
1477
  displayName: string | null;
1498
1478
  status: ParticipantStatus;
1499
1479
  bundleCount: number;
1480
+ /**
1481
+ * What this participant currently owes the lead — *Ihr Anteil*. For
1482
+ * cash payers, kept live by every basket-mutation action; for card
1483
+ * payers, refreshed on delta-pay and at submit-time partial-capture.
1484
+ * Drives every Anteil / cash-handover UI (TiffinExchange, the lead's
1485
+ * settle-up cash total, the step-2 confirmation, the step-3 row).
1486
+ */
1500
1487
  amount: number;
1501
1488
  paymentMethod: PaymentMethod | null;
1502
1489
  isLead: boolean;
@@ -1987,4 +1974,4 @@ declare class Order3000Client {
1987
1974
  }
1988
1975
 
1989
1976
  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 };
1977
+ 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 };
package/dist/client.d.mts CHANGED
@@ -159,6 +159,7 @@ interface components {
159
159
  updatedBy?: string | null;
160
160
  teamOrderId?: string | null;
161
161
  participantDisplayName?: string | null;
162
+ leadSettledAt?: unknown;
162
163
  };
163
164
  /** PlaceOrderResponse */
164
165
  PlaceOrderResponse: {
@@ -187,6 +188,7 @@ interface components {
187
188
  updatedBy: string | null;
188
189
  teamOrderId: string | null;
189
190
  participantDisplayName: string | null;
191
+ leadSettledAt: unknown;
190
192
  };
191
193
  /**
192
194
  * MakeReservationRequest
@@ -1023,22 +1025,6 @@ interface ReduceDeltaPaymentIntentResponse {
1023
1025
  /** Amount actually released (cents). */
1024
1026
  released: number;
1025
1027
  }
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
1028
  interface ConfirmOrderRequest {
1043
1029
  paymentIntentId: string;
1044
1030
  }
@@ -1290,12 +1276,6 @@ declare class OrdersResource extends BaseResource {
1290
1276
  * the order to 'paid' status.
1291
1277
  */
1292
1278
  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
1279
  }
1300
1280
 
1301
1281
  declare class PaymentIntentsResource extends BaseResource {
@@ -1497,6 +1477,13 @@ interface TeamOrderParticipant {
1497
1477
  displayName: string | null;
1498
1478
  status: ParticipantStatus;
1499
1479
  bundleCount: number;
1480
+ /**
1481
+ * What this participant currently owes the lead — *Ihr Anteil*. For
1482
+ * cash payers, kept live by every basket-mutation action; for card
1483
+ * payers, refreshed on delta-pay and at submit-time partial-capture.
1484
+ * Drives every Anteil / cash-handover UI (TiffinExchange, the lead's
1485
+ * settle-up cash total, the step-2 confirmation, the step-3 row).
1486
+ */
1500
1487
  amount: number;
1501
1488
  paymentMethod: PaymentMethod | null;
1502
1489
  isLead: boolean;
@@ -1987,4 +1974,4 @@ declare class Order3000Client {
1987
1974
  }
1988
1975
 
1989
1976
  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 };
1977
+ 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 };
package/dist/client.mjs CHANGED
@@ -429,14 +429,6 @@ class OrdersResource extends BaseResource {
429
429
  async confirm(orderId, request) {
430
430
  return this.request("POST", `/${orderId}/confirm`, request);
431
431
  }
432
- /**
433
- * Record an additional cash handover amount for a team-order participant
434
- * who has added items after their initial cash payment. No Stripe
435
- * interaction — this updates the handover total the Lead will collect.
436
- */
437
- async addCashDelta(request) {
438
- return this.request("POST", "/cash-delta", request);
439
- }
440
432
  }
441
433
 
442
434
  class PaymentIntentsResource extends BaseResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",