R6 Class representing invoice information.
Details
This object contains information about a selected invoice, including costs for analysis, storage, and the invoice period.
Super class
sevenbridges2::Item -> Invoice
Public fields
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.
Methods
Method print()
Print invoice information as a bullet list.
Method reload()
Refresh the Invoice object with updated information.
Arguments
...Other arguments that can be passed to core
api()function like 'fields', etc.
Examples
## ------------------------------------------------
## Method `Invoice$print`
## ------------------------------------------------
if (FALSE) { # \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()
} # }
## ------------------------------------------------
## Method `Invoice$reload`
## ------------------------------------------------
if (FALSE) { # \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()
} # }