Skip to content

Commit 3e0194f

Browse files
feat(api): add EARLY_DIRECT_DEPOSIT_FLOAT to financial account types
1 parent 68d9031 commit 3e0194f

56 files changed

Lines changed: 2086 additions & 15 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 185
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ee8607f0a2cdcaee420935050334a439db8dd097be83023fccdaf1d6f9a7de14.yml
3-
openapi_spec_hash: 0f21c68cdddb7c5bd99f42356d507393
4-
config_hash: fb5070d41fcabdedbc084b83964b592a
1+
configured_endpoints: 189
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ee2b9f00d3a9e0000e25abc0774615d6ad3300ce17b2f094e71b0229a907760f.yml
3+
openapi_spec_hash: 01d2cbf4ac692dba2f3831462db929e4
4+
config_hash: a45e6da4e7b46db4ff6819d1dba5d815

lib/lithic.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@
320320
require_relative "lithic/models/funding_event_retrieve_details_params"
321321
require_relative "lithic/models/funding_event_retrieve_details_response"
322322
require_relative "lithic/models/funding_event_retrieve_params"
323+
require_relative "lithic/models/hold"
324+
require_relative "lithic/models/hold_create_params"
325+
require_relative "lithic/models/hold_event"
326+
require_relative "lithic/models/hold_list_params"
327+
require_relative "lithic/models/hold_retrieve_params"
328+
require_relative "lithic/models/hold_void_params"
323329
require_relative "lithic/models/instance_financial_account_type"
324330
require_relative "lithic/models/internal_transaction_created_webhook_event"
325331
require_relative "lithic/models/internal_transaction_updated_webhook_event"
@@ -485,6 +491,7 @@
485491
require_relative "lithic/resources/fraud"
486492
require_relative "lithic/resources/fraud/transactions"
487493
require_relative "lithic/resources/funding_events"
494+
require_relative "lithic/resources/holds"
488495
require_relative "lithic/resources/internal_transaction"
489496
require_relative "lithic/resources/management_operations"
490497
require_relative "lithic/resources/network_programs"

lib/lithic/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class Client < Lithic::Internal::Transport::BaseClient
113113
# @return [Lithic::Resources::NetworkPrograms]
114114
attr_reader :network_programs
115115

116+
# @return [Lithic::Resources::Holds]
117+
attr_reader :holds
118+
116119
# @return [Lithic::Resources::AccountActivity]
117120
attr_reader :account_activity
118121

