package com.hbc.api.fraud.v0.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.math.BigDecimal; /** * 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/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * 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 android-feedback@gilt.com * * Single item */ @JsonIgnoreProperties( ignoreUnknown = true ) public class Item { private final Integer svsNumber; private final Integer skuNumber; private final Integer upcNumber; private final Integer classNumber; private final String color; private final String size; private final String currentStatus; private final Integer department; private final String signOnDelivery; private final Boolean giftWrapped; private final BigDecimal costAmount; private final BigDecimal marginAmount; private final String description; private final BigDecimal price; private final BigDecimal extendedPrice; private final Integer quantity; private final Integer groupNumber; private final Address shippingAddress; private final String shippingMethod; private final String shippingCountry; @JsonCreator public Item(@JsonProperty("svsNumber") Integer svsNumber, @JsonProperty("skuNumber") Integer skuNumber, @JsonProperty("upcNumber") Integer upcNumber, @JsonProperty("classNumber") Integer classNumber, @JsonProperty("color") String color, @JsonProperty("size") String size, @JsonProperty("currentStatus") String currentStatus, @JsonProperty("department") Integer department, @JsonProperty("signOnDelivery") String signOnDelivery, @JsonProperty("giftWrapped") Boolean giftWrapped, @JsonProperty("costAmount") BigDecimal costAmount, @JsonProperty("marginAmount") BigDecimal marginAmount, @JsonProperty("description") String description, @JsonProperty("price") BigDecimal price, @JsonProperty("extendedPrice") BigDecimal extendedPrice, @JsonProperty("quantity") Integer quantity, @JsonProperty("groupNumber") Integer groupNumber, @JsonProperty("shippingAddress") Address shippingAddress, @JsonProperty("shippingMethod") String shippingMethod, @JsonProperty("shippingCountry") String shippingCountry) { this.svsNumber = svsNumber; this.skuNumber = skuNumber; this.upcNumber = upcNumber; this.classNumber = classNumber; this.color = color; this.size = size; this.currentStatus = currentStatus; this.department = department; this.signOnDelivery = signOnDelivery; this.giftWrapped = giftWrapped; this.costAmount = costAmount; this.marginAmount = marginAmount; this.description = description; this.price = price; this.extendedPrice = extendedPrice; this.quantity = quantity; this.groupNumber = groupNumber; this.shippingAddress = shippingAddress; this.shippingMethod = shippingMethod; this.shippingCountry = shippingCountry; } /** * Product style number (parent number) */ public Integer getSvsNumber() { return svsNumber; } /** * HBC internally generated number for items (alias SKN) */ public Integer getSkuNumber() { return skuNumber; } /** * The number on the barcode that could be used across different retailers */ public Integer getUpcNumber() { return upcNumber; } /** * Signifies business category of an item (pants, tops, shirts, etc.) */ public Integer getClassNumber() { return classNumber; } public String getColor() { return color; } public String getSize() { return size; } public String getCurrentStatus() { return currentStatus; } public Integer getDepartment() { return department; } public String getSignOnDelivery() { return signOnDelivery; } public Boolean getGiftWrapped() { return giftWrapped; } public BigDecimal getCostAmount() { return costAmount; } public BigDecimal getMarginAmount() { return marginAmount; } public String getDescription() { return description; } /** * Price of single item */ public BigDecimal getPrice() { return price; } /** * Total price of all items ordered */ public BigDecimal getExtendedPrice() { return extendedPrice; } public Integer getQuantity() { return quantity; } public Integer getGroupNumber() { return groupNumber; } public Address getShippingAddress() { return shippingAddress; } public String getShippingMethod() { return shippingMethod; } public String getShippingCountry() { return shippingCountry; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Item that = (Item) o; if (svsNumber != null ? !svsNumber.equals(that.svsNumber) : that.svsNumber != null) return false; if (skuNumber != null ? !skuNumber.equals(that.skuNumber) : that.skuNumber != null) return false; if (upcNumber != null ? !upcNumber.equals(that.upcNumber) : that.upcNumber != null) return false; if (classNumber != null ? !classNumber.equals(that.classNumber) : that.classNumber != null) return false; if (color != null ? !color.equals(that.color) : that.color != null) return false; if (size != null ? !size.equals(that.size) : that.size != null) return false; if (currentStatus != null ? !currentStatus.equals(that.currentStatus) : that.currentStatus != null) return false; if (department != null ? !department.equals(that.department) : that.department != null) return false; if (signOnDelivery != null ? !signOnDelivery.equals(that.signOnDelivery) : that.signOnDelivery != null) return false; if (giftWrapped != null ? !giftWrapped.equals(that.giftWrapped) : that.giftWrapped != null) return false; if (costAmount != null ? !costAmount.equals(that.costAmount) : that.costAmount != null) return false; if (marginAmount != null ? !marginAmount.equals(that.marginAmount) : that.marginAmount != null) return false; if (description != null ? !description.equals(that.description) : that.description != null) return false; if (price != null ? !price.equals(that.price) : that.price != null) return false; if (extendedPrice != null ? !extendedPrice.equals(that.extendedPrice) : that.extendedPrice != null) return false; if (quantity != null ? !quantity.equals(that.quantity) : that.quantity != null) return false; if (groupNumber != null ? !groupNumber.equals(that.groupNumber) : that.groupNumber != null) return false; if (shippingAddress != null ? !shippingAddress.equals(that.shippingAddress) : that.shippingAddress != null) return false; if (shippingMethod != null ? !shippingMethod.equals(that.shippingMethod) : that.shippingMethod != null) return false; if (shippingCountry != null ? !shippingCountry.equals(that.shippingCountry) : that.shippingCountry != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (svsNumber != null ? svsNumber.hashCode() : 0); result = 31 * result + (skuNumber != null ? skuNumber.hashCode() : 0); result = 31 * result + (upcNumber != null ? upcNumber.hashCode() : 0); result = 31 * result + (classNumber != null ? classNumber.hashCode() : 0); result = 31 * result + (color != null ? color.hashCode() : 0); result = 31 * result + (size != null ? size.hashCode() : 0); result = 31 * result + (currentStatus != null ? currentStatus.hashCode() : 0); result = 31 * result + (department != null ? department.hashCode() : 0); result = 31 * result + (signOnDelivery != null ? signOnDelivery.hashCode() : 0); result = 31 * result + (giftWrapped != null ? giftWrapped.hashCode() : 0); result = 31 * result + (costAmount != null ? costAmount.hashCode() : 0); result = 31 * result + (marginAmount != null ? marginAmount.hashCode() : 0); result = 31 * result + (description != null ? description.hashCode() : 0); result = 31 * result + (price != null ? price.hashCode() : 0); result = 31 * result + (extendedPrice != null ? extendedPrice.hashCode() : 0); result = 31 * result + (quantity != null ? quantity.hashCode() : 0); result = 31 * result + (groupNumber != null ? groupNumber.hashCode() : 0); result = 31 * result + (shippingAddress != null ? shippingAddress.hashCode() : 0); result = 31 * result + (shippingMethod != null ? shippingMethod.hashCode() : 0); result = 31 * result + (shippingCountry != null ? shippingCountry.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return com.hbc.api.fraud.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static Item parseJson(String json) throws IOException { return com.hbc.api.fraud.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, Item.class); } }