Documentation ¶
Overview ¶
Package customer provides the /customers APIs
Index ¶
- func CreateFundingInstructions(id string, params *stripe.CustomerCreateFundingInstructionsParams) (*stripe.FundingInstructions, error)
- func Del(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func DeleteDiscount(id string, params *stripe.CustomerDeleteDiscountParams) (*stripe.Customer, error)
- func Get(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func New(params *stripe.CustomerParams) (*stripe.Customer, error)
- func RetrievePaymentMethod(id string, params *stripe.CustomerRetrievePaymentMethodParams) (*stripe.PaymentMethod, error)
- func Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- type Client
- func (c Client) CreateFundingInstructions(id string, params *stripe.CustomerCreateFundingInstructionsParams) (*stripe.FundingInstructions, error)
- func (c Client) Del(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- func (c Client) DeleteDiscount(id string, params *stripe.CustomerDeleteDiscountParams) (*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) RetrievePaymentMethod(id string, params *stripe.CustomerRetrievePaymentMethodParams) (*stripe.PaymentMethod, error)
- func (c Client) Search(params *stripe.CustomerSearchParams) *SearchIter
- func (c Client) Update(id string, params *stripe.CustomerParams) (*stripe.Customer, error)
- type Iter
- type PaymentMethodIter
- type SearchIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFundingInstructions ¶
func CreateFundingInstructions(id string, params *stripe.CustomerCreateFundingInstructionsParams) (*stripe.FundingInstructions, error)
CreateFundingInstructions is the method for the `POST /v1/customers/{customer}/funding_instructions` API.
func DeleteDiscount ¶
func DeleteDiscount(id string, params *stripe.CustomerDeleteDiscountParams) (*stripe.Customer, error)
DeleteDiscount is the method for the `DELETE /v1/customers/{customer}/discount` API.
func New ¶
func New(params *stripe.CustomerParams) (*stripe.Customer, error)
New creates a new customer.
func RetrievePaymentMethod ¶
func RetrievePaymentMethod(id string, params *stripe.CustomerRetrievePaymentMethodParams) (*stripe.PaymentMethod, error)
RetrievePaymentMethod is the method for the `GET /v1/customers/{customer}/payment_methods/{payment_method}` API.
Types ¶
type Client ¶
Client is used to invoke /customers APIs.
func (Client) CreateFundingInstructions ¶
func (c Client) CreateFundingInstructions(id string, params *stripe.CustomerCreateFundingInstructionsParams) (*stripe.FundingInstructions, error)
CreateFundingInstructions is the method for the `POST /v1/customers/{customer}/funding_instructions` API.
func (Client) DeleteDiscount ¶
func (c Client) DeleteDiscount(id string, params *stripe.CustomerDeleteDiscountParams) (*stripe.Customer, error)
DeleteDiscount is the method for the `DELETE /v1/customers/{customer}/discount` API.
func (Client) List ¶
func (c Client) List(listParams *stripe.CustomerListParams) *Iter
List returns a list of customers.
func (Client) ListPaymentMethods ¶
func (c Client) ListPaymentMethods(listParams *stripe.CustomerListPaymentMethodsParams) *PaymentMethodIter
ListPaymentMethods is the method for the `GET /v1/customers/{customer}/payment_methods` API.
func (Client) RetrievePaymentMethod ¶
func (c Client) RetrievePaymentMethod(id string, params *stripe.CustomerRetrievePaymentMethodParams) (*stripe.PaymentMethod, error)
RetrievePaymentMethod is the method for the `GET /v1/customers/{customer}/payment_methods/{payment_method}` API.
func (Client) Search ¶
func (c Client) Search(params *stripe.CustomerSearchParams) *SearchIter
Search returns a search result containing customers.
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 ¶
PaymentMethodIter is an iterator for payment methods.
func ListPaymentMethods ¶
func ListPaymentMethods(params *stripe.CustomerListPaymentMethodsParams) *PaymentMethodIter
ListPaymentMethods is the method for the `GET /v1/customers/{customer}/payment_methods` API.
func (*PaymentMethodIter) PaymentMethod ¶
func (i *PaymentMethodIter) PaymentMethod() *stripe.PaymentMethod
PaymentMethod returns the payment method which the iterator is currently pointing to.
func (*PaymentMethodIter) PaymentMethodList ¶
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.
type SearchIter ¶
type SearchIter struct {
*stripe.SearchIter
}
SearchIter is an iterator for customers.
func Search ¶
func Search(params *stripe.CustomerSearchParams) *SearchIter
Search returns a search result containing customers.
func (*SearchIter) Customer ¶
func (i *SearchIter) Customer() *stripe.Customer
Customer returns the customer which the iterator is currently pointing to.
func (*SearchIter) CustomerSearchResult ¶
func (i *SearchIter) CustomerSearchResult() *stripe.CustomerSearchResult
CustomerSearchResult returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.