solidus_bolt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +41 -0
  3. data/.gem_release.yml +5 -0
  4. data/.github/stale.yml +17 -0
  5. data/.github_changelog_generator +2 -0
  6. data/.gitignore +20 -0
  7. data/.rspec +2 -0
  8. data/.rubocop.yml +11 -0
  9. data/CHANGELOG.md +1 -0
  10. data/Gemfile +33 -0
  11. data/LICENSE +26 -0
  12. data/README.md +175 -0
  13. data/Rakefile +6 -0
  14. data/app/assets/images/bolt_logo_standard.png +0 -0
  15. data/app/assets/javascripts/authorize_account.js +74 -0
  16. data/app/assets/javascripts/solidus_bolt.js +91 -0
  17. data/app/assets/javascripts/spree/backend/solidus_bolt.js +4 -0
  18. data/app/assets/javascripts/spree/frontend/solidus_bolt.js +18 -0
  19. data/app/assets/stylesheets/spree/backend/solidus_bolt.css +4 -0
  20. data/app/assets/stylesheets/spree/frontend/solidus_bolt.css +4 -0
  21. data/app/controllers/solidus_bolt/accounts_controller.rb +17 -0
  22. data/app/controllers/solidus_bolt/base_controller.rb +21 -0
  23. data/app/controllers/solidus_bolt/webhooks_controller.rb +21 -0
  24. data/app/controllers/spree/admin/bolt_webhooks_controller.rb +34 -0
  25. data/app/controllers/spree/admin/bolts_controller.rb +43 -0
  26. data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/add_addresses_to_bolt.rb +23 -0
  27. data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_addresses.rb +17 -0
  28. data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_payment_source.rb +17 -0
  29. data/app/decorators/models/solidus_bolt/address_decorator.rb +22 -0
  30. data/app/decorators/models/solidus_bolt/log_entry_decorator.rb +11 -0
  31. data/app/decorators/models/solidus_bolt/order_decorator.rb +44 -0
  32. data/app/decorators/models/solidus_bolt/payment_decorator.rb +11 -0
  33. data/app/decorators/omniauth/strategies/bolt_decorator.rb +16 -0
  34. data/app/jobs/solidus_bolt/add_address_job.rb +11 -0
  35. data/app/models/solidus_bolt/bolt_configuration.rb +74 -0
  36. data/app/models/solidus_bolt/gateway.rb +133 -0
  37. data/app/models/solidus_bolt/payment_method.rb +35 -0
  38. data/app/models/solidus_bolt/payment_source.rb +13 -0
  39. data/app/models/solidus_bolt.rb +7 -0
  40. data/app/overrides/spree/shared/_head/add_bolt_embed_script.html.erb.deface +6 -0
  41. data/app/services/solidus_bolt/accounts/add_address_service.rb +55 -0
  42. data/app/services/solidus_bolt/accounts/add_payment_method_service.rb +45 -0
  43. data/app/services/solidus_bolt/accounts/detail_service.rb +38 -0
  44. data/app/services/solidus_bolt/accounts/detect_account_service.rb +34 -0
  45. data/app/services/solidus_bolt/base_service.rb +55 -0
  46. data/app/services/solidus_bolt/oauth/token_service.rb +43 -0
  47. data/app/services/solidus_bolt/payments/capture_sync_service.rb +24 -0
  48. data/app/services/solidus_bolt/payments/credit_sync_service.rb +44 -0
  49. data/app/services/solidus_bolt/payments/void_sync_service.rb +18 -0
  50. data/app/services/solidus_bolt/server_error.rb +6 -0
  51. data/app/services/solidus_bolt/transactions/authorize_service.rb +72 -0
  52. data/app/services/solidus_bolt/transactions/base_service.rb +28 -0
  53. data/app/services/solidus_bolt/transactions/capture_service.rb +46 -0
  54. data/app/services/solidus_bolt/transactions/detail_service.rb +38 -0
  55. data/app/services/solidus_bolt/transactions/refund_service.rb +46 -0
  56. data/app/services/solidus_bolt/transactions/void_service.rb +44 -0
  57. data/app/services/solidus_bolt/users/refresh_access_token_service.rb +44 -0
  58. data/app/services/solidus_bolt/users/sync_addresses_service.rb +49 -0
  59. data/app/services/solidus_bolt/users/sync_payment_sources_service.rb +50 -0
  60. data/app/services/solidus_bolt/webhooks/create_service.rb +52 -0
  61. data/app/views/spree/admin/bolt_webhooks/new.html.erb +22 -0
  62. data/app/views/spree/admin/bolts/_configuration.html.erb +32 -0
  63. data/app/views/spree/admin/bolts/_form.html.erb +29 -0
  64. data/app/views/spree/admin/bolts/edit.html.erb +6 -0
  65. data/app/views/spree/admin/bolts/show.html.erb +21 -0
  66. data/app/views/spree/admin/payments/source_forms/_bolt.html.erb +1 -0
  67. data/app/views/spree/admin/payments/source_views/_bolt.html.erb +2 -0
  68. data/app/views/spree/api/payments/source_views/_bolt.json.jbuilder +4 -0
  69. data/app/views/spree/checkout/existing_payment/_bolt.html.erb +7 -0
  70. data/app/views/spree/checkout/payment/_bolt.html.erb +1 -0
  71. data/app/views/spree/shared/payment/_bolt.html.erb +19 -0
  72. data/app/webhooks/solidus_bolt/handlers/base_handler.rb +27 -0
  73. data/app/webhooks/solidus_bolt/handlers/capture_handler.rb +13 -0
  74. data/app/webhooks/solidus_bolt/handlers/credit_handler.rb +18 -0
  75. data/app/webhooks/solidus_bolt/handlers/void_handler.rb +11 -0
  76. data/app/webhooks/solidus_bolt/sorter.rb +33 -0
  77. data/bin/console +17 -0
  78. data/bin/rails +7 -0
  79. data/bin/rails-engine +13 -0
  80. data/bin/rails-sandbox +16 -0
  81. data/bin/rake +7 -0
  82. data/bin/sandbox +86 -0
  83. data/bin/setup +8 -0
  84. data/config/initializers/menu_items.rb +14 -0
  85. data/config/locales/en.yml +17 -0
  86. data/config/routes.rb +11 -0
  87. data/db/migrate/20220330094232_create_solidus_bolt_payment_sources.rb +16 -0
  88. data/db/migrate/20220413063328_create_solidus_bolt_bolt_configurations.rb +14 -0
  89. data/db/migrate/20220502005041_swap_url_for_env_boolean_in_bolt_configuration.rb +6 -0
  90. data/db/migrate/20220509102309_rework_solidus_bolt_payment_sources.rb +19 -0
  91. data/db/migrate/20220510075227_add_create_bolt_account_to_solidus_bolt_payment_source.rb +5 -0
  92. data/db/migrate/20220519233043_add_user_to_solidus_bolt_payment_source.rb +5 -0
  93. data/db/migrate/20220526005619_remove_user_id_from_solidus_bolt_payment_source.rb +5 -0
  94. data/db/migrate/20220530102107_rename_bolt_configuration_merchant_id_to_division_public_id.rb +5 -0
  95. data/db/migrate/20220531075527_update_bolt_configuration_environment_column_restrictions.rb +6 -0
  96. data/db/seeds.rb +30 -0
  97. data/lib/generators/solidus_bolt/install/install_generator.rb +78 -0
  98. data/lib/generators/solidus_bolt/install/templates/initializer.rb +8 -0
  99. data/lib/solidus_bolt/configuration.rb +19 -0
  100. data/lib/solidus_bolt/engine.rb +62 -0
  101. data/lib/solidus_bolt/testing_support/factories.rb +32 -0
  102. data/lib/solidus_bolt/version.rb +5 -0
  103. data/lib/solidus_bolt.rb +9 -0
  104. data/lib/tasks/db/seed/solidus_bolt.rake +14 -0
  105. data/lib/views/frontend/spree/shared/_login_bar_items.html.erb +18 -0
  106. data/solidus_bolt.gemspec +46 -0
  107. data/spec/decorators/models/solidus_bolt/address_decorator_spec.rb +24 -0
  108. data/spec/decorators/models/solidus_bolt/order_decorator_spec.rb +36 -0
  109. data/spec/decorators/models/solidus_bolt/payment_decorator_spec.rb +30 -0
  110. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_correct_access_token/receives_a_successful_response.yml +137 -0
  111. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_existing_address/skips_the_add_address_call.yml +82 -0
  112. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_wrong_access_token/gives_an_error.yml +55 -0
  113. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_correct_access_token/receives_a_successful_response.yml +186 -0
  114. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_wrong_access_token/gives_an_error.yml +179 -0
  115. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_correct_access_token/receives_a_successful_response.yml +55 -0
  116. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_wrong_access_token/gives_an_error.yml +55 -0
  117. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/receives_the_correct_response.yml +50 -0
  118. data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/returns_status_200.yml +50 -0
  119. data/spec/fixtures/vcr_cassettes/SolidusBolt_Oauth_TokenService/_call/makes_the_API_call.yml +59 -0
  120. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/when_repeat_payment/_call/makes_the_API_call.yml +305 -0
  121. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/with_auto_capture/_call/makes_the_API_call.yml +307 -0
  122. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/without_auto_capture/_call/makes_the_API_call.yml +252 -0
  123. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_CaptureService/_call/makes_the_API_call.yml +242 -0
  124. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_DetailService/_call/makes_the_API_call.yml +244 -0
  125. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_RefundService/_call/makes_the_API_call.yml +296 -0
  126. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/makes_the_API_call.yml +242 -0
  127. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_id_is_missing/makes_the_API_call.yml +242 -0
  128. data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_reference_is_missing/makes_the_API_call.yml +242 -0
  129. data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_bill_address_to_the_user.yml +165 -0
  130. data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_ship_address_to_the_user.yml +165 -0
  131. data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncPaymentSourcesService/_call/creates_a_new_payment_source_with_card_ID.yml +55 -0
  132. data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_all_event/returns_a_webhook_id.yml +54 -0
  133. data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_an_event/returns_a_webhook_id.yml +54 -0
  134. data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_empty_event/raises_a_server_error.yml +57 -0
  135. data/spec/jobs/solidus_bolt/add_address_job_spec.rb +18 -0
  136. data/spec/models/solidus_bolt/bolt_configuration_spec.rb +173 -0
  137. data/spec/models/solidus_bolt/gateway_spec.rb +130 -0
  138. data/spec/models/solidus_bolt/payment_method_spec.rb +21 -0
  139. data/spec/models/solidus_bolt/payment_source_spec.rb +22 -0
  140. data/spec/requests/solidus_bolt/accounts_controller_spec.rb +41 -0
  141. data/spec/requests/solidus_bolt/webhooks_controller_spec.rb +122 -0
  142. data/spec/requests/spree/admin/bolt_spec.rb +71 -0
  143. data/spec/requests/spree/admin/bolt_webhook_spec.rb +35 -0
  144. data/spec/requests/spree/checkout_controller_spec.rb +117 -0
  145. data/spec/services/solidus_bolt/accounts/add_address_service_spec.rb +45 -0
  146. data/spec/services/solidus_bolt/accounts/add_payment_method_service_spec.rb +47 -0
  147. data/spec/services/solidus_bolt/accounts/detail_service_spec.rb +32 -0
  148. data/spec/services/solidus_bolt/accounts/detect_account_service_spec.rb +15 -0
  149. data/spec/services/solidus_bolt/base_service_spec.rb +49 -0
  150. data/spec/services/solidus_bolt/oauth/token_service_spec.rb +15 -0
  151. data/spec/services/solidus_bolt/payments/capture_sync_service_spec.rb +27 -0
  152. data/spec/services/solidus_bolt/payments/credit_sync_service_spec.rb +38 -0
  153. data/spec/services/solidus_bolt/payments/void_sync_service_spec.rb +25 -0
  154. data/spec/services/solidus_bolt/transactions/authorize_service_spec.rb +117 -0
  155. data/spec/services/solidus_bolt/transactions/base_service_spec.rb +38 -0
  156. data/spec/services/solidus_bolt/transactions/capture_service_spec.rb +37 -0
  157. data/spec/services/solidus_bolt/transactions/detail_service_spec.rb +31 -0
  158. data/spec/services/solidus_bolt/transactions/refund_service_spec.rb +42 -0
  159. data/spec/services/solidus_bolt/transactions/void_service_spec.rb +70 -0
  160. data/spec/services/solidus_bolt/users/refresh_access_token_service_spec.rb +45 -0
  161. data/spec/services/solidus_bolt/users/sync_addresses_service_spec.rb +74 -0
  162. data/spec/services/solidus_bolt/users/sync_payment_sources_service_spec.rb +25 -0
  163. data/spec/services/solidus_bolt/webhooks/create_service_spec.rb +33 -0
  164. data/spec/spec_helper.rb +37 -0
  165. data/spec/support/bolt_configuration.rb +26 -0
  166. data/spec/support/bolt_helper.rb +66 -0
  167. data/spec/support/vcr.rb +29 -0
  168. data/spec/webhooks/solidus_bolt/handlers/base_handler_spec.rb +13 -0
  169. data/spec/webhooks/solidus_bolt/handlers/capture_handler_spec.rb +24 -0
  170. data/spec/webhooks/solidus_bolt/handlers/credit_handler_spec.rb +32 -0
  171. data/spec/webhooks/solidus_bolt/handlers/void_handler_spec.rb +19 -0
  172. data/spec/webhooks/solidus_bolt/sorter_spec.rb +39 -0
  173. metadata +492 -0
