invoiceitem

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package invoiceitem provides the /invoiceitems APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params *InvoiceItemParams) (*InvoiceItem, error)

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

func Delete

func Delete(id string) error

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

func Get

func Get(id string, params *InvoiceItemParams) (*InvoiceItem, error)

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

func List

func List(params *InvoiceItemListParams) *InvoiceItemIter

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

func Update

func Update(id string, params *InvoiceItemParams) (*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   Backend
	Tok string
}

Client is used to invoke /invoiceitems APIs.

func (Client) Create

func (c Client) Create(params *InvoiceItemParams) (*InvoiceItem, error)

func (Client) Delete

func (c Client) Delete(id string) error

func (Client) Get

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

func (Client) List

func (c Client) List(params *InvoiceItemListParams) *InvoiceItemIter

func (Client) Update

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

Jump to

Keyboard shortcuts

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