lithic 0.22.0 → 0.23.1

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -24
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -24
  8. data/lib/lithic/models/book_transfer_create_params.rb +1 -0
  9. data/lib/lithic/models/book_transfer_response.rb +1 -0
  10. data/lib/lithic/models/card_authorization.rb +1 -0
  11. data/lib/lithic/models/cards/financial_transaction_list_params.rb +9 -1
  12. data/lib/lithic/models/claim_created_webhook_event.rb +15 -1
  13. data/lib/lithic/models/claim_updated_webhook_event.rb +15 -1
  14. data/lib/lithic/models/financial_account_balance.rb +6 -6
  15. data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +9 -2
  16. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +9 -1
  17. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +6 -6
  18. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +6 -6
  19. data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
  20. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +5 -0
  21. data/lib/lithic/models/financial_event.rb +4 -0
  22. data/lib/lithic/models/funding_event_list_params.rb +28 -1
  23. data/lib/lithic/models/hold.rb +24 -28
  24. data/lib/lithic/models/ip_range_retrieve_params.rb +14 -0
  25. data/lib/lithic/models/ip_range_retrieve_response.rb +25 -0
  26. data/lib/lithic/models/payment.rb +1 -0
  27. data/lib/lithic/models/transaction.rb +9 -3
  28. data/lib/lithic/models/transactions/events/enhanced_data.rb +27 -3
  29. data/lib/lithic/models/transfer_limits_response.rb +9 -1
  30. data/lib/lithic/models.rb +2 -0
  31. data/lib/lithic/resources/cards/financial_transactions.rb +5 -3
  32. data/lib/lithic/resources/financial_accounts/credit_configuration.rb +9 -2
  33. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +5 -3
  34. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -6
  35. data/lib/lithic/resources/funding_events.rb +8 -2
  36. data/lib/lithic/resources/ip_ranges.rb +36 -0
  37. data/lib/lithic/resources/webhooks.rb +2 -0
  38. data/lib/lithic/version.rb +1 -1
  39. data/lib/lithic.rb +3 -0
  40. data/rbi/lithic/client.rbi +3 -0
  41. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  42. data/rbi/lithic/models/account_activity_list_response.rbi +6 -75
  43. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +6 -75
  44. data/rbi/lithic/models/book_transfer_create_params.rbi +5 -0
  45. data/rbi/lithic/models/book_transfer_response.rbi +5 -0
  46. data/rbi/lithic/models/card_authorization.rbi +2 -0
  47. data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
  48. data/rbi/lithic/models/claim_created_webhook_event.rbi +14 -0
  49. data/rbi/lithic/models/claim_updated_webhook_event.rbi +14 -0
  50. data/rbi/lithic/models/financial_account_balance.rbi +6 -6
  51. data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +8 -2
  52. data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
  53. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +9 -18
  54. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +9 -18
  55. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +24 -3
  56. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +25 -0
  57. data/rbi/lithic/models/financial_event.rbi +17 -0
  58. data/rbi/lithic/models/funding_event_list_params.rbi +39 -0
  59. data/rbi/lithic/models/hold.rbi +28 -29
  60. data/rbi/lithic/models/ip_range_retrieve_params.rbi +27 -0
  61. data/rbi/lithic/models/ip_range_retrieve_response.rbi +40 -0
  62. data/rbi/lithic/models/payment.rbi +1 -0
  63. data/rbi/lithic/models/transaction.rbi +11 -4
  64. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +25 -5
  65. data/rbi/lithic/models/transfer_limits_response.rbi +8 -0
  66. data/rbi/lithic/models.rbi +2 -0
  67. data/rbi/lithic/resources/cards/financial_transactions.rbi +4 -1
  68. data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +8 -2
  69. data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +4 -1
  70. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -6
  71. data/rbi/lithic/resources/funding_events.rbi +12 -0
  72. data/rbi/lithic/resources/ip_ranges.rbi +25 -0
  73. data/sig/lithic/client.rbs +2 -0
  74. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  75. data/sig/lithic/models/account_activity_list_response.rbs +3 -32
  76. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +3 -32
  77. data/sig/lithic/models/book_transfer_create_params.rbs +2 -0
  78. data/sig/lithic/models/book_transfer_response.rbs +2 -0
  79. data/sig/lithic/models/card_authorization.rbs +8 -1
  80. data/sig/lithic/models/cards/financial_transaction_list_params.rbs +7 -0
  81. data/sig/lithic/models/claim_created_webhook_event.rbs +5 -0
  82. data/sig/lithic/models/claim_updated_webhook_event.rbs +5 -0
  83. data/sig/lithic/models/financial_account_balance.rbs +8 -8
  84. data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +7 -0
  85. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +12 -18
  86. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +12 -18
  87. data/sig/lithic/models/financial_accounts/loan_tape.rbs +8 -3
  88. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +10 -0
  89. data/sig/lithic/models/financial_event.rbs +8 -0
  90. data/sig/lithic/models/funding_event_list_params.rbs +26 -1
  91. data/sig/lithic/models/hold.rbs +22 -30
  92. data/sig/lithic/models/ip_range_retrieve_params.rbs +15 -0
  93. data/sig/lithic/models/ip_range_retrieve_response.rbs +16 -0
  94. data/sig/lithic/models/payment.rbs +2 -0
  95. data/sig/lithic/models/transaction.rbs +12 -5
  96. data/sig/lithic/models/transactions/events/enhanced_data.rbs +13 -3
  97. data/sig/lithic/models/transfer_limits_response.rbs +5 -0
  98. data/sig/lithic/models.rbs +2 -0
  99. data/sig/lithic/resources/cards/financial_transactions.rbs +2 -1
  100. data/sig/lithic/resources/financial_accounts/financial_transactions.rbs +2 -1
  101. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +6 -6
  102. data/sig/lithic/resources/funding_events.rbs +3 -0
  103. data/sig/lithic/resources/ip_ranges.rbs +11 -0
  104. metadata +12 -7
