@hatang/sdk
    Preparing search index...

    Interface Einvoice

    interface Einvoice {
        buyer: InvoiceBuyer;
        connection_id: string;
        created_at: string;
        environment: Environment;
        error: string | null;
        failed_step:
            | "publish"
            | "create_draft"
            | "update_draft"
            | "delete_draft"
            | null;
        id: string;
        issued_at: string
        | null;
        items: (
            InvoiceItem & { amount: number; total: number; vat_amount: number }
        )[];
        lookup_code: string | null;
        mode: "draft" | "publish";
        number: string | null;
        object: "einvoice";
        origin: "hatang" | "provider";
        payment_id: string | null;
        pdf_url: string | null;
        provider: string | null;
        provider_invoice_id: string | null;
        reference: string;
        related_invoice_id: string | null;
        series: string | null;
        status: EinvoiceStatus;
        sync_state: "in_sync" | "pending_push" | "conflict";
        tax_authority_code: string | null;
        template: InvoiceTemplateRef;
        totals: { subtotal: number; total: number; vat: number };
        transaction_id: string | null;
        updated_at: string;
        version: number;
    }
    Index
    connection_id: string
    created_at: string
    environment: Environment
    error: string | null
    failed_step: "publish" | "create_draft" | "update_draft" | "delete_draft" | null

    The step that failed; einvoices.retry(id) runs it again.

    id: string
    issued_at: string | null
    items: (InvoiceItem & { amount: number; total: number; vat_amount: number })[]
    lookup_code: string | null
    mode: "draft" | "publish"
    number: string | null
    object: "einvoice"
    origin: "hatang" | "provider"
    payment_id: string | null
    pdf_url: string | null
    provider: string | null
    provider_invoice_id: string | null
    reference: string
    related_invoice_id: string | null
    series: string | null
    sync_state: "in_sync" | "pending_push" | "conflict"
    tax_authority_code: string | null
    totals: { subtotal: number; total: number; vat: number }
    transaction_id: string | null
    updated_at: string
    version: number