import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AddressReference, AddressReference$Outbound } from "./addressreference.js"; import { AddressReferenceInput, AddressReferenceInput$Outbound } from "./addressreferenceinput.js"; import { CreditCardNetwork } from "./creditcardnetwork.js"; export declare enum DotTag { CreditCard = "credit_card" } export type PaymentMethodCreditCard = { dotTag: DotTag; id?: string | undefined; billingAddress: AddressReference; /** * The credit card's network. */ network: CreditCardNetwork; /** * The account number's last four digits. */ last4: string; /** * The expiration date, in YYYY-MM format. */ expiration: string; }; export type PaymentMethodCreditCardInput = { dotTag: DotTag; billingAddress: AddressReferenceInput; /** * The credit card's network. */ network: CreditCardNetwork; /** * The Bank Identification Number (BIN). This is typically the first 4 to 6 digits of the account number. */ bin: string; /** * The account number's last four digits. */ last4: string; /** * The expiration date, in YYYY-MM format. */ expiration: string; /** * The Bolt token associated with the credit card. */ token: string; }; /** @internal */ export declare const DotTag$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DotTag$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DotTag$ { /** @deprecated use `DotTag$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `DotTag$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const PaymentMethodCreditCard$inboundSchema: z.ZodType; /** @internal */ export type PaymentMethodCreditCard$Outbound = { ".tag": string; id?: string | undefined; billing_address: AddressReference$Outbound; network: string; last4: string; expiration: string; }; /** @internal */ export declare const PaymentMethodCreditCard$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PaymentMethodCreditCard$ { /** @deprecated use `PaymentMethodCreditCard$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentMethodCreditCard$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentMethodCreditCard$Outbound` instead. */ type Outbound = PaymentMethodCreditCard$Outbound; } export declare function paymentMethodCreditCardToJSON(paymentMethodCreditCard: PaymentMethodCreditCard): string; export declare function paymentMethodCreditCardFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PaymentMethodCreditCardInput$inboundSchema: z.ZodType; /** @internal */ export type PaymentMethodCreditCardInput$Outbound = { ".tag": string; billing_address: AddressReferenceInput$Outbound; network: string; bin: string; last4: string; expiration: string; token: string; }; /** @internal */ export declare const PaymentMethodCreditCardInput$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PaymentMethodCreditCardInput$ { /** @deprecated use `PaymentMethodCreditCardInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentMethodCreditCardInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentMethodCreditCardInput$Outbound` instead. */ type Outbound = PaymentMethodCreditCardInput$Outbound; } export declare function paymentMethodCreditCardInputToJSON(paymentMethodCreditCardInput: PaymentMethodCreditCardInput): string; export declare function paymentMethodCreditCardInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=paymentmethodcreditcard.d.ts.map