square_api_client/models/wage_setting.rs
1//! Model struct for WageSetting type
2
3use serde::{Deserialize, Serialize};
4
5use super::{DateTime, JobAssignment};
6
7/// An object representing a team member's wage information.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct WageSetting {
10 /// The unique ID of the `TeamMember` whom this wage setting describes.
11 pub team_member_id: Option<String>,
12 /// Required. The ordered list of jobs that the team member is assigned to. The first job
13 /// assignment is considered the team member's primary job.
14 ///
15 /// The minimum length is 1 and the maximum length is 12.
16 pub job_assignments: Vec<JobAssignment>,
17 /// Whether the team member is exempt from the overtime rules of the seller's country.
18 pub is_overtime_exempt: Option<bool>,
19 /// Used for resolving concurrency issues. The request fails if the version provided does not
20 /// match the server version at the time of the request. If not provided, Square executes a
21 /// blind write, potentially overwriting data from another write. For more information, see
22 /// [optimistic
23 /// concurrency](https://developer.squareup.com/docs/working-with-apis/optimistic-concurrency).
24 pub version: Option<i32>,
25 /// **Read only** The timestamp, in RFC 3339 format, describing when the wage setting object was
26 /// created.
27 pub created_at: Option<DateTime>,
28 /// **Read only** The timestamp, in RFC 3339 format, describing when the wage setting object was
29 /// last updated.
30 pub updated_at: Option<DateTime>,
31}