Commit 6d32e32
Gate service sub-fields behind enabledForServices in GeneralSettingsService
allowFirstServicePaymentDelay and allowServiceRegistrationItems were being
populated independently of enabledForServices. A merchant credential could
have allow_first_instalment_delay or with_registration in its contract
options without having services enabled, causing those country codes to
appear in the response even when the country was not in enabledForServices.
The sub-option checks are now nested inside the isEnabledForServices()
block so that a country can only appear in allowFirstServicePaymentDelay
or allowServiceRegistrationItems if it is also present in enabledForServices.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6e41115 commit 6d32e32
File tree
1 file changed
+6
-6
lines changed- src/BusinessLogic/Domain/GeneralSettings/Services
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments