Skip to content

Commit

Permalink
feat(voucher): add missing undocumented fields to create voucher payl…
Browse files Browse the repository at this point in the history
…oad type
  • Loading branch information
leMaik committed Jul 23, 2024
1 parent ad4cd5e commit b2a5416
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/types/voucher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}) */
Expand All @@ -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';
Expand Down

0 comments on commit b2a5416

Please sign in to comment.