square_api_client/models/
team_member.rs

1//! Model struct for TeamMember type
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::TeamMemberStatus, DateTime, TeamMemberAssignedLocations};
6
7/// A record representing an individual team member for a business.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct TeamMember {
10    /// **Read only** The unique ID for the team member.
11    pub id: Option<String>,
12    /// A second ID used to associate the team member with an entity in another system.
13    pub reference_id: Option<String>,
14    /// **Read only** Whether the team member is the owner of the Square account.
15    pub is_owner: Option<bool>,
16    /// Describes the status of the team member.
17    pub status: Option<TeamMemberStatus>,
18    /// The given name (that is, the first name) associated with the team member.
19    pub given_name: Option<String>,
20    /// The family name (that is, the last name) associated with the team member.
21    pub family_name: Option<String>,
22    /// The email address associated with the team member.
23    pub email_address: Option<String>,
24    /// The team member's phone number, in E.164 format. For example: +14155552671 - the country
25    /// code is 1 for US +551155256325 - the country code is 55 for BR
26    pub phone_number: Option<String>,
27    /// **Read only** The timestamp, in RFC 3339 format, describing when the team member was
28    /// created.
29    pub created_at: Option<DateTime>,
30    /// **Read only** The timestamp, in RFC 3339 format, describing when the team member was last
31    /// updated.
32    pub updated_at: Option<DateTime>,
33    /// Describes the team member's assigned locations.
34    pub assigned_locations: Option<TeamMemberAssignedLocations>,
35}