dto

package
v0.0.0-...-a869338 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 2 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 {
	Line1      string `json:"line1"`
	Line2      string `json:"line2"`
	City       string `json:"city"`
	Province   string `json:"province"`
	PostalCode string `json:"postal_code"`
}

type HouseHoldInput

type HouseHoldInput struct {
	ID                    string   `json:"id"`
	Name                  string   `json:"name"`
	HouseholdHeadPersonId string   `json:"head_person_id"`
	MemberPersonsIds      []string `json:"member_person_ids"`
}

type Household

type Household struct {
	ID            string            `json:"id"`
	Name          string            `json:"name"`
	PictureUrl    string            `json:"picture_url"`
	HouseholdHead HouseholdPerson   `json:"household_head"`
	Members       []HouseholdPerson `json:"members"`
}

type HouseholdPerson

type HouseholdPerson struct {
	ID                string `json:"id"`
	FirstName         string `json:"first_name"`
	MiddleName        string `json:"middle_name"`
	LastName          string `json:"last_name"`
	PhoneNumber       string `json:"phone_number"`
	EmailAddress      string `json:"email_address"`
	ProfilePictureUrl string `json:"profile_picture_url"`
}

type Person

type Person struct {
	ID                string        `json:"id"`
	FirstName         string        `json:"first_name"`
	MiddleName        string        `json:"middle_name"`
	LastName          string        `json:"last_name"`
	ProfilePictureUrl string        `json:"profile_picture_url"`
	Address           string        `json:"address"`
	PhoneNumber       string        `json:"phone_number"`
	EmailAddress      string        `json:"email_address"`
	MaritalStatus     string        `json:"marital_status"`
	Birthday          *YearMonthDay `json:"birthday"`
	Gender            string        `json:"gender"`
}

type YearMonthDay

type YearMonthDay string

func (*YearMonthDay) ToEntity

func (y *YearMonthDay) ToEntity() *entities.YearMonthDay

Jump to

Keyboard shortcuts

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