import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A settlement record for a transaction. */ export type Settlement = { /** * The unique identifier for the record. */ id: string; /** * The merchant account this record belongs to. */ merchantAccountId: string; /** * The date and time the record was created, in ISO 8601 format. */ createdAt: Date; /** * The date and time the record was last updated, in ISO 8601 format. */ updatedAt: Date; /** * The date and time the record was posted, in ISO 8601 format. */ postedAt: Date; /** * The date and time the record was ingested, in ISO 8601 format. */ ingestedAt: Date; /** * ISO 4217 currency code. */ currency: string; /** * The total amount in the smallest currency unit (e.g. cents). */ amount: number; /** * The exchange rate, if applicable. */ exchangeRate?: number | null | undefined; /** * The commission amount deducted in the smallest currency unit. */ commission: number; /** * The interchange fee, if applicable, in the smallest currency unit. */ interchange?: number | null | undefined; /** * The markup fee, if applicable, in the smallest currency unit. */ markup?: number | null | undefined; /** * The scheme fee, if applicable, in the smallest currency unit. */ schemeFee?: number | null | undefined; /** * The report ID from the payment service. */ paymentServiceReportId: string; /** * List of file IDs for the payment service report. */ paymentServiceReportFileIds: Array; /** * The transaction this record is associated with. */ transactionId: string; /** * Always `settlement`. */ type: "settlement"; }; /** @internal */ export declare const Settlement$inboundSchema: z.ZodType; export declare function settlementFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=settlement.d.ts.map