servicesns

package
v2.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

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 EventOrderFinalizedData struct {
	ID primitive.ObjectID
}

type EventOrderPOSPaidData

type EventOrderPOSPaidData struct {
	OrderID string
}

type EventOrderPickupReadyData

type EventOrderPickupReadyData struct {
	OrderID string
	InTime  string
}

type EventWooNewOrderData

type EventWooNewOrderData struct {
	ID int // woocommerce id
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL