CnpOnline 9.14.0 → 11.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/CHANGELOG +23 -17
- data/CONTRIBUTORS +0 -0
- data/DESCRIPTION +1 -1
- data/LICENSE +1 -1
- data/README.md +5 -3
- data/Rakefile +5 -5
- data/Rakefile~ +5 -5
- data/SETUP.md +3 -3
- data/bin/Setup.rb +59 -41
- data/lib/Communications.rb +3 -3
- data/lib/Configuration.rb +52 -45
- data/lib/EnvironmentVariables.rb +5 -1
- data/lib/LitleBatchRequest.rb +72 -7
- data/lib/LitleListeners.rb +17 -1
- data/lib/LitleOnline.rb +3 -4
- data/lib/LitleOnlineRequest.rb +37 -7
- data/lib/LitleRequest.rb +315 -186
- data/lib/LitleTransaction.rb +212 -85
- data/lib/LitleXmlMapper.rb +4 -2
- data/lib/XMLFields.rb +384 -171
- data/lib/cacert.pem +0 -0
- data/samples/Auth/LitleAuthReversalTransaction.rb +2 -2
- data/samples/Auth/LitleAuthorizationTransaction.rb +1 -0
- data/samples/Auth/LitlePaymentFullLifeCycle.rb +12 -6
- data/samples/Batch/AccountUpdate.rb +1 -0
- data/samples/Batch/SampleBatchDriver.rb +2 -1
- data/samples/Capture/LitleCaptureGivenAuthTransaction.rb +2 -1
- data/samples/Capture/LitleCaptureTransaction.rb +2 -2
- data/samples/Capture/LitleForceCaptureTransaction.rb +2 -1
- data/samples/Capture/LitlePartialCapture.rb +3 -3
- data/samples/Credit/LitleCreditTransaction.rb +2 -2
- data/samples/Credit/LitleRefundTransaction.rb +2 -1
- data/samples/Other/LitleAvsTransaction.rb +2 -1
- data/samples/Other/LitleVoidTransaction.rb +2 -1
- data/samples/Paypage/FullPaypageLifeCycle.rb +7 -2
- data/samples/Run_all.rb +0 -0
- data/samples/Sale/LitleSaleTransaction.rb +2 -1
- data/samples/Sale/SampleSaleTransaction.rb +2 -1
- data/test/certification/certTest1_base.rb +52 -53
- data/test/certification/certTest2_authenhanced.rb +24 -25
- data/test/certification/certTest3_authreversal.rb +23 -26
- data/test/certification/certTest4_echeck.rb +18 -32
- data/test/certification/certTest5_token.rb +105 -106
- data/test/certification/certTest_batchAll.rb +47 -15
- data/test/functional/test_activate.rb +32 -4
- data/test/functional/test_activateReversal.rb +18 -5
- data/test/functional/test_auth.rb +94 -48
- data/test/functional/test_authReversal.rb +4 -1
- data/test/functional/test_balanceInquiry.rb +28 -3
- data/test/functional/test_batchStream.rb +2 -4
- data/test/functional/test_cancelSubscription.rb +2 -2
- data/test/functional/test_capture.rb +21 -14
- data/test/functional/test_captureGivenAuth.rb +15 -6
- data/test/functional/test_createPlan.rb +1 -1
- data/test/functional/test_credit.rb +14 -5
- data/test/functional/test_deactivate.rb +26 -3
- data/test/functional/test_deactivateReversal.rb +18 -5
- data/test/functional/test_depositReversal.rb +31 -19
- data/test/functional/test_echeckCredit.rb +34 -6
- data/test/functional/test_echeckRedeposit.rb +29 -2
- data/test/functional/test_echeckSale.rb +68 -11
- data/test/functional/test_echeckVerification.rb +32 -7
- data/test/functional/test_echeckVoid.rb +2 -1
- data/test/functional/test_forceCapture.rb +20 -6
- data/test/functional/test_fraudCheck.rb +3 -5
- data/test/functional/test_giftCardAuthReversal.rb +72 -0
- data/test/functional/test_giftCardCapture.rb +72 -0
- data/test/functional/test_giftCardCredit.rb +69 -0
- data/test/functional/test_litle_requests.rb +3 -6
- data/test/functional/test_load.rb +27 -3
- data/test/functional/test_loadReversal.rb +18 -5
- data/test/functional/test_override.rb +7 -3
- data/test/functional/test_pgp_litle_requests.rb +294 -0
- data/test/functional/test_queryTransaction.rb +152 -0
- data/test/functional/test_refundReversal.rb +18 -5
- data/test/functional/test_sale.rb +122 -159
- data/test/functional/test_token.rb +17 -11
- data/test/functional/test_unload.rb +27 -3
- data/test/functional/test_unloadReversal.rb +18 -5
- data/test/functional/test_updateCardValidationNumOnToken.rb +1 -0
- data/test/functional/test_updatePlan.rb +2 -1
- data/test/functional/test_updateSubscription.rb +3 -1
- data/test/functional/test_wallet.rb +74 -0
- data/test/functional/test_xmlfields.rb +22 -3
- data/test/functional/ts_all.rb +2 -0
- data/test/unit/test_LitleBatchRequest.rb +53 -5
- data/test/unit/test_LitleOnlineRequest.rb +5 -30
- data/test/unit/test_LitleRequest.rb +7 -6
- data/test/unit/test_LitleTransaction.rb +34 -5
- data/test/unit/test_LitleXmlMapper.rb +3 -0
- data/test/unit/test_activate.rb +22 -2
- data/test/unit/test_activateReversal.rb +15 -3
- data/test/unit/test_auth.rb +11 -9
- data/test/unit/test_balanceInquiry.rb +2 -2
- data/test/unit/test_capture.rb +2 -2
- data/test/unit/test_captureGivenAuth.rb +21 -1
- data/test/unit/test_credit.rb +1 -1
- data/test/unit/test_deactivate.rb +19 -0
- data/test/unit/test_deactivateReversal.rb +15 -3
- data/test/unit/test_depositReversal.rb +17 -5
- data/test/unit/test_echeckCredit.rb +19 -0
- data/test/unit/test_echeckRedeposit.rb +15 -0
- data/test/unit/test_echeckSale.rb +20 -1
- data/test/unit/test_echeckVerification.rb +6 -3
- data/test/unit/test_forceCapture.rb +1 -1
- data/test/unit/test_giftCardAuthReversal.rb +58 -0
- data/test/{functional/test_utf8.rb → unit/test_giftCardCapture.rb} +25 -12
- data/test/unit/test_giftCardCredit.rb +57 -0
- data/test/unit/test_load.rb +2 -2
- data/test/unit/test_loadReversal.rb +15 -3
- data/test/unit/test_pgp_LitleRequest +139 -0
- data/test/unit/test_queryTransaction.rb +105 -0
- data/test/unit/test_refundReversal.rb +15 -3
- data/test/unit/test_sale.rb +23 -3
- data/test/unit/test_token.rb +24 -20
- data/test/unit/test_unload.rb +2 -2
- data/test/unit/test_unloadReversal.rb +15 -3
- data/test/unit/test_wallet.rb +262 -0
- data/test/unit/ts_unit.rb +2 -1
- metadata +81 -100
data/test/unit/test_unload.rb
CHANGED
@@ -38,13 +38,13 @@ module LitleOnline
|
|
38
38
|
'orderSource'=>'ecommerce',
|
39
39
|
'card'=>
|
40
40
|
{
|
41
|
-
'type'=>'
|
41
|
+
'type'=>'GC',
|
42
42
|
'number' =>'4100000000000001',
|
43
43
|
'expDate' =>'1210'
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
-
LitleXmlMapper.expects(:request).with(regexp_matches(/.*<unload reportGroup="Planets"><orderId>11<\/orderId><amount>500<\/amount><orderSource>ecommerce<\/orderSource><card><type>
|
47
|
+
LitleXmlMapper.expects(:request).with(regexp_matches(/.*<unload reportGroup="Planets"><orderId>11<\/orderId><amount>500<\/amount><orderSource>ecommerce<\/orderSource><card><type>GC<\/type><number>4100000000000001<\/number><expDate>1210<\/expDate><\/card><\/unload>.*/m), is_a(Hash))
|
48
48
|
LitleOnlineRequest.new.unload_request(hash)
|
49
49
|
end
|
50
50
|
|
@@ -33,11 +33,23 @@ module LitleOnline
|
|
33
33
|
'merchantId' => '101',
|
34
34
|
'version'=>'8.8',
|
35
35
|
'reportGroup'=>'Planets',
|
36
|
-
'litleTxnId' => '5000'
|
36
|
+
'litleTxnId' => '5000',
|
37
|
+
'card'=>{
|
38
|
+
'type'=>'GC',
|
39
|
+
'number' =>'400000000000001',
|
40
|
+
'expDate' =>'0150',
|
41
|
+
'pin' => '1234',
|
42
|
+
'cardValidationNum' => '411'
|
43
|
+
},
|
44
|
+
'originalRefCode' => '101',
|
45
|
+
'originalAmount' => '34561',
|
46
|
+
'originalTxnTime' => '2017-01-24T09:00:00',
|
47
|
+
'originalSystemTraceId' => '33',
|
48
|
+
'originalSequenceNumber' => '111111',
|
37
49
|
}
|
38
50
|
|
39
|
-
LitleXmlMapper.expects(:request).with(regexp_matches(/.*<
|
40
|
-
LitleOnlineRequest.new.
|
51
|
+
LitleXmlMapper.expects(:request).with(regexp_matches(/.*<litleTxnId>5000<\/litleTxnId><card><type>GC<\/type><number>400000000000001<\/number><expDate>0150<\/expDate><cardValidationNum>411<\/cardValidationNum><pin>1234<\/pin><\/card>.*/m), is_a(Hash))
|
52
|
+
LitleOnlineRequest.new.deposit_reversal(hash)
|
41
53
|
end
|
42
54
|
end
|
43
55
|
|
@@ -0,0 +1,262 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person
|
5
|
+
obtaining a copy of this software and associated documentation
|
6
|
+
files (the "Software"), to deal in the Software without
|
7
|
+
restriction, including without limitation the rights to use,
|
8
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the
|
10
|
+
Software is furnished to do so, subject to the following
|
11
|
+
conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
18
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
20
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
21
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
23
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
=end
|
25
|
+
|
26
|
+
|
27
|
+
require File.expand_path("../../../lib/LitleOnline",__FILE__)
|
28
|
+
require 'test/unit'
|
29
|
+
require 'mocha/setup'
|
30
|
+
|
31
|
+
# TESTING THE WALLET FEATURE FOR SALE TRANSACTION
|
32
|
+
# TYPE 1 - Success Scenarios
|
33
|
+
# TYPE 2 - Error Scenarios
|
34
|
+
|
35
|
+
module LitleOnline
|
36
|
+
=begin
|
37
|
+
Definition: Class Definition for the Testing Class TestWallet
|
38
|
+
Created on: 01-29-2016
|
39
|
+
Reason: To test the incorporation new features developed in Ruby SDK as per XML 10.1 schema.
|
40
|
+
=end
|
41
|
+
|
42
|
+
class TestWallet < Test::Unit::TestCase
|
43
|
+
|
44
|
+
=begin
|
45
|
+
Name - test_sale_wallet_no_sourcetype
|
46
|
+
Type - 2
|
47
|
+
Description - To validate request without providing a walletSourceType node
|
48
|
+
Expected Response - Error messgae -If wallet is specified, it must have a walletSourceType.
|
49
|
+
=end
|
50
|
+
def test_sale_wallet_no_sourcetype
|
51
|
+
hash =
|
52
|
+
{
|
53
|
+
'merchantId' => '101',
|
54
|
+
'id' => 'test',
|
55
|
+
'version'=>'8.8',
|
56
|
+
'reportGroup'=>'Planets',
|
57
|
+
'litleTxnId'=>'123456',
|
58
|
+
'orderId'=>'12344',
|
59
|
+
'amount'=>'106',
|
60
|
+
'orderSource'=>'ecommerce',
|
61
|
+
'paypal'=>
|
62
|
+
{
|
63
|
+
'payerId'=>'1234',
|
64
|
+
'token'=>'1234',
|
65
|
+
'transactionId'=>'123456'
|
66
|
+
},
|
67
|
+
'wallet'=>
|
68
|
+
{
|
69
|
+
'walletSourceTypeId' => '102'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
exception = assert_raise(RuntimeError){LitleOnlineRequest.new.sale(hash)}
|
74
|
+
assert_match /If wallet is specified, it must have a walletSourceType/, exception.message
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
=begin
|
79
|
+
Name - test_sale_wallet_no_sourcetypeid
|
80
|
+
Type - 2
|
81
|
+
Description - To validate request without providing a walletSourceTypeId node
|
82
|
+
Expected Response - Error messgae -If wallet is specified, it must have a walletSourceTypeId.
|
83
|
+
=end
|
84
|
+
def test_sale_wallet_no_sourcetypeid
|
85
|
+
hash =
|
86
|
+
{
|
87
|
+
'merchantId' => '101',
|
88
|
+
'id' => 'test',
|
89
|
+
'version'=>'8.8',
|
90
|
+
'reportGroup'=>'Planets',
|
91
|
+
'litleTxnId'=>'123456',
|
92
|
+
'orderId'=>'12344',
|
93
|
+
'amount'=>'106',
|
94
|
+
'orderSource'=>'ecommerce',
|
95
|
+
'paypal'=>
|
96
|
+
{
|
97
|
+
'payerId'=>'1234',
|
98
|
+
'token'=>'1234',
|
99
|
+
'transactionId'=>'123456'
|
100
|
+
},
|
101
|
+
|
102
|
+
'wallet'=>
|
103
|
+
{
|
104
|
+
'walletSourceType' => 'MasterPass'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
exception = assert_raise(RuntimeError){LitleOnlineRequest.new.sale(hash)}
|
109
|
+
assert_match /If wallet is specified, it must have a walletSourceTypeId/, exception.message
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
=begin
|
115
|
+
Name - test_success_sale_wallet
|
116
|
+
Type - 1
|
117
|
+
Description - To validate request by providing both walletSourceTypeId and walletSourceType nodes
|
118
|
+
Expected Response - Success Request.
|
119
|
+
=end
|
120
|
+
def test_success_sale_wallet
|
121
|
+
hash =
|
122
|
+
{
|
123
|
+
'merchantId' => '101',
|
124
|
+
'id' => 'test',
|
125
|
+
'version'=>'8.8',
|
126
|
+
'reportGroup'=>'Planets',
|
127
|
+
'litleTxnId'=>'123456',
|
128
|
+
'orderId'=>'12344',
|
129
|
+
'amount'=>'106',
|
130
|
+
'orderSource'=>'ecommerce',
|
131
|
+
'paypal'=>
|
132
|
+
{
|
133
|
+
'payerId'=>'1234',
|
134
|
+
'token'=>'1234',
|
135
|
+
'transactionId'=>'123456'
|
136
|
+
},
|
137
|
+
|
138
|
+
'wallet'=>
|
139
|
+
{
|
140
|
+
'walletSourceType' => 'MasterPass',
|
141
|
+
'walletSourceTypeId' => '102'
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
LitleXmlMapper.expects(:request).with(regexp_matches(/.*?<litleOnlineRequest.*?<sale.*?<wallet>.*?<walletSourceType>MasterPass<\/walletSourceType>.*?<\/wallet>.*?<\/sale>.*?/m), is_a(Hash))
|
146
|
+
LitleOnlineRequest.new.sale(hash)
|
147
|
+
end
|
148
|
+
|
149
|
+
|
150
|
+
# TESTING THE WALLET FEATURE FOR AUTHORIZATION TRANSACTION
|
151
|
+
# TYPE 1 - Success Scenarios
|
152
|
+
# TYPE 2 - Error Scenarios
|
153
|
+
|
154
|
+
=begin
|
155
|
+
Name - test_success_auth_wallet
|
156
|
+
Type - 1
|
157
|
+
Description - To validate request by providing both walletSourceTypeId and walletSourceType nodes
|
158
|
+
Expected Response - Success Request.
|
159
|
+
=end
|
160
|
+
def test_success_auth_wallet
|
161
|
+
hash =
|
162
|
+
{
|
163
|
+
'merchantId' => '101',
|
164
|
+
'version'=>'8.8',
|
165
|
+
'reportGroup'=>'Planets',
|
166
|
+
'orderId'=>'12344',
|
167
|
+
'amount'=>'106',
|
168
|
+
'orderSource'=>'ecommerce',
|
169
|
+
'applepay'=>
|
170
|
+
{
|
171
|
+
'data'=>'user',
|
172
|
+
'header'=>
|
173
|
+
{
|
174
|
+
'applicationData'=>'454657413164',
|
175
|
+
'ephemeralPublicKey'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
176
|
+
'publicKeyHash'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
177
|
+
'transactionId'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
178
|
+
},
|
179
|
+
|
180
|
+
'signature' =>'sign',
|
181
|
+
'version' =>'10000'
|
182
|
+
},
|
183
|
+
'wallet'=>
|
184
|
+
{
|
185
|
+
'walletSourceType' => 'MasterPass',
|
186
|
+
'walletSourceTypeId' => '102'
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
LitleXmlMapper.expects(:request).with(regexp_matches(/.*?<litleOnlineRequest.*?<authorization.*?<wallet>.*?<walletSourceType>MasterPass<\/walletSourceType><walletSourceTypeId>102<\/walletSourceTypeId>.*?<\/wallet>.*?<\/authorization>.*?/m), is_a(Hash))
|
191
|
+
LitleOnlineRequest.new.authorization(hash)
|
192
|
+
end
|
193
|
+
|
194
|
+
=begin
|
195
|
+
Name - test_auth_wallet_no_sourcetype
|
196
|
+
Type - 2
|
197
|
+
Description - To validate request without providing a walletSourceType node
|
198
|
+
Expected Response - Error messgae -If wallet is specified, it must have a walletSourceType.
|
199
|
+
=end
|
200
|
+
def test_auth_wallet_no_sourcetype
|
201
|
+
hash = {
|
202
|
+
'merchantId' => '101',
|
203
|
+
'version'=>'8.8',
|
204
|
+
'reportGroup'=>'Planets',
|
205
|
+
'orderId'=>'12344',
|
206
|
+
'amount'=>'106',
|
207
|
+
'orderSource'=>'ecommerce',
|
208
|
+
'applepay'=>{
|
209
|
+
'data'=>'user',
|
210
|
+
'header'=>{
|
211
|
+
'applicationData'=>'454657413164',
|
212
|
+
'ephemeralPublicKey'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
213
|
+
'publicKeyHash'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
214
|
+
'transactionId'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
215
|
+
},
|
216
|
+
'signature' =>'sign',
|
217
|
+
'version' =>'10000'
|
218
|
+
},
|
219
|
+
'wallet'=> {
|
220
|
+
'walletSourceTypeId' => '102'
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
exception = assert_raise(RuntimeError){LitleOnlineRequest.new.sale(hash)}
|
225
|
+
assert_match /If wallet is specified, it must have a walletSourceType/, exception.message
|
226
|
+
end
|
227
|
+
|
228
|
+
=begin
|
229
|
+
Name - test_auth_wallet_no_sourcetypeid
|
230
|
+
Type - 2
|
231
|
+
Description - To validate request without providing a walletSourceTypeId node
|
232
|
+
Expected Response - Error messgae -If wallet is specified, it must have a walletSourceTypeId.
|
233
|
+
=end
|
234
|
+
def test_auth_wallet_no_sourcetypeid
|
235
|
+
hash = {
|
236
|
+
'merchantId' => '101',
|
237
|
+
'version'=>'8.8',
|
238
|
+
'reportGroup'=>'Planets',
|
239
|
+
'orderId'=>'12344',
|
240
|
+
'amount'=>'106',
|
241
|
+
'orderSource'=>'ecommerce',
|
242
|
+
'applepay'=>{
|
243
|
+
'data'=>'user',
|
244
|
+
'header'=>{
|
245
|
+
'applicationData'=>'454657413164',
|
246
|
+
'ephemeralPublicKey'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
247
|
+
'publicKeyHash'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
|
248
|
+
'transactionId'=>'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
249
|
+
},
|
250
|
+
'signature' =>'sign',
|
251
|
+
'version' =>'10000'
|
252
|
+
},
|
253
|
+
'wallet'=> {
|
254
|
+
'walletSourceType' => 'MasterPass',
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
exception = assert_raise(RuntimeError){LitleOnlineRequest.new.sale(hash)}
|
259
|
+
assert_match /If wallet is specified, it must have a walletSourceTypeId/, exception.message
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
data/test/unit/ts_unit.rb
CHANGED
@@ -25,7 +25,6 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
25
25
|
require 'test/unit'
|
26
26
|
require File.expand_path("../../../lib/LitleOnline",__FILE__)
|
27
27
|
|
28
|
-
|
29
28
|
require_relative 'test_xmlfields'
|
30
29
|
require_relative 'test_captureGivenAuth'
|
31
30
|
require_relative 'test_sale'
|
@@ -62,5 +61,7 @@ require_relative 'test_refundReversal'
|
|
62
61
|
require_relative 'test_loadReversal'
|
63
62
|
require_relative 'test_unloadReversal'
|
64
63
|
require_relative 'test_deactivateReversal'
|
64
|
+
require_relative 'test_wallet'
|
65
|
+
require_relative 'test_queryTransaction'
|
65
66
|
require_relative 'test_fraudCheck'
|
66
67
|
|
metadata
CHANGED
@@ -1,112 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: CnpOnline
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 11.4.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Vantiv eCommerce
|
6
|
+
authors:
|
7
|
+
- Vantiv - eCommerce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2018-04-02 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
14
15
|
name: xml-object
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
16
|
prerelease: false
|
22
|
-
|
23
|
-
requirements:
|
24
|
-
-
|
25
|
-
-
|
26
|
-
|
27
|
-
|
28
|
-
name: xml-mapping
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- &id002
|
20
|
+
- ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
34
23
|
type: :runtime
|
24
|
+
version_requirements: *id001
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: xml-mapping
|
35
27
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
38
|
-
-
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: net-sftp
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
28
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- *id002
|
48
31
|
type: :runtime
|
32
|
+
version_requirements: *id003
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: net-sftp
|
49
35
|
prerelease: false
|
50
|
-
|
51
|
-
requirements:
|
52
|
-
-
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: libxml-ruby
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
36
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- *id002
|
62
39
|
type: :runtime
|
40
|
+
version_requirements: *id004
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: libxml-ruby
|
63
43
|
prerelease: false
|
64
|
-
|
65
|
-
requirements:
|
66
|
-
-
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: crack
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
44
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- *id002
|
76
47
|
type: :runtime
|
48
|
+
version_requirements: *id005
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: crack
|
77
51
|
prerelease: false
|
78
|
-
|
79
|
-
requirements:
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
- !ruby/object:Gem::Dependency
|
52
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- *id002
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id006
|
57
|
+
- !ruby/object:Gem::Dependency
|
84
58
|
name: mocha
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
59
|
prerelease: false
|
92
|
-
|
93
|
-
requirements:
|
94
|
-
-
|
95
|
-
|
96
|
-
|
60
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- *id002
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id007
|
97
65
|
description: |+
|
98
|
-
Vantiv eCommerce Ruby SDK created for version
|
99
|
-
|
66
|
+
Vantiv eCommerce Online Ruby SDK created for version 11.0 of Vantiv eCommerce XML format, see the XSD schema for specific fields that are supported by this format.
|
67
|
+
|
100
68
|
This gem contains an application interface in the Ruby programming language created by Vantiv eCommerce.
|
101
|
-
|
102
|
-
|
69
|
+
|
70
|
+
|
103
71
|
email: sdksupport@vantiv.com
|
104
|
-
executables:
|
72
|
+
executables:
|
105
73
|
- sample_driver.rb
|
106
74
|
- Setup.rb
|
107
75
|
extensions: []
|
76
|
+
|
108
77
|
extra_rdoc_files: []
|
109
|
-
|
78
|
+
|
79
|
+
files:
|
110
80
|
- CHANGELOG
|
111
81
|
- CONTRIBUTORS
|
112
82
|
- DESCRIPTION
|
@@ -177,10 +147,15 @@ files:
|
|
177
147
|
- test/functional/test_echeckVoid.rb
|
178
148
|
- test/functional/test_forceCapture.rb
|
179
149
|
- test/functional/test_fraudCheck.rb
|
150
|
+
- test/functional/test_giftCardAuthReversal.rb
|
151
|
+
- test/functional/test_giftCardCapture.rb
|
152
|
+
- test/functional/test_giftCardCredit.rb
|
180
153
|
- test/functional/test_litle_requests.rb
|
181
154
|
- test/functional/test_load.rb
|
182
155
|
- test/functional/test_loadReversal.rb
|
183
156
|
- test/functional/test_override.rb
|
157
|
+
- test/functional/test_pgp_litle_requests.rb
|
158
|
+
- test/functional/test_queryTransaction.rb
|
184
159
|
- test/functional/test_refundReversal.rb
|
185
160
|
- test/functional/test_sale.rb
|
186
161
|
- test/functional/test_token.rb
|
@@ -189,7 +164,7 @@ files:
|
|
189
164
|
- test/functional/test_updateCardValidationNumOnToken.rb
|
190
165
|
- test/functional/test_updatePlan.rb
|
191
166
|
- test/functional/test_updateSubscription.rb
|
192
|
-
- test/functional/
|
167
|
+
- test/functional/test_wallet.rb
|
193
168
|
- test/functional/test_xmlfields.rb
|
194
169
|
- test/functional/ts_all.rb
|
195
170
|
- test/unit/test_LitleAUBatch.rb
|
@@ -218,8 +193,13 @@ files:
|
|
218
193
|
- test/unit/test_echeckVoid.rb
|
219
194
|
- test/unit/test_forceCapture.rb
|
220
195
|
- test/unit/test_fraudCheck.rb
|
196
|
+
- test/unit/test_giftCardAuthReversal.rb
|
197
|
+
- test/unit/test_giftCardCapture.rb
|
198
|
+
- test/unit/test_giftCardCredit.rb
|
221
199
|
- test/unit/test_load.rb
|
222
200
|
- test/unit/test_loadReversal.rb
|
201
|
+
- test/unit/test_pgp_LitleRequest
|
202
|
+
- test/unit/test_queryTransaction.rb
|
223
203
|
- test/unit/test_refundReversal.rb
|
224
204
|
- test/unit/test_sale.rb
|
225
205
|
- test/unit/test_token.rb
|
@@ -228,32 +208,33 @@ files:
|
|
228
208
|
- test/unit/test_updateCardValidationNumOnToken.rb
|
229
209
|
- test/unit/test_updatePlan.rb
|
230
210
|
- test/unit/test_updateSubscription.rb
|
211
|
+
- test/unit/test_wallet.rb
|
231
212
|
- test/unit/test_xmlfields.rb
|
232
213
|
- test/unit/ts_unit.rb
|
233
|
-
homepage:
|
214
|
+
homepage: https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_Ruby_SDK
|
234
215
|
licenses: []
|
216
|
+
|
235
217
|
metadata: {}
|
218
|
+
|
236
219
|
post_install_message:
|
237
220
|
rdoc_options: []
|
238
|
-
|
221
|
+
|
222
|
+
require_paths:
|
239
223
|
- lib
|
240
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
241
|
-
requirements:
|
224
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
242
226
|
- - ">="
|
243
|
-
- !ruby/object:Gem::Version
|
227
|
+
- !ruby/object:Gem::Version
|
244
228
|
version: 2.2.0
|
245
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
|
-
requirements:
|
247
|
-
-
|
248
|
-
|
249
|
-
version: '0'
|
250
|
-
requirements:
|
229
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- *id002
|
232
|
+
requirements:
|
251
233
|
- Contact sdksupport@vantiv.com for more information
|
252
234
|
rubyforge_project:
|
253
235
|
rubygems_version: 2.7.6
|
254
236
|
signing_key:
|
255
237
|
specification_version: 4
|
256
|
-
summary: Ruby SDK produced by Vantiv eCommerce for transaction processing using Vantiv
|
257
|
-
|
258
|
-
test_files:
|
238
|
+
summary: Ruby SDK produced by Vantiv eCommerce for transaction processing using Vantiv eCommerce XML format v11.0
|
239
|
+
test_files:
|
259
240
|
- test/unit/ts_unit.rb
|