wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentProcessor = instanceOfPaymentProcessor;
exports.PaymentProcessorFromJSON = PaymentProcessorFromJSON;
exports.PaymentProcessorFromJSONTyped = PaymentProcessorFromJSONTyped;
exports.PaymentProcessorToJSON = PaymentProcessorToJSON;
exports.PaymentProcessorToJSONTyped = PaymentProcessorToJSONTyped;
/**
* Check if a given object implements the PaymentProcessor interface.
*/
function instanceOfPaymentProcessor(value) {
return true;
}
function PaymentProcessorFromJSON(json) {
return PaymentProcessorFromJSONTyped(json, false);
}
function PaymentProcessorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'companyName': json['companyName'] == null ? undefined : json['companyName'],
'headquartersLocation': json['headquartersLocation'] == null ? undefined : json['headquartersLocation'],
'logoPath': json['logoPath'] == null ? undefined : json['logoPath'],
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
'productName': json['productName'] == null ? undefined : json['productName'],
};
}
function PaymentProcessorToJSON(json) {
return PaymentProcessorToJSONTyped(json, false);
}
function PaymentProcessorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}