public interface CustomerGroupCreateCommand extends DraftBasedCreateCommandDsl<CustomerGroup,CustomerGroupDraft,CustomerGroupCreateCommand>, MetaModelReferenceExpansionDsl<CustomerGroup,CustomerGroupCreateCommand,CustomerGroupExpansionModel<CustomerGroup>>
final String name = "creation demo customer group name"; final CustomerGroup customerGroup = client().executeBlocking(CustomerGroupCreateCommand.of(name)); assertThat(customerGroup.getName()).isEqualTo(name);See the test code.
CustomerGroupDraft,
CustomerGroup| Modifier and Type | Method and Description |
|---|---|
static CustomerGroupCreateCommand |
of(CustomerGroupDraft draft)
Creates a command object to create a
CustomerGroup. |
static CustomerGroupCreateCommand |
of(String groupName) |
getDraft, withDraftcanDeserialize, deserialize, httpRequestIntentplusExpansionPaths, withExpansionPathsplusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPathsexpansionPathsstatic CustomerGroupCreateCommand of(CustomerGroupDraft draft)
CustomerGroup.draft - template to create the new objectstatic CustomerGroupCreateCommand of(String groupName)