Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch
Functions ¶
Types ¶
type StockLocation ¶
type StockLocation struct {
mixin.Model
// Name of stock location
Name string `json:"name"`
// Address fields
AddressLine1 string `json:"addressLine1"`
AddressLine2 string `json:"addressLine2"`
City string `json:"city"`
Country string `json:"country"`
Province string `json:"province"`
PostalCode string `json:"postalCode"`
Phone string `json:"phone"`
// Arbitrary metadata
Metadata Map `json:"metadata,omitempty" datastore:"-"`
Metadata_ string `json:"-" datastore:",noindex"`
}
func New ¶
func New(db *datastore.Datastore) *StockLocation
func (*StockLocation) Defaults ¶
func (s *StockLocation) Defaults()
func (*StockLocation) Init ¶
func (s *StockLocation) Init(db *datastore.Datastore)
func (StockLocation) Kind ¶
func (s StockLocation) Kind() string
Click to show internal directories.
Click to hide internal directories.