package ee.tuleva.onboarding.epis.mandate;

import ee.tuleva.onboarding.user.address.Address;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

@Data
@Builder
public class MandateDto {
  @NotNull private final Long id;

  @NotNull private final String processId;

  @Nullable private final String futureContributionFundIsin;

  @NotNull private Instant createdDate;

  @NotNull private Integer pillar;

  private List<MandateFundsTransferExchangeDTO> fundTransferExchanges;

  @Nullable private Address address;

  @AllArgsConstructor
  @NoArgsConstructor
  @Getter
  @Setter
  public static class MandateFundsTransferExchangeDTO {
    private String processId;
    private BigDecimal amount;
    private String sourceFundIsin;
    private String targetFundIsin;
  }
}

package ee.tuleva.onboarding.epis.mandate;

import ee.tuleva.onboarding.user.address.Address;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

@Data
@Builder
public class MandateDto {
  @NotNull private final Long id;

  @NotNull private final String processId;

  @Nullable private final String futureContributionFundIsin;

  @NotNull private Instant createdDate;

  @NotNull private Integer pillar;

  private List<MandateFundsTransferExchangeDTO> fundTransferExchanges;

  @Nullable private Address address;

  @AllArgsConstructor
  @Getter
  @Setter
  public static class MandateFundsTransferExchangeDTO {
    private String processId;
    private BigDecimal amount;
    private String sourceFundIsin;
    private String targetFundIsin;
  }
}

--- 
+++ 
@@ -9,6 +9,7 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.Getter;
+import lombok.NoArgsConstructor;
 import lombok.Setter;
 import org.jetbrains.annotations.Nullable;
 
@@ -30,6 +31,7 @@
   @Nullable private Address address;
 
   @AllArgsConstructor
+  @NoArgsConstructor
   @Getter
   @Setter
   public static class MandateFundsTransferExchangeDTO {
Add empty constructor to MandateFundsTransferExchangeDTO

In localhost, without NoArgsConstructor, jaxb cannot instantiate this class without it. Works in production.
