woocommerce/tests/e2e/factories/src/models/product.ts

16 lines
371 B
TypeScript
Raw Normal View History

import { Model } from './model';
import { DeepPartial } from 'fishery';
/**
* The base class for all product types.
*/
export abstract class Product extends Model {
public readonly Name: string = '';
public readonly RegularPrice: string = '';
protected constructor( partial: DeepPartial<Product> = {} ) {
super( partial );
Object.assign( this, partial );
}
}