Class: GlobalCollect::Requests::ProcessChallenged

Inherits:
Simple
  • Object
show all
Defined in:
lib/global_collect/requests/process_challenged.rb

Instance Attribute Summary

Attributes inherited from Base

#action, #suggested_response_mixins, #version

Instance Method Summary collapse

Methods inherited from Simple

#to_xml

Methods inherited from Base

#default_xml_encoding_options, #to_xml

Constructor Details

#initialize(order_id, effort_id = nil, attempt_id = nil) ⇒ ProcessChallenged

WDL §5.30



4
5
6
7
8
9
10
# File 'lib/global_collect/requests/process_challenged.rb', line 4

def initialize(order_id, effort_id=nil, attempt_id=nil)
  super("PROCESS_CHALLENGED", { 
    "ORDERID"   => order_id,
    "EFFORTID"  => effort_id,
    "ATTEMPTID" => attempt_id
  })
end

Instance Method Details

#fieldsObject



14
15
16
17
18
19
20
# File 'lib/global_collect/requests/process_challenged.rb', line 14

def fields
  {
    "ORDERID"   => ["N10", "R"],
    "EFFORTID"  => ["N5",  "O"],
    "ATTEMPTID" => ["N5",  "O"]
  }
end

#wrapperObject



12
# File 'lib/global_collect/requests/process_challenged.rb', line 12

def wrapper; "PAYMENT"; end