customer_dto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 6 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 {
	Id                    primitive.ObjectID  `json:"id,omitempty" bson:"_id, omitempty"`
	BankingId             string              `json:"banking_id,omitempty"`
	Type                  int64               `json:"type"`
	Name                  string              `json:"name,omitempty"`
	Details               string              `json:"details,omitempty"`
	CompanyRegisteredName string              `json:"company_registered_name,omitempty"`
	CompanyRegisteredId   string              `json:"company_registered_id,omitempty"`
	ContactPerson         user_dto.User       `json:"contact_person,omitempty"`
	Status                string              `json:"status,omitempty"`
	Address               address_dto.Address `json:"address,omitempty"`
	CustomerUsers         []CustomerUser      `json:"customer_users,omitempty"`
	FeatureFlags          []string            `json:"feature_flags,omitempty"`
	DateCreated           string              `json:"date_created,omitempty"`
}

func (*Customer) Trim added in v1.5.59

func (customer *Customer) Trim()

func (*Customer) Validate added in v1.5.59

func (customer *Customer) Validate() *rest_errors.RestErr

type CustomerUser added in v1.5.66

type CustomerUser struct {
	User user_dto.User `json:"user,omitempty"`
	Role string        `json:"role,omitempty"`
}

func (*CustomerUser) Trim added in v1.5.67

func (user *CustomerUser) Trim()

type CustomersResult added in v1.5.68

type CustomersResult struct {
	Start   int64      `json:"start"`
	Limit   int64      `json:"limit"`
	Hits    int64      `json:"hits"`
	Total   int64      `json:"total"`
	Results []Customer `json:"results,omitempty"`
}

Jump to

Keyboard shortcuts

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