Class AccountsBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-06-09T04:55:57.607614Z[Etc/UTC]")
    public class AccountsBankApi
    extends Object
    • Constructor Detail

      • AccountsBankApi

        public AccountsBankApi()
      • AccountsBankApi

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

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createAccount

        public reactor.core.publisher.Mono<AccountBankModel> createAccount​(PostAccountBankModel postAccountBankModel)
                                                                    throws org.springframework.web.reactive.function.client.WebClientResponseException
        Create Account Creates an account. ## Account Type An Account is tied to a specific cryptocurrency and is comprised of transactions and a current balance. An account is required to allow a Customer to hold cryptocurrency on the Cybrid Platform. At present, account's can be created as `trading` accounts and are required before a Customer can generate a quote and execute a trade. ## Asset The asset is the specific cryptocurrency that the account holds, e.g., 'BTC' for Bitcoin. See the Symbols API for a complete list of cryptocurrencies supported. Required scope: **accounts:execute**

        201 - account created

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

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

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountBankModel>> createAccountWithHttpInfo​(PostAccountBankModel postAccountBankModel)
                                                                                                                         throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • getAccount

        public reactor.core.publisher.Mono<AccountBankModel> getAccount​(String accountGuid)
                                                                 throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get Account Retrieves an account. Required scope: **accounts:read**

        200 - account found

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        404 - account not found

        Parameters:
        accountGuid - Identifier for the account.
        Returns:
        AccountBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • getAccountWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountBankModel>> getAccountWithHttpInfo​(String accountGuid)
                                                                                                                      throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • listAccounts

        public reactor.core.publisher.Mono<AccountListBankModel> listAccounts​(BigInteger page,
                                                                              BigInteger perPage,
                                                                              String guid,
                                                                              String bankGuid,
                                                                              String customerGuid)
                                                                       throws org.springframework.web.reactive.function.client.WebClientResponseException
        List Accounts Retrieves a list of accounts. Required scope: **accounts:read**

        200 - get list of accounts

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        Parameters:
        page - The page index to retrieve.
        perPage - The number of entities per page to return.
        guid - Comma separated account_guids to list accounts for.
        bankGuid - Comma separated bank_guids to list accounts for.
        customerGuid - Comma separated customer_guids to list accounts for.
        Returns:
        AccountListBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • listAccountsWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountListBankModel>> listAccountsWithHttpInfo​(BigInteger page,
                                                                                                                                   BigInteger perPage,
                                                                                                                                   String guid,
                                                                                                                                   String bankGuid,
                                                                                                                                   String customerGuid)
                                                                                                                            throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException