From 156e7b32f1ad2f9226a075ff40b1c60a57e6302a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20V=C3=A9lez=20Vidal?= Date: Wed, 7 Jul 2021 21:17:06 +0200 Subject: [PATCH] MM-36731 - ux changes cloud starter flat fee (#17874) Co-authored-by: Pablo Velez Vidal --- model/cloud.go | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/model/cloud.go b/model/cloud.go index 66c9dd4462..4fdbc29a5c 100644 --- a/model/cloud.go +++ b/model/cloud.go @@ -17,13 +17,21 @@ const ( var MockCWS string +type BillingScheme string + +const ( + BillingSchemePerSeat = BillingScheme("per_seat") + BillingSchemeFlatFee = BillingScheme("flat_fee") +) + // Product model represents a product on the cloud system. type Product struct { - ID string `json:"id"` - Name string `json:"name"` - Description string `json:"description"` - PricePerSeat float64 `json:"price_per_seat"` - AddOns []*AddOn `json:"add_ons"` + ID string `json:"id"` + Name string `json:"name"` + Description string `json:"description"` + PricePerSeat float64 `json:"price_per_seat"` + AddOns []*AddOn `json:"add_ons"` + BillingScheme BillingScheme `json:"billing_scheme"` } // AddOn represents an addon to a product.