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

com.truelayer.java.mandates.entities.mandate.Mandate Maven / Gradle / Ivy

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

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

@ToString
@EqualsAndHashCode
public abstract class Mandate {

    public static VRPSweepingMandate.VRPSweepingMandateBuilder vrpSweepingMandate() {
        return VRPSweepingMandate.builder();
    }

    public static VRPCommercialMandate.VRPCommercialMandateBuilder vrpCommercialMandate() {
        return VRPCommercialMandate.builder();
    }

    @RequiredArgsConstructor
    @Getter
    public enum Type {
        SWEEPING("sweeping"),
        COMMERCIAL("commercial");

        @JsonValue
        private final String type;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy