fix: misspell

docs: add reference to conventional commit messages

corrections:
* `AVALIABLE` -> `AVAILABLE`
* `UNAVALIABLE` -> `UNAVAILABLE`
* `succesful` -> `successful`
This commit is contained in:
2025-03-14 10:50:06 +00:00
parent 0c9c64b377
commit fe910a160f
8 changed files with 28 additions and 25 deletions

View File

@@ -58,12 +58,12 @@ func PrepareProductDeletedEvent(product *pb.Product) ([]byte, string, error) {
return messaging.MarshalEvent(event, topic)
}
func PrepareProductPriceQuoteEvent_Avaliable(orderId string, productQuantities map[string]int32, productPrices map[string]float32, totalPrice float32) ([]byte, string, error) {
func PrepareProductPriceQuoteEvent_Available(orderId string, productQuantities map[string]int32, productPrices map[string]float32, totalPrice float32) ([]byte, string, error) {
topic := messaging.Product_PriceQuotation_Topic
event := &eventspb.ProductPriceQuoteEvent{
Revision: 1,
Type: eventspb.ProductPriceQuoteEvent_TYPE_AVALIABLE,
Type: eventspb.ProductPriceQuoteEvent_TYPE_AVAILABLE,
OrderId: orderId,
ProductQuantities: productQuantities,
ProductPrices: productPrices,
@@ -73,12 +73,12 @@ func PrepareProductPriceQuoteEvent_Avaliable(orderId string, productQuantities m
return messaging.MarshalEvent(event, topic)
}
func PrepareProductPriceQuoteEvent_Unavaliable(orderId string) ([]byte, string, error) {
func PrepareProductPriceQuoteEvent_Unavailable(orderId string) ([]byte, string, error) {
topic := messaging.Product_PriceQuotation_Topic
event := &eventspb.ProductPriceQuoteEvent{
Revision: 1,
Type: eventspb.ProductPriceQuoteEvent_TYPE_UNAVALIABLE,
Type: eventspb.ProductPriceQuoteEvent_TYPE_UNAVAILABLE,
OrderId: orderId,
}