Class: Kaui::PaymentAttempt
- Defined in:
- app/models/kaui/payment_attempt.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PaymentAttempt
constructor
A new instance of PaymentAttempt.
Methods inherited from Base
#==, all, #attributes=, camelize, convert_hash_keys, count, define_attr, #destroy, find, from_json, has_many, has_one, human_attribute_name, lookup_ancestors, #new_record?, #persisted?, #read_attribute_for_validation, #save, #to_hash, to_money, #to_param, #update_attributes
Constructor Details
#initialize(data = {}) ⇒ PaymentAttempt
Returns a new instance of PaymentAttempt.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/models/kaui/payment_attempt.rb', line 14 def initialize(data = {}) super(:account_id => data['accountId'], :invoice_id => data['invoiceId'], :amount => data['amount'], :currency => data['currency'], :payment_id => data['paymentId'], :payment_attempt_id => data['paymentAttemptId'], :payment_attempt_date => data['paymentAttemptDate'], :invoice_dt => data['invoiceDate'], :created_dt => data['createdDate'], :udpated_dt => data['updatedDate'], :retry_count => data['retryCount']) end |