From b2a541617633015c3708d4f16aaa11298cd3d2c9 Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Tue, 23 Jul 2024 12:39:23 +0200 Subject: [PATCH] feat(voucher): add missing undocumented fields to create voucher payload type --- src/types/voucher.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/types/voucher.ts b/src/types/voucher.ts index 0b69fa9..ec38921 100644 --- a/src/types/voucher.ts +++ b/src/types/voucher.ts @@ -303,6 +303,7 @@ export interface CreateVoucherPayload { supplier?: ObjectReference<'Contact'> | null; supplierName?: string | null; description?: string | null; + resultDisdar?: string | null; /** Voucher date (timestamp in seconds or dd.mm.yyyy) */ payDate?: string | null; status: VoucherStatus; @@ -313,6 +314,13 @@ export interface CreateVoucherPayload { creditDebit: VoucherCreditDebit; voucherType: VoucherType; currency?: string | null; + sumNet: number | null; + sumGross: number | null; + sumTax?: number | null; + sumNetAccounting?: number | null; + sumTaxAccounting?: number | null; + sumGrossAccounting?: number | null; + showNet?: boolean; propertyForeignCurrencyDeadline?: string | null; propertyExchangeRate?: number | null; /** Tax set (sevdesk 1.0 only, replaced by {@link taxRule}) */ @@ -325,6 +333,24 @@ export interface CreateVoucherPayload { deliveryDateUntil?: string | number | null; document?: ObjectReference<'Document'> | null; costCentre?: ObjectReference<'CostCentre'> | null; + /** @deprecated use {@link recurringInterval} instead (typo in the sevdesk API) */ + recurringIntervall?: RecurringInterval | null; + recurringInterval?: RecurringInterval | null; + recurringStartDate?: string | null; + recurringNextVoucher?: string | null; + recurringLastVoucher?: string | null; + recurringEndDate?: string | null; + accountingSpecialCase?: unknown; + vatNumber?: string | null; + tip?: string; + mileageRate?: string; + sumDiscountNet?: string | null; + sumDiscountGross?: string | null; + sumNetForeignCurrency?: string | null; + sumTaxForeignCurrency?: string | null; + sumGrossForeignCurrency?: string | null; + sumDiscountNetForeignCurrency?: string | null; + sumDiscountGrossForeignCurrency?: string | null; }; voucherPosSave: Array<{ objectName: 'VoucherPos';