wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.47 kB
JavaScript
import { CardCryptogramFromJSON, CardCryptogramToJSON, } from './CardCryptogram';
import { RecurringIndicatorFromJSON, RecurringIndicatorToJSON, } from './RecurringIndicator';
/**
* Check if a given object implements the TokenizedCardData interface.
*/
export function instanceOfTokenizedCardData(value) {
return true;
}
export function TokenizedCardDataFromJSON(json) {
return TokenizedCardDataFromJSONTyped(json, false);
}
export function TokenizedCardDataFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'initialRecurringTransaction': json['initialRecurringTransaction'] == null ? undefined : json['initialRecurringTransaction'],
'recurringIndicator': json['recurringIndicator'] == null ? undefined : RecurringIndicatorFromJSON(json['recurringIndicator']),
'tokenRequestorId': json['tokenRequestorId'] == null ? undefined : json['tokenRequestorId'],
'cryptogram': json['cryptogram'] == null ? undefined : CardCryptogramFromJSON(json['cryptogram']),
};
}
export function TokenizedCardDataToJSON(json) {
return TokenizedCardDataToJSONTyped(json, false);
}
export function TokenizedCardDataToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'recurringIndicator': RecurringIndicatorToJSON(value['recurringIndicator']),
'cryptogram': CardCryptogramToJSON(value['cryptogram']),
};
}