Documentation ¶
Overview ¶
Package customer provides the /customers APIs
Index ¶
- func Del(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func Get(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func New(params *stripe.CustomerParams) (*stripe.Customer, error)
- func Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- type Client
- func (c Client) Del(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func (c Client) Get(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func (c Client) List(params *stripe.CustomerListParams) *Iter
- func (c Client) New(params *stripe.CustomerParams) (*stripe.Customer, error)
- func (c Client) Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Del removes a customer. For more details see https://stripe.com/docs/api#delete_customer.
func Get ¶
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 ¶
Update updates a customer's properties. For more details see https://stripe.com/docs/api#update_customer.
Types ¶
type 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.