Documentation ¶
Overview ¶
Package invoice provides the /invoices APIs
Index ¶
- Constants
- func Get(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func GetNext(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func Pay(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func Update(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- type Client
- func (c Client) Get(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) GetNext(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) List(params *stripe.InvoiceListParams) *Iter
- func (c Client) ListLines(params *stripe.InvoiceLineListParams) *LineIter
- func (c Client) New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) Pay(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) Update(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- type Iter
- type LineIter
Constants ¶
const ( TypeInvoiceItem stripe.InvoiceLineType = "invoiceitem" TypeSubscription stripe.InvoiceLineType = "subscription" )
Variables ¶
This section is empty.
Functions ¶
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 *stripe.InvoiceParams) (*stripe.Invoice, error)
GetNext returns the upcoming invoice's properties. For more details see https://stripe.com/docs/api#retrieve_customer_invoice.
func New ¶
func New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
New POSTs new invoices. For more details see https://stripe.com/docs/api#create_invoice.
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.
Types ¶
type Client ¶
Client is the client used to invoke /invoices APIs.
type Iter ¶
Iter is a iterator for list responses.
func List ¶
func List(params *stripe.InvoiceListParams) *Iter
List returns a list of invoices. For more details see https://stripe.com/docs/api#list_customer_invoices.
type LineIter ¶
LineIter is a iterator for list responses.
func ListLines ¶
func ListLines(params *stripe.InvoiceLineListParams) *LineIter
ListLines returns a list of line items. For more details see https://stripe.com/docs/api#invoice_lines.