UNPKG

wallee

Version:
47 lines (46 loc) 2.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentProcessorConfiguration = instanceOfPaymentProcessorConfiguration; exports.PaymentProcessorConfigurationFromJSON = PaymentProcessorConfigurationFromJSON; exports.PaymentProcessorConfigurationFromJSONTyped = PaymentProcessorConfigurationFromJSONTyped; exports.PaymentProcessorConfigurationToJSON = PaymentProcessorConfigurationToJSON; exports.PaymentProcessorConfigurationToJSONTyped = PaymentProcessorConfigurationToJSONTyped; const PaymentProcessor_1 = require("./PaymentProcessor"); const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the PaymentProcessorConfiguration interface. */ function instanceOfPaymentProcessorConfiguration(value) { return true; } function PaymentProcessorConfigurationFromJSON(json) { return PaymentProcessorConfigurationFromJSONTyped(json, false); } function PaymentProcessorConfigurationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'applicationManaged': json['applicationManaged'] == null ? undefined : json['applicationManaged'], 'contractId': json['contractId'] == null ? undefined : json['contractId'], 'name': json['name'] == null ? undefined : json['name'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'processor': json['processor'] == null ? undefined : (0, PaymentProcessor_1.PaymentProcessorFromJSON)(json['processor']), 'version': json['version'] == null ? undefined : json['version'], }; } function PaymentProcessorConfigurationToJSON(json) { return PaymentProcessorConfigurationToJSONTyped(json, false); } function PaymentProcessorConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'processor': (0, PaymentProcessor_1.PaymentProcessorToJSON)(value['processor']), }; }