Class DivisionImpl
- All Implemented Interfaces:
BusinessUnit
,Division
,BaseResource
,WithKey
,io.vrap.rmf.base.client.ModelBase
Business Unit type to model divisions that are part of the Company or a higher-order Division. Contains specific fields and values that differentiate a Division from the generic BusinessUnit.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Addresses used by the Business Unit.Determines whether the Division can inherit Associates from a parent.Associates that are part of the Business Unit in specific roles.Unique identifiers of addresses used as billing addresses.Email address of the Business Unit.Date and time (UTC) the Business Unit was initially created.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields for the Business Unit.Unique identifier of the address used as the default billing address.Unique identifier of the address used as the default shipping address.getId()
Unique identifier of the Business Unit.Associates that are inherited from a parent Business Unit.getKey()
User-defined unique identifier of the Business Unit.Date and time (UTC) the Business Unit was last updated.Present on resources updated after 1 February 2019 except for events not tracked.getName()
Name of the Business Unit.Parent unit of the Division.Unique identifiers of addresses used as shipping addresses.Indicates whether the Business Unit can be edited and used in Orders.Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.References to Stores the Business Unit is associated with.Top-level unit of the Business Unit.Type of the Business Unit indicating its position in a hierarchy.Current version of the Business Unit.int
hashCode()
void
setAddresses
(Address... addresses) Addresses used by the Business Unit.void
setAddresses
(List<Address> addresses) Addresses used by the Business Unit.void
setAssociateMode
(BusinessUnitAssociateMode associateMode) Determines whether the Division can inherit Associates from a parent.void
setAssociates
(Associate... associates) Associates that are part of the Business Unit in specific roles.void
setAssociates
(List<Associate> associates) Associates that are part of the Business Unit in specific roles.void
setBillingAddressIds
(String... billingAddressIds) Unique identifiers of addresses used as billing addresses.void
setBillingAddressIds
(List<String> billingAddressIds) Unique identifiers of addresses used as billing addresses.void
setContactEmail
(String contactEmail) Email address of the Business Unit.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Business Unit was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields for the Business Unit.void
setDefaultBillingAddressId
(String defaultBillingAddressId) Unique identifier of the address used as the default billing address.void
setDefaultShippingAddressId
(String defaultShippingAddressId) Unique identifier of the address used as the default shipping address.void
Unique identifier of the Business Unit.void
setInheritedAssociates
(InheritedAssociate... inheritedAssociates) Associates that are inherited from a parent Business Unit.void
setInheritedAssociates
(List<InheritedAssociate> inheritedAssociates) Associates that are inherited from a parent Business Unit.void
User-defined unique identifier of the Business Unit.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Business Unit was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources updated after 1 February 2019 except for events not tracked.void
Name of the Business Unit.void
setParentUnit
(BusinessUnitKeyReference parentUnit) Parent unit of the Division.void
setShippingAddressIds
(String... shippingAddressIds) Unique identifiers of addresses used as shipping addresses.void
setShippingAddressIds
(List<String> shippingAddressIds) Unique identifiers of addresses used as shipping addresses.void
setStatus
(BusinessUnitStatus status) Indicates whether the Business Unit can be edited and used in Orders.void
setStoreMode
(BusinessUnitStoreMode storeMode) Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.void
setStores
(StoreKeyReference... stores) References to Stores the Business Unit is associated with.void
setStores
(List<StoreKeyReference> stores) References to Stores the Business Unit is associated with.void
setTopLevelUnit
(BusinessUnitKeyReference topLevelUnit) Top-level unit of the Business Unit.void
setVersion
(Long version) Current version of the Business Unit.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.business_unit.BusinessUnit
withBusinessUnit
Methods inherited from interface com.commercetools.api.models.business_unit.Division
withDivision
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
DivisionImpl
public DivisionImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Business Unit.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceBusinessUnit
- Returns:
- id
-
getVersion
Current version of the Business Unit.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceBusinessUnit
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Business Unit was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceBusinessUnit
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Business Unit was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceBusinessUnit
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources updated after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceBusinessUnit
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceBusinessUnit
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the Business Unit.
- Specified by:
getKey
in interfaceBusinessUnit
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getStatus
Indicates whether the Business Unit can be edited and used in Orders.
- Specified by:
getStatus
in interfaceBusinessUnit
- Returns:
- status
-
getStores
References to Stores the Business Unit is associated with. Only present when
storeMode
isExplicit
.If the Business Unit has Stores defined, then all of its Carts, Orders, Quotes, or Quote Requests must belong to one of the Business Unit's Stores.
If the Business Unit has no Stores, then all of its Carts, Orders, Quotes, or Quote Requests must not belong to any Store.
- Specified by:
getStores
in interfaceBusinessUnit
- Returns:
- stores
-
getStoreMode
Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.
- Specified by:
getStoreMode
in interfaceBusinessUnit
- Specified by:
getStoreMode
in interfaceDivision
- Returns:
- storeMode
-
getUnitType
Type of the Business Unit indicating its position in a hierarchy.
- Specified by:
getUnitType
in interfaceBusinessUnit
- Returns:
- unitType
-
getName
Name of the Business Unit.
- Specified by:
getName
in interfaceBusinessUnit
- Returns:
- name
-
getContactEmail
Email address of the Business Unit.
- Specified by:
getContactEmail
in interfaceBusinessUnit
- Returns:
- contactEmail
-
getCustom
Custom Fields for the Business Unit.
- Specified by:
getCustom
in interfaceBusinessUnit
- Returns:
- custom
-
getAddresses
Addresses used by the Business Unit.
- Specified by:
getAddresses
in interfaceBusinessUnit
- Returns:
- addresses
-
getShippingAddressIds
Unique identifiers of addresses used as shipping addresses.
- Specified by:
getShippingAddressIds
in interfaceBusinessUnit
- Returns:
- shippingAddressIds
-
getDefaultShippingAddressId
Unique identifier of the address used as the default shipping address.
- Specified by:
getDefaultShippingAddressId
in interfaceBusinessUnit
- Returns:
- defaultShippingAddressId
-
getBillingAddressIds
Unique identifiers of addresses used as billing addresses.
- Specified by:
getBillingAddressIds
in interfaceBusinessUnit
- Returns:
- billingAddressIds
-
getDefaultBillingAddressId
Unique identifier of the address used as the default billing address.
- Specified by:
getDefaultBillingAddressId
in interfaceBusinessUnit
- Returns:
- defaultBillingAddressId
-
getAssociateMode
Determines whether the Division can inherit Associates from a parent.
- Specified by:
getAssociateMode
in interfaceBusinessUnit
- Specified by:
getAssociateMode
in interfaceDivision
- Returns:
- associateMode
-
getAssociates
Associates that are part of the Business Unit in specific roles.
- Specified by:
getAssociates
in interfaceBusinessUnit
- Returns:
- associates
-
getInheritedAssociates
Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the
associateMode
is set toExplicitAndFromParent
.- Specified by:
getInheritedAssociates
in interfaceBusinessUnit
- Returns:
- inheritedAssociates
-
getParentUnit
Parent unit of the Division.
- Specified by:
getParentUnit
in interfaceBusinessUnit
- Specified by:
getParentUnit
in interfaceDivision
- Returns:
- parentUnit
-
getTopLevelUnit
Top-level unit of the Business Unit. The top-level unit is of
unitType
Company
.- Specified by:
getTopLevelUnit
in interfaceBusinessUnit
- Returns:
- topLevelUnit
-
setId
Description copied from interface:BusinessUnit
Unique identifier of the Business Unit.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceBusinessUnit
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:BusinessUnit
Current version of the Business Unit.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceBusinessUnit
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:BusinessUnit
Date and time (UTC) the Business Unit was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceBusinessUnit
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:BusinessUnit
Date and time (UTC) the Business Unit was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceBusinessUnit
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:BusinessUnit
Present on resources updated after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceBusinessUnit
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:BusinessUnit
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceBusinessUnit
- Parameters:
createdBy
- value to be set
-
setKey
Description copied from interface:BusinessUnit
User-defined unique identifier of the Business Unit.
- Specified by:
setKey
in interfaceBusinessUnit
- Parameters:
key
- value to be set
-
setStatus
Description copied from interface:BusinessUnit
Indicates whether the Business Unit can be edited and used in Orders.
- Specified by:
setStatus
in interfaceBusinessUnit
- Parameters:
status
- value to be set
-
setStores
Description copied from interface:BusinessUnit
References to Stores the Business Unit is associated with. Only present when
storeMode
isExplicit
.If the Business Unit has Stores defined, then all of its Carts, Orders, Quotes, or Quote Requests must belong to one of the Business Unit's Stores.
If the Business Unit has no Stores, then all of its Carts, Orders, Quotes, or Quote Requests must not belong to any Store.
- Specified by:
setStores
in interfaceBusinessUnit
- Parameters:
stores
- values to be set
-
setStores
Description copied from interface:BusinessUnit
References to Stores the Business Unit is associated with. Only present when
storeMode
isExplicit
.If the Business Unit has Stores defined, then all of its Carts, Orders, Quotes, or Quote Requests must belong to one of the Business Unit's Stores.
If the Business Unit has no Stores, then all of its Carts, Orders, Quotes, or Quote Requests must not belong to any Store.
- Specified by:
setStores
in interfaceBusinessUnit
- Parameters:
stores
- values to be set
-
setStoreMode
Description copied from interface:Division
Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.
- Specified by:
setStoreMode
in interfaceBusinessUnit
- Specified by:
setStoreMode
in interfaceDivision
- Parameters:
storeMode
- value to be set
-
setName
Description copied from interface:BusinessUnit
Name of the Business Unit.
- Specified by:
setName
in interfaceBusinessUnit
- Parameters:
name
- value to be set
-
setContactEmail
Description copied from interface:BusinessUnit
Email address of the Business Unit.
- Specified by:
setContactEmail
in interfaceBusinessUnit
- Parameters:
contactEmail
- value to be set
-
setCustom
Description copied from interface:BusinessUnit
Custom Fields for the Business Unit.
- Specified by:
setCustom
in interfaceBusinessUnit
- Parameters:
custom
- value to be set
-
setAddresses
Description copied from interface:BusinessUnit
Addresses used by the Business Unit.
- Specified by:
setAddresses
in interfaceBusinessUnit
- Parameters:
addresses
- values to be set
-
setAddresses
Description copied from interface:BusinessUnit
Addresses used by the Business Unit.
- Specified by:
setAddresses
in interfaceBusinessUnit
- Parameters:
addresses
- values to be set
-
setShippingAddressIds
Description copied from interface:BusinessUnit
Unique identifiers of addresses used as shipping addresses.
- Specified by:
setShippingAddressIds
in interfaceBusinessUnit
- Parameters:
shippingAddressIds
- values to be set
-
setShippingAddressIds
Description copied from interface:BusinessUnit
Unique identifiers of addresses used as shipping addresses.
- Specified by:
setShippingAddressIds
in interfaceBusinessUnit
- Parameters:
shippingAddressIds
- values to be set
-
setDefaultShippingAddressId
Description copied from interface:BusinessUnit
Unique identifier of the address used as the default shipping address.
- Specified by:
setDefaultShippingAddressId
in interfaceBusinessUnit
- Parameters:
defaultShippingAddressId
- value to be set
-
setBillingAddressIds
Description copied from interface:BusinessUnit
Unique identifiers of addresses used as billing addresses.
- Specified by:
setBillingAddressIds
in interfaceBusinessUnit
- Parameters:
billingAddressIds
- values to be set
-
setBillingAddressIds
Description copied from interface:BusinessUnit
Unique identifiers of addresses used as billing addresses.
- Specified by:
setBillingAddressIds
in interfaceBusinessUnit
- Parameters:
billingAddressIds
- values to be set
-
setDefaultBillingAddressId
Description copied from interface:BusinessUnit
Unique identifier of the address used as the default billing address.
- Specified by:
setDefaultBillingAddressId
in interfaceBusinessUnit
- Parameters:
defaultBillingAddressId
- value to be set
-
setAssociateMode
Description copied from interface:Division
Determines whether the Division can inherit Associates from a parent.
- Specified by:
setAssociateMode
in interfaceBusinessUnit
- Specified by:
setAssociateMode
in interfaceDivision
- Parameters:
associateMode
- value to be set
-
setAssociates
Description copied from interface:BusinessUnit
Associates that are part of the Business Unit in specific roles.
- Specified by:
setAssociates
in interfaceBusinessUnit
- Parameters:
associates
- values to be set
-
setAssociates
Description copied from interface:BusinessUnit
Associates that are part of the Business Unit in specific roles.
- Specified by:
setAssociates
in interfaceBusinessUnit
- Parameters:
associates
- values to be set
-
setInheritedAssociates
Description copied from interface:BusinessUnit
Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the
associateMode
is set toExplicitAndFromParent
.- Specified by:
setInheritedAssociates
in interfaceBusinessUnit
- Parameters:
inheritedAssociates
- values to be set
-
setInheritedAssociates
Description copied from interface:BusinessUnit
Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the
associateMode
is set toExplicitAndFromParent
.- Specified by:
setInheritedAssociates
in interfaceBusinessUnit
- Parameters:
inheritedAssociates
- values to be set
-
setParentUnit
Description copied from interface:Division
Parent unit of the Division.
- Specified by:
setParentUnit
in interfaceBusinessUnit
- Specified by:
setParentUnit
in interfaceDivision
- Parameters:
parentUnit
- value to be set
-
setTopLevelUnit
Description copied from interface:BusinessUnit
Top-level unit of the Business Unit. The top-level unit is of
unitType
Company
.- Specified by:
setTopLevelUnit
in interfaceBusinessUnit
- Parameters:
topLevelUnit
- value to be set
-
equals
-
hashCode
public int hashCode()
-