merchant_e_solutions 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84550333afd6acc5e0b4f4eaca679cdf55a0ec41
4
- data.tar.gz: 92d3ae4bc28465a85d3f109f938533b8aa8c4b7f
3
+ metadata.gz: 3f190c95e55c362af2bbbe74e6e753f894422fd1
4
+ data.tar.gz: dfdd06de461ee1f4ae5fb423a5bb93acd11dc600
5
5
  SHA512:
6
- metadata.gz: 9f01b2763eaa5abbdc14b72fb1994083444faba8bccb95d4e9429d337b3e5ee91f4c31f5eacbf5c161ff24a1868b70634b96410134854596ed7cb7498daee577
7
- data.tar.gz: 2226690b22c075426736a8ce4007296459a04c778efd28b3ea836ab599d447bfc3dd3b52b3183e98e34381ac11b7ac9b1f735204afec729e76b59cae94433e2f
6
+ metadata.gz: 71d5ffa5a8ea0259101a23cf565c62962a8ad8392bc893ac116047f4c3c0a4d26519e3d14a75b5eeee71775252654dc133ed0299ed700aeb2bbf3bda2a07d993
7
+ data.tar.gz: bf44ef4d8fdf635c290f8a9ab3a2dffbe32660e586ab2869e6f3e1861fb59e0840703765c232967ed128b2a3905291a583ab3dbb88e042f55facbb77bfd6048d
@@ -4,8 +4,8 @@ module MerchantESolutions
4
4
  class AdjustmentRecord < Record
5
5
 
6
6
  attr_reader :organization_id, :organization_name, :control_number, :incoming_date,
7
- :card_number, :reference_id, :transaction_date, :transaction_amount,
8
- :authorization_code, :adjustment_date, :adjustment_reference_number,
7
+ :card_number, :reference_id, :transaction_date, :transaction_amount, :trident_transaction_id,
8
+ :purchase_id, :client_reference_number, :authorization_code, :adjustment_date, :adjustment_reference_number,
9
9
  :reason, :first_time, :reason_code, :cb_reference_number, :terminal_id
10
10
 
11
11
 
@@ -18,14 +18,17 @@ module MerchantESolutions
18
18
  @reference_id = row[5]
19
19
  @transaction_date = parse_date(row[6])
20
20
  @transaction_amount = row[7]
21
- @authorization_code = row[8]
22
- @adjustment_date = parse_date(row[9])
23
- @adjustment_reference_number = row[10]
24
- @reason = row[11]
25
- @first_time = parse_boolean(row[12])
26
- @reason_code = row[13]
27
- @cb_reference_number = row[14]
28
- @terminal_id = row[15]
21
+ @trident_transaction_id = row[8]
22
+ @purchase_id = row[9]
23
+ @client_reference_number = row[10]
24
+ @authorization_code = row[11]
25
+ @adjustment_date = parse_date(row[12])
26
+ @adjustment_reference_number = row[13]
27
+ @reason = row[14]
28
+ @first_time = parse_boolean(row[15])
29
+ @reason_code = row[16]
30
+ @cb_reference_number = row[17]
31
+ @terminal_id = row[18]
29
32
  end
30
33
  end
31
34
  end
@@ -1,3 +1,3 @@
1
1
  module MerchantESolutions
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -1,3 +1,4 @@
1
- "Merchant Id","DBA Name","Control Number","Incoming Date","Card Number","Reference Number","Tran Date","Tran Amount","Auth Code","Adj Date","Adj Ref Num","Reason","First Time","Reason Code","CB Ref Num","Terminal ID"
2
- 44,"Hamazon",224,08/11/2014,654321xxxxxx1234,'1176620,07/27/2014,15.0,,"08/10/2013-","1176538","Fraud - Card Not Present Transaction",Y,UA02,802061219,""
3
- 44,"Hamazon",248,10/13/2014,123456xxxxxx4321,'16768007605410284,10/10/2014,40.0,03500P,"10/10/2013-","00001471124","No Cardholder Authorization",Y,4837,319290029,""
1
+ "Merchant Id","DBA Name","Control Number","Incoming Date","Card Number","Reference Number","Tran Date","Tran Amount","Trident Tran ID","Purchase ID","Client Ref Num","Auth Code","Adj Date","Adj Ref Num","Reason","First Time","Reason Code","CB Ref Num","Terminal ID"
2
+ 44,"Hamazon",224,08/11/2014,654321xxxxxx1234,'1176620,07/27/2014,15.0,,null,"abcd","1234","08/10/2013-","1176538","Fraud - Card Not Present Transaction",Y,UA02,802061219,""
3
+ 44,"Hamazon",248,10/13/2014,123456xxxxxx4321,'16768007605410284,10/10/2014,40.0,03500P,null,"bcde","2345","10/10/2013-","00001471124","No Cardholder Authorization",Y,4837,319290029,""
4
+ 44,"Hamazon",307,05/17/2013,098765xxxxxx6789,'2514063000,03/28/2013,40.0,null,100013348,"",05581Z,"04/18/2013-","00001208748","Cardholder Does Not Recognize Transaction",Y,4863,1310601592,""
@@ -4,8 +4,8 @@ describe MerchantESolutions::AdjustmentRecord do
4
4
  describe "#initialize" do
5
5
  subject { MerchantESolutions::AdjustmentRecord.new(csv_row) }
6
6
 
7
- #"Merchant Id","DBA Name","Control Number","Incoming Date","Card Number","Reference Number","Tran Date","Tran Amount","Auth Code","Adj Date","Adj Ref Num","Reason","First Time","Reason Code","CB Ref Num","Terminal ID"
8
- let(:csv_row) { [44, "Hamazon", 224, "08/11/2014", "654321xxxxxx1234", "'1176620", "07/27/2014", 15.0, 'aaa', "08/10/2013-", "1176538", "Fraud - Card Not Present Transaction", "Y", "UA02", 802061219, "b"] }
7
+ #"Merchant Id","DBA Name","Control Number","Incoming Date","Card Number","Reference Number","Tran Date","Tran Amount","Trident Tran ID", "Purchase ID", "Client Ref Num", "Auth Code","Adj Date","Adj Ref Num","Reason","First Time","Reason Code","CB Ref Num","Terminal ID"
8
+ let(:csv_row) { [44, "Hamazon", 224, "08/11/2014", "654321xxxxxx1234", "'1176620", "07/27/2014", 15.0, "null", "purchaseId123", "clientRefNum111", "aaa", "08/10/2013-", "1176538", "Fraud - Card Not Present Transaction", "Y", "UA02", 802061219, "b"] }
9
9
 
10
10
  its(:organization_id) { should == 44 }
11
11
  its(:organization_name) { should == "Hamazon" }
@@ -23,6 +23,9 @@ describe MerchantESolutions::AdjustmentRecord do
23
23
  subject.transaction_date.year.should == 2014
24
24
  end
25
25
  its(:transaction_amount) { should == 15.0 }
26
+ its(:trident_transaction_id) { should == "null" }
27
+ its(:purchase_id) { should == "purchaseId123" }
28
+ its(:client_reference_number) { should == "clientRefNum111" }
26
29
  its(:authorization_code) { 'aaa' }
27
30
  it "parses out the adjustment date" do
28
31
  subject.adjustment_date.day.should == 10
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merchant_e_solutions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Ellis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-11 00:00:00.000000000 Z
12
+ date: 2013-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler