|
export class DiscountItem {
|
|
id: string;
|
|
name: string;
|
|
discount: number;
|
|
limit: number;
|
|
customer: number;
|
|
|
|
public constructor(init?: Partial<DiscountItem>) {
|
|
this.id = '';
|
|
this.name = '';
|
|
this.discount = 0;
|
|
this.limit = 0;
|
|
this.customer = 0;
|
|
Object.assign(this, init);
|
|
}
|
|
}
|