Skip to content

Commit d5d3ecb

Browse files
feat(api): add penalty_rates parameter to interest_tier_schedule
1 parent e31938a commit d5d3ecb

11 files changed

Lines changed: 74 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c5b3750e5a69b58f465c8bc61065c0ddd2fd3fec8fef2fa5703fcb10d7ba6a1c.yml
3-
openapi_spec_hash: 3a4cfae4d14318c5e3dfe8bcc751497f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b0ae5fc46338788b5191870fa233397a5624402f6f30177574fc824c2d6d235f.yml
3+
openapi_spec_hash: 13b104665e60f7d755b0483eb2e8a344
44
config_hash: 7daa8d0d03697920c0c1ca18ce6d4594

lib/lithic/models/financial_accounts/interest_tier_schedule.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ class FinancialAccountsInterestTierSchedule < Lithic::Internal::Type::BaseModel
1717
# @return [Date]
1818
required :effective_date, Date
1919

20+
# @!attribute penalty_rates
21+
# Custom rates per category for penalties
22+
#
23+
# @return [Object, nil]
24+
optional :penalty_rates, Lithic::Internal::Type::Unknown
25+
2026
# @!attribute tier_name
2127
# Name of a tier contained in the credit product. Mutually exclusive with
2228
# tier_rates
@@ -30,7 +36,7 @@ class FinancialAccountsInterestTierSchedule < Lithic::Internal::Type::BaseModel
3036
# @return [Object, nil]
3137
optional :tier_rates, Lithic::Internal::Type::Unknown
3238

33-
# @!method initialize(credit_product_token:, effective_date:, tier_name: nil, tier_rates: nil)
39+
# @!method initialize(credit_product_token:, effective_date:, penalty_rates: nil, tier_name: nil, tier_rates: nil)
3440
# Some parameter documentations has been truncated, see
3541
# {Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule} for
3642
# more details.
@@ -41,6 +47,8 @@ class FinancialAccountsInterestTierSchedule < Lithic::Internal::Type::BaseModel
4147
#
4248
# @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
4349
#
50+
# @param penalty_rates [Object] Custom rates per category for penalties
51+
#
4452
# @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
4553
#
4654
# @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name

lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel
1818
# @return [Date]
1919
required :effective_date, Date
2020

21+
# @!attribute penalty_rates
22+
# Custom rates per category for penalties
23+
#
24+
# @return [Object, nil]
25+
optional :penalty_rates, Lithic::Internal::Type::Unknown
26+
2127
# @!attribute tier_name
2228
# Name of a tier contained in the credit product. Mutually exclusive with
2329
# tier_rates
@@ -31,7 +37,7 @@ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel
3137
# @return [Object, nil]
3238
optional :tier_rates, Lithic::Internal::Type::Unknown
3339

34-
# @!method initialize(financial_account_token:, effective_date:, tier_name: nil, tier_rates: nil, request_options: {})
40+
# @!method initialize(financial_account_token:, effective_date:, penalty_rates: nil, tier_name: nil, tier_rates: nil, request_options: {})
3541
# Some parameter documentations has been truncated, see
3642
# {Lithic::Models::FinancialAccounts::InterestTierScheduleUpdateParams} for more
3743
# details.
@@ -40,6 +46,8 @@ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel
4046
#
4147
# @param effective_date [Date]
4248
#
49+
# @param penalty_rates [Object] Custom rates per category for penalties
50+
#
4351
# @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
4452
#
4553
# @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name

