import * as z from "zod/v4-mini"; import { CreateCreditNoteLineItemRequest, CreateCreditNoteLineItemRequest$Outbound } from "./create-credit-note-line-item-request.js"; import { CreditNoteReason } from "./credit-note-reason.js"; export type CreateCreditNoteRequest = { /** * credit_note_number is an optional human-readable identifier for the credit note */ creditNoteNumber?: string | undefined; /** * idempotency_key is an optional key used to prevent duplicate credit note creation */ idempotencyKey?: string | undefined; /** * invoice_id is the unique identifier of the invoice this credit note is applied to */ invoiceId: string; /** * line_items contains the individual line items that make up this credit note (minimum 1 required) */ lineItems?: Array | undefined; /** * memo is an optional free-text field for additional notes about the credit note */ memo?: string | undefined; metadata?: { [k: string]: string; } | undefined; /** * process_credit_note is a flag to process the credit note after creation */ processCreditNote?: boolean | undefined; reason: CreditNoteReason; }; /** @internal */ export type CreateCreditNoteRequest$Outbound = { credit_note_number?: string | undefined; idempotency_key?: string | undefined; invoice_id: string; line_items?: Array | undefined; memo?: string | undefined; metadata?: { [k: string]: string; } | undefined; process_credit_note: boolean; reason: string; }; /** @internal */ export declare const CreateCreditNoteRequest$outboundSchema: z.ZodMiniType; export declare function createCreditNoteRequestToJSON(createCreditNoteRequest: CreateCreditNoteRequest): string; //# sourceMappingURL=create-credit-note-request.d.ts.map