Documentation
¶
Overview ¶
package customer provides the /customes APIs
Index ¶
- func Create(params *CustomerParams) (*Customer, error)
- func Delete(id string) error
- func Get(id string, params *CustomerParams) (*Customer, error)
- func List(params *CustomerListParams) *CustomerIter
- func Update(id string, params *CustomerParams) (*Customer, error)
- type Client
- func (c Client) Create(params *CustomerParams) (*Customer, error)
- func (c Client) Delete(id string) error
- func (c Client) Get(id string, params *CustomerParams) (*Customer, error)
- func (c Client) List(params *CustomerListParams) *CustomerIter
- func (c Client) Update(id string, params *CustomerParams) (*Customer, error)
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 ¶
Delete 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 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 ¶
Update updates a customer's properties. For more details see https://stripe.com/docs/api#update_customer.
Types ¶
Click to show internal directories.
Click to hide internal directories.