price

package
v72.35.0-capchase.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package price provides the /prices APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.PriceParams) (*stripe.Price, error)

Get returns the details of a price.

func New

func New(params *stripe.PriceParams) (*stripe.Price, error)

New creates a new price.

func Update

func Update(id string, params *stripe.PriceParams) (*stripe.Price, error)

Update updates a price's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /prices APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.PriceParams) (*stripe.Price, error)

Get returns the details of a price.

func (Client) List

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

List returns a list of prices.

func (Client) New

func (c Client) New(params *stripe.PriceParams) (*stripe.Price, error)

New creates a new price.

func (Client) Update

func (c Client) Update(id string, params *stripe.PriceParams) (*stripe.Price, error)

Update updates a price's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for prices.

func List

func List(params *stripe.PriceListParams) *Iter

List returns a list of prices.

func (*Iter) Price

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

Price returns the price which the iterator is currently pointing to.

func (*Iter) PriceList

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

PriceList 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