merge_hris_client 2.0.3 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AccountDetails.md +3 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/BankInfo.md +1 -1
  6. data/docs/BankInfoApi.md +7 -3
  7. data/docs/Benefit.md +1 -1
  8. data/docs/BenefitsApi.md +2 -2
  9. data/docs/CompaniesApi.md +2 -2
  10. data/docs/Company.md +1 -1
  11. data/docs/DataPassthroughRequest.md +3 -1
  12. data/docs/Deduction.md +1 -1
  13. data/docs/DeductionsApi.md +2 -2
  14. data/docs/Earning.md +1 -3
  15. data/docs/Employee.md +4 -0
  16. data/docs/EmployeePayrollRun.md +1 -1
  17. data/docs/EmployeePayrollRunsApi.md +2 -2
  18. data/docs/EmployeeRequest.md +4 -0
  19. data/docs/EmployeesApi.md +7 -3
  20. data/docs/Employment.md +1 -1
  21. data/docs/EmploymentsApi.md +7 -3
  22. data/docs/EndUserDetailsRequest.md +9 -7
  23. data/docs/Group.md +1 -1
  24. data/docs/GroupsApi.md +7 -3
  25. data/docs/LinkToken.md +3 -1
  26. data/docs/LinkedAccountsApi.md +2 -0
  27. data/docs/Location.md +1 -1
  28. data/docs/LocationsApi.md +7 -3
  29. data/docs/PayGroup.md +1 -1
  30. data/docs/PayGroupsApi.md +2 -2
  31. data/docs/PayrollRun.md +1 -1
  32. data/docs/PayrollRunsApi.md +7 -3
  33. data/docs/RemoteResponse.md +5 -1
  34. data/docs/ResponseTypeEnum.md +15 -0
  35. data/docs/SyncStatus.md +2 -2
  36. data/docs/SyncStatusApi.md +1 -1
  37. data/docs/Tax.md +1 -3
  38. data/docs/Team.md +1 -1
  39. data/docs/TeamsApi.md +2 -2
  40. data/docs/TimeOffApi.md +7 -3
  41. data/docs/TimeOffBalance.md +1 -1
  42. data/docs/TimeOffBalancesApi.md +7 -3
  43. data/lib/merge_hris_client/api/bank_info_api.rb +16 -2
  44. data/lib/merge_hris_client/api/benefits_api.rb +2 -2
  45. data/lib/merge_hris_client/api/companies_api.rb +2 -2
  46. data/lib/merge_hris_client/api/deductions_api.rb +2 -2
  47. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
  48. data/lib/merge_hris_client/api/employees_api.rb +16 -2
  49. data/lib/merge_hris_client/api/employments_api.rb +16 -2
  50. data/lib/merge_hris_client/api/groups_api.rb +16 -2
  51. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
  52. data/lib/merge_hris_client/api/locations_api.rb +16 -2
  53. data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
  54. data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
  55. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  56. data/lib/merge_hris_client/api/teams_api.rb +2 -2
  57. data/lib/merge_hris_client/api/time_off_api.rb +16 -2
  58. data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
  59. data/lib/merge_hris_client/models/account_details.rb +15 -4
  60. data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
  61. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
  62. data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
  63. data/lib/merge_hris_client/models/bank_info.rb +1 -1
  64. data/lib/merge_hris_client/models/benefit.rb +1 -1
  65. data/lib/merge_hris_client/models/categories_enum.rb +17 -7
  66. data/lib/merge_hris_client/models/category_enum.rb +17 -7
  67. data/lib/merge_hris_client/models/company.rb +1 -1
  68. data/lib/merge_hris_client/models/country_enum.rb +17 -7
  69. data/lib/merge_hris_client/models/data_passthrough_request.rb +15 -6
  70. data/lib/merge_hris_client/models/deduction.rb +1 -1
  71. data/lib/merge_hris_client/models/earning.rb +2 -14
  72. data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
  73. data/lib/merge_hris_client/models/employee.rb +24 -2
  74. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
  75. data/lib/merge_hris_client/models/employee_request.rb +24 -2
  76. data/lib/merge_hris_client/models/employment.rb +1 -1
  77. data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
  78. data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
  79. data/lib/merge_hris_client/models/encoding_enum.rb +18 -7
  80. data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
  81. data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
  82. data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
  83. data/lib/merge_hris_client/models/gender_enum.rb +17 -7
  84. data/lib/merge_hris_client/models/group.rb +1 -1
  85. data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
  86. data/lib/merge_hris_client/models/issue.rb +1 -1
  87. data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
  88. data/lib/merge_hris_client/models/link_token.rb +13 -4
  89. data/lib/merge_hris_client/models/location.rb +1 -1
  90. data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
  91. data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
  92. data/lib/merge_hris_client/models/meta_response.rb +1 -1
  93. data/lib/merge_hris_client/models/method_enum.rb +17 -7
  94. data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
  95. data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
  96. data/lib/merge_hris_client/models/pay_group.rb +1 -1
  97. data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
  98. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  99. data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
  100. data/lib/merge_hris_client/models/reason_enum.rb +17 -7
  101. data/lib/merge_hris_client/models/remote_response.rb +23 -9
  102. data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
  103. data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
  104. data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
  105. data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
  106. data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
  107. data/lib/merge_hris_client/models/sync_status.rb +0 -10
  108. data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
  109. data/lib/merge_hris_client/models/tax.rb +2 -14
  110. data/lib/merge_hris_client/models/team.rb +1 -1
  111. data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
  112. data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
  113. data/lib/merge_hris_client/models/units_enum.rb +17 -7
  114. data/lib/merge_hris_client/version.rb +1 -1
  115. data/lib/merge_hris_client.rb +1 -1
  116. data/spec/api/bank_info_api_spec.rb +3 -1
  117. data/spec/api/benefits_api_spec.rb +1 -1
  118. data/spec/api/companies_api_spec.rb +1 -1
  119. data/spec/api/deductions_api_spec.rb +1 -1
  120. data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
  121. data/spec/api/employees_api_spec.rb +3 -1
  122. data/spec/api/employments_api_spec.rb +3 -1
  123. data/spec/api/groups_api_spec.rb +3 -1
  124. data/spec/api/linked_accounts_api_spec.rb +1 -0
  125. data/spec/api/locations_api_spec.rb +3 -1
  126. data/spec/api/pay_groups_api_spec.rb +1 -1
  127. data/spec/api/payroll_runs_api_spec.rb +3 -1
  128. data/spec/api/sync_status_api_spec.rb +1 -1
  129. data/spec/api/teams_api_spec.rb +1 -1
  130. data/spec/api/time_off_api_spec.rb +3 -1
  131. data/spec/api/time_off_balances_api_spec.rb +3 -1
  132. data/spec/models/account_details_and_actions_spec.rb +6 -0
  133. data/spec/models/account_details_spec.rb +6 -0
  134. data/spec/models/data_passthrough_request_spec.rb +6 -0
  135. data/spec/models/earning_spec.rb +0 -6
  136. data/spec/models/employee_request_spec.rb +12 -0
  137. data/spec/models/employee_spec.rb +12 -0
  138. data/spec/models/end_user_details_request_spec.rb +6 -0
  139. data/spec/models/link_token_spec.rb +6 -0
  140. data/spec/models/remote_response_spec.rb +12 -0
  141. data/spec/models/response_type_enum_spec.rb +28 -0
  142. data/spec/models/tax_spec.rb +0 -6
  143. metadata +105 -101
