Documentation ¶
Overview ¶
Package invoice provides the /invoices APIs
Index ¶
- func Del(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func FinalizeInvoice(id string, params *stripe.InvoiceFinalizeInvoiceParams) (*stripe.Invoice, error)
- func Get(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func MarkUncollectible(id string, params *stripe.InvoiceMarkUncollectibleParams) (*stripe.Invoice, error)
- func New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func Pay(id string, params *stripe.InvoicePayParams) (*stripe.Invoice, error)
- func SendInvoice(id string, params *stripe.InvoiceSendInvoiceParams) (*stripe.Invoice, error)
- func Upcoming(params *stripe.InvoiceUpcomingParams) (*stripe.Invoice, error)
- func Update(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func VoidInvoice(id string, params *stripe.InvoiceVoidInvoiceParams) (*stripe.Invoice, error)
- type Client
- func (c Client) Del(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) FinalizeInvoice(id string, params *stripe.InvoiceFinalizeInvoiceParams) (*stripe.Invoice, error)
- func (c Client) Get(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) List(listParams *stripe.InvoiceListParams) *Iter
- func (c Client) ListLines(listParams *stripe.InvoiceListLinesParams) *LineItemIter
- func (c Client) MarkUncollectible(id string, params *stripe.InvoiceMarkUncollectibleParams) (*stripe.Invoice, error)
- func (c Client) New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) Pay(id string, params *stripe.InvoicePayParams) (*stripe.Invoice, error)
- func (c Client) Search(params *stripe.InvoiceSearchParams) *SearchIter
- func (c Client) SendInvoice(id string, params *stripe.InvoiceSendInvoiceParams) (*stripe.Invoice, error)
- func (c Client) Upcoming(params *stripe.InvoiceUpcomingParams) (*stripe.Invoice, error)
- func (c Client) UpcomingLines(listParams *stripe.InvoiceUpcomingLinesParams) *LineItemIter
- func (c Client) Update(id string, params *stripe.InvoiceParams) (*stripe.Invoice, error)
- func (c Client) VoidInvoice(id string, params *stripe.InvoiceVoidInvoiceParams) (*stripe.Invoice, error)
- type Iter
- type LineItemIter
- type SearchIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinalizeInvoice ¶
func FinalizeInvoice(id string, params *stripe.InvoiceFinalizeInvoiceParams) (*stripe.Invoice, error)
FinalizeInvoice is the method for the `POST /v1/invoices/{invoice}/finalize` API.
func MarkUncollectible ¶
func MarkUncollectible(id string, params *stripe.InvoiceMarkUncollectibleParams) (*stripe.Invoice, error)
MarkUncollectible is the method for the `POST /v1/invoices/{invoice}/mark_uncollectible` API.
func New ¶
func New(params *stripe.InvoiceParams) (*stripe.Invoice, error)
New creates a new invoice.
func SendInvoice ¶
SendInvoice is the method for the `POST /v1/invoices/{invoice}/send` API.
func Upcoming ¶
func Upcoming(params *stripe.InvoiceUpcomingParams) (*stripe.Invoice, error)
Upcoming is the method for the `GET /v1/invoices/upcoming` API.
func VoidInvoice ¶
VoidInvoice is the method for the `POST /v1/invoices/{invoice}/void` API.
Types ¶
type Client ¶
Client is used to invoke /invoices APIs.
func (Client) FinalizeInvoice ¶
func (c Client) FinalizeInvoice(id string, params *stripe.InvoiceFinalizeInvoiceParams) (*stripe.Invoice, error)
FinalizeInvoice is the method for the `POST /v1/invoices/{invoice}/finalize` API.
func (Client) List ¶
func (c Client) List(listParams *stripe.InvoiceListParams) *Iter
List returns a list of invoices.
func (Client) ListLines ¶
func (c Client) ListLines(listParams *stripe.InvoiceListLinesParams) *LineItemIter
ListLines is the method for the `GET /v1/invoices/{invoice}/lines` API.
func (Client) MarkUncollectible ¶
func (c Client) MarkUncollectible(id string, params *stripe.InvoiceMarkUncollectibleParams) (*stripe.Invoice, error)
MarkUncollectible is the method for the `POST /v1/invoices/{invoice}/mark_uncollectible` API.
func (Client) Search ¶
func (c Client) Search(params *stripe.InvoiceSearchParams) *SearchIter
Search returns a search result containing invoices.
func (Client) SendInvoice ¶
func (c Client) SendInvoice(id string, params *stripe.InvoiceSendInvoiceParams) (*stripe.Invoice, error)
SendInvoice is the method for the `POST /v1/invoices/{invoice}/send` API.
func (Client) UpcomingLines ¶
func (c Client) UpcomingLines(listParams *stripe.InvoiceUpcomingLinesParams) *LineItemIter
UpcomingLines is the method for the `GET /v1/invoices/upcoming/lines` API.
func (Client) VoidInvoice ¶
func (c Client) VoidInvoice(id string, params *stripe.InvoiceVoidInvoiceParams) (*stripe.Invoice, error)
VoidInvoice is the method for the `POST /v1/invoices/{invoice}/void` API.
type Iter ¶
Iter is an iterator for invoices.
func (*Iter) InvoiceList ¶
func (i *Iter) InvoiceList() *stripe.InvoiceList
InvoiceList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type LineItemIter ¶
LineItemIter is an iterator for invoice line items.
func ListLines ¶
func ListLines(params *stripe.InvoiceListLinesParams) *LineItemIter
ListLines is the method for the `GET /v1/invoices/{invoice}/lines` API.
func UpcomingLines ¶
func UpcomingLines(params *stripe.InvoiceUpcomingLinesParams) *LineItemIter
UpcomingLines is the method for the `GET /v1/invoices/upcoming/lines` API.
func (*LineItemIter) InvoiceLineItem ¶
func (i *LineItemIter) InvoiceLineItem() *stripe.InvoiceLineItem
InvoiceLineItem returns the invoice line item which the iterator is currently pointing to.
func (*LineItemIter) InvoiceLineItemList ¶
func (i *LineItemIter) InvoiceLineItemList() *stripe.InvoiceLineItemList
InvoiceLineItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type SearchIter ¶
type SearchIter struct {
*stripe.SearchIter
}
SearchIter is an iterator for invoices.
func Search ¶
func Search(params *stripe.InvoiceSearchParams) *SearchIter
Search returns a search result containing invoices.
func (*SearchIter) Invoice ¶
func (i *SearchIter) Invoice() *stripe.Invoice
Invoice returns the invoice which the iterator is currently pointing to.
func (*SearchIter) InvoiceSearchResult ¶
func (i *SearchIter) InvoiceSearchResult() *stripe.InvoiceSearchResult
InvoiceSearchResult returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.