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.
-
#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, 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 |
#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, connection = nil, loggingObject = nil) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/corepro/transfer.rb', line 14 def self.create(customerId, fromId, toId, amount, tag, connection = nil, loggingObject = nil) t = Transfer.new t.customerId = customerId t.fromId = fromId t.toId = toId t.amount = amount t.tag = tag t.create connection, loggingObject end |
.void(customerId, transactionId, tag, connection = nil, loggingObject = nil) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/corepro/transfer.rb', line 28 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 |
Instance Method Details
#create(connection = nil, loggingObject = nil) ⇒ Object
24 25 26 |
# File 'lib/corepro/transfer.rb', line 24 def create(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/transfer/create', Transfer, self, connection, loggingObject) end |
#void(connection = nil, loggingObject = nil) ⇒ Object
36 37 38 |
# File 'lib/corepro/transfer.rb', line 36 def void(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/transfer/void', Transfer, self, connection, loggingObject) end |