/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema } from '../schema.js'; import { CardCustomerInformation, cardCustomerInformationSchema, } from './cardCustomerInformation.js'; import { CardVerification, cardVerificationSchema, } from './cardVerification.js'; import { VaultInstructionBase, vaultInstructionBaseSchema, } from './vaultInstructionBase.js'; /** Additional attributes associated with the use of this card. */ export interface CardAttributes { /** The details about a customer in PayPal's system of record. */ customer?: CardCustomerInformation; /** Basic vault instruction specification that can be extended by specific payment sources that supports vaulting. */ vault?: VaultInstructionBase; /** The API caller can opt in to verify the card through PayPal offered verification services (e.g. Smart Dollar Auth, 3DS). */ verification?: CardVerification; } export const cardAttributesSchema: Schema = lazy(() => object({ customer: ['customer', optional(cardCustomerInformationSchema)], vault: ['vault', optional(vaultInstructionBaseSchema)], verification: ['verification', optional(cardVerificationSchema)], }) );