Class: GlobalCollect::Requests::CancelPayment

Inherits:
Simple
  • Object
show all
Defined in:
lib/global_collect/requests/cancel_payment.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, attempt_id) ⇒ CancelPayment

WDL §5.2



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

def initialize(order_id, effort_id, attempt_id)
  super("CANCEL_PAYMENT", { 
    "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/cancel_payment.rb', line 14

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

#wrapperObject



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

def wrapper; "PAYMENT"; end