v1alpha

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	// TODO(ppacher): should we actually expose ID?
	ID                  string                 `json:"_id,omitempty" bson:"_id,omitempty"`
	CustomerID          string                 `json:"cid,omitempty" bson:"cid,omitempty"`
	Group               string                 `json:"group,omitempty" bson:"group,omitempty"`
	Name                string                 `json:"name,omitempty" bson:"name,omitempty"`
	Firstname           string                 `json:"firstname,omitempty" bson:"firstname,omitempty"`
	Title               string                 `json:"title,omitempty" bson:"title,omitempty"`
	Street              string                 `json:"street,omitempty" bson:"street,omitempty"`
	CityCode            int                    `json:"cityCode,omitempty" bson:"cityCode,omitempty"`
	City                string                 `json:"city,omitempty" bson:"city,omitempty"`
	PhoneNumbers        []string               `json:"phoneNumbers,omitempty" bson:"phoneNumbers,omitempty"`
	MailAddresses       []string               `json:"mailAddresses,omitempty" bson:"mailAddresses,omitempty"`
	Metadata            map[string]interface{} `json:"metadata,omitempty" bson:"metadata,omitempty"`
	Source              string                 `json:"source,omitempty" bson:"source,omitempty"`
	VaccinationReminder bool                   `json:"vaccinationReminder" bson:"vaccinationReminder,omitempty"`
	CreatedAt           time.Time              `json:"createdAt"`
	ModifiedAt          time.Time              `json:"modifiedAt"`
}

Customer represents a customer model.

type CustomerRef

type CustomerRef struct {
	CustomerID string `json:"cid,omitempty" bson:"cid,omitempty"`
	Source     string `json:"source,omitempty" bson:"source,omitempty"`
}

func ParseRef

func ParseRef(s string) *CustomerRef

func (CustomerRef) String

func (ref CustomerRef) String() string

Jump to

Keyboard shortcuts

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