Sha256: 0b5c6dd3db4625f74add1d43f21bca85d8483f4e1c741bda201006478db27996
Contents?: true
Size: 895 Bytes
Versions: 131
Compression:
Stored size: 895 Bytes
Contents
module ForestLiana class StripeSubscriptionSerializer include ForestAdmin::JSONAPI::Serializer attribute :cancel_at_period_end attribute :canceled_at attribute :created attribute :current_period_end attribute :current_period_start attribute :ended_at attribute :livemode attribute :quantity attribute :start attribute :status attribute :tax_percent attribute :trial_end attribute :trial_start has_one :customer def self_link "/forest#{super}" end def type @options[:context][:type] || 'stripe_subscriptions' end def format_name(attribute_name) attribute_name.to_s end def unformat_name(attribute_name) attribute_name.to_s end def relationship_self_link(attribute_name) nil end def relationship_related_link(attribute_name) nil end end end
Version data entries
131 entries across 131 versions & 1 rubygems