/* Options:
Date: 2024-11-26 04:26:34
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: RetrieveAllCustomers.*
//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.Domain.Concretes.Models;
using PwC.Metering.Core.Services.Contracts.Requests;
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; }
}
///
/// 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.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 request to retrieve all customers.
///
[Route("/sync/customers", "GET")]
[Api(Description="Represents a service request to retrieve all customers.")]
public partial class RetrieveAllCustomers
: RetrieveAllCustomersBase, IReturn
{
///
///Should related accounts be included in the retrieved customers?
///
[ApiMember(Description="Should related accounts be included in the retrieved customers?")]
public virtual bool? IncludeAccounts { get; set; }
///
///Specifies the number of products to skip per customer. Applicable only when 'IncludeAccounts' is true.
///
[ApiMember(Description="Specifies the number of products to skip per customer. Applicable only when 'IncludeAccounts' is true. ")]
public virtual int? SkipAccounts { get; set; }
///
///Specifies the number of products to include per customer. Applicable only when 'IncludeAccounts' is true.
///
[ApiMember(Description="Specifies the number of products to include per customer. Applicable only when 'IncludeAccounts' is true. ")]
public virtual int? TakeAccounts { 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 customers.
///
[Api(Description="Specifies a service to search for customers.")]
public partial class RetrieveAllCustomersBase
: PaginationBase, IGet
{
///
///Should related accounts be included in the retrieved customers?
///
[ApiMember(Description="Should related accounts be included in the retrieved customers?")]
public virtual bool? IncludeAccounts { get; set; }
///
///Specifies the number of products to skip per customer. Applicable only when 'IncludeAccounts' is true.
///
[ApiMember(Description="Specifies the number of products to skip per customer. Applicable only when 'IncludeAccounts' is true. ")]
public virtual int? SkipAccounts { get; set; }
///
///Specifies the number of products to include per customer. Applicable only when 'IncludeAccounts' is true.
///
[ApiMember(Description="Specifies the number of products to include per customer. Applicable only when 'IncludeAccounts' is true. ")]
public virtual int? TakeAccounts { 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 CustomerQueryResponse
: QueryResponse
{
public CustomerQueryResponse()
{
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; }
}
}