| GET,OPTIONS | /v1/field/application/prefill |
|---|
import Foundation
import ServiceStack
public class ApplicationPrefillRequest : Codable
{
public var agreementJobID:Int
public var jobID:Int
public var projectID:Int
required public init(){}
}
public class ApplicationPrefillResponse : Codable
{
public var products:[ApplicationProduct] = []
public var applicatorContactID:Int
public var applicatorName:String
public var applicatorLicence:String
public var responseStatus:ResponseStatus
required public init(){}
}
public class ApplicationProduct : Codable
{
public var materialID:Int
public var productName:String
public var epaRegistrationNumber:String
public var isRestrictedUse:Bool
public var signalWord:String
public var reEntryIntervalHours:Int?
public var defaultRate:Double?
public var rateUnit:String
required public init(){}
}
Swift ApplicationPrefillRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}