Class MyBusinessUnitDraft

java.lang.Object
com.commercetools.graphql.api.types.MyBusinessUnitDraft

public class MyBusinessUnitDraft extends Object
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getContactEmail

      public String getContactEmail()
    • setContactEmail

      public void setContactEmail(String contactEmail)
    • getAddresses

      public List<AddressInput> getAddresses()
    • setAddresses

      public void setAddresses(List<AddressInput> addresses)
    • getDefaultBillingAddress

      public Integer 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

      public void setDefaultBillingAddress(Integer defaultBillingAddress)
    • getDefaultShippingAddress

      public Integer 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

      public void setDefaultShippingAddress(Integer defaultShippingAddress)
    • getShippingAddresses

      public List<Integer> 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

      public void setShippingAddresses(List<Integer> shippingAddresses)
    • getBillingAddresses

      public List<Integer> 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

      public void setBillingAddresses(List<Integer> billingAddresses)
    • getCustom

      public CustomFieldsDraft getCustom()
    • setCustom

      public void setCustom(CustomFieldsDraft custom)
    • getUnitType

      public BusinessUnitType getUnitType()
    • setUnitType

      public void setUnitType(BusinessUnitType unitType)
    • getStoreMode

      public String getStoreMode()
    • setStoreMode

      public void setStoreMode(String storeMode)
    • getParentUnit

      public ResourceIdentifierInput getParentUnit()
    • setParentUnit

      public void setParentUnit(ResourceIdentifierInput parentUnit)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newBuilder

      public static MyBusinessUnitDraft.Builder newBuilder()