Documentation ¶
Overview ¶
Package charge provides API functions related to charges.
For more details, see: https://stripe.com/docs/api/go#charges.
Index ¶
- func Capture(id string, params *stripe.CaptureParams) (*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.CaptureParams) (*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) Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke APIs related to charges.
func (Client) List ¶
func (c Client) List(listParams *stripe.ChargeListParams) *Iter
List returns an iterator that iterates all charges.
type Iter ¶
Iter is an iterator for charges.
func List ¶
func List(params *stripe.ChargeListParams) *Iter
List returns an iterator that iterates all 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.
Click to show internal directories.
Click to hide internal directories.