Class AccountsBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.AccountsBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-12T12:10:29.752371Z[Etc/UTC]") public class AccountsBankApi extends Object
-
-
Constructor Summary
Constructors Constructor Description AccountsBankApi()AccountsBankApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<AccountBankModel>createAccount(PostAccountBankModel postAccountBankModel)Create Account Creates an account.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountBankModel>>createAccountWithHttpInfo(PostAccountBankModel postAccountBankModel)reactor.core.publisher.Mono<AccountBankModel>getAccount(String accountGuid)Get Account Retrieves an account.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountBankModel>>getAccountWithHttpInfo(String accountGuid)ApiClientgetApiClient()reactor.core.publisher.Mono<AccountListBankModel>listAccounts(BigInteger page, BigInteger perPage, String guid, String type, String bankGuid, String customerGuid)List Accounts Retrieves a list of accounts.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AccountListBankModel>>listAccountsWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String type, String bankGuid, String customerGuid)voidsetApiClient(ApiClient apiClient)
-
-
-
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 or fiat and is comprised of transactions and a current balance. An account is required to allow a Bank or Customer to hold cryptocurrency or a Customer to hold fiat on the Cybrid Platform. At present, account's can be created as `trading` or `fiat ` accounts and are required before a Customer can generate quotes or execute a `trade` or `transfer`. ## Asset The asset is the specific cryptocurrency or fiat that the account holds, e.g., 'BTC' for Bitcoin or `USD` for US dollars. See the Symbols API for a complete list of cryptocurrencies and fiat supported. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the account details in our private store | | created | The Platform has created the account | Required scope: **accounts:execute**201 - account created
400 - Invalid requests
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
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 type, 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
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.type- Comma separated account_types 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 type, String bankGuid, String customerGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
-