Class QuotesBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.QuotesBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-04T17:26:14.639862Z[Etc/UTC]") public class QuotesBankApi extends Object
-
-
Constructor Summary
Constructors Constructor Description QuotesBankApi()QuotesBankApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<QuoteBankModel>createQuote(PostQuoteBankModel postQuoteBankModel)Create Quote Creates a quote.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteBankModel>>createQuoteWithHttpInfo(PostQuoteBankModel postQuoteBankModel)ApiClientgetApiClient()reactor.core.publisher.Mono<QuoteBankModel>getQuote(String quoteGuid)Get Quote Retrieves a quote.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteBankModel>>getQuoteWithHttpInfo(String quoteGuid)reactor.core.publisher.Mono<QuoteListBankModel>listQuotes(BigInteger page, BigInteger perPage, String guid, String productType, String bankGuid, String customerGuid, String side)Get quotes list Retrieves a listing of quotes for all customers of a bank.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteListBankModel>>listQuotesWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String productType, String bankGuid, String customerGuid, String side)voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
QuotesBankApi
public QuotesBankApi()
-
QuotesBankApi
@Autowired public QuotesBankApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createQuote
public reactor.core.publisher.Mono<QuoteBankModel> createQuote(PostQuoteBankModel postQuoteBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
Create Quote Creates a quote. ## Quote creation Quotes can be created for a Bank or a Customer. To create quotes for your Bank, omit the `customer_guid` parameter in the request body. To create quotes for your Customers, include the `customer_guid` parameter in the request body. ## Failure codes | Code | Description | |------|-------------| | invalid_amount | The amount on the invoice is unprocessable | | insufficient_balance | There are insufficient funds to process the quote | | invalid_invoice | The invoice cannot be processed | Required scope: **quotes:execute**201 - quote created
400 - Invalid requests
401 - Unauthorized - Authentication failed,
403 - Invalid scope
422 - Unable to process request
- Parameters:
postQuoteBankModel- The postQuoteBankModel parameter- Returns:
- QuoteBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createQuoteWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteBankModel>> createQuoteWithHttpInfo(PostQuoteBankModel postQuoteBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getQuote
public reactor.core.publisher.Mono<QuoteBankModel> getQuote(String quoteGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get Quote Retrieves a quote. Required scope: **quotes:read**200 - quote found
401 - Unauthorized - Authentication failed,
403 - Invalid scope
404 - quote not found
- Parameters:
quoteGuid- Identifier for the quote.- Returns:
- QuoteBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getQuoteWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteBankModel>> getQuoteWithHttpInfo(String quoteGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
listQuotes
public reactor.core.publisher.Mono<QuoteListBankModel> listQuotes(BigInteger page, BigInteger perPage, String guid, String productType, String bankGuid, String customerGuid, String side) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get quotes list Retrieves a listing of quotes for all customers of a bank. Required scope: **quotes:read**200 - get list of quotes
400 - Invalid requests
401 - Unauthorized - Authentication failed,
403 - Invalid scope
- Parameters:
page- The page parameterperPage- The perPage parameterguid- Comma separated quote_guids to list quotes for.productType- Comma separated product_types to list accounts for.bankGuid- Comma separated bank_guids to list quotes for.customerGuid- Comma separated customer_guids to list quotes for.side- Comma separated sides to list quotes for.- Returns:
- QuoteListBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
listQuotesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteListBankModel>> listQuotesWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String productType, String bankGuid, String customerGuid, String side) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
-