Method: ProcessOut::Transaction#list
- Defined in:
- lib/processout/transaction.rb
#list(options = {}) ⇒ Object
Get full transactions data for specified list of ids. Params:
options
-
Hash
of options
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/processout/transaction.rb', line 1035 def list( = {}) self.prefill() request = Request.new(@client) path = "/transactions" data = { } response = Response.new(request.post(path, data, )) return_values = Array.new a = Array.new body = response.body for v in body['transactions'] tmp = Transaction.new(@client) tmp.fill_with_data(v) a.push(tmp) end return_values.push(a) return_values[0] end |