UNPKG

wallee

Version:
36 lines (35 loc) 1.76 kB
import { CardAuthenticationVersionFromJSON, CardAuthenticationVersionToJSON, } from './CardAuthenticationVersion'; import { CardAuthenticationResponseFromJSON, CardAuthenticationResponseToJSON, } from './CardAuthenticationResponse'; /** * Check if a given object implements the CardholderAuthentication interface. */ export function instanceOfCardholderAuthentication(value) { return true; } export function CardholderAuthenticationFromJSON(json) { return CardholderAuthenticationFromJSONTyped(json, false); } export function CardholderAuthenticationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'authenticationIdentifier': json['authenticationIdentifier'] == null ? undefined : json['authenticationIdentifier'], 'authenticationResponse': json['authenticationResponse'] == null ? undefined : CardAuthenticationResponseFromJSON(json['authenticationResponse']), 'electronicCommerceIndicator': json['electronicCommerceIndicator'] == null ? undefined : json['electronicCommerceIndicator'], 'authenticationValue': json['authenticationValue'] == null ? undefined : json['authenticationValue'], 'version': json['version'] == null ? undefined : CardAuthenticationVersionFromJSON(json['version']), }; } export function CardholderAuthenticationToJSON(json) { return CardholderAuthenticationToJSONTyped(json, false); } export function CardholderAuthenticationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'authenticationResponse': CardAuthenticationResponseToJSON(value['authenticationResponse']), 'version': CardAuthenticationVersionToJSON(value['version']), }; }