parasync: OPERA Cloud Price Availability Rate Async API
3 operations from Oracle’s published OHIP specifications (26.3.0.0). Each shows its HTTP method and path and the typed call on ctx.Ohip.Api. hotelId defaults to the invocation’s hotel.
getRestrictions
Section titled “getRestrictions”Get status for created restrictions.
GET /par/async/v1/externalSystems/{extSystemCode}/hotels/{hotelId}/restrictions/{requestId} · hotel-scoped · asynchronous
Task<RestrictionsStatus?> ctx.Ohip.Api.Parasync.GetRestrictionsAsync(string extSystemCode, string requestId, string? hotelId = null, CancellationToken ct = default)getRestrictionsProcessStatus
Section titled “getRestrictionsProcessStatus”Check status of Restrictions
HEAD /par/async/v1/externalSystems/{extSystemCode}/hotels/{hotelId}/restrictions/{requestId} · hotel-scoped · asynchronous
Task ctx.Ohip.Api.Parasync.GetRestrictionsProcessStatusAsync(string extSystemCode, string requestId, string? hotelId = null, CancellationToken ct = default)postRestrictionsProcess
Section titled “postRestrictionsProcess”Create restrictions in OPERA Cloud.
POST /par/async/v1/externalSystems/{extSystemCode}/hotels/{hotelId}/restrictions · hotel-scoped · asynchronous
Task<RestrictionsStatus?> ctx.Ohip.Api.Parasync.PostRestrictionsProcessAsync(string extSystemCode, Restrictions body, string? hotelId = null, CancellationToken ct = default)