Sha256: 69e8bf931d1c286d268d4c9931d273f097efcff7b42c33f349774c33bc699435

Contents?: true

Size: 831 Bytes

Versions: 1

Compression:

Stored size: 831 Bytes

Contents

module MultiSafePay
  class Transaction < Base
    attr_accessor :amount,
                  :completed,
                  :costs,
                  :created,
                  :currency,
                  :customer,
                  :debit_credit,
                  :description,
                  :financial_status,
                  :invoice_id,
                  :net,
                  :order_id,
                  :payment_method,
                  :reason,
                  :reason_code,
                  :site_id,
                  :status,
                  :transaction_id,
                  :updated,
                  :type,
                  :var1,
                  :var2,
                  :var3
    
    def customer=(customer)
      @customer = OpenStruct.new(customer) if customer.is_a?(Hash)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multisafepay-api-ruby-0.1.0 lib/multisafepay/transaction.rb