Interface BusinessUnitImport
- All Known Subinterfaces:
CompanyBusinessUnitImport
,DivisionBusinessUnitImport
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for company subtypecopyDeep()
static BusinessUnitImport
deepCopy
(BusinessUnitImport template) factory method to create a deep copy of BusinessUnitImportbuilder for division subtypeThe addresses for the Business Unit.@Valid List<AssociateDraft>
List of Associates to be assigned to the Business Unit.The indices of the billing addresses in theaddresses
array.The contact email address for the Business Unit.@Valid Custom
Custom fields for the Business Unit.The index of the default billing address in theaddresses
array.The index of the default shipping address in theaddresses
array.@NotNull String
getKey()
User-defined unique identifier.@NotNull String
getName()
The name of the Business Unit.The indices of the shipping addresses in theaddresses
array.The status of the Business Unit.@Valid List<StoreKeyReference>
The Stores of the Business Unit.@NotNull BusinessUnitType
The type of Business Unit.void
setAddresses
(Address... addresses) The addresses for the Business Unit.void
setAddresses
(List<Address> addresses) The addresses for the Business Unit.void
setAssociates
(AssociateDraft... associates) List of Associates to be assigned to the Business Unit.void
setAssociates
(List<AssociateDraft> associates) List of Associates to be assigned to the Business Unit.void
setBillingAddresses
(Integer... billingAddresses) The indices of the billing addresses in theaddresses
array.void
setBillingAddresses
(List<Integer> billingAddresses) The indices of the billing addresses in theaddresses
array.void
setContactEmail
(String contactEmail) The contact email address for the Business Unit.void
Custom fields for the Business Unit.void
setDefaultBillingAddress
(Integer defaultBillingAddress) The index of the default billing address in theaddresses
array.void
setDefaultShippingAddress
(Integer defaultShippingAddress) The index of the default shipping address in theaddresses
array.void
User-defined unique identifier.void
The name of the Business Unit.void
setShippingAddresses
(Integer... shippingAddresses) The indices of the shipping addresses in theaddresses
array.void
setShippingAddresses
(List<Integer> shippingAddresses) The indices of the shipping addresses in theaddresses
array.void
setStatus
(BusinessUnitStatus status) The status of the Business Unit.void
setStores
(StoreKeyReference... stores) The Stores of the Business Unit.void
setStores
(List<StoreKeyReference> stores) The Stores of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitImport
(Function<BusinessUnitImport, T> helper) accessor map function
-
Method Details
-
getUnitType
The type of Business Unit.
- Returns:
- unitType
-
getKey
User-defined unique identifier. If a BusinessUnit with this
key
exists, it is updated with the imported data.- Returns:
- key
-
getName
The name of the Business Unit.
- Returns:
- name
-
getStatus
BusinessUnitStatus getStatus()The status of the Business Unit.
- Returns:
- status
-
getContactEmail
String getContactEmail()The contact email address for the Business Unit.
- Returns:
- contactEmail
-
getAssociates
List of Associates to be assigned to the Business Unit.
- Returns:
- associates
-
getAddresses
The addresses for the Business Unit.
- Returns:
- addresses
-
getShippingAddresses
The indices of the shipping addresses in the
addresses
array.- Returns:
- shippingAddresses
-
getDefaultShippingAddress
Integer getDefaultShippingAddress()The index of the default shipping address in the
addresses
array.- Returns:
- defaultShippingAddress
-
getBillingAddresses
The indices of the billing addresses in the
addresses
array.- Returns:
- billingAddresses
-
getDefaultBillingAddress
Integer getDefaultBillingAddress()The index of the default billing address in the
addresses
array.- Returns:
- defaultBillingAddress
-
getStores
The Stores of the Business Unit.
- Returns:
- stores
-
getCustom
Custom fields for the Business Unit.
- Returns:
- custom
-
setKey
User-defined unique identifier. If a BusinessUnit with this
key
exists, it is updated with the imported data.- Parameters:
key
- value to be set
-
setName
The name of the Business Unit.
- Parameters:
name
- value to be set
-
setStatus
The status of the Business Unit.
- Parameters:
status
- value to be set
-
setContactEmail
The contact email address for the Business Unit.
- Parameters:
contactEmail
- value to be set
-
setAssociates
List of Associates to be assigned to the Business Unit.
- Parameters:
associates
- values to be set
-
setAssociates
List of Associates to be assigned to the Business Unit.
- Parameters:
associates
- values to be set
-
setAddresses
The addresses for the Business Unit.
- Parameters:
addresses
- values to be set
-
setAddresses
The addresses for the Business Unit.
- Parameters:
addresses
- values to be set
-
setShippingAddresses
The indices of the shipping addresses in the
addresses
array.- Parameters:
shippingAddresses
- values to be set
-
setShippingAddresses
The indices of the shipping addresses in the
addresses
array.- Parameters:
shippingAddresses
- values to be set
-
setDefaultShippingAddress
The index of the default shipping address in the
addresses
array.- Parameters:
defaultShippingAddress
- value to be set
-
setBillingAddresses
The indices of the billing addresses in the
addresses
array.- Parameters:
billingAddresses
- values to be set
-
setBillingAddresses
The indices of the billing addresses in the
addresses
array.- Parameters:
billingAddresses
- values to be set
-
setDefaultBillingAddress
The index of the default billing address in the
addresses
array.- Parameters:
defaultBillingAddress
- value to be set
-
setStores
The Stores of the Business Unit.
- Parameters:
stores
- values to be set
-
setStores
The Stores of the Business Unit.
- Parameters:
stores
- values to be set
-
setCustom
Custom fields for the Business Unit.
- Parameters:
custom
- value to be set
-
copyDeep
BusinessUnitImport copyDeep() -
deepCopy
factory method to create a deep copy of BusinessUnitImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
companyBuilder
builder for company subtype- Returns:
- builder
-
divisionBuilder
builder for division subtype- Returns:
- builder
-
withBusinessUnitImport
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
-