| POST | /duenable/webhook/notify |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports digitaluapi.ServiceModel
Namespace Global
Namespace digitaluapi.ServiceModel
Public Partial Class DuEnableNotifyRequest
Public Overridable Property PaymentType As PaymentTypeEnum
Public Overridable Property TransactionId As String
Public Overridable Property Uuid As String
Public Overridable Property PaymentId As String
Public Overridable Property Result As Integer
Public Overridable Property Message As String
Public Overridable Property TotalAmount As Decimal
Public Overridable Property AdjustmentAmount As Decimal
Public Overridable Property TransactionAmount As Decimal
Public Overridable Property FeeAmount As Decimal
Public Overridable Property RecurringId As String
Public Overridable Property Signature As String
End Class
Public Enum PaymentTypeEnum
OneTime = 1
Recurring = 2
End Enum
End Namespace
End Namespace
VB.NET DuEnableNotifyRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /duenable/webhook/notify HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PaymentType: OneTime,
TransactionId: String,
Uuid: String,
PaymentId: String,
Result: 0,
Message: String,
TotalAmount: 0,
AdjustmentAmount: 0,
TransactionAmount: 0,
FeeAmount: 0,
RecurringId: String,
Signature: String
}