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,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InterestTierScheduleDeleteParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::InterestTierScheduleDeleteParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :financial_account_token
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
financial_account_token: String,
|
|
24
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(financial_account_token:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
financial_account_token: String,
|
|
34
|
+
request_options: Lithic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InterestTierScheduleListParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::InterestTierScheduleListParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
|
|
19
|
+
sig { returns(T.nilable(Date)) }
|
|
20
|
+
attr_reader :after_date
|
|
21
|
+
|
|
22
|
+
sig { params(after_date: Date).void }
|
|
23
|
+
attr_writer :after_date
|
|
24
|
+
|
|
25
|
+
# Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
|
|
26
|
+
sig { returns(T.nilable(Date)) }
|
|
27
|
+
attr_reader :before_date
|
|
28
|
+
|
|
29
|
+
sig { params(before_date: Date).void }
|
|
30
|
+
attr_writer :before_date
|
|
31
|
+
|
|
32
|
+
# Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
|
|
33
|
+
sig { returns(T.nilable(Date)) }
|
|
34
|
+
attr_reader :for_date
|
|
35
|
+
|
|
36
|
+
sig { params(for_date: Date).void }
|
|
37
|
+
attr_writer :for_date
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
after_date: Date,
|
|
42
|
+
before_date: Date,
|
|
43
|
+
for_date: Date,
|
|
44
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
45
|
+
).returns(T.attached_class)
|
|
46
|
+
end
|
|
47
|
+
def self.new(
|
|
48
|
+
# Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
|
|
49
|
+
after_date: nil,
|
|
50
|
+
# Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
|
|
51
|
+
before_date: nil,
|
|
52
|
+
# Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
|
|
53
|
+
for_date: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
after_date: Date,
|
|
62
|
+
before_date: Date,
|
|
63
|
+
for_date: Date,
|
|
64
|
+
request_options: Lithic::RequestOptions
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
def to_hash
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InterestTierScheduleRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::InterestTierScheduleRetrieveParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :financial_account_token
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
financial_account_token: String,
|
|
24
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(financial_account_token:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
financial_account_token: String,
|
|
34
|
+
request_options: Lithic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::InterestTierScheduleUpdateParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :financial_account_token
|
|
20
|
+
|
|
21
|
+
# Name of a tier contained in the credit product. Mutually exclusive with
|
|
22
|
+
# tier_rates
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :tier_name
|
|
25
|
+
|
|
26
|
+
sig { params(tier_name: String).void }
|
|
27
|
+
attr_writer :tier_name
|
|
28
|
+
|
|
29
|
+
# Custom rates per category. Mutually exclusive with tier_name
|
|
30
|
+
sig { returns(T.nilable(T.anything)) }
|
|
31
|
+
attr_reader :tier_rates
|
|
32
|
+
|
|
33
|
+
sig { params(tier_rates: T.anything).void }
|
|
34
|
+
attr_writer :tier_rates
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
params(
|
|
38
|
+
financial_account_token: String,
|
|
39
|
+
tier_name: String,
|
|
40
|
+
tier_rates: T.anything,
|
|
41
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
financial_account_token:,
|
|
46
|
+
# Name of a tier contained in the credit product. Mutually exclusive with
|
|
47
|
+
# tier_rates
|
|
48
|
+
tier_name: nil,
|
|
49
|
+
# Custom rates per category. Mutually exclusive with tier_name
|
|
50
|
+
tier_rates: nil,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
financial_account_token: String,
|
|
59
|
+
tier_name: String,
|
|
60
|
+
tier_rates: T.anything,
|
|
61
|
+
request_options: Lithic::RequestOptions
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def to_hash
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -525,6 +525,11 @@ module Lithic
|
|
|
525
525
|
:DELINQUENT,
|
|
526
526
|
Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Substatus::TaggedSymbol
|
|
527
527
|
)
|
|
528
|
+
INTEREST_AND_FEES_PAUSED =
|
|
529
|
+
T.let(
|
|
530
|
+
:INTEREST_AND_FEES_PAUSED,
|
|
531
|
+
Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Substatus::TaggedSymbol
|
|
532
|
+
)
|
|
528
533
|
|
|
529
534
|
sig do
|
|
530
535
|
override.returns(
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class FinancialAccountsLoanTapeConfiguration < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::FinancialAccountsLoanTapeConfiguration,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Time) }
|
|
16
|
+
attr_accessor :created_at
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :financial_account_token
|
|
20
|
+
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :instance_token
|
|
23
|
+
|
|
24
|
+
sig { returns(Time) }
|
|
25
|
+
attr_accessor :updated_at
|
|
26
|
+
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :credit_product_token
|
|
29
|
+
|
|
30
|
+
sig { params(credit_product_token: String).void }
|
|
31
|
+
attr_writer :credit_product_token
|
|
32
|
+
|
|
33
|
+
# Configuration for building loan tapes
|
|
34
|
+
sig do
|
|
35
|
+
returns(
|
|
36
|
+
T.nilable(Lithic::FinancialAccounts::LoanTapeRebuildConfiguration)
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
attr_reader :loan_tape_rebuild_configuration
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
loan_tape_rebuild_configuration:
|
|
44
|
+
Lithic::FinancialAccounts::LoanTapeRebuildConfiguration::OrHash
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :loan_tape_rebuild_configuration
|
|
48
|
+
|
|
49
|
+
sig { returns(T.nilable(Time)) }
|
|
50
|
+
attr_reader :tier_schedule_changed_at
|
|
51
|
+
|
|
52
|
+
sig { params(tier_schedule_changed_at: Time).void }
|
|
53
|
+
attr_writer :tier_schedule_changed_at
|
|
54
|
+
|
|
55
|
+
# Configuration for loan tapes
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
created_at: Time,
|
|
59
|
+
financial_account_token: String,
|
|
60
|
+
instance_token: String,
|
|
61
|
+
updated_at: Time,
|
|
62
|
+
credit_product_token: String,
|
|
63
|
+
loan_tape_rebuild_configuration:
|
|
64
|
+
Lithic::FinancialAccounts::LoanTapeRebuildConfiguration::OrHash,
|
|
65
|
+
tier_schedule_changed_at: Time
|
|
66
|
+
).returns(T.attached_class)
|
|
67
|
+
end
|
|
68
|
+
def self.new(
|
|
69
|
+
created_at:,
|
|
70
|
+
financial_account_token:,
|
|
71
|
+
instance_token:,
|
|
72
|
+
updated_at:,
|
|
73
|
+
credit_product_token: nil,
|
|
74
|
+
# Configuration for building loan tapes
|
|
75
|
+
loan_tape_rebuild_configuration: nil,
|
|
76
|
+
tier_schedule_changed_at: nil
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
override.returns(
|
|
82
|
+
{
|
|
83
|
+
created_at: Time,
|
|
84
|
+
financial_account_token: String,
|
|
85
|
+
instance_token: String,
|
|
86
|
+
updated_at: Time,
|
|
87
|
+
credit_product_token: String,
|
|
88
|
+
loan_tape_rebuild_configuration:
|
|
89
|
+
Lithic::FinancialAccounts::LoanTapeRebuildConfiguration,
|
|
90
|
+
tier_schedule_changed_at: Time
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
def to_hash
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class LoanTapeConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::LoanTapeConfigurationRetrieveParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
|
20
|
+
T.attached_class
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
def self.new(request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ request_options: Lithic::RequestOptions }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class LoanTapeRebuildConfiguration < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::LoanTapeRebuildConfiguration,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Whether the account's loan tapes need to be rebuilt or not
|
|
16
|
+
sig { returns(T::Boolean) }
|
|
17
|
+
attr_accessor :rebuild_needed
|
|
18
|
+
|
|
19
|
+
# The date for which the account's loan tapes were last rebuilt
|
|
20
|
+
sig { returns(T.nilable(Date)) }
|
|
21
|
+
attr_reader :last_rebuild
|
|
22
|
+
|
|
23
|
+
sig { params(last_rebuild: Date).void }
|
|
24
|
+
attr_writer :last_rebuild
|
|
25
|
+
|
|
26
|
+
# Date from which to start rebuilding from if the account requires a rebuild
|
|
27
|
+
sig { returns(T.nilable(Date)) }
|
|
28
|
+
attr_reader :rebuild_from
|
|
29
|
+
|
|
30
|
+
sig { params(rebuild_from: Date).void }
|
|
31
|
+
attr_writer :rebuild_from
|
|
32
|
+
|
|
33
|
+
# Configuration for building loan tapes
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
rebuild_needed: T::Boolean,
|
|
37
|
+
last_rebuild: Date,
|
|
38
|
+
rebuild_from: Date
|
|
39
|
+
).returns(T.attached_class)
|
|
40
|
+
end
|
|
41
|
+
def self.new(
|
|
42
|
+
# Whether the account's loan tapes need to be rebuilt or not
|
|
43
|
+
rebuild_needed:,
|
|
44
|
+
# The date for which the account's loan tapes were last rebuilt
|
|
45
|
+
last_rebuild: nil,
|
|
46
|
+
# Date from which to start rebuilding from if the account requires a rebuild
|
|
47
|
+
rebuild_from: nil
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
override.returns(
|
|
53
|
+
{
|
|
54
|
+
rebuild_needed: T::Boolean,
|
|
55
|
+
last_rebuild: Date,
|
|
56
|
+
rebuild_from: Date
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
def to_hash
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -520,6 +520,11 @@ module Lithic
|
|
|
520
520
|
:DELINQUENT,
|
|
521
521
|
Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Substatus::TaggedSymbol
|
|
522
522
|
)
|
|
523
|
+
INTEREST_AND_FEES_PAUSED =
|
|
524
|
+
T.let(
|
|
525
|
+
:INTEREST_AND_FEES_PAUSED,
|
|
526
|
+
Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Substatus::TaggedSymbol
|
|
527
|
+
)
|
|
523
528
|
|
|
524
529
|
sig do
|
|
525
530
|
override.returns(
|
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class TokenMetadata < Lithic::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
|
-
T.type_alias
|
|
8
|
-
T.any(Lithic::DigitalWalletTokenMetadata, Lithic::Internal::AnyHash)
|
|
9
|
-
end
|
|
7
|
+
T.type_alias { T.any(Lithic::TokenMetadata, Lithic::Internal::AnyHash) }
|
|
10
8
|
|
|
11
9
|
# Contains the information of the account responsible for the payment.
|
|
12
|
-
sig { returns(Lithic::
|
|
10
|
+
sig { returns(Lithic::TokenMetadata::PaymentAccountInfo) }
|
|
13
11
|
attr_reader :payment_account_info
|
|
14
12
|
|
|
15
13
|
sig do
|
|
16
14
|
params(
|
|
17
15
|
payment_account_info:
|
|
18
|
-
Lithic::
|
|
16
|
+
Lithic::TokenMetadata::PaymentAccountInfo::OrHash
|
|
19
17
|
).void
|
|
20
18
|
end
|
|
21
19
|
attr_writer :payment_account_info
|
|
@@ -39,9 +37,7 @@ module Lithic
|
|
|
39
37
|
# Human-readable name of the wallet that the token_requestor_id maps to.
|
|
40
38
|
sig do
|
|
41
39
|
returns(
|
|
42
|
-
T.nilable(
|
|
43
|
-
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::TaggedSymbol
|
|
44
|
-
)
|
|
40
|
+
T.nilable(Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol)
|
|
45
41
|
)
|
|
46
42
|
end
|
|
47
43
|
attr_reader :token_requestor_name
|
|
@@ -49,7 +45,7 @@ module Lithic
|
|
|
49
45
|
sig do
|
|
50
46
|
params(
|
|
51
47
|
token_requestor_name:
|
|
52
|
-
Lithic::
|
|
48
|
+
Lithic::TokenMetadata::TokenRequestorName::OrSymbol
|
|
53
49
|
).void
|
|
54
50
|
end
|
|
55
51
|
attr_writer :token_requestor_name
|
|
@@ -58,12 +54,12 @@ module Lithic
|
|
|
58
54
|
sig do
|
|
59
55
|
params(
|
|
60
56
|
payment_account_info:
|
|
61
|
-
Lithic::
|
|
57
|
+
Lithic::TokenMetadata::PaymentAccountInfo::OrHash,
|
|
62
58
|
status: String,
|
|
63
59
|
payment_app_instance_id: T.nilable(String),
|
|
64
60
|
token_requestor_id: String,
|
|
65
61
|
token_requestor_name:
|
|
66
|
-
Lithic::
|
|
62
|
+
Lithic::TokenMetadata::TokenRequestorName::OrSymbol
|
|
67
63
|
).returns(T.attached_class)
|
|
68
64
|
end
|
|
69
65
|
def self.new(
|
|
@@ -84,13 +80,12 @@ module Lithic
|
|
|
84
80
|
sig do
|
|
85
81
|
override.returns(
|
|
86
82
|
{
|
|
87
|
-
payment_account_info:
|
|
88
|
-
Lithic::DigitalWalletTokenMetadata::PaymentAccountInfo,
|
|
83
|
+
payment_account_info: Lithic::TokenMetadata::PaymentAccountInfo,
|
|
89
84
|
status: String,
|
|
90
85
|
payment_app_instance_id: T.nilable(String),
|
|
91
86
|
token_requestor_id: String,
|
|
92
87
|
token_requestor_name:
|
|
93
|
-
Lithic::
|
|
88
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
94
89
|
}
|
|
95
90
|
)
|
|
96
91
|
end
|
|
@@ -101,7 +96,7 @@ module Lithic
|
|
|
101
96
|
OrHash =
|
|
102
97
|
T.type_alias do
|
|
103
98
|
T.any(
|
|
104
|
-
Lithic::
|
|
99
|
+
Lithic::TokenMetadata::PaymentAccountInfo,
|
|
105
100
|
Lithic::Internal::AnyHash
|
|
106
101
|
)
|
|
107
102
|
end
|
|
@@ -109,16 +104,14 @@ module Lithic
|
|
|
109
104
|
# Additional information that can be used to identify the account holder, such as
|
|
110
105
|
# name, address, etc
|
|
111
106
|
sig do
|
|
112
|
-
returns(
|
|
113
|
-
Lithic::DigitalWalletTokenMetadata::PaymentAccountInfo::AccountHolderData
|
|
114
|
-
)
|
|
107
|
+
returns(Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData)
|
|
115
108
|
end
|
|
116
109
|
attr_reader :account_holder_data
|
|
117
110
|
|
|
118
111
|
sig do
|
|
119
112
|
params(
|
|
120
113
|
account_holder_data:
|
|
121
|
-
Lithic::
|
|
114
|
+
Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData::OrHash
|
|
122
115
|
).void
|
|
123
116
|
end
|
|
124
117
|
attr_writer :account_holder_data
|
|
@@ -140,7 +133,7 @@ module Lithic
|
|
|
140
133
|
sig do
|
|
141
134
|
params(
|
|
142
135
|
account_holder_data:
|
|
143
|
-
Lithic::
|
|
136
|
+
Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData::OrHash,
|
|
144
137
|
pan_unique_reference: T.nilable(String),
|
|
145
138
|
payment_account_reference: T.nilable(String),
|
|
146
139
|
token_unique_reference: T.nilable(String)
|
|
@@ -164,7 +157,7 @@ module Lithic
|
|
|
164
157
|
override.returns(
|
|
165
158
|
{
|
|
166
159
|
account_holder_data:
|
|
167
|
-
Lithic::
|
|
160
|
+
Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData,
|
|
168
161
|
pan_unique_reference: T.nilable(String),
|
|
169
162
|
payment_account_reference: T.nilable(String),
|
|
170
163
|
token_unique_reference: T.nilable(String)
|
|
@@ -178,7 +171,7 @@ module Lithic
|
|
|
178
171
|
OrHash =
|
|
179
172
|
T.type_alias do
|
|
180
173
|
T.any(
|
|
181
|
-
Lithic::
|
|
174
|
+
Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData,
|
|
182
175
|
Lithic::Internal::AnyHash
|
|
183
176
|
)
|
|
184
177
|
end
|
|
@@ -212,74 +205,74 @@ module Lithic
|
|
|
212
205
|
|
|
213
206
|
TaggedSymbol =
|
|
214
207
|
T.type_alias do
|
|
215
|
-
T.all(
|
|
216
|
-
Symbol,
|
|
217
|
-
Lithic::DigitalWalletTokenMetadata::TokenRequestorName
|
|
218
|
-
)
|
|
208
|
+
T.all(Symbol, Lithic::TokenMetadata::TokenRequestorName)
|
|
219
209
|
end
|
|
220
210
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
221
211
|
|
|
222
212
|
AMAZON_ONE =
|
|
223
213
|
T.let(
|
|
224
214
|
:AMAZON_ONE,
|
|
225
|
-
Lithic::
|
|
215
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
226
216
|
)
|
|
227
217
|
ANDROID_PAY =
|
|
228
218
|
T.let(
|
|
229
219
|
:ANDROID_PAY,
|
|
230
|
-
Lithic::
|
|
220
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
231
221
|
)
|
|
232
222
|
APPLE_PAY =
|
|
233
223
|
T.let(
|
|
234
224
|
:APPLE_PAY,
|
|
235
|
-
Lithic::
|
|
225
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
236
226
|
)
|
|
237
227
|
FACEBOOK =
|
|
238
228
|
T.let(
|
|
239
229
|
:FACEBOOK,
|
|
240
|
-
Lithic::
|
|
230
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
241
231
|
)
|
|
242
232
|
FITBIT_PAY =
|
|
243
233
|
T.let(
|
|
244
234
|
:FITBIT_PAY,
|
|
245
|
-
Lithic::
|
|
235
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
246
236
|
)
|
|
247
237
|
GARMIN_PAY =
|
|
248
238
|
T.let(
|
|
249
239
|
:GARMIN_PAY,
|
|
250
|
-
Lithic::
|
|
240
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
241
|
+
)
|
|
242
|
+
GOOGLE_PAY =
|
|
243
|
+
T.let(
|
|
244
|
+
:GOOGLE_PAY,
|
|
245
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
251
246
|
)
|
|
252
247
|
MICROSOFT_PAY =
|
|
253
248
|
T.let(
|
|
254
249
|
:MICROSOFT_PAY,
|
|
255
|
-
Lithic::
|
|
250
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
256
251
|
)
|
|
257
252
|
NETFLIX =
|
|
258
253
|
T.let(
|
|
259
254
|
:NETFLIX,
|
|
260
|
-
Lithic::
|
|
255
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
261
256
|
)
|
|
262
257
|
SAMSUNG_PAY =
|
|
263
258
|
T.let(
|
|
264
259
|
:SAMSUNG_PAY,
|
|
265
|
-
Lithic::
|
|
260
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
266
261
|
)
|
|
267
262
|
UNKNOWN =
|
|
268
263
|
T.let(
|
|
269
264
|
:UNKNOWN,
|
|
270
|
-
Lithic::
|
|
265
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
271
266
|
)
|
|
272
267
|
VISA_CHECKOUT =
|
|
273
268
|
T.let(
|
|
274
269
|
:VISA_CHECKOUT,
|
|
275
|
-
Lithic::
|
|
270
|
+
Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol
|
|
276
271
|
)
|
|
277
272
|
|
|
278
273
|
sig do
|
|
279
274
|
override.returns(
|
|
280
|
-
T::Array[
|
|
281
|
-
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::TaggedSymbol
|
|
282
|
-
]
|
|
275
|
+
T::Array[Lithic::TokenMetadata::TokenRequestorName::TaggedSymbol]
|
|
283
276
|
)
|
|
284
277
|
end
|
|
285
278
|
def self.values
|