merge_hris_client 2.0.0 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/AccountDetails.md +5 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/AccountDetailsApi.md +8 -5
  6. data/docs/BankInfo.md +3 -1
  7. data/docs/Benefit.md +3 -1
  8. data/docs/Company.md +5 -3
  9. data/docs/DataPassthroughRequest.md +1 -1
  10. data/docs/Deduction.md +3 -1
  11. data/docs/Earning.md +4 -2
  12. data/docs/Employee.md +11 -9
  13. data/docs/EmployeePayrollRun.md +3 -1
  14. data/docs/EmployeeRequest.md +8 -8
  15. data/docs/EmployeesApi.md +86 -4
  16. data/docs/Employment.md +8 -4
  17. data/docs/EndUserDetailsRequest.md +3 -3
  18. data/docs/ForceResyncApi.md +4 -4
  19. data/docs/Group.md +3 -1
  20. data/docs/IssuesApi.md +8 -0
  21. data/docs/LinkTokenApi.md +1 -1
  22. data/docs/LinkedAccountStatus.md +20 -0
  23. data/docs/LinkedAccountsApi.md +14 -14
  24. data/docs/Location.md +5 -3
  25. data/docs/MetaResponse.md +24 -0
  26. data/docs/PayGroup.md +3 -1
  27. data/docs/PayrollRun.md +3 -1
  28. data/docs/Tax.md +4 -2
  29. data/docs/Team.md +3 -1
  30. data/docs/TimeOff.md +5 -3
  31. data/docs/TimeOffApi.md +72 -0
  32. data/docs/TimeOffBalance.md +4 -2
  33. data/docs/TimeOffRequest.md +2 -2
  34. data/docs/WebhookReceiver.md +22 -0
  35. data/docs/WebhookReceiverRequest.md +22 -0
  36. data/docs/WebhookReceiversApi.md +153 -0
  37. data/lib/merge_hris_client/api/account_details_api.rb +10 -3
  38. data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
  39. data/lib/merge_hris_client/api/employees_api.rb +88 -3
  40. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  41. data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
  42. data/lib/merge_hris_client/api/issues_api.rb +12 -0
  43. data/lib/merge_hris_client/api/linked_accounts_api.rb +15 -15
  44. data/lib/merge_hris_client/api/time_off_api.rb +62 -0
  45. data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
  46. data/lib/merge_hris_client/models/account_details.rb +22 -4
  47. data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
  48. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
  49. data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
  50. data/lib/merge_hris_client/models/bank_info.rb +15 -5
  51. data/lib/merge_hris_client/models/benefit.rb +15 -5
  52. data/lib/merge_hris_client/models/categories_enum.rb +2 -1
  53. data/lib/merge_hris_client/models/category_enum.rb +2 -1
  54. data/lib/merge_hris_client/models/company.rb +16 -6
  55. data/lib/merge_hris_client/models/country_enum.rb +0 -1
  56. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  57. data/lib/merge_hris_client/models/deduction.rb +15 -5
  58. data/lib/merge_hris_client/models/earning.rb +18 -5
  59. data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
  60. data/lib/merge_hris_client/models/employee.rb +15 -6
  61. data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
  62. data/lib/merge_hris_client/models/employee_request.rb +1 -1
  63. data/lib/merge_hris_client/models/employment.rb +26 -6
  64. data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
  65. data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
  66. data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
  67. data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
  68. data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
  69. data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
  70. data/lib/merge_hris_client/models/gender_enum.rb +0 -1
  71. data/lib/merge_hris_client/models/group.rb +16 -6
  72. data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
  73. data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
  74. data/lib/merge_hris_client/models/{data_passthrough.rb → linked_account_status.rb} +24 -49
  75. data/lib/merge_hris_client/models/location.rb +16 -6
  76. data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
  77. data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
  78. data/lib/merge_hris_client/models/meta_response.rb +262 -0
  79. data/lib/merge_hris_client/models/method_enum.rb +0 -1
  80. data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
  81. data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
  82. data/lib/merge_hris_client/models/pay_group.rb +15 -5
  83. data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
  84. data/lib/merge_hris_client/models/payroll_run.rb +16 -6
  85. data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
  86. data/lib/merge_hris_client/models/reason_enum.rb +0 -1
  87. data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
  88. data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
  89. data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
  90. data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
  91. data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
  92. data/lib/merge_hris_client/models/tax.rb +18 -5
  93. data/lib/merge_hris_client/models/team.rb +15 -5
  94. data/lib/merge_hris_client/models/time_off.rb +14 -5
  95. data/lib/merge_hris_client/models/time_off_balance.rb +16 -6
  96. data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
  97. data/lib/merge_hris_client/models/units_enum.rb +0 -1
  98. data/lib/merge_hris_client/models/{remote_key_for_regeneration.rb → webhook_receiver.rb} +38 -16
  99. data/lib/merge_hris_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
  100. data/lib/merge_hris_client/version.rb +1 -1
  101. data/lib/merge_hris_client.rb +5 -0
  102. data/spec/api/account_details_api_spec.rb +1 -0
  103. data/spec/api/employees_api_spec.rb +16 -0
  104. data/spec/api/force_resync_api_spec.rb +1 -1
  105. data/spec/api/issues_api_spec.rb +4 -0
  106. data/spec/api/linked_accounts_api_spec.rb +7 -7
  107. data/spec/api/time_off_api_spec.rb +11 -0
  108. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  109. data/spec/models/account_details_and_actions_spec.rb +6 -0
  110. data/spec/models/account_details_spec.rb +12 -0
  111. data/spec/models/bank_info_spec.rb +6 -0
  112. data/spec/models/benefit_spec.rb +6 -0
  113. data/spec/models/company_spec.rb +6 -0
  114. data/spec/models/deduction_spec.rb +6 -0
  115. data/spec/models/earning_spec.rb +6 -0
  116. data/spec/models/employee_payroll_run_spec.rb +6 -0
  117. data/spec/models/employee_spec.rb +6 -0
  118. data/spec/models/employment_spec.rb +12 -0
  119. data/spec/models/group_spec.rb +6 -0
  120. data/spec/models/linked_account_status_spec.rb +40 -0
  121. data/spec/models/location_spec.rb +6 -0
  122. data/spec/models/meta_response_spec.rb +52 -0
  123. data/spec/models/pay_group_spec.rb +6 -0
  124. data/spec/models/payroll_run_spec.rb +6 -0
  125. data/spec/models/tax_spec.rb +6 -0
  126. data/spec/models/team_spec.rb +6 -0
  127. data/spec/models/time_off_balance_spec.rb +6 -0
  128. data/spec/models/time_off_spec.rb +6 -0
  129. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  130. data/spec/models/webhook_receiver_spec.rb +46 -0
  131. metadata +118 -112
  132. data/docs/BenefitPlanTypeEnum.md +0 -15
  133. data/docs/TypeEnum.md +0 -15
  134. data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
  135. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
  136. data/lib/merge_hris_client/models/state_enum.rb +0 -93
  137. data/lib/merge_hris_client/models/type_enum.rb +0 -38
  138. data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
  139. data/spec/models/type_enum_spec.rb +0 -28
  140. data/test_ruby.rb +0 -30