@@ -27,12 +27,13 @@ module MergeHRISClient
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [String] :employee_id If provided, will only return time off balances for this employee.
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
30
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
33
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
36
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
36
37
  # @option opts [String] :remote_id The API provider's ID for the given object.
37
38
  # @return [PaginatedTimeOffBalanceList]
38
39
  def time_off_balances_list(x_account_token, opts = {})
@@ -48,12 +49,13 @@ module MergeHRISClient
48
49
  # @option opts [String] :cursor The pagination cursor value.
49
50
  # @option opts [String] :employee_id If provided, will only return time off balances for this employee.
50
51
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
51
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
52
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
52
53
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
53
54
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
54
55
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
55
56
  # @option opts [Integer] :page_size Number of results to return per page.
56
57
  # @option opts [String] :policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
58
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
57
59
  # @option opts [String] :remote_id The API provider's ID for the given object.
58
60
  # @return [Array<(PaginatedTimeOffBalanceList, Integer, Hash)>] PaginatedTimeOffBalanceList data, response status code and response headers
59
61
  def time_off_balances_list_with_http_info(x_account_token, opts = {})
@@ -72,6 +74,10 @@ module MergeHRISClient
72
74
  if @api_client.config.client_side_validation && opts[:'policy_type'] && !allowable_values.include?(opts[:'policy_type'])
73
75
  fail ArgumentError, "invalid value for \"policy_type\", must be one of #{allowable_values}"
74
76
  end
77
+ allowable_values = ["policy_type"]
78
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
79
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
80
+ end
75
81
  # resource path
76
82
  local_var_path = '/time-off-balances'
77
83
 
@@ -88,6 +94,7 @@ module MergeHRISClient
88
94
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
89
95
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
90
96
  query_params[:'policy_type'] = opts[:'policy_type'] if !opts[:'policy_type'].nil?
97
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
91
98
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
92
99
 
93
100
  # header parameters
@@ -131,6 +138,7 @@ module MergeHRISClient
131
138
  # @param [Hash] opts the optional parameters
132
139
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
133
140
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
141
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
134
142
  # @return [TimeOffBalance]
135
143
  def time_off_balances_retrieve(x_account_token, id, opts = {})
136
144
  data, _status_code, _headers = time_off_balances_retrieve_with_http_info(x_account_token, id, opts)
@@ -143,6 +151,7 @@ module MergeHRISClient
143
151
  # @param [Hash] opts the optional parameters
144
152
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
145
153
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
154
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
146
155
  # @return [Array<(TimeOffBalance, Integer, Hash)>] TimeOffBalance data, response status code and response headers
147
156
  def time_off_balances_retrieve_with_http_info(x_account_token, id, opts = {})
148
157
  if @api_client.config.debugging
@@ -160,6 +169,10 @@ module MergeHRISClient
160
169
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
161
170
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
162
171
  end
172
+ allowable_values = ["policy_type"]
173
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
174
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
175
+ end
163
176
  # resource path
164
177
  local_var_path = '/time-off-balances/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
165
178
 
@@ -167,6 +180,7 @@ module MergeHRISClient
167
180
  query_params = opts[:query_params] || {}
168
181
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
169
182
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
183
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
170
184
 
171
185
  # header parameters
172
186
  header_params = opts[:header_params] || {}
@@ -33,6 +33,9 @@ module MergeHRISClient
33
33
 
34
34
  attr_accessor :webhook_listener_url
35
35
 
36
+ # Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
37
+ attr_accessor :is_duplicate
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -44,7 +47,8 @@ module MergeHRISClient
44
47
  :'end_user_organization_name' => :'end_user_organization_name',
45
48
  :'end_user_email_address' => :'end_user_email_address',
46
49
  :'status' => :'status',
47
- :'webhook_listener_url' => :'webhook_listener_url'
50
+ :'webhook_listener_url' => :'webhook_listener_url',
51
+ :'is_duplicate' => :'is_duplicate'
48
52
  }
49
53
  end
50
54
 
@@ -64,7 +68,8 @@ module MergeHRISClient
64
68
  :'end_user_organization_name' => :'String',
65
69
  :'end_user_email_address' => :'String',
66
70
  :'status' => :'String',
67
- :'webhook_listener_url' => :'String'
71
+ :'webhook_listener_url' => :'String',
72
+ :'is_duplicate' => :'Boolean'
68
73
  }
69
74
  end
70
75
 
@@ -72,6 +77,7 @@ module MergeHRISClient
72
77
  def self.openapi_nullable
