PA_Subscription
in package
The PuzzleAnywhere Subscription class. It allows for an easy way to display a user's subscription data.
Table of Contents
- $customer_email : string
- The purchase email address.
- $email : string
- The email address to send subscription-based emails to.
- $end_ts : string
- The end datetime of the user's subscription.
- $id : int
- The user subscription ID.
- $purchase : PA_Purchase
- The associated purchase for this subscription.
- $purchase_id : int
- The purchase ID for the user's subscription.
- $recurring : bool
- Denotes whether the subscription is recurring.
- $start_ts : string
- The start datetime of the user's subscription.
- is_active() : bool
- Denotes whether the user can receive puzzles.
Properties
$customer_email
The purchase email address.
public
string
$customer_email
The purchase email address.
The email address to send subscription-based emails to.
public
string
$email
The email address to send subscription-based emails to.
$end_ts
The end datetime of the user's subscription.
public
string
$end_ts
The end datetime of the user's subscription.
$id
The user subscription ID.
public
int
$id
The user subscription ID.
$purchase
The associated purchase for this subscription.
public
PA_Purchase
$purchase
The associated purchase for this subscription.
$purchase_id
The purchase ID for the user's subscription.
public
int
$purchase_id
The purchase ID for the user's subscription.
$recurring
Denotes whether the subscription is recurring.
public
bool
$recurring
Returns true if the subscription is recurring.
$start_ts
The start datetime of the user's subscription.
public
string
$start_ts
The start datetime of the user's subscription.
Methods
is_active()
Denotes whether the user can receive puzzles.
public
is_active() : bool
Return values
bool —Returns true if the user can receive puzzles.