Sha256: 774e8139653b56e0314a38a9bf89366ba5ab5831f003aeca9085e933d29e79a4

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 Bytes

Contents

module Paypal
  module Payment
    class Response::Refund < Base
      attr_optional :transaction_id
      attr_accessor :amount
      attr_accessor :info

      def initialize(attributes = {})
        super
        @info = Response::RefundInfo.new(
          refund_status: attributes.delete(:refund_status)
        )
        @amount = Common::Amount.new(attributes[:amount])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ianfleeton-paypal-express-1.0.0 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.7 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.6 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.5 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.4 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.3 lib/paypal/payment/response/refund.rb
ianfleeton-paypal-express-0.8.2 lib/paypal/payment/response/refund.rb