Trendsic Platform Service

<back to all web services

AvailableFactFinderCodeRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,DELETE,OPTIONS/v1/AvailableFactFinderCode/{AgentId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AvailableFactFinderCodeRequest
    {
        public Integer AgentId = null;
        public Integer StartCode = null;
        public Integer EndCode = null;
        public String TrackingNumber = null;
        public Date ShipDate = null;
        
        public Integer getAgentId() { return AgentId; }
        public AvailableFactFinderCodeRequest setAgentId(Integer value) { this.AgentId = value; return this; }
        public Integer getStartCode() { return StartCode; }
        public AvailableFactFinderCodeRequest setStartCode(Integer value) { this.StartCode = value; return this; }
        public Integer getEndCode() { return EndCode; }
        public AvailableFactFinderCodeRequest setEndCode(Integer value) { this.EndCode = value; return this; }
        public String getTrackingNumber() { return TrackingNumber; }
        public AvailableFactFinderCodeRequest setTrackingNumber(String value) { this.TrackingNumber = value; return this; }
        public Date getShipDate() { return ShipDate; }
        public AvailableFactFinderCodeRequest setShipDate(Date value) { this.ShipDate = value; return this; }
    }

    public static class FactFinderCodeResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<FactFinderCode> FactFinderCode = new ArrayList<FactFinderCode>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FactFinderCodeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<FactFinderCode> getFactFinderCode() { return FactFinderCode; }
        public FactFinderCodeResponse setFactFinderCode(ArrayList<FactFinderCode> value) { this.FactFinderCode = value; return this; }
    }

    public static class FactFinderCode
    {
        public Integer Id = null;
        public Integer AgentId = null;
        public Integer SerialNumber = null;
        public Date ShipDate = null;
        public String TrackingNumber = null;
        public Date CreatedDate = null;
        public Integer ContactId = null;
        public Date AssignedDate = null;
        public String AgentName = null;
        public String ContactName = null;
        
        public Integer getId() { return Id; }
        public FactFinderCode setId(Integer value) { this.Id = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public FactFinderCode setAgentId(Integer value) { this.AgentId = value; return this; }
        public Integer getSerialNumber() { return SerialNumber; }
        public FactFinderCode setSerialNumber(Integer value) { this.SerialNumber = value; return this; }
        public Date getShipDate() { return ShipDate; }
        public FactFinderCode setShipDate(Date value) { this.ShipDate = value; return this; }
        public String getTrackingNumber() { return TrackingNumber; }
        public FactFinderCode setTrackingNumber(String value) { this.TrackingNumber = value; return this; }
        public Date getCreatedDate() { return CreatedDate; }
        public FactFinderCode setCreatedDate(Date value) { this.CreatedDate = value; return this; }
        public Integer getContactId() { return ContactId; }
        public FactFinderCode setContactId(Integer value) { this.ContactId = value; return this; }
        public Date getAssignedDate() { return AssignedDate; }
        public FactFinderCode setAssignedDate(Date value) { this.AssignedDate = value; return this; }
        public String getAgentName() { return AgentName; }
        public FactFinderCode setAgentName(String value) { this.AgentName = value; return this; }
        public String getContactName() { return ContactName; }
        public FactFinderCode setContactName(String value) { this.ContactName = value; return this; }
    }

}

Java AvailableFactFinderCodeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/AvailableFactFinderCode/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"FactFinderCode":[{"Id":0,"AgentId":0,"SerialNumber":0,"ShipDate":"0001-01-01T00:00:00.0000000","TrackingNumber":"String","CreatedDate":"0001-01-01T00:00:00.0000000","ContactId":0,"AssignedDate":"0001-01-01T00:00:00.0000000","AgentName":"String","ContactName":"String"}]}