Package com.commercetools.api.models.me
Interface MyCompanyDraft
- All Superinterfaces:
CustomizableDraft<MyBusinessUnitDraft>
,Draft<MyCompanyDraft>
,MyBusinessUnitDraft
,WithKey
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.
Example to create an instance using the builder pattern
MyCompanyDraft myCompanyDraft = MyCompanyDraft.builder()
.key("{key}")
.name("{name}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyCompanyDraftBuilder
builder()
builder factory method for MyCompanyDraftstatic MyCompanyDraftBuilder
builder
(MyCompanyDraft template) create builder for MyCompanyDraft instancestatic MyCompanyDraft
deepCopy
(MyCompanyDraft template) factory method to create a deep copy of MyCompanyDraftstatic MyCompanyDraft
of()
factory methodstatic MyCompanyDraft
of
(MyCompanyDraft template) factory method to create a shallow copy MyCompanyDraftstatic com.fasterxml.jackson.core.type.TypeReference<MyCompanyDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyCompanyDraft
(Function<MyCompanyDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface com.commercetools.api.models.me.MyBusinessUnitDraft
getAddresses, getBillingAddresses, getContactEmail, getCustom, getDefaultBillingAddress, getDefaultShippingAddress, getKey, getName, getShippingAddresses, getUnitType, setAddresses, setAddresses, setBillingAddresses, setBillingAddresses, setContactEmail, setCustom, setDefaultBillingAddress, setDefaultShippingAddress, setKey, setName, setShippingAddresses, setShippingAddresses, withMyBusinessUnitDraft
-
Field Details
-
COMPANY
discriminator value for MyCompanyDraft- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of MyCompanyDraft
-
of
factory method to create a shallow copy MyCompanyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyCompanyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCompanyDraft- Returns:
- builder
-
builder
create builder for MyCompanyDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCompanyDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-