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

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