Skip to content

Commit a8eb01e

Browse files
feat(api): add CLOSED account state option and UNVERIFIED verification method
- You can now close Accounts via the API: https://docs.lithic.com/changelog - Add UNVERIFIED as a new Verification method option - Update CLOSED account state documentation to clarify manual setting capability
1 parent e7e327a commit a8eb01e

9 files changed

Lines changed: 41 additions & 29 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: 162
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0c08d769e7a549e40ed9ab9b0298c687cc14e6c2fbe4fdd4544467906a05a613.yml
3-
openapi_spec_hash: 2ea548eacd1af68ec19e847250a65b7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c178720e9b6fe1ff3917d4d96652b4c91a0e7f0795b6858256d250d8a203d3ac.yml
3+
openapi_spec_hash: 23a4716c6168e96f040ac8575582d075
44
config_hash: 227ad54062905d4ae964b24cef0505b0

lib/lithic/models/account.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class Account < Lithic::Internal::Type::BaseModel
3535
# - `PAUSED` - Account will not be able to transact or create new cards. It can be
3636
# set back to `ACTIVE`.
3737
# - `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.
4343
#
4444
# @return [Symbol, Lithic::Models::Account::State]
4545
required :state, enum: -> { Lithic::Account::State }
@@ -132,11 +132,11 @@ class SpendLimit < Lithic::Internal::Type::BaseModel
132132
# - `PAUSED` - Account will not be able to transact or create new cards. It can be
133133
# set back to `ACTIVE`.
134134
# - `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.
140140
#
141141
# @see Lithic::Models::Account#state
142142
module State

lib/lithic/models/account_update_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module State
7272

7373
ACTIVE = :ACTIVE
7474
PAUSED = :PAUSED
75+
CLOSED = :CLOSED
7576

7677
# @!method self.values
7778
# @return [Array<Symbol>]

lib/lithic/models/verification_method.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module VerificationMethod
1010
PLAID = :PLAID
1111
PRENOTE = :PRENOTE
1212
EXTERNALLY_VERIFIED = :EXTERNALLY_VERIFIED
13+
UNVERIFIED = :UNVERIFIED
1314

1415
# @!method self.values
1516
# @return [Array<Symbol>]

rbi/lithic/models/account.rbi

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ module Lithic
3333
# - `PAUSED` - Account will not be able to transact or create new cards. It can be
3434
# set back to `ACTIVE`.
3535
# - `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.
4141
sig { returns(Lithic::Account::State::TaggedSymbol) }
4242
attr_accessor :state
4343

@@ -107,11 +107,11 @@ module Lithic
107107
# - `PAUSED` - Account will not be able to transact or create new cards. It can be
108108
# set back to `ACTIVE`.
109109
# - `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.
115115
state:,
116116
account_holder: nil,
117117
# List of identifiers for the Auth Rule(s) that are applied on the account. This
@@ -195,11 +195,11 @@ module Lithic
195195
# - `PAUSED` - Account will not be able to transact or create new cards. It can be
196196
# set back to `ACTIVE`.
197197
# - `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.
203203
module State
204204
extend Lithic::Internal::Type::Enum
205205

rbi/lithic/models/account_update_params.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ module Lithic
129129
T.let(:ACTIVE, Lithic::AccountUpdateParams::State::TaggedSymbol)
130130
PAUSED =
131131
T.let(:PAUSED, Lithic::AccountUpdateParams::State::TaggedSymbol)
132+
CLOSED =
133+
T.let(:CLOSED, Lithic::AccountUpdateParams::State::TaggedSymbol)
132134

133135
sig do
134136
override.returns(

rbi/lithic/models/verification_method.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module Lithic
1515
PRENOTE = T.let(:PRENOTE, Lithic::VerificationMethod::TaggedSymbol)
1616
EXTERNALLY_VERIFIED =
1717
T.let(:EXTERNALLY_VERIFIED, Lithic::VerificationMethod::TaggedSymbol)
18+
UNVERIFIED = T.let(:UNVERIFIED, Lithic::VerificationMethod::TaggedSymbol)
1819

1920
sig do
2021
override.returns(T::Array[Lithic::VerificationMethod::TaggedSymbol])

sig/lithic/models/account_update_params.rbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ module Lithic
5656
request_options: Lithic::RequestOptions
5757
}
5858

59-
type state = :ACTIVE | :PAUSED
59+
type state = :ACTIVE | :PAUSED | :CLOSED
6060

6161
module State
6262
extend Lithic::Internal::Type::Enum
6363

6464
ACTIVE: :ACTIVE
6565
PAUSED: :PAUSED
66+
CLOSED: :CLOSED
6667

6768
def self?.values: -> ::Array[Lithic::Models::AccountUpdateParams::state]
6869
end

sig/lithic/models/verification_method.rbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module Lithic
22
module Models
33
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
510

611
module VerificationMethod
712
extend Lithic::Internal::Type::Enum
@@ -11,6 +16,7 @@ module Lithic
1116
PLAID: :PLAID
1217
PRENOTE: :PRENOTE
1318
EXTERNALLY_VERIFIED: :EXTERNALLY_VERIFIED
19+
UNVERIFIED: :UNVERIFIED
1420

1521
def self?.values: -> ::Array[Lithic::Models::verification_method]
1622
end

0 commit comments

Comments
 (0)