15 lines
275 B
TypeScript
15 lines
275 B
TypeScript
export class CustomerDiscount {
|
|
id: string;
|
|
name: string;
|
|
discount: number;
|
|
limit: number;
|
|
|
|
public constructor(init?: Partial<CustomerDiscount>) {
|
|
this.id = '';
|
|
this.name = '';
|
|
this.discount = 0;
|
|
this.limit = 1;
|
|
Object.assign(this, init);
|
|
}
|
|
}
|