finch-api 0.1.0.pre.alpha.44 → 0.1.0.pre.alpha.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +133 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_create_response.rb +157 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +33 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_delete_response.rb +165 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +26 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_list_response.rb +156 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +40 -0
- data/lib/finch_api/models/hris/pay_statement_item/rule_update_response.rb +157 -0
- data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +83 -0
- data/lib/finch_api/models/hris/pay_statement_item_list_response.rb +97 -0
- data/lib/finch_api/resources/hris/company.rb +0 -4
- data/lib/finch_api/resources/hris/pay_statement_item/rules.rb +141 -0
- data/lib/finch_api/resources/hris/pay_statement_item.rb +59 -0
- data/lib/finch_api/resources/hris.rb +4 -0
- data/lib/finch_api/version.rb +1 -1
- data/lib/finch_api.rb +12 -12
- data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +315 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_create_response.rbi +342 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +59 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_response.rbi +353 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +53 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_list_response.rbi +342 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +68 -0
- data/rbi/finch_api/models/hris/pay_statement_item/rule_update_response.rbi +342 -0
- data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +177 -0
- data/rbi/finch_api/models/hris/pay_statement_item_list_response.rbi +189 -0
- data/rbi/finch_api/resources/hris/company.rbi +0 -3
- data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +114 -0
- data/rbi/finch_api/resources/hris/pay_statement_item.rbi +57 -0
- data/rbi/finch_api/resources/hris.rbi +3 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_create_params.rbs +136 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_create_response.rbs +151 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_delete_params.rbs +34 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_delete_response.rbs +158 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_list_params.rbs +30 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_list_response.rbs +151 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_update_params.rbs +44 -0
- data/sig/finch_api/models/hris/pay_statement_item/rule_update_response.rbs +151 -0
- data/sig/finch_api/models/hris/pay_statement_item_list_params.rbs +81 -0
- data/sig/finch_api/models/hris/pay_statement_item_list_response.rbs +78 -0
- data/sig/finch_api/resources/hris/company.rbs +0 -2
- data/sig/finch_api/resources/hris/pay_statement_item/rules.rbs +39 -0
- data/sig/finch_api/resources/hris/pay_statement_item.rbs +21 -0
- data/sig/finch_api/resources/hris.rbs +2 -0
- metadata +37 -37
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +0 -137
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_response.rb +0 -160
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rb +0 -35
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rb +0 -168
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_params.rb +0 -28
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_response.rb +0 -160
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_params.rb +0 -42
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_response.rb +0 -160
- data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +0 -85
- data/lib/finch_api/models/hris/company/pay_statement_item_list_response.rb +0 -99
- data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +0 -144
- data/lib/finch_api/resources/hris/company/pay_statement_item.rb +0 -61
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbi +0 -319
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbi +0 -346
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbi +0 -61
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbi +0 -357
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbi +0 -55
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbi +0 -346
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbi +0 -70
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbi +0 -346
- data/rbi/finch_api/models/hris/company/pay_statement_item_list_params.rbi +0 -179
- data/rbi/finch_api/models/hris/company/pay_statement_item_list_response.rbi +0 -191
- data/rbi/finch_api/resources/hris/company/pay_statement_item/rules.rbi +0 -116
- data/rbi/finch_api/resources/hris/company/pay_statement_item.rbi +0 -61
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +0 -138
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbs +0 -153
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +0 -36
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbs +0 -160
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +0 -32
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbs +0 -153
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +0 -46
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbs +0 -153
- data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +0 -83
- data/sig/finch_api/models/hris/company/pay_statement_item_list_response.rbs +0 -80
- data/sig/finch_api/resources/hris/company/pay_statement_item/rules.rbs +0 -41
- data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +0 -23
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module FinchAPI
|
|
4
|
-
module Models
|
|
5
|
-
module HRIS
|
|
6
|
-
module Company
|
|
7
|
-
module PayStatementItem
|
|
8
|
-
class RuleUpdateResponse < FinchAPI::Internal::Type::BaseModel
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(
|
|
12
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse,
|
|
13
|
-
FinchAPI::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# Finch id (uuidv4) for the rule.
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
attr_reader :id
|
|
20
|
-
|
|
21
|
-
sig { params(id: String).void }
|
|
22
|
-
attr_writer :id
|
|
23
|
-
|
|
24
|
-
# Specifies the fields to be applied when the condition is met.
|
|
25
|
-
sig do
|
|
26
|
-
returns(
|
|
27
|
-
T.nilable(
|
|
28
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes
|
|
29
|
-
)
|
|
30
|
-
)
|
|
31
|
-
end
|
|
32
|
-
attr_reader :attributes
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
attributes:
|
|
37
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes::OrHash
|
|
38
|
-
).void
|
|
39
|
-
end
|
|
40
|
-
attr_writer :attributes
|
|
41
|
-
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
T::Array[
|
|
46
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition
|
|
47
|
-
]
|
|
48
|
-
)
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
attr_reader :conditions
|
|
52
|
-
|
|
53
|
-
sig do
|
|
54
|
-
params(
|
|
55
|
-
conditions:
|
|
56
|
-
T::Array[
|
|
57
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::OrHash
|
|
58
|
-
]
|
|
59
|
-
).void
|
|
60
|
-
end
|
|
61
|
-
attr_writer :conditions
|
|
62
|
-
|
|
63
|
-
# The datetime when the rule was created.
|
|
64
|
-
sig { returns(T.nilable(Time)) }
|
|
65
|
-
attr_reader :created_at
|
|
66
|
-
|
|
67
|
-
sig { params(created_at: Time).void }
|
|
68
|
-
attr_writer :created_at
|
|
69
|
-
|
|
70
|
-
# Specifies when the rules should stop applying rules based on the date.
|
|
71
|
-
sig { returns(T.nilable(String)) }
|
|
72
|
-
attr_accessor :effective_end_date
|
|
73
|
-
|
|
74
|
-
# Specifies when the rule should begin applying based on the date.
|
|
75
|
-
sig { returns(T.nilable(String)) }
|
|
76
|
-
attr_accessor :effective_start_date
|
|
77
|
-
|
|
78
|
-
# The entity type to which the rule is applied.
|
|
79
|
-
sig do
|
|
80
|
-
returns(
|
|
81
|
-
T.nilable(
|
|
82
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::TaggedSymbol
|
|
83
|
-
)
|
|
84
|
-
)
|
|
85
|
-
end
|
|
86
|
-
attr_reader :entity_type
|
|
87
|
-
|
|
88
|
-
sig do
|
|
89
|
-
params(
|
|
90
|
-
entity_type:
|
|
91
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::OrSymbol
|
|
92
|
-
).void
|
|
93
|
-
end
|
|
94
|
-
attr_writer :entity_type
|
|
95
|
-
|
|
96
|
-
# The priority of the rule.
|
|
97
|
-
sig { returns(T.nilable(Integer)) }
|
|
98
|
-
attr_reader :priority
|
|
99
|
-
|
|
100
|
-
sig { params(priority: Integer).void }
|
|
101
|
-
attr_writer :priority
|
|
102
|
-
|
|
103
|
-
# The datetime when the rule was last updated.
|
|
104
|
-
sig { returns(T.nilable(Time)) }
|
|
105
|
-
attr_reader :updated_at
|
|
106
|
-
|
|
107
|
-
sig { params(updated_at: Time).void }
|
|
108
|
-
attr_writer :updated_at
|
|
109
|
-
|
|
110
|
-
sig do
|
|
111
|
-
params(
|
|
112
|
-
id: String,
|
|
113
|
-
attributes:
|
|
114
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes::OrHash,
|
|
115
|
-
conditions:
|
|
116
|
-
T::Array[
|
|
117
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::OrHash
|
|
118
|
-
],
|
|
119
|
-
created_at: Time,
|
|
120
|
-
effective_end_date: T.nilable(String),
|
|
121
|
-
effective_start_date: T.nilable(String),
|
|
122
|
-
entity_type:
|
|
123
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::OrSymbol,
|
|
124
|
-
priority: Integer,
|
|
125
|
-
updated_at: Time
|
|
126
|
-
).returns(T.attached_class)
|
|
127
|
-
end
|
|
128
|
-
def self.new(
|
|
129
|
-
# Finch id (uuidv4) for the rule.
|
|
130
|
-
id: nil,
|
|
131
|
-
# Specifies the fields to be applied when the condition is met.
|
|
132
|
-
attributes: nil,
|
|
133
|
-
conditions: nil,
|
|
134
|
-
# The datetime when the rule was created.
|
|
135
|
-
created_at: nil,
|
|
136
|
-
# Specifies when the rules should stop applying rules based on the date.
|
|
137
|
-
effective_end_date: nil,
|
|
138
|
-
# Specifies when the rule should begin applying based on the date.
|
|
139
|
-
effective_start_date: nil,
|
|
140
|
-
# The entity type to which the rule is applied.
|
|
141
|
-
entity_type: nil,
|
|
142
|
-
# The priority of the rule.
|
|
143
|
-
priority: nil,
|
|
144
|
-
# The datetime when the rule was last updated.
|
|
145
|
-
updated_at: nil
|
|
146
|
-
)
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
sig do
|
|
150
|
-
override.returns(
|
|
151
|
-
{
|
|
152
|
-
id: String,
|
|
153
|
-
attributes:
|
|
154
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes,
|
|
155
|
-
conditions:
|
|
156
|
-
T::Array[
|
|
157
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition
|
|
158
|
-
],
|
|
159
|
-
created_at: Time,
|
|
160
|
-
effective_end_date: T.nilable(String),
|
|
161
|
-
effective_start_date: T.nilable(String),
|
|
162
|
-
entity_type:
|
|
163
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::TaggedSymbol,
|
|
164
|
-
priority: Integer,
|
|
165
|
-
updated_at: Time
|
|
166
|
-
}
|
|
167
|
-
)
|
|
168
|
-
end
|
|
169
|
-
def to_hash
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
173
|
-
OrHash =
|
|
174
|
-
T.type_alias do
|
|
175
|
-
T.any(
|
|
176
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes,
|
|
177
|
-
FinchAPI::Internal::AnyHash
|
|
178
|
-
)
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# The metadata to be attached in the entity. It is a key-value pairs where the
|
|
182
|
-
# values can be of any type (string, number, boolean, object, array, etc.).
|
|
183
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
184
|
-
attr_reader :metadata
|
|
185
|
-
|
|
186
|
-
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
|
|
187
|
-
attr_writer :metadata
|
|
188
|
-
|
|
189
|
-
# Specifies the fields to be applied when the condition is met.
|
|
190
|
-
sig do
|
|
191
|
-
params(metadata: T::Hash[Symbol, T.anything]).returns(
|
|
192
|
-
T.attached_class
|
|
193
|
-
)
|
|
194
|
-
end
|
|
195
|
-
def self.new(
|
|
196
|
-
# The metadata to be attached in the entity. It is a key-value pairs where the
|
|
197
|
-
# values can be of any type (string, number, boolean, object, array, etc.).
|
|
198
|
-
metadata: nil
|
|
199
|
-
)
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
sig do
|
|
203
|
-
override.returns({ metadata: T::Hash[Symbol, T.anything] })
|
|
204
|
-
end
|
|
205
|
-
def to_hash
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
class Condition < FinchAPI::Internal::Type::BaseModel
|
|
210
|
-
OrHash =
|
|
211
|
-
T.type_alias do
|
|
212
|
-
T.any(
|
|
213
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition,
|
|
214
|
-
FinchAPI::Internal::AnyHash
|
|
215
|
-
)
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
# The field to be checked in the rule.
|
|
219
|
-
sig { returns(T.nilable(String)) }
|
|
220
|
-
attr_reader :field
|
|
221
|
-
|
|
222
|
-
sig { params(field: String).void }
|
|
223
|
-
attr_writer :field
|
|
224
|
-
|
|
225
|
-
# The operator to be used in the rule.
|
|
226
|
-
sig do
|
|
227
|
-
returns(
|
|
228
|
-
T.nilable(
|
|
229
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::TaggedSymbol
|
|
230
|
-
)
|
|
231
|
-
)
|
|
232
|
-
end
|
|
233
|
-
attr_reader :operator
|
|
234
|
-
|
|
235
|
-
sig do
|
|
236
|
-
params(
|
|
237
|
-
operator:
|
|
238
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::OrSymbol
|
|
239
|
-
).void
|
|
240
|
-
end
|
|
241
|
-
attr_writer :operator
|
|
242
|
-
|
|
243
|
-
# The value of the field to be checked in the rule.
|
|
244
|
-
sig { returns(T.nilable(String)) }
|
|
245
|
-
attr_reader :value
|
|
246
|
-
|
|
247
|
-
sig { params(value: String).void }
|
|
248
|
-
attr_writer :value
|
|
249
|
-
|
|
250
|
-
sig do
|
|
251
|
-
params(
|
|
252
|
-
field: String,
|
|
253
|
-
operator:
|
|
254
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::OrSymbol,
|
|
255
|
-
value: String
|
|
256
|
-
).returns(T.attached_class)
|
|
257
|
-
end
|
|
258
|
-
def self.new(
|
|
259
|
-
# The field to be checked in the rule.
|
|
260
|
-
field: nil,
|
|
261
|
-
# The operator to be used in the rule.
|
|
262
|
-
operator: nil,
|
|
263
|
-
# The value of the field to be checked in the rule.
|
|
264
|
-
value: nil
|
|
265
|
-
)
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
sig do
|
|
269
|
-
override.returns(
|
|
270
|
-
{
|
|
271
|
-
field: String,
|
|
272
|
-
operator:
|
|
273
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::TaggedSymbol,
|
|
274
|
-
value: String
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
end
|
|
278
|
-
def to_hash
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# The operator to be used in the rule.
|
|
282
|
-
module Operator
|
|
283
|
-
extend FinchAPI::Internal::Type::Enum
|
|
284
|
-
|
|
285
|
-
TaggedSymbol =
|
|
286
|
-
T.type_alias do
|
|
287
|
-
T.all(
|
|
288
|
-
Symbol,
|
|
289
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator
|
|
290
|
-
)
|
|
291
|
-
end
|
|
292
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
293
|
-
|
|
294
|
-
EQUALS =
|
|
295
|
-
T.let(
|
|
296
|
-
:equals,
|
|
297
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::TaggedSymbol
|
|
298
|
-
)
|
|
299
|
-
|
|
300
|
-
sig do
|
|
301
|
-
override.returns(
|
|
302
|
-
T::Array[
|
|
303
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator::TaggedSymbol
|
|
304
|
-
]
|
|
305
|
-
)
|
|
306
|
-
end
|
|
307
|
-
def self.values
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# The entity type to which the rule is applied.
|
|
313
|
-
module EntityType
|
|
314
|
-
extend FinchAPI::Internal::Type::Enum
|
|
315
|
-
|
|
316
|
-
TaggedSymbol =
|
|
317
|
-
T.type_alias do
|
|
318
|
-
T.all(
|
|
319
|
-
Symbol,
|
|
320
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
324
|
-
|
|
325
|
-
PAY_STATEMENT_ITEM =
|
|
326
|
-
T.let(
|
|
327
|
-
:pay_statement_item,
|
|
328
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::TaggedSymbol
|
|
329
|
-
)
|
|
330
|
-
|
|
331
|
-
sig do
|
|
332
|
-
override.returns(
|
|
333
|
-
T::Array[
|
|
334
|
-
FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType::TaggedSymbol
|
|
335
|
-
]
|
|
336
|
-
)
|
|
337
|
-
end
|
|
338
|
-
def self.values
|
|
339
|
-
end
|
|
340
|
-
end
|
|
341
|
-
end
|
|
342
|
-
end
|
|
343
|
-
end
|
|
344
|
-
end
|
|
345
|
-
end
|
|
346
|
-
end
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module FinchAPI
|
|
4
|
-
module Models
|
|
5
|
-
module HRIS
|
|
6
|
-
module Company
|
|
7
|
-
class PayStatementItemListParams < FinchAPI::Internal::Type::BaseModel
|
|
8
|
-
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include FinchAPI::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams,
|
|
15
|
-
FinchAPI::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Comma-delimited list of pay statement item categories to filter on. If empty,
|
|
20
|
-
# defaults to all categories.
|
|
21
|
-
sig do
|
|
22
|
-
returns(
|
|
23
|
-
T.nilable(
|
|
24
|
-
T::Array[
|
|
25
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::OrSymbol
|
|
26
|
-
]
|
|
27
|
-
)
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
attr_reader :categories
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(
|
|
34
|
-
categories:
|
|
35
|
-
T::Array[
|
|
36
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::OrSymbol
|
|
37
|
-
]
|
|
38
|
-
).void
|
|
39
|
-
end
|
|
40
|
-
attr_writer :categories
|
|
41
|
-
|
|
42
|
-
# The end date to retrieve pay statement items by via their last seen pay date in
|
|
43
|
-
# `YYYY-MM-DD` format.
|
|
44
|
-
sig { returns(T.nilable(Date)) }
|
|
45
|
-
attr_reader :end_date
|
|
46
|
-
|
|
47
|
-
sig { params(end_date: Date).void }
|
|
48
|
-
attr_writer :end_date
|
|
49
|
-
|
|
50
|
-
# The entity IDs to specify which entities' data to access.
|
|
51
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
52
|
-
attr_reader :entity_ids
|
|
53
|
-
|
|
54
|
-
sig { params(entity_ids: T::Array[String]).void }
|
|
55
|
-
attr_writer :entity_ids
|
|
56
|
-
|
|
57
|
-
# Case-insensitive partial match search by pay statement item name.
|
|
58
|
-
sig { returns(T.nilable(String)) }
|
|
59
|
-
attr_reader :name
|
|
60
|
-
|
|
61
|
-
sig { params(name: String).void }
|
|
62
|
-
attr_writer :name
|
|
63
|
-
|
|
64
|
-
# The start date to retrieve pay statement items by via their last seen pay date
|
|
65
|
-
# (inclusive) in `YYYY-MM-DD` format.
|
|
66
|
-
sig { returns(T.nilable(Date)) }
|
|
67
|
-
attr_reader :start_date
|
|
68
|
-
|
|
69
|
-
sig { params(start_date: Date).void }
|
|
70
|
-
attr_writer :start_date
|
|
71
|
-
|
|
72
|
-
# String search by pay statement item type.
|
|
73
|
-
sig { returns(T.nilable(String)) }
|
|
74
|
-
attr_reader :type
|
|
75
|
-
|
|
76
|
-
sig { params(type: String).void }
|
|
77
|
-
attr_writer :type
|
|
78
|
-
|
|
79
|
-
sig do
|
|
80
|
-
params(
|
|
81
|
-
categories:
|
|
82
|
-
T::Array[
|
|
83
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::OrSymbol
|
|
84
|
-
],
|
|
85
|
-
end_date: Date,
|
|
86
|
-
entity_ids: T::Array[String],
|
|
87
|
-
name: String,
|
|
88
|
-
start_date: Date,
|
|
89
|
-
type: String,
|
|
90
|
-
request_options: FinchAPI::RequestOptions::OrHash
|
|
91
|
-
).returns(T.attached_class)
|
|
92
|
-
end
|
|
93
|
-
def self.new(
|
|
94
|
-
# Comma-delimited list of pay statement item categories to filter on. If empty,
|
|
95
|
-
# defaults to all categories.
|
|
96
|
-
categories: nil,
|
|
97
|
-
# The end date to retrieve pay statement items by via their last seen pay date in
|
|
98
|
-
# `YYYY-MM-DD` format.
|
|
99
|
-
end_date: nil,
|
|
100
|
-
# The entity IDs to specify which entities' data to access.
|
|
101
|
-
entity_ids: nil,
|
|
102
|
-
# Case-insensitive partial match search by pay statement item name.
|
|
103
|
-
name: nil,
|
|
104
|
-
# The start date to retrieve pay statement items by via their last seen pay date
|
|
105
|
-
# (inclusive) in `YYYY-MM-DD` format.
|
|
106
|
-
start_date: nil,
|
|
107
|
-
# String search by pay statement item type.
|
|
108
|
-
type: nil,
|
|
109
|
-
request_options: {}
|
|
110
|
-
)
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
sig do
|
|
114
|
-
override.returns(
|
|
115
|
-
{
|
|
116
|
-
categories:
|
|
117
|
-
T::Array[
|
|
118
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::OrSymbol
|
|
119
|
-
],
|
|
120
|
-
end_date: Date,
|
|
121
|
-
entity_ids: T::Array[String],
|
|
122
|
-
name: String,
|
|
123
|
-
start_date: Date,
|
|
124
|
-
type: String,
|
|
125
|
-
request_options: FinchAPI::RequestOptions
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
end
|
|
129
|
-
def to_hash
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
module Category
|
|
133
|
-
extend FinchAPI::Internal::Type::Enum
|
|
134
|
-
|
|
135
|
-
TaggedSymbol =
|
|
136
|
-
T.type_alias do
|
|
137
|
-
T.all(
|
|
138
|
-
Symbol,
|
|
139
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
143
|
-
|
|
144
|
-
EARNINGS =
|
|
145
|
-
T.let(
|
|
146
|
-
:earnings,
|
|
147
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::TaggedSymbol
|
|
148
|
-
)
|
|
149
|
-
TAXES =
|
|
150
|
-
T.let(
|
|
151
|
-
:taxes,
|
|
152
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::TaggedSymbol
|
|
153
|
-
)
|
|
154
|
-
EMPLOYEE_DEDUCTIONS =
|
|
155
|
-
T.let(
|
|
156
|
-
:employee_deductions,
|
|
157
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::TaggedSymbol
|
|
158
|
-
)
|
|
159
|
-
EMPLOYER_CONTRIBUTIONS =
|
|
160
|
-
T.let(
|
|
161
|
-
:employer_contributions,
|
|
162
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::TaggedSymbol
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
sig do
|
|
166
|
-
override.returns(
|
|
167
|
-
T::Array[
|
|
168
|
-
FinchAPI::HRIS::Company::PayStatementItemListParams::Category::TaggedSymbol
|
|
169
|
-
]
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
def self.values
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
end
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module FinchAPI
|
|
4
|
-
module Models
|
|
5
|
-
module HRIS
|
|
6
|
-
module Company
|
|
7
|
-
class PayStatementItemListResponse < FinchAPI::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse,
|
|
12
|
-
FinchAPI::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# The attributes of the pay statement item.
|
|
17
|
-
sig do
|
|
18
|
-
returns(
|
|
19
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes
|
|
20
|
-
)
|
|
21
|
-
end
|
|
22
|
-
attr_reader :attributes
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
attributes:
|
|
27
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes::OrHash
|
|
28
|
-
).void
|
|
29
|
-
end
|
|
30
|
-
attr_writer :attributes
|
|
31
|
-
|
|
32
|
-
# The category of the pay statement item.
|
|
33
|
-
sig do
|
|
34
|
-
returns(
|
|
35
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
attr_accessor :category
|
|
39
|
-
|
|
40
|
-
# The name of the pay statement item.
|
|
41
|
-
sig { returns(String) }
|
|
42
|
-
attr_accessor :name
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
attributes:
|
|
47
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes::OrHash,
|
|
48
|
-
category:
|
|
49
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::OrSymbol,
|
|
50
|
-
name: String
|
|
51
|
-
).returns(T.attached_class)
|
|
52
|
-
end
|
|
53
|
-
def self.new(
|
|
54
|
-
# The attributes of the pay statement item.
|
|
55
|
-
attributes:,
|
|
56
|
-
# The category of the pay statement item.
|
|
57
|
-
category:,
|
|
58
|
-
# The name of the pay statement item.
|
|
59
|
-
name:
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
override.returns(
|
|
65
|
-
{
|
|
66
|
-
attributes:
|
|
67
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes,
|
|
68
|
-
category:
|
|
69
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol,
|
|
70
|
-
name: String
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
def to_hash
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
78
|
-
OrHash =
|
|
79
|
-
T.type_alias do
|
|
80
|
-
T.any(
|
|
81
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes,
|
|
82
|
-
FinchAPI::Internal::AnyHash
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# The metadata of the pay statement item derived by the rules engine if available.
|
|
87
|
-
# Each attribute will be a key-value pair defined by a rule.
|
|
88
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
|
|
89
|
-
attr_accessor :metadata
|
|
90
|
-
|
|
91
|
-
# `true` if the amount is paid by the employers. This field is only available for
|
|
92
|
-
# taxes.
|
|
93
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
94
|
-
attr_accessor :employer
|
|
95
|
-
|
|
96
|
-
# `true` if the pay statement item is pre-tax. This field is only available for
|
|
97
|
-
# employee deductions.
|
|
98
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
99
|
-
attr_accessor :pre_tax
|
|
100
|
-
|
|
101
|
-
# The type of the pay statement item.
|
|
102
|
-
sig { returns(T.nilable(String)) }
|
|
103
|
-
attr_accessor :type
|
|
104
|
-
|
|
105
|
-
# The attributes of the pay statement item.
|
|
106
|
-
sig do
|
|
107
|
-
params(
|
|
108
|
-
metadata: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
|
|
109
|
-
employer: T.nilable(T::Boolean),
|
|
110
|
-
pre_tax: T.nilable(T::Boolean),
|
|
111
|
-
type: T.nilable(String)
|
|
112
|
-
).returns(T.attached_class)
|
|
113
|
-
end
|
|
114
|
-
def self.new(
|
|
115
|
-
# The metadata of the pay statement item derived by the rules engine if available.
|
|
116
|
-
# Each attribute will be a key-value pair defined by a rule.
|
|
117
|
-
metadata:,
|
|
118
|
-
# `true` if the amount is paid by the employers. This field is only available for
|
|
119
|
-
# taxes.
|
|
120
|
-
employer: nil,
|
|
121
|
-
# `true` if the pay statement item is pre-tax. This field is only available for
|
|
122
|
-
# employee deductions.
|
|
123
|
-
pre_tax: nil,
|
|
124
|
-
# The type of the pay statement item.
|
|
125
|
-
type: nil
|
|
126
|
-
)
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
sig do
|
|
130
|
-
override.returns(
|
|
131
|
-
{
|
|
132
|
-
metadata: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
|
|
133
|
-
employer: T.nilable(T::Boolean),
|
|
134
|
-
pre_tax: T.nilable(T::Boolean),
|
|
135
|
-
type: T.nilable(String)
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
def to_hash
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# The category of the pay statement item.
|
|
144
|
-
module Category
|
|
145
|
-
extend FinchAPI::Internal::Type::Enum
|
|
146
|
-
|
|
147
|
-
TaggedSymbol =
|
|
148
|
-
T.type_alias do
|
|
149
|
-
T.all(
|
|
150
|
-
Symbol,
|
|
151
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category
|
|
152
|
-
)
|
|
153
|
-
end
|
|
154
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
155
|
-
|
|
156
|
-
EARNINGS =
|
|
157
|
-
T.let(
|
|
158
|
-
:earnings,
|
|
159
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
160
|
-
)
|
|
161
|
-
TAXES =
|
|
162
|
-
T.let(
|
|
163
|
-
:taxes,
|
|
164
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
165
|
-
)
|
|
166
|
-
EMPLOYEE_DEDUCTIONS =
|
|
167
|
-
T.let(
|
|
168
|
-
:employee_deductions,
|
|
169
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
170
|
-
)
|
|
171
|
-
EMPLOYER_CONTRIBUTIONS =
|
|
172
|
-
T.let(
|
|
173
|
-
:employer_contributions,
|
|
174
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
175
|
-
)
|
|
176
|
-
|
|
177
|
-
sig do
|
|
178
|
-
override.returns(
|
|
179
|
-
T::Array[
|
|
180
|
-
FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category::TaggedSymbol
|
|
181
|
-
]
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
def self.values
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
end
|