2025-05-26 14:45:03 +00:00
|
|
|
import { IMetadataDTO, IMoneyDTO, IQuantityDTO } from "@erp/core";
|
2025-04-01 14:26:15 +00:00
|
|
|
|
|
|
|
|
export interface IListInvoicesResponseDTO {
|
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
|
|
invoice_status: string;
|
|
|
|
|
invoice_number: string;
|
|
|
|
|
invoice_series: string;
|
|
|
|
|
issue_date: string;
|
|
|
|
|
operation_date: string;
|
|
|
|
|
language_code: string;
|
|
|
|
|
currency: string;
|
|
|
|
|
|
|
|
|
|
subtotal: IMoneyDTO;
|
|
|
|
|
total: IMoneyDTO;
|
2025-05-26 14:45:03 +00:00
|
|
|
|
|
|
|
|
metadata?: IMetadataDTO;
|
2025-04-01 14:26:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IGetInvoiceResponseDTO {
|
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
|
|
invoice_status: string;
|
|
|
|
|
invoice_number: string;
|
|
|
|
|
invoice_series: string;
|
|
|
|
|
issue_date: string;
|
|
|
|
|
operation_date: string;
|
|
|
|
|
language_code: string;
|
|
|
|
|
currency: string;
|
|
|
|
|
|
|
|
|
|
subtotal: IMoneyDTO;
|
|
|
|
|
total: IMoneyDTO;
|
|
|
|
|
|
2025-04-22 15:09:57 +00:00
|
|
|
items: {
|
|
|
|
|
description: string;
|
|
|
|
|
quantity: IQuantityDTO;
|
|
|
|
|
unit_measure: string;
|
|
|
|
|
unit_price: IMoneyDTO;
|
|
|
|
|
subtotal: IMoneyDTO;
|
|
|
|
|
//tax_amount: IMoneyDTO;
|
|
|
|
|
total: IMoneyDTO;
|
|
|
|
|
}[];
|
|
|
|
|
|
2025-04-01 14:26:15 +00:00
|
|
|
//customer:
|
2025-05-26 14:45:03 +00:00
|
|
|
|
|
|
|
|
metadata?: IMetadataDTO;
|
2025-04-01 14:26:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ICreateInvoiceResponseDTO {
|
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
|
|
invoice_status: string;
|
|
|
|
|
invoice_number: string;
|
|
|
|
|
invoice_series: string;
|
|
|
|
|
issue_date: string;
|
|
|
|
|
operation_date: string;
|
|
|
|
|
language_code: string;
|
|
|
|
|
currency: string;
|
|
|
|
|
|
|
|
|
|
subtotal: IMoneyDTO;
|
|
|
|
|
total: IMoneyDTO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Inferir el tipo en TypeScript desde el esquema Zod
|
|
|
|
|
//export type IUpdateAcccountResponseDTO = z.infer<typeof IUpdateAcccountResponseDTOSchema>;
|
|
|
|
|
|
|
|
|
|
export interface IUpdateInvoiceResponseDTO {
|
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
|
|
invoice_status: string;
|
|
|
|
|
invoice_number: string;
|
|
|
|
|
invoice_series: string;
|
|
|
|
|
issue_date: string;
|
|
|
|
|
operation_date: string;
|
|
|
|
|
language_code: string;
|
|
|
|
|
currency: string;
|
|
|
|
|
|
|
|
|
|
subtotal: IMoneyDTO;
|
|
|
|
|
total: IMoneyDTO;
|
|
|
|
|
}
|