Documentation ¶
Index ¶
- Constants
- func PublishOrderCreated(ctx context.Context, data *EventOrderCreatedData) error
- func PublishOrderFinalized(ctx context.Context, data *EventOrderFinalizedData) error
- func PublishOrderPOSPaid(ctx context.Context, data *EventOrderPOSPaidData) error
- func PublishOrderPickupReady(ctx context.Context, data *EventOrderPickupReadyData) error
- func PublishWooNewOrder(ctx context.Context, data *EventWooNewOrderData) error
- type EventOrderCreatedData
- type EventOrderFinalizedData
- type EventOrderPOSPaidData
- type EventOrderPickupReadyData
- type EventWooNewOrderData
Constants ¶
View Source
const ( TopicOrderCreatedARN = "/sns/createdOrder/arn" TopicOrderFinalizedARN = "/sns/order/finalized/arn" TopicNewWooOrderARN = "/sns/woo/order/new" TopicPickupReadyARN = "/sns/order/pickup-ready/arn" TopicPOSInvoiceARN = "/sns/order/pos-invoice/arn" )
Variables ¶
This section is empty.
Functions ¶
func PublishOrderCreated ¶
func PublishOrderCreated(ctx context.Context, data *EventOrderCreatedData) error
func PublishOrderFinalized ¶
func PublishOrderFinalized(ctx context.Context, data *EventOrderFinalizedData) error
func PublishOrderPOSPaid ¶
func PublishOrderPOSPaid(ctx context.Context, data *EventOrderPOSPaidData) error
func PublishOrderPickupReady ¶
func PublishOrderPickupReady(ctx context.Context, data *EventOrderPickupReadyData) error
func PublishWooNewOrder ¶
func PublishWooNewOrder(ctx context.Context, data *EventWooNewOrderData) error
Types ¶
type EventOrderCreatedData ¶
type EventOrderCreatedData struct {
OrderID string // not the UUID
}
type EventOrderFinalizedData ¶
type EventOrderPOSPaidData ¶
type EventOrderPOSPaidData struct {
OrderID string
}
type EventWooNewOrderData ¶
type EventWooNewOrderData struct {
ID int // woocommerce id
}
Click to show internal directories.
Click to hide internal directories.