lithic 0.4.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/README.md +10 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_holder.rb +14 -5
- data/lib/lithic/models/account_holder_create_params.rb +10 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
- data/lib/lithic/models/account_holder_update_params.rb +10 -1
- data/lib/lithic/models/account_holder_update_response.rb +14 -5
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
- data/lib/lithic/models/account_holders/account_holder_entity.rb +183 -0
- data/lib/lithic/models/account_holders/entity_create_params.rb +159 -0
- data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
- data/lib/lithic/models/account_holders/entity_delete_params.rb +22 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
- data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -2
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
- data/lib/lithic/models/book_transfer_create_params.rb +9 -1
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +16 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +40 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +44 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +16 -0
- data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
- data/lib/lithic/models/financial_accounts/statement.rb +1 -0
- data/lib/lithic/models/kyb.rb +10 -1
- data/lib/lithic/models/parsed_webhook_event.rb +10 -1
- data/lib/lithic/models/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
- data/lib/lithic/models.rb +4 -2
- data/lib/lithic/resources/account_holders/entities.rb +89 -0
- data/lib/lithic/resources/account_holders.rb +10 -2
- data/lib/lithic/resources/auth_rules/v2.rb +42 -0
- data/lib/lithic/resources/book_transfers.rb +3 -1
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +205 -0
- data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
- data/lib/lithic/resources/financial_accounts.rb +9 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +20 -1
- data/rbi/lithic/internal/util.rbi +1 -1
- data/rbi/lithic/models/account_holder.rbi +19 -6
- data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +296 -0
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +242 -0
- data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
- data/rbi/lithic/models/account_holders/entity_delete_params.rbi +43 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +1 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +32 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +70 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +32 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +13 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
- data/rbi/lithic/models/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
- data/rbi/lithic/models.rbi +4 -2
- data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +11 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +44 -1
- data/rbi/lithic/resources/book_transfers.rbi +3 -0
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
- data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
- data/rbi/lithic/resources/financial_accounts.rbi +10 -0
- data/sig/lithic/models/account_holder.rbs +7 -0
- data/sig/lithic/models/account_holder_create_params.rbs +7 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
- data/sig/lithic/models/account_holder_update_params.rbs +7 -0
- data/sig/lithic/models/account_holder_update_response.rbs +7 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +137 -0
- data/sig/lithic/models/account_holders/entity_create_params.rbs +118 -0
- data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
- data/sig/lithic/models/account_holders/entity_delete_params.rbs +26 -0
- data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +17 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +38 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +17 -0
- data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
- data/sig/lithic/models/kyb.rbs +7 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
- data/sig/lithic/models/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
- data/sig/lithic/models.rbs +4 -2
- data/sig/lithic/resources/account_holders/entities.rbs +28 -0
- data/sig/lithic/resources/account_holders.rbs +4 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
- data/sig/lithic/resources/book_transfers.rbs +1 -0
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +46 -0
- data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- metadata +62 -5
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class InterestTierSchedule
|
|
7
|
+
# Create a new interest tier schedule entry for a supported financial account
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
financial_account_token: String,
|
|
11
|
+
credit_product_token: String,
|
|
12
|
+
effective_date: Date,
|
|
13
|
+
tier_name: String,
|
|
14
|
+
tier_rates: T.anything,
|
|
15
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
16
|
+
).returns(
|
|
17
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
def create(
|
|
21
|
+
# Globally unique identifier for financial account
|
|
22
|
+
financial_account_token,
|
|
23
|
+
# Globally unique identifier for a credit product
|
|
24
|
+
credit_product_token:,
|
|
25
|
+
# Date the tier should be effective in YYYY-MM-DD format
|
|
26
|
+
effective_date:,
|
|
27
|
+
# Name of a tier contained in the credit product. Mutually exclusive with
|
|
28
|
+
# tier_rates
|
|
29
|
+
tier_name: nil,
|
|
30
|
+
# Custom rates per category. Mutually exclusive with tier_name
|
|
31
|
+
tier_rates: nil,
|
|
32
|
+
request_options: {}
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Get a specific interest tier schedule by effective date
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
effective_date: Date,
|
|
40
|
+
financial_account_token: String,
|
|
41
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
42
|
+
).returns(
|
|
43
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def retrieve(
|
|
47
|
+
# Effective date in ISO format (YYYY-MM-DD)
|
|
48
|
+
effective_date,
|
|
49
|
+
# Globally unique identifier for financial account
|
|
50
|
+
financial_account_token:,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Update an existing interest tier schedule
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
effective_date: Date,
|
|
59
|
+
financial_account_token: String,
|
|
60
|
+
tier_name: String,
|
|
61
|
+
tier_rates: T.anything,
|
|
62
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
63
|
+
).returns(
|
|
64
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
def update(
|
|
68
|
+
# Path param: Effective date in ISO format (YYYY-MM-DD)
|
|
69
|
+
effective_date,
|
|
70
|
+
# Path param: Globally unique identifier for financial account
|
|
71
|
+
financial_account_token:,
|
|
72
|
+
# Body param: Name of a tier contained in the credit product. Mutually exclusive
|
|
73
|
+
# with tier_rates
|
|
74
|
+
tier_name: nil,
|
|
75
|
+
# Body param: Custom rates per category. Mutually exclusive with tier_name
|
|
76
|
+
tier_rates: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# List interest tier schedules for a financial account with optional date
|
|
82
|
+
# filtering.
|
|
83
|
+
#
|
|
84
|
+
# If no date parameters are provided, returns all tier schedules. If date
|
|
85
|
+
# parameters are provided, uses filtering to return matching schedules (max 100).
|
|
86
|
+
#
|
|
87
|
+
# - for_date: Returns exact match (takes precedence over other dates)
|
|
88
|
+
# - before_date: Returns schedules with effective_date <= before_date
|
|
89
|
+
# - after_date: Returns schedules with effective_date >= after_date
|
|
90
|
+
# - Both before_date and after_date: Returns schedules in range
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
financial_account_token: String,
|
|
94
|
+
after_date: Date,
|
|
95
|
+
before_date: Date,
|
|
96
|
+
for_date: Date,
|
|
97
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
98
|
+
).returns(
|
|
99
|
+
Lithic::Internal::SinglePage[
|
|
100
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
101
|
+
]
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
def list(
|
|
105
|
+
# Globally unique identifier for financial account
|
|
106
|
+
financial_account_token,
|
|
107
|
+
# Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
|
|
108
|
+
after_date: nil,
|
|
109
|
+
# Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
|
|
110
|
+
before_date: nil,
|
|
111
|
+
# Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
|
|
112
|
+
for_date: nil,
|
|
113
|
+
request_options: {}
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Delete an interest tier schedule entry.
|
|
118
|
+
#
|
|
119
|
+
# Returns:
|
|
120
|
+
#
|
|
121
|
+
# - 400 Bad Request: Invalid effective_date format OR attempting to delete the
|
|
122
|
+
# earliest tier schedule entry for a non-PENDING account
|
|
123
|
+
# - 404 Not Found: Tier schedule entry not found for the given effective_date OR
|
|
124
|
+
# ledger account not found
|
|
125
|
+
#
|
|
126
|
+
# Note: PENDING accounts can delete the earliest tier schedule entry (account
|
|
127
|
+
# hasn't opened yet). Active/non-PENDING accounts cannot delete the earliest entry
|
|
128
|
+
# to prevent orphaning the account.
|
|
129
|
+
#
|
|
130
|
+
# If the deleted tier schedule has a past effective_date and the account is
|
|
131
|
+
# ACTIVE, the loan tape rebuild configuration will be updated to trigger rebuilds
|
|
132
|
+
# from that date.
|
|
133
|
+
sig do
|
|
134
|
+
params(
|
|
135
|
+
effective_date: Date,
|
|
136
|
+
financial_account_token: String,
|
|
137
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
138
|
+
).void
|
|
139
|
+
end
|
|
140
|
+
def delete(
|
|
141
|
+
# Effective date in ISO format (YYYY-MM-DD)
|
|
142
|
+
effective_date,
|
|
143
|
+
# Globally unique identifier for financial account
|
|
144
|
+
financial_account_token:,
|
|
145
|
+
request_options: {}
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @api private
|
|
150
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
151
|
+
def self.new(client:)
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class LoanTapeConfiguration
|
|
7
|
+
# Get the loan tape configuration for a given financial account.
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
financial_account_token: String,
|
|
11
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
12
|
+
).returns(
|
|
13
|
+
Lithic::FinancialAccounts::FinancialAccountsLoanTapeConfiguration
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
def retrieve(
|
|
17
|
+
# Globally unique identifier for financial account.
|
|
18
|
+
financial_account_token,
|
|
19
|
+
request_options: {}
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @api private
|
|
24
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
25
|
+
def self.new(client:)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -20,6 +20,16 @@ module Lithic
|
|
|
20
20
|
sig { returns(Lithic::Resources::FinancialAccounts::LoanTapes) }
|
|
21
21
|
attr_reader :loan_tapes
|
|
22
22
|
|
|
23
|
+
sig do
|
|
24
|
+
returns(Lithic::Resources::FinancialAccounts::LoanTapeConfiguration)
|
|
25
|
+
end
|
|
26
|
+
attr_reader :loan_tape_configuration
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
returns(Lithic::Resources::FinancialAccounts::InterestTierSchedule)
|
|
30
|
+
end
|
|
31
|
+
attr_reader :interest_tier_schedule
|
|
32
|
+
|
|
23
33
|
# Create a new financial account
|
|
24
34
|
sig do
|
|
25
35
|
params(
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
15
15
|
external_id: String,
|
|
16
16
|
individual: Lithic::AccountHolder::Individual,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
phone_number: String,
|
|
19
20
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -81,6 +82,10 @@ module Lithic
|
|
|
81
82
|
Lithic::AccountHolder::Individual
|
|
82
83
|
) -> Lithic::AccountHolder::Individual
|
|
83
84
|
|
|
85
|
+
attr_reader naics_code: String?
|
|
86
|
+
|
|
87
|
+
def naics_code=: (String) -> String
|
|
88
|
+
|
|
84
89
|
attr_reader nature_of_business: String?
|
|
85
90
|
|
|
86
91
|
def nature_of_business=: (String) -> String
|
|
@@ -136,6 +141,7 @@ module Lithic
|
|
|
136
141
|
?exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
137
142
|
?external_id: String,
|
|
138
143
|
?individual: Lithic::AccountHolder::Individual,
|
|
144
|
+
?naics_code: String,
|
|
139
145
|
?nature_of_business: String,
|
|
140
146
|
?phone_number: String,
|
|
141
147
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -159,6 +165,7 @@ module Lithic
|
|
|
159
165
|
exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
160
166
|
external_id: String,
|
|
161
167
|
individual: Lithic::AccountHolder::Individual,
|
|
168
|
+
naics_code: String,
|
|
162
169
|
nature_of_business: String,
|
|
163
170
|
phone_number: String,
|
|
164
171
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -11,6 +11,7 @@ module Lithic
|
|
|
11
11
|
beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
12
12
|
external_id: String,
|
|
13
13
|
kyb_passed_timestamp: String,
|
|
14
|
+
naics_code: String,
|
|
14
15
|
website_url: String,
|
|
15
16
|
individual: Lithic::AccountHolderCreateParams::Individual,
|
|
16
17
|
kyc_passed_timestamp: String,
|
|
@@ -64,6 +65,10 @@ module Lithic
|
|
|
64
65
|
|
|
65
66
|
def kyb_passed_timestamp=: (String) -> String
|
|
66
67
|
|
|
68
|
+
attr_reader naics_code: String?
|
|
69
|
+
|
|
70
|
+
def naics_code=: (String) -> String
|
|
71
|
+
|
|
67
72
|
attr_reader website_url: String?
|
|
68
73
|
|
|
69
74
|
def website_url=: (String) -> String
|
|
@@ -107,6 +112,7 @@ module Lithic
|
|
|
107
112
|
?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
108
113
|
?external_id: String,
|
|
109
114
|
?kyb_passed_timestamp: String,
|
|
115
|
+
?naics_code: String,
|
|
110
116
|
?website_url: String,
|
|
111
117
|
?kyc_passed_timestamp: String,
|
|
112
118
|
?business_account_token: String,
|
|
@@ -123,6 +129,7 @@ module Lithic
|
|
|
123
129
|
beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
124
130
|
external_id: String,
|
|
125
131
|
kyb_passed_timestamp: String,
|
|
132
|
+
naics_code: String,
|
|
126
133
|
website_url: String,
|
|
127
134
|
individual: Lithic::AccountHolderCreateParams::Individual,
|
|
128
135
|
kyc_passed_timestamp: String,
|
|
@@ -42,13 +42,14 @@ module Lithic
|
|
|
42
42
|
request_options: Lithic::RequestOptions
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
type status = :ACCEPTED | :REJECTED
|
|
45
|
+
type status = :ACCEPTED | :REJECTED | :PENDING_REVIEW
|
|
46
46
|
|
|
47
47
|
module Status
|
|
48
48
|
extend Lithic::Internal::Type::Enum
|
|
49
49
|
|
|
50
50
|
ACCEPTED: :ACCEPTED
|
|
51
51
|
REJECTED: :REJECTED
|
|
52
|
+
PENDING_REVIEW: :PENDING_REVIEW
|
|
52
53
|
|
|
53
54
|
def self?.values: -> ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewParams::status]
|
|
54
55
|
end
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
15
15
|
external_id: String,
|
|
16
16
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
phone_number: String,
|
|
19
20
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -83,6 +84,10 @@ module Lithic
|
|
|
83
84
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
84
85
|
) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
85
86
|
|
|
87
|
+
attr_reader naics_code: String?
|
|
88
|
+
|
|
89
|
+
def naics_code=: (String) -> String
|
|
90
|
+
|
|
86
91
|
attr_reader nature_of_business: String?
|
|
87
92
|
|
|
88
93
|
def nature_of_business=: (String) -> String
|
|
@@ -138,6 +143,7 @@ module Lithic
|
|
|
138
143
|
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
139
144
|
?external_id: String,
|
|
140
145
|
?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
146
|
+
?naics_code: String,
|
|
141
147
|
?nature_of_business: String,
|
|
142
148
|
?phone_number: String,
|
|
143
149
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -161,6 +167,7 @@ module Lithic
|
|
|
161
167
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
162
168
|
external_id: String,
|
|
163
169
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
170
|
+
naics_code: String,
|
|
164
171
|
nature_of_business: String,
|
|
165
172
|
phone_number: String,
|
|
166
173
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -7,6 +7,7 @@ module Lithic
|
|
|
7
7
|
business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
8
8
|
control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
9
9
|
external_id: String,
|
|
10
|
+
naics_code: String,
|
|
10
11
|
nature_of_business: String,
|
|
11
12
|
website_url: String,
|
|
12
13
|
individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -52,6 +53,10 @@ module Lithic
|
|
|
52
53
|
|
|
53
54
|
def external_id=: (String) -> String
|
|
54
55
|
|
|
56
|
+
attr_reader naics_code: String?
|
|
57
|
+
|
|
58
|
+
def naics_code=: (String) -> String
|
|
59
|
+
|
|
55
60
|
attr_reader nature_of_business: String?
|
|
56
61
|
|
|
57
62
|
def nature_of_business=: (String) -> String
|
|
@@ -100,6 +105,7 @@ module Lithic
|
|
|
100
105
|
?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
101
106
|
?control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
102
107
|
?external_id: String,
|
|
108
|
+
?naics_code: String,
|
|
103
109
|
?nature_of_business: String,
|
|
104
110
|
?website_url: String,
|
|
105
111
|
?individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -119,6 +125,7 @@ module Lithic
|
|
|
119
125
|
business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
120
126
|
control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
121
127
|
external_id: String,
|
|
128
|
+
naics_code: String,
|
|
122
129
|
nature_of_business: String,
|
|
123
130
|
website_url: String,
|
|
124
131
|
individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -21,6 +21,7 @@ module Lithic
|
|
|
21
21
|
exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
22
22
|
external_id: String,
|
|
23
23
|
individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
24
|
+
naics_code: String,
|
|
24
25
|
nature_of_business: String,
|
|
25
26
|
phone_number: String,
|
|
26
27
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -90,6 +91,10 @@ module Lithic
|
|
|
90
91
|
Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual
|
|
91
92
|
) -> Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual
|
|
92
93
|
|
|
94
|
+
attr_reader naics_code: String?
|
|
95
|
+
|
|
96
|
+
def naics_code=: (String) -> String
|
|
97
|
+
|
|
93
98
|
attr_reader nature_of_business: String?
|
|
94
99
|
|
|
95
100
|
def nature_of_business=: (String) -> String
|
|
@@ -145,6 +150,7 @@ module Lithic
|
|
|
145
150
|
?exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
146
151
|
?external_id: String,
|
|
147
152
|
?individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
153
|
+
?naics_code: String,
|
|
148
154
|
?nature_of_business: String,
|
|
149
155
|
?phone_number: String,
|
|
150
156
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -168,6 +174,7 @@ module Lithic
|
|
|
168
174
|
exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
169
175
|
external_id: String,
|
|
170
176
|
individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
177
|
+
naics_code: String,
|
|
171
178
|
nature_of_business: String,
|
|
172
179
|
phone_number: String,
|
|
173
180
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
15
15
|
event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
16
16
|
external_id: String,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
website_url: String
|
|
19
20
|
}
|
|
@@ -33,6 +34,10 @@ module Lithic
|
|
|
33
34
|
|
|
34
35
|
def external_id=: (String) -> String
|
|
35
36
|
|
|
37
|
+
attr_reader naics_code: String?
|
|
38
|
+
|
|
39
|
+
def naics_code=: (String) -> String
|
|
40
|
+
|
|
36
41
|
attr_reader nature_of_business: String?
|
|
37
42
|
|
|
38
43
|
def nature_of_business=: (String) -> String
|
|
@@ -46,6 +51,7 @@ module Lithic
|
|
|
46
51
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
47
52
|
?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
48
53
|
?external_id: String,
|
|
54
|
+
?naics_code: String,
|
|
49
55
|
?nature_of_business: String,
|
|
50
56
|
?website_url: String
|
|
51
57
|
) -> void
|
|
@@ -55,6 +61,7 @@ module Lithic
|
|
|
55
61
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
56
62
|
event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
57
63
|
external_id: String,
|
|
64
|
+
naics_code: String,
|
|
58
65
|
nature_of_business: String,
|
|
59
66
|
website_url: String
|
|
60
67
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
class AccountHolderEntity = AccountHolders::AccountHolderEntity
|
|
4
|
+
|
|
5
|
+
module AccountHolders
|
|
6
|
+
type account_holder_entity =
|
|
7
|
+
{
|
|
8
|
+
token: String,
|
|
9
|
+
account_holder_token: String,
|
|
10
|
+
address: Lithic::AccountHolders::AccountHolderEntity::Address,
|
|
11
|
+
dob: String?,
|
|
12
|
+
email: String?,
|
|
13
|
+
first_name: String?,
|
|
14
|
+
last_name: String?,
|
|
15
|
+
phone_number: String?,
|
|
16
|
+
status: Lithic::Models::AccountHolders::AccountHolderEntity::status,
|
|
17
|
+
type: Lithic::Models::AccountHolders::AccountHolderEntity::type_
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class AccountHolderEntity < Lithic::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor token: String
|
|
22
|
+
|
|
23
|
+
attr_accessor account_holder_token: String
|
|
24
|
+
|
|
25
|
+
attr_accessor address: Lithic::AccountHolders::AccountHolderEntity::Address
|
|
26
|
+
|
|
27
|
+
attr_accessor dob: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor email: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor first_name: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor last_name: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor phone_number: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor status: Lithic::Models::AccountHolders::AccountHolderEntity::status
|
|
38
|
+
|
|
39
|
+
attr_accessor type: Lithic::Models::AccountHolders::AccountHolderEntity::type_
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
token: String,
|
|
43
|
+
account_holder_token: String,
|
|
44
|
+
address: Lithic::AccountHolders::AccountHolderEntity::Address,
|
|
45
|
+
dob: String?,
|
|
46
|
+
email: String?,
|
|
47
|
+
first_name: String?,
|
|
48
|
+
last_name: String?,
|
|
49
|
+
phone_number: String?,
|
|
50
|
+
status: Lithic::Models::AccountHolders::AccountHolderEntity::status,
|
|
51
|
+
type: Lithic::Models::AccountHolders::AccountHolderEntity::type_
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
token: String,
|
|
56
|
+
account_holder_token: String,
|
|
57
|
+
address: Lithic::AccountHolders::AccountHolderEntity::Address,
|
|
58
|
+
dob: String?,
|
|
59
|
+
email: String?,
|
|
60
|
+
first_name: String?,
|
|
61
|
+
last_name: String?,
|
|
62
|
+
phone_number: String?,
|
|
63
|
+
status: Lithic::Models::AccountHolders::AccountHolderEntity::status,
|
|
64
|
+
type: Lithic::Models::AccountHolders::AccountHolderEntity::type_
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type address =
|
|
68
|
+
{
|
|
69
|
+
:address1 => String,
|
|
70
|
+
city: String,
|
|
71
|
+
country: String,
|
|
72
|
+
postal_code: String,
|
|
73
|
+
state: String,
|
|
74
|
+
:address2 => String
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
class Address < Lithic::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor address1: String
|
|
79
|
+
|
|
80
|
+
attr_accessor city: String
|
|
81
|
+
|
|
82
|
+
attr_accessor country: String
|
|
83
|
+
|
|
84
|
+
attr_accessor postal_code: String
|
|
85
|
+
|
|
86
|
+
attr_accessor state: String
|
|
87
|
+
|
|
88
|
+
attr_reader address2: String?
|
|
89
|
+
|
|
90
|
+
def address2=: (String) -> String
|
|
91
|
+
|
|
92
|
+
def initialize: (
|
|
93
|
+
address1: String,
|
|
94
|
+
city: String,
|
|
95
|
+
country: String,
|
|
96
|
+
postal_code: String,
|
|
97
|
+
state: String,
|
|
98
|
+
?address2: String
|
|
99
|
+
) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> {
|
|
102
|
+
:address1 => String,
|
|
103
|
+
city: String,
|
|
104
|
+
country: String,
|
|
105
|
+
postal_code: String,
|
|
106
|
+
state: String,
|
|
107
|
+
:address2 => String
|
|
108
|
+
}
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
type status = :ACCEPTED | :INACTIVE | :PENDING_REVIEW | :REJECTED
|
|
112
|
+
|
|
113
|
+
module Status
|
|
114
|
+
extend Lithic::Internal::Type::Enum
|
|
115
|
+
|
|
116
|
+
ACCEPTED: :ACCEPTED
|
|
117
|
+
INACTIVE: :INACTIVE
|
|
118
|
+
PENDING_REVIEW: :PENDING_REVIEW
|
|
119
|
+
REJECTED: :REJECTED
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Lithic::Models::AccountHolders::AccountHolderEntity::status]
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type type_ = :BENEFICIAL_OWNER_INDIVIDUAL | :CONTROL_PERSON
|
|
125
|
+
|
|
126
|
+
module Type
|
|
127
|
+
extend Lithic::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
BENEFICIAL_OWNER_INDIVIDUAL: :BENEFICIAL_OWNER_INDIVIDUAL
|
|
130
|
+
CONTROL_PERSON: :CONTROL_PERSON
|
|
131
|
+
|
|
132
|
+
def self?.values: -> ::Array[Lithic::Models::AccountHolders::AccountHolderEntity::type_]
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AccountHolders
|
|
4
|
+
type entity_create_params =
|
|
5
|
+
{
|
|
6
|
+
address: Lithic::AccountHolders::EntityCreateParams::Address,
|
|
7
|
+
dob: String,
|
|
8
|
+
email: String,
|
|
9
|
+
first_name: String,
|
|
10
|
+
government_id: String,
|
|
11
|
+
last_name: String,
|
|
12
|
+
phone_number: String,
|
|
13
|
+
type: Lithic::Models::AccountHolders::EntityCreateParams::type_
|
|
14
|
+
}
|
|
15
|
+
& Lithic::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class EntityCreateParams < Lithic::Internal::Type::BaseModel
|
|
18
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Lithic::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor address: Lithic::AccountHolders::EntityCreateParams::Address
|
|
22
|
+
|
|
23
|
+
attr_accessor dob: String
|
|
24
|
+
|
|
25
|
+
attr_accessor email: String
|
|
26
|
+
|
|
27
|
+
attr_accessor first_name: String
|
|
28
|
+
|
|
29
|
+
attr_accessor government_id: String
|
|
30
|
+
|
|
31
|
+
attr_accessor last_name: String
|
|
32
|
+
|
|
33
|
+
attr_accessor phone_number: String
|
|
34
|
+
|
|
35
|
+
attr_accessor type: Lithic::Models::AccountHolders::EntityCreateParams::type_
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
address: Lithic::AccountHolders::EntityCreateParams::Address,
|
|
39
|
+
dob: String,
|
|
40
|
+
email: String,
|
|
41
|
+
first_name: String,
|
|
42
|
+
government_id: String,
|
|
43
|
+
last_name: String,
|
|
44
|
+
phone_number: String,
|
|
45
|
+
type: Lithic::Models::AccountHolders::EntityCreateParams::type_,
|
|
46
|
+
?request_options: Lithic::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
address: Lithic::AccountHolders::EntityCreateParams::Address,
|
|
51
|
+
dob: String,
|
|
52
|
+
email: String,
|
|
53
|
+
first_name: String,
|
|
54
|
+
government_id: String,
|
|
55
|
+
last_name: String,
|
|
56
|
+
phone_number: String,
|
|
57
|
+
type: Lithic::Models::AccountHolders::EntityCreateParams::type_,
|
|
58
|
+
request_options: Lithic::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type address =
|
|
62
|
+
{
|
|
63
|
+
:address1 => String,
|
|
64
|
+
city: String,
|
|
65
|
+
country: String,
|
|
66
|
+
postal_code: String,
|
|
67
|
+
state: String,
|
|
68
|
+
:address2 => String
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
class Address < Lithic::Internal::Type::BaseModel
|
|
72
|
+
attr_accessor address1: String
|
|
73
|
+
|
|
74
|
+
attr_accessor city: String
|
|
75
|
+
|
|
76
|
+
attr_accessor country: String
|
|
77
|
+
|
|
78
|
+
attr_accessor postal_code: String
|
|
79
|
+
|
|
80
|
+
attr_accessor state: String
|
|
81
|
+
|
|
82
|
+
attr_reader address2: String?
|
|
83
|
+
|
|
84
|
+
def address2=: (String) -> String
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
address1: String,
|
|
88
|
+
city: String,
|
|
89
|
+
country: String,
|
|
90
|
+
postal_code: String,
|
|
91
|
+
state: String,
|
|
92
|
+
?address2: String
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
:address1 => String,
|
|
97
|
+
city: String,
|
|
98
|
+
country: String,
|
|
99
|
+
postal_code: String,
|
|
100
|
+
state: String,
|
|
101
|
+
:address2 => String
|
|
102
|
+
}
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
type type_ = :BENEFICIAL_OWNER_INDIVIDUAL | :CONTROL_PERSON
|
|
106
|
+
|
|
107
|
+
module Type
|
|
108
|
+
extend Lithic::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
BENEFICIAL_OWNER_INDIVIDUAL: :BENEFICIAL_OWNER_INDIVIDUAL
|
|
111
|
+
CONTROL_PERSON: :CONTROL_PERSON
|
|
112
|
+
|
|
113
|
+
def self?.values: -> ::Array[Lithic::Models::AccountHolders::EntityCreateParams::type_]
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|