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
@@ -23,7 +23,7 @@ module MergeHRISClient
23
23
 
24
24
  attr_accessor :employee
25
25
 
26
- # The current PTO balance in terms of hours.
26
+ # The current remaining PTO balance in terms of hours. This does not represent the starting PTO balance. If the API provider only provides PTO balance in terms of days, we estimate 8 hours per day.
27
27
  attr_accessor :balance
28
28
 
29
29
  # The amount of PTO used in terms of hours.
@@ -34,6 +34,9 @@ module MergeHRISClient
34
34
 
35
35
  attr_accessor :remote_data
36
36
 
37
+ # Indicates whether or not this object has been deleted on the third-party.
38
+ attr_accessor :remote_was_deleted
39
+
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
38
41
  def self.attribute_map
39
42
  {
@@ -43,7 +46,8 @@ module MergeHRISClient
43
46
  :'balance' => :'balance',
44
47
  :'used' => :'used',
45
48
  :'policy_type' => :'policy_type',
46
- :'remote_data' => :'remote_data'
49
+ :'remote_data' => :'remote_data',
50
+ :'remote_was_deleted' => :'remote_was_deleted'
47
51
  }
48
52
  end
49
53
 
@@ -61,7 +65,8 @@ module MergeHRISClient
61
65
  :'balance' => :'Float',
62
66
  :'used' => :'Float',
63
67
  :'policy_type' => :'PolicyTypeEnum',
64
- :'remote_data' => :'Array<RemoteData>'
68
+ :'remote_data' => :'Array<RemoteData>',
69
+ :'remote_was_deleted' => :'Boolean'
65
70
  }
66
71
  end
67
72
 
@@ -73,7 +78,7 @@ module MergeHRISClient
73
78
  :'balance',
74
79
  :'used',
75
80
  :'policy_type',
76
- :'remote_data'
81
+ :'remote_data',
77
82
  ])
78
83
  end
79
84
 
@@ -121,6 +126,10 @@ module MergeHRISClient
121
126
  self.remote_data = value
122
127
  end
123
128
  end
129
+
130
+ if attributes.key?(:'remote_was_deleted')
131
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
132
+ end
124
133
  end
125
134
 
126
135
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,7 +156,8 @@ module MergeHRISClient
147
156
  balance == o.balance &&
148
157
  used == o.used &&
149
158
  policy_type == o.policy_type &&
150
- remote_data == o.remote_data
159
+ remote_data == o.remote_data &&
160
+ remote_was_deleted == o.remote_was_deleted
151
161
  end
152
162
 
153
163
  # @see the `==` method
@@ -159,7 +169,7 @@ module MergeHRISClient
159
169
  # Calculates hash code according to all attributes.
160
170
  # @return [Integer] Hash code
161
171
  def hash
162
- [id, remote_id, employee, balance, used, policy_type, remote_data].hash
172
+ [id, remote_id, employee, balance, used, policy_type, remote_data, remote_was_deleted].hash
163
173
  end
164
174
 
165
175
  # Builds the object from hash
@@ -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
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,14 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The RemoteResponse Object ### Description The `RemoteResponse` object is used to represent information returned from a third-party endpoint. ### Usage Example View the `RemoteResponse` returned from your `DataPassthrough`.
18
- class RemoteKeyForRegeneration
19
- attr_accessor :name
17
+ class WebhookReceiver
18
+ attr_accessor :event
19
+
20
+ attr_accessor :is_active
21
+
22
+ attr_accessor :key
20
23
 
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'name' => :'name'
27
+ :'event' => :'event',
28
+ :'is_active' => :'is_active',
29
+ :'key' => :'key'
25
30
  }
26
31
  end
27
32
 
@@ -33,7 +38,9 @@ module MergeHRISClient
33
38
  # Attribute type mapping.
34
39
  def self.openapi_types
35
40
  {
36
- :'name' => :'String'
41
+ :'event' => :'String',
42
+ :'is_active' => :'Boolean',
43
+ :'key' => :'String'
37
44
  }
38
45
  end
39
46
 
@@ -47,19 +54,27 @@ module MergeHRISClient
47
54
  # @param [Hash] attributes Model attributes in the form of hash
48
55
  def initialize(attributes = {})
49
56
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::RemoteKeyForRegeneration` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::WebhookReceiver` initialize method"
51
58
  end
