Interface MyCustomerDraft
- All Superinterfaces:
CustomizableDraft<MyCustomerDraft>
,Draft<MyCustomerDraft>
Example to create an instance using the builder pattern
MyCustomerDraft myCustomerDraft = MyCustomerDraft.builder()
.email("{email}")
.password("{password}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyCustomerDraftBuilder
builder()
builder factory method for MyCustomerDraftstatic MyCustomerDraftBuilder
builder
(MyCustomerDraft template) create builder for MyCustomerDraft instancestatic MyCustomerDraft
deepCopy
(MyCustomerDraft template) factory method to create a deep copy of MyCustomerDraft@Valid List<BaseAddress>
Addresses of the Customer.Company name of the Customer.@Valid CustomFieldsDraft
Custom Fields for the Customer.Date of birth of the Customer.Index of the address in theaddresses
array to use as the default billing address.Index of the address in theaddresses
array to use as the default shipping address.@NotNull String
getEmail()
Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to.Given name (first name) of the Customer.Family name (last name) of the Customer.Preferred language of the Customer.Middle name of the Customer.@NotNull String
Password of the Customer.Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.@Valid List<StoreResourceIdentifier>
Sets the Stores for the Customer.getTitle()
Title of the Customer, for example, 'Dr.'.getVatId()
Individual VAT ID of the Customer.static MyCustomerDraft
of()
factory methodstatic MyCustomerDraft
of
(MyCustomerDraft template) factory method to create a shallow copy MyCustomerDraftvoid
setAddresses
(BaseAddress... addresses) Addresses of the Customer.void
setAddresses
(List<BaseAddress> addresses) Addresses of the Customer.void
setCompanyName
(String companyName) Company name of the Customer.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Customer.void
setDateOfBirth
(LocalDate dateOfBirth) Date of birth of the Customer.void
setDefaultBillingAddress
(Long defaultBillingAddress) Index of the address in theaddresses
array to use as the default billing address.void
setDefaultShippingAddress
(Long defaultShippingAddress) Index of the address in theaddresses
array to use as the default shipping address.void
Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to.void
setFirstName
(String firstName) Given name (first name) of the Customer.void
setLastName
(String lastName) Family name (last name) of the Customer.void
Preferred language of the Customer.void
setMiddleName
(String middleName) Middle name of the Customer.void
setPassword
(String password) Password of the Customer.void
setSalutation
(String salutation) Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.void
setStores
(StoreResourceIdentifier... stores) Sets the Stores for the Customer.void
setStores
(List<StoreResourceIdentifier> stores) Sets the Stores for the Customer.void
Title of the Customer, for example, 'Dr.'.void
Individual VAT ID of the Customer.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyCustomerDraft
(Function<MyCustomerDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getEmail
Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.
- Returns:
-
getPassword
Password of the Customer.
- Returns:
- password
-
getFirstName
String getFirstName()Given name (first name) of the Customer.
- Returns:
- firstName
-
getLastName
String getLastName()Family name (last name) of the Customer.
- Returns:
- lastName
-
getMiddleName
String getMiddleName()Middle name of the Customer.
- Returns:
- middleName
-
getTitle
String getTitle()Title of the Customer, for example, 'Dr.'.
- Returns:
- title
-
getSalutation
String getSalutation()Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
- Returns:
- salutation
-
getDateOfBirth
LocalDate getDateOfBirth()Date of birth of the Customer.
- Returns:
- dateOfBirth
-
getCompanyName
String getCompanyName()Company name of the Customer.
- Returns:
- companyName
-
getVatId
String getVatId()Individual VAT ID of the Customer.
- Returns:
- vatId
-
getAddresses
Addresses of the Customer.
- Returns:
- addresses
-
getDefaultShippingAddress
Long getDefaultShippingAddress()Index of the address in the
addresses
array to use as the default shipping address. ThedefaultShippingAddressId
of the Customer will be set to theid
of that address.- Returns:
- defaultShippingAddress
-
getDefaultBillingAddress
Long getDefaultBillingAddress()Index of the address in the
addresses
array to use as the default billing address. ThedefaultBillingAddressId
of the Customer will be set to theid
of that address.- Returns:
- defaultBillingAddress
-
getCustom
Custom Fields for the Customer.
- Specified by:
getCustom
in interfaceCustomizableDraft<MyCustomerDraft>
- Returns:
- custom
-
getLocale
String getLocale()Preferred language of the Customer. Must be one of the languages supported by the Project.
- Returns:
- locale
-
getStores
Sets the Stores for the Customer.
- Returns:
- stores
-
setEmail
Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.
- Parameters:
email
- value to be set
-
setPassword
Password of the Customer.
- Parameters:
password
- value to be set
-
setFirstName
Given name (first name) of the Customer.
- Parameters:
firstName
- value to be set
-
setLastName
Family name (last name) of the Customer.
- Parameters:
lastName
- value to be set
-
setMiddleName
Middle name of the Customer.
- Parameters:
middleName
- value to be set
-
setTitle
Title of the Customer, for example, 'Dr.'.
- Parameters:
title
- value to be set
-
setSalutation
Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
- Parameters:
salutation
- value to be set
-
setDateOfBirth
Date of birth of the Customer.
- Parameters:
dateOfBirth
- value to be set
-
setCompanyName
Company name of the Customer.
- Parameters:
companyName
- value to be set
-
setVatId
Individual VAT ID of the Customer.
- Parameters:
vatId
- value to be set
-
setAddresses
Addresses of the Customer.
- Parameters:
addresses
- values to be set
-
setAddresses
Addresses of the Customer.
- Parameters:
addresses
- values to be set
-
setDefaultShippingAddress
Index of the address in the
addresses
array to use as the default shipping address. ThedefaultShippingAddressId
of the Customer will be set to theid
of that address.- Parameters:
defaultShippingAddress
- value to be set
-
setDefaultBillingAddress
Index of the address in the
addresses
array to use as the default billing address. ThedefaultBillingAddressId
of the Customer will be set to theid
of that address.- Parameters:
defaultBillingAddress
- value to be set
-
setCustom
Custom Fields for the Customer.
- Specified by:
setCustom
in interfaceCustomizableDraft<MyCustomerDraft>
- Parameters:
custom
- value to be set
-
setLocale
Preferred language of the Customer. Must be one of the languages supported by the Project.
- Parameters:
locale
- value to be set
-
setStores
Sets the Stores for the Customer.
- Parameters:
stores
- values to be set
-
setStores
Sets the Stores for the Customer.
- Parameters:
stores
- values to be set
-
of
factory method- Returns:
- instance of MyCustomerDraft
-
of
factory method to create a shallow copy MyCustomerDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyCustomerDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerDraft- Returns:
- builder
-
builder
create builder for MyCustomerDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-