/* Options: Date: 2025-12-06 06:22:02 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://1fetch.api.client.prod.86degrees.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CalculateDistance.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/calculatedistance", Verbs="POST") open class CalculateDistance : ApiServiceRequest(), IReturn, ILogRequest { /** * Array of coordinates */ @ApiMember(Description="Array of coordinates", IsRequired=true) var Coordinates:ArrayList = ArrayList() companion object { private val responseType = CalculateDistanceResponse::class.java } override fun getResponseType(): Any? = CalculateDistance.responseType } open class CalculateDistanceResponse : ApiServiceResponse() { /** * A list of the distances between each point, returned in order that the points were provided */ @ApiMember(Description="A list of the distances between each point, returned in order that the points were provided") var PointDistances:ArrayList = ArrayList() /** * The total distance between all points */ @ApiMember(Description="The total distance between all points") var TotalDistance:BigDecimal? = null } open class ApiServiceRequest : IServiceRequest, IHasApiKey { /** * The API Key required for authentication */ @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) var ApiKey:String? = null } open interface IServiceRequest { } open interface IHasApiKey { var ApiKey:String? } open interface ILogRequest { } open class Coordinate { /** * The Latitude */ @ApiMember(Description="The Latitude", IsRequired=true) var Latitude:Double? = null /** * The Longitude */ @ApiMember(Description="The Longitude", IsRequired=true) var Longitude:Double? = null } open class ApiServiceResponse : IServiceResponse { /** * Information about the response. */ @ApiMember(Description="Information about the response.", IsRequired=true) var Description:String? = null /** * Heading or summary of the response. */ @ApiMember(Description="Heading or summary of the response.", IsRequired=true) var Heading:String? = null /** * Did the intended operation for this response complete successfully? */ @ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true) var WasSuccessful:Boolean? = null }