deposits

package
v0.0.0-...-81d47fe Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deposit

type Deposit struct {
	ID           int               `json:"id"`
	OrderID      string            `json:"order_id"`
	CurrencyCode string            `json:"currency_code"`
	Amount       int               `json:"amount"`
	Status       Status            `json:"status"`
	EventDate    time.BitFlyerTime `json:"event_date"`
}

type Request

type Request struct {
	Count  int `url:"count,omitempty"`
	Before int `url:"before,omitempty"`
	After  int `url:"after,omitempty"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

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 []Deposit

type Status

type Status string
const (
	PENDING   Status = "PENDING"
	COMPLETED Status = "COMPLETED"
)

Jump to

Keyboard shortcuts

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