finch-api 0.1.0.pre.alpha.23 → 0.1.0.pre.alpha.24

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.
@@ -13,11 +13,6 @@ module FinchAPI
13
13
  sig { returns(T.nilable(T::Boolean)) }
14
14
  attr_accessor :annual_maximum
15
15
 
16
- # Whether the provider supports catch up for this benefit. This field will only be
17
- # true for retirement benefits.
18
- sig { returns(T.nilable(T::Boolean)) }
19
- attr_accessor :catch_up
20
-
21
16
  # Supported contribution types. An empty array indicates contributions are not
22
17
  # supported.
23
18
  sig do
@@ -54,22 +49,15 @@ module FinchAPI
54
49
  # The list of frequencies supported by the provider for this benefit
55
50
  sig do
56
51
  returns(
57
- T.nilable(
58
- T::Array[
59
- T.nilable(FinchAPI::HRIS::BenefitFrequency::TaggedSymbol)
60
- ]
61
- )
52
+ T::Array[T.nilable(FinchAPI::HRIS::BenefitFrequency::TaggedSymbol)]
62
53
  )
63
54
  end
64
- attr_reader :frequencies
55
+ attr_accessor :frequencies
65
56
 
66
- sig do
67
- params(
68
- frequencies:
69
- T::Array[T.nilable(FinchAPI::HRIS::BenefitFrequency::OrSymbol)]
70
- ).void
71
- end
72
- attr_writer :frequencies
57
+ # Whether the provider supports catch up for this benefit. This field will only be
58
+ # true for retirement benefits.
59
+ sig { returns(T.nilable(T::Boolean)) }
60
+ attr_accessor :catch_up
73
61
 
74
62
  # Whether the provider supports HSA contribution limits. Empty if this feature is
75
63
  # not supported for the benefit. This array only has values for HSA benefits.
@@ -89,7 +77,6 @@ module FinchAPI
89
77
  sig do
