/* Options:
Date: 2025-12-06 06:51:25
Version: 8.0
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.1fetch.co.za
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: ValidateWaypoints.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using WebService.ClientServiceModel.Base;
using CommonService.Api.Operations.Base;
using CommonService.Api.Operations;
using WebService.ClientServiceModel;
using BusinessLogic.Entities;
namespace BusinessLogic.Entities
{
public partial interface IRequestWaypoint
{
double Latitude { get; set; }
double Longitude { get; set; }
int WaypointNumber { get; set; }
string ContactName { get; set; }
string ContactNumber { get; set; }
string DeliveryInstructions { get; set; }
string Address { get; set; }
}
public partial class LinkedWaypoint
{
public virtual int FromWaypointNumber { get; set; }
public virtual int ToWaypointNumber { get; set; }
public virtual double FromLatitude { get; set; }
public virtual double FromLongitude { get; set; }
public virtual double ToLatitude { get; set; }
public virtual double ToLongitude { get; set; }
}
}
namespace CommonService.Api.Operations
{
public partial interface IHasApiKey
{
string ApiKey { get; set; }
}
public partial interface ILogRequest
{
}
}
namespace CommonService.Api.Operations.Base
{
public partial interface IServiceRequest
{
}
}
namespace WebService.ClientServiceModel
{
public partial class RequestQuoteWaypoint
: IRequestWaypoint
{
///
///Number of waypoint for ordering
///
[ApiMember(Description="Number of waypoint for ordering", IsRequired=true)]
public virtual int WaypointNumber { get; set; }
///
///Waypoint Latitude
///
[ApiMember(Description="Waypoint Latitude", IsRequired=true)]
public virtual double Latitude { get; set; }
///
///Waypoint Longitude
///
[ApiMember(Description="Waypoint Longitude", IsRequired=true)]
public virtual double Longitude { get; set; }
///
///Name of contact person at waypoint
///
[ApiMember(Description="Name of contact person at waypoint", IsRequired=true)]
public virtual string ContactName { get; set; }
///
///Telephone number of contact person at waypoint
///
[ApiMember(Description="Telephone number of contact person at waypoint", IsRequired=true)]
public virtual string ContactNumber { get; set; }
///
///Instructions for driver to follow at waypoint
///
[ApiMember(Description="Instructions for driver to follow at waypoint", IsRequired=true)]
public virtual string DeliveryInstructions { get; set; }
///
///Waypoint address
///
[ApiMember(Description="Waypoint address", IsRequired=true)]
public virtual string Address { get; set; }
}
[Route("/quote/validatewaypoints", "POST")]
public partial class ValidateWaypoints
: ApiServiceRequest, IReturn, ILogRequest
{
public ValidateWaypoints()
{
Waypoints = new List{};
}
///
///Array of waypoints
///
[ApiMember(Description="Array of waypoints", IsRequired=true)]
public virtual List Waypoints { get; set; }
///
///Set this to true to prevent while testing the API.
///
[ApiMember(Description="Set this to true to prevent while testing the API.", IsRequired=true)]
public virtual bool Test { get; set; }
}
public partial class ValidateWaypointsResponse
: ApiServiceResponse
{
public ValidateWaypointsResponse()
{
WaypointValidations = new List{};
Waypoints = new List{};
}
///
///List with validation information for each waypoint
///
[ApiMember(Description="List with validation information for each waypoint")]
public virtual List WaypointValidations { get; set; }
///
///The total distance for the order
///
[ApiMember(Description="The total distance for the order")]
public virtual double TotalDistance { get; set; }
///
///The total distance for the order, formatted as a string
///
[ApiMember(Description="The total distance for the order, formatted as a string")]
public virtual string TotalDistanceValue { get; set; }
///
///List of information for pricing etc between each waypoint
///
[ApiMember(Description="List of information for pricing etc between each waypoint")]
public virtual List Waypoints { get; set; }
///
///Is there an issue for the waypoints details specified?
///
[ApiMember(Description="Is there an issue for the waypoints details specified?")]
public virtual bool WaypointIssue { get; set; }
}
public partial class WaypointQuoteInformation
: LinkedWaypoint
{
public WaypointQuoteInformation()
{
ErrorDetails = new List{};
}
///
///Distance between waypoints as a number
///
[ApiMember(Description="Distance between waypoints as a number")]
public virtual double Distance { get; set; }
///
///String formatted distance
///
[ApiMember(Description="String formatted distance")]
public virtual string DistanceValue { get; set; }
public virtual bool WaypointValid { get; set; }
public virtual string Message { get; set; }
public virtual List ErrorDetails { get; set; }
///
///Caculated price between waypoints excluding vat
///
[ApiMember(Description="Caculated price between waypoints excluding vat")]
public virtual decimal Price { get; set; }
///
///Price excluding vat formatted as a string rand value
///
[ApiMember(Description="Price excluding vat formatted as a string rand value")]
public virtual string PriceValue { get; set; }
///
///The price between waypoints including vat
///
[ApiMember(Description="The price between waypoints including vat")]
public virtual decimal PriceWithVAT { get; set; }
///
///The price including vat formatted as a rand value string
///
[ApiMember(Description="The price including vat formatted as a rand value string")]
public virtual string PriceValueWithVAT { get; set; }
}
public partial class WaypointValidationInformation
{
public WaypointValidationInformation()
{
ErrorMessages = new List{};
}
public virtual int WaypointNumber { get; set; }
public virtual bool IsValid { get; set; }
public virtual List ErrorMessages { get; set; }
}
}
namespace WebService.ClientServiceModel.Base
{
public partial class ApiServiceRequest
: IServiceRequest, IHasApiKey
{
///
///The API Key required for authentication
///
[ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)]
public virtual string ApiKey { get; set; }
}
public partial class ApiServiceResponse
: IServiceResponse
{
///
///Information about the response.
///
[ApiMember(Description="Information about the response.", IsRequired=true)]
public virtual string Description { get; set; }
///
///Heading or summary of the response.
///
[ApiMember(Description="Heading or summary of the response.", IsRequired=true)]
public virtual string Heading { get; set; }
///
///Did the intended operation for this response complete successfully?
///
[ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true)]
public virtual bool WasSuccessful { get; set; }
}
}