@@ -201,6 +201,11 @@ module Lithic
201
201
  :STABLECOIN,
202
202
  Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
203
203
  )
204
+ INTRA_BANK =
205
+ T.let(
206
+ :INTRA_BANK,
207
+ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
208
+ )
204
209
  BALANCE_OR_FUNDING =
205
210
  T.let(
206
211
  :BALANCE_OR_FUNDING,
@@ -435,14 +440,6 @@ module Lithic
435
440
  sig { returns(Symbol) }
436
441
  attr_accessor :family
437
442
 
438
- # The status of the transaction
439
- sig do
440
- returns(
441
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
442
- )
443
- end
444
- attr_accessor :status
445
-
446
443
  # ISO 8601 timestamp of when the transaction was last updated
447
444
  sig { returns(Time) }
448
445
  attr_accessor :updated
@@ -452,8 +449,6 @@ module Lithic
452
449
  params(
453
450
  token: String,
454
451
  created: Time,
455
- status:
456
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::OrSymbol,
457
452
  updated: Time,
458
453
  family: Symbol
459
454
  ).returns(T.attached_class)
@@ -463,8 +458,6 @@ module Lithic
463
458
  token:,
464
459
  # ISO 8601 timestamp of when the transaction was created
465
460
  created:,
466
- # The status of the transaction
467
- status:,
468
461
  # ISO 8601 timestamp of when the transaction was last updated
469
462
  updated:,
470
463
  # CARD - Card Transaction
@@ -474,73 +467,11 @@ module Lithic
474
467
 
475
468
  sig do
476
469
  override.returns(
477
- {
478
- token: String,
479
- created: Time,
480
- family: Symbol,
481
- status:
482
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol,
483
- updated: Time
484
- }
470
+ { token: String, created: Time, family: Symbol, updated: Time }
485
471
  )
486
472
  end
487
473
  def to_hash
488
474
  end
489
-
490
- # The status of the transaction
491
- module Status
492
- extend Lithic::Internal::Type::Enum
493
-
494
- TaggedSymbol =
495
- T.type_alias do
496
- T.all(
497
- Symbol,
498
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status
499
- )
500
- end
501
- OrSymbol = T.type_alias { T.any(Symbol, String) }
502
-
503
- PENDING =
504
- T.let(
505
- :PENDING,
506
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
507
- )
508
- SETTLED =
509
- T.let(
510
- :SETTLED,
511
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
512
- )
513
- DECLINED =
514
- T.let(
515
- :DECLINED,
516
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
517
- )
518
- REVERSED =
519
- T.let(
520
- :REVERSED,
521
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
522
- )
523
- CANCELED =
524
- T.let(
525
- :CANCELED,
526
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
527
- )
528
- RETURNED =
529
- T.let(
530
- :RETURNED,
531
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
532
- )
533
-
534
- sig do
535
- override.returns(
536
- T::Array[
537
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
538
- ]
539
- )
540
- end
541
- def self.values
542
- end
543
- end
544
475
  end
545
476
 
546
477
  sig do
@@ -397,6 +397,11 @@ module Lithic
397
397
  :BANK_PROGRAM_TRANSFER,
398
398
  Lithic::BookTransferCreateParams::Type::TaggedSymbol
399
399
  )
