solidus_subscriptions 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +57 -9
  3. data/.github/dependabot.yml +7 -0
  4. data/.rubocop.yml +3 -0
  5. data/CHANGELOG.md +217 -169
  6. data/Gemfile +14 -1
  7. data/README.md +17 -7
  8. data/app/controllers/solidus_subscriptions/api/v1/subscriptions_controller.rb +24 -0
  9. data/app/controllers/spree/admin/subscriptions_controller.rb +32 -4
  10. data/app/decorators/models/solidus_subscriptions/spree/wallet_payment_source/report_default_change_to_subscriptions.rb +2 -2
  11. data/app/jobs/solidus_subscriptions/create_subscription_job.rb +11 -0
  12. data/app/jobs/solidus_subscriptions/process_installment_job.rb +1 -1
  13. data/app/models/solidus_subscriptions/subscription.rb +75 -31
  14. data/app/subscribers/solidus_subscriptions/churn_buster_subscriber.rb +1 -0
  15. data/app/subscribers/solidus_subscriptions/event_storage_subscriber.rb +1 -0
  16. data/app/subscribers/solidus_subscriptions/order_subscriber.rb +16 -0
  17. data/app/views/spree/admin/shared/_subscription_actions.html.erb +27 -8
  18. data/app/views/spree/admin/shared/_subscription_sidebar.html.erb +2 -0
  19. data/app/views/spree/admin/subscriptions/_state_pill.html.erb +3 -2
  20. data/app/views/spree/admin/subscriptions/index.html.erb +50 -13
  21. data/bin/sandbox +1 -6
  22. data/config/locales/en.yml +16 -0
  23. data/config/routes.rb +9 -3
  24. data/db/migrate/20210905145955_add_paused_to_subscriptions.rb +5 -0
  25. data/lib/decorators/api/controllers/solidus_subscriptions/spree/api/line_items_controller/create_subscription_line_items.rb +14 -0
  26. data/lib/generators/solidus_subscriptions/install/install_generator.rb +16 -0
  27. data/lib/generators/solidus_subscriptions/install/templates/app/controllers/concerns/create_subscription.rb +17 -0
  28. data/lib/generators/solidus_subscriptions/install/templates/app/views/cart_line_items/_subscription_fields.html.erb +30 -0
  29. data/lib/generators/solidus_subscriptions/install/templates/initializer.rb +3 -1
  30. data/lib/solidus_subscriptions/configuration.rb +29 -6
  31. data/lib/solidus_subscriptions/dispatcher/payment_failed_dispatcher.rb +2 -2
  32. data/lib/solidus_subscriptions/dispatcher/success_dispatcher.rb +2 -2
  33. data/lib/solidus_subscriptions/engine.rb +28 -0
  34. data/lib/solidus_subscriptions/permission_sets/default_customer.rb +1 -1
  35. data/lib/solidus_subscriptions/processing_error_handlers/rails_logger.rb +25 -0
  36. data/lib/solidus_subscriptions/subscription_generator.rb +6 -0
  37. data/lib/solidus_subscriptions/version.rb +1 -1
  38. data/solidus_subscriptions.gemspec +6 -6
  39. data/spec/controllers/spree/api/line_items_controller_spec.rb +63 -28
  40. data/spec/controllers/spree/api/users_controller_spec.rb +3 -0
  41. data/spec/decorators/controllers/solidus_subscriptions/spree/orders_controller/create_subscription_line_items_spec.rb +4 -4
  42. data/spec/decorators/models/solidus_subscriptions/spree/variant/auto_delete_from_subscriptions_spec.rb +2 -2
  43. data/spec/features/admin/subscriptions_spec.rb +13 -3
  44. data/spec/jobs/solidus_subscriptions/create_subscription_job_spec.rb +20 -0
  45. data/spec/jobs/solidus_subscriptions/process_installment_job_spec.rb +17 -0
  46. data/spec/lib/solidus_subscriptions/dispatcher/payment_failed_dispatcher_spec.rb +3 -3
  47. data/spec/lib/solidus_subscriptions/dispatcher/success_dispatcher_spec.rb +3 -3
  48. data/spec/lib/solidus_subscriptions/subscription_generator_spec.rb +1 -1
  49. data/spec/models/solidus_subscriptions/installment_spec.rb +1 -1
  50. data/spec/models/solidus_subscriptions/subscription_spec.rb +893 -16
  51. data/spec/models/spree/wallet_payment_source_spec.rb +3 -3
  52. data/spec/requests/api/v1/subscriptions_spec.rb +229 -0
  53. data/spec/subscribers/solidus_subscriptions/churn_buster_subscriber_spec.rb +8 -8
  54. data/spec/subscribers/solidus_subscriptions/order_subscriber_spec.rb +13 -0
  55. metadata +24 -17
  56. data/app/decorators/models/solidus_subscriptions/spree/order/finalize_creates_subscriptions.rb +0 -25
  57. data/config/initializers/subscribers.rb +0 -9
  58. data/spec/decorators/models/solidus_subscriptions/spree/order/finalize_creates_subscriptions_spec.rb +0 -32
  59. /data/{app → lib}/views/spree/frontend/products/_subscription_line_item_fields.html.erb +0 -0
data/CHANGELOG.md CHANGED
@@ -1,196 +1,244 @@
1
1
  # Changelog
2
2
 
3
- ## [v1.0.0](https://github.com/solidusio-contrib/solidus_subscriptions/tree/v1.0.0) (2021-05-16)
3
+ ## [v1.0.1](https://github.com/solidusio/solidus_subscriptions/tree/v1.0.1) (2023-03-01)
4
4
 
