AdminCompanyBilling extends AdminController
Admin Company Billing Settings
Table of Contents
Methods
| acceptedTypes() | Accepted Payment Types for gateways |
| addCoupon() | Add a coupon |
| coupons() | Billing/Payment Coupons page |
| creditHandling() | Credit Handling settings page |
| customization() | Billing/Payment Invoice Customization Settings page |
| deleteCoupon() | Deletes a coupon |
| deliveryMethods() | Accepted invoice delivery methods |
| editCoupon() | Edit a coupon |
| getPackageOptionDetails() | AJAX endpoint to fetch package option values and type for a given package option |
| getPackageOptions() | AJAX endpoint to fetch package options for a given package option group |
| index() | Billing settings page |
| invoices() | Billing/Payment Invoice and Charge Settings page |
| lateFees() | Late fees |
| notices() | Billing/Payment Notices Settings page |
| preAction() | Pre-action |
| clientGroupSettingsExist() | Checks if any client group has client-group-specific settings attached to it |
| formatCouponTerms() | Formats terms into a numerically indexed array of periods and all their assigned terms |
Methods
acceptedTypes()
Accepted Payment Types for gateways
public
acceptedTypes() : mixed
addCoupon()
Add a coupon
public
addCoupon() : mixed
coupons()
Billing/Payment Coupons page
public
coupons() : mixed
creditHandling()
Credit Handling settings page
public
creditHandling() : mixed
customization()
Billing/Payment Invoice Customization Settings page
public
customization() : mixed
deleteCoupon()
Deletes a coupon
public
deleteCoupon() : mixed
deliveryMethods()
Accepted invoice delivery methods
public
deliveryMethods() : mixed
editCoupon()
Edit a coupon
public
editCoupon() : mixed
getPackageOptionDetails()
AJAX endpoint to fetch package option values and type for a given package option
public
getPackageOptionDetails() : mixed
getPackageOptions()
AJAX endpoint to fetch package options for a given package option group
public
getPackageOptions([mixed $default_group_id = null ]) : mixed
Parameters
- $default_group_id : mixed = null
index()
Billing settings page
public
index() : mixed
invoices()
Billing/Payment Invoice and Charge Settings page
public
invoices() : mixed
lateFees()
Late fees
public
lateFees() : mixed
notices()
Billing/Payment Notices Settings page
public
notices() : mixed
preAction()
Pre-action
public
preAction() : mixed
clientGroupSettingsExist()
Checks if any client group has client-group-specific settings attached to it
private
clientGroupSettingsExist() : bool
Return values
bool —True if a client group exists with client-group-specific settings for this company, false otherwise
formatCouponTerms()
Formats terms into a numerically indexed array of periods and all their assigned terms
private
formatCouponTerms(array<string|int, mixed> $terms) : A
Parameters
- $terms : array<string|int, mixed>
-
The terms to format
Return values
A —list of periods and terms