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="2022-05-28T13:49:39.867864+07:00[Asia/Bangkok]")
public class PolicyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<PropertyPolicy>createPolicy(String hotelIdentifier, PropertyPolicy propertyPolicy) Create property policy Creates the initial property policy record for the hotel.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>>createPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicy propertyPolicy) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<PropertyPolicy>showPropertyPolicy(String hotelIdentifier, String accept) Show property policy Returns property policy for hotelreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>>showPropertyPolicyWithHttpInfo(String hotelIdentifier, String accept) reactor.core.publisher.Mono<PropertyPolicy>updatePropertyPolicy(String hotelIdentifier, PropertyPolicy propertyPolicy) Update property policy Update property policy record for the hotel.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PropertyPolicy>>updatePropertyPolicyWithHttpInfo(String hotelIdentifier, PropertyPolicy propertyPolicy)
-
Constructor Details
-
PolicyApi
public PolicyApi() -
PolicyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createPolicy
public reactor.core.publisher.Mono<PropertyPolicy> createPolicy(String hotelIdentifier, PropertyPolicy propertyPolicy) throws org.springframework.web.reactive.function.client.WebClientResponseException Create property policy Creates the initial property policy record for the hotel.405 - Method Not Allowed
415 - Unsupported Media Type
400 - Bad Request
403 - Forbidden
401 - Unauthorized
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
201 - Created
- Parameters:
hotelIdentifier- Create property policy for this hotel identifierpropertyPolicy- The propertyPolicy 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) 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 accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Show property policy Returns property policy for hotel405 - Method Not Allowed
415 - Unsupported Media Type
400 - Bad Request
403 - Forbidden
401 - Unauthorized
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
200 - OK
- Parameters:
hotelIdentifier- Retrieve property policy for this hotel identifieraccept- The accept 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 accept) 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) throws org.springframework.web.reactive.function.client.WebClientResponseException Update property policy Update property policy record for the hotel.405 - Method Not Allowed
415 - Unsupported Media Type
400 - Bad Request
403 - Forbidden
401 - Unauthorized
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
200 - OK
- Parameters:
hotelIdentifier- Update property policy record for this hotel identifierpropertyPolicy- The propertyPolicy 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) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-