400
+ INSTANCE_TO_INSTANCE =
401
+ T.let(
402
+ :INSTANCE_TO_INSTANCE,
403
+ Lithic::BookTransferCreateParams::Type::TaggedSymbol
404
+ )
400
405
 
401
406
  sig do
402
407
  override.returns(
@@ -607,6 +607,11 @@ module Lithic
607
607
  :BANK_PROGRAM_TRANSFER,
608
608
  Lithic::BookTransferResponse::Event::Type::TaggedSymbol
609
609
  )
610
+ INSTANCE_TO_INSTANCE =
611
+ T.let(
612
+ :INSTANCE_TO_INSTANCE,
613
+ Lithic::BookTransferResponse::Event::Type::TaggedSymbol
614
+ )
610
615
 
611
616
  sig do
612
617
  override.returns(
@@ -1809,6 +1809,8 @@ module Lithic
1809
1809
  T.type_alias { T.all(Symbol, Lithic::CardAuthorization::Network) }
1810
1810
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1811
1811
 
1812
+ ALLPOINT =
1813
+ T.let(:ALLPOINT, Lithic::CardAuthorization::Network::TaggedSymbol)
1812
1814
  AMEX = T.let(:AMEX, Lithic::CardAuthorization::Network::TaggedSymbol)
1813
1815
  INTERLINK =
1814
1816
  T.let(:INTERLINK, Lithic::CardAuthorization::Network::TaggedSymbol)
@@ -60,6 +60,13 @@ module Lithic
60
60
  sig { params(ending_before: String).void }
61
61
  attr_writer :ending_before
62
62
 
63
+ # Page size (for pagination).
64
+ sig { returns(T.nilable(Integer)) }
65
+ attr_reader :page_size
66
+
67
+ sig { params(page_size: Integer).void }
68
+ attr_writer :page_size
69
+
63
70
  # Financial Transaction result to be returned.
64
71
  sig do
65
72
  returns(
@@ -112,6 +119,7 @@ module Lithic
112
119
  Lithic::Cards::FinancialTransactionListParams::Category::OrSymbol,
113
120
  end_: Time,
114
121
  ending_before: String,
122
+ page_size: Integer,
115
123
  result:
116
124
  Lithic::Cards::FinancialTransactionListParams::Result::OrSymbol,
117
125
  starting_after: String,
@@ -133,6 +141,8 @@ module Lithic
133
141
  # A cursor representing an item's token before which a page of results should end.
134
142
  # Used to retrieve the previous page of results before this item.
135
143
  ending_before: nil,
144
+ # Page size (for pagination).
145
+ page_size: nil,
136
146
  # Financial Transaction result to be returned.
137
147
  result: nil,
138
148
  # A cursor representing an item's token after which a page of results should
@@ -153,6 +163,7 @@ module Lithic
153
163
  Lithic::Cards::FinancialTransactionListParams::Category::OrSymbol,
154
164
  end_: Time,
155
165
  ending_before: String,
166
+ page_size: Integer,
156
167
  result:
157
168
  Lithic::Cards::FinancialTransactionListParams::Result::OrSymbol,
158
169
  starting_after: String,
@@ -52,6 +52,13 @@ module Lithic
52
52
  sig { returns(Lithic::ClaimCreatedWebhookEvent::Reason::TaggedSymbol) }
53
53
  attr_accessor :reason
54
54
 
55
+ # Identifier for the claim as displayed in the Lithic dashboard. Populated
56
+ # depending on your program's setup, null otherwise. Use it to match claims
57
+ # received through the API and webhooks to the dashboard. This is not the claim
58
+ # `token`, which is the identifier to use in API requests
59
+ sig { returns(T.nilable(String)) }
60
+ attr_accessor :reference_id
61
+
55
62
  # Current lifecycle status of the claim
56
63
  sig { returns(Lithic::ClaimCreatedWebhookEvent::Status::TaggedSymbol) }
57
64
  attr_accessor :status
@@ -80,6 +87,7 @@ module Lithic
80
87
  Lithic::ClaimCreatedWebhookEvent::OutstandingRequirement::OrSymbol
81
88
  ],
82
89
  reason: Lithic::ClaimCreatedWebhookEvent::Reason::OrSymbol,
90
+ reference_id: T.nilable(String),
83
91
  status: Lithic::ClaimCreatedWebhookEvent::Status::OrSymbol,
84
92
  submitted: T.nilable(Time),
85
93
  updated: Time,
@@ -103,6 +111,11 @@ module Lithic
103
111
  outstanding_requirements:,
104
112
  # Dispute reason code provided when creating the claim
105
113
  reason:,
114
+ # Identifier for the claim as displayed in the Lithic dashboard. Populated
115
+ # depending on your program's setup, null otherwise. Use it to match claims
116
+ # received through the API and webhooks to the dashboard. This is not the claim
117
+ # `token`, which is the identifier to use in API requests
118
+ reference_id:,
106
119
  # Current lifecycle status of the claim
107
120
  status:,
108
121
  # When the claim was submitted. Null until the claim reaches `SUBMITTED` status
@@ -130,6 +143,7 @@ module Lithic
130
143
  Lithic::ClaimCreatedWebhookEvent::OutstandingRequirement::TaggedSymbol
131
144
  ],
