-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbilling_change_tariff.go
37 lines (30 loc) · 1.44 KB
/
billing_change_tariff.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package tdproto
import "time"
// ChangeTariffBilling struct of changes tariffs by personal account
type ChangeTariffBilling struct {
TariffId string `json:"tariff_id"` // TODO: must be int64
OpenDate time.Time `json:"open_date,omitempty"`
CloseDate time.Time `json:"close_date,omitempty"`
CreateDate time.Time `json:"create_date,omitempty"`
}
// GetChangesTariffsByPersonalAccountResponse response on get changes tariffs by personal account
type GetChangesTariffsByPersonalAccountResponse struct {
TariffsChanges []ChangeTariffBilling `json:"tariffs_changes,omitempty"`
}
// CreateChangeTariffOnPersonalAccountRequest request on create change tariff on personal account
type CreateChangeTariffOnPersonalAccountRequest struct {
TariffId string `json:"tariff_id"` // TODO: must be int64
OpenDate time.Time `json:"open_date,omitempty"`
}
// CreateChangeTariffOnPersonalAccountResponse response on create change tariff on personal account
type CreateChangeTariffOnPersonalAccountResponse struct {
Success bool `json:"success,omitempty"`
}
// DeleteChangeTariffOnPersonalAccountRequest request on delete change tariff on personal account
type DeleteChangeTariffOnPersonalAccountRequest struct {
TariffId string `json:"tariff_id"` // TODO: must be int64
}
// DeleteChangeTariffOnPersonalAccountResponse response on delete change tariff om personal account
type DeleteChangeTariffOnPersonalAccountResponse struct {
Success bool `json:"success,omitempty"`
}