workarea-forter 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  4. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.gitignore +17 -0
  7. data/CHANGELOG.md +63 -0
  8. data/CODE_OF_CONDUCT.md +3 -0
  9. data/CONTRIBUTING.md +3 -0
  10. data/Gemfile +25 -0
  11. data/LICENSE +52 -0
  12. data/LICENSE.md +3 -0
  13. data/README.md +113 -0
  14. data/Rakefile +60 -0
  15. data/app/controllers/workarea/admin/orders_controller.decorator +6 -0
  16. data/app/controllers/workarea/storefront/application_controller.decorator +10 -0
  17. data/app/models/search/admin/order.decorator +7 -0
  18. data/app/models/workarea/checkout/collect_payment.decorator +75 -0
  19. data/app/models/workarea/forter/decision.rb +18 -0
  20. data/app/models/workarea/forter/response.rb +15 -0
  21. data/app/models/workarea/fulfillment.decorator +77 -0
  22. data/app/models/workarea/order/status/suspected_fraud.rb +13 -0
  23. data/app/models/workarea/order.decorator +14 -0
  24. data/app/models/workarea/payment/saved_credit_card.decorator +14 -0
  25. data/app/models/workarea/payment/status/suspected_fraud.rb +13 -0
  26. data/app/models/workarea/payment/tender/credit_card.decorator +25 -0
  27. data/app/models/workarea/payment.decorator +13 -0
  28. data/app/services/workarea/forter/account.rb +42 -0
  29. data/app/services/workarea/forter/order.rb +145 -0
  30. data/app/services/workarea/forter/payment.rb +80 -0
  31. data/app/services/workarea/forter/tender/credit_card.rb +73 -0
  32. data/app/services/workarea/forter/tender/general.rb +29 -0
  33. data/app/services/workarea/forter/tender/gift_card.rb +23 -0
  34. data/app/services/workarea/forter/tender/paypal.rb +38 -0
  35. data/app/services/workarea/forter/tender/store_credit.rb +23 -0
  36. data/app/view_models/workarea/admin/order_view_model.decorator +7 -0
  37. data/app/views/workarea/admin/orders/_forter.html.haml +18 -0
  38. data/app/views/workarea/admin/orders/forter.html.haml +57 -0
  39. data/app/views/workarea/storefront/_forter_tracking.html.haml +4 -0
  40. data/app/workers/forter/update_status.rb +21 -0
  41. data/app/workers/workarea/save_user_order_details.decorator +34 -0
  42. data/bin/rails +20 -0
  43. data/config/initializers/appends.rb +9 -0
  44. data/config/initializers/workarea.rb +22 -0
  45. data/config/locales/en.yml +26 -0
  46. data/config/routes.rb +7 -0
  47. data/lib/workarea/forter/bogus_gateway.rb +62 -0
  48. data/lib/workarea/forter/decision_response.rb +60 -0
  49. data/lib/workarea/forter/engine.rb +8 -0
  50. data/lib/workarea/forter/gateway.rb +66 -0
  51. data/lib/workarea/forter/version.rb +5 -0
  52. data/lib/workarea/forter.rb +50 -0
  53. data/test/dummy/Rakefile +6 -0
  54. data/test/dummy/bin/bundle +3 -0
  55. data/test/dummy/bin/rails +4 -0
  56. data/test/dummy/bin/rake +4 -0
  57. data/test/dummy/bin/setup +30 -0
  58. data/test/dummy/bin/update +26 -0
  59. data/test/dummy/bin/yarn +11 -0
  60. data/test/dummy/config/application.rb +30 -0
  61. data/test/dummy/config/boot.rb +5 -0
  62. data/test/dummy/config/cable.yml +10 -0
  63. data/test/dummy/config/environment.rb +5 -0
  64. data/test/dummy/config/environments/development.rb +51 -0
  65. data/test/dummy/config/environments/production.rb +88 -0
  66. data/test/dummy/config/environments/test.rb +44 -0
  67. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  68. data/test/dummy/config/initializers/assets.rb +14 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  71. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  72. data/test/dummy/config/initializers/inflections.rb +16 -0
  73. data/test/dummy/config/initializers/mime_types.rb +4 -0
  74. data/test/dummy/config/initializers/workarea.rb +5 -0
  75. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  76. data/test/dummy/config/locales/en.yml +33 -0
  77. data/test/dummy/config/puma.rb +56 -0
  78. data/test/dummy/config/routes.rb +5 -0
  79. data/test/dummy/config/secrets.yml +32 -0
  80. data/test/dummy/config/spring.rb +6 -0
  81. data/test/dummy/config.ru +5 -0
  82. data/test/dummy/db/seeds.rb +2 -0
  83. data/test/dummy/log/.keep +0 -0
  84. data/test/factories/forter.rb +132 -0
  85. data/test/integration/workarea/admin/forter_order_integration_test.rb +36 -0
  86. data/test/integration/workarea/forter_authorize_cim_response_code_integration_test.rb +69 -0
  87. data/test/integration/workarea/forter_braintree_response_code_integration_test.rb +69 -0
  88. data/test/integration/workarea/forter_checkoutdotcom_integration_test.rb +71 -0
  89. data/test/integration/workarea/forter_cybersource_response_code_integration_test.rb +69 -0
  90. data/test/integration/workarea/forter_moneris_response_code_integration_test.rb +69 -0
  91. data/test/integration/workarea/forter_payflow_pro_response_code_test.rb +69 -0
  92. data/test/integration/workarea/storefront/forter_integration_test.rb +138 -0
  93. data/test/lib/workarea/forter/gateway_test.rb +47 -0
  94. data/test/models/workarea/checkout/forter_collect_payment_test.rb +60 -0
  95. data/test/models/workarea/forter_payment_test.rb +58 -0
  96. data/test/models/workarea/payment/forter_credit_card_test.rb +19 -0
  97. data/test/models/workarea/payment/forter_saved_credit_card_test.rb +32 -0
  98. data/test/services/workarea/forter/order_test.rb +82 -0
  99. data/test/support/workarea/forter_api_config.rb +27 -0
  100. data/test/system/workarea/admin/forter_system_test.rb +31 -0
  101. data/test/system/workarea/storefront/forter_braintree_checkout_system_test.rb +79 -0
  102. data/test/system/workarea/storefront/forter_tracking_system_test.rb +20 -0
  103. data/test/system/workarea/storefront/guest_checkout_system_test.decorator +43 -0
  104. data/test/teaspoon_env.rb +6 -0
  105. data/test/test_helper.rb +11 -0
  106. data/test/vcr_cassettes/forter/get_decision.yml +66 -0
  107. data/test/vcr_cassettes/forter/integration/authorize_net_response_code.yml +410 -0
  108. data/test/vcr_cassettes/forter/integration/braintree_response_code.yml +231 -0
  109. data/test/vcr_cassettes/forter/integration/checkoutdotcom_response_code.yml +129 -0
  110. data/test/vcr_cassettes/forter/integration/cyber_response_code.yml +199 -0
  111. data/test/vcr_cassettes/forter/integration/moneris_response_code.yml +84 -0
  112. data/test/vcr_cassettes/forter/integration/payflow_pro_response_code.yml +60 -0
  113. data/test/vcr_cassettes/forter/system/braintree_approved.yml +293 -0
  114. data/test/vcr_cassettes/forter/system/braintree_declined.yml +485 -0
  115. data/test/vcr_cassettes/forter/system/braintree_not_reviewed.yml +293 -0
  116. data/test/vcr_cassettes/forter/update_status.yml +182 -0
  117. data/test/view_models/workarea/storefront/order_view_model_test.decorator +10 -0
  118. data/test/workers/forter/update_status_test.rb +22 -0
  119. data/workarea-forter.gemspec +18 -0
  120. metadata +195 -0
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: workarea-forter
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.2
5
+ platform: ruby
6
+ authors:
7
+ - Jeff Yucis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: workarea
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.x
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: '3.4'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 3.x
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '3.4'
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: 'Forter Integration with Workarea for Fraud Protection '
48
+ email:
49
+ - jyucis@weblinc.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".editorconfig"
55
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
56
+ - ".github/ISSUE_TEMPLATE/documentation-request.md"
57
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
58
+ - ".gitignore"
59
+ - CHANGELOG.md
60
+ - CODE_OF_CONDUCT.md
61
+ - CONTRIBUTING.md
62
+ - Gemfile
63
+ - LICENSE
64
+ - LICENSE.md
65
+ - README.md
66
+ - Rakefile
67
+ - app/controllers/workarea/admin/orders_controller.decorator
68
+ - app/controllers/workarea/storefront/application_controller.decorator
69
+ - app/models/search/admin/order.decorator
70
+ - app/models/workarea/checkout/collect_payment.decorator
71
+ - app/models/workarea/forter/decision.rb
72
+ - app/models/workarea/forter/response.rb
73
+ - app/models/workarea/fulfillment.decorator
74
+ - app/models/workarea/order.decorator
75
+ - app/models/workarea/order/status/suspected_fraud.rb
76
+ - app/models/workarea/payment.decorator
77
+ - app/models/workarea/payment/saved_credit_card.decorator
78
+ - app/models/workarea/payment/status/suspected_fraud.rb
79
+ - app/models/workarea/payment/tender/credit_card.decorator
80
+ - app/services/workarea/forter/account.rb
81
+ - app/services/workarea/forter/order.rb
82
+ - app/services/workarea/forter/payment.rb
83
+ - app/services/workarea/forter/tender/credit_card.rb
84
+ - app/services/workarea/forter/tender/general.rb
85
+ - app/services/workarea/forter/tender/gift_card.rb
86
+ - app/services/workarea/forter/tender/paypal.rb
87
+ - app/services/workarea/forter/tender/store_credit.rb
88
+ - app/view_models/workarea/admin/order_view_model.decorator
89
+ - app/views/workarea/admin/orders/_forter.html.haml
90
+ - app/views/workarea/admin/orders/forter.html.haml
91
+ - app/views/workarea/storefront/_forter_tracking.html.haml
92
+ - app/workers/forter/update_status.rb
93
+ - app/workers/workarea/save_user_order_details.decorator
94
+ - bin/rails
95
+ - config/initializers/appends.rb
96
+ - config/initializers/workarea.rb
97
+ - config/locales/en.yml
98
+ - config/routes.rb
99
+ - lib/workarea/forter.rb
100
+ - lib/workarea/forter/bogus_gateway.rb
101
+ - lib/workarea/forter/decision_response.rb
102
+ - lib/workarea/forter/engine.rb
103
+ - lib/workarea/forter/gateway.rb
104
+ - lib/workarea/forter/version.rb
105
+ - test/dummy/Rakefile
106
+ - test/dummy/bin/bundle
107
+ - test/dummy/bin/rails
108
+ - test/dummy/bin/rake
109
+ - test/dummy/bin/setup
110
+ - test/dummy/bin/update
111
+ - test/dummy/bin/yarn
112
+ - test/dummy/config.ru
113
+ - test/dummy/config/application.rb
114
+ - test/dummy/config/boot.rb
115
+ - test/dummy/config/cable.yml
116
+ - test/dummy/config/environment.rb
117
+ - test/dummy/config/environments/development.rb
118
+ - test/dummy/config/environments/production.rb
119
+ - test/dummy/config/environments/test.rb
120
+ - test/dummy/config/initializers/application_controller_renderer.rb
121
+ - test/dummy/config/initializers/assets.rb
122
+ - test/dummy/config/initializers/backtrace_silencers.rb
123
+ - test/dummy/config/initializers/cookies_serializer.rb
124
+ - test/dummy/config/initializers/filter_parameter_logging.rb
125
+ - test/dummy/config/initializers/inflections.rb
126
+ - test/dummy/config/initializers/mime_types.rb
127
+ - test/dummy/config/initializers/workarea.rb
128
+ - test/dummy/config/initializers/wrap_parameters.rb
129
+ - test/dummy/config/locales/en.yml
130
+ - test/dummy/config/puma.rb
131
+ - test/dummy/config/routes.rb
132
+ - test/dummy/config/secrets.yml
133
+ - test/dummy/config/spring.rb
134
+ - test/dummy/db/seeds.rb
135
+ - test/dummy/log/.keep
136
+ - test/factories/forter.rb
137
+ - test/integration/workarea/admin/forter_order_integration_test.rb
138
+ - test/integration/workarea/forter_authorize_cim_response_code_integration_test.rb
139
+ - test/integration/workarea/forter_braintree_response_code_integration_test.rb
140
+ - test/integration/workarea/forter_checkoutdotcom_integration_test.rb
141
+ - test/integration/workarea/forter_cybersource_response_code_integration_test.rb
142
+ - test/integration/workarea/forter_moneris_response_code_integration_test.rb
143
+ - test/integration/workarea/forter_payflow_pro_response_code_test.rb
144
+ - test/integration/workarea/storefront/forter_integration_test.rb
145
+ - test/lib/workarea/forter/gateway_test.rb
146
+ - test/models/workarea/checkout/forter_collect_payment_test.rb
147
+ - test/models/workarea/forter_payment_test.rb
148
+ - test/models/workarea/payment/forter_credit_card_test.rb
149
+ - test/models/workarea/payment/forter_saved_credit_card_test.rb
150
+ - test/services/workarea/forter/order_test.rb
151
+ - test/support/workarea/forter_api_config.rb
152
+ - test/system/workarea/admin/forter_system_test.rb
153
+ - test/system/workarea/storefront/forter_braintree_checkout_system_test.rb
154
+ - test/system/workarea/storefront/forter_tracking_system_test.rb
155
+ - test/system/workarea/storefront/guest_checkout_system_test.decorator
156
+ - test/teaspoon_env.rb
157
+ - test/test_helper.rb
158
+ - test/vcr_cassettes/forter/get_decision.yml
159
+ - test/vcr_cassettes/forter/integration/authorize_net_response_code.yml
160
+ - test/vcr_cassettes/forter/integration/braintree_response_code.yml
161
+ - test/vcr_cassettes/forter/integration/checkoutdotcom_response_code.yml
162
+ - test/vcr_cassettes/forter/integration/cyber_response_code.yml
163
+ - test/vcr_cassettes/forter/integration/moneris_response_code.yml
164
+ - test/vcr_cassettes/forter/integration/payflow_pro_response_code.yml
165
+ - test/vcr_cassettes/forter/system/braintree_approved.yml
166
+ - test/vcr_cassettes/forter/system/braintree_declined.yml
167
+ - test/vcr_cassettes/forter/system/braintree_not_reviewed.yml
168
+ - test/vcr_cassettes/forter/update_status.yml
169
+ - test/view_models/workarea/storefront/order_view_model_test.decorator
170
+ - test/workers/forter/update_status_test.rb
171
+ - workarea-forter.gemspec
172
+ homepage: https://github.com/workarea-commerce/workarea-forter
173
+ licenses:
174
+ - Business Software License
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubygems_version: 3.0.4
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Forter Fraud Protection integration with Workarea
195
+ test_files: []