Skip to content

Commit 639e355

Browse files
authoredNov 28, 2024
Merge pull request #24 from ricky0603/feature/NotificationsHistoryRequest
fix: Add omitempty to OnlyFailures and TransactionId filed in NotificationHistoryRequest struct
2 parents cbada80 + ce61dcd commit 639e355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎model.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ type NotificationHistoryRequest struct {
212212
OriginalTransactionId string `json:"originalTransactionId,omitempty"`
213213
NotificationType NotificationTypeV2 `json:"notificationType,omitempty"`
214214
NotificationSubtype SubtypeV2 `json:"notificationSubtype,omitempty"`
215-
OnlyFailures bool `json:"onlyFailures"`
216-
TransactionId string `json:"transactionId"`
215+
OnlyFailures bool `json:"onlyFailures,omitempty"`
216+
TransactionId string `json:"transactionId,omitempty"`
217217
}
218218

219219
type NotificationTypeV2 string

0 commit comments

Comments
 (0)
Failed to load comments.