com.easilydo.sift.model.gen.ParcelDelivery Maven / Gradle / Ivy
Show all versions of sift-sdk Show documentation
package com.easilydo.sift.model.gen;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.easilydo.sift.model.Sift;
/**
* ParcelDelivery
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"itemShipped",
"partOfOrder",
"provider",
"trackingNumber",
"trackingUrl"
})
public class ParcelDelivery extends Sift {
@JsonProperty("itemShipped")
private List itemShipped = new ArrayList();
/**
* Order
*
*
*
*/
@JsonProperty("partOfOrder")
private Order partOfOrder;
/**
* Organization
*
*
*
*/
@JsonProperty("provider")
private Organization provider;
@JsonProperty("trackingNumber")
private String trackingNumber;
@JsonProperty("trackingUrl")
private String trackingUrl;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* @return
* The itemShipped
*/
@JsonProperty("itemShipped")
public List getItemShipped() {
return itemShipped;
}
/**
*
* @param itemShipped
* The itemShipped
*/
@JsonProperty("itemShipped")
public void setItemShipped(List itemShipped) {
this.itemShipped = itemShipped;
}
/**
* Order
*
*
*
* @return
* The partOfOrder
*/
@JsonProperty("partOfOrder")
public Order getPartOfOrder() {
return partOfOrder;
}
/**
* Order
*
*
*
* @param partOfOrder
* The partOfOrder
*/
@JsonProperty("partOfOrder")
public void setPartOfOrder(Order partOfOrder) {
this.partOfOrder = partOfOrder;
}
/**
* Organization
*
*
*
* @return
* The provider
*/
@JsonProperty("provider")
public Organization getProvider() {
return provider;
}
/**
* Organization
*
*
*
* @param provider
* The provider
*/
@JsonProperty("provider")
public void setProvider(Organization provider) {
this.provider = provider;
}
/**
*
* @return
* The trackingNumber
*/
@JsonProperty("trackingNumber")
public String getTrackingNumber() {
return trackingNumber;
}
/**
*
* @param trackingNumber
* The trackingNumber
*/
@JsonProperty("trackingNumber")
public void setTrackingNumber(String trackingNumber) {
this.trackingNumber = trackingNumber;
}
/**
*
* @return
* The trackingUrl
*/
@JsonProperty("trackingUrl")
public String getTrackingUrl() {
return trackingUrl;
}
/**
*
* @param trackingUrl
* The trackingUrl
*/
@JsonProperty("trackingUrl")
public void setTrackingUrl(String trackingUrl) {
this.trackingUrl = trackingUrl;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(itemShipped).append(partOfOrder).append(provider).append(trackingNumber).append(trackingUrl).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ParcelDelivery) == false) {
return false;
}
ParcelDelivery rhs = ((ParcelDelivery) other);
return new EqualsBuilder().append(itemShipped, rhs.itemShipped).append(partOfOrder, rhs.partOfOrder).append(provider, rhs.provider).append(trackingNumber, rhs.trackingNumber).append(trackingUrl, rhs.trackingUrl).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}