customer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: GPL-3.0 Imports: 1 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 {
	Id         string `json:"id"`
	TypeId     string `json:"type_id"`
	Address    string `json:"address"`
	PostalCode string `json:"postal"`
	City       string `json:"city"`
	Country    string `json:"country"`
}

type AddressType

type AddressType struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Primary     bool   `json:"primary"`
}

type Api

type Api interface {
	RegisterRoutes(r *mux.Router)
}

func NewApi

func NewApi(s Service) Api

type Company

type Company struct {
	Id        string    `json:"id"`
	Name      string    `json:"name"`
	Emails    []Email   `json:"emails,omitempty"`
	Phones    []Phone   `json:"phones,omitempty"`
	Addresses []Address `json:"addresses,omitempty"`
}

type Contact

type Contact struct {
	Id        string    `json:"id"`
	FirstName string    `json:"first_name"`
	LastName  string    `json:"last_name"`
	Emails    []Email   `json:"emails,omitempty"`
	Phones    []Phone   `json:"phones,omitempty"`
	Addresses []Address `json:"addresses,omitempty"`
}

type Email

type Email struct {
	Id          string `json:"id"`
	TypeId      string `json:"type_id"`
	Value       string `json:"value"`
	Description string `json:"description"`
	Primary     bool   `json:"primary"`
}

type EmailType

type EmailType struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Primary     bool   `json:"primary"`
}

type Phone

type Phone struct {
	Id          string `json:"id"`
	TypeId      string `json:"type_id"`
	Value       string `json:"value"`
	Description string `json:"description"`
	Primary     bool   `json:"primary"`
}

type PhoneType

type PhoneType struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Primary     bool   `json:"primary"`
}

type Repository

type Repository interface {
}

type Service

type Service interface {
}

func NewService

func NewService(r Repository) Service

Jump to

Keyboard shortcuts

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