wallee
Version:
TypeScript/JavaScript client for wallee
32 lines (31 loc) • 1.24 kB
JavaScript
import { AuthenticatedCardDataCreateFromJSON, AuthenticatedCardDataCreateToJSON, } from './AuthenticatedCardDataCreate';
/**
* Check if a given object implements the AuthenticatedCardRequest interface.
*/
export function instanceOfAuthenticatedCardRequest(value) {
return true;
}
export function AuthenticatedCardRequestFromJSON(json) {
return AuthenticatedCardRequestFromJSONTyped(json, false);
}
export function AuthenticatedCardRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'cardData': json['cardData'] == null ? undefined : AuthenticatedCardDataCreateFromJSON(json['cardData']),
'paymentMethodConfiguration': json['paymentMethodConfiguration'] == null ? undefined : json['paymentMethodConfiguration'],
};
}
export function AuthenticatedCardRequestToJSON(json) {
return AuthenticatedCardRequestToJSONTyped(json, false);
}
export function AuthenticatedCardRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'cardData': AuthenticatedCardDataCreateToJSON(value['cardData']),
'paymentMethodConfiguration': value['paymentMethodConfiguration'],
};
}