customer

package
v0.0.0-...-6f8fa1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

README

Package customer

Implements customer and customer address, groups, etc handling.

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

https://github.com/go-playground/validator

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 Customer

func Customer() *Entity

func (*Entity) TBD

func (c *Entity) TBD()

func (*Entity) TableAdditionalAttribute

func (c *Entity) TableAdditionalAttribute() (*csdb.Table, error)

EntityTypeAdditionalAttributeTabler

func (*Entity) TableEavWebsite

func (c *Entity) TableEavWebsite() (*csdb.Table, error)

EntityTypeAdditionalAttributeTabler

func (*Entity) TableNameBase

func (c *Entity) TableNameBase() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL