Sha256: f98b277935ca260e08bc350aa3c3b94f76dc54a704b311678f74a184013bfa0e

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

module PayPal
  module Recurring
    module Response
      class Refund < Base
        mapping(
          :transaction_id => :REFUNDTRANSACTIONID,
          :fee_amount     => :FEEREFUNDAMT,
          :gross_amount   => :GROSSREFUNDAMT,
          :net_amount     => :NETREFUNDAMT,
          :amount         => :TOTALREFUNDEDAMOUNT,
          :currency       => :CURRENCYCODE,
          :info           => :REFUNDINFO,
          :status         => :REFUNDSTATUS,
          :pending_reason => :PENDINGREASON
        )

        def completed?
          params[:REFUNDSTATUS] == "instant"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
didil-paypal-recurring-1.1.1 lib/paypal/recurring/response/refund.rb
paypal-recurring-1.1.0 lib/paypal/recurring/response/refund.rb
paypal-recurring-1.0.0 lib/paypal/recurring/response/refund.rb