2020-07-02 05:07:27 +00:00
|
|
|
import { Model } from '../framework/model';
|
2020-07-01 02:00:42 +00:00
|
|
|
import { DeepPartial } from 'fishery';
|
2020-06-30 20:05:25 +00:00
|
|
|
|
2020-07-01 19:08:08 +00:00
|
|
|
/**
|
|
|
|
* The base class for all product types.
|
|
|
|
*/
|
|
|
|
export abstract class Product extends Model {
|
2020-06-30 20:05:25 +00:00
|
|
|
public readonly Name: string = '';
|
|
|
|
public readonly RegularPrice: string = '';
|
2020-07-01 02:00:42 +00:00
|
|
|
|
2020-07-01 19:08:08 +00:00
|
|
|
protected constructor( partial: DeepPartial<Product> = {} ) {
|
2020-07-01 02:00:42 +00:00
|
|
|
super( partial );
|
|
|
|
Object.assign( this, partial );
|
|
|
|
}
|
2020-06-30 20:05:25 +00:00
|
|
|
}
|