Documentation ¶
Overview ¶
Package invoiceitem provides the /invoiceitems APIs
Index ¶
- func Del(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func Get(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func New(params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- type Client
- func (c Client) Del(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func (c Client) Get(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func (c Client) List(listParams *stripe.InvoiceItemListParams) *Iter
- func (c Client) New(params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- func (c Client) Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice.
func Get ¶
func Get(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Retrieves the invoice item with the given ID.
func New ¶
func New(params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.
func Update ¶
func Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed.
Types ¶
type Client ¶
Client is used to invoke /invoiceitems APIs.
func (Client) Del ¶
func (c Client) Del(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Retrieves the invoice item with the given ID.
func (Client) List ¶
func (c Client) List(listParams *stripe.InvoiceItemListParams) *Iter
Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.
func (Client) New ¶
func (c Client) New(params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.InvoiceItemParams) (*stripe.InvoiceItem, error)
Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed.
type Iter ¶
Iter is an iterator for invoice items.
func List ¶
func List(params *stripe.InvoiceItemListParams) *Iter
Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.
func (*Iter) InvoiceItem ¶
func (i *Iter) InvoiceItem() *stripe.InvoiceItem
InvoiceItem returns the invoice item which the iterator is currently pointing to.
func (*Iter) InvoiceItemList ¶
func (i *Iter) InvoiceItemList() *stripe.InvoiceItemList
InvoiceItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.