Kiralama spesifikasyonu
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Randevu alırken ilk adım, kiralama sözleşmesini oluşturmaktır. İş ortağı arka ucu, istenen randevu aralığının geçerli ve hâlâ kullanılabilir olduğunu doğrular. İş ortağı, dahili olarak istenen yer için geçici bir bekletme oluşturur. Bu bekletme, lease_expiration_time tarihinde otomatik olarak sona erecek şekilde ayarlanır. Arka uç, lease_expiration_time değerini değiştirebilir. Örneğin, istenen kiralama süresi çok uzunsa. Oluşturulan kiralama istemciye döndürülür.
// Temporary lease for an inventory slotmessageLease{optionfeatures.(pb.java).nest_in_file_class=YES;// ID of the lease. Ignored when creating a lease.stringlease_id=1;// ID of the merchant for the slotstringmerchant_id=2;// ID of the merchant servicestringservice_id=3;// Start time of the appointment slotgoogle.protobuf.Timestampstart_time=4;// Duration of the appointment slotgoogle.protobuf.Durationduration=5;// Opaque tag that identifies the availability slot and matches the value// provided in the availability feed.stringavailability_tag=8;// The set of resources that disambiguates the appointment slot, e.g. by// indicating the staff member and room selected by the user.Resourcesresources=9;// Unique identifier for this lease, chosen by the client. Serves as an// idempotency token for [ext.maps.booking.partner.v0.CreateLease] requests.stringclient_reference=6;// Expiration time of the leasegoogle.protobuf.Timestamplease_expiration_time=7;}// Reference to a [ext.maps.booking.partner.v0.Lease] that has been created via// [ext.maps.booking.partner.v0.CreateLease]messageLeaseReference{optionfeatures.(pb.java).nest_in_file_class=YES;// Lease IDstringlease_id=1;}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2026-02-18 UTC."],[],["When booking an appointment, a lease is created to temporarily hold the requested slot. The partner verifies the slot's availability and sets an automatic expiration (`lease_expiration_time`). This lease includes a unique `lease_id`, `merchant_id`, `service_id`, `start_time`, `duration`, `availability_tag`, and associated `resources`. The client provides a `client_reference` for idempotency. The backend can adjust the `lease_expiration_time`. The created lease or a `leaseReference` with the `lease_id` is returned. Leases are optional in v2 of the API.\n"]]