coinins

package
v0.0.0-...-935a062 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIPath string = "/v1/me/getcoinins"

	PENDING   Status = "PENDING"
	COMPLETED Status = "COMPLETED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coinin

type Coinin struct {
	ID           int                `json:"id"`
	OrderID      string             `json:"order_id"`
	CurrencyCode types.CurrencyCode `json:"currency_code"`
	Amount       float64            `json:"amount"`
	Address      string             `json:"address"`
	TxHash       string             `json:"tx_hash"`
	Status       Status             `json:"status"`     // If the Bitcoin deposit is being processed, it will be listed as "PENDING". If the deposit has been completed, it will be listed as "COMPLETED"
	EventDate    string             `json:"event_date"` // TODO: Treat timestamp as time.Time
}

type Request

type Request struct {
	Pagination types.Pagination `json:",inline"`
}

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

func (req *Request) Payload() []byte

func (*Request) Query

func (req *Request) Query() string

type Response

type Response []Coinin

type Status

type Status string

Jump to

Keyboard shortcuts

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