Class CompanyApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-04T14:48:41.264668983+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<CompanyViewAffiliate> addCompanyUser(String companyIdentifier, AddManagerRequestAffiliate addManagerRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Add Manager Associate an existing payment user with this company.

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      addManagerRequestAffiliate - The addManagerRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      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<CompanyViewAffiliate>> addCompanyUserWithHttpInfo(String companyIdentifier, AddManagerRequestAffiliate addManagerRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Add Manager Associate an existing payment user with this company.

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      addManagerRequestAffiliate - The addManagerRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • addCompanyUserWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec addCompanyUserWithResponseSpec(String companyIdentifier, AddManagerRequestAffiliate addManagerRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Add Manager Associate an existing payment user with this company.

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      addManagerRequestAffiliate - The addManagerRequestAffiliate 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
    • createCompany

      public reactor.core.publisher.Mono<CompanyViewAffiliate> createCompany(UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create company Create a new company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      201 - Created

      Parameters:
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      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<CompanyViewAffiliate>> createCompanyWithHttpInfo(UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create company Create a new company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      201 - Created

      Parameters:
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createCompanyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createCompanyWithResponseSpec(UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create company Create a new company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      201 - Created

      Parameters:
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate 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
    • isCompanyNameUnique

      public reactor.core.publisher.Mono<UniqueResultAffiliate> isCompanyNameUnique(UniqueRequestAffiliate uniqueRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify company name Check if company name is unique

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      uniqueRequestAffiliate - The uniqueRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      UniqueResultAffiliate
      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<UniqueResultAffiliate>> isCompanyNameUniqueWithHttpInfo(UniqueRequestAffiliate uniqueRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify company name Check if company name is unique

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      uniqueRequestAffiliate - The uniqueRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<UniqueResultAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isCompanyNameUniqueWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec isCompanyNameUniqueWithResponseSpec(UniqueRequestAffiliate uniqueRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify company name Check if company name is unique

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      uniqueRequestAffiliate - The uniqueRequestAffiliate 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
    • removeCompany

      public reactor.core.publisher.Mono<RemoveEntryResponseAffiliate> removeCompany(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Company Delete a company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      202 - Accepted

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      RemoveEntryResponseAffiliate
      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<RemoveEntryResponseAffiliate>> removeCompanyWithHttpInfo(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Company Delete a company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      202 - Accepted

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<RemoveEntryResponseAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCompanyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec removeCompanyWithResponseSpec(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Company Delete a company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      202 - Accepted

      Parameters:
      companyIdentifier - The companyIdentifier 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
    • removeCompanyUser

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

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      userIdentifier - The userIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      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<CompanyViewAffiliate>> removeCompanyUserWithHttpInfo(String companyIdentifier, String userIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Remove Manager Disassociate user from this company.

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      userIdentifier - The userIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCompanyUserWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec removeCompanyUserWithResponseSpec(String companyIdentifier, String userIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Remove Manager Disassociate user from this company.

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      userIdentifier - The userIdentifier 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
    • showCompanies

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

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      List<CompanyViewAffiliate>
      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<CompanyViewAffiliate>>> showCompaniesWithHttpInfo(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Companies List all companies owned by caller

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<List<CompanyViewAffiliate>>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCompaniesWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showCompaniesWithResponseSpec(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Companies List all companies owned by caller

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCompany

      public reactor.core.publisher.Mono<CompanyViewAffiliate> showCompany(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Company Retrieve company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      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<CompanyViewAffiliate>> showCompanyWithHttpInfo(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Company Retrieve company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCompanyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showCompanyWithResponseSpec(String companyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Company Retrieve company by identifier

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier 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
    • updateCompany

      public reactor.core.publisher.Mono<CompanyViewAffiliate> updateCompany(String companyIdentifier, UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Company Update an existing company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      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<CompanyViewAffiliate>> updateCompanyWithHttpInfo(String companyIdentifier, UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Company Update an existing company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCompanyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateCompanyWithResponseSpec(String companyIdentifier, UpsertCompanyRequestAffiliate upsertCompanyRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Company Update an existing company

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyRequestAffiliate - The upsertCompanyRequestAffiliate 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
    • updateCompany1

      public reactor.core.publisher.Mono<CompanyViewAffiliate> updateCompany1(String companyIdentifier, UpsertCompanyStatusRequestAffiliate upsertCompanyStatusRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Toggle Company Status Update company status

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyStatusRequestAffiliate - The upsertCompanyStatusRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAffiliate
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCompany1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyViewAffiliate>> updateCompany1WithHttpInfo(String companyIdentifier, UpsertCompanyStatusRequestAffiliate upsertCompanyStatusRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Toggle Company Status Update company status

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyStatusRequestAffiliate - The upsertCompanyStatusRequestAffiliate parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAffiliate>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCompany1WithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateCompany1WithResponseSpec(String companyIdentifier, UpsertCompanyStatusRequestAffiliate upsertCompanyStatusRequestAffiliate, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Toggle Company Status Update company status

      503 - Service Unavailable

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      405 - Method Not Allowed

      200 - OK

      Parameters:
      companyIdentifier - The companyIdentifier parameter
      upsertCompanyStatusRequestAffiliate - The upsertCompanyStatusRequestAffiliate 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