Skip to content

Commit

Permalink
fix: Adds missing properties to saveInvoice response
Browse files Browse the repository at this point in the history
  • Loading branch information
jondewoo committed Dec 20, 2024
1 parent f0bbb2d commit ad88088
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
ModelDocument,
ModelDocumentFolder,
ModelInvoice,
ModelInvoicePos,
ModelPart,
ModelPaymentMethod,
ModelSevUser,
Expand Down Expand Up @@ -125,7 +126,11 @@ export class SevDeskClient {
const url = this.urls.apiSaveInvoiceUrl();

return this.request<{
objects: { invoice: Required<ModelInvoice> };
objects: {
invoice: Required<ModelInvoice>;
invoicePos: Array<Required<ModelInvoicePos>>;
filename: string;
};
}>(url, {
method: "POST",
body: JSON.stringify(body),
Expand Down

0 comments on commit ad88088

Please sign in to comment.