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 attaches a PaymentMethod.
func Detach ¶
func Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
Detach detaches a PaymentMethod.
func Get ¶
func Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Get returns the details of a PaymentMethod.
func New ¶
func New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
New creates a new PaymentMethod.
func Update ¶
func Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Update updates a PaymentMethod.
Types ¶
type Client ¶
Client is used to invoke pms APIs.
func (Client) Attach ¶
func (c Client) Attach(id string, params *stripe.PaymentMethodAttachParams) (*stripe.PaymentMethod, error)
Attach attaches a PaymentMethod.
func (Client) Detach ¶
func (c Client) Detach(id string, params *stripe.PaymentMethodDetachParams) (*stripe.PaymentMethod, error)
Detach detaches a PaymentMethod.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Get returns the details of a PaymentMethod.
func (Client) List ¶
func (c Client) List(listParams *stripe.PaymentMethodListParams) *Iter
List returns a list of PaymentMethods.
func (Client) New ¶
func (c Client) New(params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
New creates a new PaymentMethod.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.PaymentMethodParams) (*stripe.PaymentMethod, error)
Update updates a PaymentMethod.
type Iter ¶
Iter is an iterator for PaymentMethods.
func List ¶
func List(params *stripe.PaymentMethodListParams) *Iter
List returns a list of PaymentMethods.
func (*Iter) PaymentMethod ¶
func (i *Iter) PaymentMethod() *stripe.PaymentMethod
PaymentMethod returns the application fee which the iterator is currently pointing to.
Click to show internal directories.
Click to hide internal directories.