TodoPagoConectorSS 1.8.0 → 1.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.github/issue_template.md +34 -0
  3. data/.gitignore +37 -0
  4. data/README.md +1553 -0
  5. data/TodoPago/DataProvider.rb +273 -0
  6. data/TodoPago/DiscoverPaymentMethodsTest.rb +71 -0
  7. data/TodoPago/GetAuthorizeAnswerTest.rb +61 -0
  8. data/TodoPago/GetCredentialsTest.rb +70 -0
  9. data/TodoPago/GetOperationsTest.rb +72 -0
  10. data/TodoPago/MockClient.rb +195 -0
  11. data/TodoPago/ReturnRequestTest.rb +64 -0
  12. data/TodoPago/SendAuthorizeRequestTest.rb +63 -0
  13. data/TodoPago/coverage/.last_run.json +5 -0
  14. data/TodoPago/coverage/.resultset.json +892 -0
  15. data/TodoPago/coverage/.resultset.json.lock +0 -0
  16. data/TodoPago/coverage/assets/0.10.0/application.css +799 -0
  17. data/TodoPago/coverage/assets/0.10.0/application.js +1707 -0
  18. data/TodoPago/coverage/assets/0.10.0/colorbox/border.png +0 -0
  19. data/TodoPago/coverage/assets/0.10.0/colorbox/controls.png +0 -0
  20. data/TodoPago/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
  21. data/TodoPago/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
  22. data/TodoPago/coverage/assets/0.10.0/favicon_green.png +0 -0
  23. data/TodoPago/coverage/assets/0.10.0/favicon_red.png +0 -0
  24. data/TodoPago/coverage/assets/0.10.0/favicon_yellow.png +0 -0
  25. data/TodoPago/coverage/assets/0.10.0/loading.gif +0 -0
  26. data/TodoPago/coverage/assets/0.10.0/magnify.png +0 -0
  27. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  28. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  29. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  30. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  31. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  32. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  33. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  34. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  35. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  36. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  37. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  38. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  39. data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  40. data/TodoPago/coverage/index.html +5510 -0
  41. data/TodoPago/test.rb +203 -0
  42. data/TodoPago/test_validations.rb +108 -0
  43. data/TodoPago/tests_coverage.rb +11 -0
  44. data/TodoPagoConector.gemspec +14 -0
  45. data/lib/Authorize.wsdl +320 -0
  46. data/lib/Classes/user.rb +30 -0
  47. data/lib/Connectors/RestConnector.rb +65 -0
  48. data/lib/Connectors/ServiceConnector.rb +32 -0
  49. data/lib/Connectors/SoapConnector.rb +139 -0
  50. data/lib/Exceptions/connection_exception.rb +6 -0
  51. data/lib/Exceptions/empty_field_exception.rb +6 -0
  52. data/lib/Exceptions/empty_field_password_exception.rb +8 -0
  53. data/lib/Exceptions/empty_field_user_exception.rb +8 -0
  54. data/lib/Exceptions/prueba.rb +5 -0
  55. data/lib/Exceptions/response_exception.rb +6 -0
  56. data/lib/FraudControlValidation.rb +406 -0
  57. data/lib/Operations.wsdl +319 -0
  58. data/lib/ServiceReferences/Authorize.wsdl +320 -0
  59. data/lib/ServiceReferences/EchoService.wsdl +125 -0
  60. data/lib/ServiceReferences/Operations.wsdl +319 -0
  61. data/lib/Validation/FraudControlValidation.rb +406 -0
  62. data/lib/config/postalCodes.json +26 -0
  63. data/lib/config/validations.json +623 -0
  64. data/lib/prueba.rb +4 -0
  65. data/lib/user.rb +41 -0
  66. metadata +65 -1
data/lib/prueba.rb ADDED
@@ -0,0 +1,4 @@
1
+ #encoding: utf-8
2
+ require_relative "user.rb"
3
+
4
+ u = User.new("Gustavo", 123)
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.0
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: {}