Sha256: 18d67f64b2bf11dfb3415613fcd65a4cecde13036ff7c01e7070d6454712ce80
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true module SolidusNexio class ApmSource < SolidusSupport.payment_source_parent_class self.table_name = 'solidus_nexio_apm_sources' belongs_to :user, class_name: Spree::UserClassHandle.new, foreign_key: 'user_id', optional: true enum kind: { braintree_pay_pal: 0, pay_pal: 1 } def reusable? gateway_payment_profile_id.present? end def name I18n.t("nexio.apms.#{kind}.name") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_nexio-0.7.1 | app/models/solidus_nexio/apm_source.rb |
solidus_nexio-0.7.0 | app/models/solidus_nexio/apm_source.rb |