Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (54 sloc) 1.29 KB
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\commerce\base;
/**
* This interface class functions that a Subscription response needs to implement
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 2.0
*/
interface SubscriptionResponseInterface
{
// Public Methods
// =========================================================================
/**
* Returns the response data.
*
* @return mixed
*/
public function getData();
/**
* Returns the subscription reference.
*
* @return string
*/
public function getReference(): string;
/**
* Returns the number of trial days on the subscription.
*
* @return int
*/
public function getTrialDays(): int;
/**
* Returns the time of next payment.
*
* @return \DateTime
*/
public function getNextPaymentDate(): \DateTime;
/**
* Returns whether the subscription is canceled.
*
* @return bool
*/
public function isCanceled(): bool;
/**
* Returns whether the subscription is scheduled to be canceled.
*
* @return bool
*/
public function isScheduledForCancellation(): bool;
}
You can’t perform that action at this time.