Class: CoreMerchant::SubscriptionStatusChangeEvent

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

Overview

Represents a status change event for a subscription.

Instance Method Summary collapse

Methods inherited from SubscriptionEvent

#metadata, #metadata=

Instance Method Details

#fromObject



79
80
81
# File 'lib/core_merchant/subscription_event.rb', line 79

def from
  ["from_status"]
end

#from=(value) ⇒ Object



83
84
85
# File 'lib/core_merchant/subscription_event.rb', line 83

def from=(value)
  self. = .merge(from_status: value)
end

#toObject



87
88
89
# File 'lib/core_merchant/subscription_event.rb', line 87

def to
  ["to_status"]
end

#to=(value) ⇒ Object



91
92
93
# File 'lib/core_merchant/subscription_event.rb', line 91

def to=(value)
  self. = .merge(to_status: value)
end