tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
114 lines (104 loc) • 2.68 kB
text/typescript
/* 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 ClientInvoiceDTO
*/
export interface ClientInvoiceDTO {
/**
*
* @type {string}
* @memberof ClientInvoiceDTO
*/
createdAt?: string;
/**
*
* @type {number}
* @memberof ClientInvoiceDTO
*/
gross?: number;
/**
*
* @type {string}
* @memberof ClientInvoiceDTO
*/
id?: string;
/**
*
* @type {number}
* @memberof ClientInvoiceDTO
*/
net?: number;
/**
*
* @type {string}
* @memberof ClientInvoiceDTO
*/
number?: string;
/**
*
* @type {string}
* @memberof ClientInvoiceDTO
*/
paidDate?: string;
/**
*
* @type {number}
* @memberof ClientInvoiceDTO
*/
vatPercentage?: number;
}
/**
* Check if a given object implements the ClientInvoiceDTO interface.
*/
export function instanceOfClientInvoiceDTO(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function ClientInvoiceDTOFromJSON(json: any): ClientInvoiceDTO {
return ClientInvoiceDTOFromJSONTyped(json, false);
}
export function ClientInvoiceDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientInvoiceDTO {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
'gross': !exists(json, 'gross') ? undefined : json['gross'],
'id': !exists(json, 'id') ? undefined : json['id'],
'net': !exists(json, 'net') ? undefined : json['net'],
'number': !exists(json, 'number') ? undefined : json['number'],
'paidDate': !exists(json, 'paidDate') ? undefined : json['paidDate'],
'vatPercentage': !exists(json, 'vatPercentage') ? undefined : json['vatPercentage'],
};
}
export function ClientInvoiceDTOToJSON(value?: ClientInvoiceDTO | null): any {
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,
};
}