@@ -221,6 +224,7 @@ def initialize(
221224
@funding_events = Lithic::Resources::FundingEvents.new(client: self)
222225
@fraud = Lithic::Resources::Fraud.new(client: self)
223226
@network_programs = Lithic::Resources::NetworkPrograms.new(client: self)
227+
@holds = Lithic::Resources::Holds.new(client: self)
224228
@account_activity = Lithic::Resources::AccountActivity.new(client: self)
225229
@transfer_limits = Lithic::Resources::TransferLimits.new(client: self)
226230
@webhooks = Lithic::Resources::Webhooks.new(client: self)

lib/lithic/models.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,18 @@ module Lithic
365365

366366
FundingEventRetrieveParams = Lithic::Models::FundingEventRetrieveParams
367367

368+
Hold = Lithic::Models::Hold
369+
370+
HoldCreateParams = Lithic::Models::HoldCreateParams
371+
372+
HoldEvent = Lithic::Models::HoldEvent
373+
374+
HoldListParams = Lithic::Models::HoldListParams
375+
376+
HoldRetrieveParams = Lithic::Models::HoldRetrieveParams
377+
378+
HoldVoidParams = Lithic::Models::HoldVoidParams
379+
368380
InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
369381

370382
InternalTransactionAPI = Lithic::Models::InternalTransactionAPI

lib/lithic/models/account_activity_list_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ module Category
128128
MANAGEMENT_FEE = :MANAGEMENT_FEE
129129
MANAGEMENT_REWARD = :MANAGEMENT_REWARD
130130
MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
131+
HOLD = :HOLD
131132
PROGRAM_FUNDING = :PROGRAM_FUNDING
132133

133134
# @!method self.values

lib/lithic/models/account_activity_list_response.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module Models
66
# which transaction type is returned: INTERNAL returns FinancialTransaction,
77
# TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT
88
# returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse,
9-
# and MANAGEMENT_OPERATION returns ManagementOperationTransaction
9+
# MANAGEMENT_OPERATION returns ManagementOperationTransaction, and HOLD returns
10+
# HoldTransaction
1011
#
1112
# @see Lithic::Resources::AccountActivity#list
1213
module AccountActivityListResponse
@@ -30,6 +31,9 @@ module AccountActivityListResponse
3031

3132
variant :MANAGEMENT_OPERATION, -> { Lithic::ManagementOperationTransaction }
3233

34+
# A hold transaction representing reserved funds on a financial account. Holds move funds from available to pending balance in anticipation of future payments. They can be resolved via settlement (linked to payment), manual release, or expiration.
35+
variant :HOLD, -> { Lithic::Hold }
36+
3337
class Internal < Lithic::Internal::Type::BaseModel
3438
# @!attribute token
3539
# Unique identifier for the transaction
@@ -163,6 +167,7 @@ module Category
163167
MANAGEMENT_FEE = :MANAGEMENT_FEE
164168
MANAGEMENT_REWARD = :MANAGEMENT_REWARD
165169
MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
170+
HOLD = :HOLD
166171
PROGRAM_FUNDING = :PROGRAM_FUNDING
167172

168173
# @!method self.values
@@ -261,7 +266,7 @@ module Status
261266
end
262267

263268
# @!method self.variants
264-
# @return [Array(Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)]
269+
# @return [Array(Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction, Lithic::Models::Hold)]
265270
end
266271
end
267272
end

lib/lithic/models/account_activity_retrieve_transaction_response.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module Models
66
# which transaction type is returned: INTERNAL returns FinancialTransaction,
77
# TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT
88
# returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse,
9-
# and MANAGEMENT_OPERATION returns ManagementOperationTransaction
9+
# MANAGEMENT_OPERATION returns ManagementOperationTransaction, and HOLD returns
10+
# HoldTransaction
1011
#
1112
# @see Lithic::Resources::AccountActivity#retrieve_transaction
1213
module AccountActivityRetrieveTransactionResponse
@@ -30,6 +31,9 @@ module AccountActivityRetrieveTransactionResponse
3031

3132
variant :MANAGEMENT_OPERATION, -> { Lithic::ManagementOperationTransaction }
3233

34+
# A hold transaction representing reserved funds on a financial account. Holds move funds from available to pending balance in anticipation of future payments. They can be resolved via settlement (linked to payment), manual release, or expiration.
35+
variant :HOLD, -> { Lithic::Hold }
36+
3337
class Internal < Lithic::Internal::Type::BaseModel
3438
# @!attribute token
3539
# Unique identifier for the transaction
@@ -166,6 +170,7 @@ module Category
166170
MANAGEMENT_FEE = :MANAGEMENT_FEE
167171
MANAGEMENT_REWARD = :MANAGEMENT_REWARD
168172
MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
173+
HOLD = :HOLD
169174
PROGRAM_FUNDING = :PROGRAM_FUNDING
170175

171176
# @!method self.values
@@ -264,7 +269,7 @@ module Status
264269
end
265270

266271
# @!method self.variants
267-
# @return [Array(Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)]
272+
# @return [Array(Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction, Lithic::Models::Hold)]
268273
end
269274
end
270275
end

lib/lithic/models/financial_account.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ module Type
202202
PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
203203
COLLECTION = :COLLECTION
204204
PROGRAM_BANK_ACCOUNTS_PAYABLE = :PROGRAM_BANK_ACCOUNTS_PAYABLE
205+
EARLY_DIRECT_DEPOSIT_FLOAT = :EARLY_DIRECT_DEPOSIT_FLOAT
205206

206207
# @!method self.values
207208
# @return [Array<Symbol>]

lib/lithic/models/financial_account_list_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module Type
4242
OPERATING = :OPERATING
4343
RESERVE = :RESERVE
4444
SECURITY = :SECURITY
45+
EARLY_DIRECT_DEPOSIT_FLOAT = :EARLY_DIRECT_DEPOSIT_FLOAT
4546

4647
# @!method self.values
4748
# @return [Array<Symbol>]

lib/lithic/models/financial_accounts/statements/statement_line_items.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ module Category
144144
MANAGEMENT_FEE = :MANAGEMENT_FEE
145145
MANAGEMENT_REWARD = :MANAGEMENT_REWARD
146146
MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
147+
HOLD = :HOLD
147148
PROGRAM_FUNDING = :PROGRAM_FUNDING
148149

149150
# @!method self.values

0 commit comments

Comments
 (0)