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(listParams *stripe.CustomerListParams) *Iter
- func (c Client) ListPaymentMethods(listParams *stripe.CustomerListPaymentMethodsParams) *PaymentMethodIter
- func (c Client) New(params *stripe.CustomerParams) (*stripe.Customer, error)
- func (c Client) Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- type Iter
- type PaymentMethodIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke /customers APIs.
func (Client) List ¶
func (c Client) List(listParams *stripe.CustomerListParams) *Iter
List returns a list of customers.
func (Client) ListPaymentMethods ¶ added in v72.69.0
func (c Client) ListPaymentMethods(listParams *stripe.CustomerListPaymentMethodsParams) *PaymentMethodIter
ListPaymentMethods is the method for the `GET /v1/customers/{customer}/payment_methods` API.
type Iter ¶
Iter is an iterator for customers.
func (*Iter) CustomerList ¶
func (i *Iter) CustomerList() *stripe.CustomerList
CustomerList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type PaymentMethodIter ¶ added in v72.69.0
PaymentMethodIter is an iterator for payment methods.
func ListPaymentMethods ¶ added in v72.69.0
func ListPaymentMethods(params *stripe.CustomerListPaymentMethodsParams) *PaymentMethodIter
ListPaymentMethods is the method for the `GET /v1/customers/{customer}/payment_methods` API.
func (*PaymentMethodIter) PaymentMethod ¶ added in v72.69.0
func (i *PaymentMethodIter) PaymentMethod() *stripe.PaymentMethod
PaymentMethod returns the payment method which the iterator is currently pointing to.
func (*PaymentMethodIter) PaymentMethodList ¶ added in v72.69.0
func (i *PaymentMethodIter) PaymentMethodList() *stripe.PaymentMethodList
PaymentMethodList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.