Documentation ¶
Overview ¶
Package charge provides the /charges APIs
Index ¶
- func Capture(id string, params *stripe.ChargeCaptureParams) (*stripe.Charge, error)
- func Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- type Client
- func (c Client) Capture(id string, params *stripe.ChargeCaptureParams) (*stripe.Charge, error)
- func (c Client) Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) List(listParams *stripe.ChargeListParams) *Iter
- func (c Client) New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) Search(params *stripe.ChargeSearchParams) *SearchIter
- func (c Client) Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- type Iter
- type SearchIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke /charges APIs.
func (Client) List ¶
func (c Client) List(listParams *stripe.ChargeListParams) *Iter
List returns a list of charges.
func (Client) Search ¶
func (c Client) Search(params *stripe.ChargeSearchParams) *SearchIter
Search returns a search result containing charges.
type Iter ¶
Iter is an iterator for charges.
func (*Iter) ChargeList ¶
func (i *Iter) ChargeList() *stripe.ChargeList
ChargeList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type SearchIter ¶
type SearchIter struct {
*stripe.SearchIter
}
SearchIter is an iterator for charges.
func Search ¶
func Search(params *stripe.ChargeSearchParams) *SearchIter
Search returns a search result containing charges.
func (*SearchIter) Charge ¶
func (i *SearchIter) Charge() *stripe.Charge
Charge returns the charge which the iterator is currently pointing to.
func (*SearchIter) ChargeSearchResult ¶
func (i *SearchIter) ChargeSearchResult() *stripe.ChargeSearchResult
ChargeSearchResult returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.