' Options:
'Date: 2025-04-09 06:31:18
'Version: 6.110
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://reportfiling.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: BatchDeleteWebhookSubscriptions.*
'''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.Xml.Schema
Imports System.Net
Imports ServiceStack.Webhooks.ServiceModel.Types
Imports PwC.Elmaas.Core.Services.Contracts.Webhooks.Requests
Imports PwC.Elmaas.Core.Services.Contracts.Webhooks.Responses

Namespace Global

    Namespace PwC.Elmaas.Core.Services.Contracts.Webhooks.Requests

        '''<Summary>
        '''Represents a request to delete webhook subscriptions.
        '''</Summary>
        <Route("/sync/webhooks/subscriptions/delete", "POST")>
        <Api(Description:="Represents a request to delete webhook subscriptions.")>
        Public Partial Class BatchDeleteWebhookSubscriptions
            Inherits BatchDeleteWebhookSubscriptionsBase
            Implements IReturn(Of List(Of SubscriptionResponse))
        End Class

        '''<Summary>
        '''Specifies a request to delete webhook subscriptions.
        '''</Summary>
        <Api(Description:="Specifies a request to delete webhook subscriptions.")>
        Public Partial Class BatchDeleteWebhookSubscriptionsBase
            Implements IPost
            Public Sub New()
                Subscriptions = New List(Of WebhookSubscription)
            End Sub

            '''<Summary>
            '''The subscriptions to delete.
            '''</Summary>
            <ApiMember(Description:="The subscriptions to delete.", IsRequired:=true, Name:="Subscriptions")>
            Public Overridable Property Subscriptions As List(Of WebhookSubscription)
        End Class
    End Namespace

    Namespace PwC.Elmaas.Core.Services.Contracts.Webhooks.Responses

        '''<Summary>
        '''Represents a service response that encapsulates a webhook subscription.
        '''</Summary>
        <Api(Description:="Represents a service response that encapsulates a webhook subscription.")>
        Public Partial Class SubscriptionResponse
            Public Sub New()
                History = New List(Of SubscriptionDeliveryResult)
            End Sub

            '''<Summary>
            '''The encapsulated webhook subscription of the response. The secret of the webhook subscription is encrypted and can only be decrypted by the owner of the private key.
            '''</Summary>
            <ApiMember(Description:="The encapsulated webhook subscription of the response. The secret of the webhook subscription is encrypted and can only be decrypted by the owner of the private key.", Name:="Subscription")>
            Public Overridable Property Subscription As WebhookSubscription

            '''<Summary>
            '''The history of the subscription event.
            '''</Summary>
            <ApiMember(Description:="The history of the subscription event.", Name:="History")>
            Public Overridable Property History As List(Of SubscriptionDeliveryResult)

            '''<Summary>
            '''The status of the response.
            '''</Summary>
            <ApiMember(Description:="The status of the response.", Name:="ResponseStatus")>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace

    Namespace ServiceStack.Webhooks.ServiceModel.Types

        Public Partial Class SubscriptionConfig
            Public Overridable Property Url As String
            Public Overridable Property ContentType As String
            Public Overridable Property Secret As String
        End Class

        Public Partial Class SubscriptionDeliveryResult
            Public Overridable Property AttemptedDateUtc As Date
            Public Overridable Property StatusDescription As String
            Public Overridable Property StatusCode As HttpStatusCode
            Public Overridable Property SubscriptionId As String
            Public Overridable Property Id As String
            Public Overridable Property EventId As String
        End Class

        Public Partial Class WebhookSubscription
            Public Overridable Property Id As String
            Public Overridable Property Name As String
            Public Overridable Property Event As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property CreatedDateUtc As Date
            Public Overridable Property CreatedById As String
            Public Overridable Property LastModifiedDateUtc As Date
            Public Overridable Property Config As SubscriptionConfig
        End Class
    End Namespace
End Namespace