| Invoice | R Documentation |
R6 Class representing invoice information.
This object contains information about a selected invoice, including costs for analysis, storage, and the invoice period.
sevenbridges2::Item -> Invoice
URLList of URL endpoints for this resource.
idInvoice identifier.
pendingInvoice approval status.
approval_dateInvoice approval date.
invoice_periodInvoicing period (from-to).
analysis_costsCosts of your analysis.
storage_costsStorage costs.
totalTotal costs.
new()Create new Invoice object.
Invoice$new(res = NA, ...)
resResponse containing Invoice object information.
...Other response arguments.
print()Print invoice information as a bullet list.
Invoice$print()
\dontrun{
# x is API response when invoice is requested
invoice_object <- Invoice$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print invoice object
invoice_object$print()
}
reload()Refresh the Invoice object with updated information.
Invoice$reload(...)
...Other arguments that can be passed to core api() function
like 'fields', etc.
Invoice object.
\dontrun{
# x is API response when invoice is requested
invoice_object <- Invoice$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload invoice object
invoice_object$reload()
}
clone()The objects of this class are cloneable with this method.
Invoice$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `Invoice$print`
## ------------------------------------------------
## Not run:
# x is API response when invoice is requested
invoice_object <- Invoice$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print invoice object
invoice_object$print()
## End(Not run)
## ------------------------------------------------
## Method `Invoice$reload`
## ------------------------------------------------
## Not run:
# x is API response when invoice is requested
invoice_object <- Invoice$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload invoice object
invoice_object$reload()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.