@logismix/mydata-client
Version:
Greek myDATA (AADE) API client library
50 lines (49 loc) • 1.75 kB
TypeScript
import { InvoiceType, InvoiceDetailType, ContinuationTokenType } from './simple-types.model';
/**
* Root element for the response of RequestMyIncome and RequestMyExpenses methods.
*/
export interface RequestedBookInfo {
/** Token for retrieving results in parts (pagination). */
continuationToken?: ContinuationTokenType;
/** List of aggregated book information entries. */
bookInfo?: BookInfoType[];
}
/**
* Aggregated information about income or expenses for a specific grouping.
*/
export interface BookInfoType {
/** Counterparty VAT number (if applicable). */
counterVatNumber?: string;
/** Invoice Issue Date (or grouping date). */
issueDate: Date;
/** Invoice Type. */
invType: InvoiceType;
/** Self-billing indicator. */
selfPricing?: boolean;
/** Invoice Detail Type (Marking). */
invoiceDetailType?: InvoiceDetailType;
/** Aggregated Net value. */
netValue?: number;
/** Aggregated VAT Amount. */
vatAmount?: number;
/** Aggregated Withheld Tax Amount. */
withheldAmount?: number;
/** Aggregated Other Taxes Amount. */
otherTaxesAmount?: number;
/** Aggregated Stamp Duty Amount. */
stampDutyAmount?: number;
/** Aggregated Fees Amount. */
feesAmount?: number;
/** Aggregated Deductions Amount. */
deductionsAmount?: number;
/** Aggregated Third Party Amount (from type 1.5). */
thirdPartyAmount?: number;
/** Aggregated Total Gross Value. */
grossValue?: number;
/** Count of invoices included in this aggregation. */
count: number;
/** Minimum MARK of the invoices in this aggregation. */
minMark?: string;
/** Maximum MARK of the invoices in this aggregation. */
maxMark?: string;
}