@@ -19,6 +19,8 @@ module MergeHRISClient
19
19
 
20
20
  attr_accessor :integration
21
21
 
22
+ attr_accessor :integration_slug
23
+
22
24
  attr_accessor :category
23
25
 
24
26
  attr_accessor :end_user_origin_id
@@ -29,16 +31,20 @@ module MergeHRISClient
29
31
 
30
32
  attr_accessor :status
31
33
 
34
+ attr_accessor :webhook_listener_url
35
+
32
36
  # Attribute mapping from ruby-style variable name to JSON key.
33
37
  def self.attribute_map
34
38
  {
35
39
  :'id' => :'id',
36
40
  :'integration' => :'integration',
41
+ :'integration_slug' => :'integration_slug',
37
42
  :'category' => :'category',
38
43
  :'end_user_origin_id' => :'end_user_origin_id',
39
44
  :'end_user_organization_name' => :'end_user_organization_name',
40
45
  :'end_user_email_address' => :'end_user_email_address',
41
- :'status' => :'status'
46
+ :'status' => :'status',
47
+ :'webhook_listener_url' => :'webhook_listener_url'
42
48
  }
43
49
  end
44
50
 
@@ -52,11 +58,13 @@ module MergeHRISClient
52
58
  {
53
59
  :'id' => :'String',
54
60
  :'integration' => :'String',
61
+ :'integration_slug' => :'String',
55
62
  :'category' => :'CategoryEnum',
56
63
  :'end_user_origin_id' => :'String',
57
64
  :'end_user_organization_name' => :'String',
58
65
  :'end_user_email_address' => :'String',
59
- :'status' => :'String'
66
+ :'status' => :'String',
67
+ :'webhook_listener_url' => :'String'
60
68
  }
