address

package
v0.0.0-...-418b934 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	entity.Base
	EntityID     uuid.UUID `gorm:"primary_key;not null"`
	Prefix       string
	Firstname    string
	Lastname     string
	BusinessName string
	IsBusiness   bool   `gorm:"not null;default:false"`
	Address1     string `gorm:"not null"`
	Address2     string
	Zip          string    `gorm:"not null;length:9"`
	PhoneNumber  string    `gorm:"not null"`
	IsDefault    bool      `gorm:"not null;default:false"`
	IsActive     bool      `gorm:"not null;default:true"`
	CityAndState CityState `gorm:"not null"`
}

Address address entity

func (*Address) MarshalBinary

func (a *Address) MarshalBinary() ([]byte, error)

MarshalBinary for redis

func (*Address) ToDTO

func (a *Address) ToDTO() *address.AddressDTO

ToDTO to dto

func (*Address) UnmarshalBinary

func (a *Address) UnmarshalBinary(data []byte) error

UnmarshalBinary for redis

type CityState

type CityState struct {
	entity.Base
	City  string  `gorm:"not null"`
	State string  `gorm:"not null"`
	Tax   float32 `gorm:"not null;default:0"`
}

CityState lookup table

func (*CityState) MarshalBinary

func (c *CityState) MarshalBinary() ([]byte, error)

MarshalBinary for redis

func (*CityState) UnmarshalBinary

func (c *CityState) UnmarshalBinary(data []byte) error

UnmarshalBinary for redis

Jump to

Keyboard shortcuts

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