invoiceitem

package
v72.46.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package invoiceitem provides the /invoiceitems APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes an invoice item.

func Get

Get returns the details of an invoice item.

func New

New creates a new invoice item.

func Update

func Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)

Update updates an invoice item's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /invoiceitems APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)

Del removes an invoice item.

func (Client) Get

func (c Client) Get(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)

Get returns the details of an invoice item.

func (Client) List

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

List returns a list of invoice items.

func (Client) New

New creates a new invoice item.

func (Client) Update

func (c Client) Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)

Update updates an invoice item's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for invoice items.

func List

func List(params *stripe.InvoiceItemListParams) *Iter

List returns a list of invoice items.

func (*Iter) InvoiceItem

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

InvoiceItem returns the invoice item which the iterator is currently pointing to.

func (*Iter) InvoiceItemList

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

InvoiceItemList 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