lithic 0.1.0.pre.alpha.31 → 0.1.0.pre.alpha.32

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account.rb +10 -10
  5. data/lib/lithic/models/account_update_params.rb +1 -0
  6. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +1 -0
  7. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +3 -0
  8. data/lib/lithic/models/financial_account.rb +1 -0
  9. data/lib/lithic/models/financial_account_register_account_number_params.rb +20 -0
  10. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  11. data/lib/lithic/models/settlement_detail.rb +4 -2
  12. data/lib/lithic/models/transaction.rb +1 -0
  13. data/lib/lithic/models/verification_method.rb +1 -0
  14. data/lib/lithic/models.rb +2 -0
  15. data/lib/lithic/resources/financial_accounts.rb +24 -0
  16. data/lib/lithic/resources/three_ds/authentication.rb +3 -1
  17. data/lib/lithic/version.rb +1 -1
  18. data/lib/lithic.rb +1 -0
  19. data/rbi/lithic/models/account.rbi +15 -15
  20. data/rbi/lithic/models/account_update_params.rbi +2 -0
  21. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +7 -0
  22. data/rbi/lithic/models/financial_account.rbi +2 -0
  23. data/rbi/lithic/models/financial_account_register_account_number_params.rbi +38 -0
  24. data/rbi/lithic/models/instance_financial_account_type.rbi +2 -0
  25. data/rbi/lithic/models/settlement_detail.rbi +6 -2
  26. data/rbi/lithic/models/transaction.rbi +5 -0
  27. data/rbi/lithic/models/verification_method.rbi +1 -0
  28. data/rbi/lithic/models.rbi +3 -0
  29. data/rbi/lithic/resources/financial_accounts.rbi +16 -0
  30. data/rbi/lithic/resources/three_ds/authentication.rbi +3 -1
  31. data/sig/lithic/models/account_update_params.rbs +2 -1
  32. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +2 -1
  33. data/sig/lithic/models/financial_account.rbs +2 -0
  34. data/sig/lithic/models/financial_account_register_account_number_params.rbs +23 -0
  35. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  36. data/sig/lithic/models/transaction.rbs +3 -1
  37. data/sig/lithic/models/verification_method.rbs +7 -1
  38. data/sig/lithic/models.rbs +2 -0
  39. data/sig/lithic/resources/financial_accounts.rbs +6 -0
  40. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 630bfafdf71cef9d5fa1a2b9210b6b177d4a09e240357d40f36891678cfa10ed
4
- data.tar.gz: 50d09940c53afb135c4cf3660917a1b3a0b7e2c1b8d7934f243ef4f0ac6cdfdf
3
+ metadata.gz: 5eb78c2204ed8fac68dfc7f66803f41c87c7c04dfd85380ca9d48d1c1fedb286
4
+ data.tar.gz: d36cb38376196a1b2074cdfaa0da05051dbabe4b6972a2b6ef265ad6ce5cb441
5
5
  SHA512:
