lithic 0.13.0 → 0.15.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 +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +2 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
- data/lib/lithic/models/account_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +119 -44
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
- data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/balance.rb +8 -6
- data/lib/lithic/models/card_authorization.rb +1266 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
- data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
- data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
- data/lib/lithic/models/card_program.rb +2 -2
- data/lib/lithic/models/card_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/event.rb +13 -4
- data/lib/lithic/models/event_list_params.rb +7 -2
- data/lib/lithic/models/event_subscription.rb +7 -2
- data/lib/lithic/models/events/subscription_create_params.rb +7 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +7 -2
- data/lib/lithic/models/external_bank_account.rb +1 -1
- data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
- data/lib/lithic/models/financial_accounts/statement.rb +4 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_event.rb +1 -0
- data/lib/lithic/models/kyb_business_entity.rb +2 -2
- data/lib/lithic/models/parsed_webhook_event.rb +4 -1
- data/lib/lithic/models/settlement_detail.rb +14 -14
- data/lib/lithic/models/signals_response.rb +306 -0
- data/lib/lithic/models/statement_totals.rb +6 -6
- data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
- data/lib/lithic/models/transaction.rb +2 -2
- data/lib/lithic/models/transfer_limits_response.rb +12 -12
- data/lib/lithic/models.rb +14 -0
- data/lib/lithic/resources/accounts.rb +27 -0
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -0
- data/lib/lithic/resources/cards.rb +25 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
- data/rbi/lithic/models/account_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +214 -63
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/balance.rbi +12 -6
- data/rbi/lithic/models/card_authorization.rbi +2540 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
- data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
- data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
- data/rbi/lithic/models/card_program.rbi +3 -6
- data/rbi/lithic/models/card_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/event.rbi +23 -6
- data/rbi/lithic/models/event_list_params.rbi +11 -2
- data/rbi/lithic/models/event_subscription.rbi +11 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
- data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
- data/rbi/lithic/models/financial_event.rbi +2 -0
- data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/settlement_detail.rbi +15 -15
- data/rbi/lithic/models/signals_response.rbi +352 -0
- data/rbi/lithic/models/statement_totals.rbi +9 -18
- data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
- data/rbi/lithic/models/transaction.rbi +3 -3
- data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/accounts.rbi +21 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -0
- data/rbi/lithic/resources/cards.rbi +19 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/webhooks.rbi +4 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
- data/sig/lithic/models/account_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +29 -3
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/balance.rbs +17 -9
- data/sig/lithic/models/card_authorization.rbs +1038 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
- data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
- data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
- data/sig/lithic/models/card_program.rbs +4 -6
- data/sig/lithic/models/card_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
- data/sig/lithic/models/financial_event.rbs +2 -0
- data/sig/lithic/models/kyb_business_entity.rbs +4 -6
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/settlement_detail.rbs +18 -18
- data/sig/lithic/models/signals_response.rbs +170 -0
- data/sig/lithic/models/statement_totals.rbs +12 -18
- data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +4 -8
- data/sig/lithic/models/transfer_limits_response.rbs +24 -36
- data/sig/lithic/models.rbs +14 -0
- data/sig/lithic/resources/accounts.rbs +5 -0
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +29 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardAuthorizationChallengeResponseParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Lithic::CardAuthorizationChallengeResponseParams,
|
|
13
|
+
Lithic::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :event_token
|
|
19
|
+
|
|
20
|
+
# Whether the cardholder has approved or declined the issued challenge
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::OrSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :response
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
event_token: String,
|
|
31
|
+
response:
|
|
32
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::OrSymbol,
|
|
33
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
event_token:,
|
|
38
|
+
# Whether the cardholder has approved or declined the issued challenge
|
|
39
|
+
response:,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
event_token: String,
|
|
48
|
+
response:
|
|
49
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::OrSymbol,
|
|
50
|
+
request_options: Lithic::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
def to_hash
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Whether the cardholder has approved or declined the issued challenge
|
|
58
|
+
module Response
|
|
59
|
+
extend Lithic::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
TaggedSymbol =
|
|
62
|
+
T.type_alias do
|
|
63
|
+
T.all(
|
|
64
|
+
Symbol,
|
|
65
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
69
|
+
|
|
70
|
+
APPROVE =
|
|
71
|
+
T.let(
|
|
72
|
+
:APPROVE,
|
|
73
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::TaggedSymbol
|
|
74
|
+
)
|
|
75
|
+
DECLINE =
|
|
76
|
+
T.let(
|
|
77
|
+
:DECLINE,
|
|
78
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::TaggedSymbol
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
T::Array[
|
|
84
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::TaggedSymbol
|
|
85
|
+
]
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def self.values
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -124,6 +124,11 @@ module Lithic
|
|
|
124
124
|
:SMS,
|
|
125
125
|
Lithic::CardAuthorizationChallengeResponseWebhookEvent::ChallengeMethod::TaggedSymbol
|
|
126
126
|
)
|
|
127
|
+
OUT_OF_BAND =
|
|
128
|
+
T.let(
|
|
129
|
+
:OUT_OF_BAND,
|
|
130
|
+
Lithic::CardAuthorizationChallengeResponseWebhookEvent::ChallengeMethod::TaggedSymbol
|
|
131
|
+
)
|
|
127
132
|
|
|
128
133
|
sig do
|
|
129
134
|
override.returns(
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardAuthorizationChallengeWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardAuthorizationChallengeWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The authorization that triggered the challenge
|
|
15
|
+
sig { returns(Lithic::CardAuthorization) }
|
|
16
|
+
attr_reader :authorization
|
|
17
|
+
|
|
18
|
+
sig { params(authorization: Lithic::CardAuthorization::OrHash).void }
|
|
19
|
+
attr_writer :authorization
|
|
20
|
+
|
|
21
|
+
# Details of the Authorization Challenge issued during card authorization
|
|
22
|
+
sig { returns(Lithic::CardAuthorizationChallengeWebhookEvent::Challenge) }
|
|
23
|
+
attr_reader :challenge
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
challenge:
|
|
28
|
+
Lithic::CardAuthorizationChallengeWebhookEvent::Challenge::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :challenge
|
|
32
|
+
|
|
33
|
+
# The type of event that occurred.
|
|
34
|
+
sig { returns(Symbol) }
|
|
35
|
+
attr_accessor :event_type
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
authorization: Lithic::CardAuthorization::OrHash,
|
|
40
|
+
challenge:
|
|
41
|
+
Lithic::CardAuthorizationChallengeWebhookEvent::Challenge::OrHash,
|
|
42
|
+
event_type: Symbol
|
|
43
|
+
).returns(T.attached_class)
|
|
44
|
+
end
|
|
45
|
+
def self.new(
|
|
46
|
+
# The authorization that triggered the challenge
|
|
47
|
+
authorization:,
|
|
48
|
+
# Details of the Authorization Challenge issued during card authorization
|
|
49
|
+
challenge:,
|
|
50
|
+
# The type of event that occurred.
|
|
51
|
+
event_type: :"card_authorization.challenge"
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
authorization: Lithic::CardAuthorization,
|
|
59
|
+
challenge:
|
|
60
|
+
Lithic::CardAuthorizationChallengeWebhookEvent::Challenge,
|
|
61
|
+
event_type: Symbol
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def to_hash
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
class Challenge < Lithic::Internal::Type::BaseModel
|
|
69
|
+
OrHash =
|
|
70
|
+
T.type_alias do
|
|
71
|
+
T.any(
|
|
72
|
+
Lithic::CardAuthorizationChallengeWebhookEvent::Challenge,
|
|
73
|
+
Lithic::Internal::AnyHash
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Globally unique identifier for the event that triggered the challenge. Use this
|
|
78
|
+
# token when calling the challenge response endpoint
|
|
79
|
+
sig { returns(String) }
|
|
80
|
+
attr_accessor :event_token
|
|
81
|
+
|
|
82
|
+
# ISO-8601 time at which the challenge expires
|
|
83
|
+
sig { returns(Time) }
|
|
84
|
+
attr_accessor :expiry_time
|
|
85
|
+
|
|
86
|
+
# ISO-8601 time at which the challenge was issued
|
|
87
|
+
sig { returns(Time) }
|
|
88
|
+
attr_accessor :start_time
|
|
89
|
+
|
|
90
|
+
# Details of the Authorization Challenge issued during card authorization
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
event_token: String,
|
|
94
|
+
expiry_time: Time,
|
|
95
|
+
start_time: Time
|
|
96
|
+
).returns(T.attached_class)
|
|
97
|
+
end
|
|
98
|
+
def self.new(
|
|
99
|
+
# Globally unique identifier for the event that triggered the challenge. Use this
|
|
100
|
+
# token when calling the challenge response endpoint
|
|
101
|
+
event_token:,
|
|
102
|
+
# ISO-8601 time at which the challenge expires
|
|
103
|
+
expiry_time:,
|
|
104
|
+
# ISO-8601 time at which the challenge was issued
|
|
105
|
+
start_time:
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
override.returns(
|
|
111
|
+
{ event_token: String, expiry_time: Time, start_time: Time }
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def to_hash
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
@@ -33,10 +33,7 @@ module Lithic
|
|
|
33
33
|
|
|
34
34
|
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
|
35
35
|
sig { returns(T.nilable(String)) }
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
sig { params(cardholder_currency: String).void }
|
|
39
|
-
attr_writer :cardholder_currency
|
|
36
|
+
attr_accessor :cardholder_currency
|
|
40
37
|
|
|
41
38
|
# List of 3-character alphabetic ISO 4217 codes for the currencies that the card
|
|
42
39
|
# program supports for settlement.
|
|
@@ -54,7 +51,7 @@ module Lithic
|
|
|
54
51
|
name: String,
|
|
55
52
|
pan_range_end: String,
|
|
56
53
|
pan_range_start: String,
|
|
57
|
-
cardholder_currency: String,
|
|
54
|
+
cardholder_currency: T.nilable(String),
|
|
58
55
|
settlement_currencies: T::Array[String]
|
|
59
56
|
).returns(T.attached_class)
|
|
60
57
|
end
|
|
@@ -89,7 +86,7 @@ module Lithic
|
|
|
89
86
|
name: String,
|
|
90
87
|
pan_range_end: String,
|
|
91
88
|
pan_range_start: String,
|
|
92
|
-
cardholder_currency: String,
|
|
89
|
+
cardholder_currency: T.nilable(String),
|
|
93
90
|
settlement_currencies: T::Array[String]
|
|
94
91
|
}
|
|
95
92
|
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardRetrieveSignalsParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Lithic::CardRetrieveSignalsParams, Lithic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :card_token
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
card_token: String,
|
|
20
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
22
|
+
end
|
|
23
|
+
def self.new(card_token:, request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ card_token: String, request_options: Lithic::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
def to_hash
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/rbi/lithic/models/event.rbi
CHANGED
|
@@ -29,8 +29,12 @@ module Lithic
|
|
|
29
29
|
# created.
|
|
30
30
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
31
31
|
# updated.
|
|
32
|
-
# - card_authorization.
|
|
33
|
-
#
|
|
32
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
33
|
+
# during card authorization. The card program should issue its own challenge to
|
|
34
|
+
# the cardholder and then respond via
|
|
35
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
36
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
37
|
+
# challenge during card authorization.
|
|
34
38
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
35
39
|
# data is processed for a transaction event.
|
|
36
40
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -151,8 +155,12 @@ module Lithic
|
|
|
151
155
|
# created.
|
|
152
156
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
153
157
|
# updated.
|
|
154
|
-
# - card_authorization.
|
|
155
|
-
#
|
|
158
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
159
|
+
# during card authorization. The card program should issue its own challenge to
|
|
160
|
+
# the cardholder and then respond via
|
|
161
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
162
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
163
|
+
# challenge during card authorization.
|
|
156
164
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
157
165
|
# data is processed for a transaction event.
|
|
158
166
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -269,8 +277,12 @@ module Lithic
|
|
|
269
277
|
# created.
|
|
270
278
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
271
279
|
# updated.
|
|
272
|
-
# - card_authorization.
|
|
273
|
-
#
|
|
280
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
281
|
+
# during card authorization. The card program should issue its own challenge to
|
|
282
|
+
# the cardholder and then respond via
|
|
283
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
284
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
285
|
+
# challenge during card authorization.
|
|
274
286
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
275
287
|
# data is processed for a transaction event.
|
|
276
288
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -398,6 +410,11 @@ module Lithic
|
|
|
398
410
|
:"book_transfer_transaction.updated",
|
|
399
411
|
Lithic::Event::EventType::TaggedSymbol
|
|
400
412
|
)
|
|
413
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
414
|
+
T.let(
|
|
415
|
+
:"card_authorization.challenge",
|
|
416
|
+
Lithic::Event::EventType::TaggedSymbol
|
|
417
|
+
)
|
|
401
418
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
402
419
|
T.let(
|
|
403
420
|
:"card_authorization.challenge_response",
|
|
@@ -138,8 +138,12 @@ module Lithic
|
|
|
138
138
|
# created.
|
|
139
139
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
140
140
|
# updated.
|
|
141
|
-
# - card_authorization.
|
|
142
|
-
#
|
|
141
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
142
|
+
# during card authorization. The card program should issue its own challenge to
|
|
143
|
+
# the cardholder and then respond via
|
|
144
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
145
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
146
|
+
# challenge during card authorization.
|
|
143
147
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
144
148
|
# data is processed for a transaction event.
|
|
145
149
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -271,6 +275,11 @@ module Lithic
|
|
|
271
275
|
:"book_transfer_transaction.updated",
|
|
272
276
|
Lithic::EventListParams::EventType::TaggedSymbol
|
|
273
277
|
)
|
|
278
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
279
|
+
T.let(
|
|
280
|
+
:"card_authorization.challenge",
|
|
281
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
282
|
+
)
|
|
274
283
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
275
284
|
T.let(
|
|
276
285
|
:"card_authorization.challenge_response",
|
|
@@ -86,8 +86,12 @@ module Lithic
|
|
|
86
86
|
# created.
|
|
87
87
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
88
88
|
# updated.
|
|
89
|
-
# - card_authorization.
|
|
90
|
-
#
|
|
89
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
90
|
+
# during card authorization. The card program should issue its own challenge to
|
|
91
|
+
# the cardholder and then respond via
|
|
92
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
93
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
94
|
+
# challenge during card authorization.
|
|
91
95
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
92
96
|
# data is processed for a transaction event.
|
|
93
97
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -219,6 +223,11 @@ module Lithic
|
|
|
219
223
|
:"book_transfer_transaction.updated",
|
|
220
224
|
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
221
225
|
)
|
|
226
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
227
|
+
T.let(
|
|
228
|
+
:"card_authorization.challenge",
|
|
229
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
230
|
+
)
|
|
222
231
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
223
232
|
T.let(
|
|
224
233
|
:"card_authorization.challenge_response",
|
|
@@ -113,8 +113,12 @@ module Lithic
|
|
|
113
113
|
# created.
|
|
114
114
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
115
115
|
# updated.
|
|
116
|
-
# - card_authorization.
|
|
117
|
-
#
|
|
116
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
117
|
+
# during card authorization. The card program should issue its own challenge to
|
|
118
|
+
# the cardholder and then respond via
|
|
119
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
120
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
121
|
+
# challenge during card authorization.
|
|
118
122
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
119
123
|
# data is processed for a transaction event.
|
|
120
124
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -248,6 +252,11 @@ module Lithic
|
|
|
248
252
|
:"book_transfer_transaction.updated",
|
|
249
253
|
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
250
254
|
)
|
|
255
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
256
|
+
T.let(
|
|
257
|
+
:"card_authorization.challenge",
|
|
258
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
259
|
+
)
|
|
251
260
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
252
261
|
T.let(
|
|
253
262
|
:"card_authorization.challenge_response",
|
|
@@ -118,6 +118,11 @@ module Lithic
|
|
|
118
118
|
:"book_transfer_transaction.updated",
|
|
119
119
|
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
120
120
|
)
|
|
121
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
122
|
+
T.let(
|
|
123
|
+
:"card_authorization.challenge",
|
|
124
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
125
|
+
)
|
|
121
126
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
122
127
|
T.let(
|
|
123
128
|
:"card_authorization.challenge_response",
|
|
@@ -119,8 +119,12 @@ module Lithic
|
|
|
119
119
|
# created.
|
|
120
120
|
# - book_transfer_transaction.updated: Occurs when a book transfer transaction is
|
|
121
121
|
# updated.
|
|
122
|
-
# - card_authorization.
|
|
123
|
-
#
|
|
122
|
+
# - card_authorization.challenge: Occurs when an Out of Band challenge is issued
|
|
123
|
+
# during card authorization. The card program should issue its own challenge to
|
|
124
|
+
# the cardholder and then respond via
|
|
125
|
+
# [/v1/card_authorizations/{event_token}/challenge_response](https://docs.lithic.com/reference/respondtoauthorizationchallenge).
|
|
126
|
+
# - card_authorization.challenge_response: Occurs when a cardholder responds to a
|
|
127
|
+
# challenge during card authorization.
|
|
124
128
|
# - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
|
|
125
129
|
# data is processed for a transaction event.
|
|
126
130
|
# - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
|
|
@@ -254,6 +258,11 @@ module Lithic
|
|
|
254
258
|
:"book_transfer_transaction.updated",
|
|
255
259
|
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
256
260
|
)
|
|
261
|
+
CARD_AUTHORIZATION_CHALLENGE =
|
|
262
|
+
T.let(
|
|
263
|
+
:"card_authorization.challenge",
|
|
264
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
265
|
+
)
|
|
257
266
|
CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
|
|
258
267
|
T.let(
|
|
259
268
|
:"card_authorization.challenge_response",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ExternalBankAccountPauseParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Lithic::ExternalBankAccountPauseParams,
|
|
13
|
+
Lithic::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :external_bank_account_token
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
external_bank_account_token: String,
|
|
23
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(external_bank_account_token:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
external_bank_account_token: String,
|
|
33
|
+
request_options: Lithic::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -124,17 +124,11 @@ module Lithic
|
|
|
124
124
|
|
|
125
125
|
# Date when the next payment is due
|
|
126
126
|
sig { returns(T.nilable(Date)) }
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
sig { params(next_payment_due_date: Date).void }
|
|
130
|
-
attr_writer :next_payment_due_date
|
|
127
|
+
attr_accessor :next_payment_due_date
|
|
131
128
|
|
|
132
129
|
# Date when the next billing period will end
|
|
133
130
|
sig { returns(T.nilable(Date)) }
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
sig { params(next_statement_end_date: Date).void }
|
|
137
|
-
attr_writer :next_statement_end_date
|
|
131
|
+
attr_accessor :next_statement_end_date
|
|
138
132
|
|
|
139
133
|
# Details on number and size of payments to pay off balance
|
|
140
134
|
sig do
|
|
@@ -186,8 +180,8 @@ module Lithic
|
|
|
186
180
|
T.nilable(
|
|
187
181
|
Lithic::FinancialAccounts::Statement::InterestDetails::OrHash
|
|
188
182
|
),
|
|
189
|
-
next_payment_due_date: Date,
|
|
190
|
-
next_statement_end_date: Date,
|
|
183
|
+
next_payment_due_date: T.nilable(Date),
|
|
184
|
+
next_statement_end_date: T.nilable(Date),
|
|
191
185
|
payoff_details:
|
|
192
186
|
T.nilable(
|
|
193
187
|
Lithic::FinancialAccounts::Statement::PayoffDetails::OrHash
|
|
@@ -266,8 +260,8 @@ module Lithic
|
|
|
266
260
|
T.nilable(
|
|
267
261
|
Lithic::FinancialAccounts::Statement::InterestDetails
|
|
268
262
|
),
|
|
269
|
-
next_payment_due_date: Date,
|
|
270
|
-
next_statement_end_date: Date,
|
|
263
|
+
next_payment_due_date: T.nilable(Date),
|
|
264
|
+
next_statement_end_date: T.nilable(Date),
|
|
271
265
|
payoff_details:
|
|
272
266
|
T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails),
|
|
273
267
|
statement_totals: Lithic::StatementTotals
|
|
@@ -114,10 +114,7 @@ module Lithic
|
|
|
114
114
|
|
|
115
115
|
# Globally unique identifier for a card
|
|
116
116
|
sig { returns(T.nilable(String)) }
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
sig { params(card_token: String).void }
|
|
120
|
-
attr_writer :card_token
|
|
117
|
+
attr_accessor :card_token
|
|
121
118
|
|
|
122
119
|
sig { returns(T.nilable(String)) }
|
|
123
120
|
attr_reader :descriptor
|
|
@@ -147,7 +144,7 @@ module Lithic
|
|
|
147
144
|
financial_account_token: String,
|
|
148
145
|
financial_transaction_event_token: String,
|
|
149
146
|
financial_transaction_token: String,
|
|
150
|
-
card_token: String,
|
|
147
|
+
card_token: T.nilable(String),
|
|
151
148
|
descriptor: String,
|
|
152
149
|
event_subtype: T.nilable(String),
|
|
153
150
|
loan_tape_date: T.nilable(Date)
|
|
@@ -201,7 +198,7 @@ module Lithic
|
|
|
201
198
|
financial_account_token: String,
|
|
202
199
|
financial_transaction_event_token: String,
|
|
203
200
|
financial_transaction_token: String,
|
|
204
|
-
card_token: String,
|
|
201
|
+
card_token: T.nilable(String),
|
|
205
202
|
descriptor: String,
|
|
206
203
|
event_subtype: T.nilable(String),
|
|
207
204
|
loan_tape_date: T.nilable(Date)
|
|
@@ -795,6 +792,11 @@ module Lithic
|
|
|
795
792
|
:MONTHLY_REVERSAL,
|
|
796
793
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
797
794
|
)
|
|
795
|
+
ACCOUNT_TO_ACCOUNT =
|
|
796
|
+
T.let(
|
|
797
|
+
:ACCOUNT_TO_ACCOUNT,
|
|
798
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
799
|
+
)
|
|
798
800
|
|
|
799
801
|
sig do
|
|
800
802
|
override.returns(
|
|
@@ -457,6 +457,8 @@ module Lithic
|
|
|
457
457
|
MONTHLY = T.let(:MONTHLY, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
458
458
|
MONTHLY_REVERSAL =
|
|
459
459
|
T.let(:MONTHLY_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
460
|
+
ACCOUNT_TO_ACCOUNT =
|
|
461
|
+
T.let(:ACCOUNT_TO_ACCOUNT, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
460
462
|
|
|
461
463
|
sig do
|
|
462
464
|
override.returns(T::Array[Lithic::FinancialEvent::Type::TaggedSymbol])
|
|
@@ -41,10 +41,7 @@ module Lithic
|
|
|
41
41
|
|
|
42
42
|
# Parent company name (if applicable).
|
|
43
43
|
sig { returns(T.nilable(String)) }
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
sig { params(parent_company: String).void }
|
|
47
|
-
attr_writer :parent_company
|
|
44
|
+
attr_accessor :parent_company
|
|
48
45
|
|
|
49
46
|
sig do
|
|
50
47
|
params(
|
|
@@ -53,7 +50,7 @@ module Lithic
|
|
|
53
50
|
legal_business_name: String,
|
|
54
51
|
phone_numbers: T::Array[String],
|
|
55
52
|
dba_business_name: String,
|
|
56
|
-
parent_company: String
|
|
53
|
+
parent_company: T.nilable(String)
|
|
57
54
|
).returns(T.attached_class)
|
|
58
55
|
end
|
|
59
56
|
def self.new(
|
|
@@ -85,7 +82,7 @@ module Lithic
|
|
|
85
82
|
legal_business_name: String,
|
|
86
83
|
phone_numbers: T::Array[String],
|
|
87
84
|
dba_business_name: String,
|
|
88
|
-
parent_company: String
|
|
85
|
+
parent_company: T.nilable(String)
|
|
89
86
|
}
|
|
90
87
|
)
|
|
91
88
|
end
|
|
@@ -16,6 +16,7 @@ module Lithic
|
|
|
16
16
|
Lithic::AccountHolderVerificationWebhookEvent,
|
|
17
17
|
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
18
18
|
Lithic::CardAuthorizationApprovalRequestWebhookEvent,
|
|
19
|
+
Lithic::CardAuthorizationChallengeWebhookEvent,
|
|
19
20
|
Lithic::CardAuthorizationChallengeResponseWebhookEvent,
|
|
20
21
|
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
21
22
|
Lithic::BalanceUpdatedWebhookEvent,
|