lithic 0.18.0 → 0.19.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 +48 -0
- data/README.md +1 -1
- data/lib/lithic/internal/type/union.rb +7 -21
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +2 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
- data/lib/lithic/models/book_transfer_create_params.rb +4 -0
- data/lib/lithic/models/book_transfer_list_params.rb +1 -0
- data/lib/lithic/models/book_transfer_response.rb +4 -0
- data/lib/lithic/models/card_authorization.rb +7 -6
- data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
- data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
- data/lib/lithic/models/event.rb +44 -12
- data/lib/lithic/models/event_list_params.rb +23 -6
- data/lib/lithic/models/event_subscription.rb +23 -6
- data/lib/lithic/models/events/subscription_create_params.rb +23 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +23 -6
- data/lib/lithic/models/external_payment_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +7 -0
- data/lib/lithic/models/financial_event.rb +5 -0
- data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
- data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
- data/lib/lithic/models/parsed_webhook_event.rb +5 -1
- data/lib/lithic/models/payment.rb +28 -1
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +120 -43
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
- data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/card_authorizations.rb +1 -1
- data/lib/lithic/resources/cards.rb +5 -0
- data/lib/lithic/resources/external_payments.rb +1 -1
- data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
- data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
- data/lib/lithic/resources/transactions.rb +4 -3
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -1
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
- data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
- data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
- data/rbi/lithic/models/book_transfer_response.rbi +20 -0
- data/rbi/lithic/models/card_authorization.rbi +12 -10
- data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
- data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
- data/rbi/lithic/models/event.rbi +70 -18
- data/rbi/lithic/models/event_list_params.rbi +31 -6
- data/rbi/lithic/models/event_subscription.rbi +31 -6
- data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +35 -0
- data/rbi/lithic/models/financial_event.rbi +22 -0
- data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
- data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
- data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
- data/rbi/lithic/models/payment.rbi +47 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +151 -46
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
- data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
- data/rbi/lithic/models.rbi +5 -0
- data/rbi/lithic/resources/card_authorizations.rbi +1 -1
- data/rbi/lithic/resources/cards.rbi +3 -0
- data/rbi/lithic/resources/external_payments.rbi +1 -1
- data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
- data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +4 -11
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
- data/rbi/lithic/resources/transactions.rbi +8 -6
- data/rbi/lithic/resources/webhooks.rbi +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +4 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
- data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
- data/sig/lithic/models/book_transfer_response.rbs +8 -0
- data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
- data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +14 -0
- data/sig/lithic/models/financial_event.rbs +10 -0
- data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
- data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
- data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
- data/sig/lithic/models/payment.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +93 -34
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
- data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +2 -2
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
- data/sig/lithic/resources/webhooks.rbs +2 -0
- metadata +8 -5
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
|
@@ -28,7 +28,7 @@ module Lithic
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
31
|
-
# minimum value is 10 seconds, and the maximum value is
|
|
31
|
+
# minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
|
|
32
32
|
sig { returns(Integer) }
|
|
33
33
|
attr_accessor :duration
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ module Lithic
|
|
|
40
40
|
end
|
|
41
41
|
def self.new(
|
|
42
42
|
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
43
|
-
# minimum value is 10 seconds, and the maximum value is
|
|
43
|
+
# minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
|
|
44
44
|
duration:,
|
|
45
45
|
type: :CUSTOM
|
|
46
46
|
)
|
|
@@ -197,6 +197,11 @@ module Lithic
|
|
|
197
197
|
:PROGRAM_FUNDING,
|
|
198
198
|
Lithic::BookTransferCreateParams::Category::TaggedSymbol
|
|
199
199
|
)
|
|
200
|
+
PROGRAM_TRANSFER =
|
|
201
|
+
T.let(
|
|
202
|
+
:PROGRAM_TRANSFER,
|
|
203
|
+
Lithic::BookTransferCreateParams::Category::TaggedSymbol
|
|
204
|
+
)
|
|
200
205
|
TRANSFER =
|
|
201
206
|
T.let(
|
|
202
207
|
:TRANSFER,
|
|
@@ -311,6 +316,11 @@ module Lithic
|
|
|
311
316
|
:BILL_PAYMENT,
|
|
312
317
|
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
313
318
|
)
|
|
319
|
+
PAYMENT_FEE =
|
|
320
|
+
T.let(
|
|
321
|
+
:PAYMENT_FEE,
|
|
322
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
323
|
+
)
|
|
314
324
|
CASH_BACK =
|
|
315
325
|
T.let(
|
|
316
326
|
:CASH_BACK,
|
|
@@ -377,6 +387,16 @@ module Lithic
|
|
|
377
387
|
:COLLECTION,
|
|
378
388
|
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
379
389
|
)
|
|
390
|
+
LITHIC_PROGRAM_TRANSFER =
|
|
391
|
+
T.let(
|
|
392
|
+
:LITHIC_PROGRAM_TRANSFER,
|
|
393
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
394
|
+
)
|
|
395
|
+
BANK_PROGRAM_TRANSFER =
|
|
396
|
+
T.let(
|
|
397
|
+
:BANK_PROGRAM_TRANSFER,
|
|
398
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
399
|
+
)
|
|
380
400
|
|
|
381
401
|
sig do
|
|
382
402
|
override.returns(
|
|
@@ -216,6 +216,11 @@ module Lithic
|
|
|
216
216
|
:PROGRAM_FUNDING,
|
|
217
217
|
Lithic::BookTransferListParams::Category::TaggedSymbol
|
|
218
218
|
)
|
|
219
|
+
PROGRAM_TRANSFER =
|
|
220
|
+
T.let(
|
|
221
|
+
:PROGRAM_TRANSFER,
|
|
222
|
+
Lithic::BookTransferListParams::Category::TaggedSymbol
|
|
223
|
+
)
|
|
219
224
|
TRANSFER =
|
|
220
225
|
T.let(
|
|
221
226
|
:TRANSFER,
|
|
@@ -219,6 +219,11 @@ module Lithic
|
|
|
219
219
|
:PROGRAM_FUNDING,
|
|
220
220
|
Lithic::BookTransferResponse::Category::TaggedSymbol
|
|
221
221
|
)
|
|
222
|
+
PROGRAM_TRANSFER =
|
|
223
|
+
T.let(
|
|
224
|
+
:PROGRAM_TRANSFER,
|
|
225
|
+
Lithic::BookTransferResponse::Category::TaggedSymbol
|
|
226
|
+
)
|
|
222
227
|
TRANSFER =
|
|
223
228
|
T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol)
|
|
224
229
|
|
|
@@ -512,6 +517,11 @@ module Lithic
|
|
|
512
517
|
:BILL_PAYMENT,
|
|
513
518
|
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
514
519
|
)
|
|
520
|
+
PAYMENT_FEE =
|
|
521
|
+
T.let(
|
|
522
|
+
:PAYMENT_FEE,
|
|
523
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
524
|
+
)
|
|
515
525
|
CASH_BACK =
|
|
516
526
|
T.let(
|
|
517
527
|
:CASH_BACK,
|
|
@@ -587,6 +597,16 @@ module Lithic
|
|
|
587
597
|
:COLLECTION,
|
|
588
598
|
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
589
599
|
)
|
|
600
|
+
LITHIC_PROGRAM_TRANSFER =
|
|
601
|
+
T.let(
|
|
602
|
+
:LITHIC_PROGRAM_TRANSFER,
|
|
603
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
604
|
+
)
|
|
605
|
+
BANK_PROGRAM_TRANSFER =
|
|
606
|
+
T.let(
|
|
607
|
+
:BANK_PROGRAM_TRANSFER,
|
|
608
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
609
|
+
)
|
|
590
610
|
|
|
591
611
|
sig do
|
|
592
612
|
override.returns(
|
|
@@ -59,12 +59,13 @@ module Lithic
|
|
|
59
59
|
sig { returns(String) }
|
|
60
60
|
attr_accessor :cardholder_currency
|
|
61
61
|
|
|
62
|
-
# The
|
|
63
|
-
#
|
|
64
|
-
#
|
|
62
|
+
# The amount of cash requested by the cardholder, in the cardholder billing
|
|
63
|
+
# currency's smallest unit. For purchase-with-cashback transactions this is the
|
|
64
|
+
# cashback portion only; for ATM transactions this is the full amount. This amount
|
|
65
|
+
# includes all acquirer fees.
|
|
65
66
|
#
|
|
66
|
-
# If no cash
|
|
67
|
-
#
|
|
67
|
+
# If no cash was requested, the value of this field will be 0, and the field will
|
|
68
|
+
# always be present.
|
|
68
69
|
sig { returns(Integer) }
|
|
69
70
|
attr_accessor :cash_amount
|
|
70
71
|
|
|
@@ -328,12 +329,13 @@ module Lithic
|
|
|
328
329
|
# Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's
|
|
329
330
|
# billing currency.
|
|
330
331
|
cardholder_currency:,
|
|
331
|
-
# The
|
|
332
|
-
#
|
|
333
|
-
#
|
|
332
|
+
# The amount of cash requested by the cardholder, in the cardholder billing
|
|
333
|
+
# currency's smallest unit. For purchase-with-cashback transactions this is the
|
|
334
|
+
# cashback portion only; for ATM transactions this is the full amount. This amount
|
|
335
|
+
# includes all acquirer fees.
|
|
334
336
|
#
|
|
335
|
-
# If no cash
|
|
336
|
-
#
|
|
337
|
+
# If no cash was requested, the value of this field will be 0, and the field will
|
|
338
|
+
# always be present.
|
|
337
339
|
cash_amount:,
|
|
338
340
|
# Date and time when the transaction first occurred in UTC.
|
|
339
341
|
created:,
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::EmbedSessionGeneratedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The token of the account associated with the card
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :account_token
|
|
17
|
+
|
|
18
|
+
# The token of the card associated with the embed session
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :card_token
|
|
21
|
+
|
|
22
|
+
# Details about the request that generated the embed session
|
|
23
|
+
sig { returns(Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails) }
|
|
24
|
+
attr_reader :device_details
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
device_details:
|
|
29
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :device_details
|
|
33
|
+
|
|
34
|
+
# The type of event
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :event_type
|
|
37
|
+
|
|
38
|
+
# The identifier shared by webhook events for the same embed session.
|
|
39
|
+
sig { returns(String) }
|
|
40
|
+
attr_accessor :session_id
|
|
41
|
+
|
|
42
|
+
# The type of embed session that was generated
|
|
43
|
+
sig do
|
|
44
|
+
returns(
|
|
45
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
attr_accessor :session_type
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
account_token: String,
|
|
53
|
+
card_token: String,
|
|
54
|
+
device_details:
|
|
55
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash,
|
|
56
|
+
session_id: String,
|
|
57
|
+
session_type:
|
|
58
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::OrSymbol,
|
|
59
|
+
event_type: Symbol
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# The token of the account associated with the card
|
|
64
|
+
account_token:,
|
|
65
|
+
# The token of the card associated with the embed session
|
|
66
|
+
card_token:,
|
|
67
|
+
# Details about the request that generated the embed session
|
|
68
|
+
device_details:,
|
|
69
|
+
# The identifier shared by webhook events for the same embed session.
|
|
70
|
+
session_id:,
|
|
71
|
+
# The type of embed session that was generated
|
|
72
|
+
session_type:,
|
|
73
|
+
# The type of event
|
|
74
|
+
event_type: :"embed.session_generated"
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
override.returns(
|
|
80
|
+
{
|
|
81
|
+
account_token: String,
|
|
82
|
+
card_token: String,
|
|
83
|
+
device_details:
|
|
84
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
|
|
85
|
+
event_type: Symbol,
|
|
86
|
+
session_id: String,
|
|
87
|
+
session_type:
|
|
88
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class DeviceDetails < Lithic::Internal::Type::BaseModel
|
|
96
|
+
OrHash =
|
|
97
|
+
T.type_alias do
|
|
98
|
+
T.any(
|
|
99
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
|
|
100
|
+
Lithic::Internal::AnyHash
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# The IP address recorded for the request that generated the event
|
|
105
|
+
sig { returns(String) }
|
|
106
|
+
attr_accessor :ip_address
|
|
107
|
+
|
|
108
|
+
# Details about the request that generated the embed session
|
|
109
|
+
sig { params(ip_address: String).returns(T.attached_class) }
|
|
110
|
+
def self.new(
|
|
111
|
+
# The IP address recorded for the request that generated the event
|
|
112
|
+
ip_address:
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
sig { override.returns({ ip_address: String }) }
|
|
117
|
+
def to_hash
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# The type of embed session that was generated
|
|
122
|
+
module SessionType
|
|
123
|
+
extend Lithic::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
TaggedSymbol =
|
|
126
|
+
T.type_alias do
|
|
127
|
+
T.all(
|
|
128
|
+
Symbol,
|
|
129
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
133
|
+
|
|
134
|
+
CARD_EMBED =
|
|
135
|
+
T.let(
|
|
136
|
+
:CARD_EMBED,
|
|
137
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
PIN_SETTING_EMBED =
|
|
140
|
+
T.let(
|
|
141
|
+
:PIN_SETTING_EMBED,
|
|
142
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
sig do
|
|
146
|
+
override.returns(
|
|
147
|
+
T::Array[
|
|
148
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
149
|
+
]
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
def self.values
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class EmbedViewedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::EmbedViewedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the account associated with the card
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :account_token
|
|
14
|
+
|
|
15
|
+
# The token of the card whose details were revealed
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :card_token
|
|
18
|
+
|
|
19
|
+
# Details about the request that revealed the card detail
|
|
20
|
+
sig { returns(Lithic::EmbedViewedWebhookEvent::DeviceDetails) }
|
|
21
|
+
attr_reader :device_details
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails::OrHash
|
|
26
|
+
).void
|
|
27
|
+
end
|
|
28
|
+
attr_writer :device_details
|
|
29
|
+
|
|
30
|
+
# The type of card detail that was revealed
|
|
31
|
+
sig { returns(Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol) }
|
|
32
|
+
attr_accessor :embed_type
|
|
33
|
+
|
|
34
|
+
# The type of event
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :event_type
|
|
37
|
+
|
|
38
|
+
# The identifier shared by webhook events for the same embed session.
|
|
39
|
+
sig { returns(String) }
|
|
40
|
+
attr_accessor :session_id
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
account_token: String,
|
|
45
|
+
card_token: String,
|
|
46
|
+
device_details:
|
|
47
|
+
Lithic::EmbedViewedWebhookEvent::DeviceDetails::OrHash,
|
|
48
|
+
embed_type: Lithic::EmbedViewedWebhookEvent::EmbedType::OrSymbol,
|
|
49
|
+
session_id: String,
|
|
50
|
+
event_type: Symbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
# The token of the account associated with the card
|
|
55
|
+
account_token:,
|
|
56
|
+
# The token of the card whose details were revealed
|
|
57
|
+
card_token:,
|
|
58
|
+
# Details about the request that revealed the card detail
|
|
59
|
+
device_details:,
|
|
60
|
+
# The type of card detail that was revealed
|
|
61
|
+
embed_type:,
|
|
62
|
+
# The identifier shared by webhook events for the same embed session.
|
|
63
|
+
session_id:,
|
|
64
|
+
# The type of event
|
|
65
|
+
event_type: :"embed.viewed"
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig do
|
|
70
|
+
override.returns(
|
|
71
|
+
{
|
|
72
|
+
account_token: String,
|
|
73
|
+
card_token: String,
|
|
74
|
+
device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails,
|
|
75
|
+
embed_type:
|
|
76
|
+
Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol,
|
|
77
|
+
event_type: Symbol,
|
|
78
|
+
session_id: String
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
def to_hash
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class DeviceDetails < Lithic::Internal::Type::BaseModel
|
|
86
|
+
OrHash =
|
|
87
|
+
T.type_alias do
|
|
88
|
+
T.any(
|
|
89
|
+
Lithic::EmbedViewedWebhookEvent::DeviceDetails,
|
|
90
|
+
Lithic::Internal::AnyHash
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# The IP address recorded for the request that generated the event
|
|
95
|
+
sig { returns(String) }
|
|
96
|
+
attr_accessor :ip_address
|
|
97
|
+
|
|
98
|
+
# Details about the request that revealed the card detail
|
|
99
|
+
sig { params(ip_address: String).returns(T.attached_class) }
|
|
100
|
+
def self.new(
|
|
101
|
+
# The IP address recorded for the request that generated the event
|
|
102
|
+
ip_address:
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
sig { override.returns({ ip_address: String }) }
|
|
107
|
+
def to_hash
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# The type of card detail that was revealed
|
|
112
|
+
module EmbedType
|
|
113
|
+
extend Lithic::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
TaggedSymbol =
|
|
116
|
+
T.type_alias do
|
|
117
|
+
T.all(Symbol, Lithic::EmbedViewedWebhookEvent::EmbedType)
|
|
118
|
+
end
|
|
119
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
120
|
+
|
|
121
|
+
PAN =
|
|
122
|
+
T.let(:PAN, Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol)
|
|
123
|
+
CVV =
|
|
124
|
+
T.let(:CVV, Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol)
|
|
125
|
+
EXP_MONTH =
|
|
126
|
+
T.let(
|
|
127
|
+
:EXP_MONTH,
|
|
128
|
+
Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol
|
|
129
|
+
)
|
|
130
|
+
EXP_YEAR =
|
|
131
|
+
T.let(
|
|
132
|
+
:EXP_YEAR,
|
|
133
|
+
Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
override.returns(
|
|
138
|
+
T::Array[Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol]
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
def self.values
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
data/rbi/lithic/models/event.rbi
CHANGED
|
@@ -18,7 +18,7 @@ module Lithic
|
|
|
18
18
|
# The type of event that occurred. Possible values:
|
|
19
19
|
#
|
|
20
20
|
# - account_holder_document.updated: Occurs when an account holder's document
|
|
21
|
-
# upload status has been updated
|
|
21
|
+
# upload status has been updated.
|
|
22
22
|
# - account_holder.created: Occurs when a new account_holder is created.
|
|
23
23
|
# - account_holder.updated: Occurs when an account_holder is updated.
|
|
24
24
|
# - account_holder.verification: Occurs when an asynchronous account_holder's
|
|
@@ -82,10 +82,25 @@ module Lithic
|
|
|
82
82
|
# This event will be deprecated in the future. We recommend using
|
|
83
83
|
# `tokenization.updated` instead.
|
|
84
84
|
#
|
|
85
|
-
# - dispute_evidence.upload_failed: Occurs when
|
|
85
|
+
# - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a
|
|
86
|
+
# dispute filed through the Chargebacks API (`/v1/disputes`).
|
|
87
|
+
#
|
|
88
|
+
# This event is not emitted for Managed Disputes.
|
|
89
|
+
#
|
|
86
90
|
# - dispute_transaction.created: Occurs when a new dispute transaction is created
|
|
87
|
-
#
|
|
88
|
-
# -
|
|
91
|
+
# for a Managed Disputes case.
|
|
92
|
+
# - dispute_transaction.updated: Occurs when a dispute transaction for a Managed
|
|
93
|
+
# Disputes case is updated.
|
|
94
|
+
# - dispute.updated: Occurs when a dispute filed through the Chargebacks API
|
|
95
|
+
# (`/v1/disputes`) is created or updated.
|
|
96
|
+
#
|
|
97
|
+
# This event is not emitted for Managed Disputes. Use
|
|
98
|
+
# `dispute_transaction.created` and `dispute_transaction.updated` instead.
|
|
99
|
+
#
|
|
100
|
+
# - embed.session_generated: Occurs when a card embed session is successfully
|
|
101
|
+
# generated.
|
|
102
|
+
# - embed.viewed: Occurs when a card detail is successfully revealed through an
|
|
103
|
+
# embed.
|
|
89
104
|
# - external_bank_account.created: Occurs when an external bank account is
|
|
90
105
|
# created.
|
|
91
106
|
# - external_bank_account.updated: Occurs when an external bank account is
|
|
@@ -107,12 +122,12 @@ module Lithic
|
|
|
107
122
|
# - payment_transaction.updated: Occurs when a payment transaction is updated.
|
|
108
123
|
# - settlement_report.updated: Occurs when a settlement report is created or
|
|
109
124
|
# updated.
|
|
110
|
-
# - statements.created: Occurs when a statement has been created
|
|
125
|
+
# - statements.created: Occurs when a statement has been created.
|
|
111
126
|
# - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
|
|
112
127
|
# event. Upon receiving this request, the Card Program should issue its own
|
|
113
128
|
# challenge to the cardholder. After a cardholder challenge is successfully
|
|
114
129
|
# completed, the Card Program needs to respond back to Lithic by call to
|
|
115
|
-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/
|
|
130
|
+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
|
|
116
131
|
# Then the cardholder must navigate back to the merchant checkout flow to
|
|
117
132
|
# complete the transaction. Some merchants will include an `app_requestor_url`
|
|
118
133
|
# for app-based purchases; Lithic recommends triggering a redirect to that URL
|
|
@@ -153,7 +168,7 @@ module Lithic
|
|
|
153
168
|
# The type of event that occurred. Possible values:
|
|
154
169
|
#
|
|
155
170
|
# - account_holder_document.updated: Occurs when an account holder's document
|
|
156
|
-
# upload status has been updated
|
|
171
|
+
# upload status has been updated.
|
|
157
172
|
# - account_holder.created: Occurs when a new account_holder is created.
|
|
158
173
|
# - account_holder.updated: Occurs when an account_holder is updated.
|
|
159
174
|
# - account_holder.verification: Occurs when an asynchronous account_holder's
|
|
@@ -217,10 +232,25 @@ module Lithic
|
|
|
217
232
|
# This event will be deprecated in the future. We recommend using
|
|
218
233
|
# `tokenization.updated` instead.
|
|
219
234
|
#
|
|
220
|
-
# - dispute_evidence.upload_failed: Occurs when
|
|
235
|
+
# - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a
|
|
236
|
+
# dispute filed through the Chargebacks API (`/v1/disputes`).
|
|
237
|
+
#
|
|
238
|
+
# This event is not emitted for Managed Disputes.
|
|
239
|
+
#
|
|
221
240
|
# - dispute_transaction.created: Occurs when a new dispute transaction is created
|
|
222
|
-
#
|
|
223
|
-
# -
|
|
241
|
+
# for a Managed Disputes case.
|
|
242
|
+
# - dispute_transaction.updated: Occurs when a dispute transaction for a Managed
|
|
243
|
+
# Disputes case is updated.
|
|
244
|
+
# - dispute.updated: Occurs when a dispute filed through the Chargebacks API
|
|
245
|
+
# (`/v1/disputes`) is created or updated.
|
|
246
|
+
#
|
|
247
|
+
# This event is not emitted for Managed Disputes. Use
|
|
248
|
+
# `dispute_transaction.created` and `dispute_transaction.updated` instead.
|
|
249
|
+
#
|
|
250
|
+
# - embed.session_generated: Occurs when a card embed session is successfully
|
|
251
|
+
# generated.
|
|
252
|
+
# - embed.viewed: Occurs when a card detail is successfully revealed through an
|
|
253
|
+
# embed.
|
|
224
254
|
# - external_bank_account.created: Occurs when an external bank account is
|
|
225
255
|
# created.
|
|
226
256
|
# - external_bank_account.updated: Occurs when an external bank account is
|
|
@@ -242,12 +272,12 @@ module Lithic
|
|
|
242
272
|
# - payment_transaction.updated: Occurs when a payment transaction is updated.
|
|
243
273
|
# - settlement_report.updated: Occurs when a settlement report is created or
|
|
244
274
|
# updated.
|
|
245
|
-
# - statements.created: Occurs when a statement has been created
|
|
275
|
+
# - statements.created: Occurs when a statement has been created.
|
|
246
276
|
# - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
|
|
247
277
|
# event. Upon receiving this request, the Card Program should issue its own
|
|
248
278
|
# challenge to the cardholder. After a cardholder challenge is successfully
|
|
249
279
|
# completed, the Card Program needs to respond back to Lithic by call to
|
|
250
|
-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/
|
|
280
|
+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
|
|
251
281
|
# Then the cardholder must navigate back to the merchant checkout flow to
|
|
252
282
|
# complete the transaction. Some merchants will include an `app_requestor_url`
|
|
253
283
|
# for app-based purchases; Lithic recommends triggering a redirect to that URL
|
|
@@ -284,7 +314,7 @@ module Lithic
|
|
|
284
314
|
# The type of event that occurred. Possible values:
|
|
285
315
|
#
|
|
286
316
|
# - account_holder_document.updated: Occurs when an account holder's document
|
|
287
|
-
# upload status has been updated
|
|
317
|
+
# upload status has been updated.
|
|
288
318
|
# - account_holder.created: Occurs when a new account_holder is created.
|
|
289
319
|
# - account_holder.updated: Occurs when an account_holder is updated.
|
|
290
320
|
# - account_holder.verification: Occurs when an asynchronous account_holder's
|
|
@@ -348,10 +378,25 @@ module Lithic
|
|
|
348
378
|
# This event will be deprecated in the future. We recommend using
|
|
349
379
|
# `tokenization.updated` instead.
|
|
350
380
|
#
|
|
351
|
-
# - dispute_evidence.upload_failed: Occurs when
|
|
381
|
+
# - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a
|
|
382
|
+
# dispute filed through the Chargebacks API (`/v1/disputes`).
|
|
383
|
+
#
|
|
384
|
+
# This event is not emitted for Managed Disputes.
|
|
385
|
+
#
|
|
352
386
|
# - dispute_transaction.created: Occurs when a new dispute transaction is created
|
|
353
|
-
#
|
|
354
|
-
# -
|
|
387
|
+
# for a Managed Disputes case.
|
|
388
|
+
# - dispute_transaction.updated: Occurs when a dispute transaction for a Managed
|
|
389
|
+
# Disputes case is updated.
|
|
390
|
+
# - dispute.updated: Occurs when a dispute filed through the Chargebacks API
|
|
391
|
+
# (`/v1/disputes`) is created or updated.
|
|
392
|
+
#
|
|
393
|
+
# This event is not emitted for Managed Disputes. Use
|
|
394
|
+
# `dispute_transaction.created` and `dispute_transaction.updated` instead.
|
|
395
|
+
#
|
|
396
|
+
# - embed.session_generated: Occurs when a card embed session is successfully
|
|
397
|
+
# generated.
|
|
398
|
+
# - embed.viewed: Occurs when a card detail is successfully revealed through an
|
|
399
|
+
# embed.
|
|
355
400
|
# - external_bank_account.created: Occurs when an external bank account is
|
|
356
401
|
# created.
|
|
357
402
|
# - external_bank_account.updated: Occurs when an external bank account is
|
|
@@ -373,12 +418,12 @@ module Lithic
|
|
|
373
418
|
# - payment_transaction.updated: Occurs when a payment transaction is updated.
|
|
374
419
|
# - settlement_report.updated: Occurs when a settlement report is created or
|
|
375
420
|
# updated.
|
|
376
|
-
# - statements.created: Occurs when a statement has been created
|
|
421
|
+
# - statements.created: Occurs when a statement has been created.
|
|
377
422
|
# - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
|
|
378
423
|
# event. Upon receiving this request, the Card Program should issue its own
|
|
379
424
|
# challenge to the cardholder. After a cardholder challenge is successfully
|
|
380
425
|
# completed, the Card Program needs to respond back to Lithic by call to
|
|
381
|
-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/
|
|
426
|
+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
|
|
382
427
|
# Then the cardholder must navigate back to the merchant checkout flow to
|
|
383
428
|
# complete the transaction. Some merchants will include an `app_requestor_url`
|
|
384
429
|
# for app-based purchases; Lithic recommends triggering a redirect to that URL
|
|
@@ -530,6 +575,13 @@ module Lithic
|
|
|
530
575
|
)
|
|
531
576
|
DISPUTE_UPDATED =
|
|
532
577
|
T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol)
|
|
578
|
+
EMBED_SESSION_GENERATED =
|
|
579
|
+
T.let(
|
|
580
|
+
:"embed.session_generated",
|
|
581
|
+
Lithic::Event::EventType::TaggedSymbol
|
|
582
|
+
)
|
|
583
|
+
EMBED_VIEWED =
|
|
584
|
+
T.let(:"embed.viewed", Lithic::Event::EventType::TaggedSymbol)
|
|
533
585
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
|
534
586
|
T.let(
|
|
535
587
|
:"external_bank_account.created",
|