balance

package
v62.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 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 *stripe.BalanceParams) (*stripe.Balance, error)

Get retrieves an account's balance

func GetBalanceTransaction

func GetBalanceTransaction(id string, params *stripe.BalanceTransactionParams) (*stripe.BalanceTransaction, error)

GetBalanceTransaction retrieves a balance transaction Deprecated: Prefer using balancetransaction.Get instead.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

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

func (Client) Get

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

Get retrieves an account's balance

func (Client) GetBalanceTransaction

func (c Client) GetBalanceTransaction(id string, params *stripe.BalanceTransactionParams) (*stripe.BalanceTransaction, error)

GetBalanceTransaction retrieves a balance transaction Deprecated: Prefer using balancetransaction.Get instead.

func (Client) List

func (c Client) List(listParams *stripe.BalanceTransactionListParams) *Iter

List returns a list of balance transactions. Deprecated: Prefer using balancetransaction.List instead.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for balance transactions.

func List

List returns a list of balance transactions Deprecated: Prefer using balancetransaction.List instead.

func (*Iter) BalanceTransaction

func (i *Iter) BalanceTransaction() *stripe.BalanceTransaction

BalanceTransaction returns the balance transaction which the iterator is currently pointing to.

Jump to

Keyboard shortcuts

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