Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Un échec WaitlistEntry peut se produire lors de la création d'une entrée dans une liste d'attente.
//Statusdatathatconveyswhycreatingawaitlistentryfails.//Ifthereisabusinesslogicerrorthatisnotcapturedhere,please//reachouttotheReservewithGoogleteamtoaddittothislist.Other//errorsshouldbereturnedusingstandardHTTPerrorcodes.messageWaitlistBusinessLogicFailure{enumCause{//Defaultvalue:Don't use; amounts to an "unknown error"//UnexpectederrorsmustbereturnedusingstandardHTTPerrorcodes.CAUSE_UNSPECIFIED=0;//Theuserhasalreadybookedawaitlistentrywiththepartner.EXISTING_WAITLIST_ENTRY=1;//Therequestedpartysizeisbelowthemerchant’sminimum.BELOW_MIN_PARTY_SIZE=2;//Therequestedpartysizeisabovethemerchant’smaximum.ABOVE_MAX_PARTY_SIZE=3;//Therequestedmerchantiscurrentlyclosed.MERCHANT_CLOSED=4;//Thereiscurrentlynowaitandtheusershouldwalkinwithoutjoining//thewaitlist.NO_WAIT=5;//Thewaitlistisatcapacityandnewusersarenotbeingacceptedatthis//time.WAITLIST_FULL=6;//Thecountryofthephonenumberisnotsupported.PHONE_NUMBER_COUNTRY_UNSUPPORTED=7;//Thewaitlistisclosedandnotacceptingnewusers.Thisisexpectedwhen//thewaitlistentersstateCLOSED_OTHERaftertheuserhasalreadyseena//waitestimate.WAITLIST_CLOSED=8;}//Required.Thereasonwhythebookingfailed.Causecause=1;//Thisoptionalfieldisusedforthepartnertoincludeadditional//informationfordebuggingpurposesonly.stringdescription=2;}
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/11/26 (UTC)."],[[["`WaitlistEntry` 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."],["If a `WaitlistEntry` creation fails, the `WaitlistBusinessLogicFailure` message provides a specific `Cause` for the failure, offering insight into the reason."],["The `WaitlistBusinessLogicFailure` message may optionally include a `description` field for debugging purposes, providing additional context to the partner."]]],[]]