UNPKG

wallee

Version:
40 lines (39 loc) 1.87 kB
import { PaymentProcessorFromJSON, PaymentProcessorToJSON, } from './PaymentProcessor'; import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the PaymentProcessorConfiguration interface. */ export function instanceOfPaymentProcessorConfiguration(value) { return true; } export function PaymentProcessorConfigurationFromJSON(json) { return PaymentProcessorConfigurationFromJSONTyped(json, false); } export 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 : CreationEntityStateFromJSON(json['state']), 'processor': json['processor'] == null ? undefined : PaymentProcessorFromJSON(json['processor']), 'version': json['version'] == null ? undefined : json['version'], }; } export function PaymentProcessorConfigurationToJSON(json) { return PaymentProcessorConfigurationToJSONTyped(json, false); } export function PaymentProcessorConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': CreationEntityStateToJSON(value['state']), 'processor': PaymentProcessorToJSON(value['processor']), }; }