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
URL
List of URL endpoints for this resource.
id
Invoice identifier.
pending
Invoice approval status.
approval_date
Invoice approval date.
invoice_period
Invoicing period (from-to).
analysis_costs
Costs of your analysis.
storage_costs
Storage costs.
total
Total costs.
new()
Create new Invoice object.
Invoice$new(res = NA, ...)
res
Response 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)
deep
Whether 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.