132
145
  reason: Lithic::ClaimCreatedWebhookEvent::Reason::TaggedSymbol,
146
+ reference_id: T.nilable(String),
133
147
  status: Lithic::ClaimCreatedWebhookEvent::Status::TaggedSymbol,
134
148
  submitted: T.nilable(Time),
135
149
  updated: Time
@@ -52,6 +52,13 @@ module Lithic
52
52
  sig { returns(Lithic::ClaimUpdatedWebhookEvent::Reason::TaggedSymbol) }
53
53
  attr_accessor :reason
54
54
 
55
+ # Identifier for the claim as displayed in the Lithic dashboard. Populated
56
+ # depending on your program's setup, null otherwise. Use it to match claims
57
+ # received through the API and webhooks to the dashboard. This is not the claim
58
+ # `token`, which is the identifier to use in API requests
59
+ sig { returns(T.nilable(String)) }
60
+ attr_accessor :reference_id
61
+
55
62
  # Current lifecycle status of the claim
56
63
  sig { returns(Lithic::ClaimUpdatedWebhookEvent::Status::TaggedSymbol) }
57
64
  attr_accessor :status
@@ -80,6 +87,7 @@ module Lithic
80
87
  Lithic::ClaimUpdatedWebhookEvent::OutstandingRequirement::OrSymbol
