added Created and Modified times to SnipcartOrder

This commit is contained in:
Bastian de Byl
2023-04-09 18:31:53 -04:00
parent bc56b4d16a
commit b93afeec2f
2 changed files with 3 additions and 16 deletions

View File

@@ -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"

View File

@@ -5,6 +5,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"time"
helper "github.com/debyltech/go-helpers/json" helper "github.com/debyltech/go-helpers/json"
"github.com/skip2/go-qrcode" "github.com/skip2/go-qrcode"
@@ -48,6 +49,8 @@ type SnipcartItem struct {
type SnipcartOrder struct { type SnipcartOrder struct {
Token string `json:"token"` Token string `json:"token"`
Created time.Time `json:"creationDate"`
Modified time.Time `json:"modificationDate"`
Invoice string `json:"invoiceNumber"` Invoice string `json:"invoiceNumber"`
Subtotal float64 `json:"subtotal,omitempty"` Subtotal float64 `json:"subtotal,omitempty"`
Currency string `json:"currency,omitempty"` Currency string `json:"currency,omitempty"`