person

package
v56.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package person provides the /accounts/persons APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.PersonParams) (*stripe.Person, error)

Del removes a person.

func Get

func Get(id string, params *stripe.PersonParams) (*stripe.Person, error)

Get returns the details of a account person.

func New

func New(params *stripe.PersonParams) (*stripe.Person, error)

New creates a new account person.

func Update

func Update(id string, params *stripe.PersonParams) (*stripe.Person, error)

Update updates a account person's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /accounts/persons APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.PersonParams) (*stripe.Person, error)

Del removes a person.

func (Client) Get

func (c Client) Get(id string, params *stripe.PersonParams) (*stripe.Person, error)

Get returns the details of a account person.

func (Client) List

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

List returns a list of account persons.

func (Client) New

func (c Client) New(params *stripe.PersonParams) (*stripe.Person, error)

New creates a new account person.

func (Client) Update

func (c Client) Update(id string, params *stripe.PersonParams) (*stripe.Person, error)

Update updates a account person's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for account persons.

func List

func List(params *stripe.PersonListParams) *Iter

List returns a list of account persons.

func (*Iter) Person

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

Person returns the account person 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