Class: CoreMerchant::SubscriptionCancellationEvent
- Inherits:
-
SubscriptionEvent
- Object
- ActiveRecord::Base
- SubscriptionEvent
- CoreMerchant::SubscriptionCancellationEvent
- Defined in:
- lib/core_merchant/subscription_event.rb
Overview
Represents a cancellation event for a subscription.
Instance Method Summary collapse
- #at_period_end=(value) ⇒ Object
- #at_period_end? ⇒ Boolean
- #canceled_at ⇒ Object
- #reason ⇒ Object
- #reason=(value) ⇒ Object
Methods inherited from SubscriptionEvent
Instance Method Details
#at_period_end=(value) ⇒ Object
127 128 129 |
# File 'lib/core_merchant/subscription_event.rb', line 127 def at_period_end=(value) self. = .merge(at_period_end: value) end |
#at_period_end? ⇒ Boolean
123 124 125 |
# File 'lib/core_merchant/subscription_event.rb', line 123 def at_period_end? ["at_period_end"] end |
#canceled_at ⇒ Object
119 120 121 |
# File 'lib/core_merchant/subscription_event.rb', line 119 def canceled_at created_at end |
#reason ⇒ Object
131 132 133 |
# File 'lib/core_merchant/subscription_event.rb', line 131 def reason ["reason"] end |
#reason=(value) ⇒ Object
135 136 137 |
# File 'lib/core_merchant/subscription_event.rb', line 135 def reason=(value) self. = .merge(reason: value) end |