...
private Date updatedAt;
}
CustomizableAmount
publicclass
CustomizableAmount {
private Boolean allow; // True -> Si permite un monto customizable, caso contrario False
private Long max; // Monto maximo en centavos (Informacion requerida solo si allow es True)
private Long min; // Monto minimo en centavos (Informacion requerida solo si allow es True)
}
Product
publicclass
Product {
@Id
private String id;
@Indexed
private String name;
@Indexed
private String providerId;
private Long amountInCents;
private String upc;
privatedouble
commission; // Opcional
private Long discountInCents; // Opcional
private Date createdAt;
}