Skip to content

Releases: remp2020/crm-scenarios-module

3.4.0

20 Sep 12:59
Compare
Choose a tag to compare
  • BREAKING: A trait NotificationTemplateParamsTrait now needs access to ApplicationConfig to work properly. remp/novydenik#1269
  • Added BeforeRecurrentPaymentExpiresEventGenerator to check card expiration dates in advance. remp/crm#3231
  • Added trait TimeframeScenarioTrait which contains validation of TimeframeParam and returns operator and limit which can be further used within selection. remp/remp#2998
  • Partially refactored NotificationTemplateParamsTrait. remp/novydenik#1269
  • Fixed TestUserCommand type error error when using --user_id option. remp/novydenik#1269

3.3.1

12 Aug 09:13
Compare
Choose a tag to compare
  • Fixed use of internal seeder within open-source modules.

3.3.0

12 Jul 11:16
Compare
Choose a tag to compare
  • Moved scenario-builder from its own repository directly to extensions/scenarios-module. remp/crm#2089

3.2.0

24 May 10:25
Compare
Choose a tag to compare
  • DEPRECATED: Deprecated use of EventsStorage public events to register new trigger handlers.
  • IMPORTANT: Added TriggerManager - a new official way to register trigger handlers for scenarios + rewritten existing registrations. remp/crm#1409
    • We encourage using TriggerManager to register new trigger handlers and to rewrite existing ones until the next major release, where the source of registered handlers will switch to TriggerManager instead of the current public events on top of EventsStorage.
    • We found a few "Event Trigger" events that were listed by mistake or weren't working as expected. To list all scenarios which is affected by this change and should be manually reviewed, run scenarios:list_scenarios_to_review command.
  • Added handling renewal_payment_id to NotificationTemplateParamsTrait. remp/novydenik#1147
  • Added ability to add additional scenario jobs parameters. remp/novydenik#1147
    • Added ScenarioGenericEventAdditionalParamsInterface interface which defines methods needed for adding additional parameters.
    • Added support for handling additional job parameters to RunGenericEventHandler. remp/novydenik#1147
  • Added AttachRenewalPaymentEvent event and AttachRenewalPaymentEventHandler handler which handles creating and attaching renewal payment to job parameters. remp/novydenik#1147
  • Fixed scenario builder didn't work with generic actions with empty options. remp/novydenik#1147
  • Rewritten existing hermes registrations/handlers to use new TriggerManager to register 'Trigger handlers' events. remp/crm#1409
  • Changed existing implementation of condition models in ConditionCheckEventHandler to registered separated condition models. remp/crm#1409
  • Added EventGeneratorOutputProviderInterface to existing BeforeRecurrentPaymentChargeEventGenerator and SubscriptionEndsEventGenerator. remp/crm#1409
    • Added user_id explicitly to output params.
  • Scenarios now validates triggers with a given elements during creation and update. remp/crm#1409

3.0.0

22 Jan 20:56
Compare
Choose a tag to compare
  • BREAKING: Fixed class namespaces to follow PSR4 specification. remp/crm#2228
    • Use package remp/crm-rector:^3.0 to automatically fix these renames.
  • Added payment param into NotificationEvent also in case payment_id was not provided but subscription is connected to one. remp/helpdesk#2329
  • Added check if database is already in transaction (ScenariosRepository->createOrUpdate()). remp/crm#3055

2.11.0

21 Nov 12:17
Compare
Choose a tag to compare
  • Set recurrent parent payment in notification template params as parent payment of recurrent payment if recurrent payment is available. remp/novydenik#1149

2.10.0

03 Oct 10:59
Compare
Choose a tag to compare
  • Changed the registration of events - module now uses LazyEventEmitter which supports lazy event listeners registration. remp/crm#2116

2.5.0

21 Apr 12:27
Compare
Choose a tag to compare
  • Added migration to change primary key of scenarios_jobs table to bigint. remp/crm#2591

2.2.0

27 Jan 12:38
Compare
Choose a tag to compare
  • Fixed bug allowing to save scenario with an empty name. remp/crm#2532
  • Fixed PHP 8.1 deprecation issues. remp/crm#2706
  • Added soft-delete to scenarios_jobs. remp/crm#2732

2.1.0

25 Nov 14:07
Compare
Choose a tag to compare
  • Added soft delete and restore to scenarios. remp/crm#2531
    • Changed Engine to process only jobs of enabled scenarios that were created after scenario restore (if restored).
    • Added deletion of unprocessable jobs. These are jobs of deleted scenarios or jobs created before scenario restore.