merge_hris_client 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/BankInfo.md +3 -1
  4. data/docs/Benefit.md +3 -1
  5. data/docs/Company.md +3 -1
  6. data/docs/Deduction.md +3 -1
  7. data/docs/Earning.md +4 -2
  8. data/docs/Employee.md +3 -1
  9. data/docs/EmployeePayrollRun.md +3 -1
  10. data/docs/EmployeesApi.md +8 -0
  11. data/docs/Employment.md +4 -2
  12. data/docs/EndUserDetailsRequest.md +1 -1
  13. data/docs/ForceResyncApi.md +4 -4
  14. data/docs/Group.md +3 -1
  15. data/docs/LinkedAccountsApi.md +14 -14
  16. data/docs/Location.md +4 -2
  17. data/docs/PayGroup.md +3 -1
  18. data/docs/PayrollRun.md +3 -1
  19. data/docs/Tax.md +4 -2
  20. data/docs/Team.md +3 -1
  21. data/docs/TimeOff.md +3 -1
  22. data/docs/TimeOffBalance.md +3 -1
  23. data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
  24. data/lib/merge_hris_client/api/employees_api.rb +16 -0
  25. data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
  26. data/lib/merge_hris_client/api/linked_accounts_api.rb +14 -14
  27. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
  28. data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
  29. data/lib/merge_hris_client/models/bank_info.rb +15 -5
  30. data/lib/merge_hris_client/models/benefit.rb +15 -5
  31. data/lib/merge_hris_client/models/categories_enum.rb +2 -1
  32. data/lib/merge_hris_client/models/category_enum.rb +2 -1
  33. data/lib/merge_hris_client/models/company.rb +15 -5
  34. data/lib/merge_hris_client/models/country_enum.rb +0 -1
  35. data/lib/merge_hris_client/models/deduction.rb +15 -5
  36. data/lib/merge_hris_client/models/earning.rb +18 -6
  37. data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
  38. data/lib/merge_hris_client/models/employee.rb +14 -5
  39. data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
  40. data/lib/merge_hris_client/models/employment.rb +15 -5
  41. data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
  42. data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
  43. data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
  44. data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
  45. data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
  46. data/lib/merge_hris_client/models/gender_enum.rb +0 -1
  47. data/lib/merge_hris_client/models/group.rb +15 -5
  48. data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
  49. data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
  50. data/lib/merge_hris_client/models/location.rb +15 -5
  51. data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
  52. data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
  53. data/lib/merge_hris_client/models/method_enum.rb +0 -1
  54. data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
  55. data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
  56. data/lib/merge_hris_client/models/pay_group.rb +15 -5
  57. data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
  58. data/lib/merge_hris_client/models/payroll_run.rb +15 -5
  59. data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
  60. data/lib/merge_hris_client/models/reason_enum.rb +0 -1
  61. data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
  62. data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
  63. data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
  64. data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
  65. data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
  66. data/lib/merge_hris_client/models/tax.rb +18 -6
  67. data/lib/merge_hris_client/models/team.rb +15 -5
  68. data/lib/merge_hris_client/models/time_off.rb +14 -5
  69. data/lib/merge_hris_client/models/time_off_balance.rb +15 -5
  70. data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
  71. data/lib/merge_hris_client/models/units_enum.rb +0 -1
  72. data/lib/merge_hris_client/version.rb +1 -1
  73. data/spec/api/employees_api_spec.rb +4 -0
  74. data/spec/api/force_resync_api_spec.rb +1 -1
  75. data/spec/api/linked_accounts_api_spec.rb +7 -7
  76. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  77. data/spec/models/bank_info_spec.rb +6 -0
  78. data/spec/models/benefit_spec.rb +6 -0
  79. data/spec/models/company_spec.rb +6 -0
  80. data/spec/models/deduction_spec.rb +6 -0
  81. data/spec/models/earning_spec.rb +6 -0
  82. data/spec/models/employee_payroll_run_spec.rb +6 -0
  83. data/spec/models/employee_spec.rb +6 -0
  84. data/spec/models/employment_spec.rb +6 -0
  85. data/spec/models/group_spec.rb +6 -0
  86. data/spec/models/linked_account_status_spec.rb +40 -0
  87. data/spec/models/location_spec.rb +6 -0
  88. data/spec/models/meta_response_spec.rb +52 -0
  89. data/spec/models/pay_group_spec.rb +6 -0
  90. data/spec/models/payroll_run_spec.rb +6 -0
  91. data/spec/models/tax_spec.rb +6 -0
  92. data/spec/models/team_spec.rb +6 -0
  93. data/spec/models/time_off_balance_spec.rb +6 -0
  94. data/spec/models/time_off_spec.rb +6 -0
  95. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  96. data/spec/models/webhook_receiver_spec.rb +46 -0
  97. metadata +107 -110
  98. data/docs/BenefitPlanTypeEnum.md +0 -15
  99. data/docs/TypeEnum.md +0 -15
  100. data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
  101. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
  102. data/lib/merge_hris_client/models/data_passthrough.rb +0 -262
  103. data/lib/merge_hris_client/models/end_user_details.rb +0 -289
  104. data/lib/merge_hris_client/models/remote_key_for_regeneration.rb +0 -224
  105. data/lib/merge_hris_client/models/state_enum.rb +0 -93
  106. data/lib/merge_hris_client/models/type_enum.rb +0 -38
  107. data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
  108. data/spec/models/type_enum_spec.rb +0 -28
