Skip to content

Commit 055b260

Browse files
feat(api): api update
1 parent 6479e22 commit 055b260

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-1a82d3230c420c8562600b0ad45133d79ab68ffd21d524ab26eef11e163dba09.yml
3-
openapi_spec_hash: 7bd02ce73505e51c5fd78608fed55c62
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-dd2cdf274497a0f36aaa493457a1144f51f6c28e14b4521acca9715747688b50.yml
3+
openapi_spec_hash: 8bbc0ac9dae255055b69c1d040c43c4b
44
config_hash: 5146b12344dae76238940989dac1e8a0

lib/finch_api/models/income.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Income < FinchAPI::Internal::Type::BaseModel
1818
# @!attribute effective_date
1919
# The date the income amount went into effect.
2020
#
21-
# @return [String, nil]
22-
required :effective_date, String, nil?: true
21+
# @return [Date, nil]
22+
required :effective_date, Date, nil?: true
2323

2424
# @!attribute unit
2525
# The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
@@ -40,7 +40,7 @@ class Income < FinchAPI::Internal::Type::BaseModel
4040
#
4141
# @param currency [String, nil] The currency code.
4242
#
43-
# @param effective_date [String, nil] The date the income amount went into effect.
43+
# @param effective_date [Date, nil] The date the income amount went into effect.
4444
#
4545
# @param unit [Symbol, FinchAPI::Models::Income::Unit, nil] The income unit of payment. Options: `yearly`, `quarterly`, `monthly`, `semi_mon
4646

rbi/finch_api/models/income.rbi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module FinchAPI
1515
attr_accessor :currency
1616

1717
# The date the income amount went into effect.
18-
sig { returns(T.nilable(String)) }
18+
sig { returns(T.nilable(Date)) }
1919
attr_accessor :effective_date
2020

2121
# The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
@@ -30,7 +30,7 @@ module FinchAPI
3030
params(
3131
amount: T.nilable(Integer),
3232
currency: T.nilable(String),
33-
effective_date: T.nilable(String),
33+
effective_date: T.nilable(Date),
3434
unit: T.nilable(FinchAPI::Income::Unit::OrSymbol)
3535
).returns(T.attached_class)
3636
end
@@ -52,7 +52,7 @@ module FinchAPI
5252
{
5353
amount: T.nilable(Integer),
5454
currency: T.nilable(String),
55-
effective_date: T.nilable(String),
55+
effective_date: T.nilable(Date),
5656
unit: T.nilable(FinchAPI::Income::Unit::OrSymbol)
5757
}
5858
)

sig/finch_api/models/income.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module FinchAPI
44
{
55
amount: Integer?,
66
currency: String?,
7-
effective_date: String?,
7+
effective_date: Date?,
88
unit: FinchAPI::Models::Income::unit?
99
}
1010

@@ -13,21 +13,21 @@ module FinchAPI
1313

1414
attr_accessor currency: String?
1515

16-
attr_accessor effective_date: String?
16+
attr_accessor effective_date: Date?
1717

1818
attr_accessor unit: FinchAPI::Models::Income::unit?
1919

2020
def initialize: (
2121
amount: Integer?,
2222
currency: String?,
23-
effective_date: String?,
23+
effective_date: Date?,
2424
unit: FinchAPI::Models::Income::unit?
2525
) -> void
2626

2727
def to_hash: -> {
2828
amount: Integer?,
2929
currency: String?,
30-
effective_date: String?,
30+
effective_date: Date?,
3131
unit: FinchAPI::Models::Income::unit?
3232
}
3333

0 commit comments

Comments
 (0)