summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-19Associate first order to subscriptionnirebu/associate-first-order-to-subscriptionNicolò Rebughini
As introduced by an earlier PR, orders were linked back to subscriptions, however that missed to associate the first order because that one is generated in another service object. This adds the aforementioned association also on the first order.
2020-11-16Merge pull request #165 from ↵Nicolò Rebughini
solidusio-contrib/nirebu/ignore-past-unfulfilled-installments Add config to ignore past unfulfilled installments
2020-11-16Add config to ignore past unfulfilled installmentsNicolò Rebughini
This implements a configuration to ignore past unfulfilled installments for subscriptions upon installments creations. Since failed installments (e.g. because of an expired credit card) are retried indefinitely, they can overlap and also be retried after another subscription cycle began. In this particular case, a customer who fixes their payment method after a new cycle, would be charged for double (or X times as much based on how long it passed) and sent double the quantity of the same product. Because in some cases this is not desirable, this adds a switch to skip any failed past installment when a new installment gets created under the same subscription.
2020-11-16Merge pull request #166 from solidusio-contrib/aldesantis/fix-update-formAlessandro Desantis
Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptions
2020-11-16Remove admin link specAlessandro Desantis
This spec was used to test that the Subscriptions item is present in the backend's navbar, but it's redundant as we now have other specs that leverage that same link.
2020-11-16Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptionsAlessandro Desantis
When updating a subscription that had a billing/shipping address, the admin would get a `ActiveRecord::ReadOnlyRecord` because we were attempting to update the existing address instead of creating a new one. This shouldn't be the case anymore, and a new address will always be created.
2020-10-30Merge pull request #162 from igorbp/add-subscription-tab-to-admin-usersAlberto Vena
Add Subscriptions tab to User page in Admin
2020-10-30Add Subscriptions tab to User page in AdminIgor Barbosa
2020-10-21Merge pull request #161 from ↵Alessandro Desantis
solidusio-contrib/aldesantis/fix-default-customer-permissions Fix DefaultCustomer permission set giving guests access to admin
2020-10-21Fix coding style violationsAlessandro Desantis
2020-10-21Fix `authorize!` calls using strings instead of symbolsAlessandro Desantis
CanCan requires `authorize!` calls to specify the name of the action as a symbol, if that's how it was specified in the ability.
2020-10-21Fix DefaultCustomer permission set giving guests access to adminAlessandro Desantis
The DefaultCustomer permission set would allow guests to see the subscriptions list (although they wouldn't be able to see any subscriptions).
2020-10-13Merge pull request #160 from solidusio-contrib/aldesantis/maximum-retry-periodAlessandro Desantis
Add maximum_reprocessing_attempts preference
2020-10-10Cancel subscription once it reaches the maximum retry attemptsAlessandro Desantis
2020-10-10Add maximum_reprocessing_attempts preferenceAlessandro Desantis
2020-10-10Merge pull request #152 from solidusio-contrib/aldesantis/churn-busterAlessandro Desantis
Integrate Churn Buster
2020-10-09Rely on automatic event listener subscriptionAlessandro Desantis
2020-10-09Report subscription lifecycle events to Churn BusterAlessandro Desantis
2020-10-09Implement Churn Buster API clientAlessandro Desantis
2020-10-09Fire events for subscription payment method updatesAlessandro Desantis
2020-10-09Fire events for subscription installment processingAlessandro Desantis
2020-10-09Install and configure VCRAlessandro Desantis
2020-10-09Merge pull request #159 from solidusio-contrib/aldesantis/permissions-fixAlessandro Desantis
Add scope to permission set
2020-10-09Fix coding style violationsAlessandro Desantis
2020-10-09Fix DefaultCustomer permission set with CanCan 2Alessandro Desantis
CanCan 2 complains about not being able to merge abilities that use an ActiveRecord scope, so we need to use an SQL string instead.
2020-10-09Add a permission set for administratorsAlessandro Desantis
2020-10-08Add scope to subscription permissionsAlessandro Desantis
With an AR scope, `#accessible_by` can be properly used.
2020-10-08Merge pull request #158 from solidusio-contrib/aldesantis/guest-tokenAlessandro Desantis
Enable authorization via guest tokens
2020-10-08Migrate to request specs for testing API controllersAlessandro Desantis
2020-10-08Use guest token to authorize API controller actionsAlessandro Desantis
2020-10-08Implement a base API controller classAlessandro Desantis
2020-10-08Generate guest_token for all subscriptionsAlessandro Desantis
2020-10-07Simplify line item management permissionsAlessandro Desantis
It isn't possible to manage line items through an order anymore, so we can greatly simplify the permission set.
2020-10-07Migrate ability to permission setsAlessandro Desantis
Custom abilities are deprecated in favor of the new permission sets API.
2020-10-05Merge pull request #157 from ↵Alessandro Desantis
solidusio-contrib/aldesantis/remove-repopulated-event Remove subscription_repopulated event
2020-10-05Remove subscription_repopulated eventAlessandro Desantis
This event is not really useful in its current form. Instead, each store should track repopulation in a way that makes sense for them.
2020-10-05Merge pull request #156 from solidusio-contrib/aldesantis/additional-eventsAlessandro Desantis
Track additional events for subscription updates
2020-10-05Track additional events for subscription updatesAlessandro Desantis
2020-10-05Fix failing LineItem testAlessandro Desantis
The subscription_repopulated event is now created with the details of the subscription, not of the line item that is causing the repopulation.
2020-10-01Merge pull request #154 from solidusio-contrib/aldesantis/improve-eventsAlessandro Desantis
Streamline event emission and tracking
2020-10-01Streamline event emission and trackingAlessandro Desantis
2020-10-01Merge pull request #155 from solidusio-contrib/aldesantis/refactor-dispatchersAlessandro Desantis
Improve dispatchers API
2020-10-01Remove logging from dispatchersAlessandro Desantis
The way it is currently implemented, the default logging behavior from this extension could easily pollute the logs of large applications. Logging should be implemented by individual users if they need it.
2020-10-01Merge pull request #153 from solidusio-contrib/aldesantis/config-reformatAlessandro Desantis
Reformat sample configuration file
2020-10-01Reformat sample configuration fileAlessandro Desantis
2020-09-30Merge pull request #149 from ↵Alessandro Desantis
solidusio-contrib/aldesantis/store-subscribable-type Implement a `LineItem#subscribable` association
2020-09-27Implement a `LineItem#subscribable` associationAlessandro Desantis
2020-09-27Merge pull request #151 from solidusio-contrib/aldesantis/fix-mysql-migrationAlessandro Desantis
Fix foreign key type for MySQL
2020-09-27Fix foreign key type for MySQLAlessandro Desantis
2020-09-25Use integer foreign keys for compatibility with old tablesAlessandro Desantis