Documentation ¶
Overview ¶
Package transaction provides the /tax/transactions APIs
Index ¶
- func CreateFromCalculation(params *stripe.TaxTransactionCreateFromCalculationParams) (*stripe.TaxTransaction, error)
- func CreateReversal(params *stripe.TaxTransactionCreateReversalParams) (*stripe.TaxTransaction, error)
- func Get(id string, params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error)
- type Client
- func (c Client) CreateFromCalculation(params *stripe.TaxTransactionCreateFromCalculationParams) (*stripe.TaxTransaction, error)
- func (c Client) CreateReversal(params *stripe.TaxTransactionCreateReversalParams) (*stripe.TaxTransaction, error)
- func (c Client) Get(id string, params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error)
- func (c Client) ListLineItems(listParams *stripe.TaxTransactionListLineItemsParams) *LineItemIter
- type LineItemIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFromCalculation ¶
func CreateFromCalculation(params *stripe.TaxTransactionCreateFromCalculationParams) (*stripe.TaxTransaction, error)
CreateFromCalculation is the method for the `POST /v1/tax/transactions/create_from_calculation` API.
func CreateReversal ¶
func CreateReversal(params *stripe.TaxTransactionCreateReversalParams) (*stripe.TaxTransaction, error)
CreateReversal is the method for the `POST /v1/tax/transactions/create_reversal` API.
func Get ¶
func Get(id string, params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error)
Get returns the details of a tax transaction.
Types ¶
type Client ¶
Client is used to invoke /tax/transactions APIs.
func (Client) CreateFromCalculation ¶
func (c Client) CreateFromCalculation(params *stripe.TaxTransactionCreateFromCalculationParams) (*stripe.TaxTransaction, error)
CreateFromCalculation is the method for the `POST /v1/tax/transactions/create_from_calculation` API.
func (Client) CreateReversal ¶
func (c Client) CreateReversal(params *stripe.TaxTransactionCreateReversalParams) (*stripe.TaxTransaction, error)
CreateReversal is the method for the `POST /v1/tax/transactions/create_reversal` API.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error)
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 ¶
LineItemIter is an iterator for tax transaction line items.
func ListLineItems ¶
func ListLineItems(params *stripe.TaxTransactionListLineItemsParams) *LineItemIter
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.