Package travel.wink.sdk.affiliate.api
Class HotelRelationshipRequestsApi
java.lang.Object
travel.wink.sdk.affiliate.api.HotelRelationshipRequestsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-09-16T10:41:04.695846072+07:00[Asia/Bangkok]")
public class HotelRelationshipRequestsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<SalesChannelRelationshipRequestView>createPropertyRequest(String companyIdentifier, UpsertSalesChannelRelationshipRequestRequest upsertSalesChannelRelationshipRequestRequest) Create hotel request Create a new hotel request.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SalesChannelRelationshipRequestView>>createPropertyRequestWithHttpInfo(String companyIdentifier, UpsertSalesChannelRelationshipRequestRequest upsertSalesChannelRelationshipRequestRequest) reactor.core.publisher.Mono<RemoveEntryResponse>removePropertyRequest(String companyIdentifier, String salesChannelRequestIdentifier, String accept) Reject hotel request Delete a hotel requestreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>>removePropertyRequestWithHttpInfo(String companyIdentifier, String salesChannelRequestIdentifier, String accept) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Flux<SalesChannelRelationshipRequestView>showPropertyRequests(String companyIdentifier, String accept) Show hotel requests Retrieve list of all hotel requests for this company.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SalesChannelRelationshipRequestView>>>showPropertyRequestsWithHttpInfo(String companyIdentifier, String accept)
-
Constructor Details
-
HotelRelationshipRequestsApi
public HotelRelationshipRequestsApi() -
HotelRelationshipRequestsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createPropertyRequest
public reactor.core.publisher.Mono<SalesChannelRelationshipRequestView> createPropertyRequest(String companyIdentifier, UpsertSalesChannelRelationshipRequestRequest upsertSalesChannelRelationshipRequestRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Create hotel request Create a new hotel request.503 - Service Unavailable
400 - Bad Request
405 - Method Not Allowed
415 - Unsupported Media Type
500 - Internal Server Error
404 - Not Found
403 - Forbidden
401 - Unauthorized
201 - Created
- Parameters:
companyIdentifier- Create hotel request and associate it with this company identifierupsertSalesChannelRelationshipRequestRequest- The upsertSalesChannelRelationshipRequestRequest parameter- Returns:
- SalesChannelRelationshipRequestView
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createPropertyRequestWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SalesChannelRelationshipRequestView>> createPropertyRequestWithHttpInfo(String companyIdentifier, UpsertSalesChannelRelationshipRequestRequest upsertSalesChannelRelationshipRequestRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
removePropertyRequest
public reactor.core.publisher.Mono<RemoveEntryResponse> removePropertyRequest(String companyIdentifier, String salesChannelRequestIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Reject hotel request Delete a hotel request503 - Service Unavailable
400 - Bad Request
405 - Method Not Allowed
415 - Unsupported Media Type
500 - Internal Server Error
404 - Not Found
403 - Forbidden
401 - Unauthorized
202 - Accepted
- Parameters:
companyIdentifier- Remove hotel request owned by this company identifiersalesChannelRequestIdentifier- Remove hotel request with this identifieraccept- The accept parameter- Returns:
- RemoveEntryResponse
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
removePropertyRequestWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removePropertyRequestWithHttpInfo(String companyIdentifier, String salesChannelRequestIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
showPropertyRequests
public reactor.core.publisher.Flux<SalesChannelRelationshipRequestView> showPropertyRequests(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Show hotel requests Retrieve list of all hotel requests for this company. You can decide to retrieve all specific hotel relationships or only generic ones using the 'owner' request parameter.503 - Service Unavailable
400 - Bad Request
405 - Method Not Allowed
415 - Unsupported Media Type
500 - Internal Server Error
404 - Not Found
403 - Forbidden
401 - Unauthorized
200 - OK
- Parameters:
companyIdentifier- Show all hotel requests for this company identifieraccept- The accept parameter- Returns:
- List<SalesChannelRelationshipRequestView>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
showPropertyRequestsWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SalesChannelRelationshipRequestView>>> showPropertyRequestsWithHttpInfo(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-