diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6139052..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -kind: pipeline -type: docker -name: default - -steps: - - name: build - image: golang:1.20.3-nanoserver - commands: - - go mod tidy - - CGO_ENABLED=0 go build -tags=netgo - - - name: deploy-dev - image: bdebyl/awscli:latest - commands: - - echo "yolo" diff --git a/snipcart/snipcart.go b/snipcart/snipcart.go index 288eba1..2bb5507 100644 --- a/snipcart/snipcart.go +++ b/snipcart/snipcart.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "fmt" + "time" helper "github.com/debyltech/go-helpers/json" "github.com/skip2/go-qrcode" @@ -48,6 +49,8 @@ type SnipcartItem struct { type SnipcartOrder struct { Token string `json:"token"` + Created time.Time `json:"creationDate"` + Modified time.Time `json:"modificationDate"` Invoice string `json:"invoiceNumber"` Subtotal float64 `json:"subtotal,omitempty"` Currency string `json:"currency,omitempty"`