lib/mollie/customer/subscription.rb in mollie-api-ruby-4.1.4 vs lib/mollie/customer/subscription.rb in mollie-api-ruby-4.1.5
- old
+ new
@@ -19,11 +19,12 @@
:next_payment_date,
:description,
:method,
:mandate_id,
:canceled_at,
- :webhook_url
+ :webhook_url,
+ :metadata
def active?
status == STATUS_ACTIVE
end
@@ -75,9 +76,13 @@
end
end
def customer(options = {})
Customer.get(customer_id, options)
+ end
+
+ def metadata=(metadata)
+ @metadata = OpenStruct.new(metadata) if metadata.is_a?(Hash)
end
end
end
end