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

import { boolean, object, optional, Schema } from '../schema';

/** Information about cardholder possession validation and cardholder identification and verifications (ID&V). */
export interface AssuranceDetails {
  /** If true, indicates that Cardholder possession validation has been performed on returned payment credential. */
  accountVerified?: boolean;
  /** If true, indicates that identification and verifications (ID&V) was performed on the returned payment credential.If false, the same risk-based authentication can be performed as you would for card transactions. This risk-based authentication can include, but not limited to, step-up with 3D Secure protocol if applicable. */
  cardHolderAuthenticated?: boolean;
}

export const assuranceDetailsSchema: Schema<AssuranceDetails> = object({
  accountVerified: ['account_verified', optional(boolean())],
  cardHolderAuthenticated: ['card_holder_authenticated', optional(boolean())],
});
