customer

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package customer provides the /customes APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string) error

Del removes a customer. For more details see https://stripe.com/docs/api#delete_customer.

func Get

func Get(id string, params *stripe.CustomerParams) (*stripe.Customer, error)

Get returns the details of a customer. For more details see https://stripe.com/docs/api#retrieve_customer.

func New

func New(params *stripe.CustomerParams) (*stripe.Customer, error)

New POSTs new customers. For more details see https://stripe.com/docs/api#create_customer.

func Update

func Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)

Update updates a customer's properties. For more details see https://stripe.com/docs/api#update_customer.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /customers APIs.

func (Client) Del

func (c Client) Del(id string) error

func (Client) Get

func (c Client) Get(id string, params *stripe.CustomerParams) (*stripe.Customer, error)

func (Client) List

func (c Client) List(params *stripe.CustomerListParams) *Iter

func (Client) New

func (c Client) New(params *stripe.CustomerParams) (*stripe.Customer, error)

func (Client) Update

func (c Client) Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of Customers. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.CustomerListParams) *Iter

List returns a list of customers. For more details see https://stripe.com/docs/api#list_customers.

func (*Iter) Customer

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

Customer returns the most recent Customer visited by a call to Next.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL