taxrate

package
v61.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: MIT Imports: 3 Imported by: 43

Documentation

Overview

Package taxrate provides the /tax_rates APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Del removes a tax rate.

func Get

func Get(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Get returns the details of a tax rate.

func New

func New(params *stripe.TaxRateParams) (*stripe.TaxRate, error)

New creates a new tr.

func Update

func Update(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Update updates a tax rate's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax_rates APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Del removes a tax rate.

func (Client) Get

func (c Client) Get(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Get returns the details of a tax rate.

func (Client) List

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

List returns a list of trs.

func (Client) New

func (c Client) New(params *stripe.TaxRateParams) (*stripe.TaxRate, error)

New creates a new tr.

func (Client) Update

func (c Client) Update(id string, params *stripe.TaxRateParams) (*stripe.TaxRate, error)

Update updates a tax rate's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for trs.

func List

func List(params *stripe.TaxRateListParams) *Iter

List returns a list of trs.

func (*Iter) TaxRate

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

TaxRate returns the tr which the iterator is currently pointing to.

Jump to

Keyboard shortcuts

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