models

package
v0.0.0-...-553ec8c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GetTransactionResponseStatusCreated captures enum value "created"
	GetTransactionResponseStatusCreated string = "created"

	// GetTransactionResponseStatusProcessed captures enum value "processed"
	GetTransactionResponseStatusProcessed string = "processed"

	// GetTransactionResponseStatusCanceled captures enum value "canceled"
	GetTransactionResponseStatusCanceled string = "canceled"

	// GetTransactionResponseStatusFailed captures enum value "failed"
	GetTransactionResponseStatusFailed string = "failed"

	// GetTransactionResponseStatusSucceeded captures enum value "succeeded"
	GetTransactionResponseStatusSucceeded string = "succeeded"
)
View Source
const (

	// GetTransactionStatusResponseTransactionStatusCreated captures enum value "created"
	GetTransactionStatusResponseTransactionStatusCreated string = "created"

	// GetTransactionStatusResponseTransactionStatusProcessed captures enum value "processed"
	GetTransactionStatusResponseTransactionStatusProcessed string = "processed"

	// GetTransactionStatusResponseTransactionStatusCanceled captures enum value "canceled"
	GetTransactionStatusResponseTransactionStatusCanceled string = "canceled"

	// GetTransactionStatusResponseTransactionStatusFailed captures enum value "failed"
	GetTransactionStatusResponseTransactionStatusFailed string = "failed"

	// GetTransactionStatusResponseTransactionStatusSucceeded captures enum value "succeeded"
	GetTransactionStatusResponseTransactionStatusSucceeded string = "succeeded"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptTransactionRequest

type AcceptTransactionRequest struct {

	// sender
	// Required: true
	Sender *AcceptTransactionUserRequest `json:"sender"`
}

AcceptTransactionRequest accept transaction request

swagger:model AcceptTransactionRequest

func (*AcceptTransactionRequest) ContextValidate

func (m *AcceptTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this accept transaction request based on the context it is used

func (*AcceptTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AcceptTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AcceptTransactionRequest) Validate

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

Validate validates this accept transaction request

type AcceptTransactionUserRequest

type AcceptTransactionUserRequest struct {

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`

	// wallet id
	// Required: true
	// Format: uuid
	WalletID *strfmt.UUID `json:"wallet_id"`
}

AcceptTransactionUserRequest accept transaction user request

swagger:model AcceptTransactionUserRequest

func (*AcceptTransactionUserRequest) ContextValidate

func (m *AcceptTransactionUserRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this accept transaction user request based on context it is used

func (*AcceptTransactionUserRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AcceptTransactionUserRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AcceptTransactionUserRequest) Validate

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

Validate validates this accept transaction user request

type CancelTransactionRequest

type CancelTransactionRequest struct {

	// reason
	Reason string `json:"reason,omitempty"`
}

CancelTransactionRequest cancel transaction request

swagger:model CancelTransactionRequest

func (*CancelTransactionRequest) ContextValidate

func (m *CancelTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cancel transaction request based on context it is used

func (*CancelTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CancelTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CancelTransactionRequest) Validate

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

Validate validates this cancel transaction request

type CreateTransactionRequest

type CreateTransactionRequest struct {

	// money info
	// Required: true
	MoneyInfo *MoneyInfo `json:"money_info"`

	// receiver
	// Required: true
	Receiver *CreateTransactionUserRequest `json:"receiver"`
}

CreateTransactionRequest create transaction request

swagger:model CreateTransactionRequest

func (*CreateTransactionRequest) ContextValidate

func (m *CreateTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create transaction request based on the context it is used

func (*CreateTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTransactionRequest) Validate

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

Validate validates this create transaction request

type CreateTransactionResponse

type CreateTransactionResponse struct {

	// transaction id
	// Required: true
	// Format: uuid
	TransactionID *strfmt.UUID `json:"transaction_id"`
}

CreateTransactionResponse create transaction response

swagger:model CreateTransactionResponse

func (*CreateTransactionResponse) ContextValidate

func (m *CreateTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create transaction response based on context it is used

func (*CreateTransactionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTransactionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTransactionResponse) Validate

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

Validate validates this create transaction response

type CreateTransactionUserRequest

type CreateTransactionUserRequest struct {

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`

	// wallet id
	// Required: true
	// Format: uuid
	WalletID *strfmt.UUID `json:"wallet_id"`
}

CreateTransactionUserRequest create transaction user request

swagger:model CreateTransactionUserRequest

func (*CreateTransactionUserRequest) ContextValidate

func (m *CreateTransactionUserRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create transaction user request based on context it is used

func (*CreateTransactionUserRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTransactionUserRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTransactionUserRequest) Validate

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

Validate validates this create transaction user request

type EditMoneyInfo

type EditMoneyInfo struct {

	// amount
	Amount int64 `json:"amount,omitempty"`

	// currency
	Currency string `json:"currency,omitempty"`

	// method
	Method string `json:"method,omitempty"`
}

EditMoneyInfo edit money info

swagger:model EditMoneyInfo

func (*EditMoneyInfo) ContextValidate

func (m *EditMoneyInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit money info based on context it is used

func (*EditMoneyInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*EditMoneyInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EditMoneyInfo) Validate

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

Validate validates this edit money info

type EditTransactionRequest

type EditTransactionRequest struct {

	// money info
	MoneyInfo *EditMoneyInfo `json:"money_info,omitempty"`
}

EditTransactionRequest edit transaction request

swagger:model EditTransactionRequest

func (*EditTransactionRequest) ContextValidate

func (m *EditTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this edit transaction request based on the context it is used

func (*EditTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EditTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EditTransactionRequest) Validate

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

Validate validates this edit transaction request

type ErrorResponse

type ErrorResponse struct {

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

	// message
	Message string `json:"message,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

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

Validate validates this error response

type GetTransactionResponse

type GetTransactionResponse struct {

	// amount
	// Required: true
	Amount *int64 `json:"amount"`

	// currency
	// Required: true
	Currency *string `json:"currency"`

	// method
	// Required: true
	Method *string `json:"method"`

	// receiver
	// Required: true
	Receiver *GetTransactionUserResponse `json:"receiver"`

	// sender
	Sender *GetTransactionUserResponse `json:"sender,omitempty"`

	// status
	// Required: true
	// Enum: [created processed canceled failed succeeded]
	Status *string `json:"status"`
}

GetTransactionResponse get transaction response

swagger:model GetTransactionResponse

func (*GetTransactionResponse) ContextValidate

func (m *GetTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get transaction response based on the context it is used

func (*GetTransactionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTransactionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTransactionResponse) Validate

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

Validate validates this get transaction response

type GetTransactionStatusResponse

type GetTransactionStatusResponse struct {

	// transaction status
	// Required: true
	// Enum: [created processed canceled failed succeeded]
	TransactionStatus *string `json:"transaction_status"`
}

GetTransactionStatusResponse get transaction status response

swagger:model GetTransactionStatusResponse

func (*GetTransactionStatusResponse) ContextValidate

func (m *GetTransactionStatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get transaction status response based on context it is used

func (*GetTransactionStatusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTransactionStatusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTransactionStatusResponse) Validate

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

Validate validates this get transaction status response

type GetTransactionUserResponse

type GetTransactionUserResponse struct {

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`

	// wallet id
	// Required: true
	// Format: uuid
	WalletID *strfmt.UUID `json:"wallet_id"`
}

GetTransactionUserResponse get transaction user response

swagger:model GetTransactionUserResponse

func (*GetTransactionUserResponse) ContextValidate

func (m *GetTransactionUserResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get transaction user response based on context it is used

func (*GetTransactionUserResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTransactionUserResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTransactionUserResponse) Validate

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

Validate validates this get transaction user response

type LoginRequest

type LoginRequest struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// password
	// Required: true
	Password *string `json:"password"`
}

LoginRequest login request

swagger:model LoginRequest

func (*LoginRequest) ContextValidate

func (m *LoginRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login request based on context it is used

func (*LoginRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginRequest) Validate

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

Validate validates this login request

type LoginResponse

type LoginResponse struct {

	// auth token
	// Required: true
	AuthToken *string `json:"auth_token"`
}

LoginResponse login response

swagger:model LoginResponse

func (*LoginResponse) ContextValidate

func (m *LoginResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login response based on context it is used

func (*LoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginResponse) Validate

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

Validate validates this login response

type MoneyInfo

type MoneyInfo struct {

	// amount
	// Required: true
	Amount *int64 `json:"amount"`

	// currency
	// Required: true
	Currency *string `json:"currency"`

	// method
	// Required: true
	Method *string `json:"method"`
}

MoneyInfo money info

swagger:model MoneyInfo

func (*MoneyInfo) ContextValidate

func (m *MoneyInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this money info based on context it is used

func (*MoneyInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*MoneyInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MoneyInfo) Validate

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

Validate validates this money info

Jump to

Keyboard shortcuts

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