wallee
Version:
TypeScript/JavaScript client for wallee
45 lines (44 loc) • 2.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentTerminalConfiguration = instanceOfPaymentTerminalConfiguration;
exports.PaymentTerminalConfigurationFromJSON = PaymentTerminalConfigurationFromJSON;
exports.PaymentTerminalConfigurationFromJSONTyped = PaymentTerminalConfigurationFromJSONTyped;
exports.PaymentTerminalConfigurationToJSON = PaymentTerminalConfigurationToJSON;
exports.PaymentTerminalConfigurationToJSONTyped = PaymentTerminalConfigurationToJSONTyped;
const PaymentTerminalConfigurationState_1 = require("./PaymentTerminalConfigurationState");
const PaymentTerminalType_1 = require("./PaymentTerminalType");
/**
* Check if a given object implements the PaymentTerminalConfiguration interface.
*/
function instanceOfPaymentTerminalConfiguration(value) {
return true;
}
function PaymentTerminalConfigurationFromJSON(json) {
return PaymentTerminalConfigurationFromJSONTyped(json, false);
}
function PaymentTerminalConfigurationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'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, PaymentTerminalConfigurationState_1.PaymentTerminalConfigurationStateFromJSON)(json['state']),
'type': json['type'] == null ? undefined : (0, PaymentTerminalType_1.PaymentTerminalTypeFromJSON)(json['type']),
'version': json['version'] == null ? undefined : json['version'],
};
}
function PaymentTerminalConfigurationToJSON(json) {
return PaymentTerminalConfigurationToJSONTyped(json, false);
}
function PaymentTerminalConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'state': (0, PaymentTerminalConfigurationState_1.PaymentTerminalConfigurationStateToJSON)(value['state']),
'type': (0, PaymentTerminalType_1.PaymentTerminalTypeToJSON)(value['type']),
};
}