lithic 0.14.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 +26 -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/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 +52 -34
- 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/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/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 +8 -0
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -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 +6 -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/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 +75 -48
- 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/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/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 +11 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -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/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_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/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/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 +8 -0
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +20 -2
|
@@ -14,17 +14,17 @@ module Lithic
|
|
|
14
14
|
|
|
15
15
|
# Globally unique identifier denoting the account that the associated transaction
|
|
16
16
|
# occurred on.
|
|
17
|
-
sig { returns(String) }
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
18
|
attr_accessor :account_token
|
|
19
19
|
|
|
20
20
|
# Globally unique identifier denoting the card program that the associated
|
|
21
21
|
# transaction occurred on.
|
|
22
|
-
sig { returns(String) }
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_accessor :card_program_token
|
|
24
24
|
|
|
25
25
|
# Globally unique identifier denoting the card that the associated transaction
|
|
26
26
|
# occurred on.
|
|
27
|
-
sig { returns(String) }
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
28
|
attr_accessor :card_token
|
|
29
29
|
|
|
30
30
|
# Date and time when the transaction first occurred. UTC time zone.
|
|
@@ -87,12 +87,12 @@ module Lithic
|
|
|
87
87
|
attr_accessor :settlement_date
|
|
88
88
|
|
|
89
89
|
# Globally unique identifier denoting the associated transaction. For settlement
|
|
90
|
-
# records with type `CLEARING`, `FINANCIAL`, or `
|
|
90
|
+
# records with type `CLEARING`, `FINANCIAL`, or `NON_FINANCIAL`, this references a
|
|
91
91
|
# card transaction token. For settlement records with type `CHARGEBACK`,
|
|
92
92
|
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
|
|
93
93
|
# references the dispute transaction token. May be null for certain settlement
|
|
94
94
|
# types.
|
|
95
|
-
sig { returns(String) }
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
96
|
attr_accessor :transaction_token
|
|
97
97
|
|
|
98
98
|
# The total amount of settlement impacting transactions (excluding interchange,
|
|
@@ -118,9 +118,9 @@ module Lithic
|
|
|
118
118
|
sig do
|
|
119
119
|
params(
|
|
120
120
|
token: String,
|
|
121
|
-
account_token: String,
|
|
122
|
-
card_program_token: String,
|
|
123
|
-
card_token: String,
|
|
121
|
+
account_token: T.nilable(String),
|
|
122
|
+
card_program_token: T.nilable(String),
|
|
123
|
+
card_token: T.nilable(String),
|
|
124
124
|
created: Time,
|
|
125
125
|
currency: String,
|
|
126
126
|
disputes_gross_amount: Integer,
|
|
@@ -134,7 +134,7 @@ module Lithic
|
|
|
134
134
|
other_fees_gross_amount: Integer,
|
|
135
135
|
report_date: String,
|
|
136
136
|
settlement_date: String,
|
|
137
|
-
transaction_token: String,
|
|
137
|
+
transaction_token: T.nilable(String),
|
|
138
138
|
transactions_gross_amount: Integer,
|
|
139
139
|
type: Lithic::SettlementDetail::Type::OrSymbol,
|
|
140
140
|
updated: Time,
|
|
@@ -182,7 +182,7 @@ module Lithic
|
|
|
182
182
|
# advisement date, which is distinct from the date of money movement.
|
|
183
183
|
settlement_date:,
|
|
184
184
|
# Globally unique identifier denoting the associated transaction. For settlement
|
|
185
|
-
# records with type `CLEARING`, `FINANCIAL`, or `
|
|
185
|
+
# records with type `CLEARING`, `FINANCIAL`, or `NON_FINANCIAL`, this references a
|
|
186
186
|
# card transaction token. For settlement records with type `CHARGEBACK`,
|
|
187
187
|
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
|
|
188
188
|
# references the dispute transaction token. May be null for certain settlement
|
|
@@ -204,9 +204,9 @@ module Lithic
|
|
|
204
204
|
override.returns(
|
|
205
205
|
{
|
|
206
206
|
token: String,
|
|
207
|
-
account_token: String,
|
|
208
|
-
card_program_token: String,
|
|
209
|
-
card_token: String,
|
|
207
|
+
account_token: T.nilable(String),
|
|
208
|
+
card_program_token: T.nilable(String),
|
|
209
|
+
card_token: T.nilable(String),
|
|
210
210
|
created: Time,
|
|
211
211
|
currency: String,
|
|
212
212
|
disputes_gross_amount: Integer,
|
|
@@ -219,7 +219,7 @@ module Lithic
|
|
|
219
219
|
other_fees_gross_amount: Integer,
|
|
220
220
|
report_date: String,
|
|
221
221
|
settlement_date: String,
|
|
222
|
-
transaction_token: String,
|
|
222
|
+
transaction_token: T.nilable(String),
|
|
223
223
|
transactions_gross_amount: Integer,
|
|
224
224
|
type: Lithic::SettlementDetail::Type::TaggedSymbol,
|
|
225
225
|
updated: Time,
|
|
@@ -305,7 +305,7 @@ module Lithic
|
|
|
305
305
|
FINANCIAL =
|
|
306
306
|
T.let(:FINANCIAL, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
307
307
|
NON_FINANCIAL =
|
|
308
|
-
T.let(:
|
|
308
|
+
T.let(:NON_FINANCIAL, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
309
309
|
PREARBITRATION =
|
|
310
310
|
T.let(:PREARBITRATION, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
311
311
|
REPRESENTMENT =
|
|
@@ -43,24 +43,15 @@ module Lithic
|
|
|
43
43
|
|
|
44
44
|
# Breakdown of credits
|
|
45
45
|
sig { returns(T.nilable(T.anything)) }
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
sig { params(credit_details: T.anything).void }
|
|
49
|
-
attr_writer :credit_details
|
|
46
|
+
attr_accessor :credit_details
|
|
50
47
|
|
|
51
48
|
# Breakdown of debits
|
|
52
49
|
sig { returns(T.nilable(T.anything)) }
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
sig { params(debit_details: T.anything).void }
|
|
56
|
-
attr_writer :debit_details
|
|
50
|
+
attr_accessor :debit_details
|
|
57
51
|
|
|
58
52
|
# Breakdown of payments
|
|
59
53
|
sig { returns(T.nilable(T.anything)) }
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
sig { params(payment_details: T.anything).void }
|
|
63
|
-
attr_writer :payment_details
|
|
54
|
+
attr_accessor :payment_details
|
|
64
55
|
|
|
65
56
|
sig do
|
|
66
57
|
params(
|
|
@@ -72,9 +63,9 @@ module Lithic
|
|
|
72
63
|
interest: Integer,
|
|
73
64
|
payments: Integer,
|
|
74
65
|
purchases: Integer,
|
|
75
|
-
credit_details: T.anything,
|
|
76
|
-
debit_details: T.anything,
|
|
77
|
-
payment_details: T.anything
|
|
66
|
+
credit_details: T.nilable(T.anything),
|
|
67
|
+
debit_details: T.nilable(T.anything),
|
|
68
|
+
payment_details: T.nilable(T.anything)
|
|
78
69
|
).returns(T.attached_class)
|
|
79
70
|
end
|
|
80
71
|
def self.new(
|
|
@@ -115,9 +106,9 @@ module Lithic
|
|
|
115
106
|
interest: Integer,
|
|
116
107
|
payments: Integer,
|
|
117
108
|
purchases: Integer,
|
|
118
|
-
credit_details: T.anything,
|
|
119
|
-
debit_details: T.anything,
|
|
120
|
-
payment_details: T.anything
|
|
109
|
+
credit_details: T.nilable(T.anything),
|
|
110
|
+
debit_details: T.nilable(T.anything),
|
|
111
|
+
payment_details: T.nilable(T.anything)
|
|
121
112
|
}
|
|
122
113
|
)
|
|
123
114
|
end
|
|
@@ -1551,7 +1551,7 @@ module Lithic
|
|
|
1551
1551
|
sig do
|
|
1552
1552
|
params(
|
|
1553
1553
|
network_specific_data:
|
|
1554
|
-
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
|
1554
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData::OrHash)
|
|
1555
1555
|
).void
|
|
1556
1556
|
end
|
|
1557
1557
|
attr_writer :network_specific_data
|
|
@@ -1574,7 +1574,7 @@ module Lithic
|
|
|
1574
1574
|
type: Lithic::Transaction::Event::Type::OrSymbol,
|
|
1575
1575
|
account_type: Lithic::Transaction::Event::AccountType::OrSymbol,
|
|
1576
1576
|
network_specific_data:
|
|
1577
|
-
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
|
1577
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData::OrHash)
|
|
1578
1578
|
).returns(T.attached_class)
|
|
1579
1579
|
end
|
|
1580
1580
|
def self.new(
|
|
@@ -1627,7 +1627,7 @@ module Lithic
|
|
|
1627
1627
|
account_type:
|
|
1628
1628
|
Lithic::Transaction::Event::AccountType::TaggedSymbol,
|
|
1629
1629
|
network_specific_data:
|
|
1630
|
-
Lithic::Transaction::Event::NetworkSpecificData
|
|
1630
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData)
|
|
1631
1631
|
}
|
|
1632
1632
|
)
|
|
1633
1633
|
end
|
|
@@ -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
|
@@ -107,12 +107,20 @@ module Lithic
|
|
|
107
107
|
|
|
108
108
|
Card = Lithic::Models::Card
|
|
109
109
|
|
|
110
|
+
CardAuthorization = Lithic::Models::CardAuthorization
|
|
111
|
+
|
|
110
112
|
CardAuthorizationApprovalRequestWebhookEvent =
|
|
111
113
|
Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
|
|
112
114
|
|
|
115
|
+
CardAuthorizationChallengeResponseParams =
|
|
116
|
+
Lithic::Models::CardAuthorizationChallengeResponseParams
|
|
117
|
+
|
|
113
118
|
CardAuthorizationChallengeResponseWebhookEvent =
|
|
114
119
|
Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
|
|
115
120
|
|
|
121
|
+
CardAuthorizationChallengeWebhookEvent =
|
|
122
|
+
Lithic::Models::CardAuthorizationChallengeWebhookEvent
|
|
123
|
+
|
|
116
124
|
CardBulkOrder = Lithic::Models::CardBulkOrder
|
|
117
125
|
|
|
118
126
|
CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
|
|
@@ -281,6 +289,9 @@ module Lithic
|
|
|
281
289
|
|
|
282
290
|
ExternalBankAccountListParams = Lithic::Models::ExternalBankAccountListParams
|
|
283
291
|
|
|
292
|
+
ExternalBankAccountPauseParams =
|
|
293
|
+
Lithic::Models::ExternalBankAccountPauseParams
|
|
294
|
+
|
|
284
295
|
ExternalBankAccountRetrieveParams =
|
|
285
296
|
Lithic::Models::ExternalBankAccountRetrieveParams
|
|
286
297
|
|
|
@@ -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
|
|
@@ -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],
|
|
@@ -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
|