/* Options:
Date: 2024-12-22 12:22:23
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: DeleteCustomer.*
//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.Domain.Concretes.Models;
using PwC.Metering.Core.Services.Contracts.Requests;
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 customer (business organization or entrepreneur).
///
[Api(Description="Represents a customer (business organization or entrepreneur).")]
public partial class Customer
: IHasName
{
public Customer()
{
Accounts = new List{};
}
///
///The unique identifier of the customer.
///
[ApiMember(Description="The unique identifier of the customer.", IsRequired=true)]
public virtual int Id { get; set; }
///
///The position of this instance in a collection of 'Customer' instances
///
[ApiMember(Description="The position of this instance in a collection of 'Customer' instances", IsRequired=true)]
public virtual int Index { get; set; }
///
///Full name or organization name of customer.
///
[ApiMember(Description="Full name or organization name of customer.", IsRequired=true)]
[Validate("NotEmpty")]
public virtual string Name { get; set; }
///
///The country of residence or business of customer.
///
[ApiMember(Description="The country of residence or business of customer.")]
public virtual string Country { get; set; }
///
///The type of customer.
///
[ApiMember(Description="The type of customer.")]
public virtual CustomerType Type { get; set; }
///
///The list of user accounts associated with this customer.
///
[ApiMember(Description="The list of user accounts associated with this customer.")]
[Ignore]
public virtual List Accounts { get; set; }
}
public enum CustomerType
{
Internal,
Network,
External,
}
}
namespace PwC.Metering.Core.Services.Contracts.Requests
{
///
///Represents a service request to delete customer data.
///
[Route("/sync/customers/{Id}", "DELETE")]
[Api(Description="Represents a service request to delete customer data.")]
public partial class DeleteCustomer
: DeleteCustomerBase, IReturn
{
///
///The unique identifier of the customer to delete.
///
[ApiMember(Description="The unique identifier of the customer to delete.")]
public virtual int Id { get; set; }
}
///
///Specifies a service request to delete customer data.
///
[Api(Description="Specifies a service request to delete customer data.")]
public partial class DeleteCustomerBase
: IDelete
{
///
///The unique identifier of the customer to delete.
///
[ApiMember(Description="The unique identifier of the customer to delete.")]
public virtual int Id { get; set; }
}
}
namespace PwC.Metering.Core.Services.Contracts.Responses
{
///
///Represents a response from a service operation that encapsulates customer data.
///
[Api(Description="Represents a response from a service operation that encapsulates customer data.")]
public partial class CustomerResponse
: ServiceResponseBase
{
///
///The customer data of the response.
///
[ApiMember(Description="The customer data of the response.")]
public virtual Customer Customer { 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; }
///
///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; }
}
}