invoiceitem

package
v16.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package invoiceitem provides the /invoiceitems APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string) (*stripe.InvoiceItem, error)

Del removes an invoice item. For more details see https://stripe.com/docs/api#delete_invoiceitem.

func Get

Get returns the details of an invoice item. For more details see https://stripe.com/docs/api#retrieve_invoiceitem.

func New

New POSTs new invoice items. For more details see https://stripe.com/docs/api#create_invoiceitem.

func Update

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

Update updates an invoice item's properties. For more details see https://stripe.com/docs/api#update_invoiceitem.

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) (*stripe.InvoiceItem, error)

func (Client) Get

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

func (Client) List

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

func (Client) New

func (Client) Update

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

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of InvoiceItems. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.InvoiceItemListParams) *Iter

List returns a list of invoice items. For more details see https://stripe.com/docs/api#list_invoiceitems.

func (*Iter) InvoiceItem

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

InvoiceItem returns the most recent InvoiceItem visited by a call to Next.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL