Package travel.wink.sdk.extranet.api
Class PolicyApi
java.lang.Object
travel.wink.sdk.extranet.api.PolicyApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-03-10T10:48:44.479471290+07:00[Asia/Bangkok]")
public class PolicyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<PropertyPolicySupplier>createPolicy(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, String winkVersion) Create property policy Creates the initial property policy record for the hotel.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicySupplier>>createPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<PropertyPolicySupplier>showPropertyPolicy(String hotelIdentifier, String winkVersion) Show property policy Returns property policy for hotelreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicySupplier>>showPropertyPolicyWithHttpInfo(String hotelIdentifier, String winkVersion) reactor.core.publisher.Mono<PropertyPolicySupplier>updatePropertyPolicy(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, String winkVersion) Update property policy Update property policy record for the hotel.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicySupplier>>updatePropertyPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicySupplier propertyPolicySupplier, String winkVersion)
-
Constructor Details
-
PolicyApi
public PolicyApi() -
PolicyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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
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 identifierpropertyPolicySupplier- The propertyPolicySupplier parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 hotel503 - 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 identifierwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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
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 identifierpropertyPolicySupplier- The propertyPolicySupplier parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-