harvest
Version:
Harvest API client library
19 lines • 685 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class InvoicePaymentsAPI {
constructor(harvest) {
this.baseUrl = '/v2/invoices';
this.harvest = harvest;
}
list(invoiceId, query) {
return this.harvest.request('GET', `${this.baseUrl}/${invoiceId}/payments`, query);
}
create(invoiceId, data) {
return this.harvest.request('POST', `${this.baseUrl}/${invoiceId}/payments`, data);
}
delete(invoiceId, id) {
return this.harvest.request('DELETE', `${this.baseUrl}/${invoiceId}/payments/${id}`);
}
}
exports.InvoicePaymentsAPI = InvoicePaymentsAPI;
//# sourceMappingURL=invoicePayments.js.map