Class: CorePro::Transfer
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::Transfer
- Defined in:
- lib/corepro/transfer.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#description ⇒ Object
Returns the value of attribute description.
-
#fromId ⇒ Object
Returns the value of attribute fromId.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#toId ⇒ Object
Returns the value of attribute toId.
-
#transactionId ⇒ Object
Returns the value of attribute transactionId.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .create(customerId, fromId, toId, amount, tag, description, connection = nil, loggingObject = nil) ⇒ Object
- .void(customerId, transactionId, tag, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #create(connection = nil, loggingObject = nil) ⇒ Object
- #void(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
10 11 12 |
# File 'lib/corepro/transfer.rb', line 10 def amount @amount end |
#customerId ⇒ Object
Returns the value of attribute customerId.
7 8 9 |
# File 'lib/corepro/transfer.rb', line 7 def customerId @customerId end |
#description ⇒ Object
Returns the value of attribute description.
13 14 15 |
# File 'lib/corepro/transfer.rb', line 13 def description @description end |
#fromId ⇒ Object
Returns the value of attribute fromId.
8 9 10 |
# File 'lib/corepro/transfer.rb', line 8 def fromId @fromId end |
#tag ⇒ Object
Returns the value of attribute tag.
11 12 13 |
# File 'lib/corepro/transfer.rb', line 11 def tag @tag end |
#toId ⇒ Object
Returns the value of attribute toId.
9 10 11 |
# File 'lib/corepro/transfer.rb', line 9 def toId @toId end |
#transactionId ⇒ Object
Returns the value of attribute transactionId.
12 13 14 |
# File 'lib/corepro/transfer.rb', line 12 def transactionId @transactionId end |
Class Method Details
.create(customerId, fromId, toId, amount, tag, description, connection = nil, loggingObject = nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/corepro/transfer.rb', line 15 def self.create(customerId, fromId, toId, amount, tag, description, connection = nil, loggingObject = nil) t = Transfer.new t.customerId = customerId t.fromId = fromId t.toId = toId t.amount = amount t.tag = tag t.description = description t.create connection, loggingObject end |
.void(customerId, transactionId, tag, connection = nil, loggingObject = nil) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/corepro/transfer.rb', line 30 def self.void(customerId, transactionId, tag, connection = nil, loggingObject = nil) t = Transfer.new t.customerId = customerId t.transactionId = transactionId t.tag = tag t.void connection, loggingObject end |