From a2776842062dcd3749d94ae5e0208c945ceeb33f Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Wed, 10 Apr 2024 23:06:38 +0300 Subject: [PATCH] Commit --- model_web_hook_response.go | 6 ++++++ types.go | 3 +++ utils.go | 2 -- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 model_web_hook_response.go create mode 100644 types.go diff --git a/model_web_hook_response.go b/model_web_hook_response.go new file mode 100644 index 0000000..88a535d --- /dev/null +++ b/model_web_hook_response.go @@ -0,0 +1,6 @@ +package monobank + +type WebHookResponse struct { + Type string `json:"type"` // "StatementItem" + Data StatementItemsInner `json:"data"` +} diff --git a/types.go b/types.go new file mode 100644 index 0000000..7d58daf --- /dev/null +++ b/types.go @@ -0,0 +1,3 @@ +package monobank + +type Array []string diff --git a/utils.go b/utils.go index 4735d85..efa96af 100644 --- a/utils.go +++ b/utils.go @@ -16,8 +16,6 @@ import ( "time" ) -type Array []string - // PtrBool is a helper routine that returns a pointer to given boolean value. func PtrBool(v bool) *bool { return &v }