Class: ApiBanking::AccountStatement
- Inherits:
-
JsonClient
- Object
- JsonClient
- ApiBanking::AccountStatement
- Defined in:
- lib/api_banking/json/accountStatement.rb
Defined Under Namespace
Classes: Configuration, ReqBody, ReqHeader, Request, Result, Transactions
Constant Summary collapse
- SERVICE_VERSION =
1- CODE_NO_TXN_FOUND =
'8504'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
-
#result ⇒ Object
Returns the value of attribute result.
Class Method Summary collapse
Methods inherited from JsonClient
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
17 18 19 |
# File 'lib/api_banking/json/accountStatement.rb', line 17 def configuration @configuration end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
7 8 9 |
# File 'lib/api_banking/json/accountStatement.rb', line 7 def request @request end |
#result ⇒ Object
Returns the value of attribute result.
7 8 9 |
# File 'lib/api_banking/json/accountStatement.rb', line 7 def result @result end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
20 21 22 23 |
# File 'lib/api_banking/json/accountStatement.rb', line 20 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.get_statement(env, request, callbacks = nil) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/api_banking/json/accountStatement.rb', line 29 def self.get_statement(env, request, callbacks = nil) dataHash = {} dataHash[:Acc_Stmt_DtRng_Req] = {} dataHash[:Acc_Stmt_DtRng_Req][:Header] = {} dataHash[:Acc_Stmt_DtRng_Req][:Body] = {} dataHash[:Acc_Stmt_DtRng_Req][:Header][:TranID] = '00' dataHash[:Acc_Stmt_DtRng_Req][:Header][:Corp_ID] = request.header.corpID # the tags Maker_ID and Checker_ID have been removed since Schema Validation Error is returned when these are sent in the request. dataHash[:Acc_Stmt_DtRng_Req][:Header][:Approver_ID] = request.header.approverID dataHash[:Acc_Stmt_DtRng_Req][:Body][:Acc_No] = request.body.accountNo dataHash[:Acc_Stmt_DtRng_Req][:Body][:Tran_Type] = request.body.transactionType dataHash[:Acc_Stmt_DtRng_Req][:Body][:From_Dt] = request.body.fromDate dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details] = {} dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Balance] = {} dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Balance][:Amount_Value] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Balance][:Currency_Code] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Pstd_Date] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Txn_Date] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Txn_Id] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:Pagination_Details][:Last_Txn_SrlNo] = '' dataHash[:Acc_Stmt_DtRng_Req][:Body][:To_Dt] = request.body.toDate reply = do_remote_call(env, dataHash, callbacks) parse_reply(:getStatement, reply) end |