Interface CompanyDraft
- All Superinterfaces:
BusinessUnitDraft
,Draft<CompanyDraft>
,WithKey
Draft type to represent the top level of a business. Contains the fields and values of the generic BusinessUnitDraft that are used specifically for creating a Company.
Example to create an instance using the builder pattern
CompanyDraft companyDraft = CompanyDraft.builder()
.key("{key}")
.name("{name}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompanyDraftBuilder
builder()
builder factory method for CompanyDraftstatic CompanyDraftBuilder
builder
(CompanyDraft template) create builder for CompanyDraft instancestatic CompanyDraft
deepCopy
(CompanyDraft template) factory method to create a deep copy of CompanyDraftstatic CompanyDraft
of()
factory methodstatic CompanyDraft
of
(CompanyDraft template) factory method to create a shallow copy CompanyDraftstatic com.fasterxml.jackson.core.type.TypeReference<CompanyDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCompanyDraft
(Function<CompanyDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitDraft
getAddresses, getApprovalRuleMode, getAssociateMode, getAssociates, getBillingAddresses, getContactEmail, getCustom, getDefaultBillingAddress, getDefaultShippingAddress, getKey, getName, getShippingAddresses, getStatus, getStoreMode, getStores, getUnitType, setAddresses, setAddresses, setApprovalRuleMode, setAssociateMode, setAssociates, setAssociates, setBillingAddresses, setBillingAddresses, setContactEmail, setCustom, setDefaultBillingAddress, setDefaultShippingAddress, setKey, setName, setShippingAddresses, setShippingAddresses, setStatus, setStoreMode, setStores, setStores, withBusinessUnitDraft
-
Field Details
-
COMPANY
discriminator value for CompanyDraft- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CompanyDraft
-
of
factory method to create a shallow copy CompanyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CompanyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CompanyDraft- Returns:
- builder
-
builder
create builder for CompanyDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCompanyDraft
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
-