calculation

package
v74.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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 New

New creates a new tax calculation.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax/calculations APIs.

func (Client) ListLineItems

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

ListLineItems is the method for the `GET /v1/tax/calculations/{calculation}/line_items` API.

func (Client) New

New creates a new tax calculation.

type LineItemIter

type LineItemIter struct {
	*stripe.Iter
}

LineItemIter is an iterator for tax calculation line items.

func ListLineItems

ListLineItems is the method for the `GET /v1/tax/calculations/{calculation}/line_items` API.

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