TodoPagoConectorSS 1.8.0 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/issue_template.md +34 -0
- data/.gitignore +37 -0
- data/README.md +1553 -0
- data/TodoPago/DataProvider.rb +273 -0
- data/TodoPago/DiscoverPaymentMethodsTest.rb +71 -0
- data/TodoPago/GetAuthorizeAnswerTest.rb +61 -0
- data/TodoPago/GetCredentialsTest.rb +70 -0
- data/TodoPago/GetOperationsTest.rb +72 -0
- data/TodoPago/MockClient.rb +195 -0
- data/TodoPago/ReturnRequestTest.rb +64 -0
- data/TodoPago/SendAuthorizeRequestTest.rb +63 -0
- data/TodoPago/coverage/.last_run.json +5 -0
- data/TodoPago/coverage/.resultset.json +892 -0
- data/TodoPago/coverage/.resultset.json.lock +0 -0
- data/TodoPago/coverage/assets/0.10.0/application.css +799 -0
- data/TodoPago/coverage/assets/0.10.0/application.js +1707 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/border.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/controls.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_green.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_red.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_yellow.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/loading.gif +0 -0
- data/TodoPago/coverage/assets/0.10.0/magnify.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/TodoPago/coverage/index.html +5510 -0
- data/TodoPago/test.rb +203 -0
- data/TodoPago/test_validations.rb +108 -0
- data/TodoPago/tests_coverage.rb +11 -0
- data/TodoPagoConector.gemspec +14 -0
- data/lib/Authorize.wsdl +320 -0
- data/lib/Classes/user.rb +30 -0
- data/lib/Connectors/RestConnector.rb +65 -0
- data/lib/Connectors/ServiceConnector.rb +32 -0
- data/lib/Connectors/SoapConnector.rb +139 -0
- data/lib/Exceptions/connection_exception.rb +6 -0
- data/lib/Exceptions/empty_field_exception.rb +6 -0
- data/lib/Exceptions/empty_field_password_exception.rb +8 -0
- data/lib/Exceptions/empty_field_user_exception.rb +8 -0
- data/lib/Exceptions/prueba.rb +5 -0
- data/lib/Exceptions/response_exception.rb +6 -0
- data/lib/FraudControlValidation.rb +406 -0
- data/lib/Operations.wsdl +319 -0
- data/lib/ServiceReferences/Authorize.wsdl +320 -0
- data/lib/ServiceReferences/EchoService.wsdl +125 -0
- data/lib/ServiceReferences/Operations.wsdl +319 -0
- data/lib/Validation/FraudControlValidation.rb +406 -0
- data/lib/config/postalCodes.json +26 -0
- data/lib/config/validations.json +623 -0
- data/lib/prueba.rb +4 -0
- data/lib/user.rb +41 -0
- metadata +65 -1
data/lib/prueba.rb
ADDED
data/lib/user.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
#encoding: utf-8
|
2
|
+
require_relative "Exceptions/empty_field_user_exception"
|
3
|
+
require_relative "Exceptions/empty_field_password_exception"
|
4
|
+
|
5
|
+
class User
|
6
|
+
|
7
|
+
attr_accessor :merchant, :apiKey
|
8
|
+
attr_reader :user, :password
|
9
|
+
|
10
|
+
def initialize(user=nil, password=nil)
|
11
|
+
@user= user
|
12
|
+
@password= password
|
13
|
+
end
|
14
|
+
|
15
|
+
def as_json(options={})
|
16
|
+
{
|
17
|
+
merchant: @merchant,
|
18
|
+
apikey: @apiKey
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
def to_json(*options)
|
23
|
+
as_json(*options).to_json(*options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def getData
|
27
|
+
if(@user==nil)
|
28
|
+
raise EmptyFieldUserException.new
|
29
|
+
end
|
30
|
+
|
31
|
+
if (@password==nil)
|
32
|
+
raise EmptyFieldPasswordException.new
|
33
|
+
end
|
34
|
+
|
35
|
+
data = {:USUARIO=>@user, :CLAVE=>@password}
|
36
|
+
|
37
|
+
return data
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: TodoPagoConectorSS
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Softtek
|
@@ -58,7 +58,71 @@ executables: []
|
|
58
58
|
extensions: []
|
59
59
|
extra_rdoc_files: []
|
60
60
|
files:
|
61
|
+
- ".github/issue_template.md"
|
62
|
+
- ".gitignore"
|
63
|
+
- README.md
|
64
|
+
- TodoPago/DataProvider.rb
|
65
|
+
- TodoPago/DiscoverPaymentMethodsTest.rb
|
66
|
+
- TodoPago/GetAuthorizeAnswerTest.rb
|
67
|
+
- TodoPago/GetCredentialsTest.rb
|
68
|
+
- TodoPago/GetOperationsTest.rb
|
69
|
+
- TodoPago/MockClient.rb
|
70
|
+
- TodoPago/ReturnRequestTest.rb
|
71
|
+
- TodoPago/SendAuthorizeRequestTest.rb
|
72
|
+
- TodoPago/coverage/.last_run.json
|
73
|
+
- TodoPago/coverage/.resultset.json
|
74
|
+
- TodoPago/coverage/.resultset.json.lock
|
75
|
+
- TodoPago/coverage/assets/0.10.0/application.css
|
76
|
+
- TodoPago/coverage/assets/0.10.0/application.js
|
77
|
+
- TodoPago/coverage/assets/0.10.0/colorbox/border.png
|
78
|
+
- TodoPago/coverage/assets/0.10.0/colorbox/controls.png
|
79
|
+
- TodoPago/coverage/assets/0.10.0/colorbox/loading.gif
|
80
|
+
- TodoPago/coverage/assets/0.10.0/colorbox/loading_background.png
|
81
|
+
- TodoPago/coverage/assets/0.10.0/favicon_green.png
|
82
|
+
- TodoPago/coverage/assets/0.10.0/favicon_red.png
|
83
|
+
- TodoPago/coverage/assets/0.10.0/favicon_yellow.png
|
84
|
+
- TodoPago/coverage/assets/0.10.0/loading.gif
|
85
|
+
- TodoPago/coverage/assets/0.10.0/magnify.png
|
86
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
87
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
88
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
89
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
90
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
91
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
92
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
93
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
94
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png
|
95
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png
|
96
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png
|
97
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png
|
98
|
+
- TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png
|
99
|
+
- TodoPago/coverage/index.html
|
100
|
+
- TodoPago/test.rb
|
101
|
+
- TodoPago/test_validations.rb
|
102
|
+
- TodoPago/tests_coverage.rb
|
103
|
+
- TodoPagoConector.gemspec
|
104
|
+
- lib/Authorize.wsdl
|
105
|
+
- lib/Classes/user.rb
|
106
|
+
- lib/Connectors/RestConnector.rb
|
107
|
+
- lib/Connectors/ServiceConnector.rb
|
108
|
+
- lib/Connectors/SoapConnector.rb
|
109
|
+
- lib/Exceptions/connection_exception.rb
|
110
|
+
- lib/Exceptions/empty_field_exception.rb
|
111
|
+
- lib/Exceptions/empty_field_password_exception.rb
|
112
|
+
- lib/Exceptions/empty_field_user_exception.rb
|
113
|
+
- lib/Exceptions/prueba.rb
|
114
|
+
- lib/Exceptions/response_exception.rb
|
115
|
+
- lib/FraudControlValidation.rb
|
116
|
+
- lib/Operations.wsdl
|
117
|
+
- lib/ServiceReferences/Authorize.wsdl
|
118
|
+
- lib/ServiceReferences/EchoService.wsdl
|
119
|
+
- lib/ServiceReferences/Operations.wsdl
|
120
|
+
- lib/Validation/FraudControlValidation.rb
|
121
|
+
- lib/config/postalCodes.json
|
122
|
+
- lib/config/validations.json
|
123
|
+
- lib/prueba.rb
|
61
124
|
- lib/todo_pago_conector.rb
|
125
|
+
- lib/user.rb
|
62
126
|
homepage:
|
63
127
|
licenses: []
|
64
128
|
metadata: {}
|