Skip to content

Commit

Permalink
feat(impl): [#734] Handling for modification attempts on read-only de…
Browse files Browse the repository at this point in the history
…fault policies: add handleTrialToModifyFallbackPolicy to registerPolicy method
  • Loading branch information
dsmf committed Jul 23, 2024
1 parent 8e0ab60 commit b5c75da
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public Policy registerPolicy(final CreatePolicyRequest request) {
final Policy policy = edcTransformer.transformToIrsPolicy(policyJson);
policy.setValidUntil(request.validUntil());

handleTrialToModifyFallbackPolicy(policy.getPolicyId());

registeredPolicy = doRegisterPolicy(policy,
request.businessPartnerNumber() == null ? BPN_DEFAULT : request.businessPartnerNumber());

Expand Down

0 comments on commit b5c75da

Please sign in to comment.