Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 4 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 {

	// agent associated with this customer
	AgentID int32 `json:"agentId,omitempty"`

	// internal identifier of a customer
	// Required: true
	// Read Only: true
	CustomerID int64 `json:"customerId"`

	// fips code
	// Required: true
	// Min Length: 1
	FipsCode *string `json:"fipsCode"`

	// name
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Lookup identifier to find a customer in the system
	// Required: true
	// Min Length: 11
	Ssn *string `json:"ssn"`

	// surname
	// Required: true
	// Min Length: 1
	Surname *string `json:"surname"`
}

Customer customer swagger:model customer

func (*Customer) MarshalBinary

func (m *Customer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Customer) UnmarshalBinary

func (m *Customer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Customer) Validate

func (m *Customer) Validate(formats strfmt.Registry) error

Validate validates this customer

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// fields
	Fields string `json:"fields,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Principal

type Principal string

Principal principal swagger:model principal

func (Principal) Validate

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type SocialID

type SocialID struct {

	// ssn
	// Required: true
	// Min Length: 11
	Ssn *string `json:"ssn"`
}

SocialID social id swagger:model social_id

func (*SocialID) MarshalBinary

func (m *SocialID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SocialID) UnmarshalBinary

func (m *SocialID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SocialID) Validate

func (m *SocialID) Validate(formats strfmt.Registry) error

Validate validates this social id

Jump to

Keyboard shortcuts

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