24 lines
969 B
TypeScript
24 lines
969 B
TypeScript
|
|
import { Criteria } from "@repo/rdx-criteria/server";
|
||
|
|
import { UniqueID } from "@repo/rdx-ddd";
|
||
|
|
import { Collection, Result } from "@repo/rdx-utils";
|
||
|
|
import { ICustomerInvoiceProps, CustomerInvoice } from "../aggregates";
|
||
|
|
|
||
|
|
export interface ICustomerInvoiceService {
|
||
|
|
findCustomerInvoices(criteria: Criteria, transaction?: any): Promise<Result<Collection<CustomerInvoice>, Error>>;
|
||
|
|
findCustomerInvoiceById(customerCustomerInvoiceId: UniqueID, transaction?: any): Promise<Result<CustomerInvoice>>;
|
||
|
|
|
||
|
|
updateCustomerInvoiceById(
|
||
|
|
customerCustomerInvoiceId: UniqueID,
|
||
|
|
data: Partial<ICustomerInvoiceProps>,
|
||
|
|
transaction?: any
|
||
|
|
): Promise<Result<CustomerInvoice, Error>>;
|
||
|
|
|
||
|
|
createCustomerInvoice(
|
||
|
|
customerCustomerInvoiceId: UniqueID,
|
||
|
|
data: ICustomerInvoiceProps,
|
||
|
|
transaction?: any
|
||
|
|
): Promise<Result<CustomerInvoice, Error>>;
|
||
|
|
|
||
|
|
deleteCustomerInvoiceById(customerCustomerInvoiceId: UniqueID, transaction?: any): Promise<Result<boolean, Error>>;
|
||
|
|
}
|