@ commercialtools- test-data/ 客户组
此软件包为商务工具平台提供了数据模型 CustomerGroup 类型
https://docs.com/api/projects/客户集团
安装
$ pnpm add -D @commercetools-test-data/customer-group
使用量
import {
CustomerGroup,
CustomerGroupDraft,
type TCustomerGroup,
type TCustomerGroupDraft,
} from '@commercetools-test-data/customer-group';
const customerGroup = CustomerGroup.random().build<TCustomerGroup>();
const customerGroupDraft =
CustomerGroupDraft.random().build<TCustomerGroupDraft>();