card

package
v81.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package card provides the card related APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.CardParams) (*stripe.Card, error)

Delete a specified source for a given customer.

func Get

func Get(id string, params *stripe.CardParams) (*stripe.Card, error)

Get returns the details of a card.

func New

func New(params *stripe.CardParams) (*stripe.Card, error)

New creates a new card

func Update

func Update(id string, params *stripe.CardParams) (*stripe.Card, error)

Update a specified source for a given customer.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke card related APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.CardParams) (*stripe.Card, error)

Delete a specified source for a given customer.

func (Client) Get

func (c Client) Get(id string, params *stripe.CardParams) (*stripe.Card, error)

Get returns the details of a card.

func (Client) List

func (c Client) List(listParams *stripe.CardListParams) *Iter

func (Client) New

func (c Client) New(params *stripe.CardParams) (*stripe.Card, error)

New creates a new card

func (Client) Update

func (c Client) Update(id string, params *stripe.CardParams) (*stripe.Card, error)

Update a specified source for a given customer.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for cards.

func List

func List(params *stripe.CardListParams) *Iter

func (*Iter) Card

func (i *Iter) Card() *stripe.Card

Card returns the card which the iterator is currently pointing to.

func (*Iter) CardList

func (i *Iter) CardList() *stripe.CardList

CardList 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