Methods
-
default()
-
Gives a good default line item object
Returns:
A default line item (without an ID, type_name, units, or application_id)
- Type
- line_item
-
sanitize(lineItem)
-
Sanitizes the given line item into a valid API line item.
Parameters:
Name Type Description lineItem
line_item The line item to sanitize
Returns:
The sanitized line item
- Type
- line_item
-
translateTypeToName(type)
-
Translates the type_name attribute of a line item to a readable name.
Parameters:
Name Type Description type
string The type_name of a given line item
Returns:
The humanized name of the line item type
- Type
- string