@@ -23,14 +23,14 @@ module MergeHRISClient
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @option opts [String] :category
25
25
  # @option opts [String] :cursor The pagination cursor value.
26
- # @option opts [String] :end_user_email_address
27
- # @option opts [String] :end_user_organization_name
28
- # @option opts [String] :end_user_origin_id
29
- # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
26
+ # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
27
+ # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
28
+ # @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
29
+ # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
30
30
  # @option opts [String] :id
31
- # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
32
- # @option opts [String] :integration_name
33
- # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
31
+ # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
32
+ # @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
33
+ # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
36
36
  # @return [PaginatedAccountDetailsAndActionsList]
@@ -43,14 +43,14 @@ module MergeHRISClient
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :category
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
- # @option opts [String] :end_user_email_address
47
- # @option opts [String] :end_user_organization_name
48
- # @option opts [String] :end_user_origin_id
49
- # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
46
+ # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
47
+ # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
48
+ # @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
49
+ # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
50
50
  # @option opts [String] :id
51
- # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
52
- # @option opts [String] :integration_name
53
- # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
51
+ # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
52
+ # @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
53
+ # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
54
54
  # @option opts [Integer] :page_size Number of results to return per page.
55
55
  # @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
56
56
  # @return [Array<(PaginatedAccountDetailsAndActionsList, Integer, Hash)>] PaginatedAccountDetailsAndActionsList data, response status code and response headers
@@ -33,5 +33,4 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
-
37
36
  end
@@ -32,5 +32,4 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
-
36
35
  end
@@ -40,6 +40,9 @@ module MergeHRISClient
40
40
 
41
41
  attr_accessor :remote_data
42
42
 
43
+ # Indicates whether or not this object has been deleted on the third-party.
44
+ attr_accessor :remote_was_deleted
45
+
43
46
  # Attribute mapping from ruby-style variable name to JSON key.
44
47
  def self.attribute_map
45
48
  {
@@ -51,7 +54,8 @@ module MergeHRISClient
51
54
  :'bank_name' => :'bank_name',
52
55
  :'account_type' => :'account_type',
53
56
  :'remote_created_at' => :'remote_created_at',
54
- :'remote_data' => :'remote_data'
57
+ :'remote_data' => :'remote_data',
58
+ :'remote_was_deleted' => :'remote_was_deleted'
55
59
  }
56
60
  end
57
61
 
@@ -71,7 +75,8 @@ module MergeHRISClient
71
75
  :'bank_name' => :'String',
72
76
  :'account_type' => :'AccountTypeEnum',
73
77
  :'remote_created_at' => :'Time',
74
- :'remote_data' => :'Array<RemoteData>'
78
+ :'remote_data' => :'Array<RemoteData>',
79
+ :'remote_was_deleted' => :'Boolean'
75
80
  }
76
81
  end
77
82
 
@@ -85,7 +90,7 @@ module MergeHRISClient
85
90
  :'bank_name',
86
91
  :'account_type',
87
92
  :'remote_created_at',
88
- :'remote_data'
93
+ :'remote_data',
89
94
  ])
90
95
  end
91
96
 