81
88
  ],
82
89
  reason: Lithic::ClaimUpdatedWebhookEvent::Reason::OrSymbol,
90
+ reference_id: T.nilable(String),
83
91
  status: Lithic::ClaimUpdatedWebhookEvent::Status::OrSymbol,
84
92
  submitted: T.nilable(Time),
85
93
  updated: Time,
@@ -103,6 +111,11 @@ module Lithic
103
111
  outstanding_requirements:,
104
112
  # Dispute reason code provided when creating the claim
105
113
  reason:,
114
+ # Identifier for the claim as displayed in the Lithic dashboard. Populated
115
+ # depending on your program's setup, null otherwise. Use it to match claims
116
+ # received through the API and webhooks to the dashboard. This is not the claim
117
+ # `token`, which is the identifier to use in API requests
118
+ reference_id:,
106
119
  # Current lifecycle status of the claim
107
120
  status:,
108
121
  # When the claim was submitted. Null until the claim reaches `SUBMITTED` status
@@ -130,6 +143,7 @@ module Lithic
130
143
  Lithic::ClaimUpdatedWebhookEvent::OutstandingRequirement::TaggedSymbol
131
144
  ],
132
145
  reason: Lithic::ClaimUpdatedWebhookEvent::Reason::TaggedSymbol,
146
+ reference_id: T.nilable(String),
133
147
  status: Lithic::ClaimUpdatedWebhookEvent::Status::TaggedSymbol,
134
148
  submitted: T.nilable(Time),
135
149
  updated: Time
@@ -26,12 +26,12 @@ module Lithic
26
26
 
27
27
  # Globally unique identifier for the last financial transaction event that
28
28
  # impacted this balance.
29
- sig { returns(String) }
29
+ sig { returns(T.nilable(String)) }
30
30
  attr_accessor :last_transaction_event_token
31
31
 
32
32
  # Globally unique identifier for the last financial transaction that impacted this
33
33
  # balance.
34
- sig { returns(String) }
34
+ sig { returns(T.nilable(String)) }
35
35
  attr_accessor :last_transaction_token
36
36
 
37
37
  # Funds not available for spend due to card authorizations or pending ACH release.
@@ -59,8 +59,8 @@ module Lithic
59
59
  available_amount: Integer,
60
60
  created: Time,
61
61
  currency: String,
62
- last_transaction_event_token: String,
63
- last_transaction_token: String,
62
+ last_transaction_event_token: T.nilable(String),
63
+ last_transaction_token: T.nilable(String),
64
64
  pending_amount: Integer,
65
65
  total_amount: Integer,
66
66
  type: Lithic::FinancialAccountBalance::Type::OrSymbol,
@@ -102,8 +102,8 @@ module Lithic
102
102
  available_amount: Integer,
103
103
  created: Time,
104
104
  currency: String,
105
- last_transaction_event_token: String,
106
- last_transaction_token: String,
105
+ last_transaction_event_token: T.nilable(String),
106
+ last_transaction_token: T.nilable(String),
107
107
  pending_amount: Integer,
108
108
  total_amount: Integer,
109
109
  type: Lithic::FinancialAccountBalance::Type::TaggedSymbol,
@@ -41,7 +41,10 @@ module Lithic
41
41
  sig { params(credit_limit: Integer).void }
42
42
  attr_writer :credit_limit
43
43
 
44
- # Globally unique identifier for the credit product
44
+ # Globally unique identifier for the credit product. This can only be set while
45
+ # the financial account is in the `PENDING` state. Because assigning a credit
46
+ # product transitions the account to `OPEN`, a credit product can be attached only
47
+ # once; updating it on an account in any other state returns a `403`
45
48
  sig { returns(T.nilable(String)) }
