/* Options:
Date: 2024-12-27 19:35:54
Version: 8.12
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://taxfiling.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: AdminSearchOrdersAsync.*
//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.Helpers;
using PwC.Metering.Core.Services.Contracts.Requests;
using PwC.Metering.Core.Domain.Concretes.Models;
using PwC.Metering.Core.Domain.Concretes.Interfaces;
using PwC.Metering.Core.Services.Contracts.Responses;
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.Helpers
{
public partial interface IPaginate
{
int? Skip { get; set; }
int? Take { get; set; }
}
///
///The number of query results to skip.
///
[Api(Description="The number of query results to skip.")]
public partial class PaginationBase
: IPaginate
{
///
///The number of query results to skip.
///
[ApiMember(Description="The number of query results to skip.")]
public virtual int? Skip { get; set; }
///
///The number of query results to include.
///
[ApiMember(Description="The number of query results to include.")]
public virtual int? Take { get; set; }
}
///
///Represents a specific time interval, within which, an action was carried out.
///
public enum PeriodMode
{
Today,
Yesterday,
LastWeek,
Last30Days,
Last90Days,
Last180Days,
}
}
namespace PwC.Metering.Core.Services.Contracts.Requests
{
///
///Represents a service request from an admin user to search for orders in an asynchronous operation.
///
[Route("/async/admin/orders/search", "GET")]
[Api(Description="Represents a service request from an admin user to search for orders in an asynchronous operation.")]
public partial class AdminSearchOrdersAsync
: AdminSearchOrdersBase, IReturn
{
///
///The user name of the account.
///
[ApiMember(Description="The user name of the account.")]
public virtual string UserName { get; set; }
///
///The unique identifier of the order.
///
[ApiMember(Description="The unique identifier of the order.")]
public virtual int? OrderId { 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.")]
public virtual int? ProductId { get; set; }
///
///The unique identifier of the user account, who made the order.
///
[ApiMember(Description="The unique identifier of the user account, who made the order.")]
public virtual int? AccountId { get; set; }
///
///The name of the order.
///
[ApiMember(Description="The name of the order.")]
public virtual string Name { get; set; }
///
///Search by using the name of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the name of the order that starts with the specified value.")]
public virtual string NameStartsWith { get; set; }
///
///Search by using the name of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the name of the order that ends with the specified value.")]
public virtual string NameEndsWith { get; set; }
///
///Search by using the name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the name of the order that contains the specified value.")]
public virtual string NameContains { get; set; }
///
///Search by using the name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the name of the order that contains the specified value.")]
public virtual string ServiceName { get; set; }
///
///Search by using the service name of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the service name of the order that starts with the specified value.")]
public virtual string ServiceNameStartsWith { get; set; }
///
///Search by using the service name of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the service name of the order that ends with the specified value.")]
public virtual string ServiceNameEndsWith { get; set; }
///
///Search by using the service name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the service name of the order that contains the specified value.")]
public virtual string ServiceNameContains { get; set; }
///
///Search for orders placed before a certain date and time. The specified date is included in the search.
///
[ApiMember(Description="Search for orders placed before a certain date and time. The specified date is included in the search.")]
public virtual DateTime? Before { get; set; }
///
///Search for orders placed after a certain date and time. The specified date is included in the search.
///
[ApiMember(Description="Search for orders placed after a certain date and time. The specified date is included in the search.")]
public virtual DateTime? After { get; set; }
///
///Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.
///
[ApiMember(Description="Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.")]
public virtual DateTime? PeriodStartDate { get; set; }
///
///Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.
///
[ApiMember(Description="Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.")]
public virtual DateTime? PeriodEndDate { get; set; }
///
///Search for orders placed within the last 180 days. Today is included in the search.
///
[ApiMember(Description="Search for orders placed within the last 180 days. Today is included in the search.")]
public virtual PeriodMode? PeriodMode { 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; }
///
///Was the order request successful?
///
[ApiMember(Description="Was the order request successful?")]
public virtual bool? OrderRequestSucceeded { get; set; }
///
///The initial IP address of client, who made the order.
///
[ApiMember(Description="The initial IP address of client, who made 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; }
///
///Search by using the unit of measurement of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that starts with the specified value.")]
public virtual string UnitOfMeasurementStartsWith { get; set; }
///
///Search by using the unit of measurement of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that ends with the specified value.")]
public virtual string UnitOfMeasurementEndsWith { get; set; }
///
///Search by using the unit of measurement of the order that contains the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that contains the specified value.")]
public virtual string UnitOfMeasurementContains { 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; }
///
///Search by using the process type of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the process type of the order that starts with the specified value.")]
public virtual string ProcessTypeStartsWith { get; set; }
///
///Search by using the process type of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the process type of the order that ends with the specified value.")]
public virtual string ProcessTypeEndsWith { get; set; }
///
///Search by using the process type of the order that contains the specified value.
///
[ApiMember(Description="Search by using the process type of the order that contains the specified value.")]
public virtual string ProcessTypeContains { 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; }
///
///Search by using the type of data, for which the order is charged that starts with the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that starts with the specified value.")]
public virtual string DataTypeStartsWith { get; set; }
///
///Search by using the type of data, for which the order is charged that ends with the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that ends with the specified value.")]
public virtual string DataTypeEndsWith { get; set; }
///
///Search by using the type of data, for which the order is charged that contains the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that contains the specified value.")]
public virtual string DataTypeContains { 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; }
///
///Search by using the name of data, for which the order is charged that starts with the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that starts with the specified value.")]
public virtual string DataNameStartsWith { get; set; }
///
///Search by using the name of data, for which the order is charged that ends with the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that ends with the specified value.")]
public virtual string DataNameEndsWith { get; set; }
///
///Search by using the name of data, for which the order is charged that contains the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that contains the specified value.")]
public virtual string DataNameContains { get; set; }
///
///The number of query results to skip.
///
[ApiMember(Description="The number of query results to skip.")]
public virtual int? Skip { get; set; }
///
///The number of query results to include.
///
[ApiMember(Description="The number of query results to include.")]
public virtual int? Take { get; set; }
}
///
///Specifies a service request from an admin user to search for orders.
///
[Api(Description="Specifies a service request from an admin user to search for orders.")]
public partial class AdminSearchOrdersBase
: PaginationBase, IGet
{
///
///The user name of the account.
///
[ApiMember(Description="The user name of the account.")]
public virtual string UserName { get; set; }
///
///The unique identifier of the order.
///
[ApiMember(Description="The unique identifier of the order.")]
public virtual int? OrderId { 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.")]
public virtual int? ProductId { get; set; }
///
///The unique identifier of the user account, who made the order.
///
[ApiMember(Description="The unique identifier of the user account, who made the order.")]
public virtual int? AccountId { get; set; }
///
///The name of the order.
///
[ApiMember(Description="The name of the order.")]
public virtual string Name { get; set; }
///
///Search by using the name of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the name of the order that starts with the specified value.")]
public virtual string NameStartsWith { get; set; }
///
///Search by using the name of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the name of the order that ends with the specified value.")]
public virtual string NameEndsWith { get; set; }
///
///Search by using the name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the name of the order that contains the specified value.")]
public virtual string NameContains { get; set; }
///
///Search by using the name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the name of the order that contains the specified value.")]
public virtual string ServiceName { get; set; }
///
///Search by using the service name of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the service name of the order that starts with the specified value.")]
public virtual string ServiceNameStartsWith { get; set; }
///
///Search by using the service name of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the service name of the order that ends with the specified value.")]
public virtual string ServiceNameEndsWith { get; set; }
///
///Search by using the service name of the order that contains the specified value.
///
[ApiMember(Description="Search by using the service name of the order that contains the specified value.")]
public virtual string ServiceNameContains { get; set; }
///
///Search for orders placed before a certain date and time. The specified date is included in the search.
///
[ApiMember(Description="Search for orders placed before a certain date and time. The specified date is included in the search.")]
public virtual DateTime? Before { get; set; }
///
///Search for orders placed after a certain date and time. The specified date is included in the search.
///
[ApiMember(Description="Search for orders placed after a certain date and time. The specified date is included in the search.")]
public virtual DateTime? After { get; set; }
///
///Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.
///
[ApiMember(Description="Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.")]
public virtual DateTime? PeriodStartDate { get; set; }
///
///Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.
///
[ApiMember(Description="Search for orders placed within a date and time period. The specified date is the start of the period and it is included in the search.")]
public virtual DateTime? PeriodEndDate { get; set; }
///
///Search for orders placed within the last 180 days. Today is included in the search.
///
[ApiMember(Description="Search for orders placed within the last 180 days. Today is included in the search.")]
public virtual PeriodMode? PeriodMode { 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; }
///
///Was the order request successful?
///
[ApiMember(Description="Was the order request successful?")]
public virtual bool? OrderRequestSucceeded { get; set; }
///
///The initial IP address of client, who made the order.
///
[ApiMember(Description="The initial IP address of client, who made 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; }
///
///Search by using the unit of measurement of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that starts with the specified value.")]
public virtual string UnitOfMeasurementStartsWith { get; set; }
///
///Search by using the unit of measurement of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that ends with the specified value.")]
public virtual string UnitOfMeasurementEndsWith { get; set; }
///
///Search by using the unit of measurement of the order that contains the specified value.
///
[ApiMember(Description="Search by using the unit of measurement of the order that contains the specified value.")]
public virtual string UnitOfMeasurementContains { 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; }
///
///Search by using the process type of the order that starts with the specified value.
///
[ApiMember(Description="Search by using the process type of the order that starts with the specified value.")]
public virtual string ProcessTypeStartsWith { get; set; }
///
///Search by using the process type of the order that ends with the specified value.
///
[ApiMember(Description="Search by using the process type of the order that ends with the specified value.")]
public virtual string ProcessTypeEndsWith { get; set; }
///
///Search by using the process type of the order that contains the specified value.
///
[ApiMember(Description="Search by using the process type of the order that contains the specified value.")]
public virtual string ProcessTypeContains { 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; }
///
///Search by using the type of data, for which the order is charged that starts with the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that starts with the specified value.")]
public virtual string DataTypeStartsWith { get; set; }
///
///Search by using the type of data, for which the order is charged that ends with the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that ends with the specified value.")]
public virtual string DataTypeEndsWith { get; set; }
///
///Search by using the type of data, for which the order is charged that contains the specified value.
///
[ApiMember(Description="Search by using the type of data, for which the order is charged that contains the specified value.")]
public virtual string DataTypeContains { 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; }
///
///Search by using the name of data, for which the order is charged that starts with the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that starts with the specified value.")]
public virtual string DataNameStartsWith { get; set; }
///
///Search by using the name of data, for which the order is charged that ends with the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that ends with the specified value.")]
public virtual string DataNameEndsWith { get; set; }
///
///Search by using the name of data, for which the order is charged that contains the specified value.
///
[ApiMember(Description="Search by using the name of data, for which the order is charged that contains the specified value.")]
public virtual string DataNameContains { get; set; }
///
///The number of query results to skip.
///
[ApiMember(Description="The number of query results to skip.")]
public virtual int? Skip { get; set; }
///
///The number of query results to include.
///
[ApiMember(Description="The number of query results to include.")]
public virtual int? Take { get; set; }
}
}
namespace PwC.Metering.Core.Services.Contracts.Responses
{
///
///Represents a query response that contains a structured error information and encapsulates customers.
///
[Api(Description="Represents a query response that contains a structured error information and encapsulates customers.")]
public partial class OrderQueryResponse
: QueryResponse
{
public OrderQueryResponse()
{
Results = new List{};
Meta = new Dictionary{};
}
[DataMember(Order=1)]
public virtual int Offset { get; set; }
[DataMember(Order=2)]
public virtual int Total { get; set; }
[DataMember(Order=3)]
public virtual List Results { get; set; }
[DataMember(Order=4)]
public virtual Dictionary Meta { get; set; }
[DataMember(Order=5)]
public virtual ResponseStatus ResponseStatus { get; set; }
}
}