'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.269
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.269.
'
Namespace WSRedemptionServiceHistory
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="RedemotionHistoryServiceSoap", [Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx"),  _
     System.Xml.Serialization.XmlIncludeAttribute(GetType(BusinessEntityBaseOfKMADetail))>  _
    Partial Public Class RedemotionHistoryService
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private GetCouponRemptionHistoryOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = Global.CouponProvider.My.MySettings.Default.CouponProvider_WSRedemptionServiceHistory_RedemotionHistoryService
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Shadows Property Url() As String
            Get
                Return MyBase.Url
            End Get
            Set
                If (((Me.IsLocalFileSystemWebService(MyBase.Url) = true)  _
                            AndAlso (Me.useDefaultCredentialsSetExplicitly = false))  _
                            AndAlso (Me.IsLocalFileSystemWebService(value) = false)) Then
                    MyBase.UseDefaultCredentials = false
                End If
                MyBase.Url = value
            End Set
        End Property
        
        Public Shadows Property UseDefaultCredentials() As Boolean
            Get
                Return MyBase.UseDefaultCredentials
            End Get
            Set
                MyBase.UseDefaultCredentials = value
                Me.useDefaultCredentialsSetExplicitly = true
            End Set
        End Property
        
        '''<remarks/>
        Public Event GetCouponRemptionHistoryCompleted As GetCouponRemptionHistoryCompletedEventHandler
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx/GetCoupo"& _ 
            "nRemptionHistory", RequestNamespace:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx", ResponseNamespace:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
        Public Function GetCouponRemptionHistory(ByVal couponRedemptionHistoryRequest As CouponRedemptionHistoryRequest) As CouponRedemptionHistoryResponse
            Dim results() As Object = Me.Invoke("GetCouponRemptionHistory", New Object() {couponRedemptionHistoryRequest})
            Return CType(results(0),CouponRedemptionHistoryResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub GetCouponRemptionHistoryAsync(ByVal couponRedemptionHistoryRequest As CouponRedemptionHistoryRequest)
            Me.GetCouponRemptionHistoryAsync(couponRedemptionHistoryRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub GetCouponRemptionHistoryAsync(ByVal couponRedemptionHistoryRequest As CouponRedemptionHistoryRequest, ByVal userState As Object)
            If (Me.GetCouponRemptionHistoryOperationCompleted Is Nothing) Then
                Me.GetCouponRemptionHistoryOperationCompleted = AddressOf Me.OnGetCouponRemptionHistoryOperationCompleted
            End If
            Me.InvokeAsync("GetCouponRemptionHistory", New Object() {couponRedemptionHistoryRequest}, Me.GetCouponRemptionHistoryOperationCompleted, userState)
        End Sub
        
        Private Sub OnGetCouponRemptionHistoryOperationCompleted(ByVal arg As Object)
            If (Not (Me.GetCouponRemptionHistoryCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent GetCouponRemptionHistoryCompleted(Me, New GetCouponRemptionHistoryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        Public Shadows Sub CancelAsync(ByVal userState As Object)
            MyBase.CancelAsync(userState)
        End Sub
        
        Private Function IsLocalFileSystemWebService(ByVal url As String) As Boolean
            If ((url Is Nothing)  _
                        OrElse (url Is String.Empty)) Then
                Return false
            End If
            Dim wsUri As System.Uri = New System.Uri(url)
            If ((wsUri.Port >= 1024)  _
                        AndAlso (String.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) = 0)) Then
                Return true
            End If
            Return false
        End Function
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class CouponRedemptionHistoryRequest
        
        Private accountIdField As String
        
        Private channelTypeField As ChannelType
        
        '''<remarks/>
        Public Property AccountId() As String
            Get
                Return Me.accountIdField
            End Get
            Set
                Me.accountIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ChannelType() As ChannelType
            Get
                Return Me.channelTypeField
            End Get
            Set
                Me.channelTypeField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Public Enum ChannelType
        
        '''<remarks/>
        CSR
        
        '''<remarks/>
        CharterDotCom
    End Enum
    
    '''<remarks/>
    <System.Xml.Serialization.XmlIncludeAttribute(GetType(KMADetail)),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public MustInherit Class BusinessEntityBaseOfKMADetail
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class KMADetail
        Inherits BusinessEntityBaseOfKMADetail
        
        Private kMAIdField As Integer
        
        Private kMANameField As String
        
        '''<remarks/>
        Public Property KMAId() As Integer
            Get
                Return Me.kMAIdField
            End Get
            Set
                Me.kMAIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property KMAName() As String
            Get
                Return Me.kMANameField
            End Get
            Set
                Me.kMANameField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class RedemptionAttempt
        
        Private channelField As String
        
        Private invalidMessageField As String
        
        '''<remarks/>
        Public Property Channel() As String
            Get
                Return Me.channelField
            End Get
            Set
                Me.channelField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property InvalidMessage() As String
            Get
                Return Me.invalidMessageField
            End Get
            Set
                Me.invalidMessageField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class BusinessRule
        
        Private ruleIDField As String
        
        Private ruleDescriptionField As String
        
        '''<remarks/>
        Public Property RuleID() As String
            Get
                Return Me.ruleIDField
            End Get
            Set
                Me.ruleIDField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RuleDescription() As String
            Get
                Return Me.ruleDescriptionField
            End Get
            Set
                Me.ruleDescriptionField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class RedeemedEvent
        
        Private eventCodeField As String
        
        Private eventTitleField As String
        
        Private isRedeemedField As Char
        
        Private transactionDateField As Date
        
        '''<remarks/>
        Public Property EventCode() As String
            Get
                Return Me.eventCodeField
            End Get
            Set
                Me.eventCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property EventTitle() As String
            Get
                Return Me.eventTitleField
            End Get
            Set
                Me.eventTitleField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property IsRedeemed() As Char
            Get
                Return Me.isRedeemedField
            End Get
            Set
                Me.isRedeemedField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property TransactionDate() As Date
            Get
                Return Me.transactionDateField
            End Get
            Set
                Me.transactionDateField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class CouponStatusResult
        
        Private associatedAccountIdField As String
        
        Private redeemedAccountIdField As String
        
        Private couponIdField As String
        
        Private couponDescriptionField As String
        
        Private couponStatusField As CouponStatus
        
        Private couponOfferField As Decimal
        
        Private couponStartDateField As Date
        
        Private couponEndDateField As Date
        
        Private activationStartDateField As Date
        
        Private activationEndDateField As Date
        
        Private allowedRedemptionsField As Integer
        
        Private numberOfOrderedEventsField As Integer
        
        Private exclusionTypeField As String
        
        Private associationTypeField As String
        
        Private redemptionDateField As Date
        
        Private redemptionChannelField As String
        
        Private confirmationNumberField As String
        
        Private cSRIDField As String
        
        Private cSRLocationField As String
        
        Private cSRRoleField As String
        
        Private cSRFirstNameField As String
        
        Private cSRLastNameField As String
        
        Private redeemedEventsField() As RedeemedEvent
        
        Private businessRuleField() As BusinessRule
        
        Private redemptionAttemptsField() As RedemptionAttempt
        
        Private isSuccessField As Boolean
        
        Private channelField As String
        
        Private invalidMessageField As String
        
        Private associatedKMAsField() As KMADetail
        
        '''<remarks/>
        Public Property AssociatedAccountId() As String
            Get
                Return Me.associatedAccountIdField
            End Get
            Set
                Me.associatedAccountIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RedeemedAccountId() As String
            Get
                Return Me.redeemedAccountIdField
            End Get
            Set
                Me.redeemedAccountIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponId() As String
            Get
                Return Me.couponIdField
            End Get
            Set
                Me.couponIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponDescription() As String
            Get
                Return Me.couponDescriptionField
            End Get
            Set
                Me.couponDescriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponStatus() As CouponStatus
            Get
                Return Me.couponStatusField
            End Get
            Set
                Me.couponStatusField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponOffer() As Decimal
            Get
                Return Me.couponOfferField
            End Get
            Set
                Me.couponOfferField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponStartDate() As Date
            Get
                Return Me.couponStartDateField
            End Get
            Set
                Me.couponStartDateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CouponEndDate() As Date
            Get
                Return Me.couponEndDateField
            End Get
            Set
                Me.couponEndDateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ActivationStartDate() As Date
            Get
                Return Me.activationStartDateField
            End Get
            Set
                Me.activationStartDateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ActivationEndDate() As Date
            Get
                Return Me.activationEndDateField
            End Get
            Set
                Me.activationEndDateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property AllowedRedemptions() As Integer
            Get
                Return Me.allowedRedemptionsField
            End Get
            Set
                Me.allowedRedemptionsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property NumberOfOrderedEvents() As Integer
            Get
                Return Me.numberOfOrderedEventsField
            End Get
            Set
                Me.numberOfOrderedEventsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ExclusionType() As String
            Get
                Return Me.exclusionTypeField
            End Get
            Set
                Me.exclusionTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property AssociationType() As String
            Get
                Return Me.associationTypeField
            End Get
            Set
                Me.associationTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RedemptionDate() As Date
            Get
                Return Me.redemptionDateField
            End Get
            Set
                Me.redemptionDateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RedemptionChannel() As String
            Get
                Return Me.redemptionChannelField
            End Get
            Set
                Me.redemptionChannelField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ConfirmationNumber() As String
            Get
                Return Me.confirmationNumberField
            End Get
            Set
                Me.confirmationNumberField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CSRID() As String
            Get
                Return Me.cSRIDField
            End Get
            Set
                Me.cSRIDField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CSRLocation() As String
            Get
                Return Me.cSRLocationField
            End Get
            Set
                Me.cSRLocationField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CSRRole() As String
            Get
                Return Me.cSRRoleField
            End Get
            Set
                Me.cSRRoleField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CSRFirstName() As String
            Get
                Return Me.cSRFirstNameField
            End Get
            Set
                Me.cSRFirstNameField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property CSRLastName() As String
            Get
                Return Me.cSRLastNameField
            End Get
            Set
                Me.cSRLastNameField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RedeemedEvents() As RedeemedEvent()
            Get
                Return Me.redeemedEventsField
            End Get
            Set
                Me.redeemedEventsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property BusinessRule() As BusinessRule()
            Get
                Return Me.businessRuleField
            End Get
            Set
                Me.businessRuleField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property RedemptionAttempts() As RedemptionAttempt()
            Get
                Return Me.redemptionAttemptsField
            End Get
            Set
                Me.redemptionAttemptsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property IsSuccess() As Boolean
            Get
                Return Me.isSuccessField
            End Get
            Set
                Me.isSuccessField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Channel() As String
            Get
                Return Me.channelField
            End Get
            Set
                Me.channelField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property InvalidMessage() As String
            Get
                Return Me.invalidMessageField
            End Get
            Set
                Me.invalidMessageField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property AssociatedKMAs() As KMADetail()
            Get
                Return Me.associatedKMAsField
            End Get
            Set
                Me.associatedKMAsField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Public Enum CouponStatus
        
        '''<remarks/>
        Active
        
        '''<remarks/>
        Expired
        
        '''<remarks/>
        InActive
        
        '''<remarks/>
        Redeemed
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class CsgStatusMessage
        
        Private codeField As String
        
        Private messageField As String
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class ResultExceptionInfo
        
        Private typeField As String
        
        Private messageField As String
        
        Private stackTraceField As String
        
        Private codeField As String
        
        '''<remarks/>
        Public Property Type() As String
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property StackTrace() As String
            Get
                Return Me.stackTraceField
            End Get
            Set
                Me.stackTraceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class Result
        
        Private returnCodeField As ResultReturnCode
        
        Private referenceCodeField As String
        
        Private typeField As ResultType
        
        Private descriptionField As String
        
        Private dateTimeField As Date
        
        Private sourceField As String
        
        Private serverField As String
        
        Private exceptionInfoField As ResultExceptionInfo
        
        Private statusMessagesField() As CsgStatusMessage
        
        '''<remarks/>
        Public Property ReturnCode() As ResultReturnCode
            Get
                Return Me.returnCodeField
            End Get
            Set
                Me.returnCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReferenceCode() As String
            Get
                Return Me.referenceCodeField
            End Get
            Set
                Me.referenceCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Type() As ResultType
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Description() As String
            Get
                Return Me.descriptionField
            End Get
            Set
                Me.descriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DateTime() As Date
            Get
                Return Me.dateTimeField
            End Get
            Set
                Me.dateTimeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Source() As String
            Get
                Return Me.sourceField
            End Get
            Set
                Me.sourceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Server() As String
            Get
                Return Me.serverField
            End Get
            Set
                Me.serverField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ExceptionInfo() As ResultExceptionInfo
            Get
                Return Me.exceptionInfoField
            End Get
            Set
                Me.exceptionInfoField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("StatusMessages")>  _
        Public Property StatusMessages() As CsgStatusMessage()
            Get
                Return Me.statusMessagesField
            End Get
            Set
                Me.statusMessagesField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Public Enum ResultReturnCode
        
        '''<remarks/>
        Success
        
        '''<remarks/>
        NoDataFound
        
        '''<remarks/>
        InvalidXml
        
        '''<remarks/>
        BusinessRuleNotMet
        
        '''<remarks/>
        Exception
        
        '''<remarks/>
        DatabaseError
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Public Enum ResultType
        
        '''<remarks/>
        Informational
        
        '''<remarks/>
        [Error]
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://kstlmcrad01/CouponRedemptionService/RedemptionHistoryService.asmx")>  _
    Partial Public Class CouponRedemptionHistoryResponse
        
        Private resultField As Result
        
        Private couponRedemptionHistoryResultField() As CouponStatusResult
        
        '''<remarks/>
        Public Property Result() As Result
            Get
                Return Me.resultField
            End Get
            Set
                Me.resultField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("CouponRedemptionHistoryResult")>  _
        Public Property CouponRedemptionHistoryResult() As CouponStatusResult()
            Get
                Return Me.couponRedemptionHistoryResultField
            End Get
            Set
                Me.couponRedemptionHistoryResultField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")>  _
    Public Delegate Sub GetCouponRemptionHistoryCompletedEventHandler(ByVal sender As Object, ByVal e As GetCouponRemptionHistoryCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class GetCouponRemptionHistoryCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As CouponRedemptionHistoryResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),CouponRedemptionHistoryResponse)
            End Get
        End Property
    End Class
End Namespace
