AgentSearchDTO.java
package com.tradecloud.dto.api.agent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.tradecloud.schema.ISOCurrencyCodeType;
import com.tradecloud.dto.api.SearchDTO;
import java.util.Date;
@JsonRootName(value = "agentSearchDTO")
public class AgentSearchDTO extends SearchDTO {
@JsonProperty(required = false)
@JsonPropertyDescription(value = "The agent name.")
private String name;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "")
private String email;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "The organisation code that the agent is linked to.")
private String organisation;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "All agents with a created date date after the specified date will be returned.")
private Date createdFrom;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "All agents with a created date before the specified date will be returned.")
private Date createdTo;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "The agent's code/reference.")
private String code;
@JsonProperty(required = true)
@JsonPropertyDescription(value = "")
private String type;
@JsonProperty(required = false)
@JsonPropertyDescription(value = "The currency of the agent.")
private ISOCurrencyCodeType currency;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getOrganisation() {
return organisation;
}
public void setOrganisation(String organisation) {
this.organisation = organisation;
}
public Date getCreatedFrom() {
return createdFrom;
}
public void setCreatedFrom(Date createdFrom) {
this.createdFrom = createdFrom;
}
public Date getCreatedTo() {
return createdTo;
}
public void setCreatedTo(Date createdTo) {
this.createdTo = createdTo;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ISOCurrencyCodeType getCurrency() {
return currency;
}
public void setCurrency(ISOCurrencyCodeType currency) {
this.currency = currency;
}
}