Class: Kaui::Chargeback

Inherits:
Base
  • Object
show all
Defined in:
app/models/kaui/chargeback.rb

Constant Summary collapse

SAMPLE_REASON_CODES =
[  "400 - Canceled Recurring Transaction",
"401 - Cardholder Disputes Quality of Goods or Services",
"402 - Cardholder Does Not Recognize Transaction",
"403 - Cardholder Request Due to Dispute",
"404 - Credit Not Processed",
"405 - Duplicate Processing",
"406 - Fraud Investigation",
"407 - Fraudulent Transaction - Card Absent Environment",
"408 - Incorrect Transaction Amount or Account Number",
"409 - No Cardholder Authorization",
"410 - Non receipt of Merchandise",
"411 - Not as Described or Defective Merchandise",
"412 - Recurring Payment",
"413 - Request for Copy Bearing Signature",
"414 - Requested Transaction Data Not Received",
"415 - Services Not Provided or Merchandise not Received",
"416 - Transaction Amount Differs",
"417 - Validity Challenged",
"418 - Unauthorized Payment",
"419 - Unauthorized Claim",
"420 - Not as Described",
"499 - OTHER" ]

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#==, all, #attributes=, camelize, convert_hash_keys, count, define_attr, #destroy, find, from_json, has_many, has_one, human_attribute_name, #initialize, lookup_ancestors, #new_record?, #persisted?, #read_attribute_for_validation, #save, #to_hash, to_money, #to_param, #update_attributes

Constructor Details

This class inherits a constructor from Kaui::Base

Instance Method Details

#chargeback_amount_to_money(currency) ⇒ Object

TODO - fix chargeback json to return the currency



34
35
36
# File 'app/models/kaui/chargeback.rb', line 34

def chargeback_amount_to_money(currency)
  Kaui::Base.to_money(chargeback_amount, currency)
end