With PSA Integration, a command line interface allows you to invoke the billing ticket manually and alter the day that a monthly bill is created. There are three PSA integration billing procedures you can perform:
• Generate the bill
• Enable a schedule
• Change the day of the schedule
You can also get usage, and view, modify, or delete a schedule. The following table lists the billing commands.
Billing Procedure |
Billing Commands |
Notes |
---|---|---|
Get usage |
./billingInvoker |
The output is: PSA Billing Usage: billingInvoker [generateBill | changeBillDay] generateBill -- generates a billing ticket changeBillDay <day> -- changes the day when the billing ticket should be created. <day> should be between 1-31. |
Generate the bill manually |
./billingInvoker generateBill |
This gathers the information required to create a bill and creates a billing ticket. This is usually performed when you might need a bill in the middle of the scheduled billing period. |
Enable a schedule |
./billingInvoker changeBillDay <day> |
Enter the day of the month (<day>) that the billing ticket should be created. This should be between 1-31. CAUTION: If you select the 31st, the bill might not be generated for months without a day 31. |
Modify a schedule |
./billingInvoker changeBillDay <day> |
Enter the updated day of the month <day> that the billing ticket should be created. This should be between 1-31. CAUTION: If you select the 31st, the bill might not be generated for months without a day 31. |
View a schedule |
billingInvoker getBillDay |
Shows the day of the week. |
Delete a schedule |
billingInvoker disableBilling |
Removes the cron job. |