spreedly 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spreedly/transactions/gateway_transaction.rb +1 -1
- data/lib/spreedly/version.rb +1 -1
- data/test/remote/remote_purchase_test.rb +1 -0
- data/test/unit/authorize_test.rb +1 -0
- data/test/unit/purchase_test.rb +1 -0
- data/test/unit/response_stubs/authorization_stubs.rb +2 -0
- data/test/unit/response_stubs/capture_stubs.rb +2 -0
- data/test/unit/response_stubs/find_transaction_stubs.rb +2 -0
- data/test/unit/response_stubs/list_transactions_stubs.rb +2 -0
- data/test/unit/response_stubs/purchase_stubs.rb +2 -0
- data/test/unit/response_stubs/refund_stubs.rb +2 -0
- data/test/unit/response_stubs/void_stubs.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7d94dc208fad4a7a5a4f97f591907c3f65e5ca
|
4
|
+
data.tar.gz: f6a2d23c816d162a8397b25c491e9f5b22eecadf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ef08fd584478af5a36df1186848f360705212029eb580ef194960ddf74db590b2068dc803728c6fe3d0b56d55ec768d66bdb4698be627b1a79e7d1b9bf2e4a
|
7
|
+
data.tar.gz: 46adb6b5ebb0a6b0b86215a71758a005ed8e3ced97810768be30593ececcb26e06b8522815a990fbd18896fff05df89302511d1d62ae34b019c6b88d5046e4bf
|
@@ -2,7 +2,7 @@ module Spreedly
|
|
2
2
|
|
3
3
|
class GatewayTransaction < Transaction
|
4
4
|
|
5
|
-
field :order_id, :ip, :description, :gateway_token
|
5
|
+
field :order_id, :ip, :description, :gateway_token, :gateway_transaction_id
|
6
6
|
field :merchant_name_descriptor, :merchant_location_descriptor
|
7
7
|
field :on_test_gateway, type: :boolean
|
8
8
|
|
data/lib/spreedly/version.rb
CHANGED
@@ -64,6 +64,7 @@ class RemotePurchaseTest < Test::Unit::TestCase
|
|
64
64
|
assert_equal "Real Stuff", transaction.merchant_name_descriptor
|
65
65
|
assert_equal "Raleigh", transaction.merchant_location_descriptor
|
66
66
|
assert_equal "retained", transaction.payment_method.storage_state
|
67
|
+
assert_match /\d/, transaction.gateway_transaction_id
|
67
68
|
end
|
68
69
|
|
69
70
|
end
|
data/test/unit/authorize_test.rb
CHANGED
@@ -27,6 +27,7 @@ class AuthorizeTest < Test::Unit::TestCase
|
|
27
27
|
assert_equal 'My Writeoff Inc.', t.merchant_name_descriptor
|
28
28
|
assert_equal 'Tax Free Zone', t.merchant_location_descriptor
|
29
29
|
assert_equal 'YjWxOjbpeieXsZFdAsbhM2DFgLe', t.gateway_token
|
30
|
+
assert_equal "44", t.gateway_transaction_id
|
30
31
|
|
31
32
|
assert_equal 'Nh2Vw0kAoSQvcJDpK52q4dZlrVJ', t.payment_method.token
|
32
33
|
assert_equal 'Forthrast', t.payment_method.last_name
|
data/test/unit/purchase_test.rb
CHANGED
@@ -28,6 +28,7 @@ class PurchaseTest < Test::Unit::TestCase
|
|
28
28
|
assert_equal '', t.merchant_location_descriptor
|
29
29
|
assert_equal 'YOaCn5a9xRaBTGgmGAWbkgWUuqv', t.gateway_token
|
30
30
|
assert_equal '8xXXIPGXTaPXysDA5OUpgnjTEjK', t.payment_method.token
|
31
|
+
assert_equal "44", t.gateway_transaction_id
|
31
32
|
|
32
33
|
assert t.response.success
|
33
34
|
assert_equal 'Successful purchase', t.response.message
|
@@ -21,6 +21,7 @@ module AuthorizationStubs
|
|
21
21
|
<gateway_specific_response_fields nil="true"/>
|
22
22
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
23
23
|
<gateway_token>YjWxOjbpeieXsZFdAsbhM2DFgLe</gateway_token>
|
24
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
24
25
|
<response>
|
25
26
|
<success type="boolean">true</success>
|
26
27
|
<message>Successful authorize</message>
|
@@ -89,6 +90,7 @@ module AuthorizationStubs
|
|
89
90
|
<gateway_specific_response_fields nil="true"/>
|
90
91
|
<message>Unable to process the authorize transaction.</message>
|
91
92
|
<gateway_token>OJoptVkyEg04N4AxfC6H42IH4HU</gateway_token>
|
93
|
+
<gateway_transaction_id nil="true"/>
|
92
94
|
<response>
|
93
95
|
<success type="boolean">false</success>
|
94
96
|
<message>Unable to process the authorize transaction.</message>
|
@@ -21,6 +21,7 @@ module CaptureStubs
|
|
21
21
|
<gateway_specific_response_fields nil="true"/>
|
22
22
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
23
23
|
<gateway_token>SoPblCOGDwaRyym68XGWeRiCy1C</gateway_token>
|
24
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
24
25
|
<response>
|
25
26
|
<success type="boolean">true</success>
|
26
27
|
<message>Successful capture</message>
|
@@ -63,6 +64,7 @@ module CaptureStubs
|
|
63
64
|
<gateway_specific_response_fields nil="true"/>
|
64
65
|
<message>Unable to process the capture transaction.</message>
|
65
66
|
<gateway_token>K0L5hw4rhLx1xMTL2cfHWx9D1rX</gateway_token>
|
67
|
+
<gateway_transaction_id></gateway_transaction_id>
|
66
68
|
<response>
|
67
69
|
<success type="boolean">false</success>
|
68
70
|
<message>Unable to process the capture transaction.</message>
|
@@ -10,6 +10,7 @@ module FindTransactionStubs
|
|
10
10
|
<transaction_type>AddPaymentMethod</transaction_type>
|
11
11
|
<retained type="boolean">true</retained>
|
12
12
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
13
|
+
<gateway_transaction_id>47</gateway_transaction_id>
|
13
14
|
<payment_method>
|
14
15
|
<token>7sqmBrh8zS4Mgei6wOyYskFpghF</token>
|
15
16
|
<created_at type="datetime">2013-08-05T19:32:49Z</created_at>
|
@@ -62,6 +63,7 @@ module FindTransactionStubs
|
|
62
63
|
<gateway_specific_response_fields nil="true"/>
|
63
64
|
<message key="messages.cannot_use_redacted_gateway">Unable to use a gateway because it's been redacted.</message>
|
64
65
|
<gateway_token>223rRq1muGCYQUMVGu2a1qcG9PK</gateway_token>
|
66
|
+
<gateway_transaction_id></gateway_transaction_id>
|
65
67
|
<payment_method>
|
66
68
|
<token>rYswku4CEaenVlBdmGluGM2cJ8q</token>
|
67
69
|
<created_at type="datetime">2013-10-11T20:15:25Z</created_at>
|
@@ -22,6 +22,7 @@ module ListTransactionsStubs
|
|
22
22
|
<gateway_specific_response_fields nil="true"/>
|
23
23
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
24
24
|
<gateway_token>TpjI3MSmLOSfqpFKP2poZRKc6Ru</gateway_token>
|
25
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
25
26
|
<response>
|
26
27
|
<success type="boolean">true</success>
|
27
28
|
<message>Successful authorize</message>
|
@@ -86,6 +87,7 @@ module ListTransactionsStubs
|
|
86
87
|
<gateway_specific_response_fields nil="true"/>
|
87
88
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
88
89
|
<gateway_token>TpjI3MSmLOSfqpFKP2poZRKc6Ru</gateway_token>
|
90
|
+
<gateway_transaction_id>47</gateway_transaction_id>
|
89
91
|
<response>
|
90
92
|
<success type="boolean">true</success>
|
91
93
|
<message>Successful capture</message>
|
@@ -21,6 +21,7 @@ module PurchaseStubs
|
|
21
21
|
<gateway_specific_response_fields nil="true"/>
|
22
22
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
23
23
|
<gateway_token>YOaCn5a9xRaBTGgmGAWbkgWUuqv</gateway_token>
|
24
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
24
25
|
<response>
|
25
26
|
<success type="boolean">true</success>
|
26
27
|
<message>Successful purchase</message>
|
@@ -89,6 +90,7 @@ module PurchaseStubs
|
|
89
90
|
<gateway_specific_response_fields nil="true"/>
|
90
91
|
<message>Unable to process the purchase transaction.</message>
|
91
92
|
<gateway_token>Y6jMbUCm2oz6QTpavzp0xLaV9mk</gateway_token>
|
93
|
+
<gateway_transaction_id nil="true"/>
|
92
94
|
<response>
|
93
95
|
<success type="boolean">false</success>
|
94
96
|
<message>Unable to process the purchase transaction.</message>
|
@@ -21,6 +21,7 @@ module RefundStubs
|
|
21
21
|
<gateway_specific_response_fields nil="true"/>
|
22
22
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
23
23
|
<gateway_token>XYI0V2l4KC1cAm6Y3c2kG5loJaA</gateway_token>
|
24
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
24
25
|
<response>
|
25
26
|
<success type="boolean">true</success>
|
26
27
|
<message>Successful credit</message>
|
@@ -63,6 +64,7 @@ module RefundStubs
|
|
63
64
|
<gateway_specific_response_fields nil="true"/>
|
64
65
|
<message>Unable to process the credit transaction.</message>
|
65
66
|
<gateway_token>GWUbHifwMEI8Lqyjz5H1zMbIC7M</gateway_token>
|
67
|
+
<gateway_transaction_id></gateway_transaction_id>
|
66
68
|
<response>
|
67
69
|
<success type="boolean">false</success>
|
68
70
|
<message>Unable to process the credit transaction.</message>
|
@@ -20,6 +20,7 @@ module VoidStubs
|
|
20
20
|
<message key="messages.transaction_succeeded">Succeeded!</message>
|
21
21
|
<gateway_token>EuXlDMZEMZfrHSvE9tkRzaW8j0z</gateway_token>
|
22
22
|
<reference_token>CjedAratpuiT3CMmln4t3oZFvOS</reference_token>
|
23
|
+
<gateway_transaction_id>44</gateway_transaction_id>
|
23
24
|
<response>
|
24
25
|
<success type="boolean">true</success>
|
25
26
|
<message>Successful void</message>
|
@@ -58,6 +59,7 @@ module VoidStubs
|
|
58
59
|
<message>Transaction id is invalid.</message>
|
59
60
|
<gateway_token>2AocQ8IUvnrr6J0xPGW7QbrMX6E</gateway_token>
|
60
61
|
<reference_token>KNFrnpBYd9kFohOBZVL6GEmSGJB</reference_token>
|
62
|
+
<gateway_transaction_id></gateway_transaction_id>
|
61
63
|
<response>
|
62
64
|
<success type="boolean">false</success>
|
63
65
|
<message>Transaction id is invalid.</message>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreedly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spreedly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|