Class: MerchantESolutions::AdjustmentRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/merchant_e_solutions/adjustment_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject (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_numberObject (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_codeObject (readonly)

Returns the value of attribute authorization_code.



6
7
8
# File 'lib/merchant_e_solutions/adjustment_record.rb', line 6

def authorization_code
  @authorization_code
end

#card_numberObject (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_numberObject (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_numberObject (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_timeObject (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_dateObject (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_idObject (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_nameObject (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

#reasonObject (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_codeObject (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_idObject (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_idObject (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_amountObject (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_dateObject (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