Class: MerchantESolutions::AdjustmentRecord
- Defined in:
- lib/merchant_e_solutions/adjustment_record.rb
Instance Attribute Summary collapse
-
#adjustment_date ⇒ Object
readonly
Returns the value of attribute adjustment_date.
-
#adjustment_reference_number ⇒ Object
readonly
Returns the value of attribute adjustment_reference_number.
-
#authorization_code ⇒ Object
readonly
Returns the value of attribute authorization_code.
-
#card_number ⇒ Object
readonly
Returns the value of attribute card_number.
-
#cb_reference_number ⇒ Object
readonly
Returns the value of attribute cb_reference_number.
-
#control_number ⇒ Object
readonly
Returns the value of attribute control_number.
-
#first_time ⇒ Object
readonly
Returns the value of attribute first_time.
-
#incoming_date ⇒ Object
readonly
Returns the value of attribute incoming_date.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#organization_name ⇒ Object
readonly
Returns the value of attribute organization_name.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#reason_code ⇒ Object
readonly
Returns the value of attribute reason_code.
-
#reference_id ⇒ Object
readonly
Returns the value of attribute reference_id.
-
#terminal_id ⇒ Object
readonly
Returns the value of attribute terminal_id.
-
#transaction_amount ⇒ Object
readonly
Returns the value of attribute transaction_amount.
-
#transaction_date ⇒ Object
readonly
Returns the value of attribute transaction_date.
Instance Method Summary collapse
-
#initialize(row) ⇒ AdjustmentRecord
constructor
A new instance of AdjustmentRecord.
Constructor Details
#initialize(row) ⇒ AdjustmentRecord
Returns a new instance of AdjustmentRecord.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 12 def initialize(row) @organization_id = row[0] @organization_name = row[1] @control_number = row[2] @incoming_date = parse_date(row[3]) @card_number = row[4] @reference_id = row[5] @transaction_date = parse_date(row[6]) @transaction_amount = row[7] @authorization_code = row[8] @adjustment_date = parse_date(row[9]) @adjustment_reference_number = row[10] @reason = row[11] @first_time = parse_boolean(row[12]) @reason_code = row[13] @cb_reference_number = row[14] @terminal_id = row[15] end |
Instance Attribute Details
#adjustment_date ⇒ Object (readonly)
Returns the value of attribute adjustment_date.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def adjustment_date @adjustment_date end |
#adjustment_reference_number ⇒ Object (readonly)
Returns the value of attribute adjustment_reference_number.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def adjustment_reference_number @adjustment_reference_number end |
#authorization_code ⇒ Object (readonly)
Returns the value of attribute authorization_code.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def @authorization_code end |
#card_number ⇒ Object (readonly)
Returns the value of attribute card_number.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def card_number @card_number end |
#cb_reference_number ⇒ Object (readonly)
Returns the value of attribute cb_reference_number.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def cb_reference_number @cb_reference_number end |
#control_number ⇒ Object (readonly)
Returns the value of attribute control_number.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def control_number @control_number end |
#first_time ⇒ Object (readonly)
Returns the value of attribute first_time.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def first_time @first_time end |
#incoming_date ⇒ Object (readonly)
Returns the value of attribute incoming_date.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def incoming_date @incoming_date end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def organization_id @organization_id end |
#organization_name ⇒ Object (readonly)
Returns the value of attribute organization_name.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def organization_name @organization_name end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def reason @reason end |
#reason_code ⇒ Object (readonly)
Returns the value of attribute reason_code.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def reason_code @reason_code end |
#reference_id ⇒ Object (readonly)
Returns the value of attribute reference_id.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def reference_id @reference_id end |
#terminal_id ⇒ Object (readonly)
Returns the value of attribute terminal_id.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def terminal_id @terminal_id end |
#transaction_amount ⇒ Object (readonly)
Returns the value of attribute transaction_amount.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def transaction_amount @transaction_amount end |
#transaction_date ⇒ Object (readonly)
Returns the value of attribute transaction_date.
6 7 8 |
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6 def transaction_date @transaction_date end |