@@ -141,6 +146,10 @@ module MergeHRISClient
141
146
  self.remote_data = value
142
147
  end
143
148
  end
149
+
150
+ if attributes.key?(:'remote_was_deleted')
151
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
152
+ end
144
153
  end
145
154
 
146
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -184,7 +193,8 @@ module MergeHRISClient
184
193
  bank_name == o.bank_name &&
185
194
  account_type == o.account_type &&
186
195
  remote_created_at == o.remote_created_at &&
187
- remote_data == o.remote_data
196
+ remote_data == o.remote_data &&
197
+ remote_was_deleted == o.remote_was_deleted
188
198
  end
189
199
 
190
200
  # @see the `==` method
@@ -196,7 +206,7 @@ module MergeHRISClient
196
206
  # Calculates hash code according to all attributes.
197
207
  # @return [Integer] Hash code
198
208
  def hash
199
- [id, remote_id, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_data].hash
209
+ [id, remote_id, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_data, remote_was_deleted].hash
200
210
  end
201
211
 
202
212
  # Builds the object from hash
@@ -37,6 +37,9 @@ module MergeHRISClient
37
37
 
38
38
  attr_accessor :remote_data
39
39
 
40
+ # Indicates whether or not this object has been deleted on the third-party.
41
+ attr_accessor :remote_was_deleted
42
+
40
43
  # Attribute mapping from ruby-style variable name to JSON key.
41
44
  def self.attribute_map
42
45
  {
@@ -47,7 +50,8 @@ module MergeHRISClient
47
50
  :'benefit_plan_type' => :'benefit_plan_type',
48
51
  :'employee_contribution' => :'employee_contribution',
49
52
  :'company_contribution' => :'company_contribution',
50
- :'remote_data' => :'remote_data'
53
+ :'remote_data' => :'remote_data',
54
+ :'remote_was_deleted' => :'remote_was_deleted'
51
55
  }
52
56
  end
53
57
 
@@ -66,7 +70,8 @@ module MergeHRISClient
66
70
  :'benefit_plan_type' => :'String',
67
71
  :'employee_contribution' => :'Float',
68
72
  :'company_contribution' => :'Float',
69
- :'remote_data' => :'Array<RemoteData>'
73
+ :'remote_data' => :'Array<RemoteData>',
74
+ :'remote_was_deleted' => :'Boolean'
70
75
  }
71
76
  end
72
77
 
@@ -79,7 +84,7 @@ module MergeHRISClient
79
84
  :'benefit_plan_type',
80
85
  :'employee_contribution',
81
86
  :'company_contribution',
82
- :'remote_data'
87
+ :'remote_data',
83
88
  ])
84
89
  end
85
90
 
@@ -131,6 +136,10 @@ module MergeHRISClient
131
136
  self.remote_data = value
132
137
  end
133
138
  end
139
+
140
+ if attributes.key?(:'remote_was_deleted')
141
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
142
+ end
134
143
  end
135
144
 
136
145
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -158,7 +167,8 @@ module MergeHRISClient
158
167
  benefit_plan_type == o.benefit_plan_type &&
159
168
  employee_contribution == o.employee_contribution &&
160
169
  company_contribution == o.company_contribution &&
161
- remote_data == o.remote_data
170
+ remote_data == o.remote_data &&
171
+ remote_was_deleted == o.remote_was_deleted
162
172
  end
163
173
 
164
174
  # @see the `==` method
@@ -170,7 +180,7 @@ module MergeHRISClient
170
180
  # Calculates hash code according to all attributes.
171
181
  # @return [Integer] Hash code
172
182
  def hash
173
- [id, remote_id, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, remote_data].hash
183
+ [id, remote_id, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, remote_data, remote_was_deleted].hash
174
184
  end
175
185
 
176
186
  # Builds the object from hash
@@ -18,6 +18,8 @@ module MergeHRISClient
18
18
  HRIS = "hris".freeze
19
19
  ATS = "ats".freeze
20
20
  ACCOUNTING = "accounting".freeze
21
+ TICKETING = "ticketing".freeze
22
+ CRM = "crm".freeze
21
23
 
22
24
  # Builds the enum from string
23
25
  # @param [String] The enum value in the form of the string
@@ -33,5 +35,4 @@ module MergeHRISClient
33
35
  value
34
36
  end
35
37
  end
