Class BusinessUnit
java.lang.Object
com.commercetools.graphql.api.types.BusinessUnit
- All Implemented Interfaces:
Versioned
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBusinessUnit(String key, String name, String contactEmail, List<Address> addresses, Address defaultShippingAddress, Address defaultBillingAddress, String defaultShippingAddressId, String defaultBillingAddressId, List<Address> shippingAddresses, List<Address> billingAddresses, List<String> shippingAddressIds, List<String> billingAddressIds, BusinessUnitStatus status, List<KeyReference> storesRef, List<Store> stores, String storeMode, BusinessUnitType unitType, List<Associate> associates, BusinessUnitAssociateMode associateMode, List<InheritedAssociate> inheritedAssociates, CustomFieldsType custom, KeyReference parentUnitRef, BusinessUnit parentUnit, List<BusinessUnit> ancestors, List<InheritedStore> inheritedStores, KeyReference topLevelUnitRef, BusinessUnit topLevelUnit, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis field contains the BusinessUnits KeyReferences from the Company to the parent Division of this BusinessUnit in that order.getId()This field contains the inherited stores from its parentUnit if storeMode is set to FromParent.getKey()getName()inthashCode()static BusinessUnit.BuildervoidsetAddresses(List<Address> addresses) voidsetAncestors(List<BusinessUnit> ancestors) voidsetAssociateMode(BusinessUnitAssociateMode associateMode) voidsetAssociates(List<Associate> associates) voidsetBillingAddresses(List<Address> billingAddresses) voidsetBillingAddressIds(List<String> billingAddressIds) voidsetContactEmail(String contactEmail) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetDefaultBillingAddress(Address defaultBillingAddress) voidsetDefaultBillingAddressId(String defaultBillingAddressId) voidsetDefaultShippingAddress(Address defaultShippingAddress) voidsetDefaultShippingAddressId(String defaultShippingAddressId) voidvoidsetInheritedAssociates(List<InheritedAssociate> inheritedAssociates) voidsetInheritedStores(List<InheritedStore> inheritedStores) voidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidvoidsetParentUnit(BusinessUnit parentUnit) voidsetParentUnitRef(KeyReference parentUnitRef) voidsetShippingAddresses(List<Address> shippingAddresses) voidsetShippingAddressIds(List<String> shippingAddressIds) voidsetStatus(BusinessUnitStatus status) voidsetStoreMode(String storeMode) voidvoidsetStoresRef(List<KeyReference> storesRef) voidsetTopLevelUnit(BusinessUnit topLevelUnit) voidsetTopLevelUnitRef(KeyReference topLevelUnitRef) voidsetUnitType(BusinessUnitType unitType) voidsetVersion(Long version) toString()
-
Constructor Details
-
BusinessUnit
public BusinessUnit() -
BusinessUnit
public BusinessUnit(String key, String name, String contactEmail, List<Address> addresses, Address defaultShippingAddress, Address defaultBillingAddress, String defaultShippingAddressId, String defaultBillingAddressId, List<Address> shippingAddresses, List<Address> billingAddresses, List<String> shippingAddressIds, List<String> billingAddressIds, BusinessUnitStatus status, List<KeyReference> storesRef, List<Store> stores, String storeMode, BusinessUnitType unitType, List<Associate> associates, BusinessUnitAssociateMode associateMode, List<InheritedAssociate> inheritedAssociates, CustomFieldsType custom, KeyReference parentUnitRef, BusinessUnit parentUnit, List<BusinessUnit> ancestors, List<InheritedStore> inheritedStores, KeyReference topLevelUnitRef, BusinessUnit topLevelUnit, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getKey
-
setKey
-
getName
-
setName
-
getContactEmail
-
setContactEmail
-
getAddresses
-
setAddresses
-
getDefaultShippingAddress
-
setDefaultShippingAddress
-
getDefaultBillingAddress
-
setDefaultBillingAddress
-
getDefaultShippingAddressId
-
setDefaultShippingAddressId
-
getDefaultBillingAddressId
-
setDefaultBillingAddressId
-
getShippingAddresses
-
setShippingAddresses
-
getBillingAddresses
-
setBillingAddresses
-
getShippingAddressIds
-
setShippingAddressIds
-
getBillingAddressIds
-
setBillingAddressIds
-
getStatus
-
setStatus
-
getStoresRef
-
setStoresRef
-
getStores
-
setStores
-
getStoreMode
-
setStoreMode
-
getUnitType
-
setUnitType
-
getAssociates
-
setAssociates
-
getAssociateMode
-
setAssociateMode
-
getInheritedAssociates
-
setInheritedAssociates
-
getCustom
-
setCustom
-
getParentUnitRef
-
setParentUnitRef
-
getParentUnit
-
setParentUnit
-
getAncestors
This field contains the BusinessUnits KeyReferences from the Company to the parent Division of this BusinessUnit in that order. -
setAncestors
-
getInheritedStores
This field contains the inherited stores from its parentUnit if storeMode is set to FromParent. -
setInheritedStores
-
getTopLevelUnitRef
-
setTopLevelUnitRef
-
getTopLevelUnit
-
setTopLevelUnit
-
getId
-
setId
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
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
-