@apet97/clockify115-sdk - v0.1.0
    Preparing search index...

    Function invoiceUpdateBodyFromExisting

    • Parameters

      • existing: Record<string, unknown> | InvoiceDtoFull
      • patch: {
            billFrom?: string;
            clientAddress?: string;
            clientId?: string;
            companyId?: string;
            currency?: string;
            discountPercent?: number;
            dueDate?: string;
            issuedDate?: string;
            note?: string;
            number?: string;
            subject?: string;
            tax2Percent?: number;
            taxPercent?: number;
            taxType?: TaxType;
            visibleZeroFields?: VisibleZeroFieldsInvoice | VisibleZeroFieldsInvoice[];
        } = {}
        • OptionalbillFrom?: string

          Represents to whom the invoice should be billed from.

        • OptionalclientAddress?: string

          Represents client address.

        • OptionalclientId?: string

          Represents client identifier across the system.

        • OptionalcompanyId?: string

          Represents company identifier across the system.

        • Optionalcurrency?: string

          Represents the currency used by the invoice.

        • OptionaldiscountPercent?: number

          Represents an invoice discount percent as double. Optional on the wire (omission is accepted); an invoice PUT replaces the stored invoice, so send the current value to keep it.

        • OptionaldueDate?: string

          Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.

        • OptionalissuedDate?: string

          Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.

        • Optionalnote?: string

          Represents an invoice note.

        • Optionalnumber?: string

          Represents an invoice number.

        • Optionalsubject?: string

          Represents an invoice subject.

        • Optionaltax2Percent?: number

          Represents an invoice tax 2 percent as double. Optional on the wire (omission is accepted); an invoice PUT replaces the stored invoice, so send the current value to keep it.

        • OptionaltaxPercent?: number

          Represents an invoice tax percent as double. Optional on the wire (omission is accepted); an invoice PUT replaces the stored invoice, so send the current value to keep it.

        • OptionaltaxType?: TaxType
        • OptionalvisibleZeroFields?: VisibleZeroFieldsInvoice | VisibleZeroFieldsInvoice[]

          Represents one or more zero value invoice fields that will be visible.

      Returns UpdateInvoicesRequestBody