all the refactor
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/cart"
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/actor"
|
||||
messages "git.k6n.net/mats/go-cart-actor/proto/cart"
|
||||
"git.k6n.net/mats/platform/money"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
@@ -230,7 +231,7 @@ func TestCartResponse_Conversion(t *testing.T) {
|
||||
|
||||
func mustPrice(incVat int64, totalVat int64) *cart.Price {
|
||||
return &cart.Price{
|
||||
IncVat: incVat,
|
||||
VatRates: map[float32]int64{25: totalVat},
|
||||
IncVat: money.Cents(incVat),
|
||||
VatRates: map[int]money.Cents{2500: money.Cents(totalVat)}, // 25% in basis points
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user