Class: ISO8583::MKB::Authorization
- Defined in:
- lib/iso8583-mkb/authorization.rb
Constant Summary collapse
- MTI =
"Authorization Request"
- REPEAT_MTI =
"Authorization Repeat"
- MANDATORY =
{ "pan" => "Primary Account Number (PAN)", "processing_code" => "Processing Code", "amount" => "Amount, Transaction", "expiry" => "Date, Expiration", "merchant_type" => "Merchant's Type", "acquirer_country" => "Acquiring Country Code", "entry_mode" => "Point of Service Entry Mode Code", "condition_code" => "Point of Service Condition Code", "acquirer" => "Acquiring Institution ID code", "track2" => "Track 2 data", "currency" => "Currency Code, Transaction", }
- OPTIONAL =
{ "conversion_date" => "Date, Conversion", "billing_amount" => "Amount, Cardholder Billing", "billing_convrate" => "Conversion, Cardholder Billing", "billing_currency" => "Currency Code, Cardholder Billing", "terminal_id" => "Card Acceptor Terminal ID", "acceptor_id" => "Card Acceptor ID Code", "acceptor_name" => "Card Acceptor Name/Location", "additional" => "Additional Information", "security_control" => "Security Related Control Information", "pin_block" => "Personal Identification Number Data" }
- RESPONSE =
{ "Authorization Identification Response" => "auth_id", "Additional Response Data" => "additional_resp" }
Instance Attribute Summary
Attributes inherited from Request
#request, #retries, #status, #timeout
Instance Method Summary collapse
Methods inherited from Request
build_class, #initialize, #status_description, #submit, #success?
Constructor Details
This class inherits a constructor from ISO8583::MKB::Request
Instance Method Details
#reverse ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/iso8583-mkb/authorization.rb', line 43 def reverse reversal = Reversal.new(@transaction) [ :pan, :processing_code, :amount, :expiry, :merchant_type, :acquirer_country, :entry_mode, :condition_code, :acquirer, :currency, :additional , :terminal_id, :acceptor_id, :acceptor_name ].each do |key| reversal.send :"#{key}=", instance_variable_get(:"@#{key}") end reversal.response_code = @status reversal end |