UNPKG

wallee

Version:
50 lines (49 loc) 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentTerminalCreate = instanceOfPaymentTerminalCreate; exports.PaymentTerminalCreateFromJSON = PaymentTerminalCreateFromJSON; exports.PaymentTerminalCreateFromJSONTyped = PaymentTerminalCreateFromJSONTyped; exports.PaymentTerminalCreateToJSON = PaymentTerminalCreateToJSON; exports.PaymentTerminalCreateToJSONTyped = PaymentTerminalCreateToJSONTyped; /** * Check if a given object implements the PaymentTerminalCreate interface. */ function instanceOfPaymentTerminalCreate(value) { if (!('externalId' in value) || value['externalId'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } function PaymentTerminalCreateFromJSON(json) { return PaymentTerminalCreateFromJSONTyped(json, false); } function PaymentTerminalCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'identifier': json['identifier'] == null ? undefined : json['identifier'], 'configurationVersion': json['configurationVersion'] == null ? undefined : json['configurationVersion'], 'locationVersion': json['locationVersion'] == null ? undefined : json['locationVersion'], 'externalId': json['externalId'], 'type': json['type'], }; } function PaymentTerminalCreateToJSON(json) { return PaymentTerminalCreateToJSONTyped(json, false); } function PaymentTerminalCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'identifier': value['identifier'], 'configurationVersion': value['configurationVersion'], 'locationVersion': value['locationVersion'], 'externalId': value['externalId'], 'type': value['type'], }; }