customer

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 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 Create

func Create(params *CustomerParams) (*Customer, error)

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

func Delete

func Delete(id string) error

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

func Get

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

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

func List

func List(params *CustomerListParams) *CustomerIter

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

func Update

func Update(id string, params *CustomerParams) (*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   Backend
	Tok string
}

Client is used to invoke /customers APIs.

func (Client) Create

func (c Client) Create(params *CustomerParams) (*Customer, error)

func (Client) Delete

func (c Client) Delete(id string) error

func (Client) Get

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

func (Client) List

func (c Client) List(params *CustomerListParams) *CustomerIter

func (Client) Update

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

Jump to

Keyboard shortcuts

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