Sha256: f486111cee9ece32c4de780e60dc12066ce08fa32ade918a1e196d66a571aa14
Contents?: true
Size: 506 Bytes
Versions: 20
Compression:
Stored size: 506 Bytes
Contents
module Chargify class Transaction < Base def full_refund(attrs = {}) return false if self.transaction_type != 'payment' attrs.merge!(:amount_in_cents => self.amount_in_cents) self.refund(attrs) end def refund(attrs = {}) return false if self.transaction_type != 'payment' attrs.merge!(:payment_id => self.id) Subscription.find(self.subscription_id).refund(attrs) end class Taxation < Base class TaxRule < Base end end end end
Version data entries
20 entries across 20 versions & 1 rubygems