Documentation ¶
Overview ¶
package invoice provides the /invoices APIs
Index ¶
- func Create(params *InvoiceParams) (*Invoice, error)
- func Get(id string, params *InvoiceParams) (*Invoice, error)
- func GetNext(params *InvoiceParams) (*Invoice, error)
- func List(params *InvoiceListParams) *InvoiceIter
- func ListLines(params *InvoiceLineListParams) *InvoiceLineIter
- func Pay(id string, params *InvoiceParams) (*Invoice, error)
- func Update(id string, params *InvoiceParams) (*Invoice, error)
- type Client
- func (c Client) Create(params *InvoiceParams) (*Invoice, error)
- func (c Client) Get(id string, params *InvoiceParams) (*Invoice, error)
- func (c Client) GetNext(params *InvoiceParams) (*Invoice, error)
- func (c Client) List(params *InvoiceListParams) *InvoiceIter
- func (c Client) ListLines(params *InvoiceLineListParams) *InvoiceLineIter
- func (c Client) Pay(id string, params *InvoiceParams) (*Invoice, error)
- func (c Client) Update(id string, params *InvoiceParams) (*Invoice, error)
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 ¶
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 ¶
Pay pays an invoice. For more details see https://stripe.com/docs/api#pay_invoice.
func Update ¶
Update updates an invoice's properties. For more details see https://stripe.com/docs/api#update_invoice.