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,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class AuthRulesBacktestReportCreatedWebhookEvent < Lithic::Models::AuthRules::V2::BacktestResults
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
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: :"auth_rules.backtest_report.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,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class BalanceUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::BalanceUpdatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T::Array[Lithic::FinancialAccountBalance]) }
|
|
12
|
+
attr_accessor :data
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
data: T::Array[Lithic::FinancialAccountBalance::OrHash],
|
|
21
|
+
event_type: Symbol
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
data:,
|
|
26
|
+
# The type of event that occurred.
|
|
27
|
+
event_type: :"balance.updated"
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{
|
|
34
|
+
data: T::Array[Lithic::FinancialAccountBalance],
|
|
35
|
+
event_type: Symbol
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class BookTransferTransactionCreatedWebhookEvent < Lithic::Models::BookTransferResponse
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::BookTransferTransactionCreatedWebhookEvent,
|
|
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
|
+
# Book transfer 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: :"book_transfer_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 BookTransferTransactionUpdatedWebhookEvent < Lithic::Models::BookTransferResponse
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
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
|
+
# Book transfer 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: :"book_transfer_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,35 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardConvertedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardConvertedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the card that was created.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :card_token
|
|
14
|
+
|
|
15
|
+
# The type of event that occurred.
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :event_type
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(card_token: String, event_type: Symbol).returns(T.attached_class)
|
|
21
|
+
end
|
|
22
|
+
def self.new(
|
|
23
|
+
# The token of the card that was created.
|
|
24
|
+
card_token:,
|
|
25
|
+
# The type of event that occurred.
|
|
26
|
+
event_type: :"card.converted"
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig { override.returns({ card_token: String, event_type: Symbol }) }
|
|
31
|
+
def to_hash
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardCreatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the card that was created.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :card_token
|
|
14
|
+
|
|
15
|
+
# The type of event that occurred.
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :event_type
|
|
18
|
+
|
|
19
|
+
# The token of the card that was replaced, if the new card is a replacement card.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :replacement_for
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
card_token: String,
|
|
26
|
+
replacement_for: T.nilable(String),
|
|
27
|
+
event_type: Symbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# The token of the card that was created.
|
|
32
|
+
card_token:,
|
|
33
|
+
# The token of the card that was replaced, if the new card is a replacement card.
|
|
34
|
+
replacement_for: nil,
|
|
35
|
+
# The type of event that occurred.
|
|
36
|
+
event_type: :"card.created"
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
card_token: String,
|
|
44
|
+
event_type: Symbol,
|
|
45
|
+
replacement_for: T.nilable(String)
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardReissuedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardReissuedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The type of event that occurred.
|
|
12
|
+
sig { returns(Symbol) }
|
|
13
|
+
attr_accessor :event_type
|
|
14
|
+
|
|
15
|
+
# The token of the card that was reissued.
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_reader :card_token
|
|
18
|
+
|
|
19
|
+
sig { params(card_token: String).void }
|
|
20
|
+
attr_writer :card_token
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(card_token: String, event_type: Symbol).returns(T.attached_class)
|
|
24
|
+
end
|
|
25
|
+
def self.new(
|
|
26
|
+
# The token of the card that was reissued.
|
|
27
|
+
card_token: nil,
|
|
28
|
+
# The type of event that occurred.
|
|
29
|
+
event_type: :"card.reissued"
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { override.returns({ event_type: Symbol, card_token: String }) }
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardRenewedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardRenewedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The type of event that occurred.
|
|
12
|
+
sig { returns(Symbol) }
|
|
13
|
+
attr_accessor :event_type
|
|
14
|
+
|
|
15
|
+
# The token of the card that was renewed.
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_reader :card_token
|
|
18
|
+
|
|
19
|
+
sig { params(card_token: String).void }
|
|
20
|
+
attr_writer :card_token
|
|
21
|
+
|
|
22
|
+
# The new expiration month of the card.
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :exp_month
|
|
25
|
+
|
|
26
|
+
sig { params(exp_month: String).void }
|
|
27
|
+
attr_writer :exp_month
|
|
28
|
+
|
|
29
|
+
# The new expiration year of the card.
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_reader :exp_year
|
|
32
|
+
|
|
33
|
+
sig { params(exp_year: String).void }
|
|
34
|
+
attr_writer :exp_year
|
|
35
|
+
|
|
36
|
+
# The previous expiration month of the card.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_reader :previous_exp_month
|
|
39
|
+
|
|
40
|
+
sig { params(previous_exp_month: String).void }
|
|
41
|
+
attr_writer :previous_exp_month
|
|
42
|
+
|
|
43
|
+
# The previous expiration year of the card.
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_reader :previous_exp_year
|
|
46
|
+
|
|
47
|
+
sig { params(previous_exp_year: String).void }
|
|
48
|
+
attr_writer :previous_exp_year
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
card_token: String,
|
|
53
|
+
exp_month: String,
|
|
54
|
+
exp_year: String,
|
|
55
|
+
previous_exp_month: String,
|
|
56
|
+
previous_exp_year: String,
|
|
57
|
+
event_type: Symbol
|
|
58
|
+
).returns(T.attached_class)
|
|
59
|
+
end
|
|
60
|
+
def self.new(
|
|
61
|
+
# The token of the card that was renewed.
|
|
62
|
+
card_token: nil,
|
|
63
|
+
# The new expiration month of the card.
|
|
64
|
+
exp_month: nil,
|
|
65
|
+
# The new expiration year of the card.
|
|
66
|
+
exp_year: nil,
|
|
67
|
+
# The previous expiration month of the card.
|
|
68
|
+
previous_exp_month: nil,
|
|
69
|
+
# The previous expiration year of the card.
|
|
70
|
+
previous_exp_year: nil,
|
|
71
|
+
# The type of event that occurred.
|
|
72
|
+
event_type: :"card.renewed"
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
override.returns(
|
|
78
|
+
{
|
|
79
|
+
event_type: Symbol,
|
|
80
|
+
card_token: String,
|
|
81
|
+
exp_month: String,
|
|
82
|
+
exp_year: String,
|
|
83
|
+
previous_exp_month: String,
|
|
84
|
+
previous_exp_year: String
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def to_hash
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardShippedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardShippedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the bulk order associated with this card shipment, if applicable.
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_accessor :bulk_order_token
|
|
14
|
+
|
|
15
|
+
# The token of the card that was shipped.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :card_token
|
|
18
|
+
|
|
19
|
+
# The type of event that occurred.
|
|
20
|
+
sig { returns(Symbol) }
|
|
21
|
+
attr_accessor :event_type
|
|
22
|
+
|
|
23
|
+
# The specific shipping method used to ship the card.
|
|
24
|
+
sig do
|
|
25
|
+
returns(Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol)
|
|
26
|
+
end
|
|
27
|
+
attr_accessor :shipping_method
|
|
28
|
+
|
|
29
|
+
# The tracking number of the shipment.
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_accessor :tracking_number
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
bulk_order_token: T.nilable(String),
|
|
36
|
+
card_token: String,
|
|
37
|
+
shipping_method:
|
|
38
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::OrSymbol,
|
|
39
|
+
tracking_number: T.nilable(String),
|
|
40
|
+
event_type: Symbol
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# The token of the bulk order associated with this card shipment, if applicable.
|
|
45
|
+
bulk_order_token:,
|
|
46
|
+
# The token of the card that was shipped.
|
|
47
|
+
card_token:,
|
|
48
|
+
# The specific shipping method used to ship the card.
|
|
49
|
+
shipping_method:,
|
|
50
|
+
# The tracking number of the shipment.
|
|
51
|
+
tracking_number:,
|
|
52
|
+
# The type of event that occurred.
|
|
53
|
+
event_type: :"card.shipped"
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
sig do
|
|
58
|
+
override.returns(
|
|
59
|
+
{
|
|
60
|
+
bulk_order_token: T.nilable(String),
|
|
61
|
+
card_token: String,
|
|
62
|
+
event_type: Symbol,
|
|
63
|
+
shipping_method:
|
|
64
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol,
|
|
65
|
+
tracking_number: T.nilable(String)
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# The specific shipping method used to ship the card.
|
|
73
|
+
module ShippingMethod
|
|
74
|
+
extend Lithic::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
TaggedSymbol =
|
|
77
|
+
T.type_alias do
|
|
78
|
+
T.all(Symbol, Lithic::CardShippedWebhookEvent::ShippingMethod)
|
|
79
|
+
end
|
|
80
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
81
|
+
|
|
82
|
+
EX_US_EXPEDITED_WITH_TRACKING =
|
|
83
|
+
T.let(
|
|
84
|
+
:"Ex-US expedited with tracking",
|
|
85
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
86
|
+
)
|
|
87
|
+
EX_US_STANDARD_WITH_TRACKING =
|
|
88
|
+
T.let(
|
|
89
|
+
:"Ex-US standard with tracking",
|
|
90
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
91
|
+
)
|
|
92
|
+
EX_US_STANDARD_WITHOUT_TRACKING =
|
|
93
|
+
T.let(
|
|
94
|
+
:"Ex-US standard without tracking",
|
|
95
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
96
|
+
)
|
|
97
|
+
FED_EX_2_DAYS =
|
|
98
|
+
T.let(
|
|
99
|
+
:"FedEx 2 days",
|
|
100
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
101
|
+
)
|
|
102
|
+
FED_EX_EXPRESS =
|
|
103
|
+
T.let(
|
|
104
|
+
:"FedEx express",
|
|
105
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
FED_EX_OVERNIGHT =
|
|
108
|
+
T.let(
|
|
109
|
+
:"FedEx overnight",
|
|
110
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
USPS_PRIORITY =
|
|
113
|
+
T.let(
|
|
114
|
+
:"USPS priority",
|
|
115
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
USPS_WITH_TRACKING =
|
|
118
|
+
T.let(
|
|
119
|
+
:"USPS with tracking",
|
|
120
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
USPS_WITHOUT_TRACKING_ENVELOPE =
|
|
123
|
+
T.let(
|
|
124
|
+
:"USPS without tracking envelope",
|
|
125
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
126
|
+
)
|
|
127
|
+
USPS_WITHOUT_TRACKING_ENVELOPE_NON_MACHINE =
|
|
128
|
+
T.let(
|
|
129
|
+
:"USPS without tracking envelope non-machine",
|
|
130
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
131
|
+
)
|
|
132
|
+
USPS_WITHOUT_TRACKING_FLAT =
|
|
133
|
+
T.let(
|
|
134
|
+
:"USPS without tracking flat",
|
|
135
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
override.returns(
|
|
140
|
+
T::Array[
|
|
141
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
142
|
+
]
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
def self.values
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardTransactionEnhancedDataCreatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
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: :"card_transaction.enhanced_data.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,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardTransactionEnhancedDataUpdatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
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: :"card_transaction.enhanced_data.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 CardTransactionUpdatedWebhookEvent < Lithic::Models::Transaction
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
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: :"card_transaction.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -40,7 +40,7 @@ module Lithic
|
|
|
40
40
|
sig do
|
|
41
41
|
returns(
|
|
42
42
|
T.nilable(
|
|
43
|
-
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::
|
|
43
|
+
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::TaggedSymbol
|
|
44
44
|
)
|
|
45
45
|
)
|
|
46
46
|
end
|
|
@@ -90,7 +90,7 @@ module Lithic
|
|
|
90
90
|
payment_app_instance_id: T.nilable(String),
|
|
91
91
|
token_requestor_id: String,
|
|
92
92
|
token_requestor_name:
|
|
93
|
-
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::
|
|
93
|
+
Lithic::DigitalWalletTokenMetadata::TokenRequestorName::TaggedSymbol
|
|
94
94
|
}
|
|
95
95
|
)
|
|
96
96
|
end
|