Documentation
¶
Overview ¶
Package customer handles a customer entity with its addresses.
TODO validation ¶
Maybe for use for customer and customer/address or sales/orders, etc but my concerns are that sometimes people wish to have a different validation than the default one. So that means refactoring to provide a validation configuration besides struct tags
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TableCollection handles all tables and its columns. init() in generated Go file will set the value. TableCollection csdb.TableManager )
Functions ¶
This section is empty.
Types ¶
type AddressModel ¶
type AddressModel struct { }
func Address ¶
func Address() *AddressModel
func (*AddressModel) TBD ¶
func (c *AddressModel) TBD()
func (*AddressModel) TableAdditionalAttribute ¶
func (c *AddressModel) TableAdditionalAttribute() (*csdb.Table, error)
EntityTypeAdditionalAttributeTabler
func (*AddressModel) TableEavWebsite ¶
func (c *AddressModel) TableEavWebsite() (*csdb.Table, error)
EntityTypeAdditionalAttributeTabler
func (*AddressModel) TableNameBase ¶
func (c *AddressModel) TableNameBase() string
func (*AddressModel) TableNameValue ¶
func (c *AddressModel) TableNameValue(i eav.ValueIndex) string
type DataModeller ¶
type DataModeller interface {
TBD()
}
see table customer_eav_attribute.data_model
type Entity ¶
type Entity struct { }
Entity is the customer model
func (*Entity) TableAdditionalAttribute ¶
EntityTypeAdditionalAttributeTabler
func (*Entity) TableEavWebsite ¶
EntityTypeAdditionalAttributeTabler
func (*Entity) TableNameBase ¶
func (*Entity) TableNameValue ¶
func (c *Entity) TableNameValue(i eav.ValueIndex) string
Directories
¶
Path | Synopsis |
---|---|
Package custattr handles all customer and address related attributes.
|
Package custattr handles all customer and address related attributes. |
Package custconfig handles configuration structure and its models.
|
Package custconfig handles configuration structure and its models. |
Click to show internal directories.
Click to hide internal directories.