generated from mythrnr/template-lib-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webhook.go
62 lines (56 loc) · 2.3 KB
/
webhook.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package paypayopa
type WebhookCustomerAuthorizationSucceeded struct {
NotificationType string `json:"notification_type"`
NotificationID string `json:"notification_id"`
CreatedAt string `json:"createdAt"`
ReferenceID string `json:"referenceId"`
Nonce string `json:"nonce"`
Scopes string `json:"scopes"`
UserAuthorizationID string `json:"userAuthorizationId"`
ProfileIdentifier string `json:"profileIdentifier"`
Expiry int `json:"expiry"`
}
type WebhookCustomerAuthorizationFailed struct {
NotificationType string `json:"notification_type"`
NotificationID string `json:"notification_id"`
CreatedAt string `json:"createdAt"`
ReferenceID string `json:"referenceId"`
Nonce string `json:"nonce"`
Result string `json:"result"`
Reason string `json:"reason"`
}
type WebhookCustomerAuthorizationRevoked struct {
NotificationType string `json:"notification_type"`
NotificationID string `json:"notification_id"`
CreatedAt string `json:"createdAt"`
UserAuthorizationID string `json:"userAuthorizationId"`
ReferenceID string `json:"referenceId"`
}
type WebhookCustomerAuthorizationExtended struct {
NotificationType string `json:"notification_type"`
NotificationID string `json:"notification_id"`
CreatedAt string `json:"createdAt"`
Scopes string `json:"scopes"`
UserAuthorizationID string `json:"userAuthorizationId"`
Expiry int64 `json:"expiry"`
}
type WebhookReconFile struct {
NotificationType string `json:"notification_type"`
NotificationID string `json:"notification_id"`
FileType string `json:"fileType"`
Path string `json:"path"`
RequestedAt string `json:"requestedAt"`
}
type WebhookTransaction struct {
NotificationType string `json:"notification_type"`
MerchantID string `json:"merchant_id"`
StoreID string `json:"store_id"`
PosID string `json:"pos_id"`
OrderID string `json:"order_id"`
MerchantOrderID string `json:"merchant_order_id"`
AuthorizedAt string `json:"authorized_at"`
ExpiresAt string `json:"expires_at"`
PaidAt string `json:"paid_at"`
OrderAmount int `json:"order_amount"`
State string `json:"state"`
}