/**
 * Paypal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { lazy, object, optional, Schema } from '../schema';
import { CardVerification, cardVerificationSchema } from './cardVerification';

/** Additional attributes associated with the use of this card. */
export interface GooglePayCardAttributes {
  /** 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 googlePayCardAttributesSchema: Schema<GooglePayCardAttributes> = object(
  {
    verification: [
      'verification',
      optional(lazy(() => cardVerificationSchema)),
    ],
  }
);
