calculation

package
v80.2.0-beta.2 Latest Latest
Warning

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

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

Documentation

Overview

Package calculation provides the /tax/calculations APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Retrieves a Tax Calculation object, if the calculation hasn't expired.

func New

Calculates tax based on the input and returns a Tax Calculation object.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax/calculations APIs.

func (Client) Get

Retrieves a Tax Calculation object, if the calculation hasn't expired.

func (Client) ListLineItems

func (c Client) ListLineItems(listParams *stripe.TaxCalculationListLineItemsParams) *LineItemIter

Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired.

func (Client) New

Calculates tax based on the input and returns a Tax Calculation object.

type LineItemIter

type LineItemIter struct {
	*stripe.Iter
}

LineItemIter is an iterator for tax calculation line items.

func ListLineItems

Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired.

func (*LineItemIter) TaxCalculationLineItem

func (i *LineItemIter) TaxCalculationLineItem() *stripe.TaxCalculationLineItem

TaxCalculationLineItem returns the tax calculation line item which the iterator is currently pointing to.

func (*LineItemIter) TaxCalculationLineItemList

func (i *LineItemIter) TaxCalculationLineItemList() *stripe.TaxCalculationLineItemList

TaxCalculationLineItemList 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