' Options: 'Date: 2024-12-22 10:30:08 'Version: 8.12 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://taxfiling.pwc.de ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: True '''ExportValueTypes: False 'IncludeTypes: RetrieveAllProducts.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Net Imports PwC.Metering.Core.Services.Contracts.Helpers Imports PwC.Metering.Core.Services.Contracts.Requests Imports PwC.Metering.Core.Domain.Concretes.Models Imports PwC.Metering.Core.Domain.Concretes.Interfaces Imports PwC.Metering.Core.Services.Contracts.Responses Namespace Global Namespace PwC.Metering.Core.Domain.Concretes.Interfaces ''' ''' Specifies that a data type should have a 'Name' property. ''' Public Interface IHasName ''' '''The 'Name' property. ''' Property Name As String End Interface End Namespace Namespace PwC.Metering.Core.Domain.Concretes.Models ''' '''Represents a product. ''' Public Partial Class Product Implements IHasName Public Sub New() Tags = New List(Of String) End Sub ''' '''The unique identifier of the product. ''' Public Overridable Property Id As Integer ''' '''The position of this instance in a collection of 'Product' instances ''' Public Overridable Property Index As Integer ''' '''The name of the product. ''' Public Overridable Property Name As String ''' '''The version of the product. ''' Public Overridable Property Version As String ''' '''The version of the product. ''' Public Overridable Property Description As String ''' '''Tags associated with the product. ''' Public Overridable Property Tags As List(Of String) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Helpers Public Interface IPaginate Property Skip As Nullable(Of Integer) Property Take As Nullable(Of Integer) End Interface ''' '''The number of query results to skip. ''' Public Partial Class PaginationBase Implements IPaginate ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Requests ''' '''Represents a service request to retrieve all products. ''' Public Partial Class RetrieveAllProducts Inherits RetrieveAllProductsBase Implements IReturn(Of ProductQueryResponse) ''' '''Should the related orders of the account be included in the retrieved products? ''' Public Overridable Property IncludeOrders As Nullable(Of Boolean) ''' '''Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property SkipOrders As Nullable(Of Integer) ''' '''Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property TakeOrders As Nullable(Of Integer) ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class ''' '''Specifies a service to retrieve all products. ''' Public Partial Class RetrieveAllProductsBase Inherits PaginationBase Implements IGet ''' '''Should the related orders of the account be included in the retrieved products? ''' Public Overridable Property IncludeOrders As Nullable(Of Boolean) ''' '''Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property SkipOrders As Nullable(Of Integer) ''' '''Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property TakeOrders As Nullable(Of Integer) ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Responses ''' '''Represents a query response that contains a structured error information and encapsulates products. ''' Public Partial Class ProductQueryResponse Inherits QueryResponse(Of Product) Public Sub New() OrdersMap = New Dictionary(Of Integer, List(Of Order)) Results = New List(Of Product) Meta = New Dictionary(Of String, String) End Sub ''' '''The dictionary of orders associated with each found product. ''' Public Overridable Property OrdersMap As Dictionary(Of Integer, List(Of Order)) Public Overridable Property Offset As Integer Public Overridable Property Total As Integer Public Overridable Property Results As List(Of Product) Public Overridable Property Meta As Dictionary(Of String, String) Public Overridable Property ResponseStatus As ResponseStatus End Class End Namespace End Namespace