import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CardBrand } from "./cardbrand.js"; import { CardExpiration, CardExpiration$Outbound } from "./cardexpiration.js"; import { CardType } from "./cardtype.js"; /** * Describes an Apple Pay token on a Moov account. */ export type ApplePayResponse = { /** * The card brand. */ brand: CardBrand; /** * The type of the card. */ cardType: CardType; /** * User-friendly name of the tokenized card returned by Apple. * * @remarks * * It usually contains the brand and the last four digits of the underlying card. * There is no standard format. */ cardDisplayName: string; /** * Uniquely identifies a linked payment card or token. * * @remarks * For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device. * This field can be used to identify specific payment methods across multiple accounts on your platform. */ fingerprint: string; /** * The expiration date of the card or token. */ expiration: CardExpiration; /** * The last four digits of the Apple Pay token, which may differ from the tokenized card's last four digits. */ dynamicLastFour: string; /** * Country where the underlying card was issued. */ issuerCountry?: string | undefined; }; /** @internal */ export declare const ApplePayResponse$inboundSchema: z.ZodType; /** @internal */ export type ApplePayResponse$Outbound = { brand: string; cardType: string; cardDisplayName: string; fingerprint: string; expiration: CardExpiration$Outbound; dynamicLastFour: string; issuerCountry?: string | undefined; }; /** @internal */ export declare const ApplePayResponse$outboundSchema: z.ZodType; export declare function applePayResponseToJSON(applePayResponse: ApplePayResponse): string; export declare function applePayResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=applepayresponse.d.ts.map