com.truelayer.java.mandates.entities.mandate.Mandate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
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;
}
}