36
-
37
38
  end
@@ -18,6 +18,8 @@ module MergeHRISClient
18
18
  HRIS = "hris".freeze
19
19
  ATS = "ats".freeze
20
20
  ACCOUNTING = "accounting".freeze
21
+ TICKETING = "ticketing".freeze
22
+ CRM = "crm".freeze
21
23
 
22
24
  # Builds the enum from string
23
25
  # @param [String] The enum value in the form of the string
@@ -33,5 +35,4 @@ module MergeHRISClient
33
35
  value
34
36
  end
35
37
  end
36
-
37
38
  end
@@ -32,6 +32,9 @@ module MergeHRISClient
32
32
 
33
33
  attr_accessor :remote_data
34
34
 
35
+ # Indicates whether or not this object has been deleted on the third-party.
36
+ attr_accessor :remote_was_deleted
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module MergeHRISClient
40
43
  :'legal_name' => :'legal_name',
41
44
  :'display_name' => :'display_name',
42
45
  :'eins' => :'eins',
43
- :'remote_data' => :'remote_data'
46
+ :'remote_data' => :'remote_data',
47
+ :'remote_was_deleted' => :'remote_was_deleted'
44
48
  }
45
49
  end
46
50
 
@@ -57,7 +61,8 @@ module MergeHRISClient
57
61
  :'legal_name' => :'String',
58
62
  :'display_name' => :'String',
59
63
  :'eins' => :'Array<String>',
60
- :'remote_data' => :'Array<RemoteData>'
64
+ :'remote_data' => :'Array<RemoteData>',
65
+ :'remote_was_deleted' => :'Boolean'
61
66
  }
62
67
  end
63
68
 
@@ -68,7 +73,7 @@ module MergeHRISClient
68
73
  :'legal_name',
69
74
  :'display_name',
70
75
  :'eins',
71
- :'remote_data'
76
+ :'remote_data',
72
77
  ])
73
78
  end
74
79
 
@@ -114,6 +119,10 @@ module MergeHRISClient
114
119
  self.remote_data = value
115
120
  end
116
121
  end
122
+
123
+ if attributes.key?(:'remote_was_deleted')
124
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
125
+ end
117
126
  end
118
127
 
119
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,7 +148,8 @@ module MergeHRISClient
139
148
  legal_name == o.legal_name &&
140
149
  display_name == o.display_name &&
141
150
  eins == o.eins &&
142
- remote_data == o.remote_data
151
+ remote_data == o.remote_data &&
152
+ remote_was_deleted == o.remote_was_deleted
143
153
  end
144
154
 
145
155
  # @see the `==` method
@@ -151,7 +161,7 @@ module MergeHRISClient
151
161
  # Calculates hash code according to all attributes.
152
162
  # @return [Integer] Hash code
153
163
  def hash
154
- [id, remote_id, legal_name, display_name, eins, remote_data].hash
164
+ [id, remote_id, legal_name, display_name, eins, remote_data, remote_was_deleted].hash
155
165
  end
156
166
 
157
167
  # Builds the object from hash
@@ -279,5 +279,4 @@ module MergeHRISClient
279
279
  value
280
280
  end
281
281
  end
282
-
283
282
  end
@@ -31,6 +31,9 @@ module MergeHRISClient
31
31
 
32
32
  attr_accessor :remote_data
33
33
 
34
+ # Indicates whether or not this object has been deleted on the third-party.
35
+ attr_accessor :remote_was_deleted
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  def self.attribute_map
36
39
  {
@@ -39,7 +42,8 @@ module MergeHRISClient
39
42
  :'name' => :'name',
40
43
  :'employee_deduction' => :'employee_deduction',
41
44
  :'company_deduction' => :'company_deduction',
42
- :'remote_data' => :'remote_data'
45
+ :'remote_data' => :'remote_data',
46
+ :'remote_was_deleted' => :'remote_was_deleted'
43
47
  }
44
48
  end
45
49
 
@@ -56,7 +60,8 @@ module MergeHRISClient
56
60
  :'name' => :'String',
57
61
  :'employee_deduction' => :'Float',
58
62
  :'company_deduction' => :'Float',
59
- :'remote_data' => :'Array<RemoteData>'
63
+ :'remote_data' => :'Array<RemoteData>',
64
+ :'remote_was_deleted' => :'Boolean'
60
65
  }