73
78
  Set.new([
74
79
  :'category',
80
+ :'is_duplicate'
75
81
  ])
76
82
  end
77
83
 
@@ -125,6 +131,10 @@ module MergeHRISClient
125
131
  if attributes.key?(:'webhook_listener_url')
126
132
  self.webhook_listener_url = attributes[:'webhook_listener_url']
127
133
  end
134
+
135
+ if attributes.key?(:'is_duplicate')
136
+ self.is_duplicate = attributes[:'is_duplicate']
137
+ end
128
138
  end
129
139
 
130
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -153,7 +163,8 @@ module MergeHRISClient
153
163
  end_user_organization_name == o.end_user_organization_name &&
154
164
  end_user_email_address == o.end_user_email_address &&
155
165
  status == o.status &&
156
- webhook_listener_url == o.webhook_listener_url
166
+ webhook_listener_url == o.webhook_listener_url &&
167
+ is_duplicate == o.is_duplicate
157
168
  end
158
169
 
159
170
  # @see the `==` method
@@ -165,7 +176,7 @@ module MergeHRISClient
165
176
  # Calculates hash code according to all attributes.
166
177
  # @return [Integer] Hash code
167
178
  def hash
168
- [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
179
+ [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url, is_duplicate].hash
169
180
  end
170
181
 
171
182
  # Builds the object from hash
@@ -32,6 +32,9 @@ module MergeHRISClient
32
32
 
33
33
  attr_accessor :webhook_listener_url
34
34
 
35
+ # Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
36
+ attr_accessor :is_duplicate
37
+
35
38
  attr_accessor :integration
36
39
 
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,6 +48,7 @@ module MergeHRISClient
45
48
  :'end_user_organization_name' => :'end_user_organization_name',
46
49
  :'end_user_email_address' => :'end_user_email_address',
47
50
  :'webhook_listener_url' => :'webhook_listener_url',
51
+ :'is_duplicate' => :'is_duplicate',
48
52
  :'integration' => :'integration'
49
53
  }
50
54
  end
@@ -65,6 +69,7 @@ module MergeHRISClient
65
69
  :'end_user_organization_name' => :'String',
66
70
  :'end_user_email_address' => :'String',
67
71
  :'webhook_listener_url' => :'String',
72
+ :'is_duplicate' => :'Boolean',
68
73
  :'integration' => :'AccountDetailsAndActionsIntegration'
69
74
  }
70
75
  end
@@ -72,6 +77,7 @@ module MergeHRISClient
72
77
  # List of attributes with nullable: true
73
78
  def self.openapi_nullable
74
79
  Set.new([
80
+ :'is_duplicate',
75
81
  ])
76
82
  end
77
83
 
@@ -122,6 +128,10 @@ module MergeHRISClient
122
128
  self.webhook_listener_url = attributes[:'webhook_listener_url']
123
129
  end
124
130
 
131
+ if attributes.key?(:'is_duplicate')
132
+ self.is_duplicate = attributes[:'is_duplicate']
133
+ end
134
+
125
135
  if attributes.key?(:'integration')
126
136
  self.integration = attributes[:'integration']
127
137
  end
@@ -178,6 +188,7 @@ module MergeHRISClient
178
188
  end_user_organization_name == o.end_user_organization_name &&
179
189
  end_user_email_address == o.end_user_email_address &&
180
190
  webhook_listener_url == o.webhook_listener_url &&
191
+ is_duplicate == o.is_duplicate &&
181
192
  integration == o.integration
182
193
  end
183
194
 
@@ -190,7 +201,7 @@ module MergeHRISClient
190
201
  # Calculates hash code according to all attributes.
191
202
  # @return [Integer] Hash code
192
203
  def hash
193
- [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
204
+ [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, is_duplicate, integration].hash
194
205
  end
195
206
 
196
207
  # Builds the object from hash
@@ -19,18 +19,28 @@ module MergeHRISClient
19
19
  INCOMPLETE = "INCOMPLETE".freeze
20
20
  RELINK_NEEDED = "RELINK_NEEDED".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -18,18 +18,28 @@ module MergeHRISClient
18
18
  SAVINGS = "SAVINGS".freeze
19
19
  CHECKING = "CHECKING".freeze
20
20
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
27
25
 
28
26
  # Builds the enum from string
29
27
  # @param [String] The enum value in the form of the string
30
28
  # @return [String] The enum value
31
29
  def build_from_hash(value)
32
- value
30
+ @raw_value = value
31
+ if ["SAVINGS", "CHECKING", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
33
42
  end
34
43
  end
44
+
35
45
  end
@@ -40,7 +40,7 @@ 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.
43
+ # Indicates whether or not this object has been deleted by third party webhooks.
44
44
  attr_accessor :remote_was_deleted
45
45
 
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -37,7 +37,7 @@ 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.
40
+ # Indicates whether or not this object has been deleted by third party webhooks.
41
41
  attr_accessor :remote_was_deleted
42
42
 
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  TICKETING = "ticketing".freeze
22
22
  CRM = "crm".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  TICKETING = "ticketing".freeze
22
22
  CRM = "crm".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -32,7 +32,7 @@ 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.
35
+ # Indicates whether or not this object has been deleted by third party webhooks.
36
36
  attr_accessor :remote_was_deleted
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -265,18 +265,28 @@ module MergeHRISClient
265
265
  ZM = "ZM".freeze
266
266
  ZW = "ZW".freeze
267
267
 
268
- # Builds the enum from string
269
- # @param [String] The enum value in the form of the string
270
- # @return [String] The enum value
271
- def self.build_from_hash(value)
272
- new.build_from_hash(value)
273
- end
268
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
269
+
270
+ attr_accessor :value
271
+ attr_accessor :raw_value
274
272
 
275
273
  # Builds the enum from string
276
274
  # @param [String] The enum value in the form of the string
277
275
  # @return [String] The enum value
278
276
  def build_from_hash(value)
279
- value
277
+ @raw_value = value
278
+ if ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MK", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "KR", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "UM", "US", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", ].include? value
279
+ @value = value
280
+ else
281
+ @value = MERGE_NONSTANDARD_VALUE
282
+ end
283
+
284
+ self
285
+ end
286
+
287
+ def self.build_from_hash(value)
288
+ IssueStatusEnum.new.build_from_hash(value)
280
289
  end
281
290
  end
291
+
282
292
  end
@@ -32,6 +32,8 @@ module MergeHRISClient
32
32
 
33
33
  attr_accessor :request_format
34
34
 
35
+ attr_accessor :normalize_response
36
+
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
36
38
  def self.attribute_map
37
39
  {
@@ -41,7 +43,8 @@ module MergeHRISClient
41
43
  :'data' => :'data',
42
44
  :'multipart_form_data' => :'multipart_form_data',
43
45
  :'headers' => :'headers',
44
- :'request_format' => :'request_format'
46
+ :'request_format' => :'request_format',
47
+ :'normalize_response' => :'normalize_response'
45
48
  }
46
49
  end
47
50
 
@@ -58,8 +61,9 @@ module MergeHRISClient
58
61
  :'base_url_override' => :'String',
59
62
  :'data' => :'String',
60
63
  :'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
61
- :'headers' => :'Hash<String, AnyType>',
62
- :'request_format' => :'RequestFormatEnum'
64
+ :'headers' => :'Hash<String, Object>',
65
+ :'request_format' => :'RequestFormatEnum',
66
+ :'normalize_response' => :'Boolean'
63
67
  }
64
68
  end
65
69
 
@@ -70,7 +74,7 @@ module MergeHRISClient
70
74
  :'data',
71
75
  :'multipart_form_data',
72
76
  :'headers',
73
- :'request_format'
77
+ :'request_format',
74
78
  ])
75
79
  end
76
80
 
@@ -120,6 +124,10 @@ module MergeHRISClient
120
124
  if attributes.key?(:'request_format')
121
125
  self.request_format = attributes[:'request_format']
122
126
  end
