Class CustomerGroup
java.lang.Object
com.commercetools.graphql.api.types.CustomerGroup
- All Implemented Interfaces:
ReferenceExpandable,Versioned
A customer can be a member in a customer group (e.g. reseller, gold member). A customer group can be used in price calculations with special prices being assigned to certain customer groups.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomerGroup(String id, Long version, String name, String key, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, CustomFieldsType custom, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getKey()getName()inthashCode()static CustomerGroup.BuildervoidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidvoidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidvoidsetVersion(Long version) toString()
-
Constructor Details
-
CustomerGroup
public CustomerGroup() -
CustomerGroup
public CustomerGroup(String id, Long version, String name, String key, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, CustomFieldsType custom, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceReferenceExpandable- Specified by:
getIdin interfaceVersioned
-
setId
- Specified by:
setIdin interfaceReferenceExpandable- Specified by:
setIdin interfaceVersioned
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getName
-
setName
-
getKey
-
setKey
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getCustom
-
setCustom
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-