Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
891ff0daef | ||
|
|
ae0e5fc379 | ||
|
|
914e49e9be |
@@ -1,3 +1,10 @@
|
|||||||
|
# [0.6.0](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.2...v0.6.0) (2026-01-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add price, url, image, description, archived fields to Product struct ([ae0e5fc](https://git.debyl.io/debyltech/go-snipcart/commit/ae0e5fc37953b1645eb6bf75f6c9fb291dd0a223))
|
||||||
|
|
||||||
## [0.5.2](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.1...v0.5.2) (2026-01-04)
|
## [0.5.2](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.1...v0.5.2) (2026-01-04)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
go.mod
1
go.mod
@@ -4,6 +4,5 @@ go 1.19
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/debyltech/go-helpers v1.1.1
|
github.com/debyltech/go-helpers v1.1.1
|
||||||
github.com/debyltech/go-shippr v0.1.0
|
|
||||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,13 +4,14 @@ type OrderStatus string
|
|||||||
type NotificationType string
|
type NotificationType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Processed OrderStatus = "Processed"
|
InProgress OrderStatus = "InProgress" // Open cart, not finalized
|
||||||
Disputed OrderStatus = "Disputed"
|
Pending OrderStatus = "Pending" // Waiting for payment/processing
|
||||||
Shipped OrderStatus = "Shipped"
|
Processed OrderStatus = "Processed" // Order completed
|
||||||
Delivered OrderStatus = "Delivered"
|
Disputed OrderStatus = "Disputed" // Order has dispute
|
||||||
Pending OrderStatus = "Pending"
|
Shipped OrderStatus = "Shipped" // Order shipped
|
||||||
Cancelled OrderStatus = "Cancelled"
|
Delivered OrderStatus = "Delivered" // Order delivered
|
||||||
Dispatched OrderStatus = "Dispatched"
|
Dispatched OrderStatus = "Dispatched" // Order dispatched
|
||||||
|
Cancelled OrderStatus = "Cancelled" // Order cancelled
|
||||||
|
|
||||||
Comment NotificationType = "Comment"
|
Comment NotificationType = "Comment"
|
||||||
OrderStatusChanged NotificationType = "OrderStatusChanged"
|
OrderStatusChanged NotificationType = "OrderStatusChanged"
|
||||||
|
|||||||
@@ -167,6 +167,11 @@ type Product struct {
|
|||||||
Token string `json:"id"`
|
Token string `json:"id"`
|
||||||
Id string `json:"userDefinedId"`
|
Id string `json:"userDefinedId"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Price float64 `json:"price"`
|
||||||
|
Url string `json:"url"`
|
||||||
|
Image string `json:"image"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Archived bool `json:"archived"`
|
||||||
Stock int `json:"stock"`
|
Stock int `json:"stock"`
|
||||||
TotalStock int `json:"totalStock"`
|
TotalStock int `json:"totalStock"`
|
||||||
AllowBackorder bool `json:"allowOutOfStockPurchases"`
|
AllowBackorder bool `json:"allowOutOfStockPurchases"`
|
||||||
|
|||||||
Reference in New Issue
Block a user