127
+
128
+ if attributes.key?(:'normalize_response')
129
+ self.normalize_response = attributes[:'normalize_response']
130
+ end
123
131
  end
124
132
 
125
133
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -205,7 +213,8 @@ module MergeHRISClient
205
213
  data == o.data &&
206
214
  multipart_form_data == o.multipart_form_data &&
207
215
  headers == o.headers &&
208
- request_format == o.request_format
216
+ request_format == o.request_format &&
217
+ normalize_response == o.normalize_response
209
218
  end
210
219
 
211
220
  # @see the `==` method
@@ -217,7 +226,7 @@ module MergeHRISClient
217
226
  # Calculates hash code according to all attributes.
218
227
  # @return [Integer] Hash code
219
228
  def hash
220
- [method, path, base_url_override, data, multipart_form_data, headers, request_format].hash
229
+ [method, path, base_url_override, data, multipart_form_data, headers, request_format, normalize_response].hash
221
230
  end
222
231
 
223
232
  # Builds the object from hash
@@ -31,7 +31,7 @@ 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.
34
+ # Indicates whether or not this object has been deleted by third party webhooks.
35
35
  attr_accessor :remote_was_deleted
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,9 +26,7 @@ module MergeHRISClient
26
26
  # The type of earning.
27
27
  attr_accessor :type
28
28
 
29
- attr_accessor :remote_data
30
-
31
- # Indicates whether or not this object has been deleted on the third-party.
29
+ # Indicates whether or not this object has been deleted by third party webhooks.
32
30
  attr_accessor :remote_was_deleted
33
31
 
34
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,7 +36,6 @@ module MergeHRISClient
38
36
  :'employee_payroll_run' => :'employee_payroll_run',
39
37
  :'amount' => :'amount',
40
38
  :'type' => :'type',
41
- :'remote_data' => :'remote_data',
42
39
  :'remote_was_deleted' => :'remote_was_deleted'
43
40
  }
44
41
  end
@@ -55,7 +52,6 @@ module MergeHRISClient
55
52
  :'employee_payroll_run' => :'String',
56
53
  :'amount' => :'Float',
57
54
  :'type' => :'EarningTypeEnum',
58
- :'remote_data' => :'Array<Hash<String, AnyType>>',
59
55
  :'remote_was_deleted' => :'Boolean'
60
56
  }
61
57
  end
@@ -66,7 +62,6 @@ module MergeHRISClient
66
62
  :'employee_payroll_run',
67
63
  :'amount',
68
64
  :'type',
69
- :'remote_data',
70
65
  ])
71
66
  end
72
67
 
@@ -101,12 +96,6 @@ module MergeHRISClient
101
96
  self.type = attributes[:'type']
102
97
  end
103
98
 
104
- if attributes.key?(:'remote_data')
105
- if (value = attributes[:'remote_data']).is_a?(Array)
106
- self.remote_data = value
107
- end
108
- end
109
-
110
99
  if attributes.key?(:'remote_was_deleted')
111
100
  self.remote_was_deleted = attributes[:'remote_was_deleted']
112
101
  end
@@ -134,7 +123,6 @@ module MergeHRISClient
134
123
  employee_payroll_run == o.employee_payroll_run &&
135
124
  amount == o.amount &&
136
125
  type == o.type &&
137
- remote_data == o.remote_data &&
138
126
  remote_was_deleted == o.remote_was_deleted
139
127
  end
140
128
 
@@ -147,7 +135,7 @@ module MergeHRISClient
147
135
  # Calculates hash code according to all attributes.
148
136
  # @return [Integer] Hash code
149
137
  def hash
150
- [id, employee_payroll_run, amount, type, remote_data, remote_was_deleted].hash
138
+ [id, employee_payroll_run, amount, type, remote_was_deleted].hash
151
139
  end
152
140
 
153
141
  # Builds the object from hash
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  OVERTIME = "OVERTIME".freeze
21
21
  BONUS = "BONUS".freeze
22
22
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["SALARY", "REIMBURSEMENT", "OVERTIME", "BONUS", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ IssueStatusEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end