coinins

package
Version: v0.0.0-...-c384578 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: MIT Imports: 3 Imported by: 1

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

Source Files

Jump to

Keyboard shortcuts

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