taxcode

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 taxcode provides the /tax_codes APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.TaxCodeParams) (*stripe.TaxCode, error)

Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax_codes APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.TaxCodeParams) (*stripe.TaxCode, error)

Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.

func (Client) List

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

A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for tax codes.

func List

func List(params *stripe.TaxCodeListParams) *Iter

A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.

func (*Iter) TaxCode

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

TaxCode returns the tax code which the iterator is currently pointing to.

func (*Iter) TaxCodeList

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

TaxCodeList 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