class Paymongo::Transaction

Attributes

amount[R]
billing[R]
created[R]
currency[R]
description[R]
external_reference_number[R]
fee[R]
id[R]
livemode[R]
net_amount[R]
statement_descriptor[R]
status[R]
type[R]
updated[R]

Public Class Methods

_new(*args) click to toggle source
# File lib/paymongo/transaction.rb, line 29
def _new(*args)
  self.new(*args)
end

Protected Class Methods

new(gateway, attributes) click to toggle source
# File lib/paymongo/transaction.rb, line 20
def initialize(gateway, attributes)
  @gateway = gateway
  set_instance_variables_from_hash(attributes[:attributes])
  @id = attributes[:id]
  @type = attributes[:type]
  # TODO: Add relationships hash
end