invoice

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: 5 Imported by: 0

Documentation

Overview

package invoice provides the /invoices APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params *InvoiceParams) (*Invoice, error)

Create POSTs new invoices. For more details see https://stripe.com/docs/api#create_invoice.

func Get

func Get(id string, params *InvoiceParams) (*Invoice, error)

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

func GetNext

func GetNext(params *InvoiceParams) (*Invoice, error)

GetNext returns the upcoming invoice's properties. For more details see https://stripe.com/docs/api#retrieve_customer_invoice.

func List

func List(params *InvoiceListParams) *InvoiceIter

List returns a list of invoices. For more details see https://stripe.com/docs/api#list_customer_invoices.

func ListLines

func ListLines(params *InvoiceLineListParams) *InvoiceLineIter

ListLines returns a list of line items. For more details see https://stripe.com/docs/api#invoice_lines.

func Pay

func Pay(id string, params *InvoiceParams) (*Invoice, error)

Pay pays an invoice. For more details see https://stripe.com/docs/api#pay_invoice.

func Update

func Update(id string, params *InvoiceParams) (*Invoice, error)

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

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is the client used to invoke /invoices APIs.

func (Client) Create

func (c Client) Create(params *InvoiceParams) (*Invoice, error)

func (Client) Get

func (c Client) Get(id string, params *InvoiceParams) (*Invoice, error)

func (Client) GetNext

func (c Client) GetNext(params *InvoiceParams) (*Invoice, error)

func (Client) List

func (c Client) List(params *InvoiceListParams) *InvoiceIter

func (Client) ListLines

func (c Client) ListLines(params *InvoiceLineListParams) *InvoiceLineIter

func (Client) Pay

func (c Client) Pay(id string, params *InvoiceParams) (*Invoice, error)

func (Client) Update

func (c Client) Update(id string, params *InvoiceParams) (*Invoice, error)

Jump to

Keyboard shortcuts

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