recipient

package
v60.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package recipient provides the /recipients APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Del removes a recipient.

func Get

func Get(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Get returns the details of a recipient.

func Update

func Update(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Update updates a recipient's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /recipients APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Del removes a recipient.

func (Client) Get

func (c Client) Get(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Get returns the details of a recipient.

func (Client) List

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

List returns a list of recipients.

func (Client) Update

func (c Client) Update(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)

Update updates a recipient's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for recipients.

func List

func List(params *stripe.RecipientListParams) *Iter

List returns a list of recipients.

func (*Iter) Recipient

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

Recipient returns the recipient 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