61
66
  end
62
67
 
@@ -67,7 +72,7 @@ module MergeHRISClient
67
72
  :'name',
68
73
  :'employee_deduction',
69
74
  :'company_deduction',
70
- :'remote_data'
75
+ :'remote_data',
71
76
  ])
72
77
  end
73
78
 
@@ -111,6 +116,10 @@ module MergeHRISClient
111
116
  self.remote_data = value
112
117
  end
113
118
  end
119
+
120
+ if attributes.key?(:'remote_was_deleted')
121
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
122
+ end
114
123
  end
115
124
 
116
125
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -136,7 +145,8 @@ module MergeHRISClient
136
145
  name == o.name &&
137
146
  employee_deduction == o.employee_deduction &&
138
147
  company_deduction == o.company_deduction &&
139
- remote_data == o.remote_data
148
+ remote_data == o.remote_data &&
149
+ remote_was_deleted == o.remote_was_deleted
140
150
  end
141
151
 
142
152
  # @see the `==` method
@@ -148,7 +158,7 @@ module MergeHRISClient
148
158
  # Calculates hash code according to all attributes.
149
159
  # @return [Integer] Hash code
150
160
  def hash
151
- [id, employee_payroll_run, name, employee_deduction, company_deduction, remote_data].hash
161
+ [id, employee_payroll_run, name, employee_deduction, company_deduction, remote_data, remote_was_deleted].hash
152
162
  end
153
163
 
154
164
  # Builds the object from hash
@@ -28,6 +28,9 @@ module MergeHRISClient
28
28
 
29
29
  attr_accessor :remote_data
30
30
 
31
+ # Indicates whether or not this object has been deleted on the third-party.
32
+ attr_accessor :remote_was_deleted
33
+
31
34
  # Attribute mapping from ruby-style variable name to JSON key.
32
35
  def self.attribute_map
33
36
  {
@@ -35,7 +38,8 @@ module MergeHRISClient
35
38
  :'employee_payroll_run' => :'employee_payroll_run',
36
39
  :'amount' => :'amount',
37
40
  :'type' => :'type',
38
- :'remote_data' => :'remote_data'
41
+ :'remote_data' => :'remote_data',
42
+ :'remote_was_deleted' => :'remote_was_deleted'
39
43
  }
40
44
  end
41
45
 
@@ -51,7 +55,8 @@ module MergeHRISClient
51
55
  :'employee_payroll_run' => :'String',
52
56
  :'amount' => :'Float',
53
57
  :'type' => :'EarningTypeEnum',
54
- :'remote_data' => :'String'
58
+ :'remote_data' => :'Array<Hash<String, AnyType>>',
59
+ :'remote_was_deleted' => :'Boolean'
55
60
  }
56
61
  end
57
62
 
@@ -61,7 +66,7 @@ module MergeHRISClient
61
66
  :'employee_payroll_run',
62
67
  :'amount',
63
68
  :'type',
64
- :'remote_data'
69
+ :'remote_data',
65
70
  ])
66
71
  end
67
72
 
@@ -97,7 +102,13 @@ module MergeHRISClient
97
102
  end
98
103
 
99
104
  if attributes.key?(:'remote_data')
100
- self.remote_data = attributes[:'remote_data']
105
+ if (value = attributes[:'remote_data']).is_a?(Array)
106
+ self.remote_data = value
107
+ end
108
+ end
109
+
110
+ if attributes.key?(:'remote_was_deleted')
111
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
101
112
  end
102
113
  end
103
114
 
@@ -123,7 +134,8 @@ module MergeHRISClient
123
134
  employee_payroll_run == o.employee_payroll_run &&
124
135
  amount == o.amount &&
125
136
  type == o.type &&
126
- remote_data == o.remote_data
137
+ remote_data == o.remote_data &&
138
+ remote_was_deleted == o.remote_was_deleted
127
139
  end
128
140
 
129
141
  # @see the `==` method
@@ -135,7 +147,7 @@ module MergeHRISClient
135
147
  # Calculates hash code according to all attributes.
136
148
  # @return [Integer] Hash code
137
149
  def hash
138
- [id, employee_payroll_run, amount, type, remote_data].hash
150
+ [id, employee_payroll_run, amount, type, remote_data, remote_was_deleted].hash
139
151
  end
