Class CompanyApi

java.lang.Object
travel.wink.sdk.affiliate.api.CompanyApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-09-16T10:41:04.695846072+07:00[Asia/Bangkok]") public class CompanyApi extends Object
  • Constructor Details

    • CompanyApi

      public CompanyApi()
    • CompanyApi

      @Autowired public CompanyApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • addCompanyUser

      public reactor.core.publisher.Mono<CompanyView> addCompanyUser(String companyIdentifier, AddManagerRequest addManagerRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Add Manager Associate an existing payment user with this company.

      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:
      companyIdentifier - The companyIdentifier parameter
      addManagerRequest - The addManagerRequest parameter
      Returns:
      CompanyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • addCompanyUserWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyView>> addCompanyUserWithHttpInfo(String companyIdentifier, AddManagerRequest addManagerRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createCompany

      public reactor.core.publisher.Mono<CompanyView> createCompany(UpsertCompanyRequest upsertCompanyRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create company Create a new company

      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:
      upsertCompanyRequest - The upsertCompanyRequest parameter
      Returns:
      CompanyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createCompanyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyView>> createCompanyWithHttpInfo(UpsertCompanyRequest upsertCompanyRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • isCompanyNameUnique

      public reactor.core.publisher.Mono<UniqueResult> isCompanyNameUnique(UniqueRequest uniqueRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify company name Check if company name is unique

      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:
      uniqueRequest - The uniqueRequest parameter
      Returns:
      UniqueResult
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isCompanyNameUniqueWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<UniqueResult>> isCompanyNameUniqueWithHttpInfo(UniqueRequest uniqueRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeCompany

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeCompany(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Company Delete a company by 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:
      companyIdentifier - The companyIdentifier parameter
      accept - The accept parameter
      Returns:
      RemoveEntryResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCompanyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeCompanyWithHttpInfo(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeCompanyUser

      public reactor.core.publisher.Mono<CompanyView> removeCompanyUser(String companyIdentifier, String userIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Remove Manager Disassociate user from this company.

      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:
      companyIdentifier - The companyIdentifier parameter
      userIdentifier - The userIdentifier parameter
      accept - The accept parameter
      Returns:
      CompanyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCompanyUserWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyView>> removeCompanyUserWithHttpInfo(String companyIdentifier, String userIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCompanies

      public reactor.core.publisher.Flux<CompanyView> showCompanies(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Companies List all companies owned by caller

      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:
      accept - The accept parameter
      Returns:
      List<CompanyView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCompaniesWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<CompanyView>>> showCompaniesWithHttpInfo(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCompany

      public reactor.core.publisher.Mono<CompanyView> showCompany(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Company Retrieve company by 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:
      companyIdentifier - The companyIdentifier parameter
      accept - The accept parameter
      Returns:
      CompanyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCompanyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyView>> showCompanyWithHttpInfo(String companyIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateCompany

      public reactor.core.publisher.Mono<CompanyView> updateCompany(String companyIdentifier, UpsertCompanyRequest upsertCompanyRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Company Update an existing company

      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:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyRequest - The upsertCompanyRequest parameter
      Returns:
      CompanyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCompanyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyView>> updateCompanyWithHttpInfo(String companyIdentifier, UpsertCompanyRequest upsertCompanyRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException