LitleOnline 8.12.1 → 8.12.2

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.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = LitleOnline CHANGELOG
2
2
 
3
+ == Version 8.12.2 (May 16, 2012)
4
+
5
+ * Bugfix: Fix bug where rails "capture" method was interfering with Litle's "capture"
6
+
3
7
  == Version 8.12.1 (May 15, 2012)
4
8
 
5
9
  * Feature: Support Ruby 1.8.7
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ spec = Gem::Specification.new do |s|
34
34
  s.description = File.read(File.join(File.dirname(__FILE__), 'DESCRIPTION'))
35
35
  s.requirements =
36
36
  [ 'Contact sdksupport@litle.com for more information' ]
37
- s.version = "8.12.1"
37
+ s.version = "8.12.2"
38
38
  s.author = "Litle & Co"
39
39
  s.email = "sdksupport@litle.com"
40
40
  s.homepage = "http://www.litle.com/developers"
@@ -284,7 +284,7 @@ class LitleOnlineRequest
284
284
  capture.payPalOrderComplete = hash_in['payPalOrderComplete']
285
285
  capture.payPalNotes = hash_in['payPalNotes']
286
286
 
287
- request.capture = capture
287
+ request.captureTxn = capture
288
288
 
289
289
  authentication = Authentication.new
290
290
  authentication.user = 'PHXMLTEST'
@@ -517,7 +517,7 @@ class LitleOnlineRequest
517
517
 
518
518
  def get_merchant_sdk(hash_in)
519
519
  if(!hash_in['merchantSdk'])
520
- return 'Ruby;8.12.1'
520
+ return 'Ruby;8.12.2'
521
521
  else
522
522
  return hash_in['merchantSdk']
523
523
  end
@@ -958,11 +958,11 @@ class OnlineRequest
958
958
  text_node :merchantSdk, "@merchantSdk", :default_vaule=>nil
959
959
  object_node :authentication, "authentication", :class=>Authentication
960
960
  optional_choice_node :if, 'authorization', :then, (object_node :authorization, "authorization", :class=>Authorization),
961
- :elsif, 'sale', :then, (object_node :sale, "sale", :class=>Sale),
961
+ :elsif, 'sale', :then, (object_node :sale, "sale", :class=>Sale),
962
+ :elsif, 'captureTxn', :then, (object_node :captureTxn, "captureTxn", :class=>Capture),
962
963
  :elsif, 'captureGivenAuth', :then, (object_node :captureGivenAuth, "captureGivenAuth", :class=>CaptureGivenAuth),
963
- :elsif, 'capture', :then, (object_node :capture, "capture", :class=>Capture),
964
964
  :elsif, 'void', :then, (object_node :void, "void", :class=>Void),
965
- :elsif, 'forceCapture', :then, (object_node :forceCapture, "forceCapture", :class=>Capture),
965
+ :elsif, 'forceCapture', :then, (object_node :forceCapture, "forceCapture", :class=>ForceCapture),
966
966
  :elsif, 'credit', :then, (object_node :credit, "credit", :class=>Credit),
967
967
  :elsif, 'authReversal', :then, (object_node :authReversal, "authReversal", :class=>AuthReversal),
968
968
  :elsif, 'echeckCredit', :then, (object_node :echeckCredit, "echeckCredit", :class=>EcheckCredit),
@@ -971,6 +971,14 @@ class OnlineRequest
971
971
  :elsif, 'echeckVoid', :then, (object_node :echeckVoid, "echeckVoid", :class=>EcheckVoid),
972
972
  :elsif, 'echeckVerification', :then, (object_node :echeckVerification, "echeckVerification", :class=>EcheckVerification),
973
973
  :elsif, 'registerTokenRequest', :then, (object_node :registerTokenRequest, "registerTokenRequest", :class=>RegisterTokenRequest)
974
+ def post_save(xml, options={:Mapping=>:_default})
975
+ xml.each_element() {|el|
976
+ if(el.name == 'captureTxn')
977
+ el.name = 'capture'
978
+ end
979
+ }
980
+ end
981
+
974
982
  end
975
983
 
976
984
  class LitleOnlineResponse
@@ -242,7 +242,7 @@ end
242
242
  #Explicit - used for integrations
243
243
  assert_equal 'ActiveMerchant;3.2', litle.send(:get_merchant_sdk, {'merchantSdk'=>'ActiveMerchant;3.2'})
244
244
  #Implicit - used raw when nothing is specified
245
- assert_equal 'Ruby;8.12.1', litle.send(:get_merchant_sdk, {'NotMerchantSdk'=>'ActiveMerchant;3.2'})
245
+ assert_equal 'Ruby;8.12.2', litle.send(:get_merchant_sdk, {'NotMerchantSdk'=>'ActiveMerchant;3.2'})
246
246
  end
247
247
 
248
248
 
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.12.1
4
+ version: 8.12.2
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-05-15 00:00:00.000000000Z
12
+ date: 2012-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-object
16
- requirement: &245828000 !ruby/object:Gem::Requirement
16
+ requirement: &216214020 !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: *245828000
24
+ version_requirements: *216214020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: xml-mapping
27
- requirement: &245826040 !ruby/object:Gem::Requirement
27
+ requirement: &216213600 !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: *245826040
35
+ version_requirements: *216213600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mocha
38
- requirement: &245825140 !ruby/object:Gem::Requirement
38
+ requirement: &216213180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *245825140
46
+ version_requirements: *216213180
47
47
  description: ! 'Litle Online Ruby SDK created for version 8.12 of Litle XML online
48
48
  format, see the XSD schema for specific fields that are supported by this format.
49
49
 
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - Contact sdksupport@litle.com for more information
135
135
  rubyforge_project:
136
- rubygems_version: 1.8.17
136
+ rubygems_version: 1.8.15
137
137
  signing_key:
138
138
  specification_version: 3
139
139
  summary: Ruby SDK produced by Litle & Co. for online transaction processing using