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
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module FinchAPI
|
|
4
|
+
module Models
|
|
5
|
+
module HRIS
|
|
6
|
+
module PayStatementItem
|
|
7
|
+
class RuleCreateResponse < FinchAPI::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse,
|
|
12
|
+
FinchAPI::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Finch id (uuidv4) for the rule.
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_reader :id
|
|
19
|
+
|
|
20
|
+
sig { params(id: String).void }
|
|
21
|
+
attr_writer :id
|
|
22
|
+
|
|
23
|
+
# Specifies the fields to be applied when the condition is met.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
T.nilable(
|
|
27
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Attributes
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
attr_reader :attributes
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
attributes:
|
|
36
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Attributes::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :attributes
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
returns(
|
|
43
|
+
T.nilable(
|
|
44
|
+
T::Array[
|
|
45
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition
|
|
46
|
+
]
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
attr_reader :conditions
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
conditions:
|
|
55
|
+
T::Array[
|
|
56
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::OrHash
|
|
57
|
+
]
|
|
58
|
+
).void
|
|
59
|
+
end
|
|
60
|
+
attr_writer :conditions
|
|
61
|
+
|
|
62
|
+
# The datetime when the rule was created.
|
|
63
|
+
sig { returns(T.nilable(Time)) }
|
|
64
|
+
attr_reader :created_at
|
|
65
|
+
|
|
66
|
+
sig { params(created_at: Time).void }
|
|
67
|
+
attr_writer :created_at
|
|
68
|
+
|
|
69
|
+
# Specifies when the rules should stop applying rules based on the date.
|
|
70
|
+
sig { returns(T.nilable(String)) }
|
|
71
|
+
attr_accessor :effective_end_date
|
|
72
|
+
|
|
73
|
+
# Specifies when the rule should begin applying based on the date.
|
|
74
|
+
sig { returns(T.nilable(String)) }
|
|
75
|
+
attr_accessor :effective_start_date
|
|
76
|
+
|
|
77
|
+
# The entity type to which the rule is applied.
|
|
78
|
+
sig do
|
|
79
|
+
returns(
|
|
80
|
+
T.nilable(
|
|
81
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::TaggedSymbol
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
attr_reader :entity_type
|
|
86
|
+
|
|
87
|
+
sig do
|
|
88
|
+
params(
|
|
89
|
+
entity_type:
|
|
90
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::OrSymbol
|
|
91
|
+
).void
|
|
92
|
+
end
|
|
93
|
+
attr_writer :entity_type
|
|
94
|
+
|
|
95
|
+
# The priority of the rule.
|
|
96
|
+
sig { returns(T.nilable(Integer)) }
|
|
97
|
+
attr_reader :priority
|
|
98
|
+
|
|
99
|
+
sig { params(priority: Integer).void }
|
|
100
|
+
attr_writer :priority
|
|
101
|
+
|
|
102
|
+
# The datetime when the rule was last updated.
|
|
103
|
+
sig { returns(T.nilable(Time)) }
|
|
104
|
+
attr_reader :updated_at
|
|
105
|
+
|
|
106
|
+
sig { params(updated_at: Time).void }
|
|
107
|
+
attr_writer :updated_at
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
params(
|
|
111
|
+
id: String,
|
|
112
|
+
attributes:
|
|
113
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Attributes::OrHash,
|
|
114
|
+
conditions:
|
|
115
|
+
T::Array[
|
|
116
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::OrHash
|
|
117
|
+
],
|
|
118
|
+
created_at: Time,
|
|
119
|
+
effective_end_date: T.nilable(String),
|
|
120
|
+
effective_start_date: T.nilable(String),
|
|
121
|
+
entity_type:
|
|
122
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::OrSymbol,
|
|
123
|
+
priority: Integer,
|
|
124
|
+
updated_at: Time
|
|
125
|
+
).returns(T.attached_class)
|
|
126
|
+
end
|
|
127
|
+
def self.new(
|
|
128
|
+
# Finch id (uuidv4) for the rule.
|
|
129
|
+
id: nil,
|
|
130
|
+
# Specifies the fields to be applied when the condition is met.
|
|
131
|
+
attributes: nil,
|
|
132
|
+
conditions: nil,
|
|
133
|
+
# The datetime when the rule was created.
|
|
134
|
+
created_at: nil,
|
|
135
|
+
# Specifies when the rules should stop applying rules based on the date.
|
|
136
|
+
effective_end_date: nil,
|
|
137
|
+
# Specifies when the rule should begin applying based on the date.
|
|
138
|
+
effective_start_date: nil,
|
|
139
|
+
# The entity type to which the rule is applied.
|
|
140
|
+
entity_type: nil,
|
|
141
|
+
# The priority of the rule.
|
|
142
|
+
priority: nil,
|
|
143
|
+
# The datetime when the rule was last updated.
|
|
144
|
+
updated_at: nil
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
sig do
|
|
149
|
+
override.returns(
|
|
150
|
+
{
|
|
151
|
+
id: String,
|
|
152
|
+
attributes:
|
|
153
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Attributes,
|
|
154
|
+
conditions:
|
|
155
|
+
T::Array[
|
|
156
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition
|
|
157
|
+
],
|
|
158
|
+
created_at: Time,
|
|
159
|
+
effective_end_date: T.nilable(String),
|
|
160
|
+
effective_start_date: T.nilable(String),
|
|
161
|
+
entity_type:
|
|
162
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::TaggedSymbol,
|
|
163
|
+
priority: Integer,
|
|
164
|
+
updated_at: Time
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
end
|
|
168
|
+
def to_hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
172
|
+
OrHash =
|
|
173
|
+
T.type_alias do
|
|
174
|
+
T.any(
|
|
175
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Attributes,
|
|
176
|
+
FinchAPI::Internal::AnyHash
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# The metadata to be attached in the entity. It is a key-value pairs where the
|
|
181
|
+
# values can be of any type (string, number, boolean, object, array, etc.).
|
|
182
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
183
|
+
attr_reader :metadata
|
|
184
|
+
|
|
185
|
+
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
|
|
186
|
+
attr_writer :metadata
|
|
187
|
+
|
|
188
|
+
# Specifies the fields to be applied when the condition is met.
|
|
189
|
+
sig do
|
|
190
|
+
params(metadata: T::Hash[Symbol, T.anything]).returns(
|
|
191
|
+
T.attached_class
|
|
192
|
+
)
|
|
193
|
+
end
|
|
194
|
+
def self.new(
|
|
195
|
+
# The metadata to be attached in the entity. It is a key-value pairs where the
|
|
196
|
+
# values can be of any type (string, number, boolean, object, array, etc.).
|
|
197
|
+
metadata: nil
|
|
198
|
+
)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
sig { override.returns({ metadata: T::Hash[Symbol, T.anything] }) }
|
|
202
|
+
def to_hash
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
class Condition < FinchAPI::Internal::Type::BaseModel
|
|
207
|
+
OrHash =
|
|
208
|
+
T.type_alias do
|
|
209
|
+
T.any(
|
|
210
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition,
|
|
211
|
+
FinchAPI::Internal::AnyHash
|
|
212
|
+
)
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# The field to be checked in the rule.
|
|
216
|
+
sig { returns(T.nilable(String)) }
|
|
217
|
+
attr_reader :field
|
|
218
|
+
|
|
219
|
+
sig { params(field: String).void }
|
|
220
|
+
attr_writer :field
|
|
221
|
+
|
|
222
|
+
# The operator to be used in the rule.
|
|
223
|
+
sig do
|
|
224
|
+
returns(
|
|
225
|
+
T.nilable(
|
|
226
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::TaggedSymbol
|
|
227
|
+
)
|
|
228
|
+
)
|
|
229
|
+
end
|
|
230
|
+
attr_reader :operator
|
|
231
|
+
|
|
232
|
+
sig do
|
|
233
|
+
params(
|
|
234
|
+
operator:
|
|
235
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::OrSymbol
|
|
236
|
+
).void
|
|
237
|
+
end
|
|
238
|
+
attr_writer :operator
|
|
239
|
+
|
|
240
|
+
# The value of the field to be checked in the rule.
|
|
241
|
+
sig { returns(T.nilable(String)) }
|
|
242
|
+
attr_reader :value
|
|
243
|
+
|
|
244
|
+
sig { params(value: String).void }
|
|
245
|
+
attr_writer :value
|
|
246
|
+
|
|
247
|
+
sig do
|
|
248
|
+
params(
|
|
249
|
+
field: String,
|
|
250
|
+
operator:
|
|
251
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::OrSymbol,
|
|
252
|
+
value: String
|
|
253
|
+
).returns(T.attached_class)
|
|
254
|
+
end
|
|
255
|
+
def self.new(
|
|
256
|
+
# The field to be checked in the rule.
|
|
257
|
+
field: nil,
|
|
258
|
+
# The operator to be used in the rule.
|
|
259
|
+
operator: nil,
|
|
260
|
+
# The value of the field to be checked in the rule.
|
|
261
|
+
value: nil
|
|
262
|
+
)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
sig do
|
|
266
|
+
override.returns(
|
|
267
|
+
{
|
|
268
|
+
field: String,
|
|
269
|
+
operator:
|
|
270
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::TaggedSymbol,
|
|
271
|
+
value: String
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
end
|
|
275
|
+
def to_hash
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# The operator to be used in the rule.
|
|
279
|
+
module Operator
|
|
280
|
+
extend FinchAPI::Internal::Type::Enum
|
|
281
|
+
|
|
282
|
+
TaggedSymbol =
|
|
283
|
+
T.type_alias do
|
|
284
|
+
T.all(
|
|
285
|
+
Symbol,
|
|
286
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator
|
|
287
|
+
)
|
|
288
|
+
end
|
|
289
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
290
|
+
|
|
291
|
+
EQUALS =
|
|
292
|
+
T.let(
|
|
293
|
+
:equals,
|
|
294
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::TaggedSymbol
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
sig do
|
|
298
|
+
override.returns(
|
|
299
|
+
T::Array[
|
|
300
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::Condition::Operator::TaggedSymbol
|
|
301
|
+
]
|
|
302
|
+
)
|
|
303
|
+
end
|
|
304
|
+
def self.values
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# The entity type to which the rule is applied.
|
|
310
|
+
module EntityType
|
|
311
|
+
extend FinchAPI::Internal::Type::Enum
|
|
312
|
+
|
|
313
|
+
TaggedSymbol =
|
|
314
|
+
T.type_alias do
|
|
315
|
+
T.all(
|
|
316
|
+
Symbol,
|
|
317
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType
|
|
318
|
+
)
|
|
319
|
+
end
|
|
320
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
321
|
+
|
|
322
|
+
PAY_STATEMENT_ITEM =
|
|
323
|
+
T.let(
|
|
324
|
+
:pay_statement_item,
|
|
325
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::TaggedSymbol
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
sig do
|
|
329
|
+
override.returns(
|
|
330
|
+
T::Array[
|
|
331
|
+
FinchAPI::Models::HRIS::PayStatementItem::RuleCreateResponse::EntityType::TaggedSymbol
|
|
332
|
+
]
|
|
333
|
+
)
|
|
334
|
+
end
|
|
335
|
+
def self.values
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module FinchAPI
|
|
4
|
+
module Models
|
|
5
|
+
module HRIS
|
|
6
|
+
module PayStatementItem
|
|
7
|
+
class RuleDeleteParams < 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::PayStatementItem::RuleDeleteParams,
|
|
15
|
+
FinchAPI::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :rule_id
|
|
21
|
+
|
|
22
|
+
# The entity IDs to delete the rule for.
|
|
23
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
+
attr_reader :entity_ids
|
|
25
|
+
|
|
26
|
+
sig { params(entity_ids: T::Array[String]).void }
|
|
27
|
+
attr_writer :entity_ids
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
rule_id: String,
|
|
32
|
+
entity_ids: T::Array[String],
|
|
33
|
+
request_options: FinchAPI::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
rule_id:,
|
|
38
|
+
# The entity IDs to delete the rule for.
|
|
39
|
+
entity_ids: nil,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
rule_id: String,
|
|
48
|
+
entity_ids: T::Array[String],
|
|
49
|
+
request_options: FinchAPI::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|