Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -12,7 +12,7 @@
|
||||
namespace IPS\nexus\Customer;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -22,10 +22,21 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
* Billing Agreement Model
|
||||
*/
|
||||
class _BillingAgreement extends \IPS\Patterns\ActiveRecord
|
||||
{
|
||||
const STATUS_ACTIVE = 'active'; // Billing Agreement is active and will charge automatically
|
||||
const STATUS_SUSPENDED = 'suspended'; // Billing Agreement has been suspended but can be reactivated
|
||||
const STATUS_CANCELED = 'canceled'; // Billing Agreement has been canceled
|
||||
{
|
||||
/**
|
||||
* @brief Billing Agreement is active and will charge automatically
|
||||
*/
|
||||
const STATUS_ACTIVE = 'active';
|
||||
|
||||
/**
|
||||
* @brief Billing Agreement has been suspended but can be reactivated
|
||||
*/
|
||||
const STATUS_SUSPENDED = 'suspended';
|
||||
|
||||
/**
|
||||
* @brief Billing Agreement has been canceled
|
||||
*/
|
||||
const STATUS_CANCELED = 'canceled';
|
||||
|
||||
/**
|
||||
* @brief Multiton Store
|
||||
@@ -83,6 +94,7 @@ class _BillingAgreement extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* Load and check permissions
|
||||
*
|
||||
* @param mixed $id ID to load
|
||||
* @return \IPS\Content\Item
|
||||
* @throws \OutOfRangeException
|
||||
*/
|
||||
@@ -124,7 +136,7 @@ class _BillingAgreement extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* Set member
|
||||
*
|
||||
* @param \IPS\Member
|
||||
* @param \IPS\Member $member Member
|
||||
* @return void
|
||||
*/
|
||||
public function set_member( \IPS\Member $member )
|
||||
@@ -145,7 +157,7 @@ class _BillingAgreement extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* Set payment gateway
|
||||
*
|
||||
* @param \IPS\nexus\Gateway
|
||||
* @param \IPS\nexus\Gateway $gateway Payment gateway
|
||||
* @return void
|
||||
*/
|
||||
public function set_method( \IPS\nexus\Gateway $gateway )
|
||||
|
||||
Reference in new issue
Block a user