90
78
  params(
91
79
  annual_maximum: T.nilable(T::Boolean),
92
- catch_up: T.nilable(T::Boolean),
93
80
  company_contribution:
94
81
  T.nilable(
95
82
  T::Array[
@@ -109,6 +96,7 @@ module FinchAPI
109
96
  ),
110
97
  frequencies:
111
98
  T::Array[T.nilable(FinchAPI::HRIS::BenefitFrequency::OrSymbol)],
99
+ catch_up: T.nilable(T::Boolean),
112
100
  hsa_contribution_limit:
113
101
  T.nilable(
114
102
  T::Array[
@@ -121,19 +109,19 @@ module FinchAPI
121
109
  end
122
110
  def self.new(
123
111
  # Whether the provider supports an annual maximum for this benefit.
124
- annual_maximum: nil,
125
- # Whether the provider supports catch up for this benefit. This field will only be
126
- # true for retirement benefits.
127
- catch_up: nil,
112
+ annual_maximum:,
128
113
  # Supported contribution types. An empty array indicates contributions are not
129
114
  # supported.
130
- company_contribution: nil,
131
- description: nil,
115
+ company_contribution:,
116
+ description:,
132
117
  # Supported deduction types. An empty array indicates deductions are not
133
118
  # supported.
134
- employee_deduction: nil,
119
+ employee_deduction:,
135
120
  # The list of frequencies supported by the provider for this benefit
136
- frequencies: nil,
121
+ frequencies:,
122
+ # Whether the provider supports catch up for this benefit. This field will only be
123
+ # true for retirement benefits.
124
+ catch_up: nil,
137
125
  # Whether the provider supports HSA contribution limits. Empty if this feature is
138
126
  # not supported for the benefit. This array only has values for HSA benefits.
139
127
  hsa_contribution_limit: nil
@@ -144,7 +132,6 @@ module FinchAPI
144
132
  override.returns(
145
133
  {
146
134
  annual_maximum: T.nilable(T::Boolean),
147
- catch_up: T.nilable(T::Boolean),
148
135
  company_contribution:
149
136
  T.nilable(
150
137
  T::Array[
@@ -166,6 +153,7 @@ module FinchAPI
166
153
  T::Array[
167
154
  T.nilable(FinchAPI::HRIS::BenefitFrequency::TaggedSymbol)
168
155
  ],
156
+ catch_up: T.nilable(T::Boolean),
169
157
  hsa_contribution_limit:
170
158
  T.nilable(
171
159
  T::Array[
@@ -257,14 +245,14 @@ module FinchAPI
257
245
  end
258
246
  OrSymbol = T.type_alias { T.any(Symbol, String) }
259
247
 
260
- INDIVIDUAL =
248
+ FAMILY =
261
249
  T.let(
262
- :individual,
250
+ :family,
263
251
  FinchAPI::HRIS::SupportedBenefit::HsaContributionLimit::TaggedSymbol
264
252
  )
265
- FAMILY =
253
+ INDIVIDUAL =
266
254
  T.let(
267
- :family,
255
+ :individual,
268
256
  FinchAPI::HRIS::SupportedBenefit::HsaContributionLimit::TaggedSymbol
269
257
  )
270
258
 
@@ -16,35 +16,51 @@ module FinchAPI
16
16
  sig { returns(Integer) }
17
17
  attr_accessor :allowed_refreshes
18
18
 
19
+ # The number of remaining refreshes available (per hour, fixed window)
20
+ sig { returns(Integer) }
21
+ attr_accessor :remaining_refreshes
22
+
19
23
  # The id of the job that has been created.
20
- sig { returns(String) }
21
- attr_accessor :job_id
24
+ sig { returns(T.nilable(String)) }
25
+ attr_reader :job_id
26
+
27
+ sig { params(job_id: String).void }
28
+ attr_writer :job_id
22
29
 
23
30
  # The url that can be used to retrieve the job status
24
- sig { returns(String) }
25
- attr_accessor :job_url
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :job_url
26
33
 
27
- # The number of remaining refreshes available (per hour, fixed window)
28
- sig { returns(Integer) }
29
- attr_accessor :remaining_refreshes
34
+ sig { params(job_url: String).void }
35
+ attr_writer :job_url
36
+
37
+ # ISO 8601 timestamp indicating when to retry the request
38
+ sig { returns(T.nilable(String)) }
39
+ attr_reader :retry_at
40
+
41
+ sig { params(retry_at: String).void }
42
+ attr_writer :retry_at
30
43
 
31
44
  sig do
32
45
  params(
33
46
  allowed_refreshes: Integer,
47
+ remaining_refreshes: Integer,
34
48
  job_id: String,
35
49
  job_url: String,
36
- remaining_refreshes: Integer
50
+ retry_at: String
37
51
  ).returns(T.attached_class)
38
52
  end
39
53
  def self.new(
40
54
  # The number of allowed refreshes per hour (per hour, fixed window)
41
55
  allowed_refreshes:,
56
+ # The number of remaining refreshes available (per hour, fixed window)
57
+ remaining_refreshes:,
42
58
  # The id of the job that has been created.
43
- job_id:,
59
+ job_id: nil,
44
60
  # The url that can be used to retrieve the job status
45
- job_url:,
46
- # The number of remaining refreshes available (per hour, fixed window)
47
- remaining_refreshes:
61
+ job_url: nil,
62
+ # ISO 8601 timestamp indicating when to retry the request
63
+ retry_at: nil
48
64
  )
49
65
  end
50
66
 
@@ -52,9 +68,10 @@ module FinchAPI
52
68
  override.returns(
53
69
  {
54
70
  allowed_refreshes: Integer,
71
+ remaining_refreshes: Integer,
55
72
  job_id: String,
56
73
  job_url: String,
57
- remaining_refreshes: Integer
74
+ retry_at: String
58
75
  }
59
76
  )
60
77
  end
@@ -13,8 +13,8 @@ module FinchAPI
13
13
  attr_accessor type: FinchAPI::Models::HRIS::BenefitContribution::type_?
14
14
 
15
15
  def initialize: (
16
- ?amount: Integer?,
17
- ?type: FinchAPI::Models::HRIS::BenefitContribution::type_?
16
+ amount: Integer?,
17
+ type: FinchAPI::Models::HRIS::BenefitContribution::type_?
18
18
  ) -> void
19
19
 
20
20
  def to_hash: -> {
@@ -47,21 +47,13 @@ module FinchAPI
47
47
  }
48
48
 
49
49
  class CompanyContribution < FinchAPI::Internal::Type::BaseModel
50
- attr_reader tiers: ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier]?
50
+ attr_accessor tiers: ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier]
51
51
 
52
- def tiers=: (
53
- ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier]
54
- ) -> ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier]
55
-
56
- attr_reader type: FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_?
57
-
58
- def type=: (
59
- FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_
60
- ) -> FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_
52
+ attr_accessor type: FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_
61
53
 
62
54
  def initialize: (
63
- ?tiers: ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier],
64
- ?type: FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_
55
+ tiers: ::Array[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier],
56
+ type: FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::type_
65
57
  ) -> void
66
58
 
67
59
  def to_hash: -> {
@@ -72,15 +64,11 @@ module FinchAPI
72
64
  type tier = { match: Integer, threshold: Integer }
73
65
 
74
66
  class Tier < FinchAPI::Internal::Type::BaseModel
75
- attr_reader match: Integer?
76
-
77
- def match=: (Integer) -> Integer
78
-
79
- attr_reader threshold: Integer?
67
+ attr_accessor match: Integer
80
68
 
81
- def threshold=: (Integer) -> Integer
69
+ attr_accessor threshold: Integer
82
70
 
83
- def initialize: (?match: Integer, ?threshold: Integer) -> void
71
+ def initialize: (match: Integer, threshold: Integer) -> void
84
72
 
85
73
  def to_hash: -> { match: Integer, threshold: Integer }
86
74
  end
@@ -1,14 +1,14 @@
1
1
  module FinchAPI
2
2
  module Models
3
3
  module HRIS
4
- type benefit_frequency = :one_time | :every_paycheck | :monthly
4
+ type benefit_frequency = :every_paycheck | :monthly | :one_time
5
5
 
6
6
  module BenefitFrequency
7
7
  extend FinchAPI::Internal::Type::Enum
8
8
 
9
- ONE_TIME: :one_time
10
9
  EVERY_PAYCHECK: :every_paycheck
11
10
  MONTHLY: :monthly
11
+ ONE_TIME: :one_time
12
12
 
13
13
  def self?.values: -> ::Array[FinchAPI::Models::HRIS::benefit_frequency]
14
14
  end
@@ -6,84 +6,115 @@ module FinchAPI
6
6
  module Benefits
7
7
  type individual_benefit =
8
8
  {
9
- body: FinchAPI::HRIS::Benefits::IndividualBenefit::Body,
9
+ body: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::body,
10
10
  code: Integer,
11
11
  individual_id: String
12
12
  }
13
13
 
14
14
  class IndividualBenefit < FinchAPI::Internal::Type::BaseModel
15
- attr_reader body: FinchAPI::HRIS::Benefits::IndividualBenefit::Body?
15
+ attr_accessor body: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::body
16
16
 
17
- def body=: (
18
- FinchAPI::HRIS::Benefits::IndividualBenefit::Body
19
- ) -> FinchAPI::HRIS::Benefits::IndividualBenefit::Body
17
+ attr_accessor code: Integer
20
18
 
21
- attr_reader code: Integer?
22
-
23
- def code=: (Integer) -> Integer
24
-
25
- attr_reader individual_id: String?
26
-
27
- def individual_id=: (String) -> String
19
+ attr_accessor individual_id: String
28
20
 
29
21
  def initialize: (
30
- ?body: FinchAPI::HRIS::Benefits::IndividualBenefit::Body,
31
- ?code: Integer,
32
- ?individual_id: String
22
+ body: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::body,
23
+ code: Integer,
24
+ individual_id: String
33
25
  ) -> void
34
26
 
35
27
  def to_hash: -> {
36
- body: FinchAPI::HRIS::Benefits::IndividualBenefit::Body,
28
+ body: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::body,
37
29
  code: Integer,
38
30
  individual_id: String
39
31
  }
40
32
 
41
33
  type body =
42
- {
43
- annual_maximum: Integer?,
44
- catch_up: bool?,
45
- company_contribution: FinchAPI::HRIS::BenefitContribution?,
46
- employee_deduction: FinchAPI::HRIS::BenefitContribution?,
47
- hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::hsa_contribution_limit?
48
- }
34
+ FinchAPI::HRIS::Benefits::IndividualBenefit::Body::UnionMember0
35
+ | FinchAPI::HRIS::Benefits::IndividualBenefit::Body::BatchError
49
36
 
50
- class Body < FinchAPI::Internal::Type::BaseModel
51
- attr_accessor annual_maximum: Integer?
37
+ module Body
38
+ extend FinchAPI::Internal::Type::Union
52
39
 
53
- attr_accessor catch_up: bool?
40
+ type union_member0 =
41
+ {
42
+ annual_maximum: Integer?,
43
+ catch_up: bool?,
44
+ company_contribution: FinchAPI::HRIS::BenefitContribution?,
45
+ employee_deduction: FinchAPI::HRIS::BenefitContribution?,
46
+ hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::UnionMember0::hsa_contribution_limit?
47
+ }
54
48
 
55
- attr_accessor company_contribution: FinchAPI::HRIS::BenefitContribution?
49
+ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
50
+ attr_accessor annual_maximum: Integer?
56
51
 
57
- attr_accessor employee_deduction: FinchAPI::HRIS::BenefitContribution?
52
+ attr_accessor catch_up: bool?
58
53
 
59
- attr_accessor hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::hsa_contribution_limit?
54
+ attr_accessor company_contribution: FinchAPI::HRIS::BenefitContribution?
60
55
 
61
- def initialize: (
62
- ?annual_maximum: Integer?,
63
- ?catch_up: bool?,
64
- ?company_contribution: FinchAPI::HRIS::BenefitContribution?,
65
- ?employee_deduction: FinchAPI::HRIS::BenefitContribution?,
66
- ?hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::hsa_contribution_limit?
67
- ) -> void
56
+ attr_accessor employee_deduction: FinchAPI::HRIS::BenefitContribution?
68
57
 
69
- def to_hash: -> {
70
- annual_maximum: Integer?,
71
- catch_up: bool?,
72
- company_contribution: FinchAPI::HRIS::BenefitContribution?,
73
- employee_deduction: FinchAPI::HRIS::BenefitContribution?,
74
- hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::hsa_contribution_limit?
75
- }
58
+ attr_accessor hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::UnionMember0::hsa_contribution_limit?
76
59
 
77
- type hsa_contribution_limit = :individual | :family
60
+ def initialize: (
61
+ annual_maximum: Integer?,
62
+ catch_up: bool?,
63
+ company_contribution: FinchAPI::HRIS::BenefitContribution?,
64
+ employee_deduction: FinchAPI::HRIS::BenefitContribution?,
65
+ ?hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::UnionMember0::hsa_contribution_limit?
66
+ ) -> void
78
67
 
79
- module HsaContributionLimit
80
- extend FinchAPI::Internal::Type::Enum
68
+ def to_hash: -> {
69
+ annual_maximum: Integer?,
70
+ catch_up: bool?,
71
+ company_contribution: FinchAPI::HRIS::BenefitContribution?,
72
+ employee_deduction: FinchAPI::HRIS::BenefitContribution?,
73
+ hsa_contribution_limit: FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::UnionMember0::hsa_contribution_limit?
74
+ }
81
75
 
82
- INDIVIDUAL: :individual
83
- FAMILY: :family
76
+ type hsa_contribution_limit = :individual | :family
84
77
 
85
- def self?.values: -> ::Array[FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::hsa_contribution_limit]
78
+ module HsaContributionLimit
79
+ extend FinchAPI::Internal::Type::Enum
80
+
81
+ INDIVIDUAL: :individual
82
+ FAMILY: :family
83
+
84
+ def self?.values: -> ::Array[FinchAPI::Models::HRIS::Benefits::IndividualBenefit::Body::UnionMember0::hsa_contribution_limit]
85
+ end
86
86
  end
87
+
88
+ type batch_error =
89
+ { code: Float, message: String, name: String, finch_code: String }
90
+
91
+ class BatchError < FinchAPI::Internal::Type::BaseModel
92
+ attr_accessor code: Float
93
+
94
+ attr_accessor message: String
95
+
96
+ attr_accessor name: String
97
+
98
+ attr_reader finch_code: String?
99
+
100
+ def finch_code=: (String) -> String
101
+
102
+ def initialize: (
103
+ code: Float,
104
+ message: String,
105
+ name: String,
106
+ ?finch_code: String
107
+ ) -> void
108
+
109
+ def to_hash: -> {
110
+ code: Float,
111
+ message: String,
112
+ name: String,
113
+ finch_code: String
114
+ }
115
+ end
116
+
117
+ def self?.variants: -> ::Array[FinchAPI::Models::HRIS::Benefits::IndividualBenefit::body]
87
118
  end
88
119
  end
89
120
  end
@@ -4,37 +4,37 @@ module FinchAPI
4
4
  type company_benefit =
5
5
  {
6
6
  benefit_id: String,
7
- company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?,
8
7
  description: String?,
9
8
  frequency: FinchAPI::Models::HRIS::benefit_frequency?,
10
- type: FinchAPI::Models::HRIS::benefit_type?
9
+ type: FinchAPI::Models::HRIS::benefit_type?,
10
+ company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?
11
11
  }
12
12
 
13
13
  class CompanyBenefit < FinchAPI::Internal::Type::BaseModel
14
14
  attr_accessor benefit_id: String
15
15
 
16
- attr_accessor company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?
17
-
18
16
  attr_accessor description: String?
19
17
 
20
18
  attr_accessor frequency: FinchAPI::Models::HRIS::benefit_frequency?
21
19
 
22
20
  attr_accessor type: FinchAPI::Models::HRIS::benefit_type?
23
21
 
22
+ attr_accessor company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?
23
+
24
24
  def initialize: (
25
25
  benefit_id: String,
26
- company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?,
27
26
  description: String?,
28
27
  frequency: FinchAPI::Models::HRIS::benefit_frequency?,
29
- type: FinchAPI::Models::HRIS::benefit_type?
28
+ type: FinchAPI::Models::HRIS::benefit_type?,
29
+ ?company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?
30
30
  ) -> void
31
31
 
32
32
  def to_hash: -> {
33
33
  benefit_id: String,
34
- company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?,
35
34
  description: String?,
36
35
  frequency: FinchAPI::Models::HRIS::benefit_frequency?,
37
- type: FinchAPI::Models::HRIS::benefit_type?
36
+ type: FinchAPI::Models::HRIS::benefit_type?,
37
+ company_contribution: FinchAPI::HRIS::CompanyBenefit::CompanyContribution?
38
38
  }
39
39
 
40
40
  type company_contribution =
@@ -44,21 +44,13 @@ module FinchAPI
44
44
  }
45
45
 
46
46
  class CompanyContribution < FinchAPI::Internal::Type::BaseModel
47
- attr_reader tiers: ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier]?
48
-
49
- def tiers=: (
50
- ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier]
51
- ) -> ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier]
47
+ attr_accessor tiers: ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier]
52
48
 
53
- attr_reader type: FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_?
54
-
55
- def type=: (
56
- FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_
57
- ) -> FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_
49
+ attr_accessor type: FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_
58
50
 
59
51
  def initialize: (
60
- ?tiers: ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier],
61
- ?type: FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_
52
+ tiers: ::Array[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier],
53
+ type: FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::type_
62
54
  ) -> void
63
55
 
64
56
  def to_hash: -> {
@@ -69,15 +61,11 @@ module FinchAPI
69
61
  type tier = { match: Integer, threshold: Integer }
70
62
 
71
63
  class Tier < FinchAPI::Internal::Type::BaseModel
72
- attr_reader match: Integer?
73
-
74
- def match=: (Integer) -> Integer
75
-
76
- attr_reader threshold: Integer?
64
+ attr_accessor match: Integer
77
65
 
78
- def threshold=: (Integer) -> Integer
66
+ attr_accessor threshold: Integer
79
67
 
80
- def initialize: (?match: Integer, ?threshold: Integer) -> void
68
+ def initialize: (match: Integer, threshold: Integer) -> void
81
69
 
82
70
  def to_hash: -> { match: Integer, threshold: Integer }
83
71
  end
@@ -4,50 +4,46 @@ module FinchAPI
4
4
  type supported_benefit =
5
5
  {
6
6
  annual_maximum: bool?,
7
- catch_up: bool?,
8
7
  company_contribution: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::company_contribution?]?,
9
8
  description: String?,
10
9
  employee_deduction: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction?]?,
11
10
  frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?],