140
152
 
141
153
  # Builds the object from hash
@@ -34,5 +34,4 @@ module MergeHRISClient
34
34
  value
35
35
  end
36
36
  end
37
-
38
37
  end
@@ -94,6 +94,8 @@ module MergeHRISClient
94
94
  # Custom fields configured for a given model.
95
95
  attr_accessor :custom_fields
96
96
 
97
+ attr_accessor :remote_was_deleted
98
+
97
99
  # Attribute mapping from ruby-style variable name to JSON key.
98
100
  def self.attribute_map
99
101
  {
@@ -125,7 +127,8 @@ module MergeHRISClient
125
127
  :'termination_date' => :'termination_date',
126
128
  :'avatar' => :'avatar',
127
129
  :'remote_data' => :'remote_data',
128
- :'custom_fields' => :'custom_fields'
130
+ :'custom_fields' => :'custom_fields',
131
+ :'remote_was_deleted' => :'remote_was_deleted'
129
132
  }
130
133
  end
131
134
 
@@ -165,7 +168,8 @@ module MergeHRISClient
165
168
  :'termination_date' => :'Time',
166
169
  :'avatar' => :'String',
167
170
  :'remote_data' => :'Array<RemoteData>',
168
- :'custom_fields' => :'Hash<String, AnyType>'
171
+ :'custom_fields' => :'Hash<String, AnyType>',
172
+ :'remote_was_deleted' => :'Boolean'
169
173
  }
170
174
  end
171
175
 
@@ -197,7 +201,7 @@ module MergeHRISClient
197
201
  :'termination_date',
198
202
  :'avatar',
199
203
  :'remote_data',
200
- :'custom_fields'
204
+ :'custom_fields',
201
205
  ])
202
206
  end
203
207
 
@@ -339,6 +343,10 @@ module MergeHRISClient
339
343
  self.custom_fields = value
340
344
  end
341
345
  end
346
+
347
+ if attributes.key?(:'remote_was_deleted')
348
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
349
+ end
342
350
  end
343
351
 
344
352
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -447,7 +455,8 @@ module MergeHRISClient
447
455
  termination_date == o.termination_date &&
448
456
  avatar == o.avatar &&
449
457
  remote_data == o.remote_data &&
450
- custom_fields == o.custom_fields
458
+ custom_fields == o.custom_fields &&
459
+ remote_was_deleted == o.remote_was_deleted
451
460
  end
452
461
 
453
462
  # @see the `==` method
@@ -459,7 +468,7 @@ module MergeHRISClient
459
468
  # Calculates hash code according to all attributes.
460
469
  # @return [Integer] Hash code
461
470
  def hash
462
- [id, remote_id, employee_number, company, first_name, last_name, display_full_name, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar, remote_data, custom_fields].hash
471
+ [id, remote_id, employee_number, company, first_name, last_name, display_full_name, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar, remote_data, custom_fields, remote_was_deleted].hash
463
472
  end
464
473
 
465
474
  # Builds the object from hash
@@ -48,6 +48,9 @@ module MergeHRISClient
48
48
 
49
49
  attr_accessor :remote_data
50
50
 
51
+ # Indicates whether or not this object has been deleted on the third-party.
52
+ attr_accessor :remote_was_deleted
53
+
51
54
  # Attribute mapping from ruby-style variable name to JSON key.
52
55
  def self.attribute_map
53
56
  {
@@ -63,7 +66,8 @@ module MergeHRISClient
63
66
  :'earnings' => :'earnings',
64
67
  :'deductions' => :'deductions',
65
68
  :'taxes' => :'taxes',
66
- :'remote_data' => :'remote_data'
69
+ :'remote_data' => :'remote_data',
70
+ :'remote_was_deleted' => :'remote_was_deleted'
67
71
  }
68
72
  end
69
73
 
@@ -87,7 +91,8 @@ module MergeHRISClient
87
91
  :'earnings' => :'Array<Earning>',
88
92
  :'deductions' => :'Array<Deduction>',
89
93
  :'taxes' => :'Array<Tax>',
90
- :'remote_data' => :'Array<RemoteData>'
94
+ :'remote_data' => :'Array<RemoteData>',
95
+ :'remote_was_deleted' => :'Boolean'
91
96
  }
92
97
  end
93
98
 
