| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ApplicationPrefillResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ApplicatorContactID>0</ApplicatorContactID>
<ApplicatorLicence>String</ApplicatorLicence>
<ApplicatorName>String</ApplicatorName>
<Products>
<ApplicationProduct>
<DefaultRate>0</DefaultRate>
<EpaRegistrationNumber>String</EpaRegistrationNumber>
<IsRestrictedUse>false</IsRestrictedUse>
<MaterialID>0</MaterialID>
<ProductName>String</ProductName>
<RateUnit>String</RateUnit>
<ReEntryIntervalHours>0</ReEntryIntervalHours>
<SignalWord>String</SignalWord>
</ApplicationProduct>
</Products>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</ApplicationPrefillResponse>