Commit 230934e
Release: develop -> master (#2867)
* fix: improve refund cronjob validation (#2866)
* fix: allow BankTxReturn refund without userData
The chargebackTx cronjob now handles two cases:
1. Entries WITH userData: check KYC/risk status as before
2. Entries WITHOUT userData: process without KYC/risk check
This enables automatic refunds for unassigned deposits that
have no associated user account.
* fix: require creditorData for automatic refund processing
Cronjob now only processes entries where chargebackCreditorData is set.
This prevents unnecessary errors from validateRequiredCreditorFields.
* fix: require creditorData for BuyCrypto bank refund processing
Cronjob now only processes bank refunds where chargebackCreditorData is set.
Checkout refunds don't need creditorData (handled by checkout provider).
* fix: exclude 4xx client errors from Application Insights failures (#2865)
* fix: exclude 4xx client errors from Application Insights failures
Add TelemetryProcessor to mark 4xx responses as success=true.
Only 5xx server errors should appear in the Failures dashboard.
This reduces noise from expected client errors (400 Bad Request,
401 Unauthorized, 404 Not Found) in failure metrics and alerts.
* fix: use correct type for responseCode (string, not number)
Application Insights SDK types define responseCode as string.
Use parseInt() for proper type conversion before comparison.
* [NO-TASK] Minor improvements
---------
Co-authored-by: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com>
Co-authored-by: David May <david.leo.may@gmail.com>4 files changed
Lines changed: 42 additions & 16 deletions
File tree
- src
- subdomains
- core/buy-crypto/process/services
- generic/gs
- supporting/bank-tx/bank-tx-return
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| |||
0 commit comments