| Invoices | R Documentation |
R6 Class representing invoice resource endpoints
sevenbridges2::Resource -> Invoices
URLList of URL endpoints for this resource.
new()Create a new Invoices object.
Invoices$new(...)
...Other response arguments.
query()The call returns information about all your available
invoices, unless you use the billing_group query parameter to specify
the ID of a particular billing group, in which case it will return the
invoice incurred by that billing group only.
Invoices$query(
billing_group = NULL,
limit = getOption("sevenbridges2")$limit,
offset = getOption("sevenbridges2")$offset,
...
)billing_groupID of a billing group or billing group object you want to list invoices for. Optional.
limitThe maximum number of collection items to return
for a single request. Minimum value is 1.
The maximum value is 100 and the default value is 50.
This is a pagination-specific attribute.
offsetThe zero-based starting index in the entire collection
of the first item to return. The default value is 0.
This is a pagination-specific attribute.
...Other arguments that can be passed to core api() function
like query parameters or 'fields', etc.
Collection of Invoice objects.
\dontrun{
invoices_object <- Invoices$new(
auth = auth
)
# List all your invoices
invoices_object$query(billing_group = billing_group)
}
get()This call retrieves information about a selected invoice,
including the costs for analysis and storage, and the invoice period.
Use the call to list invoices to retrieve the invoice_ids for a
specified billing group.
Invoices$get(id, ...)
idThe ID of the invoice you are querying.
...Other arguments that can be passed to core api() function
like 'fields', etc.
Invoice object.
\dontrun{
invoices_object <- Invoices$new(
auth = auth
)
# Get a single invoice by id
invoices_object$get(id = id)
}
clone()The objects of this class are cloneable with this method.
Invoices$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `Invoices$query`
## ------------------------------------------------
## Not run:
invoices_object <- Invoices$new(
auth = auth
)
# List all your invoices
invoices_object$query(billing_group = billing_group)
## End(Not run)
## ------------------------------------------------
## Method `Invoices$get`
## ------------------------------------------------
## Not run:
invoices_object <- Invoices$new(
auth = auth
)
# Get a single invoice by id
invoices_object$get(id = id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.