Class TradesBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.TradesBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-06T14:58:43.017952Z[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(String customerGuid, String accountGuid, BigInteger page, BigInteger perPage, String guid)Get trades list Retrieves a listing of trades.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeListBankModel>>listTradesWithHttpInfo(String customerGuid, String accountGuid, BigInteger page, BigInteger perPage, String guid)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 | | 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
- 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
- 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(String customerGuid, String accountGuid, BigInteger page, BigInteger perPage, String guid) 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
- Parameters:
customerGuid- The customer's identifier.accountGuid- The account's identifier.page- The page index to retrieve.perPage- The number of entities per page to return.guid- Comma separated trade_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(String customerGuid, String accountGuid, BigInteger page, BigInteger perPage, String guid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
-