balance

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package balance provides the /balance APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(params *BalanceParams) (*Balance, error)

Get returns the details of your balance. For more details see https://stripe.com/docs/api#retrieve_balance.

func GetTx

func GetTx(id string, params *TxParams) (*Transaction, error)

GetTx returns the details of a balance transaction. For more details see https://stripe.com/docs/api#retrieve_balance_transaction.

func List

func List(params *TxListParams) *TransactionIter

List returns a list of balance transactions. For more details see https://stripe.com/docs/api#balance_history.

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is used to invoke /balance and transaction-related APIs.

func (Client) Get

func (c Client) Get(params *BalanceParams) (*Balance, error)

func (Client) GetTx

func (c Client) GetTx(id string, params *TxParams) (*Transaction, error)

func (Client) List

func (c Client) List(params *TxListParams) *TransactionIter

Jump to

Keyboard shortcuts

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