-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathEmployeePayTemplate.java
More file actions
150 lines (134 loc) · 3.7 KB
/
EmployeePayTemplate.java
File metadata and controls
150 lines (134 loc) · 3.7 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* Xero Payroll NZ
* This is the Xero Payroll API for orgs in the NZ region.
*
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.xero.models.payrollnz;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
/** EmployeePayTemplate */
public class EmployeePayTemplate {
StringUtil util = new StringUtil();
@JsonProperty("employeeID")
private UUID employeeID;
@JsonProperty("earningTemplates")
private List<EarningsTemplate> earningTemplates = new ArrayList<EarningsTemplate>();
/**
* Unique identifier for the employee
*
* @param employeeID UUID
* @return EmployeePayTemplate
*/
public EmployeePayTemplate employeeID(UUID employeeID) {
this.employeeID = employeeID;
return this;
}
/**
* Unique identifier for the employee
*
* @return employeeID
*/
@ApiModelProperty(value = "Unique identifier for the employee")
/**
* Unique identifier for the employee
*
* @return employeeID UUID
*/
public UUID getEmployeeID() {
return employeeID;
}
/**
* Unique identifier for the employee
*
* @param employeeID UUID
*/
public void setEmployeeID(UUID employeeID) {
this.employeeID = employeeID;
}
/**
* earningTemplates
*
* @param earningTemplates List<EarningsTemplate>
* @return EmployeePayTemplate
*/
public EmployeePayTemplate earningTemplates(List<EarningsTemplate> earningTemplates) {
this.earningTemplates = earningTemplates;
return this;
}
/**
* earningTemplates
*
* @param earningTemplatesItem EarningsTemplate
* @return EmployeePayTemplate
*/
public EmployeePayTemplate addEarningTemplatesItem(EarningsTemplate earningTemplatesItem) {
this.earningTemplates.add(earningTemplatesItem);
return this;
}
/**
* Get earningTemplates
*
* @return earningTemplates
*/
@ApiModelProperty(required = true, value = "")
/**
* earningTemplates
*
* @return earningTemplates List<EarningsTemplate>
*/
public List<EarningsTemplate> getEarningTemplates() {
return earningTemplates;
}
/**
* earningTemplates
*
* @param earningTemplates List<EarningsTemplate>
*/
public void setEarningTemplates(List<EarningsTemplate> earningTemplates) {
this.earningTemplates = earningTemplates;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmployeePayTemplate employeePayTemplate = (EmployeePayTemplate) o;
return Objects.equals(this.employeeID, employeePayTemplate.employeeID)
&& Objects.equals(this.earningTemplates, employeePayTemplate.earningTemplates);
}
@Override
public int hashCode() {
return Objects.hash(employeeID, earningTemplates);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmployeePayTemplate {\n");
sb.append(" employeeID: ").append(toIndentedString(employeeID)).append("\n");
sb.append(" earningTemplates: ").append(toIndentedString(earningTemplates)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}