Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wyślij prośbę
CreateLeaseRequest
Zwracana wartość
CreateLeaseResponse
Wymagania:
lease_id musi zostać utworzony przez backend partnera i ustawiony w CreateLeaseResponse.
W odpowiedzi na wywołanie CreateLeaseResponse musisz podać wartość lease_expiration_time.
Jeśli pole resources jest określone w zapytaniu CreateLeaseRequest, musi być ustawione w odpowiedzi CreateLeaseResponse i musi być zgodne z zapytaniem CreateLeaseRequest.
Wszystkie pozostałe pola w CreateLeaseResponse muszą być ustawione i zgodne z CreateLeaseRequest.
Kanoniczne kody błędów gRPC
INVALID_ARGUMENT (nieprawidłowy identyfikator sprzedawcy, identyfikator usługi, odniesienie do klienta lub specyfikacja czasu rezerwacji)
ALREADY_EXISTS (jeśli klient ma już wykupiony czas na tym slocie)
RESOURCE_EXHAUSTED (jeśli slot jest niedostępny)
// Request to create a [ext.maps.booking.partner.v0.Lease] for a slot in the// inventory. The expiration time in the returned Lease may be modified by the// backend, e.g. if the requested lease period is too long.messageCreateLeaseRequest{// The lease to be created with information about the appointment slotLeaselease=1;}// Response for the [ext.maps.booking.partner.v0.CreateLease] RPC with the// created [ext.maps.booking.partner.v0.Lease]messageCreateLeaseResponse{// The created [ext.maps.booking.partner.v0.Lease]Leaselease=1;}
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `CreateLeaseRequest` initiates a lease creation, and `CreateLeaseResponse` returns the created lease. The partner backend must generate the `lease_id` and `lease_expiration_time` in the response. If `resources` is in the request, it must be mirrored in the response. All other response fields should mirror the request. Potential gRPC errors include `INVALID_ARGUMENT`, `ALREADY_EXISTS` if a lease exists, or `RESOURCE_EXHAUSTED` if the slot is unavailable. The response might adjust the expiration time.\n"]]