61
69
  end
62
70
 
@@ -90,6 +98,10 @@ module MergeHRISClient
90
98
  self.integration = attributes[:'integration']
91
99
  end
92
100
 
101
+ if attributes.key?(:'integration_slug')
102
+ self.integration_slug = attributes[:'integration_slug']
103
+ end
104
+
93
105
  if attributes.key?(:'category')
94
106
  self.category = attributes[:'category']
95
107
  end
@@ -109,6 +121,10 @@ module MergeHRISClient
109
121
  if attributes.key?(:'status')
110
122
  self.status = attributes[:'status']
111
123
  end
124
+
125
+ if attributes.key?(:'webhook_listener_url')
126
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
127
+ end
112
128
  end
113
129
 
114
130
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -131,11 +147,13 @@ module MergeHRISClient
131
147
  self.class == o.class &&
132
148
  id == o.id &&
133
149
  integration == o.integration &&
150
+ integration_slug == o.integration_slug &&
134
151
  category == o.category &&
135
152
  end_user_origin_id == o.end_user_origin_id &&
136
153
  end_user_organization_name == o.end_user_organization_name &&
137
154
  end_user_email_address == o.end_user_email_address &&
138
- status == o.status
155
+ status == o.status &&
156
+ webhook_listener_url == o.webhook_listener_url
139
157
  end
140
158
 
141
159
  # @see the `==` method
@@ -147,7 +165,7 @@ module MergeHRISClient
147
165
  # Calculates hash code according to all attributes.
148
166
  # @return [Integer] Hash code
149
167
  def hash
150
- [id, integration, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status].hash
168
+ [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
151
169
  end
152
170
 
153
171
  # Builds the object from hash
@@ -30,6 +30,8 @@ module MergeHRISClient
30
30
 
31
31
  attr_accessor :end_user_email_address
32
32
 
33
+ attr_accessor :webhook_listener_url
34
+
33
35
  attr_accessor :integration
34
36
 
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,6 +44,7 @@ module MergeHRISClient
42
44
  :'end_user_origin_id' => :'end_user_origin_id',
43
45
  :'end_user_organization_name' => :'end_user_organization_name',
44
46
  :'end_user_email_address' => :'end_user_email_address',
47
+ :'webhook_listener_url' => :'webhook_listener_url',
45
48
  :'integration' => :'integration'
46
49
  }
47
50
  end
@@ -61,6 +64,7 @@ module MergeHRISClient
61
64
  :'end_user_origin_id' => :'String',
62
65
  :'end_user_organization_name' => :'String',
63
66
  :'end_user_email_address' => :'String',
67
+ :'webhook_listener_url' => :'String',
64
68
  :'integration' => :'AccountDetailsAndActionsIntegration'
65
69
  }
66
70
  end
@@ -114,6 +118,10 @@ module MergeHRISClient
114
118
  self.end_user_email_address = attributes[:'end_user_email_address']
115
119
  end
116
120
 
121
+ if attributes.key?(:'webhook_listener_url')
122
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
123
+ end
124
+
117
125
  if attributes.key?(:'integration')
118
126
  self.integration = attributes[:'integration']
119
127
  end
@@ -139,6 +147,10 @@ module MergeHRISClient
139
147
  invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
140
148
  end
141
149
 
150
+ if @webhook_listener_url.nil?
151
+ invalid_properties.push('invalid value for "webhook_listener_url", webhook_listener_url cannot be nil.')
152
+ end
153
+
142
154
  invalid_properties
143
155
  end
144
156
 
@@ -149,6 +161,7 @@ module MergeHRISClient
149
161
  return false if @status.nil?
150
162
  return false if @end_user_organization_name.nil?
151
163
  return false if @end_user_email_address.nil?
164
+ return false if @webhook_listener_url.nil?
152
165
  true
153
166
  end
154
167
 
@@ -164,6 +177,7 @@ module MergeHRISClient
164
177
  end_user_origin_id == o.end_user_origin_id &&
165
178
  end_user_organization_name == o.end_user_organization_name &&
166
179
  end_user_email_address == o.end_user_email_address &&
180
+ webhook_listener_url == o.webhook_listener_url &&
167
181
  integration == o.integration
168
182
  end
169
183
 
@@ -176,7 +190,7 @@ module MergeHRISClient
176
190
  # Calculates hash code according to all attributes.
177
191
  # @return [Integer] Hash code
178
192
  def hash
179
- [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, integration].hash
193
+ [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
180
194
  end
181
195
 
182
196
  # Builds the object from hash
@@ -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
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Company Object ### Description The `Company` object is used to represent a Company. ### Usage Example Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies.
17
+ # # The Company Object ### Description The `Company` object is used to represent a Company within the HRIS / Payroll system. ### Usage Example Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies.
18
18
  class Company
19
19
  attr_accessor :id
20
20
 
@@ -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
@@ -27,6 +27,7 @@ module MergeHRISClient
27
27
  # Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`.
28
28
  attr_accessor :multipart_form_data
29
29
 
30
+ # The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server.
30
31
  attr_accessor :headers
31
32
 
32
33
  attr_accessor :request_format
@@ -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,6 +66,7 @@ module MergeHRISClient
61
66
  :'employee_payroll_run',
62
67
  :'amount',
63
68
  :'type',
69
+ :'remote_data',
64
70
  ])
65
71
  end
66
72
 
@@ -96,7 +102,13 @@ module MergeHRISClient
96
102
  end
97
103
 
98
104
  if attributes.key?(:'remote_data')
99
- 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']
100
112
  end
101
113
  end
102
114
 
@@ -122,7 +134,8 @@ module MergeHRISClient
122
134
  employee_payroll_run == o.employee_payroll_run &&
123
135
  amount == o.amount &&
124
136
  type == o.type &&
125
- remote_data == o.remote_data
137
+ remote_data == o.remote_data &&
138
+ remote_was_deleted == o.remote_was_deleted
126
139
  end
127
140
 
128
141
  # @see the `==` method
@@ -134,7 +147,7 @@ module MergeHRISClient
134
147
  # Calculates hash code according to all attributes.
135
148
  # @return [Integer] Hash code
136
149
  def hash
137
- [id, employee_payroll_run, amount, type, remote_data].hash
150
+ [id, employee_payroll_run, amount, type, remote_data, remote_was_deleted].hash
138
151
  end
139
152
 
140
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
@@ -21,7 +21,7 @@ module MergeHRISClient
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user.
24
+ # The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers.
25
25
  attr_accessor :employee_number
26
26
 
27
27
  attr_accessor :company
@@ -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