Class PolicyApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-23T13:12:29.043847278+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<PropertyPolicySupplier> createPolicy(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      201 - Created

      Parameters:
      hotelIdentifier - Create property policy for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicySupplier
      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<PropertyPolicySupplier>> createPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      201 - Created

      Parameters:
      hotelIdentifier - Create property policy for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<PropertyPolicySupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createPolicyWithResponseSpec(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      201 - Created

      Parameters:
      hotelIdentifier - Create property policy for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPropertyPolicy

      public reactor.core.publisher.Mono<PropertyPolicySupplier> 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Retrieve property policy for this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicySupplier
      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<PropertyPolicySupplier>> showPropertyPolicyWithHttpInfo(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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Retrieve property policy for this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<PropertyPolicySupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPropertyPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showPropertyPolicyWithResponseSpec(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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Retrieve property policy for this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updatePropertyPolicy

      public reactor.core.publisher.Mono<PropertyPolicySupplier> updatePropertyPolicy(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Update property policy record for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      PropertyPolicySupplier
      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<PropertyPolicySupplier>> updatePropertyPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Update property policy record for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<PropertyPolicySupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updatePropertyPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updatePropertyPolicyWithResponseSpec(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, 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

      415 - Unsupported Media Type

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      405 - Method Not Allowed

      200 - OK

      Parameters:
      hotelIdentifier - Update property policy record for this hotel identifier
      propertyPolicySupplier - The propertyPolicySupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API