11
+ catch_up: bool?,
12
12
  hsa_contribution_limit: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::hsa_contribution_limit?]?
13
13
  }
14
14
 
15
15
  class SupportedBenefit < FinchAPI::Internal::Type::BaseModel
16
16
  attr_accessor annual_maximum: bool?
17
17
 
18
- attr_accessor catch_up: bool?
19
-
20
18
  attr_accessor company_contribution: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::company_contribution?]?
21
19
 
22
20
  attr_accessor description: String?
23
21
 
24
22
  attr_accessor employee_deduction: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction?]?
25
23
 
26
- attr_reader frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?]?
24
+ attr_accessor frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?]
27
25
 
28
- def frequencies=: (
29
- ::Array[FinchAPI::Models::HRIS::benefit_frequency?]
30
- ) -> ::Array[FinchAPI::Models::HRIS::benefit_frequency?]
26
+ attr_accessor catch_up: bool?
31
27
 
32
28
  attr_accessor hsa_contribution_limit: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::hsa_contribution_limit?]?
33
29
 
34
30
  def initialize: (
35
- ?annual_maximum: bool?,
31
+ annual_maximum: bool?,
32
+ company_contribution: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::company_contribution?]?,
33
+ description: String?,
34
+ employee_deduction: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction?]?,
35
+ frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?],
36
36
  ?catch_up: bool?,
