wallee
Version:
TypeScript/JavaScript client for wallee
28 lines (27 loc) • 949 B
JavaScript
/**
* Check if a given object implements the BogusExpressCheckoutPaymentData interface.
*/
export function instanceOfBogusExpressCheckoutPaymentData(value) {
return true;
}
export function BogusExpressCheckoutPaymentDataFromJSON(json) {
return BogusExpressCheckoutPaymentDataFromJSONTyped(json, false);
}
export function BogusExpressCheckoutPaymentDataFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
'cryptogram': json['cryptogram'] == null ? undefined : json['cryptogram'],
};
}
export function BogusExpressCheckoutPaymentDataToJSON(json) {
return BogusExpressCheckoutPaymentDataToJSONTyped(json, false);
}
export function BogusExpressCheckoutPaymentDataToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}