Class PackageApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-09-08T16:32:28.411222+07:00[Asia/Bangkok]") public class PackageApi extends Object
  • Constructor Details

    • PackageApi

      public PackageApi()
    • PackageApi

      @Autowired public PackageApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • addMedia

      public reactor.core.publisher.Mono<BundleView> addMedia(String hotelIdentifier, String packageIdentifier, Multimedia multimedia) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Add Multimedia Add a media record for a video and/or image to a package identified by its identifier

      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 - Add package media for hotel associated with this hotel identifier
      packageIdentifier - Add package media to package with this identifier
      multimedia - The multimedia parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • addMediaWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> addMediaWithHttpInfo(String hotelIdentifier, String packageIdentifier, Multimedia multimedia) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createPackage

      public reactor.core.publisher.Mono<BundleView> createPackage(String hotelIdentifier, UpsertBundleRequest upsertBundleRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Package Create a new package

      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 new package and associated with this hotel identifier
      upsertBundleRequest - The upsertBundleRequest parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createPackageWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> createPackageWithHttpInfo(String hotelIdentifier, UpsertBundleRequest upsertBundleRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removableBundle

      public reactor.core.publisher.Mono<PackageRemovableResponse> removableBundle(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify Removable Check if an package is removable. If an package is associated / linked with a promotion or rate plan, it cannot be removed until the associated entity removes it first.

      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 - Verify if package is removable for package associated with this hotel identifier
      packageIdentifier - Verify if package with this identifier is removable
      accept - The accept parameter
      Returns:
      PackageRemovableResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removableBundleWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PackageRemovableResponse>> removableBundleWithHttpInfo(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeMultimedia5

      public reactor.core.publisher.Mono<BundleView> removeMultimedia5(String hotelIdentifier, String packageIdentifier, String multimediaIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Multimedia Remove package image / video by its identifier. Returns the updated package record.

      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:
      hotelIdentifier - Remove package media associated with this hotel identifier
      packageIdentifier - Remove package media for this package identifier
      multimediaIdentifier - Remove package media with this identifier
      accept - The accept parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeMultimedia5WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> removeMultimedia5WithHttpInfo(String hotelIdentifier, String packageIdentifier, String multimediaIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removePackage

      public reactor.core.publisher.Mono<RemoveEntryResponse> removePackage(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Package Remove a package by its identifier

      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:
      hotelIdentifier - Remove package owned by this hotel identifier
      packageIdentifier - Remove package 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
    • removePackageWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removePackageWithHttpInfo(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showPackage

      public reactor.core.publisher.Mono<BundleView> showPackage(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Package Retrieve a package by its identifier

      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 - Show package associated with this hotel identifier
      packageIdentifier - Show package with this identifier
      accept - The accept parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPackageWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> showPackageWithHttpInfo(String hotelIdentifier, String packageIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showPackages

      public reactor.core.publisher.Flux<BundleView> showPackages(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Packages Retrieve list of packages for property.

      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 - Show packages associated with this hotel identifier
      accept - The accept parameter
      Returns:
      List<BundleView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPackagesWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BundleView>>> showPackagesWithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateMultimedia1

      public reactor.core.publisher.Mono<BundleView> updateMultimedia1(String hotelIdentifier, String packageIdentifier, String multimediaIdentifier, Multimedia multimedia) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Multimedia Update media meta data for a specific package media entry.

      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 package media associated with this hotel identifier
      packageIdentifier - Update package media for this package identifier
      multimediaIdentifier - Update package media with this identifier
      multimedia - The multimedia parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateMultimedia1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> updateMultimedia1WithHttpInfo(String hotelIdentifier, String packageIdentifier, String multimediaIdentifier, Multimedia multimedia) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updatePackage

      public reactor.core.publisher.Mono<BundleView> updatePackage(String hotelIdentifier, String packageIdentifier, UpsertBundleRequest upsertBundleRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Package Update an existing package

      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 package associated with this hotel identifier
      packageIdentifier - Update package with this identifier
      upsertBundleRequest - The upsertBundleRequest parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updatePackageWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> updatePackageWithHttpInfo(String hotelIdentifier, String packageIdentifier, UpsertBundleRequest upsertBundleRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • uploadBinaryPackageMedia

      public reactor.core.publisher.Mono<BundleView> uploadBinaryPackageMedia(String hotelIdentifier, String packageIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Upload Binary Multimedia Upload a list of binary / multipart videos and/or images to an existing package.

      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

      207 - Multi-Status

      Parameters:
      hotelIdentifier - Upload package media associated with this hotel identifier
      packageIdentifier - Upload package media for this package identifier
      files - The files parameter
      Returns:
      BundleView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • uploadBinaryPackageMediaWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BundleView>> uploadBinaryPackageMediaWithHttpInfo(String hotelIdentifier, String packageIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException