Interface CustomerMixin
- All Superinterfaces:
Identifiable<Customer>
,Referencable<Customer>
,ResourceIdentifiable<Customer>
- All Known Subinterfaces:
Customer
-
Method Summary
Modifier and TypeMethodDescriptionfindAddressById
(String addressId) default Address
getAddressById
(String addressId) Find the address ingetAddresses()
by the address iddefault Address
ID of an address ingetAddresses()
which contains the standard billing address.default Address
default CustomerReference
default CustomerResourceIdentifier
Methods inherited from interface com.commercetools.api.models.Identifiable
getId
-
Method Details
-
toResourceIdentifier
- Specified by:
toResourceIdentifier
in interfaceResourceIdentifiable<Customer>
-
toReference
- Specified by:
toReference
in interfaceReferencable<Customer>
-
getShippingAddressIds
-
getBillingAddressIds
-
getDefaultShippingAddressId
String getDefaultShippingAddressId() -
getAddresses
-
getShippingAddresses
-
getBillingAddresses
-
findDefaultShippingAddress
-
getDefaultShippingAddress
-
getDefaultBillingAddressId
ID of an address ingetAddresses()
which contains the standard billing address.Access to the default billing address is also possible with
getDefaultBillingAddress()
.- Returns:
- ID or null
- See Also:
-
getDefaultBillingAddress
-
findDefaultBillingAddress
-
getAddressById
Find the address ingetAddresses()
by the address id- Parameters:
addressId
- the Id string of the address to find- Returns:
- Address or null
-
findAddressById
-