models

package
v0.0.0-...-f9fae43 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// HealthStatusUp captures enum value "up"
	HealthStatusUp string = "up"

	// HealthStatusDown captures enum value "down"
	HealthStatusDown string = "down"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {

	// error code
	ErrorCode string `json:"error_code,omitempty"`

	// error message
	ErrorMessage string `json:"error_message,omitempty"`
}

APIError Api error swagger:model ApiError

func (*APIError) MarshalBinary

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

MarshalBinary interface implementation

func (*APIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIError) Validate

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

Validate validates this Api error

type Health

type Health struct {

	// Status of the service. Can either be `up` or `down`.
	// Enum: [up down]
	Status string `json:"status,omitempty"`
}

Health health swagger:model Health

func (*Health) MarshalBinary

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

MarshalBinary interface implementation

func (*Health) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Health) Validate

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

Validate validates this health

type Links struct {

	// Link to the first resource in the list
	First string `json:"first,omitempty"`

	// Link to the last resource in the list
	Last string `json:"last,omitempty"`

	// Link to the next resource in the list
	Next string `json:"next,omitempty"`

	// Link to the previous resource in the list
	Prev string `json:"prev,omitempty"`

	// Link to this resource type
	Self string `json:"self,omitempty"`
}

Links links swagger:model Links

func (*Links) MarshalBinary

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

MarshalBinary interface implementation

func (*Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Links) Validate

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

Validate validates this links

type Payment

type Payment struct {

	// attributes
	// Required: true
	Attributes *PaymentAttributes `json:"attributes"`

	// created on
	CreatedOn *int64 `json:"created_on,omitempty"`

	// Unique resource ID
	// Pattern: ^[[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$
	ID string `json:"id,omitempty"`

	// modified on
	ModifiedOn *int64 `json:"modified_on,omitempty"`

	// Unique ID of the organisation this resource is created by
	// Required: true
	// Pattern: ^[[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$
	OrganisationID *string `json:"organisation_id"`

	// Name of the resource type
	// Pattern: ^[A-Za-z_]*$
	Type string `json:"type,omitempty"`

	// Version number
	// Minimum: 0
	Version *int64 `json:"version,omitempty"`
}

Payment payment swagger:model Payment

func (*Payment) MarshalBinary

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

MarshalBinary interface implementation

func (*Payment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Payment) Validate

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

Validate validates this payment

type PaymentAttributes

type PaymentAttributes struct {

	// Amount of money moved between the instructing agent and instructed agent
	// Pattern: ^[0-9.]{0,20}$
	Amount string `json:"amount,omitempty"`

	// beneficiary party
	BeneficiaryParty *PaymentAttributesBeneficiaryParty `json:"beneficiary_party,omitempty"`

	// Currency of the transaction amount. Currency code as defined in [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm)
	Currency string `json:"currency,omitempty"`

	// debtor party
	DebtorParty *PaymentAttributesDebtorParty `json:"debtor_party,omitempty"`

	// Payment reference for beneficiary use
	Reference string `json:"reference,omitempty"`
}

PaymentAttributes payment attributes swagger:model PaymentAttributes

func (*PaymentAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentAttributes) Validate

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

Validate validates this payment attributes

type PaymentAttributesBeneficiaryParty

type PaymentAttributesBeneficiaryParty struct {

	// Name of beneficiary as given with account
	AccountName string `json:"account_name,omitempty"`

	// Beneficiary account number
	AccountNumber string `json:"account_number,omitempty"`
}

PaymentAttributesBeneficiaryParty payment attributes beneficiary party swagger:model PaymentAttributesBeneficiaryParty

func (*PaymentAttributesBeneficiaryParty) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentAttributesBeneficiaryParty) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentAttributesBeneficiaryParty) Validate

Validate validates this payment attributes beneficiary party

type PaymentAttributesDebtorParty

type PaymentAttributesDebtorParty struct {

	// Name of debtor as given with account
	AccountName string `json:"account_name,omitempty"`

	// Debtor account number. Allows upper case and numeric characters.
	AccountNumber string `json:"account_number,omitempty"`
}

PaymentAttributesDebtorParty payment attributes debtor party swagger:model PaymentAttributesDebtorParty

func (*PaymentAttributesDebtorParty) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentAttributesDebtorParty) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentAttributesDebtorParty) Validate

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

Validate validates this payment attributes debtor party

type PaymentCreation

type PaymentCreation struct {

	// data
	Data *Payment `json:"data,omitempty"`
}

PaymentCreation payment creation swagger:model PaymentCreation

func (*PaymentCreation) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentCreation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentCreation) Validate

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

Validate validates this payment creation

type PaymentCreationResponse

type PaymentCreationResponse struct {

	// data
	Data *Payment `json:"data,omitempty"`

	// links
	Links *Links `json:"links,omitempty"`
}

PaymentCreationResponse payment creation response swagger:model PaymentCreationResponse

func (*PaymentCreationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentCreationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentCreationResponse) Validate

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

Validate validates this payment creation response

type PaymentDetailsListResponse

type PaymentDetailsListResponse struct {

	// data
	Data []*Payment `json:"data"`

	// links
	Links *Links `json:"links,omitempty"`
}

PaymentDetailsListResponse payment details list response swagger:model PaymentDetailsListResponse

func (*PaymentDetailsListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentDetailsListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentDetailsListResponse) Validate

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

Validate validates this payment details list response

type PaymentDetailsResponse

type PaymentDetailsResponse struct {

	// data
	Data *Payment `json:"data,omitempty"`

	// links
	Links *Links `json:"links,omitempty"`
}

PaymentDetailsResponse payment details response swagger:model PaymentDetailsResponse

func (*PaymentDetailsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentDetailsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentDetailsResponse) Validate

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

Validate validates this payment details response

type PaymentUpdate

type PaymentUpdate struct {

	// data
	Data *Payment `json:"data,omitempty"`
}

PaymentUpdate payment update swagger:model PaymentUpdate

func (*PaymentUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentUpdate) Validate

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

Validate validates this payment update

Jump to

Keyboard shortcuts

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