import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CreditNoteReason } from "./credit-note-reason.js"; import { CreditNoteStatus } from "./credit-note-status.js"; import { CreditNoteType } from "./credit-note-type.js"; import { CreditnoteCreditNoteLineItem } from "./creditnote-credit-note-line-item.js"; import { Customer } from "./customer.js"; import { InvoiceResponse } from "./invoice-response.js"; import { PaymentStatus } from "./payment-status.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { Status } from "./status.js"; import { SubscriptionResponse } from "./subscription-response.js"; export type CreditNoteResponse = { createdAt?: Date | undefined; createdBy?: string | undefined; /** * credit_note_number is the unique identifier for credit notes */ creditNoteNumber?: string | undefined; creditNoteStatus?: CreditNoteStatus | undefined; creditNoteType?: CreditNoteType | undefined; /** * currency is the three-letter ISO currency code (e.g., USD, EUR) for the credit note */ currency?: string | undefined; customer?: Customer | undefined; /** * customer_id is the unique identifier of the customer who owns this credit note */ customerId?: string | undefined; /** * environment_id is the unique identifier of the environment this credit note belongs to */ environmentId?: string | undefined; /** * finalized_at is the timestamp when the credit note was finalized */ finalizedAt?: Date | undefined; /** * id is the unique identifier for the credit note */ id?: string | undefined; /** * idempotency_key is an optional key used to prevent duplicate credit note creation */ idempotencyKey?: string | undefined; invoice?: InvoiceResponse | undefined; /** * invoice_id is the id of the invoice resource that this credit note is applied to */ invoiceId?: string | undefined; /** * line_items contains all of the line items associated with this credit note */ lineItems?: Array | undefined; /** * memo is an optional memo supplied on the credit note */ memo?: string | undefined; metadata?: { [k: string]: string; } | undefined; reason?: CreditNoteReason | undefined; refundStatus?: PaymentStatus | undefined; status?: Status | undefined; subscription?: SubscriptionResponse | undefined; /** * subscription_id is the optional unique identifier of the subscription related to this credit note */ subscriptionId?: string | undefined; tenantId?: string | undefined; /** * total_amount is the total including creditable invoice-level discounts or minimums, and tax */ totalAmount?: string | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; /** * voided_at is the timestamp when the credit note was voided */ voidedAt?: Date | undefined; }; /** @internal */ export declare const CreditNoteResponse$inboundSchema: z.ZodMiniType; export declare function creditNoteResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=credit-note-response.d.ts.map