Methods Summary | ||
---|---|---|
public
|
||
public
|
||
public
|
#
get_next_payment( )
Next payment date and amount for the account
Array fields-
date: date of next payment for account. In the event the
information cannot be found (reseller account for example),
-1 is returned.
amount: amount for next payment
|
|
public
|
#
list_payments( )
array list_payments
Sample response:
Array
(
[0] => Array
(
[date] => 1469937612
[amount] => 65.00
[service] => Webhosting->Developer
[number] => C-2ALQUJ67SSQXIDJEESZFRMZ
[note] =>
[type] => credit
)
)
|
|
public
|
||
public
|
#
get_status( string $invoice = '' )
int get_standing_status()
Fetch recurring subscription status from billing server
1 - subscription in good standing
-1 - subscription cancelled, account within 90 days of expiring
0 - subscription cancelled, account outside 90 days of expiring
null - cannot find subscription
|
|
public
|
||
public
|
||
public
|
||
public
|
#
get_payment_information( string $transnum , int $date , string $type = 'paypal' )
array get_payment_information(string)
Sample response:
Array
(
[date] => 1469937612
[amount] => 65
[domain] => apnscp.com
[service_level] => Developer
[name] => Tark Sammons
[email] => tark.sammons@apnscp.com
[note] =>
[service_type] => Webhosting
[method] => recurring
[payment_method] => credit
[reference] => C-2ALQUJ67SSQXIDJEESZFRMZ
[txn_id] => 11111
[invoice] => APNSCP-CJKFHECZO35
[cc_type] => visa
[cc_number] => 1111
[cc_exp] => 03/20
)
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
referral_upgrade_needed( )
Minimum requirement for next referral level
array(2) {
["method"] => 254
["client"] => 2
}
|
|
public
|
#
get_referrals( )
Get earned commissions
Sample response
array(1) {
[0]=>
array(5) {
["domain"]=>
string(8) "apnscp.com"
["accrued"]=>
string(5) "30.00"
["level"]=>
string(5) "Basic"
["maturity"]=>
int(1172293200)
["status"]=>
NULL
}
domain (string):
accrued (float)
|
|
public
|
||
public
|
#
create_referral_profile( string $username , array $personal = array ( ) )
Create initial referral profile
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
get_renewal_link( string $invoice = NULL )
Get billing renewal link
Link must provide direct access to billing portal
|
|
public
|
||
public
|
#
get_billing_information( )
Get billing information attached to account
Array
(
[first_name] => Tark
[last_name] => Sammons
[city] => Atlanta
[state] => Georgia
[zip_code] => 30308
[country] => US
[company] =>
[address] => 123 Anywhere St
[phone] => 867-5309
[email] => tark.sammons@apnscp.com
)
|
|
public
|
||
public
|
#
change_credit_card_information( int $expyear , int $expmonth , string $cvm = NULL, string $number = NULL, string $type = NULL )
Update billing details
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
claim_metadata( string $token )
Get data about a referral
Sample return:
Array(
[domain] => apnscp.com
[revenue] => 20.00
[maturity] => 1469937612
)
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
Methods inherited from Module\Skeleton\Standard |
---|
__construct() ,
setUserParameters() ,
autoloadModule() ,
__wakeup() ,
_invoke() ,
__debugInfo() ,
getExportedFunctions() ,
_reset() ,
cleanUserParameters() ,
query()
|
Constants inherited from Module\Skeleton\Standard |
---|
DEPENDENCY_MAP
|
Properties inherited from Module\Skeleton\Standard |
---|
$exportedFunctions ,
$username ,
$password ,
$domain ,
$user_id ,
$group_id ,
$permission_level ,
$session_id ,
$site ,
$site_id
|