37
- ?company_contribution: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::company_contribution?]?,
38
- ?description: String?,
39
- ?employee_deduction: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction?]?,
40
- ?frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?],
41
37
  ?hsa_contribution_limit: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::hsa_contribution_limit?]?
42
38
  ) -> void
43
39
 
44
40
  def to_hash: -> {
45
41
  annual_maximum: bool?,
46
- catch_up: bool?,
47
42
  company_contribution: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::company_contribution?]?,
48
43
  description: String?,
49
44
  employee_deduction: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction?]?,
50
45
  frequencies: ::Array[FinchAPI::Models::HRIS::benefit_frequency?],
46
+ catch_up: bool?,
51
47
  hsa_contribution_limit: ::Array[FinchAPI::Models::HRIS::SupportedBenefit::hsa_contribution_limit?]?
52
48
  }
53
49
 
@@ -73,13 +69,13 @@ module FinchAPI
73
69
  def self?.values: -> ::Array[FinchAPI::Models::HRIS::SupportedBenefit::employee_deduction]
74
70
  end
75
71
 
76
- type hsa_contribution_limit = :individual | :family
72
+ type hsa_contribution_limit = :family | :individual
77
73
 
78
74
  module HsaContributionLimit
79
75
  extend FinchAPI::Internal::Type::Enum
80
76
 
81
- INDIVIDUAL: :individual
82
77
  FAMILY: :family
78
+ INDIVIDUAL: :individual
83
79
 
84
80
  def self?.values: -> ::Array[FinchAPI::Models::HRIS::SupportedBenefit::hsa_contribution_limit]
85
81
  end
@@ -4,32 +4,43 @@ module FinchAPI
4
4
  type automated_create_response =
5
5
  {
6
6
  allowed_refreshes: Integer,
7
+ remaining_refreshes: Integer,
7
8
  job_id: String,
8
9
  job_url: String,
9
- remaining_refreshes: Integer
10
+ retry_at: String
10
11
  }
11
12
 
12
13
  class AutomatedCreateResponse < FinchAPI::Internal::Type::BaseModel
13
14
  attr_accessor allowed_refreshes: Integer
14
15
 
15
- attr_accessor job_id: String
16
+ attr_accessor remaining_refreshes: Integer
16
17
 
17
- attr_accessor job_url: String
18
+ attr_reader job_id: String?
18
19
 
19
- attr_accessor remaining_refreshes: Integer
20
+ def job_id=: (String) -> String
21
+
22
+ attr_reader job_url: String?
23
+
24
+ def job_url=: (String) -> String
25
+
26
+ attr_reader retry_at: String?
27
+
28
+ def retry_at=: (String) -> String
20
29
 
21
30
  def initialize: (
22
31
  allowed_refreshes: Integer,
23
- job_id: String,
24
- job_url: String,
25
- remaining_refreshes: Integer
32
+ remaining_refreshes: Integer,
33
+ ?job_id: String,
34
+ ?job_url: String,
35
+ ?retry_at: String
26
36
  ) -> void
27
37
 
28
38
  def to_hash: -> {
29
39
  allowed_refreshes: Integer,
40
+ remaining_refreshes: Integer,
30
41
  job_id: String,
31
42
  job_url: String,
32
- remaining_refreshes: Integer
43
+ retry_at: String
33
44
  }
34
45
  end
35
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.23
4
+ version: 0.1.0.pre.alpha.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-09 00:00:00.000000000 Z
11
+ date: 2025-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool