LitleOnline 8.10.0 → 8.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. data/Rakefile +1 -1
  2. data/lib/Communications.rb +3 -4
  3. data/lib/Configuration.rb +1 -1
  4. data/lib/LitleOnlineRequest.rb +170 -139
  5. data/lib/XMLFields.rb +29 -29
  6. data/test/certification/certTest1_base.rb +602 -606
  7. data/test/certification/certTest2_authenhanced.rb +6 -6
  8. data/test/certification/certTest3_authreversal.rb +29 -30
  9. data/test/certification/certTest4_echeck.rb +13 -16
  10. data/test/certification/certTest5_token.rb +11 -31
  11. data/test/functional/test_auth.rb +6 -6
  12. data/test/functional/test_authReversal.rb +6 -6
  13. data/test/functional/test_capture.rb +3 -3
  14. data/test/functional/test_captureGivenAuth.rb +12 -12
  15. data/test/functional/test_credit.rb +7 -7
  16. data/test/functional/test_echeckCredit.rb +11 -11
  17. data/test/functional/test_echeckRedeposit.rb +8 -8
  18. data/test/functional/test_echeckSale.rb +34 -32
  19. data/test/functional/test_echeckVerification.rb +8 -8
  20. data/test/functional/test_forceCapture.rb +8 -8
  21. data/test/functional/test_sale.rb +9 -11
  22. data/test/functional/test_token.rb +12 -12
  23. data/test/functional/test_xmlfields.rb +18 -18
  24. data/test/unit/test_LitleOnlineRequest.rb +26 -17
  25. data/test/unit/test_auth.rb +22 -10
  26. data/test/unit/test_authReversal.rb +2 -2
  27. data/test/unit/test_capture.rb +1 -1
  28. data/test/unit/test_captureGivenAuth.rb +6 -6
  29. data/test/unit/test_credit.rb +4 -7
  30. data/test/unit/test_echeckCredit.rb +2 -2
  31. data/test/unit/test_echeckRedeposit.rb +8 -8
  32. data/test/unit/test_echeckSale.rb +2 -2
  33. data/test/unit/test_echeckVerification.rb +8 -8
  34. data/test/unit/test_forceCapture.rb +8 -8
  35. data/test/unit/test_sale.rb +9 -9
  36. data/test/unit/test_token.rb +4 -4
  37. data/test/unit/test_xmlfields.rb +7 -9
  38. metadata +12 -12
@@ -26,7 +26,7 @@ require 'lib/LitleOnline'
26
26
  require 'test/unit'
27
27
 
28
28
  class TestToken < Test::Unit::TestCase
29
- def test_accountNumandPaypage
29
+ def test_account_num_and_paypage
30
30
  hash = {
31
31
  'merchantId' => '101',
32
32
  'version'=>'8.8',
@@ -35,7 +35,7 @@ class TestToken < Test::Unit::TestCase
35
35
  'accountNumber'=>'1233456789101112',
36
36
  'paypageRegistrationId'=>'1233456789101112'
37
37
  }
38
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.registerTokenRequest(hash)}
38
+ exception = assert_raise(RuntimeError){LitleOnlineRequest.new.register_token_request(hash)}
39
39
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
40
40
  end
41
41
 
@@ -48,7 +48,7 @@ class TestToken < Test::Unit::TestCase
48
48
  'echeckForToken'=>{'accNum'=>'12344565','routingNum'=>'123476545'},
49
49
  'paypageRegistrationId'=>'1233456789101112'
50
50
  }
51
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.registerTokenRequest(hash)}
51
+ exception = assert_raise(RuntimeError){LitleOnlineRequest.new.register_token_request(hash)}
52
52
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
53
53
  end
54
54
 
@@ -62,7 +62,7 @@ class TestToken < Test::Unit::TestCase
62
62
  'echeckForToken'=>{'accNum'=>'12344565','routingNum'=>'123476545'},
63
63
  'paypageRegistrationId'=>'1233456789101112'
64
64
  }
65
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.registerTokenRequest(hash)}
65
+ exception = assert_raise(RuntimeError){LitleOnlineRequest.new.register_token_request(hash)}
66
66
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
67
67
  end
68
68
 
@@ -46,7 +46,7 @@ class TestXmlfields < Test::Unit::TestCase
46
46
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
47
47
  end
48
48
 
49
- def test_customBillingwithtwoChoices
49
+ def test_custom_billing_with_two_choices
50
50
  hash = {
51
51
  'merchantId' => '101',
52
52
  'version'=>'8.8',
@@ -65,7 +65,7 @@ class TestXmlfields < Test::Unit::TestCase
65
65
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
66
66
  end
67
67
 
68
- def test_customBillingwiththreeChoices
68
+ def test_custom_billing_with_three_choices
69
69
  hash = {
70
70
  'merchantId' => '101',
71
71
  'version'=>'8.8',
@@ -84,12 +84,11 @@ class TestXmlfields < Test::Unit::TestCase
84
84
  assert_match /Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!/, exception.message
85
85
  end
86
86
 
87
- def test_paypalmissingPayerid
87
+ def test_paypal_missing_payer_id
88
88
  hash = {
89
89
  'merchantId' => '101',
90
90
  'version'=>'8.8',
91
91
  'reportGroup'=>'Planets',
92
- 'litleTxnId'=>'123456',
93
92
  'orderId'=>'12344',
94
93
  'amount'=>'106',
95
94
  'orderSource'=>'ecommerce',
@@ -101,12 +100,11 @@ class TestXmlfields < Test::Unit::TestCase
101
100
  assert_match /Missing Required Field: payerId!!!!/, exception.message
102
101
  end
103
102
 
104
- def test_paypalmissingtransactionId
103
+ def test_paypal_missing_transaction_id
105
104
  hash = {
106
105
  'merchantId' => '101',
107
106
  'version'=>'8.8',
108
107
  'reportGroup'=>'Planets',
109
- 'litleTxnId'=>'123456',
110
108
  'orderId'=>'12344',
111
109
  'amount'=>'106',
112
110
  'orderSource'=>'ecommerce',
@@ -118,7 +116,7 @@ class TestXmlfields < Test::Unit::TestCase
118
116
  assert_match /Missing Required Field: transactionId!!!!/, exception.message
119
117
  end
120
118
 
121
- def test_poswithoutCapability
119
+ def test_pos_without_capability
122
120
  hash = {
123
121
  'merchantId' => '101',
124
122
  'version'=>'8.8',
@@ -136,7 +134,7 @@ class TestXmlfields < Test::Unit::TestCase
136
134
  assert_match /Missing Required Field: capability!!!!/, exception.message
137
135
  end
138
136
 
139
- def test_tokenmissingtoken
137
+ def test_token_missing_token
140
138
  hash = {
141
139
  'merchantId' => '101',
142
140
  'version'=>'8.8',
@@ -153,7 +151,7 @@ class TestXmlfields < Test::Unit::TestCase
153
151
  assert_match /Missing Required Field: litleToken!!!!/, exception.message
154
152
  end
155
153
 
156
- def test_paypagemissingId
154
+ def test_paypage_missing_id
157
155
  hash = {
158
156
  'merchantId' => '101',
159
157
  'version'=>'8.8',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LitleOnline
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.10.0
4
+ version: 8.10.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-17 00:00:00.000000000Z
12
+ date: 2012-03-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &103948120 !ruby/object:Gem::Requirement
16
+ requirement: &44929660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *103948120
24
+ version_requirements: *44929660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: xml-simple
27
- requirement: &103947140 !ruby/object:Gem::Requirement
27
+ requirement: &44928980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *103947140
35
+ version_requirements: *44928980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
- requirement: &103945880 !ruby/object:Gem::Requirement
38
+ requirement: &44928220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *103945880
46
+ version_requirements: *44928220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: xml-object
49
- requirement: &103945080 !ruby/object:Gem::Requirement
49
+ requirement: &44927520 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *103945080
57
+ version_requirements: *44927520
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mocha
60
- requirement: &103944260 !ruby/object:Gem::Requirement
60
+ requirement: &44926240 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *103944260
68
+ version_requirements: *44926240
69
69
  description: ! 'Litle Online Ruby SDK created for version 8.10 of Litle XML online
70
70
  format, see the XSD schema for specific fields that are supported by this format.
71
71