domain

package
v0.0.0-...-e3c39ba Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	Items      []CartItem
	CustomerID uuid.UUID
}

func (*Cart) AddItem

func (c *Cart) AddItem(item CartItem)

type CartItem

type CartItem struct {
	ProductID uuid.UUID
	Quantity  int32
	Price     decimal.Decimal
	Brand     string
}

type CartTotal

type CartTotal struct {
	TotalTax      decimal.Decimal
	TotalDiscount decimal.Decimal
	FinalPrice    decimal.Decimal
	Policies      []string
}

Jump to

Keyboard shortcuts

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