예약의 첫 번째 단계는 임대하기입니다. 요청된 약속 시간대가
유효하고 아직 이용 가능한지
파트너 백엔드에서 확인합니다. 내부적으로 파트너가 요청된 시간대를 임시 보존하며,
해당 시간대가 lease_expiration_time
에 자동으로 만료되도록 설정됩니다. 예를 들어
요청된 임대 시간이 너무 긴 경우 백엔드에서
lease_expiration_time
을 수정할 수 있습니다. 생성된 임대가 클라이언트에 반환됩니다.
// Temporary lease for an inventory slot message Lease { // ID of the lease. Ignored when creating a lease. string lease_id = 1; // ID of the merchant for the slot string merchant_id = 2; // ID of the merchant service string service_id = 3; // Start time of the appointment slot google.protobuf.Timestamp start_time = 4; // Duration of the appointment slot google.protobuf.Duration duration = 5; // Opaque tag that identifies the availability slot and matches the value // provided in the availability feed. string availability_tag = 8; // The set of resources that disambiguates the appointment slot, e.g. by // indicating the staff member and room selected by the user. Resources resources = 9; // Unique identifier for this lease, chosen by the client. Serves as an // idempotency token for [ext.maps.booking.partner.v0.CreateLease] requests. string client_reference = 6; // Expiration time of the lease google.protobuf.Timestamp lease_expiration_time = 7; } // Reference to a [ext.maps.booking.partner.v0.Lease] that has been created via // [ext.maps.booking.partner.v0.CreateLease] message LeaseReference { // Lease ID string lease_id = 1; }