UNPKG

wallee

Version:
43 lines (42 loc) 1.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentProcessorConfigurationActive = instanceOfPaymentProcessorConfigurationActive; exports.PaymentProcessorConfigurationActiveFromJSON = PaymentProcessorConfigurationActiveFromJSON; exports.PaymentProcessorConfigurationActiveFromJSONTyped = PaymentProcessorConfigurationActiveFromJSONTyped; exports.PaymentProcessorConfigurationActiveToJSON = PaymentProcessorConfigurationActiveToJSON; exports.PaymentProcessorConfigurationActiveToJSONTyped = PaymentProcessorConfigurationActiveToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the PaymentProcessorConfigurationActive interface. */ function instanceOfPaymentProcessorConfigurationActive(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function PaymentProcessorConfigurationActiveFromJSON(json) { return PaymentProcessorConfigurationActiveFromJSONTyped(json, false); } function PaymentProcessorConfigurationActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'version': json['version'], }; } function PaymentProcessorConfigurationActiveToJSON(json) { return PaymentProcessorConfigurationActiveToJSONTyped(json, false); } function PaymentProcessorConfigurationActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'version': value['version'], }; }