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 MyCustomerDraftBuilderbuilder()builder factory method for MyCustomerDraftstatic MyCustomerDraftBuilderbuilder(MyCustomerDraft template) create builder for MyCustomerDraft instancecopyDeep()static MyCustomerDraftdeepCopy(MyCustomerDraft template) factory method to create a deep copy of MyCustomerDraft@Valid List<BaseAddress>Addresses of the Customer.Company name of the Customer.@Valid CustomFieldsDraftCustom Fields for the Customer.Date of birth of the Customer.Index of the address in theaddressesarray to use as the default billing address.Index of the address in theaddressesarray to use as the default shipping address.@NotNull StringgetEmail()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 StringPassword 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 MyCustomerDraftof()factory methodstatic MyCustomerDraftof(MyCustomerDraft template) factory method to create a shallow copy MyCustomerDraftvoidsetAddresses(BaseAddress... addresses) Addresses of the Customer.voidsetAddresses(List<BaseAddress> addresses) Addresses of the Customer.voidsetCompanyName(String companyName) Company name of the Customer.voidsetCustom(CustomFieldsDraft custom) Custom Fields for the Customer.voidsetDateOfBirth(LocalDate dateOfBirth) Date of birth of the Customer.voidsetDefaultBillingAddress(Long defaultBillingAddress) Index of the address in theaddressesarray to use as the default billing address.voidsetDefaultShippingAddress(Long defaultShippingAddress) Index of the address in theaddressesarray to use as the default shipping address.voidEmail address of the Customer that is unique for an entire Project or Store the Customer is assigned to.voidsetFirstName(String firstName) Given name (first name) of the Customer.voidsetLastName(String lastName) Family name (last name) of the Customer.voidPreferred language of the Customer.voidsetMiddleName(String middleName) Middle name of the Customer.voidsetPassword(String password) Password of the Customer.voidsetSalutation(String salutation) Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.voidsetStores(StoreResourceIdentifier... stores) Sets the Stores for the Customer.voidsetStores(List<StoreResourceIdentifier> stores) Sets the Stores for the Customer.voidTitle of the Customer, for example, 'Dr.'.voidIndividual VAT ID of the Customer.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCustomerDraft(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
addressesarray to use as the default shipping address. ThedefaultShippingAddressIdof the Customer will be set to theidof that address.- Returns:
- defaultShippingAddress
-
getDefaultBillingAddress
Long getDefaultBillingAddress()Index of the address in the
addressesarray to use as the default billing address. ThedefaultBillingAddressIdof the Customer will be set to theidof that address.- Returns:
- defaultBillingAddress
-
getCustom
Custom Fields for the Customer.
- Specified by:
getCustomin 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
addressesarray to use as the default shipping address. ThedefaultShippingAddressIdof the Customer will be set to theidof that address.- Parameters:
defaultShippingAddress- value to be set
-
setDefaultBillingAddress
Index of the address in the
addressesarray to use as the default billing address. ThedefaultBillingAddressIdof the Customer will be set to theidof that address.- Parameters:
defaultBillingAddress- value to be set
-
setCustom
Custom Fields for the Customer.
- Specified by:
setCustomin 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
-
copyDeep
MyCustomerDraft copyDeep() -
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
-