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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +133 -0
  5. data/lib/finch_api/models/hris/pay_statement_item/rule_create_response.rb +157 -0
  6. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +33 -0
  7. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_response.rb +165 -0
  8. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +26 -0
  9. data/lib/finch_api/models/hris/pay_statement_item/rule_list_response.rb +156 -0
  10. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +40 -0
  11. data/lib/finch_api/models/hris/pay_statement_item/rule_update_response.rb +157 -0
  12. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +83 -0
  13. data/lib/finch_api/models/hris/pay_statement_item_list_response.rb +97 -0
  14. data/lib/finch_api/resources/hris/company.rb +0 -4
  15. data/lib/finch_api/resources/hris/pay_statement_item/rules.rb +141 -0
  16. data/lib/finch_api/resources/hris/pay_statement_item.rb +59 -0
  17. data/lib/finch_api/resources/hris.rb +4 -0
  18. data/lib/finch_api/version.rb +1 -1
  19. data/lib/finch_api.rb +12 -12
  20. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +315 -0
  21. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_response.rbi +342 -0
  22. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +59 -0
  23. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_response.rbi +353 -0
  24. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +53 -0
  25. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_response.rbi +342 -0
  26. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +68 -0
  27. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_response.rbi +342 -0
  28. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +177 -0
  29. data/rbi/finch_api/models/hris/pay_statement_item_list_response.rbi +189 -0
  30. data/rbi/finch_api/resources/hris/company.rbi +0 -3
  31. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +114 -0
  32. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +57 -0
  33. data/rbi/finch_api/resources/hris.rbi +3 -0
  34. data/sig/finch_api/models/hris/pay_statement_item/rule_create_params.rbs +136 -0
  35. data/sig/finch_api/models/hris/pay_statement_item/rule_create_response.rbs +151 -0
  36. data/sig/finch_api/models/hris/pay_statement_item/rule_delete_params.rbs +34 -0
  37. data/sig/finch_api/models/hris/pay_statement_item/rule_delete_response.rbs +158 -0
  38. data/sig/finch_api/models/hris/pay_statement_item/rule_list_params.rbs +30 -0
  39. data/sig/finch_api/models/hris/pay_statement_item/rule_list_response.rbs +151 -0
  40. data/sig/finch_api/models/hris/pay_statement_item/rule_update_params.rbs +44 -0
  41. data/sig/finch_api/models/hris/pay_statement_item/rule_update_response.rbs +151 -0
  42. data/sig/finch_api/models/hris/pay_statement_item_list_params.rbs +81 -0
  43. data/sig/finch_api/models/hris/pay_statement_item_list_response.rbs +78 -0
  44. data/sig/finch_api/resources/hris/company.rbs +0 -2
  45. data/sig/finch_api/resources/hris/pay_statement_item/rules.rbs +39 -0
  46. data/sig/finch_api/resources/hris/pay_statement_item.rbs +21 -0
  47. data/sig/finch_api/resources/hris.rbs +2 -0
  48. metadata +37 -37
  49. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +0 -137
  50. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_response.rb +0 -160
  51. data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rb +0 -35
  52. data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rb +0 -168
  53. data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_params.rb +0 -28
  54. data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_response.rb +0 -160
  55. data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_params.rb +0 -42
  56. data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_response.rb +0 -160
  57. data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +0 -85
  58. data/lib/finch_api/models/hris/company/pay_statement_item_list_response.rb +0 -99
  59. data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +0 -144
  60. data/lib/finch_api/resources/hris/company/pay_statement_item.rb +0 -61
  61. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbi +0 -319
  62. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbi +0 -346
  63. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbi +0 -61
  64. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbi +0 -357
  65. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbi +0 -55
  66. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbi +0 -346
  67. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbi +0 -70
  68. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbi +0 -346
  69. data/rbi/finch_api/models/hris/company/pay_statement_item_list_params.rbi +0 -179
  70. data/rbi/finch_api/models/hris/company/pay_statement_item_list_response.rbi +0 -191
  71. data/rbi/finch_api/resources/hris/company/pay_statement_item/rules.rbi +0 -116
  72. data/rbi/finch_api/resources/hris/company/pay_statement_item.rbi +0 -61
  73. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +0 -138
  74. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbs +0 -153
  75. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +0 -36
  76. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbs +0 -160
  77. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +0 -32
  78. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbs +0 -153
  79. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +0 -46
  80. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbs +0 -153
  81. data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +0 -83
  82. data/sig/finch_api/models/hris/company/pay_statement_item_list_response.rbs +0 -80
  83. data/sig/finch_api/resources/hris/company/pay_statement_item/rules.rbs +0 -41
  84. data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +0 -23
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- module PayStatementItem
8
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem::Rules#list
9
- class RuleListParams < FinchAPI::Internal::Type::BaseModel
10
- extend FinchAPI::Internal::Type::RequestParameters::Converter
11
- include FinchAPI::Internal::Type::RequestParameters
12
-
13
- # @!attribute entity_ids
14
- # The entity IDs to retrieve rules for.
15
- #
16
- # @return [Array<String>, nil]
17
- optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
18
-
19
- # @!method initialize(entity_ids: nil, request_options: {})
20
- # @param entity_ids [Array<String>] The entity IDs to retrieve rules for.
21
- #
22
- # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,160 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- module PayStatementItem
8
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem::Rules#list
9
- class RuleListResponse < FinchAPI::Internal::Type::BaseModel
10
- # @!attribute id
11
- # Finch id (uuidv4) for the rule.
12
- #
13
- # @return [String, nil]
14
- optional :id, String
15
-
16
- # @!attribute attributes
17
- # Specifies the fields to be applied when the condition is met.
18
- #
19
- # @return [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Attributes, nil]
20
- optional :attributes,
21
- -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Attributes }
22
-
23
- # @!attribute conditions
24
- #
25
- # @return [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition>, nil]
26
- optional :conditions,
27
- -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition] }
28
-
29
- # @!attribute created_at
30
- # The datetime when the rule was created.
31
- #
32
- # @return [Time, nil]
33
- optional :created_at, Time
34
-
35
- # @!attribute effective_end_date
36
- # Specifies when the rules should stop applying rules based on the date.
37
- #
38
- # @return [String, nil]
39
- optional :effective_end_date, String, nil?: true
40
-
41
- # @!attribute effective_start_date
42
- # Specifies when the rule should begin applying based on the date.
43
- #
44
- # @return [String, nil]
45
- optional :effective_start_date, String, nil?: true
46
-
47
- # @!attribute entity_type
48
- # The entity type to which the rule is applied.
49
- #
50
- # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::EntityType, nil]
51
- optional :entity_type,
52
- enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::EntityType }
53
-
54
- # @!attribute priority
55
- # The priority of the rule.
56
- #
57
- # @return [Integer, nil]
58
- optional :priority, Integer
59
-
60
- # @!attribute updated_at
61
- # The datetime when the rule was last updated.
62
- #
63
- # @return [Time, nil]
64
- optional :updated_at, Time
65
-
66
- # @!method initialize(id: nil, attributes: nil, conditions: nil, created_at: nil, effective_end_date: nil, effective_start_date: nil, entity_type: nil, priority: nil, updated_at: nil)
67
- # @param id [String] Finch id (uuidv4) for the rule.
68
- #
69
- # @param attributes [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Attributes] Specifies the fields to be applied when the condition is met.
70
- #
71
- # @param conditions [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition>]
72
- #
73
- # @param created_at [Time] The datetime when the rule was created.
74
- #
75
- # @param effective_end_date [String, nil] Specifies when the rules should stop applying rules based on the date.
76
- #
77
- # @param effective_start_date [String, nil] Specifies when the rule should begin applying based on the date.
78
- #
79
- # @param entity_type [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::EntityType] The entity type to which the rule is applied.
80
- #
81
- # @param priority [Integer] The priority of the rule.
82
- #
83
- # @param updated_at [Time] The datetime when the rule was last updated.
84
-
85
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse#attributes
86
- class Attributes < FinchAPI::Internal::Type::BaseModel
87
- # @!attribute metadata
88
- # The metadata to be attached in the entity. It is a key-value pairs where the
89
- # values can be of any type (string, number, boolean, object, array, etc.).
90
- #
91
- # @return [Hash{Symbol=>Object}, nil]
92
- optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
93
-
94
- # @!method initialize(metadata: nil)
95
- # Some parameter documentations has been truncated, see
96
- # {FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Attributes}
97
- # for more details.
98
- #
99
- # Specifies the fields to be applied when the condition is met.
100
- #
101
- # @param metadata [Hash{Symbol=>Object}] The metadata to be attached in the entity. It is a key-value pairs where the val
102
- end
103
-
104
- class Condition < FinchAPI::Internal::Type::BaseModel
105
- # @!attribute field
106
- # The field to be checked in the rule.
107
- #
108
- # @return [String, nil]
109
- optional :field, String
110
-
111
- # @!attribute operator
112
- # The operator to be used in the rule.
113
- #
114
- # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition::Operator, nil]
115
- optional :operator,
116
- enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition::Operator }
117
-
118
- # @!attribute value
119
- # The value of the field to be checked in the rule.
120
- #
121
- # @return [String, nil]
122
- optional :value, String
123
-
124
- # @!method initialize(field: nil, operator: nil, value: nil)
125
- # @param field [String] The field to be checked in the rule.
126
- #
127
- # @param operator [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition::Operator] The operator to be used in the rule.
128
- #
129
- # @param value [String] The value of the field to be checked in the rule.
130
-
131
- # The operator to be used in the rule.
132
- #
133
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse::Condition#operator
134
- module Operator
135
- extend FinchAPI::Internal::Type::Enum
136
-
137
- EQUALS = :equals
138
-
139
- # @!method self.values
140
- # @return [Array<Symbol>]
141
- end
142
- end
143
-
144
- # The entity type to which the rule is applied.
145
- #
146
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleListResponse#entity_type
147
- module EntityType
148
- extend FinchAPI::Internal::Type::Enum
149
-
150
- PAY_STATEMENT_ITEM = :pay_statement_item
151
-
152
- # @!method self.values
153
- # @return [Array<Symbol>]
154
- end
155
- end
156
- end
157
- end
158
- end
159
- end
160
- end
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- module PayStatementItem
8
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem::Rules#update
9
- class RuleUpdateParams < FinchAPI::Internal::Type::BaseModel
10
- extend FinchAPI::Internal::Type::RequestParameters::Converter
11
- include FinchAPI::Internal::Type::RequestParameters
12
-
13
- # @!attribute rule_id
14
- #
15
- # @return [String]
16
- required :rule_id, String
17
-
18
- # @!attribute entity_ids
19
- # The entity IDs to update the rule for.
20
- #
21
- # @return [Array<String>, nil]
22
- optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
23
-
24
- # @!attribute optional_property
25
- #
26
- # @return [Object, nil]
27
- optional :optional_property, FinchAPI::Internal::Type::Unknown, api_name: :optionalProperty
28
-
29
- # @!method initialize(rule_id:, entity_ids: nil, optional_property: nil, request_options: {})
30
- # @param rule_id [String]
31
- #
32
- # @param entity_ids [Array<String>] The entity IDs to update the rule for.
33
- #
34
- # @param optional_property [Object]
35
- #
36
- # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
37
- end
38
- end
39
- end
40
- end
41
- end
42
- end
@@ -1,160 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- module PayStatementItem
8
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem::Rules#update
9
- class RuleUpdateResponse < FinchAPI::Internal::Type::BaseModel
10
- # @!attribute id
11
- # Finch id (uuidv4) for the rule.
12
- #
13
- # @return [String, nil]
14
- optional :id, String
15
-
16
- # @!attribute attributes
17
- # Specifies the fields to be applied when the condition is met.
18
- #
19
- # @return [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes, nil]
20
- optional :attributes,
21
- -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes }
22
-
23
- # @!attribute conditions
24
- #
25
- # @return [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition>, nil]
26
- optional :conditions,
27
- -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition] }
28
-
29
- # @!attribute created_at
30
- # The datetime when the rule was created.
31
- #
32
- # @return [Time, nil]
33
- optional :created_at, Time
34
-
35
- # @!attribute effective_end_date
36
- # Specifies when the rules should stop applying rules based on the date.
37
- #
38
- # @return [String, nil]
39
- optional :effective_end_date, String, nil?: true
40
-
41
- # @!attribute effective_start_date
42
- # Specifies when the rule should begin applying based on the date.
43
- #
44
- # @return [String, nil]
45
- optional :effective_start_date, String, nil?: true
46
-
47
- # @!attribute entity_type
48
- # The entity type to which the rule is applied.
49
- #
50
- # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType, nil]
51
- optional :entity_type,
52
- enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType }
53
-
54
- # @!attribute priority
55
- # The priority of the rule.
56
- #
57
- # @return [Integer, nil]
58
- optional :priority, Integer
59
-
60
- # @!attribute updated_at
61
- # The datetime when the rule was last updated.
62
- #
63
- # @return [Time, nil]
64
- optional :updated_at, Time
65
-
66
- # @!method initialize(id: nil, attributes: nil, conditions: nil, created_at: nil, effective_end_date: nil, effective_start_date: nil, entity_type: nil, priority: nil, updated_at: nil)
67
- # @param id [String] Finch id (uuidv4) for the rule.
68
- #
69
- # @param attributes [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes] Specifies the fields to be applied when the condition is met.
70
- #
71
- # @param conditions [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition>]
72
- #
73
- # @param created_at [Time] The datetime when the rule was created.
74
- #
75
- # @param effective_end_date [String, nil] Specifies when the rules should stop applying rules based on the date.
76
- #
77
- # @param effective_start_date [String, nil] Specifies when the rule should begin applying based on the date.
78
- #
79
- # @param entity_type [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::EntityType] The entity type to which the rule is applied.
80
- #
81
- # @param priority [Integer] The priority of the rule.
82
- #
83
- # @param updated_at [Time] The datetime when the rule was last updated.
84
-
85
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse#attributes
86
- class Attributes < FinchAPI::Internal::Type::BaseModel
87
- # @!attribute metadata
88
- # The metadata to be attached in the entity. It is a key-value pairs where the
89
- # values can be of any type (string, number, boolean, object, array, etc.).
90
- #
91
- # @return [Hash{Symbol=>Object}, nil]
92
- optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
93
-
94
- # @!method initialize(metadata: nil)
95
- # Some parameter documentations has been truncated, see
96
- # {FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Attributes}
97
- # for more details.
98
- #
99
- # Specifies the fields to be applied when the condition is met.
100
- #
101
- # @param metadata [Hash{Symbol=>Object}] The metadata to be attached in the entity. It is a key-value pairs where the val
102
- end
103
-
104
- class Condition < FinchAPI::Internal::Type::BaseModel
105
- # @!attribute field
106
- # The field to be checked in the rule.
107
- #
108
- # @return [String, nil]
109
- optional :field, String
110
-
111
- # @!attribute operator
112
- # The operator to be used in the rule.
113
- #
114
- # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator, nil]
115
- optional :operator,
116
- enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator }
117
-
118
- # @!attribute value
119
- # The value of the field to be checked in the rule.
120
- #
121
- # @return [String, nil]
122
- optional :value, String
123
-
124
- # @!method initialize(field: nil, operator: nil, value: nil)
125
- # @param field [String] The field to be checked in the rule.
126
- #
127
- # @param operator [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition::Operator] The operator to be used in the rule.
128
- #
129
- # @param value [String] The value of the field to be checked in the rule.
130
-
131
- # The operator to be used in the rule.
132
- #
133
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse::Condition#operator
134
- module Operator
135
- extend FinchAPI::Internal::Type::Enum
136
-
137
- EQUALS = :equals
138
-
139
- # @!method self.values
140
- # @return [Array<Symbol>]
141
- end
142
- end
143
-
144
- # The entity type to which the rule is applied.
145
- #
146
- # @see FinchAPI::Models::HRIS::Company::PayStatementItem::RuleUpdateResponse#entity_type
147
- module EntityType
148
- extend FinchAPI::Internal::Type::Enum
149
-
150
- PAY_STATEMENT_ITEM = :pay_statement_item
151
-
152
- # @!method self.values
153
- # @return [Array<Symbol>]
154
- end
155
- end
156
- end
157
- end
158
- end
159
- end
160
- end
@@ -1,85 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem#list
8
- class PayStatementItemListParams < FinchAPI::Internal::Type::BaseModel
9
- extend FinchAPI::Internal::Type::RequestParameters::Converter
10
- include FinchAPI::Internal::Type::RequestParameters
11
-
12
- # @!attribute categories
13
- # Comma-delimited list of pay statement item categories to filter on. If empty,
14
- # defaults to all categories.
15
- #
16
- # @return [Array<Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListParams::Category>, nil]
17
- optional :categories,
18
- -> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::HRIS::Company::PayStatementItemListParams::Category] }
19
-
20
- # @!attribute end_date
21
- # The end date to retrieve pay statement items by via their last seen pay date in
22
- # `YYYY-MM-DD` format.
23
- #
24
- # @return [Date, nil]
25
- optional :end_date, Date
26
-
27
- # @!attribute entity_ids
28
- # The entity IDs to specify which entities' data to access.
29
- #
30
- # @return [Array<String>, nil]
31
- optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
32
-
33
- # @!attribute name
34
- # Case-insensitive partial match search by pay statement item name.
35
- #
36
- # @return [String, nil]
37
- optional :name, String
38
-
39
- # @!attribute start_date
40
- # The start date to retrieve pay statement items by via their last seen pay date
41
- # (inclusive) in `YYYY-MM-DD` format.
42
- #
43
- # @return [Date, nil]
44
- optional :start_date, Date
45
-
46
- # @!attribute type
47
- # String search by pay statement item type.
48
- #
49
- # @return [String, nil]
50
- optional :type, String
51
-
52
- # @!method initialize(categories: nil, end_date: nil, entity_ids: nil, name: nil, start_date: nil, type: nil, request_options: {})
53
- # Some parameter documentations has been truncated, see
54
- # {FinchAPI::Models::HRIS::Company::PayStatementItemListParams} for more details.
55
- #
56
- # @param categories [Array<Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListParams::Category>] Comma-delimited list of pay statement item categories to filter on. If empty, de
57
- #
58
- # @param end_date [Date] The end date to retrieve pay statement items by via their last seen pay date in
59
- #
60
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
61
- #
62
- # @param name [String] Case-insensitive partial match search by pay statement item name.
63
- #
64
- # @param start_date [Date] The start date to retrieve pay statement items by via their last seen pay date (
65
- #
66
- # @param type [String] String search by pay statement item type.
67
- #
68
- # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
69
-
70
- module Category
71
- extend FinchAPI::Internal::Type::Enum
72
-
73
- EARNINGS = :earnings
74
- TAXES = :taxes
75
- EMPLOYEE_DEDUCTIONS = :employee_deductions
76
- EMPLOYER_CONTRIBUTIONS = :employer_contributions
77
-
78
- # @!method self.values
79
- # @return [Array<Symbol>]
80
- end
81
- end
82
- end
83
- end
84
- end
85
- end
@@ -1,99 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FinchAPI
4
- module Models
5
- module HRIS
6
- module Company
7
- # @see FinchAPI::Resources::HRIS::Company::PayStatementItem#list
8
- class PayStatementItemListResponse < FinchAPI::Internal::Type::BaseModel
9
- # @!attribute attributes
10
- # The attributes of the pay statement item.
11
- #
12
- # @return [FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes]
13
- required :attributes, -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes }
14
-
15
- # @!attribute category
16
- # The category of the pay statement item.
17
- #
18
- # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category]
19
- required :category, enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category }
20
-
21
- # @!attribute name
22
- # The name of the pay statement item.
23
- #
24
- # @return [String]
25
- required :name, String
26
-
27
- # @!method initialize(attributes:, category:, name:)
28
- # @param attributes [FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes] The attributes of the pay statement item.
29
- #
30
- # @param category [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category] The category of the pay statement item.
31
- #
32
- # @param name [String] The name of the pay statement item.
33
-
34
- # @see FinchAPI::Models::HRIS::Company::PayStatementItemListResponse#attributes
35
- class Attributes < FinchAPI::Internal::Type::BaseModel
36
- # @!attribute metadata
37
- # The metadata of the pay statement item derived by the rules engine if available.
38
- # Each attribute will be a key-value pair defined by a rule.
39
- #
40
- # @return [Hash{Symbol=>Object, nil}, nil]
41
- required :metadata,
42
- FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true],
43
- nil?: true
44
-
45
- # @!attribute employer
46
- # `true` if the amount is paid by the employers. This field is only available for
47
- # taxes.
48
- #
49
- # @return [Boolean, nil]
50
- optional :employer, FinchAPI::Internal::Type::Boolean, nil?: true
51
-
52
- # @!attribute pre_tax
53
- # `true` if the pay statement item is pre-tax. This field is only available for
54
- # employee deductions.
55
- #
56
- # @return [Boolean, nil]
57
- optional :pre_tax, FinchAPI::Internal::Type::Boolean, nil?: true
58
-
59
- # @!attribute type
60
- # The type of the pay statement item.
61
- #
62
- # @return [String, nil]
63
- optional :type, String, nil?: true
64
-
65
- # @!method initialize(metadata:, employer: nil, pre_tax: nil, type: nil)
66
- # Some parameter documentations has been truncated, see
67
- # {FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes} for
68
- # more details.
69
- #
70
- # The attributes of the pay statement item.
71
- #
72
- # @param metadata [Hash{Symbol=>Object, nil}, nil] The metadata of the pay statement item derived by the rules engine if available.
73
- #
74
- # @param employer [Boolean, nil] `true` if the amount is paid by the employers. This field is only available for
75
- #
76
- # @param pre_tax [Boolean, nil] `true` if the pay statement item is pre-tax. This field is only available for em
77
- #
78
- # @param type [String, nil] The type of the pay statement item.
79
- end
80
-
81
- # The category of the pay statement item.
82
- #
83
- # @see FinchAPI::Models::HRIS::Company::PayStatementItemListResponse#category
84
- module Category
85
- extend FinchAPI::Internal::Type::Enum
86
-
87
- EARNINGS = :earnings
88
- TAXES = :taxes
89
- EMPLOYEE_DEDUCTIONS = :employee_deductions
90
- EMPLOYER_CONTRIBUTIONS = :employer_contributions
91
-
92
- # @!method self.values
93
- # @return [Array<Symbol>]
94
- end
95
- end
96
- end
97
- end
98
- end
99
- end