Class: SolidusSubscriptions::ChurnBuster::OrderSerializer
- Inherits:
-
Serializer
- Object
- Serializer
- SolidusSubscriptions::ChurnBuster::OrderSerializer
- Defined in:
- lib/solidus_subscriptions/churn_buster/order_serializer.rb
Instance Attribute Summary
Attributes inherited from Serializer
Instance Method Summary collapse
Methods inherited from Serializer
Constructor Details
This class inherits a constructor from SolidusSubscriptions::ChurnBuster::Serializer
Instance Method Details
permalink #to_h ⇒ Object
[View source]
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/solidus_subscriptions/churn_buster/order_serializer.rb', line 6 def to_h { payment: { source: 'in_house', source_id: object.number, amount_in_cents: object.display_total.cents, currency: object.currency, }, customer: SubscriptionCustomerSerializer.serialize(object.subscription), } end |