/* Options:
Date: 2024-12-22 02:55:50
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: UpdateAccountAsync.*
//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; }
}
///
/// Specifies that a data type should have a 'UserName' property.
///
public partial interface IHasUserName
{
string UserName { get; set; }
}
}
namespace PwC.Metering.Core.Domain.Concretes.Models
{
///
///Represents a user account.
///
[Api(Description="Represents a user account.")]
public partial class Account
: IHasUserName
{
public Account()
{
Roles = new List{};
Permissions = new List{};
Meta = new Dictionary{};
}
///
///The unique identifier of the user account.
///
[ApiMember(Description="The unique identifier of the user account.", IsRequired=true)]
public virtual int Id { get; set; }
///
///The position of this instance in a collection of 'Account' instances
///
[ApiMember(Description="The position of this instance in a collection of 'Account' instances", IsRequired=true)]
public virtual int Index { get; set; }
///
///The unique identifier of the customer associated with this account.
///
[ApiMember(Description="The unique identifier of the customer associated with this account.", IsRequired=true)]
public virtual int? RefId { get; set; }
///
///The string representation of the unique identifier of a reference that associates with this user account. This should have the same value as 'RefId'.
///
[ApiMember(Description="The string representation of the unique identifier of a reference that associates with this user account. This should have the same value as 'RefId'.")]
public virtual string RefIdStr { get; set; }
///
///The unique user name of the user account.
///
[ApiMember(Description="The unique user name of the user account.", IsRequired=true)]
public virtual string UserName { get; set; }
///
///The electronic mail address of the user account.
///
[ApiMember(Description="The electronic mail address of the user account.")]
public virtual string Email { get; set; }
///
///The friendly name of the user account.
///
[ApiMember(Description="The friendly name of the user account.")]
public virtual string DisplayName { get; set; }
///
///The first name of the owner (natural person) of the user account.
///
[ApiMember(Description="The first name of the owner (natural person) of the user account.")]
public virtual string FirstName { get; set; }
///
///The last name of the owner (natural person) of the user account.
///
[ApiMember(Description="The last name of the owner (natural person) of the user account.")]
public virtual string LastName { get; set; }
///
///The unique identifier of the customer associated with this account.
///
[ApiMember(Description="The unique identifier of the customer associated with this account.")]
public virtual string FullName { get; set; }
///
///The gender of the owner (natural person) of the user account.
///
[ApiMember(Description="The gender of the owner (natural person) of the user account.")]
public virtual string Gender { get; set; }
///
///The language of the owner of teh user account.
///
[ApiMember(Description="The language of the owner of teh user account.")]
public virtual string Language { get; set; }
///
///The company, where the user is an employee.
///
[ApiMember(Description="The company, where the user is an employee.")]
public virtual string Company { get; set; }
///
///The profile URL of the user account.
///
[ApiMember(Description="The profile URL of the user account.", IsRequired=true)]
public virtual string ProfileUrl { get; set; }
///
///The roles assigned to the user account.
///
[ApiMember(Description="The roles assigned to the user account.")]
public virtual List Roles { get; set; }
///
///The permissions assigned to the user account.
///
[ApiMember(Description="The permissions assigned to the user account.")]
public virtual List Permissions { get; set; }
///
///The primary e-mail address of the user.
///
[ApiMember(Description="The primary e-mail address of the user.")]
public virtual string PrimaryEmail { get; set; }
///
///Random data to enhance the security of the user password.
///
[ApiMember(Description="Random data to enhance the security of the user password.")]
public virtual string Salt { get; set; }
///
///The hash value of the user password that the PBKDF2 algorithm produces.
///
[ApiMember(Description="The hash value of the user password that the PBKDF2 algorithm produces.")]
public virtual string PasswordHash { get; set; }
///
///The hash value of the user password that the DigestHa1 algorithm produces.
///
[ApiMember(Description="The hash value of the user password that the DigestHa1 algorithm produces.")]
public virtual string DigestHa1Hash { get; set; }
///
///The number of times the user account tried to sign in but failed.
///
[ApiMember(Description="The number of times the user account tried to sign in but failed.")]
public virtual int InvalidLoginAttempts { get; set; }
///
///The last time the user account attempted a sign in.
///
[ApiMember(Description="The last time the user account attempted a sign in.")]
public virtual DateTime? LastLoginAttempt { get; set; }
///
///The date and time when the user acount was denied access.
///
[ApiMember(Description="The date and time when the user acount was denied access.")]
public virtual DateTime? LockedDate { get; set; }
///
///The date and time when the user account was created.
///
[ApiMember(Description="The date and time when the user account was created.")]
public virtual DateTime CreatedDate { get; set; }
///
///The date and time when the user account was last modified.
///
[ApiMember(Description="The date and time when the user account was last modified.")]
public virtual DateTime ModifiedDate { get; set; }
///
///The telephone number of the owner of the user account.
///
[ApiMember(Description="The telephone number of the owner of the user account.")]
public virtual string PhoneNumber { get; set; }
///
///The birth date of the owner of the user account
///
[ApiMember(Description="The birth date of the owner of the user account")]
public virtual DateTime? BirthDate { get; set; }
///
///The string representation of the birth date of the user account.
///
[ApiMember(Description="The string representation of the birth date of the user account.")]
public virtual string BirthDateRaw { get; set; }
///
///The mail address of the user account.
///
[ApiMember(Description="The mail address of the user account.")]
public virtual string Address { get; set; }
///
///Additional information for the specified 'Address' of the user.
///
[ApiMember(Description="Additional information for the specified 'Address' of the user.")]
public virtual string Address2 { get; set; }
///
///The city of the owner of the user account.
///
[ApiMember(Description="The city of the owner of the user account.")]
public virtual string City { get; set; }
///
///The state of the owner of the user account.
///
[ApiMember(Description="The state of the owner of the user account.")]
public virtual string State { get; set; }
///
///The country of the owner of the user account. It is recommended to use the name of the associated 'Customer'.
///
[ApiMember(Description="The country of the owner of the user account. It is recommended to use the name of the associated 'Customer'.")]
public virtual string Country { get; set; }
///
///The locale of the user account.
///
[ApiMember(Description="The locale of the user account.")]
public virtual string Culture { get; set; }
///
///The mail address of the user account.
///
[ApiMember(Description="The mail address of the user account.")]
public virtual string MailAddress { get; set; }
///
///The nickname of the user of the user account.
///
[ApiMember(Description="The nickname of the user of the user account.")]
public virtual string Nickname { get; set; }
///
///The postal code of the user account.
///
[ApiMember(Description="The postal code of the user account.")]
public virtual string PostalCode { get; set; }
///
///The time zone of the user of the user account.
///
[ApiMember(Description="The time zone of the user of the user account.")]
public virtual string TimeZone { get; set; }
///
///Additional information to attach to the user account.
///
[ApiMember(Description="Additional information to attach to the user account.")]
public virtual Dictionary Meta { get; set; }
}
///
///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; }
}
///
///Represents a product.
///
[Api(Description="Represents a product.")]
public partial class Product
: IHasName
{
public Product()
{
Tags = new List{};
}
///
///The unique identifier of the product.
///
[ApiMember(Description="The unique identifier of the product.", IsRequired=true)]
public virtual int Id { get; set; }
///
///The position of this instance in a collection of 'Product' instances
///
[ApiMember(Description="The position of this instance in a collection of 'Product' instances", IsRequired=true)]
public virtual int Index { get; set; }
///
///The name of the product.
///
[ApiMember(Description="The name of the product.", IsRequired=true)]
[Validate("NotEmpty")]
public virtual string Name { get; set; }
///
///The version of the product.
///
[ApiMember(Description="The version of the product.", IsRequired=true)]
[Validate("NotEmpty")]
public virtual string Version { get; set; }
///
///The version of the product.
///
[ApiMember(Description="The version of the product.")]
public virtual string Description { get; set; }
///
///Tags associated with the product.
///
[ApiMember(Description="Tags associated with the product.")]
public virtual List Tags { get; set; }
}
}
namespace PwC.Metering.Core.Services.Contracts.Requests
{
///
///Represents a service request to update account data in an asynchronous operation.
///
[Route("/async/accounts/update", "PUT")]
[Api(Description="Represents a service request to update account data in an asynchronous operation.")]
public partial class UpdateAccountAsync
: UpdateAccountBase, IReturn
{
public UpdateAccountAsync()
{
Meta = new Dictionary{};
}
///
///The user name of the user account.
///
[ApiMember(Description="The user name of the user account.")]
public virtual string UserName { get; set; }
///
///The friendly name of the user account.
///
[ApiMember(Description="The friendly name of the user account.")]
public virtual string DisplayName { get; set; }
///
///The e-mail address of the user account.
///
[ApiMember(Description="The e-mail address of the user account.")]
[Validate("Email")]
public virtual string Email { get; set; }
///
///The profile URL of the user account.
///
[ApiMember(Description="The profile URL of the user account.")]
public virtual string ProfileUrl { get; set; }
///
///Extra information for the user account.
///
[ApiMember(Description="Extra information for the user account.")]
public virtual Dictionary Meta { get; set; }
}
///
///Specifies a service request to update account data.
///
[Api(Description="Specifies a service request to update account data.")]
public partial class UpdateAccountBase
: IPut
{
public UpdateAccountBase()
{
Meta = new Dictionary{};
}
///
///The user name of the user account.
///
[ApiMember(Description="The user name of the user account.")]
public virtual string UserName { get; set; }
///
///The friendly name of the user account.
///
[ApiMember(Description="The friendly name of the user account.")]
public virtual string DisplayName { get; set; }
///
///The e-mail address of the user account.
///
[ApiMember(Description="The e-mail address of the user account.")]
[Validate("Email")]
public virtual string Email { get; set; }
///
///The profile URL of the user account.
///
[ApiMember(Description="The profile URL of the user account.")]
public virtual string ProfileUrl { get; set; }
///
///Extra information for the user account.
///
[ApiMember(Description="Extra information for the user account.")]
public virtual Dictionary Meta { get; set; }
}
}
namespace PwC.Metering.Core.Services.Contracts.Responses
{
///
///Represents a service response that contains a structured error information and encapsulates a user account.
///
[Api(Description="Represents a service response that contains a structured error information and encapsulates a user account.")]
public partial class AccountResponse
: ServiceResponseBase
{
public AccountResponse()
{
Products = new List{};
Orders = new List{};
}
///
///The user account encapsulated in the response.
///
[ApiMember(Description="The user account encapsulated in the response.")]
public virtual Account Account { get; set; }
///
///The index position of the reponse in a collection, if it were returned together with other responses.
///
[ApiMember(Description="The index position of the reponse in a collection, if it were returned together with other responses.")]
public virtual long Index { get; set; }
///
///The list of products associated with the encapsulated user account.
///
[ApiMember(Description="The list of products associated with the encapsulated user account.")]
public virtual List Products { get; set; }
///
///The list of orders associated with the encapsulated user account.
///
[ApiMember(Description="The list of orders associated with the encapsulated user account.")]
public virtual List Orders { 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; }
}
}