Billing Functions#
This section documents billing functions used in the automation testing suite.
selectInvoiceOption#
Deprecated since version 1.0: Use createInvoice or direct dropdown interactions instead.
selectLineItemType#
Deprecated since version 1.0: Use addLineItem instead.
FilloutLineItemDescription#
Deprecated since version 1.0: Use addLineItem instead.
InputLineItemAmount#
Deprecated since version 1.0: Use addLineItem instead.
createInvoice#
- createInvoice(page, options, billingType, entityName, invoiceDetails, internalNote, invoiceDate, invoiceType, noteToBiller, lineItems, shouldSave, verifySuccess)#
Main orchestrator function for creating an invoice. Throws InvoiceCreationError on failure.
- Arguments:
page (Page) – Playwright Page
options (CreateInvoiceOptions) – CreateInvoiceOptions
entityName (string)
invoiceDetails (InvoiceDetails)
internalNote (string)
invoiceDate (Date)
noteToBiller (string)
shouldSave (boolean)
verifySuccess (boolean)
- Returns:
Promise –
addLineItem#
- addLineItem(page, lineItem, amount, description, itemType, isFirstItem)#
Adds a single line item to the invoice.
deleteLineItem#
fillInvoiceDetails#
- fillInvoiceDetails(page, details, internalNote, invoiceDate, invoiceType, noteToBiller)#
Fills the invoice details (date, type, notes).
- Arguments:
page (Page) – Playwright Page
details (InvoiceDetails) – Invoice details object
internalNote (string)
invoiceDate (Date)
noteToBiller (string)
- Returns:
Promise –
openAddInvoiceDialog#
selectBillingEntity#
- selectBillingEntity(page, billingType, entityName)#
Selects the billing type (Sponsor Organizations or CIT Corporations) and specific entity.