diff --git a/go.sum b/go.sum index 90b2a7e3..e84b0ead 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,4 @@ github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/line/line-bot-sdk-go/v7 v7.14.0 h1:SL19vemo5zGvZQsTKfdo+mkMN3MY0EdykpDLyVP1GbQ= -github.com/line/line-bot-sdk-go/v7 v7.14.0/go.mod h1:WNSLxxBiXoGZtSfoiDKGTXu6pJJh8RGzj4AeNvSCWEs= github.com/line/line-bot-sdk-go/v7 v7.15.0 h1:aX+MYza24GiAX+8vtnXZXZqYxPoWu+bWgu4GCPaV6/0= github.com/line/line-bot-sdk-go/v7 v7.15.0/go.mod h1:WNSLxxBiXoGZtSfoiDKGTXu6pJJh8RGzj4AeNvSCWEs= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go index 81da7a27..bc333f7b 100644 --- a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go +++ b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go @@ -189,6 +189,11 @@ const ( StickerResourceTypeNameText StickerResourceType = "CUSTOM" ) +// DeliveryContext type +type DeliveryContext struct { + IsRedelivery bool `json:"isRedelivery"` +} + // Event type type Event struct { ReplyToken string @@ -206,6 +211,8 @@ type Event struct { Members []*EventSource Unsend *Unsend VideoPlayComplete *VideoPlayComplete + WebhookEventID string + DeliveryContext DeliveryContext } type rawEvent struct { @@ -223,6 +230,8 @@ type rawEvent struct { Things *rawThingsEvent `json:"things,omitempty"` Unsend *Unsend `json:"unsend,omitempty"` VideoPlayComplete *VideoPlayComplete `json:"videoPlayComplete,omitempty"` + WebhookEventID string `json:"webhookEventId"` + DeliveryContext DeliveryContext `json:"deliveryContext"` } type rawMemberEvent struct { @@ -299,6 +308,8 @@ func (e *Event) MarshalJSON() ([]byte, error) { Postback: e.Postback, Unsend: e.Unsend, VideoPlayComplete: e.VideoPlayComplete, + WebhookEventID: e.WebhookEventID, + DeliveryContext: e.DeliveryContext, } if e.Beacon != nil { raw.Beacon = &rawBeaconEvent{ @@ -423,6 +434,8 @@ func (e *Event) UnmarshalJSON(body []byte) (err error) { e.Mode = rawEvent.Mode e.Timestamp = time.Unix(rawEvent.Timestamp/milliSecPerSec, (rawEvent.Timestamp%milliSecPerSec)*nanoSecPerMilliSec).UTC() e.Source = rawEvent.Source + e.WebhookEventID = rawEvent.WebhookEventID + e.DeliveryContext = rawEvent.DeliveryContext switch rawEvent.Type { case EventTypeMessage: diff --git a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/raw.go b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/raw.go index 750e1fda..f542af80 100644 --- a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/raw.go +++ b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/raw.go @@ -27,7 +27,7 @@ func (client *Client) NewRawCall(method string, endpoint string) (*RawCall, erro return nil, err } return &RawCall{ - c: client, + c: client, req: req, }, nil } @@ -39,7 +39,7 @@ func (client *Client) NewRawCallWithBody(method string, endpoint string, body io return nil, err } return &RawCall{ - c: client, + c: client, req: req, }, nil } @@ -49,7 +49,7 @@ type RawCall struct { c *Client ctx context.Context - req *http.Request + req *http.Request } // AddHeader method diff --git a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/version.go b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/version.go index 39b06152..f04b4b90 100644 --- a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/version.go +++ b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/version.go @@ -16,4 +16,4 @@ package linebot -const version = "7.14.0" +const version = "7.15.0" diff --git a/vendor/modules.txt b/vendor/modules.txt index 009997e1..f210e680 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,3 @@ -# github.com/line/line-bot-sdk-go/v7 v7.14.0 +# github.com/line/line-bot-sdk-go/v7 v7.15.0 ## explicit; go 1.11 github.com/line/line-bot-sdk-go/v7/linebot