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>
22 lines
839 B
Go
22 lines
839 B
Go
package snipcart
|
|
|
|
type OrderStatus string
|
|
type NotificationType string
|
|
|
|
const (
|
|
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"
|
|
OrderShipped NotificationType = "OrderShipped"
|
|
TrackingNumber NotificationType = "TrackingNumber"
|
|
Invoice NotificationType = "Invice"
|
|
)
|