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 { TransactionStatus } from "./transactionstatus.js"; import { TransactionType } from "./transactiontype.js"; export type TransactionEntity = { /** * 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 transaction amount in cents. 1000 = $10.00 */ amount: number; /** * The amount the customer paid in cents. 1000 = $10.00 */ amountPaid?: number | null | undefined; /** * The discount amount in cents. 1000 = $10.00 */ discountAmount?: number | null | undefined; /** * Three-letter ISO currency code, in uppercase. Must be a supported currency. */ currency: string; /** * The type of transaction. payment(one time payments) and invoice(subscription) */ type: TransactionType; /** * The ISO alpha-2 country code where tax is collected. */ taxCountry?: string | null | undefined; /** * The sale tax amount in cents. 1000 = $10.00 */ taxAmount?: number | null | undefined; /** * Status of the transaction. */ status: TransactionStatus; /** * The amount that has been refunded in cents. 1000 = $10.00 */ refundedAmount?: number | null | undefined; /** * The order associated with the transaction. */ order?: string | null | undefined; /** * The subscription associated with the transaction. */ subscription?: string | null | undefined; /** * The customer associated with the transaction. */ customer?: string | null | undefined; /** * The description of the transaction. */ description?: string | undefined; /** * Start period for the invoice as timestamp */ periodStart?: number | undefined; /** * End period for the invoice as timestamp */ periodEnd?: number | undefined; /** * Creation date of the order as timestamp */ createdAt: number; }; /** @internal */ export declare const TransactionEntity$inboundSchema: z.ZodType; /** @internal */ export type TransactionEntity$Outbound = { id: string; mode: string; object: string; amount: number; amount_paid?: number | null | undefined; discount_amount?: number | null | undefined; currency: string; type: string; tax_country?: string | null | undefined; tax_amount?: number | null | undefined; status: string; refunded_amount?: number | null | undefined; order?: string | null | undefined; subscription?: string | null | undefined; customer?: string | null | undefined; description?: string | undefined; period_start?: number | undefined; period_end?: number | undefined; created_at: number; }; /** @internal */ export declare const TransactionEntity$outboundSchema: z.ZodType; export declare function transactionEntityToJSON(transactionEntity: TransactionEntity): string; export declare function transactionEntityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=transactionentity.d.ts.map