import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CardTransactionFailureCode } from "./cardtransactionfailurecode.js"; import { CardTransactionStatus } from "./cardtransactionstatus.js"; import { TransactionSource } from "./transactionsource.js"; /** * Card-specific details about the transaction. */ export type CardTransactionDetails = { /** * Status of a transaction within the card payment lifecycle. */ status?: CardTransactionStatus | undefined; failureCode?: CardTransactionFailureCode | undefined; /** * An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field. */ dynamicDescriptor?: string | undefined; /** * Specifies the nature and initiator of a transaction. * * @remarks * * Crucial for recurring and merchant-initiated transactions as per card scheme rules. * Omit for customer-initiated e-commerce transactions. */ transactionSource?: TransactionSource | undefined; initiatedOn?: Date | undefined; confirmedOn?: Date | undefined; settledOn?: Date | undefined; failedOn?: Date | undefined; canceledOn?: Date | undefined; completedOn?: Date | undefined; /** * The program assigned by the card network that determines the interchange rate for the transfer. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ interchangeQualification?: string | undefined; /** * The program assigned by the card network that determines the interchange rate for the transfer. */ feeProgram?: string | undefined; /** * An alphanumeric code generated by the card network to demonstrate approval for the transaction. */ authorizationCode?: string | undefined; }; /** @internal */ export declare const CardTransactionDetails$inboundSchema: z.ZodType; /** @internal */ export type CardTransactionDetails$Outbound = { status?: string | undefined; failureCode?: string | undefined; dynamicDescriptor?: string | undefined; transactionSource?: string | undefined; initiatedOn?: string | undefined; confirmedOn?: string | undefined; settledOn?: string | undefined; failedOn?: string | undefined; canceledOn?: string | undefined; completedOn?: string | undefined; interchangeQualification?: string | undefined; feeProgram?: string | undefined; authorizationCode?: string | undefined; }; /** @internal */ export declare const CardTransactionDetails$outboundSchema: z.ZodType; export declare function cardTransactionDetailsToJSON(cardTransactionDetails: CardTransactionDetails): string; export declare function cardTransactionDetailsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cardtransactiondetails.d.ts.map