UNPKG

wallee

Version:
43 lines (42 loc) 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentProcessorConfigurationCreate = instanceOfPaymentProcessorConfigurationCreate; exports.PaymentProcessorConfigurationCreateFromJSON = PaymentProcessorConfigurationCreateFromJSON; exports.PaymentProcessorConfigurationCreateFromJSONTyped = PaymentProcessorConfigurationCreateFromJSONTyped; exports.PaymentProcessorConfigurationCreateToJSON = PaymentProcessorConfigurationCreateToJSON; exports.PaymentProcessorConfigurationCreateToJSONTyped = PaymentProcessorConfigurationCreateToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the PaymentProcessorConfigurationCreate interface. */ function instanceOfPaymentProcessorConfigurationCreate(value) { if (!('processor' in value) || value['processor'] === undefined) return false; return true; } function PaymentProcessorConfigurationCreateFromJSON(json) { return PaymentProcessorConfigurationCreateFromJSONTyped(json, false); } function PaymentProcessorConfigurationCreateFromJSONTyped(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']), 'processor': json['processor'], }; } function PaymentProcessorConfigurationCreateToJSON(json) { return PaymentProcessorConfigurationCreateToJSONTyped(json, false); } function PaymentProcessorConfigurationCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'processor': value['processor'], }; }