All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.truelayer.java.mandates.entities.Constraints Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package com.truelayer.java.mandates.entities;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.*;

@Builder
@Getter
@EqualsAndHashCode
@ToString
public class Constraints {

    private String validFrom;

    private String validTo;

    private Integer maximumIndividualAmount;

    private PeriodicLimits periodicLimits;

    @Builder
    @Getter
    @EqualsAndHashCode
    @ToString
    public static class PeriodicLimits {

        private Limit day;

        private Limit week;

        private Limit fortnight;

        private Limit month;

        private Limit halfYear;

        private Limit year;

        @Builder
        @Getter
        @EqualsAndHashCode
        @ToString
        public static class Limit {
            private int maximumAmount;

            private PeriodAlignment periodAlignment;

            @RequiredArgsConstructor
            @Getter
            public enum PeriodAlignment {
                CONSENT("consent"),
                CALENDAR("calendar");

                @JsonValue
                private final String value;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy