Class MyCompanyDraftImpl
- All Implemented Interfaces:
Customizable<MyBusinessUnitDraft>
,MyBusinessUnitDraft
,MyCompanyDraft
,WithKey
,io.vrap.rmf.base.client.Draft<MyCompanyDraft>
,io.vrap.rmf.base.client.ModelBase
Draft type to represent the top level of a business. Contains the fields and values of the generic MyBusinessUnitDraft that are used specifically for creating a Company.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.me.MyCompanyDraft
COMPANY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Addresses used by the Business Unit.Indexes of entries inaddresses
to set as billing addresses.Email address of the Business Unit.Custom Fields for the Business Unit.Index of the entry inaddresses
to set as the default billing address.Index of the entry inaddresses
to set as the default shipping address.getKey()
User-defined unique identifier for the BusinessUnit.getName()
Name of the Business Unit.Indexes of entries inaddresses
to set as shipping addresses.Type of the Business Unit indicating its position in a hierarchy.int
hashCode()
void
setAddresses
(BaseAddress... addresses) Addresses used by the Business Unit.void
setAddresses
(List<BaseAddress> addresses) Addresses used by the Business Unit.void
setBillingAddresses
(Integer... billingAddresses) Indexes of entries inaddresses
to set as billing addresses.void
setBillingAddresses
(List<Integer> billingAddresses) Indexes of entries inaddresses
to set as billing addresses.void
setContactEmail
(String contactEmail) Email address of the Business Unit.void
setCustom
(CustomFields custom) Custom Fields for the Business Unit.void
setDefaultBillingAddress
(Integer defaultBillingAddress) Index of the entry inaddresses
to set as the default billing address.void
setDefaultShippingAddress
(Integer defaultShippingAddress) Index of the entry inaddresses
to set as the default shipping address.void
User-defined unique identifier for the BusinessUnit.void
Name of the Business Unit.void
setShippingAddresses
(Integer... shippingAddresses) Indexes of entries inaddresses
to set as shipping addresses.void
setShippingAddresses
(List<Integer> shippingAddresses) Indexes of entries inaddresses
to set as shipping addresses.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyBusinessUnitDraft
withMyBusinessUnitDraft
Methods inherited from interface com.commercetools.api.models.me.MyCompanyDraft
withMyCompanyDraft
-
Constructor Details
-
MyCompanyDraftImpl
public MyCompanyDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the BusinessUnit.
- Specified by:
getKey
in interfaceMyBusinessUnitDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getUnitType
Type of the Business Unit indicating its position in a hierarchy.
- Specified by:
getUnitType
in interfaceMyBusinessUnitDraft
- Returns:
- unitType
-
getName
Name of the Business Unit.
- Specified by:
getName
in interfaceMyBusinessUnitDraft
- Returns:
- name
-
getContactEmail
Email address of the Business Unit.
- Specified by:
getContactEmail
in interfaceMyBusinessUnitDraft
- Returns:
- contactEmail
-
getCustom
Custom Fields for the Business Unit.
- Specified by:
getCustom
in interfaceCustomizable<MyBusinessUnitDraft>
- Specified by:
getCustom
in interfaceMyBusinessUnitDraft
- Returns:
- custom
-
getAddresses
Addresses used by the Business Unit.
- Specified by:
getAddresses
in interfaceMyBusinessUnitDraft
- Returns:
- addresses
-
getShippingAddresses
Indexes of entries in
addresses
to set as shipping addresses. TheshippingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
getShippingAddresses
in interfaceMyBusinessUnitDraft
- Returns:
- shippingAddresses
-
getDefaultShippingAddress
Index of the entry in
addresses
to set as the default shipping address.- Specified by:
getDefaultShippingAddress
in interfaceMyBusinessUnitDraft
- Returns:
- defaultShippingAddress
-
getBillingAddresses
Indexes of entries in
addresses
to set as billing addresses. ThebillingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
getBillingAddresses
in interfaceMyBusinessUnitDraft
- Returns:
- billingAddresses
-
getDefaultBillingAddress
Index of the entry in
addresses
to set as the default billing address.- Specified by:
getDefaultBillingAddress
in interfaceMyBusinessUnitDraft
- Returns:
- defaultBillingAddress
-
setKey
Description copied from interface:MyBusinessUnitDraft
User-defined unique identifier for the BusinessUnit.
- Specified by:
setKey
in interfaceMyBusinessUnitDraft
- Parameters:
key
- value to be set
-
setName
Description copied from interface:MyBusinessUnitDraft
Name of the Business Unit.
- Specified by:
setName
in interfaceMyBusinessUnitDraft
- Parameters:
name
- value to be set
-
setContactEmail
Description copied from interface:MyBusinessUnitDraft
Email address of the Business Unit.
- Specified by:
setContactEmail
in interfaceMyBusinessUnitDraft
- Parameters:
contactEmail
- value to be set
-
setCustom
Description copied from interface:MyBusinessUnitDraft
Custom Fields for the Business Unit.
- Specified by:
setCustom
in interfaceCustomizable<MyBusinessUnitDraft>
- Specified by:
setCustom
in interfaceMyBusinessUnitDraft
- Parameters:
custom
- value to be set
-
setAddresses
Description copied from interface:MyBusinessUnitDraft
Addresses used by the Business Unit.
- Specified by:
setAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
addresses
- values to be set
-
setAddresses
Description copied from interface:MyBusinessUnitDraft
Addresses used by the Business Unit.
- Specified by:
setAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
addresses
- values to be set
-
setShippingAddresses
Description copied from interface:MyBusinessUnitDraft
Indexes of entries in
addresses
to set as shipping addresses. TheshippingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
setShippingAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
shippingAddresses
- values to be set
-
setShippingAddresses
Description copied from interface:MyBusinessUnitDraft
Indexes of entries in
addresses
to set as shipping addresses. TheshippingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
setShippingAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
shippingAddresses
- values to be set
-
setDefaultShippingAddress
Description copied from interface:MyBusinessUnitDraft
Index of the entry in
addresses
to set as the default shipping address.- Specified by:
setDefaultShippingAddress
in interfaceMyBusinessUnitDraft
- Parameters:
defaultShippingAddress
- value to be set
-
setBillingAddresses
Description copied from interface:MyBusinessUnitDraft
Indexes of entries in
addresses
to set as billing addresses. ThebillingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
setBillingAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
billingAddresses
- values to be set
-
setBillingAddresses
Description copied from interface:MyBusinessUnitDraft
Indexes of entries in
addresses
to set as billing addresses. ThebillingAddressIds
of the Customer will be replaced by these addresses.- Specified by:
setBillingAddresses
in interfaceMyBusinessUnitDraft
- Parameters:
billingAddresses
- values to be set
-
setDefaultBillingAddress
Description copied from interface:MyBusinessUnitDraft
Index of the entry in
addresses
to set as the default billing address.- Specified by:
setDefaultBillingAddress
in interfaceMyBusinessUnitDraft
- Parameters:
defaultBillingAddress
- value to be set
-
equals
-
hashCode
-