Class BusinessUnitDraft.Builder
java.lang.Object
com.commercetools.graphql.api.types.BusinessUnitDraft.Builder
- Enclosing class:
- BusinessUnitDraft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddresses(List<AddressInput> addresses) associateMode(BusinessUnitAssociateMode associateMode) associates(List<AssociateDraft> associates) billingAddresses(List<Integer> billingAddresses) The indices of the billing addresses in the `addresses` list.build()contactEmail(String contactEmail) custom(CustomFieldsDraft custom) defaultBillingAddress(Integer defaultBillingAddress) The index of the address in the `addresses` list.defaultShippingAddress(Integer defaultShippingAddress) The index of the address in the `addresses` list.parentUnit(ResourceIdentifierInput parentUnit) shippingAddresses(List<Integer> shippingAddresses) The indices of the shipping addresses in the `addresses` list.stores(List<ResourceIdentifierInput> stores) unitType(BusinessUnitType unitType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
key
-
name
-
contactEmail
-
addresses
-
defaultBillingAddress
The index of the address in the `addresses` list. The `defaultBillingAddressId` of the customer will be set to the ID of that address. -
defaultShippingAddress
The index of the address in the `addresses` list. The `defaultShippingAddressId` of the customer will be set to the ID of that address. -
shippingAddresses
The indices of the shipping addresses in the `addresses` list. The `shippingAddressIds` of the `Customer` will be set to the IDs of that addresses. -
billingAddresses
The indices of the billing addresses in the `addresses` list. The `billingAddressIds` of the customer will be set to the IDs of that addresses. -
custom
-
unitType
-
storeMode
-
parentUnit
-
stores
-
associates
-
associateMode
-