Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
[SELC-5211] fix: modify activatedAt type to OffsetDateTime (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
giulia-tremolada authored Jul 3, 2024
1 parent 0137335 commit 38f467a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package it.pagopa.selfcare.mscore.web.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.*;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.tags.Tags;
import it.pagopa.selfcare.commons.base.security.SelfCareUser;
Expand All @@ -15,7 +11,10 @@
import it.pagopa.selfcare.mscore.core.OnboardingService;
import it.pagopa.selfcare.mscore.model.institution.*;
import it.pagopa.selfcare.mscore.web.model.institution.*;
import it.pagopa.selfcare.mscore.web.model.mapper.*;
import it.pagopa.selfcare.mscore.web.model.mapper.BrokerMapper;
import it.pagopa.selfcare.mscore.web.model.mapper.InstitutionMapperCustom;
import it.pagopa.selfcare.mscore.web.model.mapper.InstitutionResourceMapper;
import it.pagopa.selfcare.mscore.web.model.mapper.OnboardingResourceMapper;
import it.pagopa.selfcare.mscore.web.model.onboarding.OnboardedProducts;
import it.pagopa.selfcare.mscore.web.util.CustomExceptionMessage;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;

@Data
public class InstitutionOnboardingRequest {
Expand All @@ -15,7 +15,7 @@ public class InstitutionOnboardingRequest {
private String contractPath;
private String pricingPlan;
private BillingRequest billing;
private LocalDateTime activatedAt;
private OffsetDateTime activatedAt;
private Boolean isAggregator;

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ default Boolean mapSignContract(Boolean signContract) {
}

@Mapping(target = "contract", source = "contractPath")
@Mapping(target = "createdAt", source = "activatedAt", qualifiedByName = "toOffsetDateTime")
@Mapping(target = "createdAt", source = "activatedAt")
Onboarding toOnboarding(InstitutionOnboardingRequest onboardingRequest);

@Named("toOffsetDateTime")
Expand Down

0 comments on commit 38f467a

Please sign in to comment.