UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

111 lines (101 loc) 2.51 kB
/* 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. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface EmployeeInvoiceDTO */ export interface EmployeeInvoiceDTO { /** * * @type {string} * @memberof EmployeeInvoiceDTO */ createdAt: string; /** * * @type {number} * @memberof EmployeeInvoiceDTO */ gross: number; /** * * @type {string} * @memberof EmployeeInvoiceDTO */ id: string; /** * * @type {boolean} * @memberof EmployeeInvoiceDTO */ isPaid?: boolean; /** * * @type {number} * @memberof EmployeeInvoiceDTO */ net: number; /** * * @type {string} * @memberof EmployeeInvoiceDTO */ number: string; } /** * Check if a given object implements the EmployeeInvoiceDTO interface. */ export function instanceOfEmployeeInvoiceDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "createdAt" in value; isInstance = isInstance && "gross" in value; isInstance = isInstance && "id" in value; isInstance = isInstance && "net" in value; isInstance = isInstance && "number" in value; return isInstance; } export function EmployeeInvoiceDTOFromJSON(json: any): EmployeeInvoiceDTO { return EmployeeInvoiceDTOFromJSONTyped(json, false); } export function EmployeeInvoiceDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmployeeInvoiceDTO { if ((json === undefined) || (json === null)) { return json; } return { 'createdAt': json['createdAt'], 'gross': json['gross'], 'id': json['id'], 'isPaid': !exists(json, 'isPaid') ? undefined : json['isPaid'], 'net': json['net'], 'number': json['number'], }; } export function EmployeeInvoiceDTOToJSON(value?: EmployeeInvoiceDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'createdAt': value.createdAt, 'gross': value.gross, 'id': value.id, 'isPaid': value.isPaid, 'net': value.net, 'number': value.number, }; }