Sha256: 259154cbda23b36f4f6a3ff2ec98e3d983b1e9910766bae9a0a093e3bc90eb95
Contents?: true
Size: 786 Bytes
Versions: 131
Compression:
Stored size: 786 Bytes
Contents
module ForestLiana class StripeBankAccountSerializer include ForestAdmin::JSONAPI::Serializer attribute :account_holder_name attribute :account_holder_type attribute :bank_name attribute :country attribute :currency attribute :fingerprint attribute :last4 attribute :routing_number attribute :status has_one :customer def self_link "/forest#{super}" end def type @options[:context][:type] || 'stripe_bank_accounts' 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