Untitled

 avatar
unknown
java
2 years ago
1.3 kB
20
No Index
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "",propOrder = {
        "amount",
        "userId",
        "posId",
        "transactionId"
})
@XmlRootElement(name = "saleRequest", namespace = "http://mycompany.lt/soap-web-service")
public class PerlasSaleRequestDTO {
    @NotNull
    @Positive
    @DecimalMax(value = "99999.99")
    @Digits(integer = 5, fraction = 2,message = "amount too long ")
    @XmlElement(name = "amount", required = true, namespace = "http://mycompany.lt/soap-web-service" )
    private BigDecimal amount;

    @NotNull(message = "userId cant be null")
    @Size(max = 32, message = "userId too long")
    @XmlElement(name = "userId", required = true, namespace = "http://mycompany.lt/soap-web-service" )
    private String userId;

    @NotNull(message = "posId cant be null")
    @Size(max = 32, message = "posId too long")
    @XmlElement(name = "posId", required = true, namespace = "http://mycompany.lt/soap-web-service" )
    private String posId;

    @NotNull(message = "transactionId cant be null")
    @Size(max = 100, message = "transactionId too long")
    @XmlElement(name = "transactionId", required = true, namespace = "http://mycompany.lt/soap-web-service" )
    private String transactionId;
}
Editor is loading...
Leave a Comment