預訂狀態規格
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
BookingStatus 是指現有預訂的狀態。
// Status of a booking.
//
// Updating booking status does not change the status of the associated payment.
// Prepayment status updates should be done using the PrepaymentStatus enum.
//
// nextID: 6
enum BookingStatus {
// Not specified.
BOOKING_STATUS_UNSPECIFIED = 0;
// Booking has been confirmed
CONFIRMED = 1;
// ...
CANCELED = 3;
// User did not show for the appointment
NO_SHOW = 4;
// User did not show for the appointment in violation of the cancellation
// policy.
NO_SHOW_PENALIZED = 5;
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eBookingStatus\u003c/code\u003e is an enumeration representing the current state of a booking, such as confirmed, canceled, or no-show.\u003c/p\u003e\n"],["\u003cp\u003eThis status is independent of payment or prepayment status, which are handled separately.\u003c/p\u003e\n"],["\u003cp\u003eSpecific \u003ccode\u003eBookingStatus\u003c/code\u003e values indicate whether a no-show violated cancellation policies (\u003ccode\u003eNO_SHOW_PENALIZED\u003c/code\u003e).\u003c/p\u003e\n"]]],["BookingStatus, representing the status of an existing booking, includes several states. These states are `CONFIRMED`, indicating a confirmed booking; `CANCELED`, meaning the booking was canceled; `NO_SHOW`, where the user missed the appointment; and `NO_SHOW_PENALIZED`, where the user missed the appointment and violated the cancellation policy. Importantly, updating the booking status does not impact associated payment statuses. Prepayment status changes should use the PrepaymentStatus enum instead.\n"],null,["# Booking status specification\n\nBookingStatus is the status of an existing Booking. \n\n```gdscript\n// Status of a booking.\n//\n// Updating booking status does not change the status of the associated payment.\n// Prepayment status updates should be done using the PrepaymentStatus enum.\n//\n// nextID: 6\nenum BookingStatus {\n // Not specified.\n BOOKING_STATUS_UNSPECIFIED = 0;\n\n // Booking has been confirmed\n CONFIRMED = 1;\n\n // ...\n CANCELED = 3;\n\n // User did not show for the appointment\n NO_SHOW = 4;\n\n // User did not show for the appointment in violation of the cancellation\n // policy.\n NO_SHOW_PENALIZED = 5;\n}\n```"]]