/* Options: Date: 2024-09-19 22:54:14 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://initiation.sirva.com //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: DocumentUploadRequest.* //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 Client_Initiations.ServiceModel.ClientUpload; namespace Client_Initiations.ServiceModel.ClientUpload { [Route("/documents", "POST")] [ApiResponse(Description="Returned if a client is not authorized to upload a receipt", StatusCode=401)] [ApiResponse(Description="Returned if the validation failed for the input expense receipt", StatusCode=412)] [ApiResponse(Description="Returned if the corresponding expense report was not found", StatusCode=404)] [ApiResponse(Description="Returned if the call to the expense service failed", StatusCode=400)] public partial class DocumentUploadRequest : IReturn, IPost { /// ///FileName /// [ApiMember(Description="FileName", IsRequired=true, ParameterType="path")] public virtual string FileName { get; set; } /// ///ExternalID /// [ApiMember(Description="ExternalID", ExcludeInSchema=true, IsRequired=true, ParameterType="path")] public virtual string ExternalId { get; set; } /// ///RequestStream needs to be base64 file content /// [ApiMember(Description="RequestStream needs to be base64 file content")] public virtual string RequestStream { get; set; } } public partial class DocumentUploadResponse { public virtual string FileName { get; set; } public virtual string DownloadLink { get; set; } public virtual string ListLink { get; set; } public virtual int DaysToLive { get; set; } public virtual string Message { get; set; } public virtual bool IsSuccess { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } }