Interface BusinessUnitImport
- All Known Subinterfaces:
CompanyBusinessUnitImport,DivisionBusinessUnitImport
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for company subtypecopyDeep()static BusinessUnitImportdeepCopy(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 theaddressesarray.The contact email address for the Business Unit.@Valid CustomCustom fields for the Business Unit.The index of the default billing address in theaddressesarray.The index of the default shipping address in theaddressesarray.@NotNull StringgetKey()User-defined unique identifier.@NotNull StringgetName()The name of the Business Unit.The indices of the shipping addresses in theaddressesarray.The status of the Business Unit.@Valid List<StoreKeyReference>The Stores of the Business Unit.@NotNull BusinessUnitTypeThe type of Business Unit.voidsetAddresses(Address... addresses) The addresses for the Business Unit.voidsetAddresses(List<Address> addresses) The addresses for the Business Unit.voidsetAssociates(AssociateDraft... associates) List of Associates to be assigned to the Business Unit.voidsetAssociates(List<AssociateDraft> associates) List of Associates to be assigned to the Business Unit.voidsetBillingAddresses(Integer... billingAddresses) The indices of the billing addresses in theaddressesarray.voidsetBillingAddresses(List<Integer> billingAddresses) The indices of the billing addresses in theaddressesarray.voidsetContactEmail(String contactEmail) The contact email address for the Business Unit.voidCustom fields for the Business Unit.voidsetDefaultBillingAddress(Integer defaultBillingAddress) The index of the default billing address in theaddressesarray.voidsetDefaultShippingAddress(Integer defaultShippingAddress) The index of the default shipping address in theaddressesarray.voidUser-defined unique identifier.voidThe name of the Business Unit.voidsetShippingAddresses(Integer... shippingAddresses) The indices of the shipping addresses in theaddressesarray.voidsetShippingAddresses(List<Integer> shippingAddresses) The indices of the shipping addresses in theaddressesarray.voidsetStatus(BusinessUnitStatus status) The status of the Business Unit.voidsetStores(StoreKeyReference... stores) The Stores of the Business Unit.voidsetStores(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> TwithBusinessUnitImport(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
keyexists, 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
addressesarray.- Returns:
- shippingAddresses
-
getDefaultShippingAddress
Integer getDefaultShippingAddress()The index of the default shipping address in the
addressesarray.- Returns:
- defaultShippingAddress
-
getBillingAddresses
The indices of the billing addresses in the
addressesarray.- Returns:
- billingAddresses
-
getDefaultBillingAddress
Integer getDefaultBillingAddress()The index of the default billing address in the
addressesarray.- 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
keyexists, 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
addressesarray.- Parameters:
shippingAddresses- values to be set
-
setShippingAddresses
The indices of the shipping addresses in the
addressesarray.- Parameters:
shippingAddresses- values to be set
-
setDefaultShippingAddress
The index of the default shipping address in the
addressesarray.- Parameters:
defaultShippingAddress- value to be set
-
setBillingAddresses
The indices of the billing addresses in the
addressesarray.- Parameters:
billingAddresses- values to be set
-
setBillingAddresses
The indices of the billing addresses in the
addressesarray.- Parameters:
billingAddresses- values to be set
-
setDefaultBillingAddress
The index of the default billing address in the
addressesarray.- 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
-