import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PaymentInstructionBankModel } from '../model/paymentInstruction'; import { PaymentInstructionListBankModel } from '../model/paymentInstructionList'; import { PostPaymentInstructionBankModel } from '../model/postPaymentInstruction'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class PaymentInstructionsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create Payment Instruction * Creates a payment instruction. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the payment instruction details in our private store | | created | The Platform has created the payment instruction | | expired | The PaymentInstruction is no longer valid | Required scope: **invoices:write** * @param postPaymentInstructionBankModel * @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. */ createPaymentInstruction(postPaymentInstructionBankModel: PostPaymentInstructionBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createPaymentInstruction(postPaymentInstructionBankModel: PostPaymentInstructionBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createPaymentInstruction(postPaymentInstructionBankModel: PostPaymentInstructionBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Payment Instruction * Retrieves a payment_instruction. Required scope: **invoices:read** * @param paymentInstructionGuid Identifier for the payment instruction. * @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. */ getPaymentInstruction(paymentInstructionGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getPaymentInstruction(paymentInstructionGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getPaymentInstruction(paymentInstructionGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * List Payment Instructions * Retrieves a list of payment instructions. Records are sorted by creation date in descending order. Required scope: **invoices:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated guids to list payment instructions for. * @param bankGuid Comma separated bank_guids to list payment instructions for. * @param customerGuid Comma separated customer_guids to list payment instructions for. * @param invoiceGuid Comma separated invoice_guids to list payment instructions 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. */ listPaymentInstructions(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, invoiceGuid?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listPaymentInstructions(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, invoiceGuid?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listPaymentInstructions(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, invoiceGuid?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }