UNPKG

wallee

Version:
39 lines (38 loc) 1.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfAuthenticatedCardRequest = instanceOfAuthenticatedCardRequest; exports.AuthenticatedCardRequestFromJSON = AuthenticatedCardRequestFromJSON; exports.AuthenticatedCardRequestFromJSONTyped = AuthenticatedCardRequestFromJSONTyped; exports.AuthenticatedCardRequestToJSON = AuthenticatedCardRequestToJSON; exports.AuthenticatedCardRequestToJSONTyped = AuthenticatedCardRequestToJSONTyped; const AuthenticatedCardDataCreate_1 = require("./AuthenticatedCardDataCreate"); /** * Check if a given object implements the AuthenticatedCardRequest interface. */ function instanceOfAuthenticatedCardRequest(value) { return true; } function AuthenticatedCardRequestFromJSON(json) { return AuthenticatedCardRequestFromJSONTyped(json, false); } function AuthenticatedCardRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cardData': json['cardData'] == null ? undefined : (0, AuthenticatedCardDataCreate_1.AuthenticatedCardDataCreateFromJSON)(json['cardData']), 'paymentMethodConfiguration': json['paymentMethodConfiguration'] == null ? undefined : json['paymentMethodConfiguration'], }; } function AuthenticatedCardRequestToJSON(json) { return AuthenticatedCardRequestToJSONTyped(json, false); } function AuthenticatedCardRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'cardData': (0, AuthenticatedCardDataCreate_1.AuthenticatedCardDataCreateToJSON)(value['cardData']), 'paymentMethodConfiguration': value['paymentMethodConfiguration'], }; }