/* Options: Date: 2024-11-26 04:40:03 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.staging.pwc.de //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: RevokeOrder.* //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 System.Net; using PwC.Metering.Core.Services.Contracts.Requests; using PwC.Metering.Core.Domain.Concretes.Models; using PwC.Metering.Core.Services.Contracts.Responses; using PwC.Metering.Core.Domain.Concretes.Interfaces; namespace PwC.Metering.Core.Domain.Concretes.Interfaces { /// /// Specifies that a data type should have a 'Name' property. /// public partial interface IHasName { /// ///The 'Name' property. /// string Name { get; set; } } } namespace PwC.Metering.Core.Domain.Concretes.Models { /// ///Represents a commission to consume services. /// [Api(Description="Represents a commission to consume services.")] public partial class Order : IHasName { /// ///The unique identifier of the order. /// [ApiMember(Description="The unique identifier of the order.", IsRequired=true)] public virtual int Id { get; set; } /// ///The unique identifier of the product, for which the order is made. /// [ApiMember(Description="The unique identifier of the product, for which the order is made.", IsRequired=true)] public virtual int ProductId { get; set; } /// ///The unique identifier of the user account, who placed the order. /// [ApiMember(Description="The unique identifier of the user account, who placed the order.", IsRequired=true)] public virtual int AccountId { get; set; } /// ///A name to identify the order. /// [ApiMember(Description="A name to identify the order.", IsRequired=true)] [Validate("NotEmpty")] public virtual string Name { get; set; } /// ///The name of the service, for which the order was made. /// [ApiMember(Description="The name of the service, for which the order was made.")] public virtual string ServiceName { get; set; } /// ///The time stamp at which the order was initiated. /// [ApiMember(Description="The time stamp at which the order was initiated.")] public virtual DateTime? RequestTimestamp { get; set; } /// ///The time stamp at which the order was completed. /// [ApiMember(Description="The time stamp at which the order was completed.")] public virtual DateTime? ResponseTimestamp { get; set; } /// ///The URI from which the order was initiated. /// [ApiMember(Description="The URI from which the order was initiated.")] public virtual string RequestUri { get; set; } /// ///The HTTP method of the order request. /// [ApiMember(Description="The HTTP method of the order request.")] public virtual string RequestHttpMethod { get; set; } /// ///The duration of the order request. /// [ApiMember(Description="The duration of the order request.")] public virtual TimeSpan? RequestDuration { get; set; } /// ///The HTTP status code of the order request. /// [ApiMember(Description="The HTTP status code of the order request.")] public virtual HttpStatusCode ResponseStatusCode { get; set; } /// ///The IP address of client, who placed the order. /// [ApiMember(Description="The IP address of client, who placed the order.")] public virtual string ClientIPAddress { get; set; } /// ///The unit of measurement for the order. /// [ApiMember(Description="The unit of measurement for the order.")] public virtual string UnitOfMeasurement { get; set; } /// ///The type of process, for which the order is charged. /// [ApiMember(Description="The type of process, for which the order is charged.")] public virtual string ProcessType { get; set; } /// ///The type of data, for which the order is charged. /// [ApiMember(Description="The type of data, for which the order is charged.")] public virtual string DataType { get; set; } /// ///The name of the data, for which the order is charged. /// [ApiMember(Description="The name of the data, for which the order is charged.")] public virtual string DataName { get; set; } /// ///The date of creation of the order. /// [ApiMember(Description="The date of creation of the order.")] public virtual DateTime CreationDate { get; set; } /// ///The final date to retain the order in the records. After this date, the order is expunged from the records. /// [ApiMember(Description="The final date to retain the order in the records. After this date, the order is expunged from the records.")] public virtual DateTime? ExpiryDate { get; set; } /// ///Indicates whether the order is simulated for test purposes. True if the order is simulated for test purposes; otherwise it is a false order for production purposes. /// [ApiMember(Description="Indicates whether the order is simulated for test purposes. True if the order is simulated for test purposes; otherwise it is a false order for production purposes.")] public virtual bool IsTest { get; set; } } } namespace PwC.Metering.Core.Services.Contracts.Requests { /// ///Represents a service request to revoke an existing order. /// [Route("/sync/orders/{Id}", "DELETE")] [Api(Description="Represents a service request to revoke an existing order.")] public partial class RevokeOrder : RevokeOrderBase, IReturn { /// ///The unique identifier of the order. /// [ApiMember(Description="The unique identifier of the order.")] public virtual int Id { get; set; } } /// ///Specifies a base service to revoke an existing order. /// [Api(Description="Specifies a base service to revoke an existing order.")] public partial class RevokeOrderBase : IDelete { /// ///The unique identifier of the order. /// [ApiMember(Description="The unique identifier of the order.")] public virtual int Id { get; set; } } } namespace PwC.Metering.Core.Services.Contracts.Responses { /// ///Represents a service response that encapsulates an order data. /// [Api(Description="Represents a service response that encapsulates an order data.")] public partial class OrderResponse : ServiceResponseBase { /// ///The order data of the response. /// [ApiMember(Description="The order data of the response.")] public virtual Order Order { get; set; } /// ///Data structure that holds error information from a service operation. /// [ApiMember(Description="Data structure that holds error information from a service operation.")] public virtual ResponseStatus ResponseStatus { get; set; } } /// ///Specifies a base service response class that contains a structured error information. /// [Api(Description="Specifies a base service response class that contains a structured error information.")] public partial class ServiceResponseBase { /// ///Data structure that holds error information from a service operation. /// [ApiMember(Description="Data structure that holds error information from a service operation.")] public virtual ResponseStatus ResponseStatus { get; set; } } }