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 Details

    • HotelRelationshipRequestsApi

      public HotelRelationshipRequestsApi()
    • HotelRelationshipRequestsApi

      @Autowired public HotelRelationshipRequestsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 identifier
      upsertSalesChannelRelationshipRequestRequest - 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 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

      202 - Accepted

      Parameters:
      companyIdentifier - Remove hotel request owned by this company identifier
      salesChannelRequestIdentifier - Remove hotel request with this identifier
      accept - 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 identifier
      accept - 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