Class PolicyApi

java.lang.Object
travel.wink.sdk.extranet.api.PolicyApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-11-08T09:36:20.822132243+07:00[Asia/Bangkok]") public class PolicyApi extends Object
  • Constructor Details

    • PolicyApi

      public PolicyApi()
    • PolicyApi

      @Autowired public PolicyApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createPolicy

      public reactor.core.publisher.Mono<PropertyPolicy> createPolicy(String hotelIdentifier, PropertyPolicy propertyPolicy, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create property policy Creates the initial property policy record for the hotel.

      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:
      hotelIdentifier - Create property policy for this hotel identifier
      propertyPolicy - The propertyPolicy parameter
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicy
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>> createPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicy propertyPolicy, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showPropertyPolicy

      public reactor.core.publisher.Mono<PropertyPolicy> showPropertyPolicy(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show property policy Returns property policy for hotel

      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:
      hotelIdentifier - Retrieve property policy for this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicy
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPropertyPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>> showPropertyPolicyWithHttpInfo(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updatePropertyPolicy

      public reactor.core.publisher.Mono<PropertyPolicy> updatePropertyPolicy(String hotelIdentifier, PropertyPolicy propertyPolicy, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update property policy Update property policy record for the hotel.

      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:
      hotelIdentifier - Update property policy record for this hotel identifier
      propertyPolicy - The propertyPolicy parameter
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicy
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updatePropertyPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>> updatePropertyPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicy propertyPolicy, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException