Commit 44a541d
committed
Keep identical address change IDs
An address change record allows two changes:
- setting an address
- opting out of the donation receipt
Each of those actions takes an `AddressChangeId` and "rotates" the
current ID to the `previousIdentifier`. When doing both changes, the Id
should only be rotated once, to avoid `hasBeenUsed` returning the wrong
value and to be able to check in the frontend if the previous ID still
returns a (used) address changed record.1 parent e0b7a00 commit 44a541d
File tree
2 files changed
+15
-2
lines changed- src/Domain/Model
- tests/Unit/Domain/Model
2 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
155 | 166 | | |
0 commit comments