paymentmethod

package
v72.64.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Overview

Package paymentmethod provides the /payment_methods APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

Attach attaches a PaymentMethod.

func Detach

Detach detaches a PaymentMethod.

func Get

Get returns the details of a PaymentMethod.

func New

New creates a new PaymentMethod.

func Update

Update updates a PaymentMethod.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke pms APIs.

func (Client) Attach

Attach attaches a PaymentMethod.

func (Client) Detach

Detach detaches a PaymentMethod.

func (Client) Get

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

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

type Iter struct {
	*stripe.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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL