github.com/tada-team/tdproto@v1.51.57/subscription.go (about) 1 package tdproto 2 3 import "time" 4 5 // Subscription - an entity that signifies the fact 6 // of subscribing to the tariff of any team for a certain period 7 // (not defined, in the case of the default tariff) 8 type Subscription struct { 9 // Subscription id 10 Uid string `json:"uid"` 11 // Subscription activation time 12 Activated *time.Time `json:"activated,omitempty"` 13 // Subscription expiration time 14 Expires *time.Time `json:"expires,omitempty"` 15 // ID of the tariff for which the subscription is valid 16 TariffUid string `json:"tariff_uid,omitempty"` 17 // ID of the user who subscribed 18 UserUid string `json:"user_uid,omitempty"` 19 // EmptyWorkplaceCount empty workplace count 20 EmptyWorkplaceCount uint32 `json:"empty_workplace_count,omitempty"` 21 }