Class: ApiBanking::GetPaymentStatus
- Inherits:
-
JsonClient
- Object
- JsonClient
- ApiBanking::GetPaymentStatus
- Defined in:
- lib/api_banking/json/getPaymentStatus.rb
Defined Under Namespace
Classes: Configuration, ReqBody, ReqHeader, Request, Result
Constant Summary collapse
- SERVICE_VERSION =
1
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.
15 16 17 |
# File 'lib/api_banking/json/getPaymentStatus.rb', line 15 def configuration @configuration end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
6 7 8 |
# File 'lib/api_banking/json/getPaymentStatus.rb', line 6 def request @request end |
#result ⇒ Object
Returns the value of attribute result.
6 7 8 |
# File 'lib/api_banking/json/getPaymentStatus.rb', line 6 def result @result end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
18 19 20 21 |
# File 'lib/api_banking/json/getPaymentStatus.rb', line 18 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.get_status(env, request, callbacks = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/api_banking/json/getPaymentStatus.rb', line 27 def self.get_status(env, request, callbacks = nil) dataHash = {} dataHash[:get_Single_Payment_Status_Corp_Req] = {} dataHash[:get_Single_Payment_Status_Corp_Req][:Header] = {} dataHash[:get_Single_Payment_Status_Corp_Req][:Body] = {} dataHash[:get_Single_Payment_Status_Corp_Req][:Header][:TranID] = '00' dataHash[:get_Single_Payment_Status_Corp_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[:get_Single_Payment_Status_Corp_Req][:Header][:Maker_ID] = '' dataHash[:get_Single_Payment_Status_Corp_Req][:Header][:Checker_ID] = '' dataHash[:get_Single_Payment_Status_Corp_Req][:Header][:Approver_ID] = request.header.approverID dataHash[:get_Single_Payment_Status_Corp_Req][:Body][:OrgTransactionID] = request.body.referenceNo reply = do_remote_call(env, dataHash, callbacks) puts dataHash parse_reply(reply) end |