event

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StepUpdateProductInventory = "UPDATE_PRODUCT_INVENTORY"
	StepCreateOrder            = "CREATE_ORDER"
	StepCreatePayment          = "CREATE_PAYMENT"

	StatusExecute        = "EXUCUTE"
	StatusSucess         = "SUCCESS"
	StatusFailed         = "FAILED"
	StatusRollback       = "ROLLBACK"
	StatusRollbackFailed = "ROLLBACK_FAILED"
)

Functions

This section is empty.

Types

type CreatePurchaseResponse

type CreatePurchaseResponse struct {
	Purchase *aggregate.Purchase
	Success  bool
	Error    string
}

type PurchaseResult

type PurchaseResult struct {
	PurchaseID uint64
	Step       string
	Status     string
	Timestamp  time.Time
}

PurchaseResult event

type RollbackResponse

type RollbackResponse struct {
	CustomerID uint64
	PurchaseID uint64
	Success    bool
	Error      string
}

Jump to

Keyboard shortcuts

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