46
49
  attr_reader :credit_product_token
47
50
 
@@ -77,7 +80,10 @@ module Lithic
77
80
  financial_account_token:,
78
81
  auto_collection_configuration: nil,
79
82
  credit_limit: nil,
80
- # Globally unique identifier for the credit product
83
+ # Globally unique identifier for the credit product. This can only be set while
84
+ # the financial account is in the `PENDING` state. Because assigning a credit
85
+ # product transitions the account to `OPEN`, a credit product can be attached only
86
+ # once; updating it on an account in any other state returns a `403`
81
87
  credit_product_token: nil,
82
88
  external_bank_account_token: nil,
83
89
  # Tier to assign to a financial account
@@ -60,6 +60,13 @@ module Lithic
60
60
  sig { params(ending_before: String).void }
61
61
  attr_writer :ending_before
62
62
 
63
+ # Page size (for pagination).
64
+ sig { returns(T.nilable(Integer)) }
65
+ attr_reader :page_size
66
+
67
+ sig { params(page_size: Integer).void }
68
+ attr_writer :page_size
69
+
63
70
  # Financial Transaction result to be returned.
64
71
  sig do
65
72
  returns(
@@ -112,6 +119,7 @@ module Lithic
112
119
  Lithic::FinancialAccounts::FinancialTransactionListParams::Category::OrSymbol,
113
120
  end_: Time,
114
121
  ending_before: String,
122
+ page_size: Integer,
115
123
  result:
116
124
  Lithic::FinancialAccounts::FinancialTransactionListParams::Result::OrSymbol,
117
125
  starting_after: String,
@@ -133,6 +141,8 @@ module Lithic
133
141
  # A cursor representing an item's token before which a page of results should end.
134
142
  # Used to retrieve the previous page of results before this item.
135
143
  ending_before: nil,
144
+ # Page size (for pagination).
145
+ page_size: nil,
136
146
  # Financial Transaction result to be returned.
137
147
  result: nil,
138
148
  # A cursor representing an item's token after which a page of results should
@@ -153,6 +163,7 @@ module Lithic
153
163
  Lithic::FinancialAccounts::FinancialTransactionListParams::Category::OrSymbol,
154
164
  end_: Time,
155
165
  ending_before: String,
166
+ page_size: Integer,
156
167
  result:
157
168
  Lithic::FinancialAccounts::FinancialTransactionListParams::Result::OrSymbol,
158
169
  starting_after: String,
@@ -22,34 +22,25 @@ module Lithic
22
22
 
23
23
  # Custom rates per category for penalties
24
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
25
+ attr_accessor :penalty_rates
29
26
 
30
27
  # Name of a tier contained in the credit product. Mutually exclusive with
31
28
  # tier_rates
32
29
  sig { returns(T.nilable(String)) }
33
- attr_reader :tier_name
34
-
35
- sig { params(tier_name: String).void }
36
- attr_writer :tier_name
30
+ attr_accessor :tier_name
37
31
 
38
32
  # Custom rates per category. Mutually exclusive with tier_name
39
33
  sig { returns(T.nilable(T.anything)) }
40
- attr_reader :tier_rates
41
-
42
- sig { params(tier_rates: T.anything).void }
43
- attr_writer :tier_rates
34
+ attr_accessor :tier_rates
44
35
 
45
36
  # Entry in the Tier Schedule of an account
46
37
  sig do
47
38
  params(
48
39
  credit_product_token: String,
49
40
  effective_date: Date,
50
- penalty_rates: T.anything,
51
- tier_name: String,
52
- tier_rates: T.anything
41
+ penalty_rates: T.nilable(T.anything),
42
+ tier_name: T.nilable(String),
43
+ tier_rates: T.nilable(T.anything)
53
44
  ).returns(T.attached_class)
54
45
  end
55
46
  def self.new(
@@ -72,9 +63,9 @@ module Lithic
72
63
  {
73
64
  credit_product_token: String,
74
65
  effective_date: Date,
75
- penalty_rates: T.anything,
76
- tier_name: String,
77
- tier_rates: T.anything
66
+ penalty_rates: T.nilable(T.anything),
67
+ tier_name: T.nilable(String),
68
+ tier_rates: T.nilable(T.anything)
78
69
  }
79
70
  )
80
71
  end
@@ -23,33 +23,24 @@ module Lithic
23
23
 
24
24
  # Custom rates per category for penalties
25
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
26
+ attr_accessor :penalty_rates
30
27
 
31
28
  # Name of a tier contained in the credit product. Mutually exclusive with
32
29
  # tier_rates
33
30
  sig { returns(T.nilable(String)) }
34
- attr_reader :tier_name
35
-
36
- sig { params(tier_name: String).void }
37
- attr_writer :tier_name
31
+ attr_accessor :tier_name
38
32
 
39
33
  # Custom rates per category. Mutually exclusive with tier_name
40
34
  sig { returns(T.nilable(T.anything)) }
41
- attr_reader :tier_rates
42
-
43
- sig { params(tier_rates: T.anything).void }
44
- attr_writer :tier_rates
35
+ attr_accessor :tier_rates
45
36
 
46
37
  sig do
47
38
  params(
48
39
  financial_account_token: String,
49
40
  effective_date: Date,
50
- penalty_rates: T.anything,
51
- tier_name: String,
52
- tier_rates: T.anything,
41
+ penalty_rates: T.nilable(T.anything),
42
+ tier_name: T.nilable(String),
43
+ tier_rates: T.nilable(T.anything),
53
44
  request_options: Lithic::RequestOptions::OrHash
54
45
  ).returns(T.attached_class)
55
46
  end
@@ -72,9 +63,9 @@ module Lithic
72
63
  {
73
64
  financial_account_token: String,
74
65
  effective_date: Date,
75
- penalty_rates: T.anything,
76
- tier_name: String,
77
- tier_rates: T.anything,
66
+ penalty_rates: T.nilable(T.anything),
67
+ tier_name: T.nilable(String),
68
+ tier_rates: T.nilable(T.anything),
78
69
  request_options: Lithic::RequestOptions
79
70
  }
80
71
  )
@@ -679,6 +679,20 @@ module Lithic
679
679
  end
680
680
  attr_writer :past_statements_due
681
681
 
682
+ # Amounts converted into installment plans
683
+ sig do
684
+ returns(T.nilable(Lithic::FinancialAccounts::CategoryBalances))
685
+ end
686
+ attr_reader :installments
687
+
688
+ sig do
689
+ params(
690
+ installments:
691
+ T.nilable(Lithic::FinancialAccounts::CategoryBalances::OrHash)
692
+ ).void
693
+ end
694
+ attr_writer :installments
695
+
682
696
  sig do
683
697
  params(
684
698
  due: Lithic::FinancialAccounts::CategoryBalances::OrHash,
@@ -686,7 +700,9 @@ module Lithic
686
700
  Lithic::FinancialAccounts::CategoryBalances::OrHash,
687
701
  past_due: Lithic::FinancialAccounts::CategoryBalances::OrHash,
688
702
  past_statements_due:
689
- Lithic::FinancialAccounts::CategoryBalances::OrHash
703
+ Lithic::FinancialAccounts::CategoryBalances::OrHash,
704
+ installments:
705
+ T.nilable(Lithic::FinancialAccounts::CategoryBalances::OrHash)
690
706
  ).returns(T.attached_class)
691
707
  end
692
708
  def self.new(
@@ -700,7 +716,9 @@ module Lithic
700
716
  # Amount not paid off on previous due dates
701
717
  past_due:,
702
718
  # Amount due for the past billing cycles.
703
- past_statements_due:
719
+ past_statements_due:,
720
+ # Amounts converted into installment plans
721
+ installments: nil
704
722
  )
