Class BanksBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-11-15T16:37:52.482761Z[Etc/UTC]")
    public class BanksBankApi
    extends Object
    • Constructor Detail

      • BanksBankApi

        public BanksBankApi()
      • BanksBankApi

        @Autowired
        public BanksBankApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createBank

        public reactor.core.publisher.Mono<BankBankModel> createBank​(PostBankBankModel postBankBankModel)
                                                              throws org.springframework.web.reactive.function.client.WebClientResponseException
        Create Bank Creates a bank. ## Bank Type Bank's can be created in either `sandbox` or `production` mode. Sandbox Banks will not transact in real fiat dollars or cryptocurrencies. Via the API, only `sandbox` banks can be created. In order to enable a `production` bank please contact [Support](mailto:support@cybrid.app). Required scope: **banks:execute**

        201 - Bank created

        401 - Unauthorized

        403 - Forbidden

        422 - Unprocessable Content

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

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BankBankModel>> createBankWithHttpInfo​(PostBankBankModel postBankBankModel)
                                                                                                                   throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • getBank

        public reactor.core.publisher.Mono<BankBankModel> getBank​(String bankGuid)
                                                           throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get Bank Retrieves a bank. Required scope: **banks:read**

        200 - bank found

        401 - Unauthorized - Authentication failed, invalid subject

        403 - Invalid scope

        404 - bank not found

        Parameters:
        bankGuid - Identifier for the bank.
        Returns:
        BankBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • getBankWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BankBankModel>> getBankWithHttpInfo​(String bankGuid)
                                                                                                                throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • listBanks

        public reactor.core.publisher.Mono<BankListBankModel> listBanks​(BigInteger page,
                                                                        BigInteger perPage,
                                                                        String type,
                                                                        String guid)
                                                                 throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get banks list Retrieves a listing of bank. Required scope: **banks:read**

        200 - get list of banks

        401 - Unauthorized - invalid subject, Authentication failed

        403 - Invalid scope

        Parameters:
        page - The page index to retrieve.
        perPage - The number of entities per page to return.
        type - Comma separated types to list banks for.
        guid - Comma separated bank_guids to list banks for.
        Returns:
        BankListBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • listBanksWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BankListBankModel>> listBanksWithHttpInfo​(BigInteger page,
                                                                                                                             BigInteger perPage,
                                                                                                                             String type,
                                                                                                                             String guid)
                                                                                                                      throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • updateBank

        public reactor.core.publisher.Mono<BankBankModel> updateBank​(String bankGuid,
                                                                     PatchBankBankModel patchBankBankModel)
                                                              throws org.springframework.web.reactive.function.client.WebClientResponseException
        Patch Bank Update a bank. Required scope: **banks:write**

        200 - bank found

        401 - Unauthorized

        403 - Forbidden

        422 - Unprocessable Content

        Parameters:
        bankGuid - Identifier for the bank.
        patchBankBankModel - The patchBankBankModel parameter
        Returns:
        BankBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • updateBankWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BankBankModel>> updateBankWithHttpInfo​(String bankGuid,
                                                                                                                          PatchBankBankModel patchBankBankModel)
                                                                                                                   throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException