Documentation ¶
Overview ¶
Package paymentmethod provides the /payment_methods APIs
Index ¶
- func Attach(id string, params *stripe.PaymentMethodAttachParams) (*stripe.PaymentMethod, error)
- func Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
- func Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- func New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- func Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- type Client
- func (c Client) Attach(id string, params *stripe.PaymentMethodAttachParams) (*stripe.PaymentMethod, error)
- func (c Client) Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
- func (c Client) Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- func (c Client) List(listParams *stripe.PaymentMethodListParams) *Iter
- func (c Client) New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- func (c Client) Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(id string, params *stripe.PaymentMethodAttachParams) (*stripe.PaymentMethod, error)
Attach is the method for the `POST /v1/payment_methods/{payment_method}/attach` API.
func Detach ¶
func Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
Detach is the method for the `POST /v1/payment_methods/{payment_method}/detach` API.
func Get ¶
func Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Get returns the details of a payment method.
func New ¶
func New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
New creates a new payment method.
func Update ¶
func Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Update updates a payment method's properties.
Types ¶
type Client ¶
Client is used to invoke /payment_methods APIs.
func (Client) Attach ¶
func (c Client) Attach(id string, params *stripe.PaymentMethodAttachParams) (*stripe.PaymentMethod, error)
Attach is the method for the `POST /v1/payment_methods/{payment_method}/attach` API.
func (Client) Detach ¶
func (c Client) Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
Detach is the method for the `POST /v1/payment_methods/{payment_method}/detach` API.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Get returns the details of a payment method.
func (Client) List ¶
func (c Client) List(listParams *stripe.PaymentMethodListParams) *Iter
List returns a list of payment methods.
func (Client) New ¶
func (c Client) New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
New creates a new payment method.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Update updates a payment method's properties.
type Iter ¶
Iter is an iterator for payment methods.
func List ¶
func List(params *stripe.PaymentMethodListParams) *Iter
List returns a list of payment methods.
func (*Iter) PaymentMethod ¶
func (i *Iter) PaymentMethod() *stripe.PaymentMethod
PaymentMethod returns the payment method which the iterator is currently pointing to.
func (*Iter) PaymentMethodList ¶
func (i *Iter) 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.