import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PostQuoteBankModel } from '../model/postQuote'; import { QuoteBankModel } from '../model/quote'; import { QuoteListBankModel } from '../model/quoteList'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class QuotesService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * 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** * @param postQuoteBankModel * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createQuote(postQuoteBankModel: PostQuoteBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createQuote(postQuoteBankModel: PostQuoteBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createQuote(postQuoteBankModel: PostQuoteBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Quote * Retrieves a quote. Required scope: **quotes:read** * @param quoteGuid Identifier for the quote. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getQuote(quoteGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getQuote(quoteGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getQuote(quoteGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get quotes list * Retrieves a listing of quotes. Records are sorted by creation date in descending order. Required scope: **quotes:read** * @param page * @param perPage * @param guid Comma separated quote_guids to list quotes for. * @param productType Comma separated product_types to list accounts for. * @param bankGuid Comma separated bank_guids to list quotes for. * @param customerGuid Comma separated customer_guids to list quotes for. * @param side Comma separated sides to list quotes for. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listQuotes(page?: string, perPage?: string, guid?: string, productType?: string, bankGuid?: string, customerGuid?: string, side?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listQuotes(page?: string, perPage?: string, guid?: string, productType?: string, bankGuid?: string, customerGuid?: string, side?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listQuotes(page?: string, perPage?: string, guid?: string, productType?: string, bankGuid?: string, customerGuid?: string, side?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }