Documentation ¶
Overview ¶
Package recipient provides the /recipients APIs
Index ¶
- Constants
- func Del(id string) error
- func Get(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)
- func New(params *stripe.RecipientParams) (*stripe.Recipient, error)
- func Update(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)
- type Client
- func (c Client) Del(id string) error
- func (c Client) Get(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)
- func (c Client) List(params *stripe.RecipientListParams) *Iter
- func (c Client) New(params *stripe.RecipientParams) (*stripe.Recipient, error)
- func (c Client) Update(id string, params *stripe.RecipientParams) (*stripe.Recipient, error)
- type Iter
Constants ¶
const ( Individual stripe.RecipientType = "individual" Corp stripe.RecipientType = "corporation" NewAccount stripe.BankAccountStatus = "new" VerifiedAccount stripe.BankAccountStatus = "verified" ValidatedAccount stripe.BankAccountStatus = "validated" ErroredAccount stripe.BankAccountStatus = "errored" )
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Del removes a recipient. For more details see https://stripe.com/docs/api#delete_recipient.
func Get ¶
Get returns the details of a recipient. For more details see https://stripe.com/docs/api#retrieve_recipient.
func New ¶
func New(params *stripe.RecipientParams) (*stripe.Recipient, error)
New POSTs a new recipient. For more details see https://stripe.com/docs/api#create_recipient.
func Update ¶
Update updates a recipient's properties. For more details see https://stripe.com/docs/api#update_recipient.
Types ¶
type Iter ¶
Iter is an iterator for lists of Recipients. The embedded Iter carries methods with it; see its documentation for details.
func List ¶
func List(params *stripe.RecipientListParams) *Iter
List returns a list of recipients. For more details see https://stripe.com/docs/api#list_recipients.