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

     1  package tdproto
     2  
     3  type ResponsiblePerson struct {
     4  	Id          string  `json:"id"`
     5  	DisplayName string  `json:"display_name"`
     6  	FirstName   string  `json:"first_name"`
     7  	LastName    string  `json:"last_name"`
     8  	Patronymic  *string `json:"patronymic,omitempty"`
     9  	Phone       string  `json:"phone"`
    10  	Email       string  `json:"email"`
    11  	HeldPost    *string `json:"held_post,omitempty"`
    12  }
    13  
    14  type ResponsiblePersonCreateRequest struct {
    15  	FirstName  string  `json:"first_name"`
    16  	LastName   string  `json:"last_name"`
    17  	Patronymic *string `json:"patronymic,omitempty"`
    18  	Phone      string  `json:"phone"`
    19  	Email      string  `json:"email"`
    20  	HeldPost   *string `json:"held_post,omitempty"`
    21  }
    22  
    23  type ResponsiblePersonCreateResponse struct {
    24  	ResponsiblePerson
    25  }
    26  
    27  type ResponsiblePersonUpdateRequest struct {
    28  	Id          string  `json:"id"`
    29  	DisplayName string  `json:"display_name"`
    30  	FirstName   string  `json:"first_name"`
    31  	LastName    string  `json:"last_name"`
    32  	Patronymic  *string `json:"patronymic,omitempty"`
    33  	Phone       string  `json:"phone"`
    34  	Email       string  `json:"email"`
    35  	HeldPost    *string `json:"held_post,omitempty"`
    36  }
    37  
    38  type ResponsiblePersonUpdateResponse struct {
    39  	ResponsiblePerson
    40  }
    41  
    42  type ResponsiblePersonGetRequest struct {
    43  	ResponsiblePersonIds string `json:"responsible_person_ids"`
    44  }
    45  
    46  type ResponsiblePersonGetListRequest struct {
    47  	Limit  *uint32 `json:"limit,omitempty"`
    48  	Offset *uint64 `json:"offset,omitempty"`
    49  }
    50  
    51  type ResponsiblePersonGetResponse struct {
    52  	ResponsiblePersonList []ResponsiblePerson `json:"responsible_person_list"`
    53  }
    54  
    55  type ResponsiblePersonDeleteRequest struct {
    56  	Id string `json:"id"`
    57  }