lithic 0.1.0 → 0.2.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 +13 -0
- data/README.md +36 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/errors.rb +15 -0
- data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
- data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
- data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
- data/lib/lithic/models/asa_request_webhook_event.rb +1010 -0
- data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
- data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
- data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
- data/lib/lithic/models/card_created_webhook_event.rb +32 -0
- data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
- data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
- data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
- data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
- data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/parsed_webhook_event.rb +818 -0
- data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
- data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
- data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
- data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
- data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/webhook_parsed_params.rb +14 -0
- data/lib/lithic/models.rb +120 -0
- data/lib/lithic/resources/webhooks.rb +87 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +74 -17
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
- data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
- data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
- data/rbi/lithic/models/asa_request_webhook_event.rbi +2229 -0
- data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
- data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
- data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
- data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
- data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
- data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
- data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction.rbi +15 -10
- data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
- data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
- data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
- data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
- data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
- data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
- data/rbi/lithic/models.rbi +155 -0
- data/rbi/lithic/resources/webhooks.rbi +158 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
- data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
- data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
- data/sig/lithic/models/asa_request_webhook_event.rbs +881 -0
- data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
- data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
- data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
- data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
- data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
- data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
- data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
- data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
- data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
- data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
- data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
- data/sig/lithic/models.rbs +112 -0
- data/sig/lithic/resources/webhooks.rbs +135 -0
- metadata +173 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentTransactionCreatedWebhookEvent < Lithic::Models::Payment
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::PaymentTransactionCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
# Payment transaction
|
|
19
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(
|
|
21
|
+
# The type of event that occurred.
|
|
22
|
+
event_type: :"payment_transaction.created"
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentTransactionUpdatedWebhookEvent < Lithic::Models::Payment
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::PaymentTransactionUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
# Payment transaction
|
|
19
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(
|
|
21
|
+
# The type of event that occurred.
|
|
22
|
+
event_type: :"payment_transaction.updated"
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class SettlementReportUpdatedWebhookEvent < Lithic::Models::SettlementReport
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::SettlementReportUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"settlement_report.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class StatementsCreatedWebhookEvent < Lithic::Models::FinancialAccounts::Statement
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::StatementsCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"statements.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ThreeDSAuthenticationChallengeWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Represents a 3DS authentication
|
|
15
|
+
sig { returns(Lithic::ThreeDSAuthentication) }
|
|
16
|
+
attr_reader :authentication_object
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
authentication_object: Lithic::ThreeDSAuthentication::OrHash
|
|
21
|
+
).void
|
|
22
|
+
end
|
|
23
|
+
attr_writer :authentication_object
|
|
24
|
+
|
|
25
|
+
# Represents a challenge object for 3DS authentication
|
|
26
|
+
sig do
|
|
27
|
+
returns(Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge)
|
|
28
|
+
end
|
|
29
|
+
attr_reader :challenge
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
challenge:
|
|
34
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::OrHash
|
|
35
|
+
).void
|
|
36
|
+
end
|
|
37
|
+
attr_writer :challenge
|
|
38
|
+
|
|
39
|
+
sig { returns(Symbol) }
|
|
40
|
+
attr_accessor :event_type
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
authentication_object: Lithic::ThreeDSAuthentication::OrHash,
|
|
45
|
+
challenge:
|
|
46
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::OrHash,
|
|
47
|
+
event_type: Symbol
|
|
48
|
+
).returns(T.attached_class)
|
|
49
|
+
end
|
|
50
|
+
def self.new(
|
|
51
|
+
# Represents a 3DS authentication
|
|
52
|
+
authentication_object:,
|
|
53
|
+
# Represents a challenge object for 3DS authentication
|
|
54
|
+
challenge:,
|
|
55
|
+
event_type: :"three_ds_authentication.challenge"
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
override.returns(
|
|
61
|
+
{
|
|
62
|
+
authentication_object: Lithic::ThreeDSAuthentication,
|
|
63
|
+
challenge:
|
|
64
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
|
|
65
|
+
event_type: Symbol
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class Challenge < Lithic::Internal::Type::BaseModel
|
|
73
|
+
OrHash =
|
|
74
|
+
T.type_alias do
|
|
75
|
+
T.any(
|
|
76
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
|
|
77
|
+
Lithic::Internal::AnyHash
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# The type of challenge method issued to the cardholder
|
|
82
|
+
sig do
|
|
83
|
+
returns(
|
|
84
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType::TaggedSymbol
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
attr_accessor :challenge_method_type
|
|
88
|
+
|
|
89
|
+
# ISO-8601 time at which the challenge expires
|
|
90
|
+
sig { returns(Time) }
|
|
91
|
+
attr_accessor :expiry_time
|
|
92
|
+
|
|
93
|
+
# ISO-8601 time at which the challenge has started
|
|
94
|
+
sig { returns(Time) }
|
|
95
|
+
attr_accessor :start_time
|
|
96
|
+
|
|
97
|
+
# Fully qualified app URL of the merchant app. This should be used to redirect the
|
|
98
|
+
# cardholder back to the merchant app after completing an app-based challenge.
|
|
99
|
+
# This URL will only be populated if the 3DS Requestor App is provided to the 3DS
|
|
100
|
+
# SDK.
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_accessor :app_requestor_url
|
|
103
|
+
|
|
104
|
+
# Represents a challenge object for 3DS authentication
|
|
105
|
+
sig do
|
|
106
|
+
params(
|
|
107
|
+
challenge_method_type:
|
|
108
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType::OrSymbol,
|
|
109
|
+
expiry_time: Time,
|
|
110
|
+
start_time: Time,
|
|
111
|
+
app_requestor_url: T.nilable(String)
|
|
112
|
+
).returns(T.attached_class)
|
|
113
|
+
end
|
|
114
|
+
def self.new(
|
|
115
|
+
# The type of challenge method issued to the cardholder
|
|
116
|
+
challenge_method_type:,
|
|
117
|
+
# ISO-8601 time at which the challenge expires
|
|
118
|
+
expiry_time:,
|
|
119
|
+
# ISO-8601 time at which the challenge has started
|
|
120
|
+
start_time:,
|
|
121
|
+
# Fully qualified app URL of the merchant app. This should be used to redirect the
|
|
122
|
+
# cardholder back to the merchant app after completing an app-based challenge.
|
|
123
|
+
# This URL will only be populated if the 3DS Requestor App is provided to the 3DS
|
|
124
|
+
# SDK.
|
|
125
|
+
app_requestor_url: nil
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
override.returns(
|
|
131
|
+
{
|
|
132
|
+
challenge_method_type:
|
|
133
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType::TaggedSymbol,
|
|
134
|
+
expiry_time: Time,
|
|
135
|
+
start_time: Time,
|
|
136
|
+
app_requestor_url: T.nilable(String)
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
def to_hash
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# The type of challenge method issued to the cardholder
|
|
144
|
+
module ChallengeMethodType
|
|
145
|
+
extend Lithic::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
TaggedSymbol =
|
|
148
|
+
T.type_alias do
|
|
149
|
+
T.all(
|
|
150
|
+
Symbol,
|
|
151
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
155
|
+
|
|
156
|
+
OUT_OF_BAND =
|
|
157
|
+
T.let(
|
|
158
|
+
:OUT_OF_BAND,
|
|
159
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType::TaggedSymbol
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
sig do
|
|
163
|
+
override.returns(
|
|
164
|
+
T::Array[
|
|
165
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::ChallengeMethodType::TaggedSymbol
|
|
166
|
+
]
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
def self.values
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ThreeDSAuthenticationCreatedWebhookEvent < Lithic::Models::ThreeDSAuthentication
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::ThreeDSAuthenticationCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
# Represents a 3DS authentication
|
|
19
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(
|
|
21
|
+
# The type of event that occurred.
|
|
22
|
+
event_type: :"three_ds_authentication.created"
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ThreeDSAuthenticationUpdatedWebhookEvent < Lithic::Models::ThreeDSAuthentication
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::ThreeDSAuthenticationUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
# Represents a 3DS authentication
|
|
19
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(
|
|
21
|
+
# The type of event that occurred.
|
|
22
|
+
event_type: :"three_ds_authentication.updated"
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|