package com.hbc.api.fraud.v0.models; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDocument; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.math.BigDecimal; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2 * User agent: apibuilder app.apibuilder.io/hbc/api-fraud/0.0.2/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * Promotion model */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) @DynamoDBDocument public class Promo { @NotNull protected String promotionCode; @NotNull protected BigDecimal promotionAmount; public Promo(String promotionCode, BigDecimal promotionAmount) { this.promotionCode = promotionCode; this.promotionAmount = promotionAmount; } public Promo() { } @DynamoDBAttribute public String getPromotionCode() { return promotionCode; } public void setPromotionCode(String promotionCode) { this.promotionCode = promotionCode; } /** * Dollar amount discounted by the promotion */ @DynamoDBAttribute public BigDecimal getPromotionAmount() { return promotionAmount; } public void setPromotionAmount(BigDecimal promotionAmount) { this.promotionAmount = promotionAmount; } }