From fb104bb0bd2bd669a019ac703d735d2c2e6f7898 Mon Sep 17 00:00:00 2001 From: Sinh Date: Wed, 31 Aug 2022 14:21:43 +0700 Subject: [PATCH] define webhook global care --- partnerapi/globalcare/model_request.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/partnerapi/globalcare/model_request.go b/partnerapi/globalcare/model_request.go index a520bb7..d991ba0 100644 --- a/partnerapi/globalcare/model_request.go +++ b/partnerapi/globalcare/model_request.go @@ -1,5 +1,7 @@ package globalcare +import "time" + // CommonRequestBody ... type CommonRequestBody struct { Signature string `json:"signature"` @@ -41,3 +43,11 @@ type InsuredInfo struct { YearsOfInsurance string `json:"yearsOfInsurance"` BeginDate string `json:"beginDate"` } + +// Webhook ... +type Webhook struct { + Status int `json:"status"` + OrderCode string `json:"orderCode"` + UpdatedAt time.Time `json:"updatedAt"` + Note string `json:"note"` +}