mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
8 lines
298 B
Plaintext
8 lines
298 B
Plaintext
|
json.extract! subscription, :id, :plan_id
|
||
|
json.expired_at subscription.expired_at.iso8601
|
||
|
json.canceled_at subscription.canceled_at.iso8601 if subscription.canceled_at
|
||
|
json.stripe subscription.stp_subscription_id.present?
|
||
|
json.plan do
|
||
|
json.partial! 'api/shared/plan', plan: subscription.plan
|
||
|
end
|