Add DelinquentSince to Subscription fields (#20655)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -140,20 +140,21 @@ type PaymentMethod struct {
|
|||||||
|
|
||||||
// Subscription model represents a subscription on the system.
|
// Subscription model represents a subscription on the system.
|
||||||
type Subscription struct {
|
type Subscription struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
CustomerID string `json:"customer_id"`
|
CustomerID string `json:"customer_id"`
|
||||||
ProductID string `json:"product_id"`
|
ProductID string `json:"product_id"`
|
||||||
AddOns []string `json:"add_ons"`
|
AddOns []string `json:"add_ons"`
|
||||||
StartAt int64 `json:"start_at"`
|
StartAt int64 `json:"start_at"`
|
||||||
EndAt int64 `json:"end_at"`
|
EndAt int64 `json:"end_at"`
|
||||||
CreateAt int64 `json:"create_at"`
|
CreateAt int64 `json:"create_at"`
|
||||||
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"`
|
IsPaidTier string `json:"is_paid_tier"`
|
||||||
LastInvoice *Invoice `json:"last_invoice"`
|
LastInvoice *Invoice `json:"last_invoice"`
|
||||||
IsFreeTrial string `json:"is_free_trial"`
|
IsFreeTrial string `json:"is_free_trial"`
|
||||||
TrialEndAt int64 `json:"trial_end_at"`
|
TrialEndAt int64 `json:"trial_end_at"`
|
||||||
|
DelinquentSince *int64 `json:"delinquent_since"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWorkSpaceNameFromDNS returns the work space name. For example from test.mattermost.cloud.com, it returns test
|
// GetWorkSpaceNameFromDNS returns the work space name. For example from test.mattermost.cloud.com, it returns test
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user