705
723
  end
706
724
 
@@ -710,7 +728,10 @@ module Lithic
710
728
  due: Lithic::FinancialAccounts::CategoryBalances,
711
729
  next_statement_due: Lithic::FinancialAccounts::CategoryBalances,
712
730
  past_due: Lithic::FinancialAccounts::CategoryBalances,
713
- past_statements_due: Lithic::FinancialAccounts::CategoryBalances
731
+ past_statements_due:
732
+ Lithic::FinancialAccounts::CategoryBalances,
733
+ installments:
734
+ T.nilable(Lithic::FinancialAccounts::CategoryBalances)
714
735
  }
715
736
  )
716
737
  end
@@ -238,6 +238,11 @@ module Lithic
238
238
  :STABLECOIN,
239
239
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
240
240
  )
241
+ INTRA_BANK =
242
+ T.let(
243
+ :INTRA_BANK,
244
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
245
+ )
241
246
  BALANCE_OR_FUNDING =
242
247
  T.let(
243
248
  :BALANCE_OR_FUNDING,
@@ -757,6 +762,21 @@ module Lithic
757
762
  :INTERNAL_ADJUSTMENT,
758
763
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
759
764
  )
765
+ INTRA_BANK_CANCELED =
766
+ T.let(
767
+ :INTRA_BANK_CANCELED,
768
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
769
+ )
770
+ INTRA_BANK_INITIATED =
771
+ T.let(
772
+ :INTRA_BANK_INITIATED,
773
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
774
+ )
775
+ INTRA_BANK_SETTLED =
776
+ T.let(
777
+ :INTRA_BANK_SETTLED,
778
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
779
+ )
760
780
  LATE_PAYMENT =
761
781
  T.let(
762
782
  :LATE_PAYMENT,
@@ -897,6 +917,11 @@ module Lithic
897
917
  :STABLECOIN_REJECTED,
898
918
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
899
919
  )
920
+ INSTANCE_TO_INSTANCE =
921
+ T.let(
922
+ :INSTANCE_TO_INSTANCE,
923
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
924
+ )
900
925
 
901
926
  sig do
902
927
  override.returns(
@@ -444,6 +444,18 @@ module Lithic
444
444
  :INTERNAL_ADJUSTMENT,
445
445
  Lithic::FinancialEvent::Type::TaggedSymbol
446
446
  )
447
+ INTRA_BANK_CANCELED =
448
+ T.let(
449
+ :INTRA_BANK_CANCELED,
450
+ Lithic::FinancialEvent::Type::TaggedSymbol
451
+ )
452
+ INTRA_BANK_INITIATED =
453
+ T.let(
454
+ :INTRA_BANK_INITIATED,
455
+ Lithic::FinancialEvent::Type::TaggedSymbol
456
+ )
457
+ INTRA_BANK_SETTLED =
458
+ T.let(:INTRA_BANK_SETTLED, Lithic::FinancialEvent::Type::TaggedSymbol)
447
459
  LATE_PAYMENT =
448
460
  T.let(:LATE_PAYMENT, Lithic::FinancialEvent::Type::TaggedSymbol)
449
461
  LATE_PAYMENT_REVERSAL =
@@ -528,6 +540,11 @@ module Lithic
528
540
  :STABLECOIN_REJECTED,
529
541
  Lithic::FinancialEvent::Type::TaggedSymbol
530
542
  )
543
+ INSTANCE_TO_INSTANCE =
544
+ T.let(
545
+ :INSTANCE_TO_INSTANCE,
546
+ Lithic::FinancialEvent::Type::TaggedSymbol
547
+ )
531
548
 
532
549
  sig do
533
550
  override.returns(T::Array[Lithic::FinancialEvent::Type::TaggedSymbol])