Commit 4226c5f
v5.0.2: fix notification campaign class enum missing values (#36)
## Problem
Notification's campaign entity is built on top of Campaign's original `StateEnum`, but extending it with a few more calculated-derived states for communicating those to the consumers.
These are not part of the original enum and therefore the constructor of the Campaign Class fails when initiating such instances
## Solution
Extend the `StateEnum` to support the full range of values:
- `ENABLED` : enabled
- `DISABLED` : disabled
- `ARCHIVED` : archived
- `EXPIRED` : expired
- `SCHEDULED` : scheduled
- `RUNNING` : running
- `DRAFT` : draft
Co-authored-by: Kristina Kupreeva <kristine.kupreeva@gmail.com>1 parent 149a646 commit 4226c5f
2 files changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
0 commit comments