52
59
 
53
60
  # check to see if the attribute exists and convert string to symbol for hash key
54
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
62
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::RemoteKeyForRegeneration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::WebhookReceiver`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
64
  end
58
65
  h[k.to_sym] = v
59
66
  }
60
67
 
61
- if attributes.key?(:'name')
62
- self.name = attributes[:'name']
68
+ if attributes.key?(:'event')
69
+ self.event = attributes[:'event']
70
+ end
71
+
72
+ if attributes.key?(:'is_active')
73
+ self.is_active = attributes[:'is_active']
74
+ end
75
+
76
+ if attributes.key?(:'key')
77
+ self.key = attributes[:'key']
63
78
  end
64
79
  end
65
80
 
@@ -67,8 +82,12 @@ module MergeHRISClient
67
82
  # @return Array for valid properties with the reasons
68
83
  def list_invalid_properties
69
84
  invalid_properties = Array.new
70
- if @name.nil?
71
- invalid_properties.push('invalid value for "name", name cannot be nil.')
85
+ if @event.nil?
86
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
87
+ end
88
+
89
+ if @is_active.nil?
90
+ invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
72
91
  end
73
92
 
74
93
  invalid_properties
@@ -77,7 +96,8 @@ module MergeHRISClient
77
96
  # Check to see if the all the properties in the model are valid
78
97
  # @return true if the model is valid
79
98
  def valid?
80
- return false if @name.nil?
99
+ return false if @event.nil?
100
+ return false if @is_active.nil?
81
101
  true
82
102
  end
83
103
 
@@ -86,7 +106,9 @@ module MergeHRISClient
86
106
  def ==(o)
87
107
  return true if self.equal?(o)
88
108
  self.class == o.class &&
89
- name == o.name
109
+ event == o.event &&
110
+ is_active == o.is_active &&
111
+ key == o.key
90
112
  end
91
113
 
92
114
  # @see the `==` method
@@ -98,7 +120,7 @@ module MergeHRISClient
98
120
  # Calculates hash code according to all attributes.
99
121
  # @return [Integer] Hash code
100
122
  def hash
101
- [name].hash
123
+ [event, is_active, key].hash
102
124
  end
103
125
 
104
126
  # Builds the object from hash
@@ -141,7 +163,7 @@ module MergeHRISClient
141
163
  when :Date
142
164
  Date.parse(value)
143
165
  when :String
144
- value.to_s
166
+ value
145
167
  when :Integer
146
168
  value.to_i
147
169
  when :Float
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,44 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- class EndUserDetails
18
- attr_accessor :end_user_email_address
17
+ class WebhookReceiverRequest
18
+ attr_accessor :event
19
19
 
20
- attr_accessor :end_user_organization_name
20
+ attr_accessor :is_active
21
21
 
22
- attr_accessor :end_user_origin_id
23
-
24
- attr_accessor :categories
25
-
26
- class EnumAttributeValidator
27
- attr_reader :datatype
28
- attr_reader :allowable_values
29
-
30
- def initialize(datatype, allowable_values)
31
- @allowable_values = allowable_values.map do |value|
32
- case datatype.to_s
33
- when /Integer/i
34
- value.to_i
35
- when /Float/i
36
- value.to_f
37
- else
38
- value
39
- end
40
- end
41
- end
42
-
43
- def valid?(value)
44
- !value || allowable_values.include?(value)
45
- end
46
- end
22
+ attr_accessor :key
47
23
 
48
24
  # Attribute mapping from ruby-style variable name to JSON key.
49
25
  def self.attribute_map
50
26
  {
51
- :'end_user_email_address' => :'end_user_email_address',
52
- :'end_user_organization_name' => :'end_user_organization_name',
53
- :'end_user_origin_id' => :'end_user_origin_id',
54
- :'categories' => :'categories'
27
+ :'event' => :'event',
28
+ :'is_active' => :'is_active',
29
+ :'key' => :'key'
55
30
  }
56
31
  end
57
32
 
@@ -63,10 +38,9 @@ module MergeHRISClient
63
38
  # Attribute type mapping.
64
39
  def self.openapi_types
65
40
  {
66
- :'end_user_email_address' => :'String',
67
- :'end_user_organization_name' => :'String',
68
- :'end_user_origin_id' => :'String',
69
- :'categories' => :'Array<String>'
41
+ :'event' => :'String',
42
+ :'is_active' => :'Boolean',
43
+ :'key' => :'String'
70
44
  }
71
45
  end
72
46
 
@@ -80,33 +54,27 @@ module MergeHRISClient
80
54
  # @param [Hash] attributes Model attributes in the form of hash
81
55
  def initialize(attributes = {})
82
56
  if (!attributes.is_a?(Hash))
83
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::EndUserDetails` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::WebhookReceiverRequest` initialize method"
84
58
  end
85
59
 
86
60
  # check to see if the attribute exists and convert string to symbol for hash key
87
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
62
  if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::EndUserDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::WebhookReceiverRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
64
  end
91
65
  h[k.to_sym] = v
92
66
  }
93
67
 
94
- if attributes.key?(:'end_user_email_address')
95
- self.end_user_email_address = attributes[:'end_user_email_address']
68
+ if attributes.key?(:'event')
69
+ self.event = attributes[:'event']
96
70
  end
97
71
 
98
- if attributes.key?(:'end_user_organization_name')
99
- self.end_user_organization_name = attributes[:'end_user_organization_name']
72
+ if attributes.key?(:'is_active')
73
+ self.is_active = attributes[:'is_active']
100
74
  end
101
75
 
102
- if attributes.key?(:'end_user_origin_id')
103
- self.end_user_origin_id = attributes[:'end_user_origin_id']
104
- end
105
-
106
- if attributes.key?(:'categories')
107
- if (value = attributes[:'categories']).is_a?(Array)
108
- self.categories = value
109
- end
76
+ if attributes.key?(:'key')
77
+ self.key = attributes[:'key']
110
78
  end
111
79
  end
112
80
 
@@ -114,20 +82,20 @@ module MergeHRISClient
114
82
  # @return Array for valid properties with the reasons
115
83
  def list_invalid_properties
116
84
  invalid_properties = Array.new
117
- if @end_user_email_address.nil?
118
- invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
85
+ if @event.nil?
86
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
119
87
  end
120
88
 
121
- if @end_user_organization_name.nil?
122
- invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
89
+ if @event.to_s.length < 1
90
+ invalid_properties.push('invalid value for "event", the character length must be great than or equal to 1.')
123
91
  end
124
92
 
125
- if @end_user_origin_id.nil?
126
- invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
93
+ if @is_active.nil?
94
+ invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
127
95
  end
128
96
 
129
- if @categories.nil?
130
- invalid_properties.push('invalid value for "categories", categories cannot be nil.')
97
+ if !@key.nil? && @key.to_s.length < 1
98
+ invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
131
99
  end
132
100
 
133
101
  invalid_properties
@@ -136,22 +104,45 @@ module MergeHRISClient
136
104
  # Check to see if the all the properties in the model are valid
137
105
  # @return true if the model is valid
138
106
  def valid?
139
- return false if @end_user_email_address.nil?
140
- return false if @end_user_organization_name.nil?
141
- return false if @end_user_origin_id.nil?
142
- return false if @categories.nil?
107
+ return false if @event.nil?
108
+ return false if @event.to_s.length < 1
109
+ return false if @is_active.nil?
110
+ return false if !@key.nil? && @key.to_s.length < 1
143
111
  true
144
112
  end
145
113
 
114
+ # Custom attribute writer method with validation
115
+ # @param [Object] event Value to be assigned
116
+ def event=(event)
117
+ if event.nil?
118
+ fail ArgumentError, 'event cannot be nil'
119
+ end
120
+
121
+ if event.to_s.length < 1
122
+ fail ArgumentError, 'invalid value for "event", the character length must be great than or equal to 1.'
123
+ end
124
+
125
+ @event = event
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] key Value to be assigned
130
+ def key=(key)
131
+ if !key.nil? && key.to_s.length < 1
132
+ fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
133
+ end
134
+
135
+ @key = key
136
+ end
137
+
146
138
  # Checks equality by comparing each attribute.
147
139
  # @param [Object] Object to be compared
148
140
  def ==(o)
149
141
  return true if self.equal?(o)
150
142
  self.class == o.class &&
151
- end_user_email_address == o.end_user_email_address &&
152
- end_user_organization_name == o.end_user_organization_name &&
153
- end_user_origin_id == o.end_user_origin_id &&
154
- categories == o.categories
143
+ event == o.event &&
144
+ is_active == o.is_active &&
145
+ key == o.key
155
146
  end
156
147
 
157
148
  # @see the `==` method
@@ -163,7 +154,7 @@ module MergeHRISClient
163
154
  # Calculates hash code according to all attributes.
164
155
  # @return [Integer] Hash code
165
156
  def hash
166
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories].hash
157
+ [event, is_active, key].hash
167
158
  end
168
159
 
169
160
  # Builds the object from hash
@@ -206,7 +197,7 @@ module MergeHRISClient
206
197
  when :Date
207
198
  Date.parse(value)
208
199
  when :String
209
- value.to_s
200
+ value
210
201
  when :Integer
211
202
  value.to_i
212
203
  when :Float
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeHRISClient
14
- VERSION = '2.0.0'
14
+ VERSION = '2.0.3'
15
15
  end
@@ -59,9 +59,11 @@ require 'merge_hris_client/models/ignore_common_model_request'
59
59
  require 'merge_hris_client/models/issue'
60
60
  require 'merge_hris_client/models/issue_status_enum'
61
61
  require 'merge_hris_client/models/link_token'
62
+ require 'merge_hris_client/models/linked_account_status'
62
63
  require 'merge_hris_client/models/location'
63
64
  require 'merge_hris_client/models/location_type_enum'
64
65
  require 'merge_hris_client/models/marital_status_enum'
66
+ require 'merge_hris_client/models/meta_response'
65
67
  require 'merge_hris_client/models/method_enum'
66
68
  require 'merge_hris_client/models/model_operation'
67
69
  require 'merge_hris_client/models/multipart_form_field_request'
@@ -111,6 +113,8 @@ require 'merge_hris_client/models/time_off_status_enum'
111
113
  require 'merge_hris_client/models/units_enum'
112
114
  require 'merge_hris_client/models/validation_problem_source'
113
115
  require 'merge_hris_client/models/warning_validation_problem'
116
+ require 'merge_hris_client/models/webhook_receiver'
117
+ require 'merge_hris_client/models/webhook_receiver_request'
114
118
 
115
119
  # APIs
116
120
  require 'merge_hris_client/api/account_details_api'
@@ -139,6 +143,7 @@ require 'merge_hris_client/api/sync_status_api'
139
143
  require 'merge_hris_client/api/teams_api'
140
144
  require 'merge_hris_client/api/time_off_api'
141
145
  require 'merge_hris_client/api/time_off_balances_api'
146
+ require 'merge_hris_client/api/webhook_receivers_api'
142
147
 
143
148
  module MergeHRISClient
144
149
  class << self
@@ -34,6 +34,7 @@ describe 'AccountDetailsApi' do
34
34
 
35
35
  # unit tests for account_details_retrieve
36
36
  # Get details for a linked account.
37
+ # @param x_account_token Token identifying the end user.
37
38
  # @param [Hash] opts the optional parameters
38
39
  # @return [AccountDetails]
39
40
  describe 'account_details_retrieve test' do
@@ -48,6 +48,7 @@ describe 'EmployeesApi' do
48
48
 
49
49
  # unit tests for employees_ignore_create
50
50
  # Ignores a specific row based on the &#x60;model_id&#x60; in the url. These records will have their properties set to null, and will not be updated in future syncs. The \&quot;reason\&quot; and \&quot;message\&quot; fields in the request body will be stored for audit purposes.
51
+ # @param x_account_token Token identifying the end user.
51
52
  # @param model_id
52
53
  # @param ignore_common_model_request
53
54
  # @param [Hash] opts the optional parameters
@@ -66,10 +67,14 @@ describe 'EmployeesApi' do
66
67
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
67
68
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
68
69
  # @option opts [String] :cursor The pagination cursor value.
70
+ # @option opts [String] :display_full_name If provided, will only return employees with this display name.
71
+ # @option opts [String] :employment_status If provided, will only return employees with this employment status.
69
72
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
73
+ # @option opts [String] :first_name If provided, will only return employees with this first name.
70
74
  # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
71
75
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
72
76
  # @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
77
+ # @option opts [String] :last_name If provided, will only return employees with this last name.
73
78
  # @option opts [String] :manager_id If provided, will only return employees for this manager.
74
79
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
75
80
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -87,6 +92,17 @@ describe 'EmployeesApi' do
87
92
  end
88
93
  end
89
94
 
95
+ # unit tests for employees_meta_post_retrieve
96
+ # Returns metadata for &#x60;Employee&#x60; POSTs.
97
+ # @param x_account_token Token identifying the end user.
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [MetaResponse]
100
+ describe 'employees_meta_post_retrieve test' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
90
106
  # unit tests for employees_retrieve
91
107
  # Returns an &#x60;Employee&#x60; object with the given &#x60;id&#x60;.
92
108
  # @param x_account_token Token identifying the end user.
@@ -36,7 +36,7 @@ describe 'ForceResyncApi' do
36
36
  # Force re-sync of all models. This is only available for organizations on Merge&#39;s Grow and Expand plans.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
- # @return [SyncStatus]
39
+ # @return [Array<SyncStatus>]
40
40
  describe 'sync_status_resync_create test' do
41
41
  it 'should work' do
42
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -39,8 +39,12 @@ describe 'IssuesApi' do
39
39
  # @option opts [String] :cursor The pagination cursor value.
40
40
  # @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
41
41
  # @option opts [String] :end_user_organization_name
42
+ # @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
43
+ # @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
42
44
  # @option opts [String] :include_muted If True, will include muted issues
43
45
  # @option opts [String] :integration_name
46
+ # @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
47
+ # @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
44
48
  # @option opts [Integer] :page_size Number of results to return per page.
45
49
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
46
50
  # @option opts [String] :status
@@ -37,14 +37,14 @@ describe 'LinkedAccountsApi' do
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @option opts [String] :category
39
39
  # @option opts [String] :cursor The pagination cursor value.
40
- # @option opts [String] :end_user_email_address
41
- # @option opts [String] :end_user_organization_name
42
- # @option opts [String] :end_user_origin_id
43
- # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
40
+ # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
41
+ # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
42
+ # @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
43
+ # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
44
44
  # @option opts [String] :id
45
- # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
46
- # @option opts [String] :integration_name
47
- # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
45
+ # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
46
+ # @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
47
+ # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
48
48
  # @option opts [Integer] :page_size Number of results to return per page.
49
49
  # @option opts [String] :status Filter by status. Options: &#x60;COMPLETE&#x60;, &#x60;INCOMPLETE&#x60;, &#x60;RELINK_NEEDED&#x60;
50
50
  # @return [PaginatedAccountDetailsAndActionsList]
@@ -71,6 +71,17 @@ describe 'TimeOffApi' do
71
71
  end
72
72
  end
73
73
 
74
+ # unit tests for time_off_meta_post_retrieve
75
+ # Returns metadata for &#x60;TimeOff&#x60; POSTs.
76
+ # @param x_account_token Token identifying the end user.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [MetaResponse]
79
+ describe 'time_off_meta_post_retrieve test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
74
85
  # unit tests for time_off_retrieve
75
86
  # Returns a &#x60;TimeOff&#x60; object with the given &#x60;id&#x60;.
76
87
  # @param x_account_token Token identifying the end user.
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeHRISClient::WebhookReceiversApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'WebhookReceiversApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeHRISClient::WebhookReceiversApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of WebhookReceiversApi' do
30
+ it 'should create an instance of WebhookReceiversApi' do
31
+ expect(@api_instance).to be_instance_of(MergeHRISClient::WebhookReceiversApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for webhook_receivers_create
36
+ # Creates a &#x60;WebhookReceiver&#x60; object with the given values.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param webhook_receiver_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [WebhookReceiver]
41
+ describe 'webhook_receivers_create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for webhook_receivers_list
48
+ # Returns a list of &#x60;WebhookReceiver&#x60; objects.
49
+ # @param x_account_token Token identifying the end user.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<WebhookReceiver>]
52
+ describe 'webhook_receivers_list test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end
@@ -67,6 +67,12 @@ describe MergeHRISClient::AccountDetailsAndActions do
67
67
  end
68
68
  end
69
69
 
70
+ describe 'test attribute "webhook_listener_url"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
70
76
  describe 'test attribute "integration"' do
71
77
  it 'should work' do
72
78
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers