Class: CoreMerchant::SubscriptionRenewalEvent

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

Overview

Represents a renewal event for a subscription.

Instance Method Summary collapse

Methods inherited from SubscriptionEvent

#metadata, #metadata=

Instance Method Details

#price_centsObject



52
53
54
# File 'lib/core_merchant/subscription_event.rb', line 52

def price_cents
  ["price_cents"]
end

#price_cents=(value) ⇒ Object



56
57
58
# File 'lib/core_merchant/subscription_event.rb', line 56

def price_cents=(value)
  self. = .merge(price_cents: value)
end

#renewed_fromObject



60
61
62
# File 'lib/core_merchant/subscription_event.rb', line 60

def renewed_from
  ["renewed_from"].to_date
end

#renewed_from=(value) ⇒ Object



64
65
66
# File 'lib/core_merchant/subscription_event.rb', line 64

def renewed_from=(value)
  self. = .merge(renewed_from: value)
end

#renewed_untilObject



68
69
70
# File 'lib/core_merchant/subscription_event.rb', line 68

def renewed_until
  ["renewed_until"].to_date
end

#renewed_until=(value) ⇒ Object



72
73
74
# File 'lib/core_merchant/subscription_event.rb', line 72

def renewed_until=(value)
  self. = .merge(renewed_until: value)
end