6
- metadata.gz: 1483c82d67704cc560bd6d0589181a9167c75a148eab9ce19d7962d2f8d2d11d19727a6714e1bd4b671796502b2316842c39bc3672ce567eed0c5ea0905130e6
7
- data.tar.gz: 5e85f2b9a7692e781f3eef0c56cea7ccbc168cf5e44e2b54f782501ef1d45789feb6d801c9daa66f598bffc28ecd9a47e5f7bb200f9c2dbf02167a555a82eda2
6
+ metadata.gz: cc6466f9b9f5e4022f40c7d0011ca70790fe51cb6fd0fd1ee70919b05f467d43503a621e2e90a6059899683e6bee8601242368ceddd28932ebb70e417be32d2b
7
+ data.tar.gz: de563754d91056a8968b2d5b046be4ee6b464334a2db5a42969b7e805768812d980861935163adc4dc62f6d5ea08787026cb05ba9b031e8b7558c00f7bd5c6b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.32 (2025-06-17)
4
+
5
+ Full Changelog: [v0.1.0-alpha.31...v0.1.0-alpha.32](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.31...v0.1.0-alpha.32)
6
+
7
+ ### Features
8
+
9
+ * **api:** add CLOSED account state option and UNVERIFIED verification method ([a8eb01e](https://github.com/lithic-com/lithic-ruby/commit/a8eb01e4a8511742953953e86245fa434b923d01))
10
+ * **client:** adds endpoint to register an account number on a Financial Account ([82d726f](https://github.com/lithic-com/lithic-ruby/commit/82d726f88eb26013f71c7135ada25fbb9fd02cc4))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **ci:** enable for pull requests ([cf910d6](https://github.com/lithic-com/lithic-ruby/commit/cf910d68015385090f887f24ea27519a3ab12d75))
16
+ * **ci:** link to correct github repo ([e7e327a](https://github.com/lithic-com/lithic-ruby/commit/e7e327ad30f205f20ad2b00bd0d3314836a42269))
17
+
3
18
  ## 0.1.0-alpha.31 (2025-06-04)
4
19
 
5
20
  Full Changelog: [v0.1.0-alpha.30...v0.1.0-alpha.31](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.30...v0.1.0-alpha.31)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "lithic", "~> 0.1.0.pre.alpha.31"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.32"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -35,11 +35,11 @@ module Lithic
35
35
  # - `PAUSED` - Account will not be able to transact or create new cards. It can be
36
36
  # set back to `ACTIVE`.
37
37
  # - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
38
- # accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
39
- # `CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
40
- # risk/compliance reasons. Please contact
41
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was in
42
- # error.
38
+ # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
39
+ # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
40
+ # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
41
+ # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
42
+ # by mistake.
43
43
  #
44
44
  # @return [Symbol, Lithic::Models::Account::State]
45
45
  required :state, enum: -> { Lithic::Account::State }
@@ -132,11 +132,11 @@ module Lithic
132
132
  # - `PAUSED` - Account will not be able to transact or create new cards. It can be
133
133
  # set back to `ACTIVE`.
134
134
  # - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
135
- # accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
136
- # `CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
137
- # risk/compliance reasons. Please contact
138
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was in
139
- # error.
135
+ # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
136
+ # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
137
+ # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
138
+ # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
139
+ # by mistake.
140
140
  #
141
141
  # @see Lithic::Models::Account#state
142
142
  module State
@@ -72,6 +72,7 @@ module Lithic
72
72
 
73
73
  ACTIVE = :ACTIVE
74
74
  PAUSED = :PAUSED
75
+ CLOSED = :CLOSED
75
76
 
76
77
  # @!method self.values
77
78
  # @return [Array<Symbol>]
@@ -113,6 +113,7 @@ module Lithic
113
113
  # * `DAY`: Velocity over the current day since midnight Eastern Time.
114
114
  # * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.
115
115
  # * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.
116
+ # * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
116
117
  variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow }
117
118
 
118
119
  # @!method self.variants
@@ -10,12 +10,15 @@ module Lithic
10
10
  # Eastern Time.
11
11
  # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
12
12
  # the month in Eastern Time.
13
+ # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
14
+ # Eastern Time.
13
15
  module VelocityLimitParamsPeriodWindow
14
16
  extend Lithic::Internal::Type::Enum
15
17
 
16
18
  DAY = :DAY
17
19
  WEEK = :WEEK
18
20
  MONTH = :MONTH
21
+ YEAR = :YEAR
19
22
 
20
23
  # @!method self.values
21
24
  # @return [Array<Symbol>]
@@ -209,6 +209,7 @@ module Lithic
209
209
  CHARGED_OFF_PRINCIPAL = :CHARGED_OFF_PRINCIPAL
210
210
  SECURITY = :SECURITY
211
211
  PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
212
+ COLLECTION = :COLLECTION
212
213
 
213
214
  # @!method self.values
214
215
  # @return [Array<Symbol>]
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # @see Lithic::Resources::FinancialAccounts#register_account_number
6
+ class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_number
11
+ #
12
+ # @return [String]
13
+ required :account_number, String
14
+
15
+ # @!method initialize(account_number:, request_options: {})
16
+ # @param account_number [String]
17
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -14,6 +14,7 @@ module Lithic
14
14
  CHARGED_OFF_PRINCIPAL = :CHARGED_OFF_PRINCIPAL
15
15
  SECURITY = :SECURITY
16
16
  PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
17
+ COLLECTION = :COLLECTION
17
18
 
18
19
  # @!method self.values
19
20
  # @return [Array<Symbol>]
@@ -98,7 +98,9 @@ module Lithic
98
98
  required :report_date, String
99
99
 
100
100
  # @!attribute settlement_date
101
- # Date of when money movement is triggered for the transaction.
101
+ # Date of when money movement is triggered for the transaction. One exception
102
+ # applies - for Mastercard dual message settlement, this is the settlement
103
+ # advisement date, which is distinct from the date of money movement.
102
104
  #
103
105
  # @return [String]
104
106
  required :settlement_date, String
@@ -168,7 +170,7 @@ module Lithic
168
170
  #
169
171
  # @param report_date [String] Date of when the report was first generated.
170
172
  #
171
- # @param settlement_date [String] Date of when money movement is triggered for the transaction.
173
+ # @param settlement_date [String] Date of when money movement is triggered for the transaction. One exception appl
172
174
  #
173
175
  # @param transaction_token [String] Globally unique identifier denoting the associated Transaction object.
174
176
  #
@@ -508,6 +508,7 @@ module Lithic
508
508
  module DecisionMadeBy
509
509
  extend Lithic::Internal::Type::Enum
510
510
 
511
+ CUSTOMER_RULES = :CUSTOMER_RULES
511
512
  CUSTOMER_ENDPOINT = :CUSTOMER_ENDPOINT
512
513
  LITHIC_DEFAULT = :LITHIC_DEFAULT
513
514
  LITHIC_RULES = :LITHIC_RULES
@@ -10,6 +10,7 @@ module Lithic
10
10
  PLAID = :PLAID
11
11
  PRENOTE = :PRENOTE
12
12
  EXTERNALLY_VERIFIED = :EXTERNALLY_VERIFIED
13
+ UNVERIFIED = :UNVERIFIED
13
14
 
14
15
  # @!method self.values
15
16
  # @return [Array<Symbol>]
data/lib/lithic/models.rb CHANGED
@@ -230,6 +230,8 @@ module Lithic
230
230
 
231
231
  FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
232
232
 
233
+ FinancialAccountRegisterAccountNumberParams = Lithic::Models::FinancialAccountRegisterAccountNumberParams
234
+
233
235
  FinancialAccountRetrieveParams = Lithic::Models::FinancialAccountRetrieveParams
234
236
 
235
237
  FinancialAccounts = Lithic::Models::FinancialAccounts
@@ -119,6 +119,30 @@ module Lithic
119
119
  )
120
120
  end
121
121
 
122
+ # Register account number
123
+ #
124
+ # @overload register_account_number(financial_account_token, account_number:, request_options: {})
125
+ #
126
+ # @param financial_account_token [String] Globally unique identifier for financial account.
127
+ #
128
+ # @param account_number [String]
129
+ #
130
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
131
+ #
132
+ # @return [nil]
133
+ #
134
+ # @see Lithic::Models::FinancialAccountRegisterAccountNumberParams
135
+ def register_account_number(financial_account_token, params)
136
+ parsed, options = Lithic::FinancialAccountRegisterAccountNumberParams.dump_request(params)
137
+ @client.request(
138
+ method: :post,
139
+ path: ["v1/financial_accounts/%1$s/register_account_number", financial_account_token],
140
+ body: parsed,
141
+ model: NilClass,
142
+ options: options
143
+ )
144
+ end
145
+
122
146
  # Update financial account status
123
147
  #
124
148
  # @overload update_status(financial_account_token, status:, substatus:, request_options: {})
@@ -30,7 +30,9 @@ module Lithic
30
30
  # Simulates a 3DS authentication request from the payment network as if it came
31
31
  # from an ACS. If you're configured for 3DS Customer Decisioning, simulating
32
32
  # authentications requires your customer decisioning endpoint to be set up
33
- # properly (respond with a valid JSON).
33
+ # properly (respond with a valid JSON). If the authentication decision is to
34
+ # challenge, ensure that the account holder associated with the card transaction
35
+ # has a valid phone number configured to receive the OTP code via SMS.
34
36
  #
35
37
  # @overload simulate(merchant:, pan:, transaction:, card_expiry_check: nil, request_options: {})
36
38
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.31"
4
+ VERSION = "0.1.0.pre.alpha.32"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -211,6 +211,7 @@ require_relative "lithic/models/external_payment_settle_params"
211
211
  require_relative "lithic/models/financial_account"
212
212
  require_relative "lithic/models/financial_account_create_params"
213
213
  require_relative "lithic/models/financial_account_list_params"
214
+ require_relative "lithic/models/financial_account_register_account_number_params"
214
215
  require_relative "lithic/models/financial_account_retrieve_params"
215
216
  require_relative "lithic/models/financial_accounts/balance_list_params"
216
217
  require_relative "lithic/models/financial_accounts/balance_list_response"
@@ -33,11 +33,11 @@ module Lithic
33
33
  # - `PAUSED` - Account will not be able to transact or create new cards. It can be
34
34
  # set back to `ACTIVE`.
35
35
  # - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
36
- # accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
37
- # `CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
38
- # risk/compliance reasons. Please contact
39
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was in
40
- # error.
36
+ # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
37
+ # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
38
+ # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
39
+ # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
40
+ # by mistake.
41
41
  sig { returns(Lithic::Account::State::TaggedSymbol) }
42
42
  attr_accessor :state
43
43
 
@@ -107,11 +107,11 @@ module Lithic
107
107
  # - `PAUSED` - Account will not be able to transact or create new cards. It can be
108
108
  # set back to `ACTIVE`.
109
109
  # - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
110
- # accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
111
- # `CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
112
- # risk/compliance reasons. Please contact
113
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was in
114
- # error.
110
+ # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
111
+ # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
112
+ # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
113
+ # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
114
+ # by mistake.
115
115
  state:,
116
116
  account_holder: nil,
117
117
  # List of identifiers for the Auth Rule(s) that are applied on the account. This
@@ -195,11 +195,11 @@ module Lithic
195
195
  # - `PAUSED` - Account will not be able to transact or create new cards. It can be
196
196
  # set back to `ACTIVE`.
197
197
  # - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
198
- # accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
199
- # `CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
200
- # risk/compliance reasons. Please contact
201
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was in
202
- # error.
198
+ # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
199
+ # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
200
+ # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
201
+ # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
202
+ # by mistake.
203
203
  module State
204
204
  extend Lithic::Internal::Type::Enum
205
205
 
@@ -129,6 +129,8 @@ module Lithic
129
129
  T.let(:ACTIVE, Lithic::AccountUpdateParams::State::TaggedSymbol)
130
130
  PAUSED =
131
131
  T.let(:PAUSED, Lithic::AccountUpdateParams::State::TaggedSymbol)
132
+ CLOSED =
133
+ T.let(:CLOSED, Lithic::AccountUpdateParams::State::TaggedSymbol)
132
134
 
133
135
  sig do
134
136
  override.returns(
@@ -10,6 +10,8 @@ module Lithic
10
10
  # Eastern Time.
11
11
  # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
12
12
  # the month in Eastern Time.
13
+ # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
14
+ # Eastern Time.
13
15
  module VelocityLimitParamsPeriodWindow
14
16
  extend Lithic::Internal::Type::Enum
15
17
 
@@ -34,6 +36,11 @@ module Lithic
34
36
  :MONTH,
35
37
  Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
36
38
  )
39
+ YEAR =
40
+ T.let(
41
+ :YEAR,
42
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
43
+ )
37
44
 
38
45
  sig do
39
46
  override.returns(
@@ -353,6 +353,8 @@ module Lithic
353
353
  :PROGRAM_RECEIVABLES,
354
354
  Lithic::FinancialAccount::Type::TaggedSymbol
355
355
  )
356
+ COLLECTION =
357
+ T.let(:COLLECTION, Lithic::FinancialAccount::Type::TaggedSymbol)
356
358
 
357
359
  sig do
358
360
  override.returns(
@@ -0,0 +1,38 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Lithic::FinancialAccountRegisterAccountNumberParams,
13
+ Lithic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(String) }
18
+ attr_accessor :account_number
19
+
20
+ sig do
21
+ params(
22
+ account_number: String,
23
+ request_options: Lithic::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
25
+ end
26
+ def self.new(account_number:, request_options: {})
27
+ end
28
+
29
+ sig do
30
+ override.returns(
31
+ { account_number: String, request_options: Lithic::RequestOptions }
32
+ )
33
+ end
34
+ def to_hash
35
+ end
36
+ end
37
+ end
38
+ end
@@ -38,6 +38,8 @@ module Lithic
38
38
  :PROGRAM_RECEIVABLES,
39
39
  Lithic::InstanceFinancialAccountType::TaggedSymbol
40
40
  )
41
+ COLLECTION =
42
+ T.let(:COLLECTION, Lithic::InstanceFinancialAccountType::TaggedSymbol)
41
43
 
42
44
  sig do
43
45
  override.returns(
@@ -79,7 +79,9 @@ module Lithic
79
79
  sig { returns(String) }
80
80
  attr_accessor :report_date
81
81
 
82
- # Date of when money movement is triggered for the transaction.
82
+ # Date of when money movement is triggered for the transaction. One exception
83
+ # applies - for Mastercard dual message settlement, this is the settlement
84
+ # advisement date, which is distinct from the date of money movement.
83
85
  sig { returns(String) }
84
86
  attr_accessor :settlement_date
85
87
 
@@ -168,7 +170,9 @@ module Lithic
168
170
  other_fees_gross_amount:,
169
171
  # Date of when the report was first generated.
170
172
  report_date:,
171
- # Date of when money movement is triggered for the transaction.
173
+ # Date of when money movement is triggered for the transaction. One exception
174
+ # applies - for Mastercard dual message settlement, this is the settlement
175
+ # advisement date, which is distinct from the date of money movement.
172
176
  settlement_date:,
173
177
  # Globally unique identifier denoting the associated Transaction object.
174
178
  transaction_token:,
@@ -815,6 +815,11 @@ module Lithic
815
815
  end
816
816
  OrSymbol = T.type_alias { T.any(Symbol, String) }
817
817
 
818
+ CUSTOMER_RULES =
819
+ T.let(
820
+ :CUSTOMER_RULES,
821
+ Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
822
+ )
818
823
  CUSTOMER_ENDPOINT =
819
824
  T.let(
820
825
  :CUSTOMER_ENDPOINT,
@@ -15,6 +15,7 @@ module Lithic
15
15
  PRENOTE = T.let(:PRENOTE, Lithic::VerificationMethod::TaggedSymbol)
16
16
  EXTERNALLY_VERIFIED =
17
17
  T.let(:EXTERNALLY_VERIFIED, Lithic::VerificationMethod::TaggedSymbol)
18
+ UNVERIFIED = T.let(:UNVERIFIED, Lithic::VerificationMethod::TaggedSymbol)
18
19
 
19
20
  sig do
20
21
  override.returns(T::Array[Lithic::VerificationMethod::TaggedSymbol])
@@ -205,6 +205,9 @@ module Lithic
205
205
 
206
206
  FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
207
207
 
208
+ FinancialAccountRegisterAccountNumberParams =
209
+ Lithic::Models::FinancialAccountRegisterAccountNumberParams
210
+
208
211
  FinancialAccountRetrieveParams =
209
212
  Lithic::Models::FinancialAccountRetrieveParams
210
213
 
@@ -88,6 +88,22 @@ module Lithic
88
88
  )
89
89
  end
90
90
 
91
+ # Register account number
92
+ sig do
93
+ params(
94
+ financial_account_token: String,
95
+ account_number: String,
96
+ request_options: Lithic::RequestOptions::OrHash
97
+ ).void
98
+ end
99
+ def register_account_number(
100
+ # Globally unique identifier for financial account.
101
+ financial_account_token,
102
+ account_number:,
103
+ request_options: {}
104
+ )
105
+ end
106
+
91
107
  # Update financial account status
92
108
  sig do
93
109
  params(
@@ -21,7 +21,9 @@ module Lithic
21
21
  # Simulates a 3DS authentication request from the payment network as if it came
22
22
  # from an ACS. If you're configured for 3DS Customer Decisioning, simulating
23
23
  # authentications requires your customer decisioning endpoint to be set up
24
- # properly (respond with a valid JSON).
24
+ # properly (respond with a valid JSON). If the authentication decision is to
25
+ # challenge, ensure that the account holder associated with the card transaction
26
+ # has a valid phone number configured to receive the OTP code via SMS.
25
27
  sig do
26
28
  params(
27
29
  merchant:
@@ -56,13 +56,14 @@ module Lithic
56
56
  request_options: Lithic::RequestOptions
57
57
  }
58
58
 
59
- type state = :ACTIVE | :PAUSED
59
+ type state = :ACTIVE | :PAUSED | :CLOSED
60
60
 
61
61
  module State
62
62
  extend Lithic::Internal::Type::Enum
63
63
 
64
64
  ACTIVE: :ACTIVE
65
65
  PAUSED: :PAUSED
66
+ CLOSED: :CLOSED
66
67
 
67
68
  def self?.values: -> ::Array[Lithic::Models::AccountUpdateParams::state]
68
69
  end
@@ -1,7 +1,7 @@
1
1
  module Lithic
2
2
  module Models
3
3
  module AuthRules
4
- type velocity_limit_params_period_window = :DAY | :WEEK | :MONTH
4
+ type velocity_limit_params_period_window = :DAY | :WEEK | :MONTH | :YEAR
5
5
 
6
6
  module VelocityLimitParamsPeriodWindow
7
7
  extend Lithic::Internal::Type::Enum
@@ -9,6 +9,7 @@ module Lithic
9
9
  DAY: :DAY
10
10
  WEEK: :WEEK
11
11
  MONTH: :MONTH
12
+ YEAR: :YEAR
12
13
 
13
14
  def self?.values: -> ::Array[Lithic::Models::AuthRules::velocity_limit_params_period_window]
14
15
  end
@@ -165,6 +165,7 @@ module Lithic
165
165
  | :CHARGED_OFF_PRINCIPAL
166
166
  | :SECURITY
167
167
  | :PROGRAM_RECEIVABLES
168
+ | :COLLECTION
168
169
 
169
170
  module Type
170
171
  extend Lithic::Internal::Type::Enum
@@ -177,6 +178,7 @@ module Lithic
177
178
  CHARGED_OFF_PRINCIPAL: :CHARGED_OFF_PRINCIPAL
178
179
  SECURITY: :SECURITY
179
180
  PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
181
+ COLLECTION: :COLLECTION
180
182
 
181
183
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
182
184
  end
@@ -0,0 +1,23 @@
1
+ module Lithic
2
+ module Models
3
+ type financial_account_register_account_number_params =
4
+ { account_number: String } & Lithic::Internal::Type::request_parameters
5
+
6
+ class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ attr_accessor account_number: String
11
+
12
+ def initialize: (
13
+ account_number: String,
14
+ ?request_options: Lithic::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ account_number: String,
19
+ request_options: Lithic::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -9,6 +9,7 @@ module Lithic
9
9
  | :CHARGED_OFF_PRINCIPAL
10
10
  | :SECURITY
11
11
  | :PROGRAM_RECEIVABLES
12
+ | :COLLECTION
12
13
 
13
14
  module InstanceFinancialAccountType
14
15
  extend Lithic::Internal::Type::Enum
@@ -21,6 +22,7 @@ module Lithic
21
22
  CHARGED_OFF_PRINCIPAL: :CHARGED_OFF_PRINCIPAL
22
23
  SECURITY: :SECURITY
23
24
  PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
25
+ COLLECTION: :COLLECTION
24
26
 
25
27
  def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type]
26
28
  end
@@ -342,7 +342,8 @@ module Lithic
342
342
  end
343
343
 
344
344
  type decision_made_by =
345
- :CUSTOMER_ENDPOINT
345
+ :CUSTOMER_RULES
346
+ | :CUSTOMER_ENDPOINT
346
347
  | :LITHIC_DEFAULT
347
348
  | :LITHIC_RULES
348
349
  | :NETWORK
@@ -351,6 +352,7 @@ module Lithic
351
352
  module DecisionMadeBy
352
353
  extend Lithic::Internal::Type::Enum
353
354
 
355
+ CUSTOMER_RULES: :CUSTOMER_RULES
354
356
  CUSTOMER_ENDPOINT: :CUSTOMER_ENDPOINT
355
357
  LITHIC_DEFAULT: :LITHIC_DEFAULT
356
358
  LITHIC_RULES: :LITHIC_RULES
@@ -1,7 +1,12 @@
1
1
  module Lithic
2
2
  module Models
3
3
  type verification_method =
4
- :MANUAL | :MICRO_DEPOSIT | :PLAID | :PRENOTE | :EXTERNALLY_VERIFIED
4
+ :MANUAL
5
+ | :MICRO_DEPOSIT
6
+ | :PLAID
7
+ | :PRENOTE
8
+ | :EXTERNALLY_VERIFIED
9
+ | :UNVERIFIED
5
10
 
6
11
  module VerificationMethod
7
12
  extend Lithic::Internal::Type::Enum
@@ -11,6 +16,7 @@ module Lithic
11
16
  PLAID: :PLAID
12
17
  PRENOTE: :PRENOTE
13
18
  EXTERNALLY_VERIFIED: :EXTERNALLY_VERIFIED
19
+ UNVERIFIED: :UNVERIFIED
14
20
 
15
21
  def self?.values: -> ::Array[Lithic::Models::verification_method]
16
22
  end
@@ -189,6 +189,8 @@ module Lithic
189
189
 
190
190
  class FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
191
191
 
192
+ class FinancialAccountRegisterAccountNumberParams = Lithic::Models::FinancialAccountRegisterAccountNumberParams
193
+
192
194
  class FinancialAccountRetrieveParams = Lithic::Models::FinancialAccountRetrieveParams
193
195
 
194
196
  module FinancialAccounts = Lithic::Models::FinancialAccounts
@@ -38,6 +38,12 @@ module Lithic
38
38
  ?request_options: Lithic::request_opts
39
39
  ) -> Lithic::Internal::SinglePage[Lithic::FinancialAccount]
40
40
 
41
+ def register_account_number: (
42
+ String financial_account_token,
43
+ account_number: String,
44
+ ?request_options: Lithic::request_opts
45
+ ) -> nil
46
+
41
47
  def update_status: (
42
48
  String financial_account_token,
43
49
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.31
4
+ version: 0.1.0.pre.alpha.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-04 00:00:00.000000000 Z
11
+ date: 2025-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -213,6 +213,7 @@ files:
213
213
  - lib/lithic/models/financial_account.rb
214
214
  - lib/lithic/models/financial_account_create_params.rb
215
215
  - lib/lithic/models/financial_account_list_params.rb
216
+ - lib/lithic/models/financial_account_register_account_number_params.rb
216
217
  - lib/lithic/models/financial_account_retrieve_params.rb
217
218
  - lib/lithic/models/financial_account_update_params.rb
218
219
  - lib/lithic/models/financial_account_update_status_params.rb
@@ -566,6 +567,7 @@ files:
566
567
  - rbi/lithic/models/financial_account.rbi
567
568
  - rbi/lithic/models/financial_account_create_params.rbi
568
569
  - rbi/lithic/models/financial_account_list_params.rbi
570
+ - rbi/lithic/models/financial_account_register_account_number_params.rbi
569
571
  - rbi/lithic/models/financial_account_retrieve_params.rbi
570
572
  - rbi/lithic/models/financial_account_update_params.rbi
571
573
  - rbi/lithic/models/financial_account_update_status_params.rbi
@@ -918,6 +920,7 @@ files:
918
920
  - sig/lithic/models/financial_account.rbs
919
921
  - sig/lithic/models/financial_account_create_params.rbs
920
922
  - sig/lithic/models/financial_account_list_params.rbs
923
+ - sig/lithic/models/financial_account_register_account_number_params.rbs
921
924
  - sig/lithic/models/financial_account_retrieve_params.rbs
922
925
  - sig/lithic/models/financial_account_update_params.rbs
923
926
  - sig/lithic/models/financial_account_update_status_params.rbs