Когда клиент оформляет заказ, Ordering End-to-End отображает выбор чаевых. Это позволяет клиенту выбрать сумму чаевых, которую он будет включать в свой заказ.
Вы можете скрыть инструмент выбора чаевых для ресторанного сервиса, используя ServingConfig .disableTipWidget в фидах данных о вашем инвентаре.
Как установить сумму чаевых по умолчанию
Вы можете установить сумму чаевых по умолчанию или отказаться от чаевых в ресторане во время оформления заказа. В CheckoutResponseMessage могут поддерживаться следующие варианты использования:
Ресторан требует фиксированную сумму чаевых.
В ProposedOrder.otherItems внутри CheckoutResponseMessage добавьте позицию типа GRATUITY с фиксированной суммой внутри.
Ресторан предлагает чаевые и дает клиенту возможность изменить сумму.
В ProposedOrder.otherItems внутри CheckoutResponseMessage добавьте позицию типа GRATUITY с фиксированной суммой. Обязательно добавьте gratuityExtension со значением gratuityTypeUSER_MODIFIABLE .
[null,null,["Последнее обновление: 2025-01-11 UTC."],[[["Ordering End-to-End displays a tip selector during checkout, allowing customers to add gratuity to their order, which is sent within the `SubmitOrderRequestMessage`."],["Restaurants can hide the tip selector using the `ServingConfig.disableTipWidget` in their inventory data feeds."],["Restaurants can set a fixed gratuity amount or a suggested gratuity amount that users can modify through `CheckoutResponseMessage`."],["Restaurants can refuse gratuity altogether by including a `GRATUITY` line item with a blank amount in the `CheckoutResponseMessage`."]]],["During checkout, the Ordering End-to-End system displays a tip selector, allowing customers to choose a gratuity amount. This amount is sent as a `GRATUITY` `LineItem` in the `SubmitOrderRequestMessage`. The tip selector can be hidden using `ServingConfig.disableTipWidget`. Restaurants can set a fixed gratuity, suggest a modifiable gratuity using `USER_MODIFIABLE`, or disable gratuity by providing a blank amount in `ProposedOrder.otherItems` within `CheckoutResponseMessage`. These options are implemented with the type `GRATUITY` in the `LineItem`.\n"]]