wallee
Version:
TypeScript/JavaScript client for wallee
43 lines (42 loc) • 2.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCardholderAuthentication = instanceOfCardholderAuthentication;
exports.CardholderAuthenticationFromJSON = CardholderAuthenticationFromJSON;
exports.CardholderAuthenticationFromJSONTyped = CardholderAuthenticationFromJSONTyped;
exports.CardholderAuthenticationToJSON = CardholderAuthenticationToJSON;
exports.CardholderAuthenticationToJSONTyped = CardholderAuthenticationToJSONTyped;
const CardAuthenticationVersion_1 = require("./CardAuthenticationVersion");
const CardAuthenticationResponse_1 = require("./CardAuthenticationResponse");
/**
* Check if a given object implements the CardholderAuthentication interface.
*/
function instanceOfCardholderAuthentication(value) {
return true;
}
function CardholderAuthenticationFromJSON(json) {
return CardholderAuthenticationFromJSONTyped(json, false);
}
function CardholderAuthenticationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'authenticationIdentifier': json['authenticationIdentifier'] == null ? undefined : json['authenticationIdentifier'],
'authenticationResponse': json['authenticationResponse'] == null ? undefined : (0, CardAuthenticationResponse_1.CardAuthenticationResponseFromJSON)(json['authenticationResponse']),
'electronicCommerceIndicator': json['electronicCommerceIndicator'] == null ? undefined : json['electronicCommerceIndicator'],
'authenticationValue': json['authenticationValue'] == null ? undefined : json['authenticationValue'],
'version': json['version'] == null ? undefined : (0, CardAuthenticationVersion_1.CardAuthenticationVersionFromJSON)(json['version']),
};
}
function CardholderAuthenticationToJSON(json) {
return CardholderAuthenticationToJSONTyped(json, false);
}
function CardholderAuthenticationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'authenticationResponse': (0, CardAuthenticationResponse_1.CardAuthenticationResponseToJSON)(value['authenticationResponse']),
'version': (0, CardAuthenticationVersion_1.CardAuthenticationVersionToJSON)(value['version']),
};
}