taxrate

package
v80.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package taxrate provides the /tax_rates APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

Retrieves a tax rate with the given ID

func New

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

Creates a new tax rate.

func Update

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

Updates an existing tax rate.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax_rates APIs.

func (Client) Get

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

Retrieves a tax rate with the given ID

func (Client) List

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

Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.

func (Client) New

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

Creates a new tax rate.

func (Client) Update

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

Updates an existing tax rate.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for tax rates.

func List

func List(params *stripe.TaxRateListParams) *Iter

Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.

func (*Iter) TaxRate

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

TaxRate returns the tax rate which the iterator is currently pointing to.

func (*Iter) TaxRateList

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

TaxRateList 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