moved enums to enums.go, added SendNotification, Notification structs & enums

This commit is contained in:
Bastian de Byl
2023-04-12 16:56:01 -04:00
parent b93afeec2f
commit 131af89f4f
2 changed files with 41 additions and 1 deletions

20
snipcart/enums.go Normal file
View File

@@ -0,0 +1,20 @@
package snipcart
type OrderStatus string
type NotificationType string
const (
Processed OrderStatus = "Processed"
Disputed = "Disputed"
Shipped = "Shipped"
Delivered = "Delivered"
Pending = "Pending"
Cancelled = "Cancelled"
Dispatched = "Dispatched"
Comment NotificationType = "Comment"
OrderStatusChanged = "OrderStatusChanged"
OrderShipped = "OrderShipped"
TrackingNumber = "TrackingNumber"
Invoice = "Invice"
)