Interface CustomerMixin
- All Superinterfaces:
Identifiable<Customer>,Referencable<Customer>,ResourceIdentifiable<Customer>
- All Known Subinterfaces:
Customer
-
Method Summary
Modifier and TypeMethodDescriptionfindAddressById(String addressId) default AddressgetAddressById(String addressId) Find the address ingetAddresses()by the address iddefault AddressID of an address ingetAddresses()which contains the standard billing address.default Addressdefault CustomerReferencedefault CustomerResourceIdentifierMethods inherited from interface com.commercetools.api.models.Identifiable
getId
-
Method Details
-
toResourceIdentifier
- Specified by:
toResourceIdentifierin interfaceResourceIdentifiable<Customer>
-
toReference
- Specified by:
toReferencein 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
-