wise webhook
This commit is contained in:
37
VERAG_REST_SERVER/Models/WiseWebhookModels.vb
Normal file
37
VERAG_REST_SERVER/Models/WiseWebhookModels.vb
Normal file
@@ -0,0 +1,37 @@
|
||||
Imports Newtonsoft.Json
|
||||
|
||||
Public Class WiseWebhookRequest
|
||||
<JsonProperty("event_type")>
|
||||
Public Property EventType As String
|
||||
|
||||
<JsonProperty("data")>
|
||||
Public Property Data As WiseWebhookData
|
||||
End Class
|
||||
|
||||
Public Class WiseWebhookData
|
||||
<JsonProperty("id")>
|
||||
Public Property Id As Long
|
||||
|
||||
<JsonProperty("balance_id")>
|
||||
Public Property BalanceId As Long
|
||||
|
||||
<JsonProperty("amount")>
|
||||
Public Property Amount As WiseWebhookAmount
|
||||
|
||||
<JsonProperty("occurred_at")>
|
||||
Public Property OccurredAt As DateTime
|
||||
|
||||
<JsonProperty("description")>
|
||||
Public Property Description As String
|
||||
|
||||
<JsonProperty("sender_name")>
|
||||
Public Property SenderName As String
|
||||
End Class
|
||||
|
||||
Public Class WiseWebhookAmount
|
||||
<JsonProperty("value")>
|
||||
Public Property Value As Decimal
|
||||
|
||||
<JsonProperty("currency")>
|
||||
Public Property Currency As String
|
||||
End Class
|
||||
Reference in New Issue
Block a user