Class BusinessUnitDraft
java.lang.Object
com.commercetools.graphql.api.types.BusinessUnitDraft
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBusinessUnitDraft(String key, String name, String contactEmail, List<AddressInput> addresses, Integer defaultBillingAddress, Integer defaultShippingAddress, List<Integer> shippingAddresses, List<Integer> billingAddresses, CustomFieldsDraft custom, BusinessUnitType unitType, String storeMode, ResourceIdentifierInput parentUnit, List<ResourceIdentifierInput> stores, List<AssociateDraft> associates, BusinessUnitAssociateMode associateMode) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe indices of the billing addresses in the `addresses` list.The index of the address in the `addresses` list.The index of the address in the `addresses` list.getKey()getName()The indices of the shipping addresses in the `addresses` list.inthashCode()static BusinessUnitDraft.BuildervoidsetAddresses(List<AddressInput> addresses) voidsetAssociateMode(BusinessUnitAssociateMode associateMode) voidsetAssociates(List<AssociateDraft> associates) voidsetBillingAddresses(List<Integer> billingAddresses) voidsetContactEmail(String contactEmail) voidsetCustom(CustomFieldsDraft custom) voidsetDefaultBillingAddress(Integer defaultBillingAddress) voidsetDefaultShippingAddress(Integer defaultShippingAddress) voidvoidvoidsetParentUnit(ResourceIdentifierInput parentUnit) voidsetShippingAddresses(List<Integer> shippingAddresses) voidsetStoreMode(String storeMode) voidsetStores(List<ResourceIdentifierInput> stores) voidsetUnitType(BusinessUnitType unitType) toString()
-
Constructor Details
-
BusinessUnitDraft
public BusinessUnitDraft() -
BusinessUnitDraft
public BusinessUnitDraft(String key, String name, String contactEmail, List<AddressInput> addresses, Integer defaultBillingAddress, Integer defaultShippingAddress, List<Integer> shippingAddresses, List<Integer> billingAddresses, CustomFieldsDraft custom, BusinessUnitType unitType, String storeMode, ResourceIdentifierInput parentUnit, List<ResourceIdentifierInput> stores, List<AssociateDraft> associates, BusinessUnitAssociateMode associateMode)
-
-
Method Details
-
getKey
-
setKey
-
getName
-
setName
-
getContactEmail
-
setContactEmail
-
getAddresses
-
setAddresses
-
getDefaultBillingAddress
The index of the address in the `addresses` list. The `defaultBillingAddressId` of the customer will be set to the ID of that address. -
setDefaultBillingAddress
-
getDefaultShippingAddress
The index of the address in the `addresses` list. The `defaultShippingAddressId` of the customer will be set to the ID of that address. -
setDefaultShippingAddress
-
getShippingAddresses
The indices of the shipping addresses in the `addresses` list. The `shippingAddressIds` of the `Customer` will be set to the IDs of that addresses. -
setShippingAddresses
-
getBillingAddresses
The indices of the billing addresses in the `addresses` list. The `billingAddressIds` of the customer will be set to the IDs of that addresses. -
setBillingAddresses
-
getCustom
-
setCustom
-
getUnitType
-
setUnitType
-
getStoreMode
-
setStoreMode
-
getParentUnit
-
setParentUnit
-
getStores
-
setStores
-
getAssociates
-
setAssociates
-
getAssociateMode
-
setAssociateMode
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-