Class Customer
java.lang.Object
com.commercetools.graphql.api.types.Customer
- All Implemented Interfaces:
ReferenceExpandable,Versioned
A customer is a person purchasing products. Carts, Orders and Reviews can be associated to a customer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomer()Customer(String customerNumber, String email, List<Address> addresses, String defaultShippingAddressId, String defaultBillingAddressId, List<String> shippingAddressIds, List<String> billingAddressIds, Boolean isEmailVerified, Reference customerGroupRef, String externalId, String key, AuthenticationMode authenticationMode, String firstName, String lastName, String middleName, String title, String locale, String salutation, LocalDate dateOfBirth, String companyName, String vatId, String password, CustomerGroup customerGroup, Address defaultShippingAddress, Address defaultBillingAddress, List<Address> shippingAddresses, List<Address> billingAddresses, List<KeyReference> storesRef, List<Store> stores, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()getId()getKey()getTitle()getVatId()inthashCode()static Customer.BuildervoidsetAddresses(List<Address> addresses) voidsetAuthenticationMode(AuthenticationMode authenticationMode) voidsetBillingAddresses(List<Address> billingAddresses) voidsetBillingAddressIds(List<String> billingAddressIds) voidsetCompanyName(String companyName) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetCustomerGroup(CustomerGroup customerGroup) voidsetCustomerGroupRef(Reference customerGroupRef) voidsetCustomerNumber(String customerNumber) voidsetDateOfBirth(LocalDate dateOfBirth) voidsetDefaultBillingAddress(Address defaultBillingAddress) voidsetDefaultBillingAddressId(String defaultBillingAddressId) voidsetDefaultShippingAddress(Address defaultShippingAddress) voidsetDefaultShippingAddressId(String defaultShippingAddressId) voidvoidsetExternalId(String externalId) voidsetFirstName(String firstName) voidvoidsetIsEmailVerified(Boolean isEmailVerified) voidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidsetLastName(String lastName) voidvoidsetMiddleName(String middleName) voidsetPassword(String password) voidsetSalutation(String salutation) voidsetShippingAddresses(List<Address> shippingAddresses) voidsetShippingAddressIds(List<String> shippingAddressIds) voidvoidsetStoresRef(List<KeyReference> storesRef) voidvoidvoidsetVersion(Long version) toString()
-
Constructor Details
-
Customer
public Customer() -
Customer
public Customer(String customerNumber, String email, List<Address> addresses, String defaultShippingAddressId, String defaultBillingAddressId, List<String> shippingAddressIds, List<String> billingAddressIds, Boolean isEmailVerified, Reference customerGroupRef, String externalId, String key, AuthenticationMode authenticationMode, String firstName, String lastName, String middleName, String title, String locale, String salutation, LocalDate dateOfBirth, String companyName, String vatId, String password, CustomerGroup customerGroup, Address defaultShippingAddress, Address defaultBillingAddress, List<Address> shippingAddresses, List<Address> billingAddresses, List<KeyReference> storesRef, List<Store> stores, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getCustomerNumber
-
setCustomerNumber
-
getEmail
-
setEmail
-
getAddresses
-
setAddresses
-
getDefaultShippingAddressId
-
setDefaultShippingAddressId
-
getDefaultBillingAddressId
-
setDefaultBillingAddressId
-
getShippingAddressIds
-
setShippingAddressIds
-
getBillingAddressIds
-
setBillingAddressIds
-
getIsEmailVerified
-
setIsEmailVerified
-
getCustomerGroupRef
-
setCustomerGroupRef
-
getExternalId
-
setExternalId
-
getKey
-
setKey
-
getAuthenticationMode
-
setAuthenticationMode
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getMiddleName
-
setMiddleName
-
getTitle
-
setTitle
-
getLocale
-
setLocale
-
getSalutation
-
setSalutation
-
getDateOfBirth
-
setDateOfBirth
-
getCompanyName
-
setCompanyName
-
getVatId
-
setVatId
-
getPassword
-
setPassword
-
getCustomerGroup
-
setCustomerGroup
-
getDefaultShippingAddress
-
setDefaultShippingAddress
-
getDefaultBillingAddress
-
setDefaultBillingAddress
-
getShippingAddresses
-
setShippingAddresses
-
getBillingAddresses
-
setBillingAddresses
-
getStoresRef
-
setStoresRef
-
getStores
-
setStores
-
getCustom
-
setCustom
-
getId
- Specified by:
getIdin interfaceReferenceExpandable- Specified by:
getIdin interfaceVersioned
-
setId
- Specified by:
setIdin interfaceReferenceExpandable- Specified by:
setIdin interfaceVersioned
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-