lib/lithic/resources/financial_accounts/interest_tier_schedule.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ class InterestTierSchedule
1010
#
1111
# Create a new interest tier schedule entry for a supported financial account
1212
#
13-
# @overload create(financial_account_token, credit_product_token:, effective_date:, tier_name: nil, tier_rates: nil, request_options: {})
13+
# @overload create(financial_account_token, credit_product_token:, effective_date:, penalty_rates: nil, tier_name: nil, tier_rates: nil, request_options: {})
1414
#
1515
# @param financial_account_token [String] Globally unique identifier for financial account
1616
#
1717
# @param credit_product_token [String] Globally unique identifier for a credit product
1818
#
1919
# @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
2020
#
21+
# @param penalty_rates [Object] Custom rates per category for penalties
22+
#
2123
# @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
2224
#
2325
# @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
@@ -75,12 +77,14 @@ def retrieve(effective_date, params)
7577
#
7678
# Update an existing interest tier schedule
7779
#
78-
# @overload update(effective_date, financial_account_token:, tier_name: nil, tier_rates: nil, request_options: {})
80+
# @overload update(effective_date, financial_account_token:, penalty_rates: nil, tier_name: nil, tier_rates: nil, request_options: {})
7981
#
8082
# @param effective_date [Date] Path param: Effective date in ISO format (YYYY-MM-DD)
8183
#
8284
# @param financial_account_token [String] Path param: Globally unique identifier for financial account
8385
#
86+
# @param penalty_rates [Object] Body param: Custom rates per category for penalties
87+
#
8488
# @param tier_name [String] Body param: Name of a tier contained in the credit product. Mutually exclusive w
8589
#
8690
# @param tier_rates [Object] Body param: Custom rates per category. Mutually exclusive with tier_name

rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ module Lithic
2020
sig { returns(Date) }
2121
attr_accessor :effective_date
2222

23+
# Custom rates per category for penalties
24+
sig { returns(T.nilable(T.anything)) }
25+
attr_reader :penalty_rates
26+
27+
sig { params(penalty_rates: T.anything).void }
28+
attr_writer :penalty_rates
29+
2330
# Name of a tier contained in the credit product. Mutually exclusive with
2431
# tier_rates
2532
sig { returns(T.nilable(String)) }
@@ -40,6 +47,7 @@ module Lithic
4047
params(
4148
credit_product_token: String,
4249
effective_date: Date,
50+
penalty_rates: T.anything,
4351
tier_name: String,
4452
tier_rates: T.anything
4553
).returns(T.attached_class)
@@ -49,6 +57,8 @@ module Lithic
4957
credit_product_token:,
5058
# Date the tier should be effective in YYYY-MM-DD format
5159
effective_date:,
60+
# Custom rates per category for penalties
61+
penalty_rates: nil,
5262
# Name of a tier contained in the credit product. Mutually exclusive with
5363
# tier_rates
5464
tier_name: nil,
@@ -62,6 +72,7 @@ module Lithic
6272
{
6373
credit_product_token: String,
6474
effective_date: Date,
75+
penalty_rates: T.anything,
6576
tier_name: String,
6677
tier_rates: T.anything
6778
}

rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ module Lithic
2121
sig { returns(Date) }
2222
attr_accessor :effective_date
2323

