public final class CustomerDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
T |
addresses(List<Address> addresses)
Sets the
addresses property of this builder. |
T |
anonymousCart(ResourceIdentifier<Cart> anonymousCart)
Sets the
anonymousCart property of this builder. |
T |
anonymousCartId(String anonymousCartId)
Deprecated.
This method will be removed with the next major SDK update.
|
T |
anonymousId(String anonymousId)
Sets the
anonymousId property of this builder. |
T |
authenticationMode(AuthenticationMode authenticationMode)
Sets the
authenticationMode property of this builder. |
T |
billingAddresses(List<Integer> billingAddresses)
Sets the
billingAddresses property of this builder. |
CustomerDraftDsl |
build()
Creates a new instance of
CustomerDraftDsl with the values of this builder. |
T |
companyName(String companyName)
Sets the
companyName property of this builder. |
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
T |
customerGroup(ResourceIdentifier<CustomerGroup> customerGroup)
Sets the
customerGroup property of this builder. |
T |
customerNumber(String customerNumber)
Sets the
customerNumber property of this builder. |
T |
dateOfBirth(LocalDate dateOfBirth)
Sets the
dateOfBirth property of this builder. |
T |
defaultBillingAddress(Integer defaultBillingAddress)
Sets the
defaultBillingAddress property of this builder. |
T |
defaultShippingAddress(Integer defaultShippingAddress)
Sets the
defaultShippingAddress property of this builder. |
T |
email(String email)
Sets the
email property of this builder. |
T |
emailVerified(Boolean emailVerified)
Sets the
emailVerified property of this builder. |
T |
externalId(String externalId)
Sets the
externalId property of this builder. |
T |
firstName(String firstName)
Sets the
firstName property of this builder. |
List<Address> |
getAddresses() |
ResourceIdentifier<Cart> |
getAnonymousCart() |
String |
getAnonymousCartId()
Deprecated.
This method will be removed with the next major SDK update.
|
String |
getAnonymousId() |
AuthenticationMode |
getAuthenticationMode() |
List<Integer> |
getBillingAddresses() |
String |
getCompanyName() |
CustomFieldsDraft |
getCustom() |
ResourceIdentifier<CustomerGroup> |
getCustomerGroup() |
String |
getCustomerNumber() |
LocalDate |
getDateOfBirth() |
Integer |
getDefaultBillingAddress() |
Integer |
getDefaultShippingAddress() |
String |
getEmail() |
String |
getExternalId() |
String |
getFirstName() |
String |
getKey() |
String |
getLastName() |
Locale |
getLocale() |
String |
getMiddleName() |
String |
getPassword() |
String |
getSalutation() |
List<Integer> |
getShippingAddresses() |
List<ResourceIdentifier<Store>> |
getStores() |
String |
getTitle() |
String |
getVatId() |
Boolean |
isEmailVerified() |
T |
isEmailVerified(Boolean emailVerified)
Sets the
emailVerified property of this builder. |
T |
key(String key)
Sets the
key property of this builder. |
T |
lastName(String lastName)
Sets the
lastName property of this builder. |
T |
locale(Locale locale)
Sets the
locale property of this builder. |
T |
middleName(String middleName)
Sets the
middleName property of this builder. |
static CustomerDraftBuilder |
of(CustomerDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static CustomerDraftBuilder |
of(CustomerName customerName,
String email,
String password) |
static CustomerDraftBuilder |
of(String email,
String password)
Creates a new object initialized with the given values.
|
T |
password(String password)
Sets the
password property of this builder. |
T |
plusAddresses(Address addresses)
Adds
addresses parameter to the addresses list property of this builder. |
T |
plusAddresses(List<Address> addresses)
Concatenate
addresses parameter to the addresses list property of this builder. |
T |
plusBillingAddresses(Integer billingAddresses)
Adds
billingAddresses parameter to the billingAddresses list property of this builder. |
T |
plusBillingAddresses(List<Integer> billingAddresses)
Concatenate
billingAddresses parameter to the billingAddresses list property of this builder. |
T |
plusShippingAddresses(Integer shippingAddresses)
Adds
shippingAddresses parameter to the shippingAddresses list property of this builder. |
T |
plusShippingAddresses(List<Integer> shippingAddresses)
Concatenate
shippingAddresses parameter to the shippingAddresses list property of this builder. |
T |
plusStores(List<ResourceIdentifier<Store>> stores)
Concatenate
stores parameter to the stores list property of this builder. |
T |
plusStores(ResourceIdentifier<Store> stores)
Adds
stores parameter to the stores list property of this builder. |
T |
salutation(String salutation)
Sets the
salutation property of this builder. |
T |
shippingAddresses(List<Integer> shippingAddresses)
Sets the
shippingAddresses property of this builder. |
T |
stores(List<ResourceIdentifier<Store>> stores)
Sets the
stores property of this builder. |
T |
title(String title)
Sets the
title property of this builder. |
T |
vatId(String vatId)
Sets the
vatId property of this builder. |
public static CustomerDraftBuilder of(CustomerName customerName, String email, String password)
public T addresses(@Nullable List<Address> addresses)
addresses
property of this builder.addresses
- the value for CustomerDraft.getAddresses()
public T anonymousCart(@Nullable ResourceIdentifier<Cart> anonymousCart)
anonymousCart
property of this builder.anonymousCart
- the value for CustomerDraft.getAnonymousCart()
@Deprecated public T anonymousCartId(@Nullable String anonymousCartId)
anonymousCartId
property of this builder.anonymousCartId
- the value for CustomerDraft.getAnonymousCartId()
public T anonymousId(@Nullable String anonymousId)
anonymousId
property of this builder.anonymousId
- the value for CustomerDraft.getAnonymousId()
public T authenticationMode(@Nullable AuthenticationMode authenticationMode)
authenticationMode
property of this builder.authenticationMode
- the value for CustomerDraft.getAuthenticationMode()
public T billingAddresses(@Nullable List<Integer> billingAddresses)
billingAddresses
property of this builder.billingAddresses
- the value for CustomerDraft.getBillingAddresses()
public T companyName(@Nullable String companyName)
companyName
property of this builder.companyName
- the value for CustomerDraft.getCompanyName()
public T custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for CustomerDraft.getCustom()
public T customerGroup(@Nullable ResourceIdentifier<CustomerGroup> customerGroup)
customerGroup
property of this builder.customerGroup
- the value for CustomerDraft.getCustomerGroup()
public T customerNumber(@Nullable String customerNumber)
customerNumber
property of this builder.customerNumber
- the value for CustomerDraft.getCustomerNumber()
public T dateOfBirth(@Nullable LocalDate dateOfBirth)
dateOfBirth
property of this builder.dateOfBirth
- the value for CustomerDraft.getDateOfBirth()
public T defaultBillingAddress(@Nullable Integer defaultBillingAddress)
defaultBillingAddress
property of this builder.defaultBillingAddress
- the value for CustomerDraft.getDefaultBillingAddress()
public T defaultShippingAddress(@Nullable Integer defaultShippingAddress)
defaultShippingAddress
property of this builder.defaultShippingAddress
- the value for CustomerDraft.getDefaultShippingAddress()
public T email(String email)
email
property of this builder.email
- the value for CustomerDraft.getEmail()
public T emailVerified(Boolean emailVerified)
emailVerified
property of this builder.emailVerified
- the value for CustomerDraft.isEmailVerified()
public T isEmailVerified(Boolean emailVerified)
emailVerified
property of this builder.emailVerified
- the value for CustomerDraft.isEmailVerified()
public T externalId(@Nullable String externalId)
externalId
property of this builder.externalId
- the value for CustomerDraft.getExternalId()
public T firstName(@Nullable String firstName)
firstName
property of this builder.firstName
- the value for CustomerDraft.getFirstName()
public T key(@Nullable String key)
key
property of this builder.key
- the value for CustomerDraft.getKey()
public T lastName(@Nullable String lastName)
lastName
property of this builder.lastName
- the value for CustomerDraft.getLastName()
public T locale(@Nullable Locale locale)
locale
property of this builder.locale
- the value for CustomerDraft.getLocale()
public T middleName(@Nullable String middleName)
middleName
property of this builder.middleName
- the value for CustomerDraft.getMiddleName()
public T password(String password)
password
property of this builder.password
- the value for CustomerDraft.getPassword()
public T salutation(@Nullable String salutation)
salutation
property of this builder.salutation
- the value for CustomerDraft.getSalutation()
public T shippingAddresses(@Nullable List<Integer> shippingAddresses)
shippingAddresses
property of this builder.shippingAddresses
- the value for CustomerDraft.getShippingAddresses()
public T stores(@Nullable List<ResourceIdentifier<Store>> stores)
stores
property of this builder.stores
- the value for CustomerDraft.getStores()
public T title(@Nullable String title)
title
property of this builder.title
- the value for CustomerDraft.getTitle()
public T vatId(@Nullable String vatId)
vatId
property of this builder.vatId
- the value for CustomerDraft.getVatId()
@Nullable public ResourceIdentifier<Cart> getAnonymousCart()
@Nullable @Deprecated public String getAnonymousCartId()
@Nullable public AuthenticationMode getAuthenticationMode()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public ResourceIdentifier<CustomerGroup> getCustomerGroup()
public String getEmail()
public Boolean isEmailVerified()
public String getPassword()
@Nullable public List<ResourceIdentifier<Store>> getStores()
public T plusAddresses(List<Address> addresses)
addresses
parameter to the addresses
list property of this builder.addresses
- the value for CustomerDraft.getAddresses()
public T plusBillingAddresses(List<Integer> billingAddresses)
billingAddresses
parameter to the billingAddresses
list property of this builder.billingAddresses
- the value for CustomerDraft.getBillingAddresses()
public T plusShippingAddresses(List<Integer> shippingAddresses)
shippingAddresses
parameter to the shippingAddresses
list property of this builder.shippingAddresses
- the value for CustomerDraft.getShippingAddresses()
public T plusStores(List<ResourceIdentifier<Store>> stores)
stores
parameter to the stores
list property of this builder.stores
- the value for CustomerDraft.getStores()
public T plusAddresses(Address addresses)
addresses
parameter to the addresses
list property of this builder.addresses
- the value of the element to add to CustomerDraft.getAddresses()
public T plusBillingAddresses(Integer billingAddresses)
billingAddresses
parameter to the billingAddresses
list property of this builder.billingAddresses
- the value of the element to add to CustomerDraft.getBillingAddresses()
public T plusShippingAddresses(Integer shippingAddresses)
shippingAddresses
parameter to the shippingAddresses
list property of this builder.shippingAddresses
- the value of the element to add to CustomerDraft.getShippingAddresses()
public T plusStores(ResourceIdentifier<Store> stores)
stores
parameter to the stores
list property of this builder.stores
- the value of the element to add to CustomerDraft.getStores()
public CustomerDraftDsl build()
CustomerDraftDsl
with the values of this builder.build
in interface Builder<CustomerDraftDsl>
public static CustomerDraftBuilder of(String email, String password)
email
- initial value for the CustomerDraft.getEmail()
propertypassword
- initial value for the CustomerDraft.getPassword()
propertypublic static CustomerDraftBuilder of(CustomerDraft template)
template
- the template