models

package
v0.0.0-...-b714850 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtobufAddress

type ProtobufAddress struct {

	// building
	Building string `json:"building,omitempty"`

	// city
	City string `json:"city,omitempty"`

	// county
	County string `json:"county,omitempty"`

	// postal code
	PostalCode string `json:"postal_code,omitempty"`

	// street name
	StreetName string `json:"street_name,omitempty"`

	// town
	Town string `json:"town,omitempty"`
}

ProtobufAddress protobuf address swagger:model protobufAddress

func (*ProtobufAddress) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufAddress) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufAddress) Validate

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

Validate validates this protobuf address

type ProtobufEmpty

type ProtobufEmpty interface{}

ProtobufEmpty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
      rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    }

The JSON representation for `Empty` is empty JSON object `{}`. swagger:model protobufEmpty

type ProtobufPaginationRequest

type ProtobufPaginationRequest struct {

	// limit
	Limit int64 `json:"limit,omitempty"`

	// page
	Page int64 `json:"page,omitempty"`
}

ProtobufPaginationRequest protobuf pagination request swagger:model protobufPaginationRequest

func (*ProtobufPaginationRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufPaginationRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufPaginationRequest) Validate

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

Validate validates this protobuf pagination request

type ProtobufPaginationResponse

type ProtobufPaginationResponse struct {

	// current page
	CurrentPage int64 `json:"currentPage,omitempty"`

	// limit
	Limit int64 `json:"limit,omitempty"`

	// total pages
	TotalPages int64 `json:"totalPages,omitempty"`
}

ProtobufPaginationResponse protobuf pagination response swagger:model protobufPaginationResponse

func (*ProtobufPaginationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufPaginationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufPaginationResponse) Validate

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

Validate validates this protobuf pagination response

type V1AddIntroducerOwnerRequest

type V1AddIntroducerOwnerRequest struct {

	// account id
	AccountID string `json:"account_id,omitempty"`

	// introducer id
	IntroducerID string `json:"introducer_id,omitempty"`
}

V1AddIntroducerOwnerRequest v1 add introducer owner request swagger:model v1AddIntroducerOwnerRequest

func (*V1AddIntroducerOwnerRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*V1AddIntroducerOwnerRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1AddIntroducerOwnerRequest) Validate

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

Validate validates this v1 add introducer owner request

type V1AddIntroducerOwnerResponse

type V1AddIntroducerOwnerResponse interface{}

V1AddIntroducerOwnerResponse v1 add introducer owner response swagger:model v1AddIntroducerOwnerResponse

type V1CreateIntroducerRequest

type V1CreateIntroducerRequest struct {

	// introducer id
	IntroducerID string `json:"introducer_id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// organisation id
	OrganisationID string `json:"organisation_id,omitempty"`
}

V1CreateIntroducerRequest v1 create introducer request swagger:model v1CreateIntroducerRequest

func (*V1CreateIntroducerRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*V1CreateIntroducerRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1CreateIntroducerRequest) Validate

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

Validate validates this v1 create introducer request

type V1CreateIntroducerResponse

type V1CreateIntroducerResponse interface{}

V1CreateIntroducerResponse v1 create introducer response swagger:model v1CreateIntroducerResponse

type V1GetIntroducerResponse

type V1GetIntroducerResponse struct {

	// introducer
	Introducer *V1Introducer `json:"introducer,omitempty"`
}

V1GetIntroducerResponse v1 get introducer response swagger:model v1GetIntroducerResponse

func (*V1GetIntroducerResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetIntroducerResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetIntroducerResponse) Validate

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

Validate validates this v1 get introducer response

type V1GetIntroducersResponse

type V1GetIntroducersResponse struct {

	// items
	Items []*V1Introducer `json:"items"`

	// pagination
	Pagination *ProtobufPaginationResponse `json:"pagination,omitempty"`
}

V1GetIntroducersResponse v1 get introducers response swagger:model v1GetIntroducersResponse

func (*V1GetIntroducersResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetIntroducersResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetIntroducersResponse) Validate

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

Validate validates this v1 get introducers response

type V1Introducer

type V1Introducer struct {

	// address
	Address *ProtobufAddress `json:"address,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// The introducer ID is expected to be a UUID.
	IntroducerID string `json:"introducer_id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// organisation id
	OrganisationID string `json:"organisation_id,omitempty"`

	// owners
	Owners []string `json:"owners"`
}

V1Introducer Describes an introducer that provides leads to an organisation. Each introducer can only belong to one organisation but have many owners, owners should be accounts with the introducer role for the given organisation. swagger:model v1Introducer

func (*V1Introducer) MarshalBinary

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

MarshalBinary interface implementation

func (*V1Introducer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1Introducer) Validate

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

Validate validates this v1 introducer

type V1UpdateIntroducerAddressRequest

type V1UpdateIntroducerAddressRequest struct {

	// introducer id
	IntroducerID string `json:"introducer_id,omitempty"`

	// new address
	NewAddress *ProtobufAddress `json:"new_address,omitempty"`
}

V1UpdateIntroducerAddressRequest v1 update introducer address request swagger:model v1UpdateIntroducerAddressRequest

func (*V1UpdateIntroducerAddressRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*V1UpdateIntroducerAddressRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1UpdateIntroducerAddressRequest) Validate

Validate validates this v1 update introducer address request

type V1UpdateIntroducerAddressResponse

type V1UpdateIntroducerAddressResponse interface{}

V1UpdateIntroducerAddressResponse v1 update introducer address response swagger:model v1UpdateIntroducerAddressResponse

Jump to

Keyboard shortcuts

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