import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EnvironmentMode } from "./environmentmode.js"; import { OrderStatus } from "./orderstatus.js"; import { OrderType } from "./ordertype.js"; export type OrderEntity = { /** * Unique identifier for the object. */ id: string; /** * String representing the environment. */ mode: EnvironmentMode; /** * String representing the object's type. Objects of the same type share the same value. */ object: string; /** * The customer who placed the order. */ customer?: string | null | undefined; /** * The product associated with the order. */ product: string; /** * The transaction ID of the order */ transaction?: string | null | undefined; /** * The discount ID of the order */ discount?: string | null | undefined; /** * The total amount of the order in cents. 1000 = $10.00 */ amount: number; /** * The subtotal of the order in cents. 1000 = $10.00 */ subTotal?: number | undefined; /** * The tax amount of the order in cents. 1000 = $10.00 */ taxAmount?: number | undefined; /** * The discount amount of the order in cents. 1000 = $10.00 */ discountAmount?: number | undefined; /** * The amount due for the order in cents. 1000 = $10.00 */ amountDue?: number | undefined; /** * The amount paid for the order in cents. 1000 = $10.00 */ amountPaid?: number | undefined; /** * Three-letter ISO currency code, in uppercase. Must be a supported currency. */ currency: string; /** * The amount in the foreign currency, if applicable. */ fxAmount?: number | null | undefined; /** * Three-letter ISO code of the foreign currency, if applicable. */ fxCurrency?: string | null | undefined; /** * The exchange rate used for converting between currencies, if applicable. */ fxRate?: number | null | undefined; /** * Current status of the order. */ status: OrderStatus; /** * The type of order. This can specify whether it's a regular purchase, subscription, etc. */ type: OrderType; /** * The affiliate associated with the order, if applicable. */ affiliate?: string | null | undefined; /** * Creation date of the order */ createdAt: Date; /** * Last updated date of the order */ updatedAt: Date; }; /** @internal */ export declare const OrderEntity$inboundSchema: z.ZodType; /** @internal */ export type OrderEntity$Outbound = { id: string; mode: string; object: string; customer?: string | null | undefined; product: string; transaction?: string | null | undefined; discount?: string | null | undefined; amount: number; sub_total?: number | undefined; tax_amount?: number | undefined; discount_amount?: number | undefined; amount_due?: number | undefined; amount_paid?: number | undefined; currency: string; fx_amount?: number | null | undefined; fx_currency?: string | null | undefined; fx_rate?: number | null | undefined; status: string; type: string; affiliate?: string | null | undefined; created_at: string; updated_at: string; }; /** @internal */ export declare const OrderEntity$outboundSchema: z.ZodType; export declare function orderEntityToJSON(orderEntity: OrderEntity): string; export declare function orderEntityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=orderentity.d.ts.map