Skip to content

Commit a0fa401

Browse files
fix(types): make credit_product_token optional in financial_accounts statement
1 parent 1fa7586 commit a0fa401

5 files changed

Lines changed: 14 additions & 14 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: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-bf54d7063b11e1b1656e00d02438f34f87938a9fdbdd5b980fce3cfae3dabffa.yml
3-
openapi_spec_hash: c6efbc9d3105fa48f76ebb095b887e08
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0b90022fb88c44037dcbff183d3016a85fe7267c5b461f65a54262f734629a2b.yml
3+
openapi_spec_hash: 7b35e7c203748b3424b5931acd6dacf8
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

lib/lithic/models/financial_accounts/statement.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class Statement < Lithic::Internal::Type::BaseModel
4242
# @!attribute credit_product_token
4343
# Globally unique identifier for a credit product
4444
#
45-
# @return [String]
46-
required :credit_product_token, String
45+
# @return [String, nil]
46+
required :credit_product_token, String, nil?: true
4747

4848
# @!attribute days_in_billing_cycle
4949
# Number of days in the billing cycle
@@ -153,7 +153,7 @@ class Statement < Lithic::Internal::Type::BaseModel
153153
#
154154
# @param credit_limit [Integer] This is the maximum credit balance extended by the lender in cents
155155
#
156-
# @param credit_product_token [String] Globally unique identifier for a credit product
156+
# @param credit_product_token [String, nil] Globally unique identifier for a credit product
157157
#
158158
# @param days_in_billing_cycle [Integer] Number of days in the billing cycle
159159
#

rbi/lithic/models/financial_accounts/statement.rbi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module Lithic
5050
attr_accessor :credit_limit
5151

5252
# Globally unique identifier for a credit product
53-
sig { returns(String) }
53+
sig { returns(T.nilable(String)) }
5454
attr_accessor :credit_product_token
5555

5656
# Number of days in the billing cycle
@@ -169,7 +169,7 @@ module Lithic
169169
available_credit: Integer,
170170
created: Time,
171171
credit_limit: Integer,
172-
credit_product_token: String,
172+
credit_product_token: T.nilable(String),
173173
days_in_billing_cycle: Integer,
174174
ending_balance: Integer,
175175
financial_account_token: String,
@@ -249,7 +249,7 @@ module Lithic
249249
available_credit: Integer,
250250
created: Time,
251251
credit_limit: Integer,
252-
credit_product_token: String,
252+
credit_product_token: T.nilable(String),
253253
days_in_billing_cycle: Integer,
254254
ending_balance: Integer,
255255
financial_account_token: String,

sig/lithic/models/financial_accounts/statement.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Lithic
99
available_credit: Integer,
1010
created: Time,
1111
credit_limit: Integer,
12-
credit_product_token: String,
12+
credit_product_token: String?,
1313
days_in_billing_cycle: Integer,
1414
ending_balance: Integer,
1515
financial_account_token: String,
@@ -41,7 +41,7 @@ module Lithic
4141

4242
attr_accessor credit_limit: Integer
4343

44-
attr_accessor credit_product_token: String
44+
attr_accessor credit_product_token: String?
4545

4646
attr_accessor days_in_billing_cycle: Integer
4747

@@ -90,7 +90,7 @@ module Lithic
9090
available_credit: Integer,
9191
created: Time,
9292
credit_limit: Integer,
93-
credit_product_token: String,
93+
credit_product_token: String?,
9494
days_in_billing_cycle: Integer,
9595
ending_balance: Integer,
9696
financial_account_token: String,
@@ -116,7 +116,7 @@ module Lithic
116116
available_credit: Integer,
117117
created: Time,
118118
credit_limit: Integer,
119-
credit_product_token: String,
119+
credit_product_token: String?,
120120
days_in_billing_cycle: Integer,
121121
ending_balance: Integer,
122122
financial_account_token: String,

test/lithic/resources/financial_accounts/statements_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_retrieve_required_params
2222
available_credit: Integer,
2323
created: Time,
2424
credit_limit: Integer,
25-
credit_product_token: String,
25+
credit_product_token: String | nil,
2626
days_in_billing_cycle: Integer,
2727
ending_balance: Integer,
2828
financial_account_token: String,
@@ -65,7 +65,7 @@ def test_list
6565
available_credit: Integer,
6666
created: Time,
6767
credit_limit: Integer,
68-
credit_product_token: String,
68+
credit_product_token: String | nil,
6969
days_in_billing_cycle: Integer,
7070
ending_balance: Integer,
7171
financial_account_token: String,

0 commit comments

Comments
 (0)