Trendsic Platform Service

<back to all web services

ApplicationPrefillRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/field/application/prefill
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ApplicationPrefillRequest
    {
        public Integer AgreementJobID = null;
        public Integer JobID = null;
        public Integer ProjectID = null;
        
        public Integer getAgreementJobID() { return AgreementJobID; }
        public ApplicationPrefillRequest setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
        public Integer getJobID() { return JobID; }
        public ApplicationPrefillRequest setJobID(Integer value) { this.JobID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public ApplicationPrefillRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
    }

    public static class ApplicationPrefillResponse
    {
        public ArrayList<ApplicationProduct> Products = new ArrayList<ApplicationProduct>();
        public Integer ApplicatorContactID = null;
        public String ApplicatorName = null;
        public String ApplicatorLicence = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<ApplicationProduct> getProducts() { return Products; }
        public ApplicationPrefillResponse setProducts(ArrayList<ApplicationProduct> value) { this.Products = value; return this; }
        public Integer getApplicatorContactID() { return ApplicatorContactID; }
        public ApplicationPrefillResponse setApplicatorContactID(Integer value) { this.ApplicatorContactID = value; return this; }
        public String getApplicatorName() { return ApplicatorName; }
        public ApplicationPrefillResponse setApplicatorName(String value) { this.ApplicatorName = value; return this; }
        public String getApplicatorLicence() { return ApplicatorLicence; }
        public ApplicationPrefillResponse setApplicatorLicence(String value) { this.ApplicatorLicence = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ApplicationPrefillResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ApplicationProduct
    {
        public Integer MaterialID = null;
        public String ProductName = null;
        public String EpaRegistrationNumber = null;
        public Boolean IsRestrictedUse = null;
        public String SignalWord = null;
        public Integer ReEntryIntervalHours = null;
        public BigDecimal DefaultRate = null;
        public String RateUnit = null;
        
        public Integer getMaterialID() { return MaterialID; }
        public ApplicationProduct setMaterialID(Integer value) { this.MaterialID = value; return this; }
        public String getProductName() { return ProductName; }
        public ApplicationProduct setProductName(String value) { this.ProductName = value; return this; }
        public String getEpaRegistrationNumber() { return EpaRegistrationNumber; }
        public ApplicationProduct setEpaRegistrationNumber(String value) { this.EpaRegistrationNumber = value; return this; }
        public Boolean getIsRestrictedUse() { return IsRestrictedUse; }
        public ApplicationProduct setIsRestrictedUse(Boolean value) { this.IsRestrictedUse = value; return this; }
        public String getSignalWord() { return SignalWord; }
        public ApplicationProduct setSignalWord(String value) { this.SignalWord = value; return this; }
        public Integer getReEntryIntervalHours() { return ReEntryIntervalHours; }
        public ApplicationProduct setReEntryIntervalHours(Integer value) { this.ReEntryIntervalHours = value; return this; }
        public BigDecimal getDefaultRate() { return DefaultRate; }
        public ApplicationProduct setDefaultRate(BigDecimal value) { this.DefaultRate = value; return this; }
        public String getRateUnit() { return RateUnit; }
        public ApplicationProduct setRateUnit(String value) { this.RateUnit = value; return this; }
    }

}

Java ApplicationPrefillRequest DTOs

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

HTTP + JSV

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

GET /v1/field/application/prefill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Products: 
	[
		{
			MaterialID: 0,
			ProductName: String,
			EpaRegistrationNumber: String,
			IsRestrictedUse: False,
			SignalWord: String,
			ReEntryIntervalHours: 0,
			DefaultRate: 0,
			RateUnit: String
		}
	],
	ApplicatorContactID: 0,
	ApplicatorName: String,
	ApplicatorLicence: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}