lithic 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +2 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
- data/lib/lithic/models/account_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +119 -44
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
- data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/balance.rb +8 -6
- data/lib/lithic/models/card_authorization.rb +1266 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
- data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
- data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
- data/lib/lithic/models/card_program.rb +2 -2
- data/lib/lithic/models/card_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/event.rb +13 -4
- data/lib/lithic/models/event_list_params.rb +7 -2
- data/lib/lithic/models/event_subscription.rb +7 -2
- data/lib/lithic/models/events/subscription_create_params.rb +7 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +7 -2
- data/lib/lithic/models/external_bank_account.rb +1 -1
- data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
- data/lib/lithic/models/financial_accounts/statement.rb +4 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_event.rb +1 -0
- data/lib/lithic/models/kyb_business_entity.rb +2 -2
- data/lib/lithic/models/parsed_webhook_event.rb +4 -1
- data/lib/lithic/models/settlement_detail.rb +14 -14
- data/lib/lithic/models/signals_response.rb +306 -0
- data/lib/lithic/models/statement_totals.rb +6 -6
- data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
- data/lib/lithic/models/transaction.rb +2 -2
- data/lib/lithic/models/transfer_limits_response.rb +12 -12
- data/lib/lithic/models.rb +14 -0
- data/lib/lithic/resources/accounts.rb +27 -0
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -0
- data/lib/lithic/resources/cards.rb +25 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
- data/rbi/lithic/models/account_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +214 -63
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/balance.rbi +12 -6
- data/rbi/lithic/models/card_authorization.rbi +2540 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
- data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
- data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
- data/rbi/lithic/models/card_program.rbi +3 -6
- data/rbi/lithic/models/card_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/event.rbi +23 -6
- data/rbi/lithic/models/event_list_params.rbi +11 -2
- data/rbi/lithic/models/event_subscription.rbi +11 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
- data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
- data/rbi/lithic/models/financial_event.rbi +2 -0
- data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/settlement_detail.rbi +15 -15
- data/rbi/lithic/models/signals_response.rbi +352 -0
- data/rbi/lithic/models/statement_totals.rbi +9 -18
- data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
- data/rbi/lithic/models/transaction.rbi +3 -3
- data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/accounts.rbi +21 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -0
- data/rbi/lithic/resources/cards.rbi +19 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/webhooks.rbi +4 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
- data/sig/lithic/models/account_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +29 -3
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/balance.rbs +17 -9
- data/sig/lithic/models/card_authorization.rbs +1038 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
- data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
- data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
- data/sig/lithic/models/card_program.rbs +4 -6
- data/sig/lithic/models/card_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
- data/sig/lithic/models/financial_event.rbs +2 -0
- data/sig/lithic/models/kyb_business_entity.rbs +4 -6
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/settlement_detail.rbs +18 -18
- data/sig/lithic/models/signals_response.rbs +170 -0
- data/sig/lithic/models/statement_totals.rbs +12 -18
- data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +4 -8
- data/sig/lithic/models/transfer_limits_response.rbs +24 -36
- data/sig/lithic/models.rbs +14 -0
- data/sig/lithic/resources/accounts.rbs +5 -0
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +29 -2
|
@@ -228,16 +228,14 @@ module Lithic
|
|
|
228
228
|
|
|
229
229
|
# Amount originated towards limit
|
|
230
230
|
sig { returns(T.nilable(Integer)) }
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
sig { params(amount_originated: Integer).void }
|
|
234
|
-
attr_writer :amount_originated
|
|
231
|
+
attr_accessor :amount_originated
|
|
235
232
|
|
|
236
233
|
# Credit limits
|
|
237
234
|
sig do
|
|
238
|
-
params(
|
|
239
|
-
|
|
240
|
-
|
|
235
|
+
params(
|
|
236
|
+
limit: Integer,
|
|
237
|
+
amount_originated: T.nilable(Integer)
|
|
238
|
+
).returns(T.attached_class)
|
|
241
239
|
end
|
|
242
240
|
def self.new(
|
|
243
241
|
# The limit amount
|
|
@@ -248,7 +246,9 @@ module Lithic
|
|
|
248
246
|
end
|
|
249
247
|
|
|
250
248
|
sig do
|
|
251
|
-
override.returns(
|
|
249
|
+
override.returns(
|
|
250
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
251
|
+
)
|
|
252
252
|
end
|
|
253
253
|
def to_hash
|
|
254
254
|
end
|
|
@@ -269,16 +269,14 @@ module Lithic
|
|
|
269
269
|
|
|
270
270
|
# Amount originated towards limit
|
|
271
271
|
sig { returns(T.nilable(Integer)) }
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
sig { params(amount_originated: Integer).void }
|
|
275
|
-
attr_writer :amount_originated
|
|
272
|
+
attr_accessor :amount_originated
|
|
276
273
|
|
|
277
274
|
# Debit limits
|
|
278
275
|
sig do
|
|
279
|
-
params(
|
|
280
|
-
|
|
281
|
-
|
|
276
|
+
params(
|
|
277
|
+
limit: Integer,
|
|
278
|
+
amount_originated: T.nilable(Integer)
|
|
279
|
+
).returns(T.attached_class)
|
|
282
280
|
end
|
|
283
281
|
def self.new(
|
|
284
282
|
# The limit amount
|
|
@@ -289,7 +287,9 @@ module Lithic
|
|
|
289
287
|
end
|
|
290
288
|
|
|
291
289
|
sig do
|
|
292
|
-
override.returns(
|
|
290
|
+
override.returns(
|
|
291
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
292
|
+
)
|
|
293
293
|
end
|
|
294
294
|
def to_hash
|
|
295
295
|
end
|
|
@@ -377,16 +377,14 @@ module Lithic
|
|
|
377
377
|
|
|
378
378
|
# Amount originated towards limit
|
|
379
379
|
sig { returns(T.nilable(Integer)) }
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
sig { params(amount_originated: Integer).void }
|
|
383
|
-
attr_writer :amount_originated
|
|
380
|
+
attr_accessor :amount_originated
|
|
384
381
|
|
|
385
382
|
# Credit limits
|
|
386
383
|
sig do
|
|
387
|
-
params(
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
params(
|
|
385
|
+
limit: Integer,
|
|
386
|
+
amount_originated: T.nilable(Integer)
|
|
387
|
+
).returns(T.attached_class)
|
|
390
388
|
end
|
|
391
389
|
def self.new(
|
|
392
390
|
# The limit amount
|
|
@@ -397,7 +395,9 @@ module Lithic
|
|
|
397
395
|
end
|
|
398
396
|
|
|
399
397
|
sig do
|
|
400
|
-
override.returns(
|
|
398
|
+
override.returns(
|
|
399
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
400
|
+
)
|
|
401
401
|
end
|
|
402
402
|
def to_hash
|
|
403
403
|
end
|
|
@@ -418,16 +418,14 @@ module Lithic
|
|
|
418
418
|
|
|
419
419
|
# Amount originated towards limit
|
|
420
420
|
sig { returns(T.nilable(Integer)) }
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
sig { params(amount_originated: Integer).void }
|
|
424
|
-
attr_writer :amount_originated
|
|
421
|
+
attr_accessor :amount_originated
|
|
425
422
|
|
|
426
423
|
# Debit limits
|
|
427
424
|
sig do
|
|
428
|
-
params(
|
|
429
|
-
|
|
430
|
-
|
|
425
|
+
params(
|
|
426
|
+
limit: Integer,
|
|
427
|
+
amount_originated: T.nilable(Integer)
|
|
428
|
+
).returns(T.attached_class)
|
|
431
429
|
end
|
|
432
430
|
def self.new(
|
|
433
431
|
# The limit amount
|
|
@@ -438,7 +436,9 @@ module Lithic
|
|
|
438
436
|
end
|
|
439
437
|
|
|
440
438
|
sig do
|
|
441
|
-
override.returns(
|
|
439
|
+
override.returns(
|
|
440
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
441
|
+
)
|
|
442
442
|
end
|
|
443
443
|
def to_hash
|
|
444
444
|
end
|
|
@@ -531,16 +531,14 @@ module Lithic
|
|
|
531
531
|
|
|
532
532
|
# Amount originated towards limit
|
|
533
533
|
sig { returns(T.nilable(Integer)) }
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
sig { params(amount_originated: Integer).void }
|
|
537
|
-
attr_writer :amount_originated
|
|
534
|
+
attr_accessor :amount_originated
|
|
538
535
|
|
|
539
536
|
# Credit limits
|
|
540
537
|
sig do
|
|
541
|
-
params(
|
|
542
|
-
|
|
543
|
-
|
|
538
|
+
params(
|
|
539
|
+
limit: Integer,
|
|
540
|
+
amount_originated: T.nilable(Integer)
|
|
541
|
+
).returns(T.attached_class)
|
|
544
542
|
end
|
|
545
543
|
def self.new(
|
|
546
544
|
# The limit amount
|
|
@@ -551,7 +549,9 @@ module Lithic
|
|
|
551
549
|
end
|
|
552
550
|
|
|
553
551
|
sig do
|
|
554
|
-
override.returns(
|
|
552
|
+
override.returns(
|
|
553
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
554
|
+
)
|
|
555
555
|
end
|
|
556
556
|
def to_hash
|
|
557
557
|
end
|
|
@@ -572,16 +572,14 @@ module Lithic
|
|
|
572
572
|
|
|
573
573
|
# Amount originated towards limit
|
|
574
574
|
sig { returns(T.nilable(Integer)) }
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
sig { params(amount_originated: Integer).void }
|
|
578
|
-
attr_writer :amount_originated
|
|
575
|
+
attr_accessor :amount_originated
|
|
579
576
|
|
|
580
577
|
# Debit limits
|
|
581
578
|
sig do
|
|
582
|
-
params(
|
|
583
|
-
|
|
584
|
-
|
|
579
|
+
params(
|
|
580
|
+
limit: Integer,
|
|
581
|
+
amount_originated: T.nilable(Integer)
|
|
582
|
+
).returns(T.attached_class)
|
|
585
583
|
end
|
|
586
584
|
def self.new(
|
|
587
585
|
# The limit amount
|
|
@@ -592,7 +590,9 @@ module Lithic
|
|
|
592
590
|
end
|
|
593
591
|
|
|
594
592
|
sig do
|
|
595
|
-
override.returns(
|
|
593
|
+
override.returns(
|
|
594
|
+
{ limit: Integer, amount_originated: T.nilable(Integer) }
|
|
595
|
+
)
|
|
596
596
|
end
|
|
597
597
|
def to_hash
|
|
598
598
|
end
|
data/rbi/lithic/models.rbi
CHANGED
|
@@ -53,6 +53,8 @@ module Lithic
|
|
|
53
53
|
|
|
54
54
|
AccountRetrieveParams = Lithic::Models::AccountRetrieveParams
|
|
55
55
|
|
|
56
|
+
AccountRetrieveSignalsParams = Lithic::Models::AccountRetrieveSignalsParams
|
|
57
|
+
|
|
56
58
|
AccountRetrieveSpendLimitsParams =
|
|
57
59
|
Lithic::Models::AccountRetrieveSpendLimitsParams
|
|
58
60
|
|
|
@@ -105,12 +107,20 @@ module Lithic
|
|
|
105
107
|
|
|
106
108
|
Card = Lithic::Models::Card
|
|
107
109
|
|
|
110
|
+
CardAuthorization = Lithic::Models::CardAuthorization
|
|
111
|
+
|
|
108
112
|
CardAuthorizationApprovalRequestWebhookEvent =
|
|
109
113
|
Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
|
|
110
114
|
|
|
115
|
+
CardAuthorizationChallengeResponseParams =
|
|
116
|
+
Lithic::Models::CardAuthorizationChallengeResponseParams
|
|
117
|
+
|
|
111
118
|
CardAuthorizationChallengeResponseWebhookEvent =
|
|
112
119
|
Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
|
|
113
120
|
|
|
121
|
+
CardAuthorizationChallengeWebhookEvent =
|
|
122
|
+
Lithic::Models::CardAuthorizationChallengeWebhookEvent
|
|
123
|
+
|
|
114
124
|
CardBulkOrder = Lithic::Models::CardBulkOrder
|
|
115
125
|
|
|
116
126
|
CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
|
|
@@ -153,6 +163,8 @@ module Lithic
|
|
|
153
163
|
|
|
154
164
|
CardRetrieveParams = Lithic::Models::CardRetrieveParams
|
|
155
165
|
|
|
166
|
+
CardRetrieveSignalsParams = Lithic::Models::CardRetrieveSignalsParams
|
|
167
|
+
|
|
156
168
|
CardRetrieveSpendLimitsParams = Lithic::Models::CardRetrieveSpendLimitsParams
|
|
157
169
|
|
|
158
170
|
Cards = Lithic::Models::Cards
|
|
@@ -277,6 +289,9 @@ module Lithic
|
|
|
277
289
|
|
|
278
290
|
ExternalBankAccountListParams = Lithic::Models::ExternalBankAccountListParams
|
|
279
291
|
|
|
292
|
+
ExternalBankAccountPauseParams =
|
|
293
|
+
Lithic::Models::ExternalBankAccountPauseParams
|
|
294
|
+
|
|
280
295
|
ExternalBankAccountRetrieveParams =
|
|
281
296
|
Lithic::Models::ExternalBankAccountRetrieveParams
|
|
282
297
|
|
|
@@ -501,6 +516,8 @@ module Lithic
|
|
|
501
516
|
|
|
502
517
|
ShippingAddress = Lithic::Models::ShippingAddress
|
|
503
518
|
|
|
519
|
+
SignalsResponse = Lithic::Models::SignalsResponse
|
|
520
|
+
|
|
504
521
|
SpendLimitDuration = Lithic::Models::SpendLimitDuration
|
|
505
522
|
|
|
506
523
|
StatementsCreatedWebhookEvent = Lithic::Models::StatementsCreatedWebhookEvent
|
|
@@ -123,6 +123,27 @@ module Lithic
|
|
|
123
123
|
)
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
# Returns behavioral feature state derived from an account's transaction history.
|
|
127
|
+
#
|
|
128
|
+
# These signals expose the same data used by behavioral rule attributes (e.g.
|
|
129
|
+
# `AMOUNT_Z_SCORE` with `scope: ACCOUNT`, `IS_NEW_COUNTRY` with `scope: ACCOUNT`)
|
|
130
|
+
# and custom code `TRANSACTION_HISTORY_SIGNALS` features, allowing clients to
|
|
131
|
+
# inspect feature values before writing rules and debug rule behavior.
|
|
132
|
+
#
|
|
133
|
+
# Note: 3DS fields are not available at the account scope and will be null.
|
|
134
|
+
sig do
|
|
135
|
+
params(
|
|
136
|
+
account_token: String,
|
|
137
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
138
|
+
).returns(Lithic::SignalsResponse)
|
|
139
|
+
end
|
|
140
|
+
def retrieve_signals(
|
|
141
|
+
# The token of the account to fetch signals for.
|
|
142
|
+
account_token,
|
|
143
|
+
request_options: {}
|
|
144
|
+
)
|
|
145
|
+
end
|
|
146
|
+
|
|
126
147
|
# Get an Account's available spend limits, which is based on the spend limit
|
|
127
148
|
# configured on the Account and the amount already spent over the spend limit's
|
|
128
149
|
# duration. For example, if the Account has a daily spend limit of $1000
|
|
@@ -123,7 +123,8 @@ module Lithic
|
|
|
123
123
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
124
124
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
125
125
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
126
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
126
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
127
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
127
128
|
)
|
|
128
129
|
),
|
|
129
130
|
request_options: Lithic::RequestOptions::OrHash
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class CardAuthorizations
|
|
6
|
+
# Card program's response to Authorization Challenge. Programs that have
|
|
7
|
+
# Authorization Challenges configured as Out of Band receive a
|
|
8
|
+
# [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge)
|
|
9
|
+
# webhook when an authorization attempt triggers a challenge. The card program
|
|
10
|
+
# should respond using this endpoint after the cardholder completes the challenge.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
event_token: String,
|
|
14
|
+
response:
|
|
15
|
+
Lithic::CardAuthorizationChallengeResponseParams::Response::OrSymbol,
|
|
16
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
17
|
+
).void
|
|
18
|
+
end
|
|
19
|
+
def challenge_response(
|
|
20
|
+
# Globally unique identifier for the authorization event that triggered the
|
|
21
|
+
# challenge
|
|
22
|
+
event_token,
|
|
23
|
+
# Whether the cardholder has approved or declined the issued challenge
|
|
24
|
+
response:,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @api private
|
|
30
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
31
|
+
def self.new(client:)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -590,6 +590,25 @@ module Lithic
|
|
|
590
590
|
)
|
|
591
591
|
end
|
|
592
592
|
|
|
593
|
+
# Returns behavioral feature state derived from a card's transaction history.
|
|
594
|
+
#
|
|
595
|
+
# These signals expose the same data used by behavioral rule attributes (e.g.
|
|
596
|
+
# `AMOUNT_Z_SCORE` with `scope: CARD`, `IS_NEW_COUNTRY` with `scope: CARD`) and
|
|
597
|
+
# custom code `TRANSACTION_HISTORY_SIGNALS` features, allowing clients to inspect
|
|
598
|
+
# feature values before writing rules and debug rule behavior.
|
|
599
|
+
sig do
|
|
600
|
+
params(
|
|
601
|
+
card_token: String,
|
|
602
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
603
|
+
).returns(Lithic::SignalsResponse)
|
|
604
|
+
end
|
|
605
|
+
def retrieve_signals(
|
|
606
|
+
# The token of the card to fetch signals for.
|
|
607
|
+
card_token,
|
|
608
|
+
request_options: {}
|
|
609
|
+
)
|
|
610
|
+
end
|
|
611
|
+
|
|
593
612
|
# Get a Card's available spend limit, which is based on the spend limit configured
|
|
594
613
|
# on the Card and the amount already spent over the spend limit's duration. For
|
|
595
614
|
# example, if the Card has a monthly spend limit of $1000 configured, and has
|
|
@@ -116,6 +116,16 @@ module Lithic
|
|
|
116
116
|
)
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
# Pause an external bank account
|
|
120
|
+
sig do
|
|
121
|
+
params(
|
|
122
|
+
external_bank_account_token: String,
|
|
123
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
124
|
+
).returns(Lithic::ExternalBankAccount)
|
|
125
|
+
end
|
|
126
|
+
def pause(external_bank_account_token, request_options: {})
|
|
127
|
+
end
|
|
128
|
+
|
|
119
129
|
# Retry external bank account micro deposit verification.
|
|
120
130
|
sig do
|
|
121
131
|
params(
|
|
@@ -17,6 +17,7 @@ module Lithic
|
|
|
17
17
|
Lithic::AccountHolderVerificationWebhookEvent,
|
|
18
18
|
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
19
19
|
Lithic::CardAuthorizationApprovalRequestWebhookEvent,
|
|
20
|
+
Lithic::CardAuthorizationChallengeWebhookEvent,
|
|
20
21
|
Lithic::CardAuthorizationChallengeResponseWebhookEvent,
|
|
21
22
|
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
22
23
|
Lithic::BalanceUpdatedWebhookEvent,
|
|
@@ -81,7 +82,9 @@ module Lithic
|
|
|
81
82
|
)
|
|
82
83
|
end
|
|
83
84
|
|
|
84
|
-
sig
|
|
85
|
+
sig do
|
|
86
|
+
params(payload: String).returns(Lithic::ParsedWebhookEvent::Variants)
|
|
87
|
+
end
|
|
85
88
|
def parse_unsafe(payload)
|
|
86
89
|
end
|
|
87
90
|
|
data/sig/lithic/client.rbs
CHANGED
|
@@ -31,6 +31,8 @@ module Lithic
|
|
|
31
31
|
|
|
32
32
|
attr_reader cards: Lithic::Resources::Cards
|
|
33
33
|
|
|
34
|
+
attr_reader card_authorizations: Lithic::Resources::CardAuthorizations
|
|
35
|
+
|
|
34
36
|
attr_reader card_bulk_orders: Lithic::Resources::CardBulkOrders
|
|
35
37
|
|
|
36
38
|
attr_reader balances: Lithic::Resources::Balances
|
|
@@ -11,9 +11,9 @@ module Lithic
|
|
|
11
11
|
created: Time,
|
|
12
12
|
email: String,
|
|
13
13
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
14
|
-
external_id: String
|
|
14
|
+
external_id: String?,
|
|
15
15
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
16
|
-
naics_code: String
|
|
16
|
+
naics_code: String?,
|
|
17
17
|
nature_of_business: String,
|
|
18
18
|
phone_number: String,
|
|
19
19
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -63,9 +63,7 @@ module Lithic
|
|
|
63
63
|
|
|
64
64
|
attr_accessor exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def external_id=: (String) -> String
|
|
66
|
+
attr_accessor external_id: String?
|
|
69
67
|
|
|
70
68
|
attr_reader individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual?
|
|
71
69
|
|
|
@@ -73,9 +71,7 @@ module Lithic
|
|
|
73
71
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
74
72
|
) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
def naics_code=: (String) -> String
|
|
74
|
+
attr_accessor naics_code: String?
|
|
79
75
|
|
|
80
76
|
attr_reader nature_of_business: String?
|
|
81
77
|
|
|
@@ -129,9 +125,9 @@ module Lithic
|
|
|
129
125
|
?created: Time,
|
|
130
126
|
?email: String,
|
|
131
127
|
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
132
|
-
?external_id: String
|
|
128
|
+
?external_id: String?,
|
|
133
129
|
?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
134
|
-
?naics_code: String
|
|
130
|
+
?naics_code: String?,
|
|
135
131
|
?nature_of_business: String,
|
|
136
132
|
?phone_number: String,
|
|
137
133
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -152,9 +148,9 @@ module Lithic
|
|
|
152
148
|
created: Time,
|
|
153
149
|
email: String,
|
|
154
150
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
155
|
-
external_id: String
|
|
151
|
+
external_id: String?,
|
|
156
152
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
157
|
-
naics_code: String
|
|
153
|
+
naics_code: String?,
|
|
158
154
|
nature_of_business: String,
|
|
159
155
|
phone_number: String,
|
|
160
156
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type account_retrieve_signals_params =
|
|
4
|
+
{ account_token: String } & Lithic::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class AccountRetrieveSignalsParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor account_token: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
account_token: String,
|
|
14
|
+
?request_options: Lithic::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
account_token: String,
|
|
19
|
+
request_options: Lithic::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -128,6 +128,7 @@ module Lithic
|
|
|
128
128
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
129
129
|
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
130
130
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
131
|
+
| Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
131
132
|
|
|
132
133
|
module Parameters
|
|
133
134
|
extend Lithic::Internal::Type::Union
|
|
@@ -177,6 +178,7 @@ module Lithic
|
|
|
177
178
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
178
179
|
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
179
180
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
181
|
+
| Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
180
182
|
|
|
181
183
|
module Parameters
|
|
182
184
|
extend Lithic::Internal::Type::Union
|
|
@@ -44,6 +44,7 @@ module Lithic
|
|
|
44
44
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
45
45
|
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
46
46
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
47
|
+
| Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
47
48
|
|
|
48
49
|
module Parameters
|
|
49
50
|
extend Lithic::Internal::Type::Union
|
|
@@ -106,6 +106,8 @@ module Lithic
|
|
|
106
106
|
| :DISTINCT_COUNTRY_COUNT
|
|
107
107
|
| :IS_NEW_MERCHANT
|
|
108
108
|
| :THREE_DS_SUCCESS_RATE
|
|
109
|
+
| :TRAVEL_SPEED
|
|
110
|
+
| :DISTANCE_FROM_LAST_TRANSACTION
|
|
109
111
|
|
|
110
112
|
module Attribute
|
|
111
113
|
extend Lithic::Internal::Type::Enum
|
|
@@ -147,6 +149,8 @@ module Lithic
|
|
|
147
149
|
DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
|
|
148
150
|
IS_NEW_MERCHANT: :IS_NEW_MERCHANT
|
|
149
151
|
THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
|
|
152
|
+
TRAVEL_SPEED: :TRAVEL_SPEED
|
|
153
|
+
DISTANCE_FROM_LAST_TRANSACTION: :DISTANCE_FROM_LAST_TRANSACTION
|
|
150
154
|
|
|
151
155
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
|
|
152
156
|
end
|
|
@@ -154,7 +158,8 @@ module Lithic
|
|
|
154
158
|
type parameters =
|
|
155
159
|
{
|
|
156
160
|
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
157
|
-
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
161
|
+
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
162
|
+
unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
158
163
|
}
|
|
159
164
|
|
|
160
165
|
class Parameters < Lithic::Internal::Type::BaseModel
|
|
@@ -170,14 +175,22 @@ module Lithic
|
|
|
170
175
|
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
171
176
|
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
172
177
|
|
|
178
|
+
attr_reader unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit?
|
|
179
|
+
|
|
180
|
+
def unit=: (
|
|
181
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
182
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
183
|
+
|
|
173
184
|
def initialize: (
|
|
174
185
|
?interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
175
|
-
?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
186
|
+
?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
187
|
+
?unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
176
188
|
) -> void
|
|
177
189
|
|
|
178
190
|
def to_hash: -> {
|
|
179
191
|
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
180
|
-
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
192
|
+
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
193
|
+
unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
|
|
@@ -204,6 +217,19 @@ module Lithic
|
|
|
204
217
|
|
|
205
218
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope]
|
|
206
219
|
end
|
|
220
|
+
|
|
221
|
+
type unit = :MPH | :KPH | :MILES | :KILOMETERS
|
|
222
|
+
|
|
223
|
+
module Unit
|
|
224
|
+
extend Lithic::Internal::Type::Enum
|
|
225
|
+
|
|
226
|
+
MPH: :MPH
|
|
227
|
+
KPH: :KPH
|
|
228
|
+
MILES: :MILES
|
|
229
|
+
KILOMETERS: :KILOMETERS
|
|
230
|
+
|
|
231
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit]
|
|
232
|
+
end
|
|
207
233
|
end
|
|
208
234
|
end
|
|
209
235
|
end
|