24+
# Custom rates per category for penalties
25+
sig { returns(T.nilable(T.anything)) }
26+
attr_reader :penalty_rates
27+
28+
sig { params(penalty_rates: T.anything).void }
29+
attr_writer :penalty_rates
30+
2431
# Name of a tier contained in the credit product. Mutually exclusive with
2532
# tier_rates
2633
sig { returns(T.nilable(String)) }
@@ -40,6 +47,7 @@ module Lithic
4047
params(
4148
financial_account_token: String,
4249
effective_date: Date,
50+
penalty_rates: T.anything,
4351
tier_name: String,
4452
tier_rates: T.anything,
4553
request_options: Lithic::RequestOptions::OrHash
@@ -48,6 +56,8 @@ module Lithic
4856
def self.new(
4957
financial_account_token:,
5058
effective_date:,
59+
# Custom rates per category for penalties
60+
penalty_rates: nil,
5161
# Name of a tier contained in the credit product. Mutually exclusive with
5262
# tier_rates
5363
tier_name: nil,
@@ -62,6 +72,7 @@ module Lithic
6272
{
6373
financial_account_token: String,
6474
effective_date: Date,
75+
penalty_rates: T.anything,
6576
tier_name: String,
6677
tier_rates: T.anything,
6778
request_options: Lithic::RequestOptions

rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Lithic
1010
financial_account_token: String,
1111
credit_product_token: String,
1212
effective_date: Date,
13+
penalty_rates: T.anything,
1314
tier_name: String,
1415
tier_rates: T.anything,
1516
request_options: Lithic::RequestOptions::OrHash
@@ -24,6 +25,8 @@ module Lithic
2425
credit_product_token:,
2526
# Date the tier should be effective in YYYY-MM-DD format
2627
effective_date:,
28+
# Custom rates per category for penalties
29+
penalty_rates: nil,
2730
# Name of a tier contained in the credit product. Mutually exclusive with
2831
# tier_rates
2932
tier_name: nil,
@@ -57,6 +60,7 @@ module Lithic
5760
params(
5861
effective_date: Date,
5962
financial_account_token: String,
63+
penalty_rates: T.anything,
6064
tier_name: String,
6165
tier_rates: T.anything,
6266
request_options: Lithic::RequestOptions::OrHash
@@ -69,6 +73,8 @@ module Lithic
6973
effective_date,
7074
# Path param: Globally unique identifier for financial account
7175
financial_account_token:,
76+
# Body param: Custom rates per category for penalties
77+
penalty_rates: nil,
7278
# Body param: Name of a tier contained in the credit product. Mutually exclusive
7379
# with tier_rates
7480
tier_name: nil,

sig/lithic/models/financial_accounts/interest_tier_schedule.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Lithic
55
{
66
credit_product_token: String,
77
effective_date: Date,
8+
penalty_rates: top,
89
tier_name: String,
910
tier_rates: top
1011
}
@@ -14,6 +15,10 @@ module Lithic
1415

1516
attr_accessor effective_date: Date
1617

18+
attr_reader penalty_rates: top?
19+
20+
def penalty_rates=: (top) -> top
21+
1722
attr_reader tier_name: String?
1823

1924
def tier_name=: (String) -> String
@@ -25,13 +30,15 @@ module Lithic
2530
def initialize: (
2631
credit_product_token: String,
2732
effective_date: Date,
33+
?penalty_rates: top,
2834
?tier_name: String,
2935
?tier_rates: top
3036
) -> void
3137

3238
def to_hash: -> {
3339
credit_product_token: String,
3440
effective_date: Date,
41+
penalty_rates: top,
3542
tier_name: String,
3643
tier_rates: top
3744
}

sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Lithic
55
{
66
financial_account_token: String,
77
effective_date: Date,
8+
penalty_rates: top,
89
tier_name: String,
910
tier_rates: top
1011
}
@@ -18,6 +19,10 @@ module Lithic
1819

1920
attr_accessor effective_date: Date
2021

22+
attr_reader penalty_rates: top?
23+
24+
def penalty_rates=: (top) -> top
25+
2126
attr_reader tier_name: String?
2227

2328
def tier_name=: (String) -> String
@@ -29,6 +34,7 @@ module Lithic
2934
def initialize: (
3035
financial_account_token: String,
3136
effective_date: Date,
37+
?penalty_rates: top,
3238
?tier_name: String,
3339
?tier_rates: top,
3440
?request_options: Lithic::request_opts
@@ -37,6 +43,7 @@ module Lithic
3743
def to_hash: -> {
3844
financial_account_token: String,
3945
effective_date: Date,
46+
penalty_rates: top,
4047
tier_name: String,
4148
tier_rates: top,
4249
request_options: Lithic::RequestOptions

sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Lithic
66
String financial_account_token,
77
credit_product_token: String,
88
effective_date: Date,
9+
?penalty_rates: top,
910
?tier_name: String,
1011
?tier_rates: top,
1112
?request_options: Lithic::request_opts
@@ -20,6 +21,7 @@ module Lithic
2021
def update: (
2122
Date effective_date,
2223
financial_account_token: String,
24+
?penalty_rates: top,
2325
?tier_name: String,
2426
?tier_rates: top,
2527
?request_options: Lithic::request_opts

0 commit comments

Comments
 (0)