paymentmethod

package
v78.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package paymentmethod provides the /payment_methods APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

Attach is the method for the `POST /v1/payment_methods/{payment_method}/attach` API.

func Detach

Detach is the method for the `POST /v1/payment_methods/{payment_method}/detach` API.

func Get

Get returns the details of a payment method.

func New

New creates a new payment method.

func Update

Update updates a payment method's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /payment_methods APIs.

func (Client) Attach

Attach is the method for the `POST /v1/payment_methods/{payment_method}/attach` API.

func (Client) Detach

Detach is the method for the `POST /v1/payment_methods/{payment_method}/detach` API.

func (Client) Get

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

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

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

Jump to

Keyboard shortcuts

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