Compare commits

..

4 Commits

Author SHA1 Message Date
Bastian de Byl ae0e5fc379 feat: add price, url, image, description, archived fields to Product struct
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
gitea-actions[bot] 43eed98f7c chore(release): 0.5.2 [skip ci]
## [0.5.2](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.1...v0.5.2) (2026-01-04)

### Bug Fixes

* use fedora runner label for Gitea Actions ([de552fc](de552fc8d4))
2026-01-03 22:44:41 -05:00
Bastian de Byl de552fc8d4 fix: use fedora runner label for Gitea Actions
Release / release (push) Successful in 21s
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:43:39 -05:00
5 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ permissions:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: fedora
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
+7
View File
@@ -1,3 +1,10 @@
## [0.5.2](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.1...v0.5.2) (2026-01-04)
### Bug Fixes
* use fedora runner label for Gitea Actions ([de552fc](https://git.debyl.io/debyltech/go-snipcart/commit/de552fc8d4c37fb5af5e93ce4f4b8ae6e8e4bfcc))
## [0.5.1](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.0...v0.5.1) (2026-01-03) ## [0.5.1](https://git.debyl.io/debyltech/go-snipcart/compare/v0.5.0...v0.5.1) (2026-01-03)
-1
View File
@@ -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
) )
+8 -7
View File
@@ -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"
+5
View File
@@ -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"`