Class: CoreMerchant::SubscriptionCancellationEvent

Inherits:
SubscriptionEvent
  • Object
show all
Defined in:
lib/core_merchant/subscription_event.rb

Overview

Represents a cancellation event for a subscription.

Instance Method Summary collapse

Methods inherited from SubscriptionEvent

#metadata, #metadata=

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

Returns:

  • (Boolean)


123
124
125
# File 'lib/core_merchant/subscription_event.rb', line 123

def at_period_end?
  ["at_period_end"]
end

#canceled_atObject



119
120
121
# File 'lib/core_merchant/subscription_event.rb', line 119

def canceled_at
  created_at
end

#reasonObject



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