@@ -102,7 +107,7 @@ module MergeHRISClient
102
107
  :'start_date',
103
108
  :'end_date',
104
109
  :'check_date',
105
- :'remote_data'
110
+ :'remote_data',
106
111
  ])
107
112
  end
108
113
 
@@ -180,6 +185,10 @@ module MergeHRISClient
180
185
  self.remote_data = value
181
186
  end
182
187
  end
188
+
189
+ if attributes.key?(:'remote_was_deleted')
190
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
191
+ end
183
192
  end
184
193
 
185
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +221,8 @@ module MergeHRISClient
212
221
  earnings == o.earnings &&
213
222
  deductions == o.deductions &&
214
223
  taxes == o.taxes &&
215
- remote_data == o.remote_data
224
+ remote_data == o.remote_data &&
225
+ remote_was_deleted == o.remote_was_deleted
216
226
  end
217
227
 
218
228
  # @see the `==` method
@@ -224,7 +234,7 @@ module MergeHRISClient
224
234
  # Calculates hash code according to all attributes.
225
235
  # @return [Integer] Hash code
226
236
  def hash
227
- [id, remote_id, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_data].hash
237
+ [id, remote_id, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_data, remote_was_deleted].hash
228
238
  end
229
239
 
230
240
  # Builds the object from hash
@@ -51,6 +51,9 @@ module MergeHRISClient
51
51
 
52
52
  attr_accessor :remote_data
53
53
 
54
+ # Indicates whether or not this object has been deleted on the third-party.
55
+ attr_accessor :remote_was_deleted
56
+
54
57
  # Attribute mapping from ruby-style variable name to JSON key.
55
58
  def self.attribute_map
56
59
  {
@@ -66,7 +69,8 @@ module MergeHRISClient
66
69
  :'flsa_status' => :'flsa_status',
67
70
  :'effective_date' => :'effective_date',
68
71
  :'employment_type' => :'employment_type',
69
- :'remote_data' => :'remote_data'
72
+ :'remote_data' => :'remote_data',
73
+ :'remote_was_deleted' => :'remote_was_deleted'
70
74
  }
71
75
  end
72
76
 
@@ -90,7 +94,8 @@ module MergeHRISClient
90
94
  :'flsa_status' => :'FlsaStatusEnum',
91
95
  :'effective_date' => :'Time',
92
96
  :'employment_type' => :'EmploymentTypeEnum',
93
- :'remote_data' => :'Array<RemoteData>'
97
+ :'remote_data' => :'Array<RemoteData>',
98
+ :'remote_was_deleted' => :'Boolean'
94
99
  }
95
100
  end
96
101
 
@@ -108,7 +113,7 @@ module MergeHRISClient
108
113
  :'flsa_status',
109
114
  :'effective_date',
110
115
  :'employment_type',
111
- :'remote_data'
116
+ :'remote_data',
112
117
  ])
113
118
  end
114
119
 
@@ -180,6 +185,10 @@ module MergeHRISClient
180
185
  self.remote_data = value
181
186
  end
182
187
  end
188
+
189
+ if attributes.key?(:'remote_was_deleted')
190
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
191
+ end
183
192
  end
184
193
 
185
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +221,8 @@ module MergeHRISClient
212
221
  flsa_status == o.flsa_status &&
213
222
  effective_date == o.effective_date &&
214
223
  employment_type == o.employment_type &&
215
- remote_data == o.remote_data
224
+ remote_data == o.remote_data &&
225
+ remote_was_deleted == o.remote_was_deleted
216
226
  end
217
227
 
218
228
  # @see the `==` method
@@ -224,7 +234,7 @@ module MergeHRISClient
224
234
  # Calculates hash code according to all attributes.
225
235
  # @return [Integer] Hash code
226
236
  def hash
227
- [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_data].hash
237
+ [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_data, remote_was_deleted].hash
228
238
  end
229
239
 
230
240
  # Builds the object from hash
@@ -33,5 +33,4 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
-
37
36
  end
@@ -35,5 +35,4 @@ module MergeHRISClient
35
35
  value
36
36
  end
37
37
  end
38
-
39
38
  end
@@ -32,5 +32,4 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
-
36
35
  end
@@ -38,5 +38,4 @@ module MergeHRISClient
38
38
  value
39
39
  end
40
40
  end
41
-
42
41
  end