transaction

package
v76.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package transaction provides the /tax/transactions APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromCalculation

CreateFromCalculation is the method for the `POST /v1/tax/transactions/create_from_calculation` API.

func CreateReversal

CreateReversal is the method for the `POST /v1/tax/transactions/create_reversal` API.

func Get

Get returns the details of a tax transaction.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tax/transactions APIs.

func (Client) CreateFromCalculation

CreateFromCalculation is the method for the `POST /v1/tax/transactions/create_from_calculation` API.

func (Client) CreateReversal

CreateReversal is the method for the `POST /v1/tax/transactions/create_reversal` API.

func (Client) Get

Get returns the details of a tax transaction.

func (Client) ListLineItems

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

ListLineItems is the method for the `GET /v1/tax/transactions/{transaction}/line_items` API.

type LineItemIter

type LineItemIter struct {
	*stripe.Iter
}

LineItemIter is an iterator for tax transaction line items.

func ListLineItems

ListLineItems is the method for the `GET /v1/tax/transactions/{transaction}/line_items` API.

func (*LineItemIter) TaxTransactionLineItem

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

TaxTransactionLineItem returns the tax transaction line item which the iterator is currently pointing to.

func (*LineItemIter) TaxTransactionLineItemList

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

TaxTransactionLineItemList 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