5
- [Full Changelog](https://github.com/solidusio-contrib/solidus_subscriptions/compare/a8a92654ba21b22bd3f8d07c3ae25e3604e7942a...v1.0.0)
5
+ [Full Changelog](https://github.com/solidusio/solidus_subscriptions/compare/v1.0.0...v1.0.1)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Free trials [\#231](https://github.com/solidusio/solidus_subscriptions/issues/231)
10
+ - Allow managing individual orders [\#219](https://github.com/solidusio/solidus_subscriptions/issues/219)
11
+
12
+ **Fixed bugs:**
13
+
14
+ - N+1 in admin when loading subscription line items [\#274](https://github.com/solidusio/solidus_subscriptions/issues/274)
15
+ - Bugfix update column when pausing [\#245](https://github.com/solidusio/solidus_subscriptions/pull/245) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
16
+
17
+ **Closed issues:**
18
+
19
+ - The extension should be tested on all supported ruby versions [\#280](https://github.com/solidusio/solidus_subscriptions/issues/280)
20
+ - Allow guest orders to manage subscriptions via API [\#279](https://github.com/solidusio/solidus_subscriptions/issues/279)
21
+ - Fix broken link to API docs [\#271](https://github.com/solidusio/solidus_subscriptions/issues/271)
22
+ - Add endpoint to list all subscriptions for a user [\#272](https://github.com/solidusio/solidus_subscriptions/issues/272)
23
+ - Link to API docs in README is broken [\#266](https://github.com/solidusio/solidus_subscriptions/issues/266)
24
+ - I can't get rid of sollidus\_subscription [\#265](https://github.com/solidusio/solidus_subscriptions/issues/265)
25
+ - Subscription appears on all product pages. [\#264](https://github.com/solidusio/solidus_subscriptions/issues/264)
26
+ - Stop decorating `order#finalize!` to create subscriptions [\#260](https://github.com/solidusio/solidus_subscriptions/issues/260)
27
+ - Allow overriding `Checkout` with a custom class [\#238](https://github.com/solidusio/solidus_subscriptions/issues/238)
28
+ - Method to filter out line\_items that are associated with a subscription [\#227](https://github.com/solidusio/solidus_subscriptions/issues/227)
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Allow updating subscription information in cart [\#282](https://github.com/solidusio/solidus_subscriptions/pull/282) ([kennyadsl](https://github.com/kennyadsl))
33
+ - Run specs on Ruby 2.7, 3.0 and 3.1 [\#281](https://github.com/solidusio/solidus_subscriptions/pull/281) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
34
+ - Support the new starter frontend installation [\#276](https://github.com/solidusio/solidus_subscriptions/pull/276) ([kennyadsl](https://github.com/kennyadsl))
35
+ - Fix filtering by line item in admin [\#275](https://github.com/solidusio/solidus_subscriptions/pull/275) ([nirebu](https://github.com/nirebu))
36
+ - Update README links [\#273](https://github.com/solidusio/solidus_subscriptions/pull/273) ([elia](https://github.com/elia))
37
+ - Restore running specs for solidus master [\#262](https://github.com/solidusio/solidus_subscriptions/pull/262) ([elia](https://github.com/elia))
38
+ - Create order finalized subscriber/job for subscription creation [\#261](https://github.com/solidusio/solidus_subscriptions/pull/261) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
39
+ - Update to use forked solidus\_frontend when needed [\#259](https://github.com/solidusio/solidus_subscriptions/pull/259) ([waiting-for-dev](https://github.com/waiting-for-dev))
40
+ - Make the subscription generator a configurable class [\#258](https://github.com/solidusio/solidus_subscriptions/pull/258) ([elia](https://github.com/elia))
41
+ - Fix CI for broken solidus master [\#257](https://github.com/solidusio/solidus_subscriptions/pull/257) ([elia](https://github.com/elia))
42
+ - Added a way for admins to filter subscriptions by line item [\#256](https://github.com/solidusio/solidus_subscriptions/pull/256) ([styrken](https://github.com/styrken))
43
+ - Compare GemVersions to GemVersions instead of string [\#255](https://github.com/solidusio/solidus_subscriptions/pull/255) ([styrken](https://github.com/styrken))
44
+ - Support Rails 7 and Solidus 3.2 [\#252](https://github.com/solidusio/solidus_subscriptions/pull/252) ([waiting-for-dev](https://github.com/waiting-for-dev))
45
+ - Link to the user in the subscription details sidebar [\#251](https://github.com/solidusio/solidus_subscriptions/pull/251) ([nirebu](https://github.com/nirebu))
46
+ - support ruby 3 [\#246](https://github.com/solidusio/solidus_subscriptions/pull/246) ([ccarruitero](https://github.com/ccarruitero))
47
+ - Add ability to pause/resume subscriptions [\#244](https://github.com/solidusio/solidus_subscriptions/pull/244) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
48
+ - Log installments errors by default [\#235](https://github.com/solidusio/solidus_subscriptions/pull/235) ([kennyadsl](https://github.com/kennyadsl))
49
+ - Upgrade to GitHub-native Dependabot [\#228](https://github.com/solidusio/solidus_subscriptions/pull/228) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
50
+
51
+ ## [v1.0.0](https://github.com/solidusio/solidus_subscriptions/tree/v1.0.0) (2021-05-16)
52
+
53
+ [Full Changelog](https://github.com/solidusio/solidus_subscriptions/compare/a8a92654ba21b22bd3f8d07c3ae25e3604e7942a...v1.0.0)
6
54
 
7
55
  **Breaking changes:**
8
56
 
9
- - Improve description for promotion rules [\#205](https://github.com/solidusio-contrib/solidus_subscriptions/issues/205)
10
- - Improve dispatchers API [\#155](https://github.com/solidusio-contrib/solidus_subscriptions/pull/155) ([aldesantis](https://github.com/aldesantis))
11
- - Streamline event emission and tracking [\#154](https://github.com/solidusio-contrib/solidus_subscriptions/pull/154) ([aldesantis](https://github.com/aldesantis))
12
- - Remove references to subscriptions only having one line item [\#123](https://github.com/solidusio-contrib/solidus_subscriptions/pull/123) ([aldesantis](https://github.com/aldesantis))
13
- - Retrieve payment method from payment source [\#121](https://github.com/solidusio-contrib/solidus_subscriptions/pull/121) ([aldesantis](https://github.com/aldesantis))
14
- - Use subscription's `end_date` in `Subscription#can_be_deactivated?` [\#112](https://github.com/solidusio-contrib/solidus_subscriptions/pull/112) ([aldesantis](https://github.com/aldesantis))
57
+ - Improve description for promotion rules [\#205](https://github.com/solidusio/solidus_subscriptions/issues/205)
58
+ - Improve dispatchers API [\#155](https://github.com/solidusio/solidus_subscriptions/pull/155) ([aldesantis](https://github.com/aldesantis))
59
+ - Streamline event emission and tracking [\#154](https://github.com/solidusio/solidus_subscriptions/pull/154) ([aldesantis](https://github.com/aldesantis))
60
+ - Remove references to subscriptions only having one line item [\#123](https://github.com/solidusio/solidus_subscriptions/pull/123) ([aldesantis](https://github.com/aldesantis))
61
+ - Retrieve payment method from payment source [\#121](https://github.com/solidusio/solidus_subscriptions/pull/121) ([aldesantis](https://github.com/aldesantis))
62
+ - Use subscription's `end_date` in `Subscription#can_be_deactivated?` [\#112](https://github.com/solidusio/solidus_subscriptions/pull/112) ([aldesantis](https://github.com/aldesantis))
15
63
 
16
64
  **Implemented enhancements:**
17
65
 
18
- - Validate payment source ownership [\#208](https://github.com/solidusio-contrib/solidus_subscriptions/issues/208)
19
- - Prepare Solidus Subscriptions for Solidus 3.0 [\#194](https://github.com/solidusio-contrib/solidus_subscriptions/issues/194)
20
- - Process each subscription in a separate background job [\#190](https://github.com/solidusio-contrib/solidus_subscriptions/issues/190)
21
- - Skip ActiveJob retrying for ProcessInstallmentsJob [\#175](https://github.com/solidusio-contrib/solidus_subscriptions/issues/175)
22
- - Installment.unfulfilled is a drag on performance [\#171](https://github.com/solidusio-contrib/solidus_subscriptions/issues/171)
23
- - Simplify subscription processing logic [\#170](https://github.com/solidusio-contrib/solidus_subscriptions/issues/170)
24
- - Add currency to subscriptions [\#138](https://github.com/solidusio-contrib/solidus_subscriptions/issues/138)
25
- - Allow marking the master variant as subscribable [\#130](https://github.com/solidusio-contrib/solidus_subscriptions/issues/130)
26
- - Show orders generated by a subscription [\#129](https://github.com/solidusio-contrib/solidus_subscriptions/issues/129)
27
- - Allow creating a subscription via the API [\#122](https://github.com/solidusio-contrib/solidus_subscriptions/issues/122)
28
- - Load factories using the new standard [\#203](https://github.com/solidusio-contrib/solidus_subscriptions/pull/203) ([kennyadsl](https://github.com/kennyadsl))
29
- - Add maximum\_reprocessing\_attempts preference [\#160](https://github.com/solidusio-contrib/solidus_subscriptions/pull/160) ([aldesantis](https://github.com/aldesantis))
30
- - Enable authorization via guest tokens [\#158](https://github.com/solidusio-contrib/solidus_subscriptions/pull/158) ([aldesantis](https://github.com/aldesantis))
31
- - Reformat sample configuration file [\#153](https://github.com/solidusio-contrib/solidus_subscriptions/pull/153) ([aldesantis](https://github.com/aldesantis))
32
- - Integrate Churn Buster [\#152](https://github.com/solidusio-contrib/solidus_subscriptions/pull/152) ([aldesantis](https://github.com/aldesantis))
33
- - Implement a `LineItem#subscribable` association [\#149](https://github.com/solidusio-contrib/solidus_subscriptions/pull/149) ([aldesantis](https://github.com/aldesantis))
34
- - Installation and configuration updates [\#148](https://github.com/solidusio-contrib/solidus_subscriptions/pull/148) ([aldesantis](https://github.com/aldesantis))
35
- - Add order association to subscriptions [\#147](https://github.com/solidusio-contrib/solidus_subscriptions/pull/147) ([nirebu](https://github.com/nirebu))
36
- - Improve event tracking [\#142](https://github.com/solidusio-contrib/solidus_subscriptions/pull/142) ([aldesantis](https://github.com/aldesantis))
37
- - Subscription events [\#141](https://github.com/solidusio-contrib/solidus_subscriptions/pull/141) ([aldesantis](https://github.com/aldesantis))
38
- - Use Spree.user\_class instead of Spree::User to allow for custom user classes [\#140](https://github.com/solidusio-contrib/solidus_subscriptions/pull/140) ([marcrohloff](https://github.com/marcrohloff))
39
- - Update default permitted attributes [\#136](https://github.com/solidusio-contrib/solidus_subscriptions/pull/136) ([aldesantis](https://github.com/aldesantis))
40
- - Allow admins to make master variants subcribable [\#131](https://github.com/solidusio-contrib/solidus_subscriptions/pull/131) ([aldesantis](https://github.com/aldesantis))
41
- - Store payment method and source on subscriptions [\#127](https://github.com/solidusio-contrib/solidus_subscriptions/pull/127) ([aldesantis](https://github.com/aldesantis))
42
- - Allow setting subscription interval and end date via the API [\#125](https://github.com/solidusio-contrib/solidus_subscriptions/pull/125) ([aldesantis](https://github.com/aldesantis))
43
- - Allow setting a billing address on the subscription [\#119](https://github.com/solidusio-contrib/solidus_subscriptions/pull/119) ([aldesantis](https://github.com/aldesantis))
44
- - Improve installment visualization and sorting [\#111](https://github.com/solidusio-contrib/solidus_subscriptions/pull/111) ([aldesantis](https://github.com/aldesantis))
45
- - Add subscription details to backend [\#109](https://github.com/solidusio-contrib/solidus_subscriptions/pull/109) ([aldesantis](https://github.com/aldesantis))
46
- - Add shipping address to backend subscription form [\#108](https://github.com/solidusio-contrib/solidus_subscriptions/pull/108) ([aldesantis](https://github.com/aldesantis))
47
- - Allow admins to remove subscription line items [\#107](https://github.com/solidusio-contrib/solidus_subscriptions/pull/107) ([aldesantis](https://github.com/aldesantis))
48
- - Allow admins to add subscription items when editing subscription [\#103](https://github.com/solidusio-contrib/solidus_subscriptions/pull/103) ([aldesantis](https://github.com/aldesantis))
66
+ - Validate payment source ownership [\#208](https://github.com/solidusio/solidus_subscriptions/issues/208)
67
+ - Prepare Solidus Subscriptions for Solidus 3.0 [\#194](https://github.com/solidusio/solidus_subscriptions/issues/194)
68
+ - Process each subscription in a separate background job [\#190](https://github.com/solidusio/solidus_subscriptions/issues/190)
69
+ - Skip ActiveJob retrying for ProcessInstallmentsJob [\#175](https://github.com/solidusio/solidus_subscriptions/issues/175)
70
+ - Installment.unfulfilled is a drag on performance [\#171](https://github.com/solidusio/solidus_subscriptions/issues/171)
71
+ - Simplify subscription processing logic [\#170](https://github.com/solidusio/solidus_subscriptions/issues/170)
72
+ - Add currency to subscriptions [\#138](https://github.com/solidusio/solidus_subscriptions/issues/138)
73
+ - Allow marking the master variant as subscribable [\#130](https://github.com/solidusio/solidus_subscriptions/issues/130)
74
+ - Show orders generated by a subscription [\#129](https://github.com/solidusio/solidus_subscriptions/issues/129)
75
+ - Allow creating a subscription via the API [\#122](https://github.com/solidusio/solidus_subscriptions/issues/122)
76
+ - Load factories using the new standard [\#203](https://github.com/solidusio/solidus_subscriptions/pull/203) ([kennyadsl](https://github.com/kennyadsl))
77
+ - Add maximum\_reprocessing\_attempts preference [\#160](https://github.com/solidusio/solidus_subscriptions/pull/160) ([aldesantis](https://github.com/aldesantis))
78
+ - Enable authorization via guest tokens [\#158](https://github.com/solidusio/solidus_subscriptions/pull/158) ([aldesantis](https://github.com/aldesantis))
79
+ - Reformat sample configuration file [\#153](https://github.com/solidusio/solidus_subscriptions/pull/153) ([aldesantis](https://github.com/aldesantis))
80
+ - Integrate Churn Buster [\#152](https://github.com/solidusio/solidus_subscriptions/pull/152) ([aldesantis](https://github.com/aldesantis))
81
+ - Implement a `LineItem#subscribable` association [\#149](https://github.com/solidusio/solidus_subscriptions/pull/149) ([aldesantis](https://github.com/aldesantis))
82
+ - Installation and configuration updates [\#148](https://github.com/solidusio/solidus_subscriptions/pull/148) ([aldesantis](https://github.com/aldesantis))
83
+ - Add order association to subscriptions [\#147](https://github.com/solidusio/solidus_subscriptions/pull/147) ([nirebu](https://github.com/nirebu))
84
+ - Improve event tracking [\#142](https://github.com/solidusio/solidus_subscriptions/pull/142) ([aldesantis](https://github.com/aldesantis))
85
+ - Subscription events [\#141](https://github.com/solidusio/solidus_subscriptions/pull/141) ([aldesantis](https://github.com/aldesantis))
86
+ - Use Spree.user\_class instead of Spree::User to allow for custom user classes [\#140](https://github.com/solidusio/solidus_subscriptions/pull/140) ([marcrohloff](https://github.com/marcrohloff))
87
+ - Update default permitted attributes [\#136](https://github.com/solidusio/solidus_subscriptions/pull/136) ([aldesantis](https://github.com/aldesantis))
88
+ - Allow admins to make master variants subcribable [\#131](https://github.com/solidusio/solidus_subscriptions/pull/131) ([aldesantis](https://github.com/aldesantis))
89
+ - Store payment method and source on subscriptions [\#127](https://github.com/solidusio/solidus_subscriptions/pull/127) ([aldesantis](https://github.com/aldesantis))
90
+ - Allow setting subscription interval and end date via the API [\#125](https://github.com/solidusio/solidus_subscriptions/pull/125) ([aldesantis](https://github.com/aldesantis))
91
+ - Allow setting a billing address on the subscription [\#119](https://github.com/solidusio/solidus_subscriptions/pull/119) ([aldesantis](https://github.com/aldesantis))
92
+ - Improve installment visualization and sorting [\#111](https://github.com/solidusio/solidus_subscriptions/pull/111) ([aldesantis](https://github.com/aldesantis))
93
+ - Add subscription details to backend [\#109](https://github.com/solidusio/solidus_subscriptions/pull/109) ([aldesantis](https://github.com/aldesantis))
94
+ - Add shipping address to backend subscription form [\#108](https://github.com/solidusio/solidus_subscriptions/pull/108) ([aldesantis](https://github.com/aldesantis))
95
+ - Allow admins to remove subscription line items [\#107](https://github.com/solidusio/solidus_subscriptions/pull/107) ([aldesantis](https://github.com/aldesantis))
96
+ - Allow admins to add subscription items when editing subscription [\#103](https://github.com/solidusio/solidus_subscriptions/pull/103) ([aldesantis](https://github.com/aldesantis))
49
97
 
50
98
  **Fixed bugs:**
51
99
 
52
- - Set default currency when creating subscription from admin panel [\#207](https://github.com/solidusio-contrib/solidus_subscriptions/issues/207)
53
- - skip\_count is never incremented [\#146](https://github.com/solidusio-contrib/solidus_subscriptions/issues/146)
54
- - FailureDispatcher is not compatible with Solidus v2.11 [\#135](https://github.com/solidusio-contrib/solidus_subscriptions/issues/135)
55
- - Handle subscriptions with deleted products [\#133](https://github.com/solidusio-contrib/solidus_subscriptions/issues/133)
56
- - Fix double creation of subscription line items [\#132](https://github.com/solidusio-contrib/solidus_subscriptions/issues/132)
57
- - \#Interval incorrectly builds interval [\#44](https://github.com/solidusio-contrib/solidus_subscriptions/issues/44)
58
- - Fix skip counters to handle skip limits [\#188](https://github.com/solidusio-contrib/solidus_subscriptions/pull/188) ([AlessioRocco](https://github.com/AlessioRocco))
59
- - Fix legacy unsubscribable subscriptions not being processed [\#173](https://github.com/solidusio-contrib/solidus_subscriptions/pull/173) ([aldesantis](https://github.com/aldesantis))
60
- - Fix automatic cancellation in case of subscription failure [\#168](https://github.com/solidusio-contrib/solidus_subscriptions/pull/168) ([aldesantis](https://github.com/aldesantis))
61
- - Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptions [\#166](https://github.com/solidusio-contrib/solidus_subscriptions/pull/166) ([aldesantis](https://github.com/aldesantis))
62
- - Fix DefaultCustomer permission set giving guests access to admin [\#161](https://github.com/solidusio-contrib/solidus_subscriptions/pull/161) ([aldesantis](https://github.com/aldesantis))
63
- - Fix default permission set breaking accessible\_by [\#159](https://github.com/solidusio-contrib/solidus_subscriptions/pull/159) ([aldesantis](https://github.com/aldesantis))
64
- - Fix foreign key type for MySQL [\#151](https://github.com/solidusio-contrib/solidus_subscriptions/pull/151) ([aldesantis](https://github.com/aldesantis))
65
- - Fix "Store must exist" when creating a subscription via the backend [\#102](https://github.com/solidusio-contrib/solidus_subscriptions/pull/102) ([aldesantis](https://github.com/aldesantis))
100
+ - Set default currency when creating subscription from admin panel [\#207](https://github.com/solidusio/solidus_subscriptions/issues/207)
101
+ - skip\_count is never incremented [\#146](https://github.com/solidusio/solidus_subscriptions/issues/146)
102
+ - FailureDispatcher is not compatible with Solidus v2.11 [\#135](https://github.com/solidusio/solidus_subscriptions/issues/135)
103
+ - Handle subscriptions with deleted products [\#133](https://github.com/solidusio/solidus_subscriptions/issues/133)
104
+ - Fix double creation of subscription line items [\#132](https://github.com/solidusio/solidus_subscriptions/issues/132)
105
+ - \#Interval incorrectly builds interval [\#44](https://github.com/solidusio/solidus_subscriptions/issues/44)
106
+ - Fix skip counters to handle skip limits [\#188](https://github.com/solidusio/solidus_subscriptions/pull/188) ([AlessioRocco](https://github.com/AlessioRocco))
107
+ - Fix legacy unsubscribable subscriptions not being processed [\#173](https://github.com/solidusio/solidus_subscriptions/pull/173) ([aldesantis](https://github.com/aldesantis))
108
+ - Fix automatic cancellation in case of subscription failure [\#168](https://github.com/solidusio/solidus_subscriptions/pull/168) ([aldesantis](https://github.com/aldesantis))
109
+ - Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptions [\#166](https://github.com/solidusio/solidus_subscriptions/pull/166) ([aldesantis](https://github.com/aldesantis))
110
+ - Fix DefaultCustomer permission set giving guests access to admin [\#161](https://github.com/solidusio/solidus_subscriptions/pull/161) ([aldesantis](https://github.com/aldesantis))
111
+ - Fix default permission set breaking accessible\_by [\#159](https://github.com/solidusio/solidus_subscriptions/pull/159) ([aldesantis](https://github.com/aldesantis))
112
+ - Fix foreign key type for MySQL [\#151](https://github.com/solidusio/solidus_subscriptions/pull/151) ([aldesantis](https://github.com/aldesantis))
113
+ - Fix "Store must exist" when creating a subscription via the backend [\#102](https://github.com/solidusio/solidus_subscriptions/pull/102) ([aldesantis](https://github.com/aldesantis))
66
114
 
67
115
  **Deprecated:**
68
116
 
69
- - Deprecate nested subscription attributes from user [\#193](https://github.com/solidusio-contrib/solidus_subscriptions/pull/193) ([luca-landa](https://github.com/luca-landa))
70
- - Update admin UI to match new backend guidelines [\#99](https://github.com/solidusio-contrib/solidus_subscriptions/pull/99) ([aldesantis](https://github.com/aldesantis))
71
- - Fix deprecated call to `SolidusSupport.solidus_gem_version` [\#97](https://github.com/solidusio-contrib/solidus_subscriptions/pull/97) ([aldesantis](https://github.com/aldesantis))
117
+ - Deprecate nested subscription attributes from user [\#193](https://github.com/solidusio/solidus_subscriptions/pull/193) ([luca-landa](https://github.com/luca-landa))
118
+ - Update admin UI to match new backend guidelines [\#99](https://github.com/solidusio/solidus_subscriptions/pull/99) ([aldesantis](https://github.com/aldesantis))
119
+ - Fix deprecated call to `SolidusSupport.solidus_gem_version` [\#97](https://github.com/solidusio/solidus_subscriptions/pull/97) ([aldesantis](https://github.com/aldesantis))
72
120
 
73
121
  **Removed:**
74
122
 
75
- - Remove nested subscription attributes from User [\#124](https://github.com/solidusio-contrib/solidus_subscriptions/issues/124)
76
- - Remove time component from actionable\_date columns [\#174](https://github.com/solidusio-contrib/solidus_subscriptions/pull/174) ([aldesantis](https://github.com/aldesantis))
77
- - Remove subscription\_repopulated event [\#157](https://github.com/solidusio-contrib/solidus_subscriptions/pull/157) ([aldesantis](https://github.com/aldesantis))
78
- - Remove checks on unsupported Solidus versions [\#101](https://github.com/solidusio-contrib/solidus_subscriptions/pull/101) ([aldesantis](https://github.com/aldesantis))
79
- - Remove legacy sidebar and form [\#100](https://github.com/solidusio-contrib/solidus_subscriptions/pull/100) ([aldesantis](https://github.com/aldesantis))
123
+ - Remove nested subscription attributes from User [\#124](https://github.com/solidusio/solidus_subscriptions/issues/124)
124
+ - Remove time component from actionable\_date columns [\#174](https://github.com/solidusio/solidus_subscriptions/pull/174) ([aldesantis](https://github.com/aldesantis))
125
+ - Remove subscription\_repopulated event [\#157](https://github.com/solidusio/solidus_subscriptions/pull/157) ([aldesantis](https://github.com/aldesantis))
126
+ - Remove checks on unsupported Solidus versions [\#101](https://github.com/solidusio/solidus_subscriptions/pull/101) ([aldesantis](https://github.com/aldesantis))
127
+ - Remove legacy sidebar and form [\#100](https://github.com/solidusio/solidus_subscriptions/pull/100) ([aldesantis](https://github.com/aldesantis))
80
128
 
81
129
  **Closed issues:**
82
130
 
83
- - Dependabot can't resolve your Ruby dependency files [\#226](https://github.com/solidusio-contrib/solidus_subscriptions/issues/226)
84
- - Fix sandbox generation [\#196](https://github.com/solidusio-contrib/solidus_subscriptions/issues/196)
85
- - Dependabot can't resolve your Ruby dependency files [\#187](https://github.com/solidusio-contrib/solidus_subscriptions/issues/187)
86
- - Dependabot can't resolve your Ruby dependency files [\#186](https://github.com/solidusio-contrib/solidus_subscriptions/issues/186)
87
- - Dependabot can't resolve your Ruby dependency files [\#185](https://github.com/solidusio-contrib/solidus_subscriptions/issues/185)
88
- - Dependabot can't resolve your Ruby dependency files [\#184](https://github.com/solidusio-contrib/solidus_subscriptions/issues/184)
89
- - Avoid reprocessing installments with cancelled subscriptions [\#180](https://github.com/solidusio-contrib/solidus_subscriptions/issues/180)
90
- - Minimum cancellation date is always +1 day from what you set it to [\#177](https://github.com/solidusio-contrib/solidus_subscriptions/issues/177)
91
- - Unable to edit or disable admin links [\#163](https://github.com/solidusio-contrib/solidus_subscriptions/issues/163)
92
- - Dependabot can't resolve your Ruby dependency files [\#144](https://github.com/solidusio-contrib/solidus_subscriptions/issues/144)
93
- - Dependabot can't resolve your Ruby dependency files [\#143](https://github.com/solidusio-contrib/solidus_subscriptions/issues/143)
94
- - Retrieve payment method from the payment source [\#120](https://github.com/solidusio-contrib/solidus_subscriptions/issues/120)
95
- - Cannot update interval or end date via API [\#118](https://github.com/solidusio-contrib/solidus_subscriptions/issues/118)
96
- - Add billing address to subscriptions [\#117](https://github.com/solidusio-contrib/solidus_subscriptions/issues/117)
97
- - Store payment details on subscription [\#116](https://github.com/solidusio-contrib/solidus_subscriptions/issues/116)
98
- - Dependabot couldn't find a Gemfile-local for this project [\#91](https://github.com/solidusio-contrib/solidus_subscriptions/issues/91)
99
- - Dependabot can't resolve your Ruby dependency files [\#90](https://github.com/solidusio-contrib/solidus_subscriptions/issues/90)
100
- - Dependabot can't resolve your Ruby dependency files [\#88](https://github.com/solidusio-contrib/solidus_subscriptions/issues/88)
101
- - Dependabot can't resolve your Ruby dependency files [\#87](https://github.com/solidusio-contrib/solidus_subscriptions/issues/87)
102
- - Dependabot can't resolve your Ruby dependency files [\#86](https://github.com/solidusio-contrib/solidus_subscriptions/issues/86)
103
- - Dependabot can't resolve your Ruby dependency files [\#85](https://github.com/solidusio-contrib/solidus_subscriptions/issues/85)
104
- - Dependabot can't resolve your Ruby dependency files [\#84](https://github.com/solidusio-contrib/solidus_subscriptions/issues/84)
105
- - Dependabot can't resolve your Ruby dependency files [\#82](https://github.com/solidusio-contrib/solidus_subscriptions/issues/82)
106
- - Unable to seed dummy store [\#22](https://github.com/solidusio-contrib/solidus_subscriptions/issues/22)
107
- - Solidus Subscriptions incompatible with solidus 2.3 [\#14](https://github.com/solidusio-contrib/solidus_subscriptions/issues/14)
108
- - Promo codes? [\#8](https://github.com/solidusio-contrib/solidus_subscriptions/issues/8)
109
- - Default store subscription field views [\#7](https://github.com/solidusio-contrib/solidus_subscriptions/issues/7)
110
- - There is no subscribable toggle for master variants [\#6](https://github.com/solidusio-contrib/solidus_subscriptions/issues/6)
111
- - What is the plan? [\#1](https://github.com/solidusio-contrib/solidus_subscriptions/issues/1)
131
+ - Dependabot can't resolve your Ruby dependency files [\#226](https://github.com/solidusio/solidus_subscriptions/issues/226)
132
+ - Fix sandbox generation [\#196](https://github.com/solidusio/solidus_subscriptions/issues/196)
133
+ - Dependabot can't resolve your Ruby dependency files [\#187](https://github.com/solidusio/solidus_subscriptions/issues/187)
134
+ - Dependabot can't resolve your Ruby dependency files [\#186](https://github.com/solidusio/solidus_subscriptions/issues/186)
135
+ - Dependabot can't resolve your Ruby dependency files [\#185](https://github.com/solidusio/solidus_subscriptions/issues/185)
136
+ - Dependabot can't resolve your Ruby dependency files [\#184](https://github.com/solidusio/solidus_subscriptions/issues/184)
137
+ - Avoid reprocessing installments with cancelled subscriptions [\#180](https://github.com/solidusio/solidus_subscriptions/issues/180)
138
+ - Minimum cancellation date is always +1 day from what you set it to [\#177](https://github.com/solidusio/solidus_subscriptions/issues/177)
139
+ - Unable to edit or disable admin links [\#163](https://github.com/solidusio/solidus_subscriptions/issues/163)
140
+ - Dependabot can't resolve your Ruby dependency files [\#144](https://github.com/solidusio/solidus_subscriptions/issues/144)
141
+ - Dependabot can't resolve your Ruby dependency files [\#143](https://github.com/solidusio/solidus_subscriptions/issues/143)
142
+ - Retrieve payment method from the payment source [\#120](https://github.com/solidusio/solidus_subscriptions/issues/120)
143
+ - Cannot update interval or end date via API [\#118](https://github.com/solidusio/solidus_subscriptions/issues/118)
144
+ - Add billing address to subscriptions [\#117](https://github.com/solidusio/solidus_subscriptions/issues/117)
145
+ - Store payment details on subscription [\#116](https://github.com/solidusio/solidus_subscriptions/issues/116)
146
+ - Dependabot couldn't find a Gemfile-local for this project [\#91](https://github.com/solidusio/solidus_subscriptions/issues/91)
147
+ - Dependabot can't resolve your Ruby dependency files [\#90](https://github.com/solidusio/solidus_subscriptions/issues/90)
148
+ - Dependabot can't resolve your Ruby dependency files [\#88](https://github.com/solidusio/solidus_subscriptions/issues/88)
149
+ - Dependabot can't resolve your Ruby dependency files [\#87](https://github.com/solidusio/solidus_subscriptions/issues/87)
150
+ - Dependabot can't resolve your Ruby dependency files [\#86](https://github.com/solidusio/solidus_subscriptions/issues/86)
151
+ - Dependabot can't resolve your Ruby dependency files [\#85](https://github.com/solidusio/solidus_subscriptions/issues/85)
152
+ - Dependabot can't resolve your Ruby dependency files [\#84](https://github.com/solidusio/solidus_subscriptions/issues/84)
153
+ - Dependabot can't resolve your Ruby dependency files [\#82](https://github.com/solidusio/solidus_subscriptions/issues/82)
154
+ - Unable to seed dummy store [\#22](https://github.com/solidusio/solidus_subscriptions/issues/22)
155
+ - Solidus Subscriptions incompatible with solidus 2.3 [\#14](https://github.com/solidusio/solidus_subscriptions/issues/14)
156
+ - Promo codes? [\#8](https://github.com/solidusio/solidus_subscriptions/issues/8)
157
+ - Default store subscription field views [\#7](https://github.com/solidusio/solidus_subscriptions/issues/7)
158
+ - There is no subscribable toggle for master variants [\#6](https://github.com/solidusio/solidus_subscriptions/issues/6)
159
+ - What is the plan? [\#1](https://github.com/solidusio/solidus_subscriptions/issues/1)
112
160
 
113
161
  **Merged pull requests:**
114
162
 
115
- - Introduce Installment OrderCreator configuration [\#229](https://github.com/solidusio-contrib/solidus_subscriptions/pull/229) ([cesartalves](https://github.com/cesartalves))
116
- - Update solidus\_core requirement from \>= 2.0.0, \< 3 to \>= 2.0.0, \< 4 [\#225](https://github.com/solidusio-contrib/solidus_subscriptions/pull/225) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
117
- - Fix Api Subscription Permitted LineItem Attributes [\#223](https://github.com/solidusio-contrib/solidus_subscriptions/pull/223) ([cesartalves](https://github.com/cesartalves))
118
- - Fix Spree::OrdersController decoration [\#221](https://github.com/solidusio-contrib/solidus_subscriptions/pull/221) ([cesartalves](https://github.com/cesartalves))
119
- - Reload order during finalize action [\#220](https://github.com/solidusio-contrib/solidus_subscriptions/pull/220) ([seand7565](https://github.com/seand7565))
120
- - Update specs to conform with rubocop [\#217](https://github.com/solidusio-contrib/solidus_subscriptions/pull/217) ([seand7565](https://github.com/seand7565))
121
- - Update promotion rule names on db [\#216](https://github.com/solidusio-contrib/solidus_subscriptions/pull/216) ([luca-landa](https://github.com/luca-landa))
122
- - Improve promotion rules names [\#215](https://github.com/solidusio-contrib/solidus_subscriptions/pull/215) ([luca-landa](https://github.com/luca-landa))
123
- - Validate payment\_source ownership on the subscription [\#214](https://github.com/solidusio-contrib/solidus_subscriptions/pull/214) ([ChristianRimondi](https://github.com/ChristianRimondi))
124
- - Add missing permissions sets for Solidus v2.11 [\#213](https://github.com/solidusio-contrib/solidus_subscriptions/pull/213) ([elia](https://github.com/elia))
125
- - Require a version of solidus\_support that autoloads subscribers [\#212](https://github.com/solidusio-contrib/solidus_subscriptions/pull/212) ([elia](https://github.com/elia))
126
- - Remove variant from subscriptions on soft deletion [\#211](https://github.com/solidusio-contrib/solidus_subscriptions/pull/211) ([luca-landa](https://github.com/luca-landa))
127
- - Set default config currency to subscription [\#210](https://github.com/solidusio-contrib/solidus_subscriptions/pull/210) ([luca-landa](https://github.com/luca-landa))
128
- - Skip ActiveJob retrying for ProcessInstallmentJob [\#206](https://github.com/solidusio-contrib/solidus_subscriptions/pull/206) ([ikraamg](https://github.com/ikraamg))
129
- - Cleanup the duplicated fields on subscription creation [\#202](https://github.com/solidusio-contrib/solidus_subscriptions/pull/202) ([blocknotes](https://github.com/blocknotes))
130
- - Move subscription processing to its own background job [\#201](https://github.com/solidusio-contrib/solidus_subscriptions/pull/201) ([nirebu](https://github.com/nirebu))
131
- - Use `name` in customer serializer [\#200](https://github.com/solidusio-contrib/solidus_subscriptions/pull/200) ([nvandoorn](https://github.com/nvandoorn))
132
- - Setup the subcription create endpoint [\#199](https://github.com/solidusio-contrib/solidus_subscriptions/pull/199) ([blocknotes](https://github.com/blocknotes))
133
- - Add currency to subscriptions [\#198](https://github.com/solidusio-contrib/solidus_subscriptions/pull/198) ([luca-landa](https://github.com/luca-landa))
134
- - Fix sandbox creation error [\#197](https://github.com/solidusio-contrib/solidus_subscriptions/pull/197) ([blocknotes](https://github.com/blocknotes))
135
- - Fix duplicated line items creation [\#195](https://github.com/solidusio-contrib/solidus_subscriptions/pull/195) ([igorbp](https://github.com/igorbp))
136
- - Admin: expose the subscription orders [\#192](https://github.com/solidusio-contrib/solidus_subscriptions/pull/192) ([blocknotes](https://github.com/blocknotes))
137
- - Improve "unfulfilled" scope by adding subquery [\#191](https://github.com/solidusio-contrib/solidus_subscriptions/pull/191) ([AlessioRocco](https://github.com/AlessioRocco))
138
- - Remove "canonical-rails" from the Gemfile [\#189](https://github.com/solidusio-contrib/solidus_subscriptions/pull/189) ([AlessioRocco](https://github.com/AlessioRocco))
139
- - Update permissions check on user subscription tab [\#183](https://github.com/solidusio-contrib/solidus_subscriptions/pull/183) ([seand7565](https://github.com/seand7565))
140
- - Add Installment Details association to Order [\#182](https://github.com/solidusio-contrib/solidus_subscriptions/pull/182) ([seand7565](https://github.com/seand7565))
141
- - Avoid processing installments with cancelled subscriptions [\#181](https://github.com/solidusio-contrib/solidus_subscriptions/pull/181) ([seand7565](https://github.com/seand7565))
142
- - Update cancel method on subscription to respect minimum date [\#178](https://github.com/solidusio-contrib/solidus_subscriptions/pull/178) ([seand7565](https://github.com/seand7565))
143
- - Fix typo in subscription admin notifications [\#176](https://github.com/solidusio-contrib/solidus_subscriptions/pull/176) ([igorbp](https://github.com/igorbp))
144
- - Processor and Checkout refactoring [\#172](https://github.com/solidusio-contrib/solidus_subscriptions/pull/172) ([aldesantis](https://github.com/aldesantis))
145
- - Move maximum reprocessing retries to a time based criterion [\#167](https://github.com/solidusio-contrib/solidus_subscriptions/pull/167) ([nirebu](https://github.com/nirebu))
146
- - Add config to ignore past unfulfilled installments [\#165](https://github.com/solidusio-contrib/solidus_subscriptions/pull/165) ([nirebu](https://github.com/nirebu))
147
- - Add Subscriptions tab to User page in Admin [\#162](https://github.com/solidusio-contrib/solidus_subscriptions/pull/162) ([igorbp](https://github.com/igorbp))
148
- - Track additional events for subscription updates [\#156](https://github.com/solidusio-contrib/solidus_subscriptions/pull/156) ([aldesantis](https://github.com/aldesantis))
149
- - Update shoulda-matchers requirement from ~\> 3.1 to ~\> 4.4 [\#145](https://github.com/solidusio-contrib/solidus_subscriptions/pull/145) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
150
- - Use parent strategy when building associations in factories [\#134](https://github.com/solidusio-contrib/solidus_subscriptions/pull/134) ([aldesantis](https://github.com/aldesantis))
151
- - Move service objects to `app/services` [\#110](https://github.com/solidusio-contrib/solidus_subscriptions/pull/110) ([aldesantis](https://github.com/aldesantis))
152
- - Convert API documentation into OpenAPI [\#106](https://github.com/solidusio-contrib/solidus_subscriptions/pull/106) ([aldesantis](https://github.com/aldesantis))
153
- - Add github\_changelog\_generator configuration [\#105](https://github.com/solidusio-contrib/solidus_subscriptions/pull/105) ([aldesantis](https://github.com/aldesantis))
154
- - Reorganize and clean up readme [\#104](https://github.com/solidusio-contrib/solidus_subscriptions/pull/104) ([aldesantis](https://github.com/aldesantis))
155
- - Fix unsupported `around(:all)` RSpec configuration [\#98](https://github.com/solidusio-contrib/solidus_subscriptions/pull/98) ([aldesantis](https://github.com/aldesantis))
156
- - Update to the latest solidus\_dev\_support [\#96](https://github.com/solidusio-contrib/solidus_subscriptions/pull/96) ([aldesantis](https://github.com/aldesantis))
157
- - Relax solidus\_support dependency [\#95](https://github.com/solidusio-contrib/solidus_subscriptions/pull/95) ([kennyadsl](https://github.com/kennyadsl))
158
- - Fix Dependabot looking for Gemfile-local [\#92](https://github.com/solidusio-contrib/solidus_subscriptions/pull/92) ([aldesantis](https://github.com/aldesantis))
159
- - Update solidus\_dev\_support [\#89](https://github.com/solidusio-contrib/solidus_subscriptions/pull/89) ([blocknotes](https://github.com/blocknotes))
160
- - Adopt solidus\_extension\_dev\_tools [\#81](https://github.com/solidusio-contrib/solidus_subscriptions/pull/81) ([aldesantis](https://github.com/aldesantis))
161
- - Fix CI on Rails 6 [\#71](https://github.com/solidusio-contrib/solidus_subscriptions/pull/71) ([aldesantis](https://github.com/aldesantis))
162
- - Fixes admin sorting on fields without a natural order [\#70](https://github.com/solidusio-contrib/solidus_subscriptions/pull/70) ([mdesantis](https://github.com/mdesantis))
163
- - Perform maintenance tasks [\#69](https://github.com/solidusio-contrib/solidus_subscriptions/pull/69) ([mdesantis](https://github.com/mdesantis))
164
- - Run specs with CircleCI [\#68](https://github.com/solidusio-contrib/solidus_subscriptions/pull/68) ([kennyadsl](https://github.com/kennyadsl))
165
- - Fix broken factories associations [\#67](https://github.com/solidusio-contrib/solidus_subscriptions/pull/67) ([aitbw](https://github.com/aitbw))
166
- - Remove Solidus v2.3 from Travis config \(EOL\) [\#66](https://github.com/solidusio-contrib/solidus_subscriptions/pull/66) ([aitbw](https://github.com/aitbw))
167
- - Add Solidus v2.8 to Travis config [\#65](https://github.com/solidusio-contrib/solidus_subscriptions/pull/65) ([aitbw](https://github.com/aitbw))
168
- - Do not run rubocop on Travis [\#64](https://github.com/solidusio-contrib/solidus_subscriptions/pull/64) ([aitbw](https://github.com/aitbw))
169
- - Update rubocop to fix vulnerability CVE-2017-8418 [\#63](https://github.com/solidusio-contrib/solidus_subscriptions/pull/63) ([aitbw](https://github.com/aitbw))
170
- - Fix deprecations warnings and failing specs [\#61](https://github.com/solidusio-contrib/solidus_subscriptions/pull/61) ([aitbw](https://github.com/aitbw))
171
- - Change api url in documentation [\#58](https://github.com/solidusio-contrib/solidus_subscriptions/pull/58) ([jacobeubanks](https://github.com/jacobeubanks))
172
- - Fix factory girl dependency for Solidus \< 2.5 [\#57](https://github.com/solidusio-contrib/solidus_subscriptions/pull/57) ([jacobherrington](https://github.com/jacobherrington))
173
- - Add Solidus 2.7 to .travis.yml [\#56](https://github.com/solidusio-contrib/solidus_subscriptions/pull/56) ([jacobherrington](https://github.com/jacobherrington))
174
- - Change static factory attrs to dynamic [\#55](https://github.com/solidusio-contrib/solidus_subscriptions/pull/55) ([fastjames](https://github.com/fastjames))
175
- - Update factory\_girl to factory\_bot [\#50](https://github.com/solidusio-contrib/solidus_subscriptions/pull/50) ([fastjames](https://github.com/fastjames))
176
- - Update solidus version for travis [\#46](https://github.com/solidusio-contrib/solidus_subscriptions/pull/46) ([fastjames](https://github.com/fastjames))
177
- - Fix typos in comments [\#39](https://github.com/solidusio-contrib/solidus_subscriptions/pull/39) ([swcraig](https://github.com/swcraig))
178
- - Add ffaker dependency to gemspec [\#35](https://github.com/solidusio-contrib/solidus_subscriptions/pull/35) ([swcraig](https://github.com/swcraig))
179
- - Small UI change to canceling in the admin [\#28](https://github.com/solidusio-contrib/solidus_subscriptions/pull/28) ([seantaylor](https://github.com/seantaylor))
180
- - Authorize subscriptions admin sidebar link [\#23](https://github.com/solidusio-contrib/solidus_subscriptions/pull/23) ([qr8r](https://github.com/qr8r))
181
- - Subs track their own interval now [\#21](https://github.com/solidusio-contrib/solidus_subscriptions/pull/21) ([qr8r](https://github.com/qr8r))
182
- - Fix/the broken admin [\#20](https://github.com/solidusio-contrib/solidus_subscriptions/pull/20) ([qr8r](https://github.com/qr8r))
183
- - Allow destroying nested line items [\#18](https://github.com/solidusio-contrib/solidus_subscriptions/pull/18) ([isaacfreeman](https://github.com/isaacfreeman))
184
- - Update Readme to correct repo [\#17](https://github.com/solidusio-contrib/solidus_subscriptions/pull/17) ([asecondwill](https://github.com/asecondwill))
185
- - Support Rails 5.1 [\#16](https://github.com/solidusio-contrib/solidus_subscriptions/pull/16) ([jhawthorn](https://github.com/jhawthorn))
186
- - Allows for subscription checkout to accommodate a more flexible checko… [\#15](https://github.com/solidusio-contrib/solidus_subscriptions/pull/15) ([joeljackson](https://github.com/joeljackson))
187
- - Only load permitted attributes once [\#11](https://github.com/solidusio-contrib/solidus_subscriptions/pull/11) ([qr8r](https://github.com/qr8r))
188
- - Fix duplicated docs [\#10](https://github.com/solidusio-contrib/solidus_subscriptions/pull/10) ([qr8r](https://github.com/qr8r))
189
- - Add Subcription inputs to product page [\#9](https://github.com/solidusio-contrib/solidus_subscriptions/pull/9) ([qr8r](https://github.com/qr8r))
190
- - Fixes for Solidus 2.2 [\#5](https://github.com/solidusio-contrib/solidus_subscriptions/pull/5) ([jhawthorn](https://github.com/jhawthorn))
191
- - Allow Failed installments to not be reprocessed [\#4](https://github.com/solidusio-contrib/solidus_subscriptions/pull/4) ([qr8r](https://github.com/qr8r))
192
- - Lock travis bundler version [\#3](https://github.com/solidusio-contrib/solidus_subscriptions/pull/3) ([qr8r](https://github.com/qr8r))
193
- - Group subscriptions by subscription configurations [\#2](https://github.com/solidusio-contrib/solidus_subscriptions/pull/2) ([qr8r](https://github.com/qr8r))
163
+ - Introduce Installment OrderCreator configuration [\#229](https://github.com/solidusio/solidus_subscriptions/pull/229) ([cesartalves](https://github.com/cesartalves))
164
+ - Update solidus\_core requirement from \>= 2.0.0, \< 3 to \>= 2.0.0, \< 4 [\#225](https://github.com/solidusio/solidus_subscriptions/pull/225) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
165
+ - Fix Api Subscription Permitted LineItem Attributes [\#223](https://github.com/solidusio/solidus_subscriptions/pull/223) ([cesartalves](https://github.com/cesartalves))
166
+ - Fix Spree::OrdersController decoration [\#221](https://github.com/solidusio/solidus_subscriptions/pull/221) ([cesartalves](https://github.com/cesartalves))
167
+ - Reload order during finalize action [\#220](https://github.com/solidusio/solidus_subscriptions/pull/220) ([seand7565](https://github.com/seand7565))
168
+ - Update specs to conform with rubocop [\#217](https://github.com/solidusio/solidus_subscriptions/pull/217) ([seand7565](https://github.com/seand7565))
169
+ - Update promotion rule names on db [\#216](https://github.com/solidusio/solidus_subscriptions/pull/216) ([luca-landa](https://github.com/luca-landa))
170
+ - Improve promotion rules names [\#215](https://github.com/solidusio/solidus_subscriptions/pull/215) ([luca-landa](https://github.com/luca-landa))
171
+ - Validate payment\_source ownership on the subscription [\#214](https://github.com/solidusio/solidus_subscriptions/pull/214) ([ChristianRimondi](https://github.com/ChristianRimondi))
172
+ - Add missing permissions sets for Solidus v2.11 [\#213](https://github.com/solidusio/solidus_subscriptions/pull/213) ([elia](https://github.com/elia))
173
+ - Require a version of solidus\_support that autoloads subscribers [\#212](https://github.com/solidusio/solidus_subscriptions/pull/212) ([elia](https://github.com/elia))
174
+ - Remove variant from subscriptions on soft deletion [\#211](https://github.com/solidusio/solidus_subscriptions/pull/211) ([luca-landa](https://github.com/luca-landa))
175
+ - Set default config currency to subscription [\#210](https://github.com/solidusio/solidus_subscriptions/pull/210) ([luca-landa](https://github.com/luca-landa))
176
+ - Skip ActiveJob retrying for ProcessInstallmentJob [\#206](https://github.com/solidusio/solidus_subscriptions/pull/206) ([ikraamg](https://github.com/ikraamg))
177
+ - Cleanup the duplicated fields on subscription creation [\#202](https://github.com/solidusio/solidus_subscriptions/pull/202) ([blocknotes](https://github.com/blocknotes))
178
+ - Move subscription processing to its own background job [\#201](https://github.com/solidusio/solidus_subscriptions/pull/201) ([nirebu](https://github.com/nirebu))
179
+ - Use `name` in customer serializer [\#200](https://github.com/solidusio/solidus_subscriptions/pull/200) ([nvandoorn](https://github.com/nvandoorn))
180
+ - Setup the subcription create endpoint [\#199](https://github.com/solidusio/solidus_subscriptions/pull/199) ([blocknotes](https://github.com/blocknotes))
181
+ - Add currency to subscriptions [\#198](https://github.com/solidusio/solidus_subscriptions/pull/198) ([luca-landa](https://github.com/luca-landa))
182
+ - Fix sandbox creation error [\#197](https://github.com/solidusio/solidus_subscriptions/pull/197) ([blocknotes](https://github.com/blocknotes))
183
+ - Fix duplicated line items creation [\#195](https://github.com/solidusio/solidus_subscriptions/pull/195) ([igorbp](https://github.com/igorbp))
184
+ - Admin: expose the subscription orders [\#192](https://github.com/solidusio/solidus_subscriptions/pull/192) ([blocknotes](https://github.com/blocknotes))
185
+ - Improve "unfulfilled" scope by adding subquery [\#191](https://github.com/solidusio/solidus_subscriptions/pull/191) ([AlessioRocco](https://github.com/AlessioRocco))
186
+ - Remove "canonical-rails" from the Gemfile [\#189](https://github.com/solidusio/solidus_subscriptions/pull/189) ([AlessioRocco](https://github.com/AlessioRocco))
187
+ - Update permissions check on user subscription tab [\#183](https://github.com/solidusio/solidus_subscriptions/pull/183) ([seand7565](https://github.com/seand7565))
188
+ - Add Installment Details association to Order [\#182](https://github.com/solidusio/solidus_subscriptions/pull/182) ([seand7565](https://github.com/seand7565))
189
+ - Avoid processing installments with cancelled subscriptions [\#181](https://github.com/solidusio/solidus_subscriptions/pull/181) ([seand7565](https://github.com/seand7565))
190
+ - Update cancel method on subscription to respect minimum date [\#178](https://github.com/solidusio/solidus_subscriptions/pull/178) ([seand7565](https://github.com/seand7565))
191
+ - Fix typo in subscription admin notifications [\#176](https://github.com/solidusio/solidus_subscriptions/pull/176) ([igorbp](https://github.com/igorbp))
192
+ - Processor and Checkout refactoring [\#172](https://github.com/solidusio/solidus_subscriptions/pull/172) ([aldesantis](https://github.com/aldesantis))
193
+ - Move maximum reprocessing retries to a time based criterion [\#167](https://github.com/solidusio/solidus_subscriptions/pull/167) ([nirebu](https://github.com/nirebu))
194
+ - Add config to ignore past unfulfilled installments [\#165](https://github.com/solidusio/solidus_subscriptions/pull/165) ([nirebu](https://github.com/nirebu))
195
+ - Add Subscriptions tab to User page in Admin [\#162](https://github.com/solidusio/solidus_subscriptions/pull/162) ([igorbp](https://github.com/igorbp))
196
+ - Track additional events for subscription updates [\#156](https://github.com/solidusio/solidus_subscriptions/pull/156) ([aldesantis](https://github.com/aldesantis))
197
+ - Update shoulda-matchers requirement from ~\> 3.1 to ~\> 4.4 [\#145](https://github.com/solidusio/solidus_subscriptions/pull/145) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
198
+ - Use parent strategy when building associations in factories [\#134](https://github.com/solidusio/solidus_subscriptions/pull/134) ([aldesantis](https://github.com/aldesantis))
199
+ - Move service objects to `app/services` [\#110](https://github.com/solidusio/solidus_subscriptions/pull/110) ([aldesantis](https://github.com/aldesantis))
200
+ - Convert API documentation into OpenAPI [\#106](https://github.com/solidusio/solidus_subscriptions/pull/106) ([aldesantis](https://github.com/aldesantis))
201
+ - Add github\_changelog\_generator configuration [\#105](https://github.com/solidusio/solidus_subscriptions/pull/105) ([aldesantis](https://github.com/aldesantis))
202
+ - Reorganize and clean up readme [\#104](https://github.com/solidusio/solidus_subscriptions/pull/104) ([aldesantis](https://github.com/aldesantis))
203
+ - Fix unsupported `around(:all)` RSpec configuration [\#98](https://github.com/solidusio/solidus_subscriptions/pull/98) ([aldesantis](https://github.com/aldesantis))
204
+ - Update to the latest solidus\_dev\_support [\#96](https://github.com/solidusio/solidus_subscriptions/pull/96) ([aldesantis](https://github.com/aldesantis))
205
+ - Relax solidus\_support dependency [\#95](https://github.com/solidusio/solidus_subscriptions/pull/95) ([kennyadsl](https://github.com/kennyadsl))
206
+ - Fix Dependabot looking for Gemfile-local [\#92](https://github.com/solidusio/solidus_subscriptions/pull/92) ([aldesantis](https://github.com/aldesantis))
207
+ - Update solidus\_dev\_support [\#89](https://github.com/solidusio/solidus_subscriptions/pull/89) ([blocknotes](https://github.com/blocknotes))
208
+ - Adopt solidus\_extension\_dev\_tools [\#81](https://github.com/solidusio/solidus_subscriptions/pull/81) ([aldesantis](https://github.com/aldesantis))
209
+ - Fix CI on Rails 6 [\#71](https://github.com/solidusio/solidus_subscriptions/pull/71) ([aldesantis](https://github.com/aldesantis))
210
+ - Fixes admin sorting on fields without a natural order [\#70](https://github.com/solidusio/solidus_subscriptions/pull/70) ([mdesantis](https://github.com/mdesantis))
211
+ - Perform maintenance tasks [\#69](https://github.com/solidusio/solidus_subscriptions/pull/69) ([mdesantis](https://github.com/mdesantis))
212
+ - Run specs with CircleCI [\#68](https://github.com/solidusio/solidus_subscriptions/pull/68) ([kennyadsl](https://github.com/kennyadsl))
213
+ - Fix broken factories associations [\#67](https://github.com/solidusio/solidus_subscriptions/pull/67) ([aitbw](https://github.com/aitbw))
214
+ - Remove Solidus v2.3 from Travis config \(EOL\) [\#66](https://github.com/solidusio/solidus_subscriptions/pull/66) ([aitbw](https://github.com/aitbw))
215
+ - Add Solidus v2.8 to Travis config [\#65](https://github.com/solidusio/solidus_subscriptions/pull/65) ([aitbw](https://github.com/aitbw))
216
+ - Do not run rubocop on Travis [\#64](https://github.com/solidusio/solidus_subscriptions/pull/64) ([aitbw](https://github.com/aitbw))
217
+ - Update rubocop to fix vulnerability CVE-2017-8418 [\#63](https://github.com/solidusio/solidus_subscriptions/pull/63) ([aitbw](https://github.com/aitbw))
218
+ - Fix deprecations warnings and failing specs [\#61](https://github.com/solidusio/solidus_subscriptions/pull/61) ([aitbw](https://github.com/aitbw))
219
+ - Change api url in documentation [\#58](https://github.com/solidusio/solidus_subscriptions/pull/58) ([jacobeubanks](https://github.com/jacobeubanks))
220
+ - Fix factory girl dependency for Solidus \< 2.5 [\#57](https://github.com/solidusio/solidus_subscriptions/pull/57) ([jacobherrington](https://github.com/jacobherrington))
221
+ - Add Solidus 2.7 to .travis.yml [\#56](https://github.com/solidusio/solidus_subscriptions/pull/56) ([jacobherrington](https://github.com/jacobherrington))
222
+ - Change static factory attrs to dynamic [\#55](https://github.com/solidusio/solidus_subscriptions/pull/55) ([fastjames](https://github.com/fastjames))
223
+ - Update factory\_girl to factory\_bot [\#50](https://github.com/solidusio/solidus_subscriptions/pull/50) ([fastjames](https://github.com/fastjames))
224
+ - Update solidus version for travis [\#46](https://github.com/solidusio/solidus_subscriptions/pull/46) ([fastjames](https://github.com/fastjames))
225
+ - Fix typos in comments [\#39](https://github.com/solidusio/solidus_subscriptions/pull/39) ([swcraig](https://github.com/swcraig))
226
+ - Add ffaker dependency to gemspec [\#35](https://github.com/solidusio/solidus_subscriptions/pull/35) ([swcraig](https://github.com/swcraig))
227
+ - Small UI change to canceling in the admin [\#28](https://github.com/solidusio/solidus_subscriptions/pull/28) ([seantaylor](https://github.com/seantaylor))
228
+ - Authorize subscriptions admin sidebar link [\#23](https://github.com/solidusio/solidus_subscriptions/pull/23) ([qr8r](https://github.com/qr8r))
229
+ - Subs track their own interval now [\#21](https://github.com/solidusio/solidus_subscriptions/pull/21) ([qr8r](https://github.com/qr8r))
230
+ - Fix/the broken admin [\#20](https://github.com/solidusio/solidus_subscriptions/pull/20) ([qr8r](https://github.com/qr8r))
231
+ - Allow destroying nested line items [\#18](https://github.com/solidusio/solidus_subscriptions/pull/18) ([isaacfreeman](https://github.com/isaacfreeman))
232
+ - Update Readme to correct repo [\#17](https://github.com/solidusio/solidus_subscriptions/pull/17) ([asecondwill](https://github.com/asecondwill))
233
+ - Support Rails 5.1 [\#16](https://github.com/solidusio/solidus_subscriptions/pull/16) ([jhawthorn](https://github.com/jhawthorn))
234
+ - Allows for subscription checkout to accommodate a more flexible checko… [\#15](https://github.com/solidusio/solidus_subscriptions/pull/15) ([joeljackson](https://github.com/joeljackson))
235
+ - Only load permitted attributes once [\#11](https://github.com/solidusio/solidus_subscriptions/pull/11) ([qr8r](https://github.com/qr8r))
236
+ - Fix duplicated docs [\#10](https://github.com/solidusio/solidus_subscriptions/pull/10) ([qr8r](https://github.com/qr8r))
237
+ - Add Subcription inputs to product page [\#9](https://github.com/solidusio/solidus_subscriptions/pull/9) ([qr8r](https://github.com/qr8r))
238
+ - Fixes for Solidus 2.2 [\#5](https://github.com/solidusio/solidus_subscriptions/pull/5) ([jhawthorn](https://github.com/jhawthorn))
239
+ - Allow Failed installments to not be reprocessed [\#4](https://github.com/solidusio/solidus_subscriptions/pull/4) ([qr8r](https://github.com/qr8r))
240
+ - Lock travis bundler version [\#3](https://github.com/solidusio/solidus_subscriptions/pull/3) ([qr8r](https://github.com/qr8r))
241
+ - Group subscriptions by subscription configurations [\#2](https://github.com/solidusio/solidus_subscriptions/pull/2) ([qr8r](https://github.com/qr8r))
194
242
 
195
243
 
196
244
 
data/Gemfile CHANGED
@@ -4,7 +4,13 @@ source 'https://rubygems.org'
4
4
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
7
- gem 'solidus', github: 'solidusio/solidus', branch: branch
7
+ solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
8
+ %w[solidusio/solidus solidusio/solidus_frontend]
9
+ else
10
+ %w[solidusio/solidus] * 2
11
+ end
12
+ gem 'solidus', github: solidus_git, branch: branch
13
+ gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
8
14
 
9
15
  # Needed to help Bundler figure out how to resolve dependencies,
10
16
  # otherwise it takes forever to resolve them.
@@ -25,6 +31,13 @@ end
25
31
 
26
32
  gemspec
27
33
 
34
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3')
35
+ # Fix for Rails 7+ / Ruby 3+, see https://stackoverflow.com/a/72474475
36
+ gem 'net-imap', require: false
37
+ gem 'net-pop', require: false
38
+ gem 'net-smtp', require: false
39
+ end
40
+
28
41
  # Use a local Gemfile to include development dependencies that might not be
29
42
  # relevant for the project or for other contributors, e.g. pry-byebug.
30
43
  #
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # solidus_subscriptions
2
2
 
3
- [![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_subscriptions.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_subscriptions)
4
- [![codecov](https://codecov.io/gh/solidusio-contrib/solidus_subscriptions/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_subscriptions)
3
+ [![CircleCI](https://circleci.com/gh/solidusio/solidus_subscriptions.svg?style=shield)](https://circleci.com/gh/solidusio/solidus_subscriptions)
4
+ [![codecov](https://codecov.io/gh/solidusio/solidus_subscriptions/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio/solidus_subscriptions)
5
5
 
6
6
  A Solidus extension to add subscriptions to your store.
7
7
 
@@ -10,13 +10,26 @@ A Solidus extension to add subscriptions to your store.
10
10
  Add solidus_subscriptions to your Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'solidus_subscriptions', github: 'solidusio-contrib/solidus_subscriptions'
13
+ gem 'solidus_subscriptions', github: 'solidusio/solidus_subscriptions'
14
14
  ```
15
15
 
16
16
  Bundle your dependencies and run the installation generator:
17
17
 
18
18
  ```shell
19
19
  $ bundle
20
+ $ bin/rails generate solidus_subscriptions:install --frontend=starter
21
+ ```
22
+
23
+ Please, be aware that the starter installation only works with the default
24
+ implementation of the starter frontend. Any customization to the files that
25
+ will be modified by the installer might break the installation procedure.
26
+ If that happens, try to adapt the installed code on top of the customizations
27
+ of the store.
28
+
29
+
30
+ If you are using the legacy `solidus_frontend` gem, please run this command instead:
31
+
32
+ ```shell
20
33
  $ bin/rails generate solidus_subscriptions:install
21
34
  ```
22
35
 
@@ -91,14 +104,11 @@ The task creates ActiveJob jobs which can be fulfilled by your queue library of
91
104
  We suggest using the [Whenever](https://github.com/javan/whenever) gem to schedule the task.
92
105
 
93
106
  ### Promotion rules
107
+
94
108
  This extensions adds the following [Promotion rules](https://guides.solidus.io/developers/promotions/promotion-rules.html):
95
109
  * `SolidusSubscriptions::Promotion::Rules::SubscriptionCreationOrder` which applies if the order is creating a subscription;
96
110
  * `SolidusSubscriptions::Promotion::Rules::SubscriptionInstallmentOrder` which applies if the order is an installment of a subscription.
97
111
 
98
- ### API documentation
99
-
100
- You can find the API documentation [here](https://stoplight.io/p/docs/gh/solidusio-contrib/solidus_subscriptions?group=master).
101
-
102
112
  ### Churn Buster integration
103
113
 
104
114
  This extension optionally integrates with [Churn Buster](https://churnbuster.io) for failed payment