预订规范
预订是指对商品目录空档的预约。它包含进行识别和预约所需的信息。
// A booking for an inventory slot
message Booking {
// ID of this booking (required)
string booking_id = 1;
// The appointment slot of this booking (required for CreateBooking and
// UpdateBooking:modify, but not UpdateBooking:cancel)
Slot slot = 2;
// Personal information of the user making the appointment (required for
// CreateBooking)
UserInformation user_information = 3;
// Status of the booking (required for CreateBooking and UpdateBooking:cancel,
// but not UpdateBooking:modify)
BookingStatus status = 4;
// Information about payment transactions that relate to the booking.
// (optional)
PaymentInformation payment_information = 5;
// Information about virtual session related to this booking. (optional)
VirtualSessionInfo virtual_session_info = 6;
}
创建预订
预订的创建方式有两种:
- 您可以直接从某个空档创建预订。
- 借助对租借的可选支持,系统会先为该空档创建一个租借,然后将其敲定为预订。
如需了解详情,请参阅 CreateBooking。
更新预订
可以更新(即重新安排或取消)预订。
如需了解详情,请参阅 UpdateBooking。
获取预订的状态
某个预订的预订状态(请参阅 BookingStatus)和预付款状态(请参阅 PrepaymentStatus)可通过 GetBookingStatus 和 ListBookings 读取。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-26。
[null,null,["最后更新时间 (UTC):2024-11-26。"],[[["A Booking represents an appointment for an inventory slot and contains details like user information, booking status, and payment information."],["Bookings can be created directly from a Slot or by finalizing a Lease."],["Existing Bookings can be updated to reschedule or cancel them."],["Booking status and Prepayment status can be retrieved using GetBookingStatus and ListBookings methods."]]],["A `Booking` represents an appointment for an inventory slot and includes a `booking_id`, `slot`, `user_information`, `status`, and optional `payment_information` and `virtual_session_info`. Bookings are created from a `Slot`, or optionally via a `Lease`. Bookings can be updated, meaning they can be rescheduled or canceled. The booking's status, and optionally its prepayment status, can be retrieved via `GetBookingStatus` or `ListBookings`. The method `CreateBooking` is used to create a Booking, and `UpdateBooking` to update it.\n"]]