github.com/tada-team/tdproto@v1.51.57/billing_change_tariff.go (about)

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