actions

package
v1.8.9-test-4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreate

func HandleCreate(walletz core.WalletService, system *core.System) http.HandlerFunc

HandleCreate godoc @Summary request payment code @Description @Tags actions @Accept json @Produce json @Param request body CreateRequest false "request payments" @Success 200 {object} CreateResponse @Router /actions [post]

Types

type CreateRequest

type CreateRequest struct {
	// follow id to track tx (uuid)
	FollowID string `json:"follow_id,omitempty" format:"uuid" valid:"uuid,required"`
	// tx parameters
	Parameters []string `json:"parameters,omitempty" valid:"required"`
	// payment asset id (optional)
	AssetID string `json:"asset_id,omitempty" format:"uuid"`
	// payment amount (optional)
	Amount decimal.Decimal `json:"amount,omitempty" swaggertype:"number"`
}

type CreateResponse

type CreateResponse struct {
	// payment memo
	Memo string `json:"memo,omitempty"`
	// multisig payment code
	Code string `json:"code,omitempty"`
	// multisig payment code url
	CodeURL string `json:"code_url,omitempty"`
}

Jump to

Keyboard shortcuts

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