Commit 23019ac
Enable refunds and fulfillment of purchases (#532)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Admin endpoints to refund orders and to fulfill specific line items.
* Store purchases are queued for asynchronous processing; queue message
ID returned.
* New background handler consumes queued store purchases and triggers
post-purchase flows (including emails).
* **Improvements**
* Sales emails adapt to identity verification (simpler email when
verified; attachment used otherwise).
* Webhook/payment flows include richer context and support idempotent
refunds and per-line-item fulfillment.
* **Tests**
* Added unit tests for fulfillment flows, validation, and error cases.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent 9ad397e commit 23019ac
File tree
13 files changed
+854
-45
lines changed- src
- api
- functions
- routes
- sqs
- handlers
- common/types
- terraform/modules
- lambdas
- sqs
- tests/unit
13 files changed
+854
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
| 152 | + | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
155 | 165 | | |
156 | 166 | | |
157 | 167 | | |
| |||
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
221 | | - | |
222 | | - | |
| 231 | + | |
| 232 | + | |
223 | 233 | | |
224 | 234 | | |
225 | 235 | | |
| |||
231 | 241 | | |
232 | 242 | | |
233 | 243 | | |
234 | | - | |
| 244 | + | |
235 | 245 | | |
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
240 | 250 | | |
241 | 251 | | |
242 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
243 | 275 | | |
244 | 276 | | |
245 | | - | |
| 277 | + | |
246 | 278 | | |
247 | 279 | | |
248 | 280 | | |
| |||
254 | 286 | | |
255 | 287 | | |
256 | 288 | | |
257 | | - | |
| 289 | + | |
258 | 290 | | |
259 | 291 | | |
260 | 292 | | |
| 293 | + | |
261 | 294 | | |
262 | 295 | | |
263 | 296 | | |
| |||
0 commit comments