dto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProductToModel added in v0.23.0

func ProductToModel(product Product) (model.Product, error)

func TransientCustomerToModel added in v0.23.0

func TransientCustomerToModel(customer TransientCustomer) model.TransientCustomer

Types

type Address

type Address struct {
	Street  string
	ZipCode string
	City    string
	State   string
}

type Adult

type Adult struct {
	Name             string
	Surname          string
	SecondSurname    string
	TaxID            string
	Role             string
	Address          Address
	Email            string
	MobilePhone      string
	HomePhone        string
	GrandMotherPhone string
	GrandParentPhone string
	WorkPhone        string
	BirthDate        string
	Nationality      string
}

type Child

type Child struct {
	Id            int
	Name          string
	Surname       string
	SecondSurname string
	TaxID         string
	BirthDate     string
	Group         string
	Note          string
	Active        bool
}

type Customer

type Customer struct {
	Id            int
	Active        bool
	Children      []Child
	Adults        []Adult
	InvoiceHolder InvoiceHolder
	Note          string
	Language      string
	ChangedOn     time.Time
}

type InvoiceHolder

type InvoiceHolder struct {
	Name        string
	TaxID       string
	Address     Address
	Email       string
	SendEmail   bool
	PaymentType string
	Iban        string
	IsBusiness  bool
}

type Product added in v0.23.0

type Product struct {
	Id            string
	Name          string
	ShortName     string
	Price         float64
	TaxPercentage float64
	IsSubsidy     bool
}

type TransientChild added in v0.23.0

type TransientChild struct {
	Name          string
	Surname       string
	SecondSurname string
	TaxID         string
	BirthDate     string
	Group         string
	Note          string
}

type TransientCustomer added in v0.23.0

type TransientCustomer struct {
	Children      []TransientChild
	Adults        []Adult
	InvoiceHolder InvoiceHolder
	Note          string
	Language      string
}

Jump to

Keyboard shortcuts

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