tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
63 lines • 2.35 kB
JavaScript
;
/* 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.ClientInvoiceDTOToJSON = exports.ClientInvoiceDTOFromJSONTyped = exports.ClientInvoiceDTOFromJSON = exports.instanceOfClientInvoiceDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the ClientInvoiceDTO interface.
*/
function instanceOfClientInvoiceDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfClientInvoiceDTO = instanceOfClientInvoiceDTO;
function ClientInvoiceDTOFromJSON(json) {
return ClientInvoiceDTOFromJSONTyped(json, false);
}
exports.ClientInvoiceDTOFromJSON = ClientInvoiceDTOFromJSON;
function ClientInvoiceDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : json['createdAt'],
'gross': !(0, runtime_1.exists)(json, 'gross') ? undefined : json['gross'],
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'net': !(0, runtime_1.exists)(json, 'net') ? undefined : json['net'],
'number': !(0, runtime_1.exists)(json, 'number') ? undefined : json['number'],
'paidDate': !(0, runtime_1.exists)(json, 'paidDate') ? undefined : json['paidDate'],
'vatPercentage': !(0, runtime_1.exists)(json, 'vatPercentage') ? undefined : json['vatPercentage'],
};
}
exports.ClientInvoiceDTOFromJSONTyped = ClientInvoiceDTOFromJSONTyped;
function ClientInvoiceDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'createdAt': value.createdAt,
'gross': value.gross,
'id': value.id,
'net': value.net,
'number': value.number,
'paidDate': value.paidDate,
'vatPercentage': value.vatPercentage,
};
}
exports.ClientInvoiceDTOToJSON = ClientInvoiceDTOToJSON;
//# sourceMappingURL=ClientInvoiceDTO.js.map