CustomerGroup
CustomerGroup
A grouping of Customers which enables features such as group-based promotions or tax rules.
Signature
class CustomerGroup extends VendureEntity implements HasCustomFields {
constructor(input?: DeepPartial<CustomerGroup>)
@Column() @Column() name: string;
@ManyToMany(type => Customer, customer => customer.groups) @ManyToMany(type => Customer, customer => customer.groups)
customers: Customer[];
@Column(type => CustomCustomerGroupFields) @Column(type => CustomCustomerGroupFields)
customFields: CustomCustomerGroupFields;
}
Extends
Implements
- HasCustomFields
Members
constructor
method
type:
(input?: DeepPartial<CustomerGroup>) => CustomerGroup
name
property
type:
string
customers
property
type:
Customer[]
customFields
property
type:
CustomCustomerGroupFields