[MM-48091]: Remove is_paid_tier (#21850)
Этот коммит содержится в:
@@ -80,7 +80,6 @@ func getSubscription(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
Seats: 0,
|
Seats: 0,
|
||||||
Status: "",
|
Status: "",
|
||||||
DNS: "",
|
DNS: "",
|
||||||
IsPaidTier: "",
|
|
||||||
LastInvoice: &model.Invoice{},
|
LastInvoice: &model.Invoice{},
|
||||||
DelinquentSince: subscription.DelinquentSince,
|
DelinquentSince: subscription.DelinquentSince,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ func Test_GetSubscription(t *testing.T) {
|
|||||||
Seats: 10,
|
Seats: 10,
|
||||||
IsFreeTrial: "true",
|
IsFreeTrial: "true",
|
||||||
DNS: "some.dns.server",
|
DNS: "some.dns.server",
|
||||||
IsPaidTier: "false",
|
|
||||||
TrialEndAt: 2000000000,
|
TrialEndAt: 2000000000,
|
||||||
LastInvoice: &model.Invoice{},
|
LastInvoice: &model.Invoice{},
|
||||||
DelinquentSince: &deliquencySince,
|
DelinquentSince: &deliquencySince,
|
||||||
@@ -141,7 +140,6 @@ func Test_GetSubscription(t *testing.T) {
|
|||||||
Seats: 0,
|
Seats: 0,
|
||||||
IsFreeTrial: "true",
|
IsFreeTrial: "true",
|
||||||
DNS: "",
|
DNS: "",
|
||||||
IsPaidTier: "",
|
|
||||||
TrialEndAt: 2000000000,
|
TrialEndAt: 2000000000,
|
||||||
LastInvoice: &model.Invoice{},
|
LastInvoice: &model.Invoice{},
|
||||||
DelinquentSince: &deliquencySince,
|
DelinquentSince: &deliquencySince,
|
||||||
@@ -209,7 +207,6 @@ func Test_requestTrial(t *testing.T) {
|
|||||||
CreateAt: 1000000000,
|
CreateAt: 1000000000,
|
||||||
Seats: 10,
|
Seats: 10,
|
||||||
DNS: "some.dns.server",
|
DNS: "some.dns.server",
|
||||||
IsPaidTier: "false",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
newValidBusinessEmail := model.StartCloudTrialRequest{Email: ""}
|
newValidBusinessEmail := model.StartCloudTrialRequest{Email: ""}
|
||||||
|
|||||||
@@ -1877,7 +1877,6 @@ func TestSendSubscriptionHistoryEvent(t *testing.T) {
|
|||||||
CreateAt: 1000000000,
|
CreateAt: 1000000000,
|
||||||
Seats: 10,
|
Seats: 10,
|
||||||
DNS: "some.dns.server",
|
DNS: "some.dns.server",
|
||||||
IsPaidTier: "false",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
subscriptionHistory := &model.SubscriptionHistory{
|
subscriptionHistory := &model.SubscriptionHistory{
|
||||||
|
|||||||
@@ -166,7 +166,6 @@ type Subscription struct {
|
|||||||
Seats int `json:"seats"`
|
Seats int `json:"seats"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
DNS string `json:"dns"`
|
DNS string `json:"dns"`
|
||||||
IsPaidTier string `json:"is_paid_tier"`
|
|
||||||
LastInvoice *Invoice `json:"last_invoice"`
|
LastInvoice *Invoice `json:"last_invoice"`
|
||||||
UpcomingInvoice *Invoice `json:"upcoming_invoice"`
|
UpcomingInvoice *Invoice `json:"upcoming_invoice"`
|
||||||
IsFreeTrial string `json:"is_free_trial"`
|
IsFreeTrial string `json:"is_free_trial"`
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user