UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

60 lines 2.27 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Tuix Services * Tuix Services API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateEmployeeInvoiceInputDTOToJSON = exports.CreateEmployeeInvoiceInputDTOFromJSONTyped = exports.CreateEmployeeInvoiceInputDTOFromJSON = exports.instanceOfCreateEmployeeInvoiceInputDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the CreateEmployeeInvoiceInputDTO interface. */ function instanceOfCreateEmployeeInvoiceInputDTO(value) { let isInstance = true; isInstance = isInstance && "adjustment" in value; isInstance = isInstance && "dateOverride" in value; isInstance = isInstance && "monthDate" in value; return isInstance; } exports.instanceOfCreateEmployeeInvoiceInputDTO = instanceOfCreateEmployeeInvoiceInputDTO; function CreateEmployeeInvoiceInputDTOFromJSON(json) { return CreateEmployeeInvoiceInputDTOFromJSONTyped(json, false); } exports.CreateEmployeeInvoiceInputDTOFromJSON = CreateEmployeeInvoiceInputDTOFromJSON; function CreateEmployeeInvoiceInputDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'adjustment': json['adjustment'], 'dateOverride': json['dateOverride'], 'isPaid': !(0, runtime_1.exists)(json, 'isPaid') ? undefined : json['isPaid'], 'monthDate': json['monthDate'], }; } exports.CreateEmployeeInvoiceInputDTOFromJSONTyped = CreateEmployeeInvoiceInputDTOFromJSONTyped; function CreateEmployeeInvoiceInputDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'adjustment': value.adjustment, 'dateOverride': value.dateOverride, 'isPaid': value.isPaid, 'monthDate': value.monthDate, }; } exports.CreateEmployeeInvoiceInputDTOToJSON = CreateEmployeeInvoiceInputDTOToJSON; //# sourceMappingURL=CreateEmployeeInvoiceInputDTO.js.map