lithic 0.5.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 +26 -0
- data/README.md +1 -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_block_parameters.rb +3 -0
- 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/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/{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 +4 -0
- 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 +18 -1
- 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_block_parameters.rbi +1 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
- 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/{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 +3 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- 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_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/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/{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 +2 -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 +56 -5
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class AccountHolders
|
|
6
|
+
class Entities
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Lithic::Models::AccountHolders::EntityCreateParams} for more details.
|
|
9
|
+
#
|
|
10
|
+
# Create a new beneficial owner or replace the control person entity on an
|
|
11
|
+
# existing KYB account holder. This endpoint is only applicable for account
|
|
12
|
+
# holders enrolled through a KYB workflow with the Persona KYB provider. A new
|
|
13
|
+
# control person can only replace the existing one. A maximum of 4 beneficial
|
|
14
|
+
# owners can be associated with an account holder.
|
|
15
|
+
#
|
|
16
|
+
# @overload create(account_holder_token, address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {})
|
|
17
|
+
#
|
|
18
|
+
# @param account_holder_token [String] Globally unique identifier for the account holder.
|
|
19
|
+
#
|
|
20
|
+
# @param address [Lithic::Models::AccountHolders::EntityCreateParams::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
|
|
21
|
+
#
|
|
22
|
+
# @param dob [String] Individual's date of birth, as an RFC 3339 date.
|
|
23
|
+
#
|
|
24
|
+
# @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this
|
|
25
|
+
#
|
|
26
|
+
# @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
|
|
27
|
+
#
|
|
28
|
+
# @param government_id [String] Government-issued identification number (required for identity verification and
|
|
29
|
+
#
|
|
30
|
+
# @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
|
|
31
|
+
#
|
|
32
|
+
# @param phone_number [String] Individual's phone number, entered in E.164 format.
|
|
33
|
+
#
|
|
34
|
+
# @param type [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type] The type of entity to create on the account holder
|
|
35
|
+
#
|
|
36
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
37
|
+
#
|
|
38
|
+
# @return [Lithic::Models::AccountHolders::EntityCreateResponse]
|
|
39
|
+
#
|
|
40
|
+
# @see Lithic::Models::AccountHolders::EntityCreateParams
|
|
41
|
+
def create(account_holder_token, params)
|
|
42
|
+
parsed, options = Lithic::AccountHolders::EntityCreateParams.dump_request(params)
|
|
43
|
+
@client.request(
|
|
44
|
+
method: :post,
|
|
45
|
+
path: ["v1/account_holders/%1$s/entities", account_holder_token],
|
|
46
|
+
body: parsed,
|
|
47
|
+
model: Lithic::Models::AccountHolders::EntityCreateResponse,
|
|
48
|
+
options: options
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Deactivate a beneficial owner entity on an existing KYB account holder. Only
|
|
53
|
+
# beneficial owner entities can be deactivated.
|
|
54
|
+
#
|
|
55
|
+
# @overload delete(entity_token, account_holder_token:, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param entity_token [String] Globally unique identifier for the entity.
|
|
58
|
+
#
|
|
59
|
+
# @param account_holder_token [String] Globally unique identifier for the account holder.
|
|
60
|
+
#
|
|
61
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
62
|
+
#
|
|
63
|
+
# @return [Lithic::Models::AccountHolders::AccountHolderEntity]
|
|
64
|
+
#
|
|
65
|
+
# @see Lithic::Models::AccountHolders::EntityDeleteParams
|
|
66
|
+
def delete(entity_token, params)
|
|
67
|
+
parsed, options = Lithic::AccountHolders::EntityDeleteParams.dump_request(params)
|
|
68
|
+
account_holder_token =
|
|
69
|
+
parsed.delete(:account_holder_token) do
|
|
70
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
71
|
+
end
|
|
72
|
+
@client.request(
|
|
73
|
+
method: :delete,
|
|
74
|
+
path: ["v1/account_holders/%1$s/entities/%2$s", account_holder_token, entity_token],
|
|
75
|
+
model: Lithic::AccountHolders::AccountHolderEntity,
|
|
76
|
+
options: options
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @api private
|
|
81
|
+
#
|
|
82
|
+
# @param client [Lithic::Client]
|
|
83
|
+
def initialize(client:)
|
|
84
|
+
@client = client
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Resources
|
|
5
5
|
class AccountHolders
|
|
6
|
+
# @return [Lithic::Resources::AccountHolders::Entities]
|
|
7
|
+
attr_reader :entities
|
|
8
|
+
|
|
6
9
|
# Some parameter documentations has been truncated, see
|
|
7
10
|
# {Lithic::Models::AccountHolderCreateParams} for more details.
|
|
8
11
|
#
|
|
@@ -391,6 +394,7 @@ module Lithic
|
|
|
391
394
|
# @param client [Lithic::Client]
|
|
392
395
|
def initialize(client:)
|
|
393
396
|
@client = client
|
|
397
|
+
@entities = Lithic::Resources::AccountHolders::Entities.new(client: client)
|
|
394
398
|
end
|
|
395
399
|
end
|
|
396
400
|
end
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class InterestTierSchedule
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Lithic::Models::FinancialAccounts::InterestTierScheduleCreateParams} for more
|
|
9
|
+
# details.
|
|
10
|
+
#
|
|
11
|
+
# Create a new interest tier schedule entry for a supported financial account
|
|
12
|
+
#
|
|
13
|
+
# @overload create(financial_account_token, credit_product_token:, effective_date:, tier_name: nil, tier_rates: nil, request_options: {})
|
|
14
|
+
#
|
|
15
|
+
# @param financial_account_token [String] Globally unique identifier for financial account
|
|
16
|
+
#
|
|
17
|
+
# @param credit_product_token [String] Globally unique identifier for a credit product
|
|
18
|
+
#
|
|
19
|
+
# @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
|
|
20
|
+
#
|
|
21
|
+
# @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
|
|
22
|
+
#
|
|
23
|
+
# @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
|
|
24
|
+
#
|
|
25
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
26
|
+
#
|
|
27
|
+
# @return [Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule]
|
|
28
|
+
#
|
|
29
|
+
# @see Lithic::Models::FinancialAccounts::InterestTierScheduleCreateParams
|
|
30
|
+
def create(financial_account_token, params)
|
|
31
|
+
parsed, options = Lithic::FinancialAccounts::InterestTierScheduleCreateParams.dump_request(params)
|
|
32
|
+
@client.request(
|
|
33
|
+
method: :post,
|
|
34
|
+
path: ["v1/financial_accounts/%1$s/interest_tier_schedule", financial_account_token],
|
|
35
|
+
body: parsed,
|
|
36
|
+
model: Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule,
|
|
37
|
+
options: options
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Get a specific interest tier schedule by effective date
|
|
42
|
+
#
|
|
43
|
+
# @overload retrieve(effective_date, financial_account_token:, request_options: {})
|
|
44
|
+
#
|
|
45
|
+
# @param effective_date [Date] Effective date in ISO format (YYYY-MM-DD)
|
|
46
|
+
#
|
|
47
|
+
# @param financial_account_token [String] Globally unique identifier for financial account
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
|
+
#
|
|
51
|
+
# @return [Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule]
|
|
52
|
+
#
|
|
53
|
+
# @see Lithic::Models::FinancialAccounts::InterestTierScheduleRetrieveParams
|
|
54
|
+
def retrieve(effective_date, params)
|
|
55
|
+
parsed, options = Lithic::FinancialAccounts::InterestTierScheduleRetrieveParams.dump_request(params)
|
|
56
|
+
financial_account_token =
|
|
57
|
+
parsed.delete(:financial_account_token) do
|
|
58
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
59
|
+
end
|
|
60
|
+
@client.request(
|
|
61
|
+
method: :get,
|
|
62
|
+
path: [
|
|
63
|
+
"v1/financial_accounts/%1$s/interest_tier_schedule/%2$s",
|
|
64
|
+
financial_account_token,
|
|
65
|
+
effective_date
|
|
66
|
+
],
|
|
67
|
+
model: Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule,
|
|
68
|
+
options: options
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Some parameter documentations has been truncated, see
|
|
73
|
+
# {Lithic::Models::FinancialAccounts::InterestTierScheduleUpdateParams} for more
|
|
74
|
+
# details.
|
|
75
|
+
#
|
|
76
|
+
# Update an existing interest tier schedule
|
|
77
|
+
#
|
|
78
|
+
# @overload update(effective_date, financial_account_token:, tier_name: nil, tier_rates: nil, request_options: {})
|
|
79
|
+
#
|
|
80
|
+
# @param effective_date [Date] Path param: Effective date in ISO format (YYYY-MM-DD)
|
|
81
|
+
#
|
|
82
|
+
# @param financial_account_token [String] Path param: Globally unique identifier for financial account
|
|
83
|
+
#
|
|
84
|
+
# @param tier_name [String] Body param: Name of a tier contained in the credit product. Mutually exclusive w
|
|
85
|
+
#
|
|
86
|
+
# @param tier_rates [Object] Body param: Custom rates per category. Mutually exclusive with tier_name
|
|
87
|
+
#
|
|
88
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
89
|
+
#
|
|
90
|
+
# @return [Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule]
|
|
91
|
+
#
|
|
92
|
+
# @see Lithic::Models::FinancialAccounts::InterestTierScheduleUpdateParams
|
|
93
|
+
def update(effective_date, params)
|
|
94
|
+
parsed, options = Lithic::FinancialAccounts::InterestTierScheduleUpdateParams.dump_request(params)
|
|
95
|
+
financial_account_token =
|
|
96
|
+
parsed.delete(:financial_account_token) do
|
|
97
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
98
|
+
end
|
|
99
|
+
@client.request(
|
|
100
|
+
method: :put,
|
|
101
|
+
path: [
|
|
102
|
+
"v1/financial_accounts/%1$s/interest_tier_schedule/%2$s",
|
|
103
|
+
financial_account_token,
|
|
104
|
+
effective_date
|
|
105
|
+
],
|
|
106
|
+
body: parsed,
|
|
107
|
+
model: Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule,
|
|
108
|
+
options: options
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# List interest tier schedules for a financial account with optional date
|
|
113
|
+
# filtering.
|
|
114
|
+
#
|
|
115
|
+
# If no date parameters are provided, returns all tier schedules. If date
|
|
116
|
+
# parameters are provided, uses filtering to return matching schedules (max 100).
|
|
117
|
+
#
|
|
118
|
+
# - for_date: Returns exact match (takes precedence over other dates)
|
|
119
|
+
# - before_date: Returns schedules with effective_date <= before_date
|
|
120
|
+
# - after_date: Returns schedules with effective_date >= after_date
|
|
121
|
+
# - Both before_date and after_date: Returns schedules in range
|
|
122
|
+
#
|
|
123
|
+
# @overload list(financial_account_token, after_date: nil, before_date: nil, for_date: nil, request_options: {})
|
|
124
|
+
#
|
|
125
|
+
# @param financial_account_token [String] Globally unique identifier for financial account
|
|
126
|
+
#
|
|
127
|
+
# @param after_date [Date] Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
|
|
128
|
+
#
|
|
129
|
+
# @param before_date [Date] Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
|
|
130
|
+
#
|
|
131
|
+
# @param for_date [Date] Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
|
|
132
|
+
#
|
|
133
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
134
|
+
#
|
|
135
|
+
# @return [Lithic::Internal::SinglePage<Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule>]
|
|
136
|
+
#
|
|
137
|
+
# @see Lithic::Models::FinancialAccounts::InterestTierScheduleListParams
|
|
138
|
+
def list(financial_account_token, params = {})
|
|
139
|
+
parsed, options = Lithic::FinancialAccounts::InterestTierScheduleListParams.dump_request(params)
|
|
140
|
+
@client.request(
|
|
141
|
+
method: :get,
|
|
142
|
+
path: ["v1/financial_accounts/%1$s/interest_tier_schedule", financial_account_token],
|
|
143
|
+
query: parsed,
|
|
144
|
+
page: Lithic::Internal::SinglePage,
|
|
145
|
+
model: Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule,
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Delete an interest tier schedule entry.
|
|
151
|
+
#
|
|
152
|
+
# Returns:
|
|
153
|
+
#
|
|
154
|
+
# - 400 Bad Request: Invalid effective_date format OR attempting to delete the
|
|
155
|
+
# earliest tier schedule entry for a non-PENDING account
|
|
156
|
+
# - 404 Not Found: Tier schedule entry not found for the given effective_date OR
|
|
157
|
+
# ledger account not found
|
|
158
|
+
#
|
|
159
|
+
# Note: PENDING accounts can delete the earliest tier schedule entry (account
|
|
160
|
+
# hasn't opened yet). Active/non-PENDING accounts cannot delete the earliest entry
|
|
161
|
+
# to prevent orphaning the account.
|
|
162
|
+
#
|
|
163
|
+
# If the deleted tier schedule has a past effective_date and the account is
|
|
164
|
+
# ACTIVE, the loan tape rebuild configuration will be updated to trigger rebuilds
|
|
165
|
+
# from that date.
|
|
166
|
+
#
|
|
167
|
+
# @overload delete(effective_date, financial_account_token:, request_options: {})
|
|
168
|
+
#
|
|
169
|
+
# @param effective_date [Date] Effective date in ISO format (YYYY-MM-DD)
|
|
170
|
+
#
|
|
171
|
+
# @param financial_account_token [String] Globally unique identifier for financial account
|
|
172
|
+
#
|
|
173
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
|
+
#
|
|
175
|
+
# @return [nil]
|
|
176
|
+
#
|
|
177
|
+
# @see Lithic::Models::FinancialAccounts::InterestTierScheduleDeleteParams
|
|
178
|
+
def delete(effective_date, params)
|
|
179
|
+
parsed, options = Lithic::FinancialAccounts::InterestTierScheduleDeleteParams.dump_request(params)
|
|
180
|
+
financial_account_token =
|
|
181
|
+
parsed.delete(:financial_account_token) do
|
|
182
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
183
|
+
end
|
|
184
|
+
@client.request(
|
|
185
|
+
method: :delete,
|
|
186
|
+
path: [
|
|
187
|
+
"v1/financial_accounts/%1$s/interest_tier_schedule/%2$s",
|
|
188
|
+
financial_account_token,
|
|
189
|
+
effective_date
|
|
190
|
+
],
|
|
191
|
+
model: NilClass,
|
|
192
|
+
options: options
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# @api private
|
|
197
|
+
#
|
|
198
|
+
# @param client [Lithic::Client]
|
|
199
|
+
def initialize(client:)
|
|
200
|
+
@client = client
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
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
|
+
#
|
|
9
|
+
# @overload retrieve(financial_account_token, request_options: {})
|
|
10
|
+
#
|
|
11
|
+
# @param financial_account_token [String] Globally unique identifier for financial account.
|
|
12
|
+
#
|
|
13
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
|
+
#
|
|
15
|
+
# @return [Lithic::Models::FinancialAccounts::FinancialAccountsLoanTapeConfiguration]
|
|
16
|
+
#
|
|
17
|
+
# @see Lithic::Models::FinancialAccounts::LoanTapeConfigurationRetrieveParams
|
|
18
|
+
def retrieve(financial_account_token, params = {})
|
|
19
|
+
@client.request(
|
|
20
|
+
method: :get,
|
|
21
|
+
path: ["v1/financial_accounts/%1$s/loan_tape_configuration", financial_account_token],
|
|
22
|
+
model: Lithic::FinancialAccounts::FinancialAccountsLoanTapeConfiguration,
|
|
23
|
+
options: params[:request_options]
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# @api private
|
|
28
|
+
#
|
|
29
|
+
# @param client [Lithic::Client]
|
|
30
|
+
def initialize(client:)
|
|
31
|
+
@client = client
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -18,6 +18,12 @@ module Lithic
|
|
|
18
18
|
# @return [Lithic::Resources::FinancialAccounts::LoanTapes]
|
|
19
19
|
attr_reader :loan_tapes
|
|
20
20
|
|
|
21
|
+
# @return [Lithic::Resources::FinancialAccounts::LoanTapeConfiguration]
|
|
22
|
+
attr_reader :loan_tape_configuration
|
|
23
|
+
|
|
24
|
+
# @return [Lithic::Resources::FinancialAccounts::InterestTierSchedule]
|
|
25
|
+
attr_reader :interest_tier_schedule
|
|
26
|
+
|
|
21
27
|
# Create a new financial account
|
|
22
28
|
#
|
|
23
29
|
# @overload create(nickname:, type:, account_token: nil, is_for_benefit_of: nil, idempotency_key: nil, request_options: {})
|
|
@@ -181,6 +187,9 @@ module Lithic
|
|
|
181
187
|
@credit_configuration = Lithic::Resources::FinancialAccounts::CreditConfiguration.new(client: client)
|
|
182
188
|
@statements = Lithic::Resources::FinancialAccounts::Statements.new(client: client)
|
|
183
189
|
@loan_tapes = Lithic::Resources::FinancialAccounts::LoanTapes.new(client: client)
|
|
190
|
+
@loan_tape_configuration =
|
|
191
|
+
Lithic::Resources::FinancialAccounts::LoanTapeConfiguration.new(client: client)
|
|
192
|
+
@interest_tier_schedule = Lithic::Resources::FinancialAccounts::InterestTierSchedule.new(client: client)
|
|
184
193
|
end
|
|
185
194
|
end
|
|
186
195
|
end
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
|
@@ -65,6 +65,7 @@ require_relative "lithic/models/dispute"
|
|
|
65
65
|
require_relative "lithic/models/external_bank_account"
|
|
66
66
|
require_relative "lithic/models/external_payment"
|
|
67
67
|
require_relative "lithic/models/financial_account"
|
|
68
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule"
|
|
68
69
|
require_relative "lithic/models/funding_event"
|
|
69
70
|
require_relative "lithic/models/internal_transaction"
|
|
70
71
|
require_relative "lithic/models/financial_accounts/loan_tape"
|
|
@@ -91,6 +92,10 @@ require_relative "lithic/models/account_holder_list_documents_response"
|
|
|
91
92
|
require_relative "lithic/models/account_holder_list_params"
|
|
92
93
|
require_relative "lithic/models/account_holder_retrieve_document_params"
|
|
93
94
|
require_relative "lithic/models/account_holder_retrieve_params"
|
|
95
|
+
require_relative "lithic/models/account_holders/account_holder_entity"
|
|
96
|
+
require_relative "lithic/models/account_holders/entity_create_params"
|
|
97
|
+
require_relative "lithic/models/account_holders/entity_create_response"
|
|
98
|
+
require_relative "lithic/models/account_holders/entity_delete_params"
|
|
94
99
|
require_relative "lithic/models/account_holder_simulate_enrollment_document_review_params"
|
|
95
100
|
require_relative "lithic/models/account_holder_simulate_enrollment_review_params"
|
|
96
101
|
require_relative "lithic/models/account_holder_simulate_enrollment_review_response"
|
|
@@ -209,7 +214,6 @@ require_relative "lithic/models/digital_wallet_tokenization_result_webhook_event
|
|
|
209
214
|
require_relative "lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event"
|
|
210
215
|
require_relative "lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event"
|
|
211
216
|
require_relative "lithic/models/digital_wallet_tokenization_updated_webhook_event"
|
|
212
|
-
require_relative "lithic/models/digital_wallet_token_metadata"
|
|
213
217
|
require_relative "lithic/models/dispute_create_params"
|
|
214
218
|
require_relative "lithic/models/dispute_delete_evidence_params"
|
|
215
219
|
require_relative "lithic/models/dispute_delete_params"
|
|
@@ -280,13 +284,22 @@ require_relative "lithic/models/financial_account_register_account_number_params
|
|
|
280
284
|
require_relative "lithic/models/financial_account_retrieve_params"
|
|
281
285
|
require_relative "lithic/models/financial_accounts/balance_list_params"
|
|
282
286
|
require_relative "lithic/models/financial_accounts/category_balances"
|
|
287
|
+
require_relative "lithic/models/financial_accounts/category_tier"
|
|
283
288
|
require_relative "lithic/models/financial_accounts/credit_configuration_retrieve_params"
|
|
284
289
|
require_relative "lithic/models/financial_accounts/credit_configuration_update_params"
|
|
285
290
|
require_relative "lithic/models/financial_accounts/financial_account_credit_config"
|
|
291
|
+
require_relative "lithic/models/financial_accounts/loan_tape_configuration"
|
|
286
292
|
require_relative "lithic/models/financial_accounts/statements"
|
|
287
293
|
require_relative "lithic/models/financial_accounts/financial_transaction_list_params"
|
|
288
294
|
require_relative "lithic/models/financial_accounts/financial_transaction_retrieve_params"
|
|
295
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule_create_params"
|
|
296
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule_delete_params"
|
|
297
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule_list_params"
|
|
298
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule_retrieve_params"
|
|
299
|
+
require_relative "lithic/models/financial_accounts/interest_tier_schedule_update_params"
|
|
300
|
+
require_relative "lithic/models/financial_accounts/loan_tape_configuration_retrieve_params"
|
|
289
301
|
require_relative "lithic/models/financial_accounts/loan_tape_list_params"
|
|
302
|
+
require_relative "lithic/models/financial_accounts/loan_tape_rebuild_configuration"
|
|
290
303
|
require_relative "lithic/models/financial_accounts/loan_tape_retrieve_params"
|
|
291
304
|
require_relative "lithic/models/financial_accounts/statement_list_params"
|
|
292
305
|
require_relative "lithic/models/financial_accounts/statement_retrieve_params"
|
|
@@ -402,6 +415,7 @@ require_relative "lithic/models/tokenization_two_factor_authentication_code_webh
|
|
|
402
415
|
require_relative "lithic/models/tokenization_unpause_params"
|
|
403
416
|
require_relative "lithic/models/tokenization_update_digital_card_art_params"
|
|
404
417
|
require_relative "lithic/models/tokenization_updated_webhook_event"
|
|
418
|
+
require_relative "lithic/models/token_metadata"
|
|
405
419
|
require_relative "lithic/models/transaction_expire_authorization_params"
|
|
406
420
|
require_relative "lithic/models/transaction_list_params"
|
|
407
421
|
require_relative "lithic/models/transaction_retrieve_params"
|
|
@@ -433,6 +447,7 @@ require_relative "lithic/models/wire_party_details"
|
|
|
433
447
|
require_relative "lithic/models"
|
|
434
448
|
require_relative "lithic/resources/account_activity"
|
|
435
449
|
require_relative "lithic/resources/account_holders"
|
|
450
|
+
require_relative "lithic/resources/account_holders/entities"
|
|
436
451
|
require_relative "lithic/resources/accounts"
|
|
437
452
|
require_relative "lithic/resources/auth_rules"
|
|
438
453
|
require_relative "lithic/resources/auth_rules/v2"
|
|
@@ -461,6 +476,8 @@ require_relative "lithic/resources/financial_accounts"
|
|
|
461
476
|
require_relative "lithic/resources/financial_accounts/balances"
|
|
462
477
|
require_relative "lithic/resources/financial_accounts/credit_configuration"
|
|
463
478
|
require_relative "lithic/resources/financial_accounts/financial_transactions"
|
|
479
|
+
require_relative "lithic/resources/financial_accounts/interest_tier_schedule"
|
|
480
|
+
require_relative "lithic/resources/financial_accounts/loan_tape_configuration"
|
|
464
481
|
require_relative "lithic/resources/financial_accounts/loan_tapes"
|
|
465
482
|
require_relative "lithic/resources/financial_accounts/statements"
|
|
466
483
|
require_relative "lithic/resources/financial_accounts/statements/line_items"
|