Compare commits

..

5 Commits

Author SHA1 Message Date
gitea-actions[bot]
b05c8130ce chore(release): 1.0.0 [skip ci]
# [1.0.0](https://git.debyl.io/debyltech/go-snipcart/compare/v0.6.0...v1.0.0) (2026-01-23)

* feat!: update module path to git.debyl.io ([623060e](623060eef4))

### BREAKING CHANGES

* Module path changed from github.com/debyltech/go-snipcart
to git.debyl.io/debyltech/go-snipcart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 19:59:41 -05:00
Bastian de Byl
623060eef4 feat!: update module path to git.debyl.io
All checks were successful
Release / release (push) Successful in 21s
BREAKING CHANGE: Module path changed from github.com/debyltech/go-snipcart
to git.debyl.io/debyltech/go-snipcart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 19:59:18 -05:00
gitea-actions[bot]
891ff0daef chore(release): 0.6.0 [skip ci]
# [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](ae0e5fc379))
2026-01-22 19:54:03 -05:00
Bastian de Byl
ae0e5fc379 feat: add price, url, image, description, archived fields to Product struct
All checks were successful
Release / release (push) Successful in 24s
Extends the Product struct to include additional fields from the Snipcart
Products API response, enabling filtering of archived products and access
to product metadata like images and URLs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 19:51:24 -05:00
Bastian de Byl
914e49e9be chore: add InProgress status and document all order statuses
Added missing InProgress status constant and added comments to
document the meaning of each order status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 16:58:43 -05:00
4 changed files with 34 additions and 9 deletions

View File

@@ -1,3 +1,23 @@
# [1.0.0](https://git.debyl.io/debyltech/go-snipcart/compare/v0.6.0...v1.0.0) (2026-01-23)
* feat!: update module path to git.debyl.io ([623060e](https://git.debyl.io/debyltech/go-snipcart/commit/623060eef47ccb2c7567925e4d93c72999ef495e))
### BREAKING CHANGES
* Module path changed from github.com/debyltech/go-snipcart
to git.debyl.io/debyltech/go-snipcart
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
# [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)

3
go.mod
View File

@@ -1,9 +1,8 @@
module github.com/debyltech/go-snipcart
module git.debyl.io/debyltech/go-snipcart
go 1.19
require (
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
)

View File

@@ -4,13 +4,14 @@ type OrderStatus string
type NotificationType string
const (
Processed OrderStatus = "Processed"
Disputed OrderStatus = "Disputed"
Shipped OrderStatus = "Shipped"
Delivered OrderStatus = "Delivered"
Pending OrderStatus = "Pending"
Cancelled OrderStatus = "Cancelled"
Dispatched OrderStatus = "Dispatched"
InProgress OrderStatus = "InProgress" // Open cart, not finalized
Pending OrderStatus = "Pending" // Waiting for payment/processing
Processed OrderStatus = "Processed" // Order completed
Disputed OrderStatus = "Disputed" // Order has dispute
Shipped OrderStatus = "Shipped" // Order shipped
Delivered OrderStatus = "Delivered" // Order delivered
Dispatched OrderStatus = "Dispatched" // Order dispatched
Cancelled OrderStatus = "Cancelled" // Order cancelled
Comment NotificationType = "Comment"
OrderStatusChanged NotificationType = "OrderStatusChanged"

View File

@@ -167,6 +167,11 @@ type Product struct {
Token string `json:"id"`
Id string `json:"userDefinedId"`
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"`
TotalStock int `json:"totalStock"`
AllowBackorder bool `json:"allowOutOfStockPurchases"`