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

import { lazy, object, optional, Schema } from '../schema';
import {
  CardVaultResponse,
  cardVaultResponseSchema,
} from './cardVaultResponse';

/** Additional attributes associated with the use of this card. */
export interface CardAttributesResponse {
  /** The details about a saved Card payment source. */
  vault?: CardVaultResponse;
}

export const cardAttributesResponseSchema: Schema<CardAttributesResponse> = object(
  { vault: ['vault', optional(lazy(() => cardVaultResponseSchema))] }
);
