预订是指对商品目录空档的预约。它包含进行识别和预约所需的信息。
// 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 读取。