package com.hbc.api.fraud.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; import java.lang.String; import java.math.BigDecimal; import java.util.Date; import java.util.List; 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 * * Defines data expected to come in from OMS describing a transaction */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Transaction { @NotNull protected String orderId; @NotNull protected String groupId; @NotNull protected BigDecimal orderTotal; @NotNull protected BigDecimal shippingCost; @NotNull protected String currencyCode; @NotNull protected Integer storeNumber; protected String salesRep; protected Date lastModifiedDate; @NotNull protected Banner banner; @NotNull protected CreditCard creditCard; protected List promos; @NotNull protected List items; protected String ipAddress; @NotNull protected String source; @NotNull protected Customer customer; protected AdditionalData additionalData; public Transaction(String orderId, String groupId, BigDecimal orderTotal, BigDecimal shippingCost, String currencyCode, Integer storeNumber, String salesRep, Date lastModifiedDate, Banner banner, CreditCard creditCard, List promos, List items, String ipAddress, String source, Customer customer, AdditionalData additionalData) { this.orderId = orderId; this.groupId = groupId; this.orderTotal = orderTotal; this.shippingCost = shippingCost; this.currencyCode = currencyCode; this.storeNumber = storeNumber; this.salesRep = salesRep; this.lastModifiedDate = lastModifiedDate; this.banner = banner; this.creditCard = creditCard; this.promos = promos; this.items = items; this.ipAddress = ipAddress; this.source = source; this.customer = customer; this.additionalData = additionalData; } public Transaction() { } public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getGroupId() { return groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } public BigDecimal getOrderTotal() { return orderTotal; } public void setOrderTotal(BigDecimal orderTotal) { this.orderTotal = orderTotal; } public BigDecimal getShippingCost() { return shippingCost; } public void setShippingCost(BigDecimal shippingCost) { this.shippingCost = shippingCost; } public String getCurrencyCode() { return currencyCode; } public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } public Integer getStoreNumber() { return storeNumber; } public void setStoreNumber(Integer storeNumber) { this.storeNumber = storeNumber; } public String getSalesRep() { return salesRep; } public void setSalesRep(String salesRep) { this.salesRep = salesRep; } public Date getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } public Banner getBanner() { return banner; } public void setBanner(Banner banner) { this.banner = banner; } public CreditCard getCreditCard() { return creditCard; } public void setCreditCard(CreditCard creditCard) { this.creditCard = creditCard; } public List getPromos() { return promos; } public void setPromos(List promos) { this.promos = promos; } public List getItems() { return items; } public void setItems(List items) { this.items = items; } public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } /** * Order source (web, store, etc) */ public String getSource() { return source; } public void setSource(String source) { this.source = source; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } /** * Additional `envelope` data sent through our system to f-s, should include InAuthId */ public AdditionalData getAdditionalData() { return additionalData; } public void setAdditionalData(AdditionalData additionalData) { this.additionalData = additionalData; } }