lithic 0.1.0.pre.alpha.33 → 0.1.0.pre.alpha.35
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 +21 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/auth_rules/rule_stats.rb +112 -0
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +6 -238
- data/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb +32 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +71 -0
- data/lib/lithic/models/card_convert_physical_params.rb +10 -6
- data/lib/lithic/models/card_create_params.rb +10 -6
- data/lib/lithic/models/card_reissue_params.rb +10 -6
- data/lib/lithic/models/card_renew_params.rb +10 -6
- data/lib/lithic/models/external_bank_account_create_params.rb +1 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/financial_transaction.rb +1 -0
- data/lib/lithic/models/fraud/transaction_report_params.rb +130 -0
- data/lib/lithic/models/fraud/transaction_report_response.rb +160 -0
- data/lib/lithic/models/fraud/transaction_retrieve_params.rb +16 -0
- data/lib/lithic/models/fraud/transaction_retrieve_response.rb +160 -0
- data/lib/lithic/models/non_pci_card.rb +16 -21
- data/lib/lithic/models/payment.rb +7 -1
- data/lib/lithic/models/payment_create_params.rb +7 -1
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +111 -79
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +8 -2
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +2 -6
- data/lib/lithic/models/three_ds/challenge_response.rb +7 -7
- data/lib/lithic/models/three_ds/challenge_result.rb +1 -1
- data/lib/lithic/models/transfer.rb +1 -0
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -7
- data/lib/lithic/resources/auth_rules/v2.rb +45 -4
- data/lib/lithic/resources/fraud/transactions.rb +69 -0
- data/lib/lithic/resources/fraud.rb +18 -0
- data/lib/lithic/resources/three_ds/authentication.rb +6 -6
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/auth_rules/rule_stats.rbi +229 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -523
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi +56 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +149 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +15 -9
- data/rbi/lithic/models/card_create_params.rbi +15 -9
- data/rbi/lithic/models/card_reissue_params.rbi +15 -9
- data/rbi/lithic/models/card_renew_params.rbi +15 -9
- data/rbi/lithic/models/external_bank_account_create_params.rbi +2 -2
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +5 -0
- data/rbi/lithic/models/fraud/transaction_report_params.rbi +263 -0
- data/rbi/lithic/models/fraud/transaction_report_response.rbi +309 -0
- data/rbi/lithic/models/fraud/transaction_retrieve_params.rbi +32 -0
- data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +309 -0
- data/rbi/lithic/models/non_pci_card.rbi +27 -38
- data/rbi/lithic/models/payment.rbi +9 -3
- data/rbi/lithic/models/payment_create_params.rbi +8 -3
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +171 -108
- data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +6 -0
- data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +2 -4
- data/rbi/lithic/models/three_ds/challenge_response.rbi +7 -10
- data/rbi/lithic/models/three_ds/challenge_result.rbi +1 -1
- data/rbi/lithic/models/transfer.rbi +2 -0
- data/rbi/lithic/models.rbi +2 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -7
- data/rbi/lithic/resources/auth_rules/v2.rbi +37 -4
- data/rbi/lithic/resources/cards.rbi +20 -12
- data/rbi/lithic/resources/fraud/transactions.rbi +86 -0
- data/rbi/lithic/resources/fraud.rbi +15 -0
- data/rbi/lithic/resources/three_ds/authentication.rbi +6 -4
- data/rbi/lithic/resources/three_ds/decisioning.rbi +9 -6
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_stats.rbs +108 -0
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +8 -214
- data/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs +30 -0
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +64 -0
- data/sig/lithic/models/external_bank_account_create_params.rbs +2 -2
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/fraud/transaction_report_params.rbs +75 -0
- data/sig/lithic/models/fraud/transaction_report_response.rbs +90 -0
- data/sig/lithic/models/fraud/transaction_retrieve_params.rbs +17 -0
- data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +90 -0
- data/sig/lithic/models/non_pci_card.rbs +4 -19
- data/sig/lithic/models/payment.rbs +8 -3
- data/sig/lithic/models/payment_create_params.rbs +8 -3
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +19 -20
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/fraud/transactions.rbs +22 -0
- data/sig/lithic/resources/fraud.rbs +9 -0
- metadata +29 -2
@@ -43,8 +43,19 @@ module Lithic
|
|
43
43
|
sig { returns(Integer) }
|
44
44
|
attr_accessor :spend_limit
|
45
45
|
|
46
|
-
# Spend limit duration
|
47
|
-
|
46
|
+
# Spend limit duration values:
|
47
|
+
#
|
48
|
+
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
49
|
+
# trailing year.
|
50
|
+
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
51
|
+
# of the card.
|
52
|
+
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
53
|
+
# trailing month. To support recurring monthly payments, which can occur on
|
54
|
+
# different day every month, the time window we consider for monthly velocity
|
55
|
+
# starts 6 days after the current calendar date one month prior.
|
56
|
+
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
57
|
+
# transaction is under the spend limit.
|
58
|
+
sig { returns(Lithic::SpendLimitDuration::TaggedSymbol) }
|
48
59
|
attr_accessor :spend_limit_duration
|
49
60
|
|
50
61
|
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
@@ -166,8 +177,7 @@ module Lithic
|
|
166
177
|
last_four: String,
|
167
178
|
pin_status: Lithic::NonPCICard::PinStatus::OrSymbol,
|
168
179
|
spend_limit: Integer,
|
169
|
-
spend_limit_duration:
|
170
|
-
Lithic::NonPCICard::SpendLimitDuration::OrSymbol,
|
180
|
+
spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
|
171
181
|
state: Lithic::NonPCICard::State::OrSymbol,
|
172
182
|
type: Lithic::NonPCICard::Type::OrSymbol,
|
173
183
|
auth_rule_tokens: T::Array[String],
|
@@ -201,7 +211,18 @@ module Lithic
|
|
201
211
|
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
202
212
|
# $1,000 limit). Transaction requests above the spend limit will be declined.
|
203
213
|
spend_limit:,
|
204
|
-
# Spend limit duration
|
214
|
+
# Spend limit duration values:
|
215
|
+
#
|
216
|
+
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
217
|
+
# trailing year.
|
218
|
+
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
219
|
+
# of the card.
|
220
|
+
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
221
|
+
# trailing month. To support recurring monthly payments, which can occur on
|
222
|
+
# different day every month, the time window we consider for monthly velocity
|
223
|
+
# starts 6 days after the current calendar date one month prior.
|
224
|
+
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
225
|
+
# transaction is under the spend limit.
|
205
226
|
spend_limit_duration:,
|
206
227
|
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
207
228
|
# Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
|
@@ -274,8 +295,7 @@ module Lithic
|
|
274
295
|
last_four: String,
|
275
296
|
pin_status: Lithic::NonPCICard::PinStatus::TaggedSymbol,
|
276
297
|
spend_limit: Integer,
|
277
|
-
spend_limit_duration:
|
278
|
-
Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol,
|
298
|
+
spend_limit_duration: Lithic::SpendLimitDuration::TaggedSymbol,
|
279
299
|
state: Lithic::NonPCICard::State::TaggedSymbol,
|
280
300
|
type: Lithic::NonPCICard::Type::TaggedSymbol,
|
281
301
|
auth_rule_tokens: T::Array[String],
|
@@ -471,37 +491,6 @@ module Lithic
|
|
471
491
|
end
|
472
492
|
end
|
473
493
|
|
474
|
-
# Spend limit duration
|
475
|
-
module SpendLimitDuration
|
476
|
-
extend Lithic::Internal::Type::Enum
|
477
|
-
|
478
|
-
TaggedSymbol =
|
479
|
-
T.type_alias { T.all(Symbol, Lithic::NonPCICard::SpendLimitDuration) }
|
480
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
481
|
-
|
482
|
-
ANNUALLY =
|
483
|
-
T.let(:ANNUALLY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
484
|
-
FOREVER =
|
485
|
-
T.let(:FOREVER, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
486
|
-
MONTHLY =
|
487
|
-
T.let(:MONTHLY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
488
|
-
TRANSACTION =
|
489
|
-
T.let(
|
490
|
-
:TRANSACTION,
|
491
|
-
Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol
|
492
|
-
)
|
493
|
-
DAILY =
|
494
|
-
T.let(:DAILY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
495
|
-
|
496
|
-
sig do
|
497
|
-
override.returns(
|
498
|
-
T::Array[Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol]
|
499
|
-
)
|
500
|
-
end
|
501
|
-
def self.values
|
502
|
-
end
|
503
|
-
end
|
504
|
-
|
505
494
|
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
506
495
|
# Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
|
507
496
|
# they match card and account parameters). _ `PAUSED` - Card will decline
|
@@ -562,6 +562,9 @@ module Lithic
|
|
562
562
|
sig { returns(T::Array[T.nilable(String)]) }
|
563
563
|
attr_accessor :trace_numbers
|
564
564
|
|
565
|
+
sig { returns(T.nilable(String)) }
|
566
|
+
attr_accessor :addenda
|
567
|
+
|
565
568
|
sig do
|
566
569
|
params(
|
567
570
|
company_id: T.nilable(String),
|
@@ -569,7 +572,8 @@ module Lithic
|
|
569
572
|
retries: T.nilable(Integer),
|
570
573
|
return_reason_code: T.nilable(String),
|
571
574
|
sec_code: Lithic::Payment::MethodAttributes::SecCode::OrSymbol,
|
572
|
-
trace_numbers: T::Array[T.nilable(String)]
|
575
|
+
trace_numbers: T::Array[T.nilable(String)],
|
576
|
+
addenda: T.nilable(String)
|
573
577
|
).returns(T.attached_class)
|
574
578
|
end
|
575
579
|
def self.new(
|
@@ -578,7 +582,8 @@ module Lithic
|
|
578
582
|
retries:,
|
579
583
|
return_reason_code:,
|
580
584
|
sec_code:,
|
581
|
-
trace_numbers
|
585
|
+
trace_numbers:,
|
586
|
+
addenda: nil
|
582
587
|
)
|
583
588
|
end
|
584
589
|
|
@@ -591,7 +596,8 @@ module Lithic
|
|
591
596
|
return_reason_code: T.nilable(String),
|
592
597
|
sec_code:
|
593
598
|
Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol,
|
594
|
-
trace_numbers: T::Array[T.nilable(String)]
|
599
|
+
trace_numbers: T::Array[T.nilable(String)],
|
600
|
+
addenda: T.nilable(String)
|
595
601
|
}
|
596
602
|
)
|
597
603
|
end
|
@@ -150,20 +150,25 @@ module Lithic
|
|
150
150
|
end
|
151
151
|
attr_accessor :sec_code
|
152
152
|
|
153
|
+
sig { returns(T.nilable(String)) }
|
154
|
+
attr_accessor :addenda
|
155
|
+
|
153
156
|
sig do
|
154
157
|
params(
|
155
158
|
sec_code:
|
156
|
-
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol
|
159
|
+
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
|
160
|
+
addenda: T.nilable(String)
|
157
161
|
).returns(T.attached_class)
|
158
162
|
end
|
159
|
-
def self.new(sec_code:)
|
163
|
+
def self.new(sec_code:, addenda: nil)
|
160
164
|
end
|
161
165
|
|
162
166
|
sig do
|
163
167
|
override.returns(
|
164
168
|
{
|
165
169
|
sec_code:
|
166
|
-
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol
|
170
|
+
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
|
171
|
+
addenda: T.nilable(String)
|
167
172
|
}
|
168
173
|
)
|
169
174
|
end
|