DummySubscriptionResponse
- Type
- Class
- Namespace
- craft\commerce\models\responses
- Inherits
- craft\commerce\models\responses\DummySubscriptionResponse
- Implements
- craft\commerce\base\SubscriptionResponseInterface
- Since
- 2.0
This is a dummy gateway request response.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getData() | Returns the response data. |
getNextPaymentDate() | Returns the time of next payment. |
getReference() | Returns the subscription reference. |
getTrialDays() | Returns the number of trial days on the subscription. |
isCanceled() | Returns whether the subscription is canceled. |
isInactive() | Whether the subscription is unpaid. |
isScheduledForCancellation() | Returns whether the subscription is scheduled to be canceled. |
setIsCanceled() | |
setTrialDays() |
# getData()
Returns the response data.
View source (opens new window)
Returns
mixed
# getNextPaymentDate()
Returns the time of next payment.
View source (opens new window)
Returns
# getReference()
Returns the subscription reference.
View source (opens new window)
Returns
# getTrialDays()
Returns the number of trial days on the subscription.
View source (opens new window)
Returns
# isCanceled()
Returns whether the subscription is canceled.
View source (opens new window)
Returns
# isInactive()
Whether the subscription is unpaid.
View source (opens new window)
Returns
# isScheduledForCancellation()
Returns whether the subscription is scheduled to be canceled.
View source (opens new window)
Returns
# setIsCanceled()
View source (opens new window)
Arguments
$isCanceled
# setTrialDays()
View source (opens new window)
Arguments
$trialDays