Documentation ¶
Overview ¶
Package customer provides the /customes APIs
Index ¶
- func Del(id string) 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) 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 a iterator for list responses.
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.
Click to show internal directories.
Click to hide internal directories.