-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add subscription struct * fix import (cuz no goimports invoked) * omg * omg v2 * no pointer * add subscription in team * add payment strcut
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package tdproto | ||
|
||
type Payment struct { | ||
TariffUid string `json:"tariff_uid"` | ||
TeamUid string `json:"team_uid"` | ||
UserUid string `json:"user_uid"` | ||
ConfirmationUrl string `json:"confirmation_url"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package tdproto | ||
|
||
import "time" | ||
|
||
// Subscription - an entity that signifies the fact | ||
// of subscribing to the tariff of any team for a certain period | ||
// (not defined, in the case of the default tariff) | ||
type Subscription struct { | ||
// Subscription id | ||
Uid string `json:"uid"` | ||
// Subscription activation time | ||
Activated *time.Time `json:"activated,omitempty"` | ||
// Subscription expiration time | ||
Expires *time.Time `json:"expires,omitempty"` | ||
// ID of the tariff for which the subscription is valid | ||
TariffUid string `json:"tariff_uid,omitempty"` | ||
// ID of the user who subscribed | ||
UserUid string `json:"user_uid,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters