import { InvoiceMessagesPagenationParameters , InvoiceMessage } from '../models/invoiceMessages.models' ; export class InvoiceMessagesAPI { harvest ; baseUrl : string ; constructor ( harvest ) { this . baseUrl = '/v2/invoices' ; this . harvest = harvest ; } public list ( invoiceId , query ) { return this . harvest . request ( 'GET' , `${ this . baseUrl }/${ invoiceId }/messages` , query ) ; } public create ( invoiceId , data ) { return this . harvest . request ( 'POST' , `${ this . baseUrl }/${ invoiceId }/messages` , data ) ; } public delete ( invoiceId , id ) { return this . harvest . request ( 'DELETE' , `${ this . baseUrl }/${ invoiceId }/messages/${ id }` ) ; } }