wallee
Version:
TypeScript/JavaScript client for wallee
45 lines (44 loc) • 2.7 kB
JavaScript
import { PaymentTerminalConfigurationVersionStateFromJSON, PaymentTerminalConfigurationVersionStateToJSON, } from './PaymentTerminalConfigurationVersionState';
import { PaymentTerminalConfigurationFromJSON, PaymentTerminalConfigurationToJSON, } from './PaymentTerminalConfiguration';
/**
* Check if a given object implements the PaymentTerminalConfigurationVersion interface.
*/
export function instanceOfPaymentTerminalConfigurationVersion(value) {
return true;
}
export function PaymentTerminalConfigurationVersionFromJSON(json) {
return PaymentTerminalConfigurationVersionFromJSONTyped(json, false);
}
export function PaymentTerminalConfigurationVersionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'maintenanceWindowStart': json['maintenanceWindowStart'] == null ? undefined : json['maintenanceWindowStart'],
'_configuration': json['configuration'] == null ? undefined : PaymentTerminalConfigurationFromJSON(json['configuration']),
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'timeZone': json['timeZone'] == null ? undefined : json['timeZone'],
'versionAppliedImmediately': json['versionAppliedImmediately'] == null ? undefined : json['versionAppliedImmediately'],
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
'version': json['version'] == null ? undefined : json['version'],
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'connectorConfigurations': json['connectorConfigurations'] == null ? undefined : json['connectorConfigurations'],
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
'defaultCurrency': json['defaultCurrency'] == null ? undefined : json['defaultCurrency'],
'maintenanceWindowDuration': json['maintenanceWindowDuration'] == null ? undefined : json['maintenanceWindowDuration'],
'id': json['id'] == null ? undefined : json['id'],
'state': json['state'] == null ? undefined : PaymentTerminalConfigurationVersionStateFromJSON(json['state']),
};
}
export function PaymentTerminalConfigurationVersionToJSON(json) {
return PaymentTerminalConfigurationVersionToJSONTyped(json, false);
}
export function PaymentTerminalConfigurationVersionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'configuration': PaymentTerminalConfigurationToJSON(value['_configuration']),
'state': PaymentTerminalConfigurationVersionStateToJSON(value['state']),
};
}