18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
|
|
import { Collection } from "@repo/rdx-utils";
|
||
|
|
import { InvoiceTax } from "./invoice-tax";
|
||
|
|
|
||
|
|
export interface InvoiceTaxesProps {
|
||
|
|
items?: InvoiceTax[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export class InvoiceTaxes extends Collection<InvoiceTax> {
|
||
|
|
constructor(props: InvoiceTaxesProps) {
|
||
|
|
const { items = [] } = props;
|
||
|
|
super(items);
|
||
|
|
}
|
||
|
|
|
||
|
|
public static create(props: InvoiceTaxesProps): InvoiceTaxes {
|
||
|
|
return new InvoiceTaxes(props);
|
||
|
|
}
|
||
|
|
}
|