File tree Expand file tree Collapse file tree
transaction-svc/internal/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ type DiscountItem struct {
3535 Amount int32 `json:"amount"`
3636 MinQuantity int `json:"min_quantity"`
3737 Value int32 `json:"value"`
38- Type enum.DiscountType `json:"type "`
38+ Type enum.DiscountType `json:"discount_type "`
3939}
4040
4141type PreviewCheckoutRequest struct {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type DiscountItem struct {
3333 DiscountMinQuantity int `json:"min_quantity" validate:"required,gte=0"`
3434 DiscountValue int32 `json:"value" validate:"required,gt=0"`
3535 DiscountId string `json:"id" validate:"required"`
36- DiscountType string `json:"type " validate:"required"`
36+ DiscountType string `json:"discount_type " validate:"required"`
3737}
3838
3939type PreviewCheckoutResponse struct {
You can’t perform that action at this time.
0 commit comments