Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GenderMale for male customers GenderMale = "male" // GenderFemale for female customers GenderFemale = "female" // GenderOther for other customers GenderOther = "other" // GenderUnknown unknown GenderUnknown = "" )
Variables ¶
View Source
var ( // ErrCustomerNotFoundError - semantic error returned if no customer was found ErrCustomerNotFoundError = errors.New("Customer not found") )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { ID string RegionCode string CountryCode string Company string Street string StreetNr string State string AdditionalAddressLines []string Telephone string PostCode string City string Firstname string Lastname string Email string Prefix string DefaultBilling bool DefaultShipping bool }
Address data of a customer
type Customer ¶
type Customer interface { GetID() string GetPersonalData() PersonData GetAddresses() []Address GetDefaultShippingAddress() *Address GetDefaultBillingAddress() *Address }
Customer data interface
Click to show internal directories.
Click to hide internal directories.