You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
622 B
PHP
44 lines
622 B
PHP
<?php
|
|
|
|
class Paymentwall_Subscription extends Paymentwall_ApiObject
|
|
{
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function isTrial()
|
|
{
|
|
return $this->is_trial;
|
|
}
|
|
|
|
public function isActive()
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
public function isSuccessful()
|
|
{
|
|
return $this->object == self::API_OBJECT_SUBSCRIPTION;
|
|
}
|
|
|
|
public function isExpired()
|
|
{
|
|
return $this->expired;
|
|
}
|
|
|
|
public function getEndpointName()
|
|
{
|
|
return self::API_OBJECT_SUBSCRIPTION;
|
|
}
|
|
|
|
public function get()
|
|
{
|
|
return $this->doApiAction('', 'get');
|
|
}
|
|
|
|
public function cancel()
|
|
{
|
|
return $this->doApiAction('cancel');
|
|
}
|
|
} |