Class MyBusinessUnitDraft
java.lang.Object
com.commercetools.graphql.api.types.MyBusinessUnitDraft
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMyBusinessUnitDraft(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) -
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 MyBusinessUnitDraft.BuildervoidsetAddresses(List<AddressInput> addresses) 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) voidsetUnitType(BusinessUnitType unitType) toString()
-
Constructor Details
-
MyBusinessUnitDraft
public MyBusinessUnitDraft() -
MyBusinessUnitDraft
public MyBusinessUnitDraft(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)
-
-
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
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-