Definizione di WaitlistEntryFailure
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'errore WaitlistEntry può verificarsi durante la creazione di una voce della lista d'attesa.
// Status data that conveys why creating a waitlist entry fails.
// If there is a business logic error that is not captured here, please
// reach out to the Reserve with Google team to add it to this list. Other
// errors should be returned using standard HTTP error codes.
message WaitlistBusinessLogicFailure {
enum Cause {
// Default value: Don't use; amounts to an "unknown error"
// Unexpected errors must be returned using standard HTTP error codes.
CAUSE_UNSPECIFIED = 0;
// The user has already booked a waitlist entry with the partner.
EXISTING_WAITLIST_ENTRY = 1;
// The requested party size is below the merchant’s minimum.
BELOW_MIN_PARTY_SIZE = 2;
// The requested party size is above the merchant’s maximum.
ABOVE_MAX_PARTY_SIZE = 3;
// The requested merchant is currently closed.
MERCHANT_CLOSED = 4;
// There is currently no wait and the user should walk in without joining
// the waitlist.
NO_WAIT = 5;
// The waitlist is at capacity and new users are not being accepted at this
// time.
WAITLIST_FULL = 6;
// The country of the phone number is not supported.
PHONE_NUMBER_COUNTRY_UNSUPPORTED = 7;
// The waitlist is closed and not accepting new users. This is expected when
// the waitlist enters state CLOSED_OTHER after the user has already seen a
// wait estimate.
WAITLIST_CLOSED = 8;
}
// Required. The reason why the booking failed.
Cause cause = 1;
// This optional field is used for the partner to include additional
// information for debugging purposes only.
string description = 2;
}
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eWaitlistEntry\u003c/code\u003e creation can fail due to various business logic reasons, such as an existing waitlist entry, party size limitations, merchant's operational status (closed or no wait), waitlist capacity, unsupported phone number country, or waitlist closure.\u003c/p\u003e\n"],["\u003cp\u003eIf a \u003ccode\u003eWaitlistEntry\u003c/code\u003e creation fails, the \u003ccode\u003eWaitlistBusinessLogicFailure\u003c/code\u003e message provides a specific \u003ccode\u003eCause\u003c/code\u003e for the failure, offering insight into the reason.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWaitlistBusinessLogicFailure\u003c/code\u003e message may optionally include a \u003ccode\u003edescription\u003c/code\u003e field for debugging purposes, providing additional context to the partner.\u003c/p\u003e\n"]]],["Waitlist entry creation can fail due to various reasons, indicated by `WaitlistBusinessLogicFailure`. These causes include: an existing entry, party size issues (below minimum or above maximum), the merchant being closed, no current wait, a full waitlist, an unsupported phone number country, or the waitlist being closed. Each failure has an enumerated cause, and optional debugging information can be added to a description. Standard HTTP errors should be used for other issues.\n"],null,["# WaitlistEntryFailure definition\n\nWaitlistEntry failure can happen when creating a waitlist entry. \n\n```gdscript\n// Status data that conveys why creating a waitlist entry fails.\n// If there is a business logic error that is not captured here, please\n// reach out to the Reserve with Google team to add it to this list. Other\n// errors should be returned using standard HTTP error codes.\nmessage WaitlistBusinessLogicFailure {\n enum Cause {\n // Default value: Don't use; amounts to an \"unknown error\"\n // Unexpected errors must be returned using standard HTTP error codes.\n CAUSE_UNSPECIFIED = 0;\n\n // The user has already booked a waitlist entry with the partner.\n EXISTING_WAITLIST_ENTRY = 1;\n\n // The requested party size is below the merchant's minimum.\n BELOW_MIN_PARTY_SIZE = 2;\n\n // The requested party size is above the merchant's maximum.\n ABOVE_MAX_PARTY_SIZE = 3;\n\n // The requested merchant is currently closed.\n MERCHANT_CLOSED = 4;\n\n // There is currently no wait and the user should walk in without joining\n // the waitlist.\n NO_WAIT = 5;\n\n // The waitlist is at capacity and new users are not being accepted at this\n // time.\n WAITLIST_FULL = 6;\n\n // The country of the phone number is not supported.\n PHONE_NUMBER_COUNTRY_UNSUPPORTED = 7;\n\n // The waitlist is closed and not accepting new users. This is expected when\n // the waitlist enters state CLOSED_OTHER after the user has already seen a\n // wait estimate.\n WAITLIST_CLOSED = 8;\n }\n\n // Required. The reason why the booking failed.\n Cause cause = 1;\n\n // This optional field is used for the partner to include additional\n // information for debugging purposes only.\n string description = 2;\n}\n```"]]