Class TradesBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.TradesBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-15T14:55:56.062928Z[Etc/UTC]") public class TradesBankApi extends Object
-
-
Constructor Summary
Constructors Constructor Description TradesBankApi()TradesBankApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<TradeBankModel>createTrade(PostTradeBankModel postTradeBankModel)Create Trade Creates a trade.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>>createTradeWithHttpInfo(PostTradeBankModel postTradeBankModel)ApiClientgetApiClient()reactor.core.publisher.Mono<TradeBankModel>getTrade(String tradeGuid)Get Trade Retrieves a trade.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>>getTradeWithHttpInfo(String tradeGuid)reactor.core.publisher.Mono<TradeListBankModel>listTrades(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid, String accountGuid)Get trades list Retrieves a listing of trades.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeListBankModel>>listTradesWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid, String accountGuid)voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
TradesBankApi
public TradesBankApi()
-
TradesBankApi
@Autowired public TradesBankApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createTrade
public reactor.core.publisher.Mono<TradeBankModel> createTrade(PostTradeBankModel postTradeBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
Create Trade Creates a trade. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the trade details in our private store | | initiating | The Platform has begun to perform the trade | | pending | The Platform is executing the trade | | settling | The Platform is settling the trade | | completed | The Platform has successfully completed the trade | | failed | The Platform was not able to successfully complete the trade | Required scope: **trades:execute**201 - Trade created
400 - Invalid requests
401 - Unauthorized - Authentication failed,
403 - Invalid scope
409 - Data already exists
422 - Unable to process request
- Parameters:
postTradeBankModel- The postTradeBankModel parameter- Returns:
- TradeBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createTradeWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>> createTradeWithHttpInfo(PostTradeBankModel postTradeBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getTrade
public reactor.core.publisher.Mono<TradeBankModel> getTrade(String tradeGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get Trade Retrieves a trade. Required scope: **trades:read**200 - trade found
401 - Unauthorized - Authentication failed,
403 - Invalid scope
404 - trade not found
- Parameters:
tradeGuid- Identifier for the trade.- Returns:
- TradeBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getTradeWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>> getTradeWithHttpInfo(String tradeGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
listTrades
public reactor.core.publisher.Mono<TradeListBankModel> listTrades(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid, String accountGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get trades list Retrieves a listing of trades. Required scope: **trades:read**200 - get list of trades
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 trade_guids to list trades for.bankGuid- Comma separated bank_guids to list trades for.customerGuid- Comma separated customer_guids to list trades for.accountGuid- Comma separated account_guids to list trades for.- Returns:
- TradeListBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
listTradesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeListBankModel>> listTradesWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid, String accountGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
-