metadata ADDED
@@ -0,0 +1,492 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: solidus_bolt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - piyushswain
8
+ - Naokimi
9
+ - DanielePalombo
10
+ autorequire:
11
+ bindir: exe
12
+ cert_chain: []
13
+ date: 2022-06-17 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: coffee-rails
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: deface
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: httparty
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: omniauth-bolt
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rails
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">"
76
+ - !ruby/object:Gem::Version
77
+ version: 0.a
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: 7.a
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">"
86
+ - !ruby/object:Gem::Version
87
+ version: 0.a
88
+ - - "<"
89
+ - !ruby/object:Gem::Version
90
+ version: 7.a
91
+ - !ruby/object:Gem::Dependency
92
+ name: solidus_auth_devise
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ type: :runtime
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ - !ruby/object:Gem::Dependency
106
+ name: solidus_core
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: 2.0.0
112
+ - - "<"
113
+ - !ruby/object:Gem::Version
114
+ version: '4'
115
+ type: :runtime
116
+ prerelease: false
117
+ version_requirements: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: 2.0.0
122
+ - - "<"
123
+ - !ruby/object:Gem::Version
124
+ version: '4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: solidus_social
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: solidus_support
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.5'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.5'
153
+ - !ruby/object:Gem::Dependency
154
+ name: tweetnacl
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: solidus_dev_support
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.5'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.5'
195
+ - !ruby/object:Gem::Dependency
196
+ name: vcr
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webmock
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description:
224
+ email: contact@solidus.io
225
+ executables: []
226
+ extensions: []
227
+ extra_rdoc_files: []
228
+ files:
229
+ - ".circleci/config.yml"
230
+ - ".gem_release.yml"
231
+ - ".github/stale.yml"
232
+ - ".github_changelog_generator"
233
+ - ".gitignore"
234
+ - ".rspec"
235
+ - ".rubocop.yml"
236
+ - CHANGELOG.md
237
+ - Gemfile
238
+ - LICENSE
239
+ - README.md
240
+ - Rakefile
241
+ - app/assets/images/bolt_logo_standard.png
242
+ - app/assets/javascripts/authorize_account.js
243
+ - app/assets/javascripts/solidus_bolt.js
244
+ - app/assets/javascripts/spree/backend/solidus_bolt.js
245
+ - app/assets/javascripts/spree/frontend/solidus_bolt.js
246
+ - app/assets/stylesheets/spree/backend/solidus_bolt.css
247
+ - app/assets/stylesheets/spree/frontend/solidus_bolt.css
248
+ - app/controllers/solidus_bolt/accounts_controller.rb
249
+ - app/controllers/solidus_bolt/base_controller.rb
250
+ - app/controllers/solidus_bolt/webhooks_controller.rb
251
+ - app/controllers/spree/admin/bolt_webhooks_controller.rb
252
+ - app/controllers/spree/admin/bolts_controller.rb
253
+ - app/decorators/controllers/solidus_bolt/spree_checkout_controller/add_addresses_to_bolt.rb
254
+ - app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_addresses.rb
255
+ - app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_payment_source.rb
256
+ - app/decorators/models/solidus_bolt/address_decorator.rb
257
+ - app/decorators/models/solidus_bolt/log_entry_decorator.rb
258
+ - app/decorators/models/solidus_bolt/order_decorator.rb
259
+ - app/decorators/models/solidus_bolt/payment_decorator.rb
260
+ - app/decorators/omniauth/strategies/bolt_decorator.rb
261
+ - app/jobs/solidus_bolt/add_address_job.rb
262
+ - app/models/solidus_bolt.rb
263
+ - app/models/solidus_bolt/bolt_configuration.rb
264
+ - app/models/solidus_bolt/gateway.rb
265
+ - app/models/solidus_bolt/payment_method.rb
266
+ - app/models/solidus_bolt/payment_source.rb
267
+ - app/overrides/spree/shared/_head/add_bolt_embed_script.html.erb.deface
268
+ - app/services/solidus_bolt/accounts/add_address_service.rb
269
+ - app/services/solidus_bolt/accounts/add_payment_method_service.rb
270
+ - app/services/solidus_bolt/accounts/detail_service.rb
271
+ - app/services/solidus_bolt/accounts/detect_account_service.rb
272
+ - app/services/solidus_bolt/base_service.rb
273
+ - app/services/solidus_bolt/oauth/token_service.rb
274
+ - app/services/solidus_bolt/payments/capture_sync_service.rb
275
+ - app/services/solidus_bolt/payments/credit_sync_service.rb
276
+ - app/services/solidus_bolt/payments/void_sync_service.rb
277
+ - app/services/solidus_bolt/server_error.rb
278
+ - app/services/solidus_bolt/transactions/authorize_service.rb
279
+ - app/services/solidus_bolt/transactions/base_service.rb
280
+ - app/services/solidus_bolt/transactions/capture_service.rb
281
+ - app/services/solidus_bolt/transactions/detail_service.rb
282
+ - app/services/solidus_bolt/transactions/refund_service.rb
283
+ - app/services/solidus_bolt/transactions/void_service.rb
284
+ - app/services/solidus_bolt/users/refresh_access_token_service.rb
285
+ - app/services/solidus_bolt/users/sync_addresses_service.rb
286
+ - app/services/solidus_bolt/users/sync_payment_sources_service.rb
287
+ - app/services/solidus_bolt/webhooks/create_service.rb
288
+ - app/views/spree/admin/bolt_webhooks/new.html.erb
289
+ - app/views/spree/admin/bolts/_configuration.html.erb
290
+ - app/views/spree/admin/bolts/_form.html.erb
291
+ - app/views/spree/admin/bolts/edit.html.erb
292
+ - app/views/spree/admin/bolts/show.html.erb
293
+ - app/views/spree/admin/payments/source_forms/_bolt.html.erb
294
+ - app/views/spree/admin/payments/source_views/_bolt.html.erb
295
+ - app/views/spree/api/payments/source_views/_bolt.json.jbuilder
296
+ - app/views/spree/checkout/existing_payment/_bolt.html.erb
297
+ - app/views/spree/checkout/payment/_bolt.html.erb
298
+ - app/views/spree/shared/payment/_bolt.html.erb
299
+ - app/webhooks/solidus_bolt/handlers/base_handler.rb
300
+ - app/webhooks/solidus_bolt/handlers/capture_handler.rb
301
+ - app/webhooks/solidus_bolt/handlers/credit_handler.rb
302
+ - app/webhooks/solidus_bolt/handlers/void_handler.rb
303
+ - app/webhooks/solidus_bolt/sorter.rb
304
+ - bin/console
305
+ - bin/rails
306
+ - bin/rails-engine
307
+ - bin/rails-sandbox
308
+ - bin/rake
309
+ - bin/sandbox
310
+ - bin/setup
311
+ - config/initializers/menu_items.rb
312
+ - config/locales/en.yml
313
+ - config/routes.rb
314
+ - db/migrate/20220330094232_create_solidus_bolt_payment_sources.rb
315
+ - db/migrate/20220413063328_create_solidus_bolt_bolt_configurations.rb
316
+ - db/migrate/20220502005041_swap_url_for_env_boolean_in_bolt_configuration.rb
317
+ - db/migrate/20220509102309_rework_solidus_bolt_payment_sources.rb
318
+ - db/migrate/20220510075227_add_create_bolt_account_to_solidus_bolt_payment_source.rb
319
+ - db/migrate/20220519233043_add_user_to_solidus_bolt_payment_source.rb
320
+ - db/migrate/20220526005619_remove_user_id_from_solidus_bolt_payment_source.rb
321
+ - db/migrate/20220530102107_rename_bolt_configuration_merchant_id_to_division_public_id.rb
322
+ - db/migrate/20220531075527_update_bolt_configuration_environment_column_restrictions.rb
323
+ - db/seeds.rb
324
+ - lib/generators/solidus_bolt/install/install_generator.rb
325
+ - lib/generators/solidus_bolt/install/templates/initializer.rb
326
+ - lib/solidus_bolt.rb
327
+ - lib/solidus_bolt/configuration.rb
328
+ - lib/solidus_bolt/engine.rb
329
+ - lib/solidus_bolt/testing_support/factories.rb
330
+ - lib/solidus_bolt/version.rb
331
+ - lib/tasks/db/seed/solidus_bolt.rake
332
+ - lib/views/frontend/spree/shared/_login_bar_items.html.erb
333
+ - solidus_bolt.gemspec
334
+ - spec/decorators/models/solidus_bolt/address_decorator_spec.rb
335
+ - spec/decorators/models/solidus_bolt/order_decorator_spec.rb
336
+ - spec/decorators/models/solidus_bolt/payment_decorator_spec.rb
337
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_correct_access_token/receives_a_successful_response.yml
338
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_existing_address/skips_the_add_address_call.yml
339
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_wrong_access_token/gives_an_error.yml
340
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_correct_access_token/receives_a_successful_response.yml
341
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_wrong_access_token/gives_an_error.yml
342
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_correct_access_token/receives_a_successful_response.yml
343
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_wrong_access_token/gives_an_error.yml
344
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/receives_the_correct_response.yml
345
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/returns_status_200.yml
346
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Oauth_TokenService/_call/makes_the_API_call.yml
347
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/when_repeat_payment/_call/makes_the_API_call.yml
348
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/with_auto_capture/_call/makes_the_API_call.yml
349
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/without_auto_capture/_call/makes_the_API_call.yml
350
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_CaptureService/_call/makes_the_API_call.yml
351
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_DetailService/_call/makes_the_API_call.yml
352
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_RefundService/_call/makes_the_API_call.yml
353
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/makes_the_API_call.yml
354
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_id_is_missing/makes_the_API_call.yml
355
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_reference_is_missing/makes_the_API_call.yml
356
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_bill_address_to_the_user.yml
357
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_ship_address_to_the_user.yml
358
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncPaymentSourcesService/_call/creates_a_new_payment_source_with_card_ID.yml
359
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_all_event/returns_a_webhook_id.yml
360
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_an_event/returns_a_webhook_id.yml
361
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_empty_event/raises_a_server_error.yml
362
+ - spec/jobs/solidus_bolt/add_address_job_spec.rb
363
+ - spec/models/solidus_bolt/bolt_configuration_spec.rb
364
+ - spec/models/solidus_bolt/gateway_spec.rb
365
+ - spec/models/solidus_bolt/payment_method_spec.rb
366
+ - spec/models/solidus_bolt/payment_source_spec.rb
367
+ - spec/requests/solidus_bolt/accounts_controller_spec.rb
368
+ - spec/requests/solidus_bolt/webhooks_controller_spec.rb
369
+ - spec/requests/spree/admin/bolt_spec.rb
370
+ - spec/requests/spree/admin/bolt_webhook_spec.rb
371
+ - spec/requests/spree/checkout_controller_spec.rb
372
+ - spec/services/solidus_bolt/accounts/add_address_service_spec.rb
373
+ - spec/services/solidus_bolt/accounts/add_payment_method_service_spec.rb
374
+ - spec/services/solidus_bolt/accounts/detail_service_spec.rb
375
+ - spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
376
+ - spec/services/solidus_bolt/base_service_spec.rb
377
+ - spec/services/solidus_bolt/oauth/token_service_spec.rb
378
+ - spec/services/solidus_bolt/payments/capture_sync_service_spec.rb
379
+ - spec/services/solidus_bolt/payments/credit_sync_service_spec.rb
380
+ - spec/services/solidus_bolt/payments/void_sync_service_spec.rb
381
+ - spec/services/solidus_bolt/transactions/authorize_service_spec.rb
382
+ - spec/services/solidus_bolt/transactions/base_service_spec.rb
383
+ - spec/services/solidus_bolt/transactions/capture_service_spec.rb
384
+ - spec/services/solidus_bolt/transactions/detail_service_spec.rb
385
+ - spec/services/solidus_bolt/transactions/refund_service_spec.rb
386
+ - spec/services/solidus_bolt/transactions/void_service_spec.rb
387
+ - spec/services/solidus_bolt/users/refresh_access_token_service_spec.rb
388
+ - spec/services/solidus_bolt/users/sync_addresses_service_spec.rb
389
+ - spec/services/solidus_bolt/users/sync_payment_sources_service_spec.rb
390
+ - spec/services/solidus_bolt/webhooks/create_service_spec.rb
391
+ - spec/spec_helper.rb
392
+ - spec/support/bolt_configuration.rb
393
+ - spec/support/bolt_helper.rb
394
+ - spec/support/vcr.rb
395
+ - spec/webhooks/solidus_bolt/handlers/base_handler_spec.rb
396
+ - spec/webhooks/solidus_bolt/handlers/capture_handler_spec.rb
397
+ - spec/webhooks/solidus_bolt/handlers/credit_handler_spec.rb
398
+ - spec/webhooks/solidus_bolt/handlers/void_handler_spec.rb
399
+ - spec/webhooks/solidus_bolt/sorter_spec.rb
400
+ homepage: https://github.com/nebulab/solidus_bolt#readme
401
+ licenses:
402
+ - Apache-2.0
403
+ metadata:
404
+ homepage_uri: https://github.com/nebulab/solidus_bolt#readme
405
+ source_code_uri: https://github.com/nebulab/solidus_bolt
406
+ changelog_uri: https://github.com/nebulab/solidus_bolt/blob/master/CHANGELOG.md
407
+ post_install_message:
408
+ rdoc_options: []
409
+ require_paths:
410
+ - lib
411
+ required_ruby_version: !ruby/object:Gem::Requirement
412
+ requirements:
413
+ - - "~>"
414
+ - !ruby/object:Gem::Version
415
+ version: '2.5'
416
+ required_rubygems_version: !ruby/object:Gem::Requirement
417
+ requirements:
418
+ - - ">="
419
+ - !ruby/object:Gem::Version
420
+ version: '0'
421
+ requirements: []
422
+ rubygems_version: 3.1.6
423
+ signing_key:
424
+ specification_version: 4
425
+ summary: Solidus extension for using Bolt Checkout Service.
426
+ test_files:
427
+ - spec/decorators/models/solidus_bolt/address_decorator_spec.rb
428
+ - spec/decorators/models/solidus_bolt/order_decorator_spec.rb
429
+ - spec/decorators/models/solidus_bolt/payment_decorator_spec.rb
430
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_correct_access_token/receives_a_successful_response.yml
431
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_existing_address/skips_the_add_address_call.yml
432
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_wrong_access_token/gives_an_error.yml
433
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_correct_access_token/receives_a_successful_response.yml
434
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_wrong_access_token/gives_an_error.yml
435
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_correct_access_token/receives_a_successful_response.yml
436
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_wrong_access_token/gives_an_error.yml
437
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/receives_the_correct_response.yml
438
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/returns_status_200.yml
439
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Oauth_TokenService/_call/makes_the_API_call.yml
440
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/when_repeat_payment/_call/makes_the_API_call.yml
441
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/with_auto_capture/_call/makes_the_API_call.yml
442
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/without_auto_capture/_call/makes_the_API_call.yml
443
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_CaptureService/_call/makes_the_API_call.yml
444
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_DetailService/_call/makes_the_API_call.yml
445
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_RefundService/_call/makes_the_API_call.yml
446
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/makes_the_API_call.yml
447
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_id_is_missing/makes_the_API_call.yml
448
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_reference_is_missing/makes_the_API_call.yml
449
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_bill_address_to_the_user.yml
450
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_ship_address_to_the_user.yml
451
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncPaymentSourcesService/_call/creates_a_new_payment_source_with_card_ID.yml
452
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_all_event/returns_a_webhook_id.yml
453
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_an_event/returns_a_webhook_id.yml
454
+ - spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_empty_event/raises_a_server_error.yml
455
+ - spec/jobs/solidus_bolt/add_address_job_spec.rb
456
+ - spec/models/solidus_bolt/bolt_configuration_spec.rb
457
+ - spec/models/solidus_bolt/gateway_spec.rb
458
+ - spec/models/solidus_bolt/payment_method_spec.rb
459
+ - spec/models/solidus_bolt/payment_source_spec.rb
460
+ - spec/requests/solidus_bolt/accounts_controller_spec.rb
461
+ - spec/requests/solidus_bolt/webhooks_controller_spec.rb
462
+ - spec/requests/spree/admin/bolt_spec.rb
463
+ - spec/requests/spree/admin/bolt_webhook_spec.rb
464
+ - spec/requests/spree/checkout_controller_spec.rb
465
+ - spec/services/solidus_bolt/accounts/add_address_service_spec.rb
466
+ - spec/services/solidus_bolt/accounts/add_payment_method_service_spec.rb
467
+ - spec/services/solidus_bolt/accounts/detail_service_spec.rb
468
+ - spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
469
+ - spec/services/solidus_bolt/base_service_spec.rb
470
+ - spec/services/solidus_bolt/oauth/token_service_spec.rb
471
+ - spec/services/solidus_bolt/payments/capture_sync_service_spec.rb
472
+ - spec/services/solidus_bolt/payments/credit_sync_service_spec.rb
473
+ - spec/services/solidus_bolt/payments/void_sync_service_spec.rb
474
+ - spec/services/solidus_bolt/transactions/authorize_service_spec.rb
475
+ - spec/services/solidus_bolt/transactions/base_service_spec.rb
476
+ - spec/services/solidus_bolt/transactions/capture_service_spec.rb
477
+ - spec/services/solidus_bolt/transactions/detail_service_spec.rb
478
+ - spec/services/solidus_bolt/transactions/refund_service_spec.rb
479
+ - spec/services/solidus_bolt/transactions/void_service_spec.rb
480
+ - spec/services/solidus_bolt/users/refresh_access_token_service_spec.rb
481
+ - spec/services/solidus_bolt/users/sync_addresses_service_spec.rb
482
+ - spec/services/solidus_bolt/users/sync_payment_sources_service_spec.rb
483
+ - spec/services/solidus_bolt/webhooks/create_service_spec.rb
484
+ - spec/spec_helper.rb
485
+ - spec/support/bolt_configuration.rb
486
+ - spec/support/bolt_helper.rb
487
+ - spec/support/vcr.rb
488
+ - spec/webhooks/solidus_bolt/handlers/base_handler_spec.rb
489
+ - spec/webhooks/solidus_bolt/handlers/capture_handler_spec.rb
490
+ - spec/webhooks/solidus_bolt/handlers/credit_handler_spec.rb
491
+ - spec/webhooks/solidus_bolt/handlers/void_handler_spec.rb
492
+ - spec/webhooks/solidus_bolt/sorter_spec.rb