/* Options:
Date: 2024-12-27 04:45:01
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: SearchAccountsAsync.*
//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.Services.Contracts.Helpers;
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 '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; }
}
}
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; }
}
}
namespace PwC.Metering.Core.Services.Contracts.Requests
{
///
///Represents a service to search for accounts in an asynchronous operation.
///
[Route("/async/accounts/search", "GET")]
[Api(Description="Represents a service to search for accounts in an asynchronous operation.")]
public partial class SearchAccountsAsync
: SearchAccountsBase, IReturn
{
///
///The unique identifier of the user account.
///
[ApiMember(Description="The unique identifier of the user account.")]
public virtual int? AccountId { 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 int? CustomerId { get; set; }
///
///The user name of the user account.
///
[ApiMember(Description="The user name of the user account.")]
public virtual string UserName { get; set; }
///
///Search by using the user name that starts with the specified value.
///
[ApiMember(Description="Search by using the user name that starts with the specified value.")]
public virtual string UserNameStartsWith { get; set; }
///
///Search by using the user name that ends with the specified value.
///
[ApiMember(Description="Search by using the user name that ends with the specified value.")]
public virtual string UserNameEndsWith { get; set; }
///
///Search by using the user name that contains the specified value.
///
[ApiMember(Description="Search by using the user name that contains the specified value.")]
public virtual string UserNameContains { get; set; }
///
///The display name of the user account.
///
[ApiMember(Description="The display 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.")]
public virtual string Email { get; set; }
///
///Search by using the e-mail address of the user account that starts with the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that starts with the specified value.")]
public virtual string EmailStartsWith { get; set; }
///
///Search by using the e-mail address of the user account that ends with the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that ends with the specified value.")]
public virtual string EmailEndsWith { get; set; }
///
///Search by using the e-mail address of the user account that contains the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that contains the specified value.")]
public virtual string EmailContains { get; set; }
///
///Search by using the display name that starts with the specified value.
///
[ApiMember(Description="Search by using the display name that starts with the specified value.")]
public virtual string DisplayNameStartsWith { get; set; }
///
///Search by using the display name that ends with the specified value.
///
[ApiMember(Description="Search by using the display name that ends with the specified value.")]
public virtual string DisplayNameEndsWith { get; set; }
///
///Search by using the display name that contains the specified value.
///
[ApiMember(Description="Search by using the display name that contains the specified value.")]
public virtual string DisplayNameContains { get; set; }
///
///Search with the profile URL of the user account.
///
[ApiMember(Description="Search with the profile URL of the user account.")]
public virtual string ProfileUrl { get; set; }
///
///Should the related products of the account be included in the retrieved accounts?
///
[ApiMember(Description="Should the related products of the account be included in the retrieved accounts?")]
public virtual bool IncludeProducts { get; set; }
///
///Should the related orders of the account be included in the retrieved accounts?
///
[ApiMember(Description="Should the related orders of the account be included in the retrieved accounts?")]
public virtual bool IncludeOrders { get; set; }
///
///Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true.
///
[ApiMember(Description="Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true. ")]
public virtual int? SkipProducts { get; set; }
///
///Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true.
///
[ApiMember(Description="Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true. ")]
public virtual int? TakeProducts { get; set; }
///
///Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true.
///
[ApiMember(Description="Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true. ")]
public virtual int? SkipOrders { get; set; }
///
///Specifies the number of orders to include per account. Applicable only when 'IncludeOrders' is true.
///
[ApiMember(Description="Specifies the number of orders to include per account. Applicable only when 'IncludeOrders' is true. ")]
public virtual int? TakeOrders { 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 to search for accounts.
///
[Api(Description="Specifies a service to search for accounts.")]
public partial class SearchAccountsBase
: PaginationBase, IGet
{
///
///The unique identifier of the user account.
///
[ApiMember(Description="The unique identifier of the user account.")]
public virtual int? AccountId { 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 int? CustomerId { get; set; }
///
///The user name of the user account.
///
[ApiMember(Description="The user name of the user account.")]
public virtual string UserName { get; set; }
///
///Search by using the user name that starts with the specified value.
///
[ApiMember(Description="Search by using the user name that starts with the specified value.")]
public virtual string UserNameStartsWith { get; set; }
///
///Search by using the user name that ends with the specified value.
///
[ApiMember(Description="Search by using the user name that ends with the specified value.")]
public virtual string UserNameEndsWith { get; set; }
///
///Search by using the user name that contains the specified value.
///
[ApiMember(Description="Search by using the user name that contains the specified value.")]
public virtual string UserNameContains { get; set; }
///
///The display name of the user account.
///
[ApiMember(Description="The display 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.")]
public virtual string Email { get; set; }
///
///Search by using the e-mail address of the user account that starts with the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that starts with the specified value.")]
public virtual string EmailStartsWith { get; set; }
///
///Search by using the e-mail address of the user account that ends with the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that ends with the specified value.")]
public virtual string EmailEndsWith { get; set; }
///
///Search by using the e-mail address of the user account that contains the specified value.
///
[ApiMember(Description="Search by using the e-mail address of the user account that contains the specified value.")]
public virtual string EmailContains { get; set; }
///
///Search by using the display name that starts with the specified value.
///
[ApiMember(Description="Search by using the display name that starts with the specified value.")]
public virtual string DisplayNameStartsWith { get; set; }
///
///Search by using the display name that ends with the specified value.
///
[ApiMember(Description="Search by using the display name that ends with the specified value.")]
public virtual string DisplayNameEndsWith { get; set; }
///
///Search by using the display name that contains the specified value.
///
[ApiMember(Description="Search by using the display name that contains the specified value.")]
public virtual string DisplayNameContains { get; set; }
///
///Search with the profile URL of the user account.
///
[ApiMember(Description="Search with the profile URL of the user account.")]
public virtual string ProfileUrl { get; set; }
///
///Should the related products of the account be included in the retrieved accounts?
///
[ApiMember(Description="Should the related products of the account be included in the retrieved accounts?")]
public virtual bool IncludeProducts { get; set; }
///
///Should the related orders of the account be included in the retrieved accounts?
///
[ApiMember(Description="Should the related orders of the account be included in the retrieved accounts?")]
public virtual bool IncludeOrders { get; set; }
///
///Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true.
///
[ApiMember(Description="Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true. ")]
public virtual int? SkipProducts { get; set; }
///
///Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true.
///
[ApiMember(Description="Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true. ")]
public virtual int? TakeProducts { get; set; }
///
///Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true.
///
[ApiMember(Description="Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true. ")]
public virtual int? SkipOrders { get; set; }
///
///Specifies the number of orders to include per account. Applicable only when 'IncludeOrders' is true.
///
[ApiMember(Description="Specifies the number of orders to include per account. Applicable only when 'IncludeOrders' is true. ")]
public virtual int? TakeOrders { 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 user accounts.
///
[Api(Description="Represents a query response that contains a structured error information and encapsulates user accounts.")]
public partial class AccountQueryResponse
: QueryResponse
{
public AccountQueryResponse()
{
ProductsMap = new Dictionary>{};
OrdersMap = new Dictionary>{};
Results = new List{};
Meta = new Dictionary{};
}
///
///The dictionary of products associated to found user accounts.
///
[ApiMember(Description="The dictionary of products associated to found user accounts.")]
public virtual Dictionary> ProductsMap { get; set; }
///
///The dictionary of orders associated with each found user account.
///
[ApiMember(Description="The dictionary of orders associated with each found user account.")]
public virtual Dictionary> OrdersMap { get; set; }
[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; }
}
}