lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.41
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 +14 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/lithic/internal/type/array_of.rb +1 -0
- data/lib/lithic/internal/type/base_model.rb +3 -1
- data/lib/lithic/internal/type/converter.rb +27 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -0
- data/lib/lithic/internal/type/union.rb +9 -7
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +156 -0
- data/lib/lithic/models/account_activity_list_response.rb +1435 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
- data/lib/lithic/models/account_holder.rb +16 -19
- data/lib/lithic/models/account_holder_create_params.rb +41 -47
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
- data/lib/lithic/models/account_holder_update_params.rb +2 -6
- data/lib/lithic/models/account_holder_update_response.rb +25 -20
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
- data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
- data/lib/lithic/models/book_transfer_create_params.rb +34 -6
- data/lib/lithic/models/book_transfer_response.rb +124 -28
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/events/subscription_create_params.rb +1 -3
- data/lib/lithic/models/events/subscription_update_params.rb +1 -3
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
- data/lib/lithic/models/external_payment.rb +89 -48
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
- data/lib/lithic/models/financial_accounts/statement.rb +3 -10
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
- data/lib/lithic/models/financial_transaction.rb +2 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +2 -2
- data/lib/lithic/models/management_operation_transaction.rb +90 -63
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
- data/lib/lithic/models/transfer.rb +2 -0
- data/lib/lithic/models/wire_party_details.rb +40 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/reports/settlement.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -2
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/errors.rbi +2 -2
- data/rbi/lithic/internal/transport/base_client.rbi +1 -1
- data/rbi/lithic/internal/type/converter.rbi +46 -0
- data/rbi/lithic/internal/type/union.rbi +7 -2
- data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
- data/rbi/lithic/models/account_holder.rbi +21 -23
- data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
- data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
- data/rbi/lithic/models/book_transfer_response.rbi +320 -38
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +1 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +2 -2
- data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +2 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/internal/transport/base_client.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +17 -0
- data/sig/lithic/internal/type/union.rbs +2 -2
- data/sig/lithic/models/account_activity_list_params.rbs +173 -0
- data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
- data/sig/lithic/models/account_holder_create_params.rbs +33 -19
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
- data/sig/lithic/models/account_holder_update_response.rbs +10 -3
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
- data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
- data/sig/lithic/models/book_transfer_response.rbs +134 -15
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +95 -44
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +20 -5
- data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
- data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -210,16 +210,36 @@ module Lithic
|
|
210
210
|
:DOES_NOT_MATCH,
|
211
211
|
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
212
212
|
)
|
213
|
+
IS_EQUAL_TO =
|
214
|
+
T.let(
|
215
|
+
:IS_EQUAL_TO,
|
216
|
+
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
217
|
+
)
|
218
|
+
IS_NOT_EQUAL_TO =
|
219
|
+
T.let(
|
220
|
+
:IS_NOT_EQUAL_TO,
|
221
|
+
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
222
|
+
)
|
213
223
|
IS_GREATER_THAN =
|
214
224
|
T.let(
|
215
225
|
:IS_GREATER_THAN,
|
216
226
|
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
217
227
|
)
|
228
|
+
IS_GREATER_THAN_OR_EQUAL_TO =
|
229
|
+
T.let(
|
230
|
+
:IS_GREATER_THAN_OR_EQUAL_TO,
|
231
|
+
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
232
|
+
)
|
218
233
|
IS_LESS_THAN =
|
219
234
|
T.let(
|
220
235
|
:IS_LESS_THAN,
|
221
236
|
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
222
237
|
)
|
238
|
+
IS_LESS_THAN_OR_EQUAL_TO =
|
239
|
+
T.let(
|
240
|
+
:IS_LESS_THAN_OR_EQUAL_TO,
|
241
|
+
Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
|
242
|
+
)
|
223
243
|
|
224
244
|
sig do
|
225
245
|
override.returns(
|
@@ -352,16 +352,36 @@ module Lithic
|
|
352
352
|
:DOES_NOT_MATCH,
|
353
353
|
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
354
354
|
)
|
355
|
+
IS_EQUAL_TO =
|
356
|
+
T.let(
|
357
|
+
:IS_EQUAL_TO,
|
358
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
359
|
+
)
|
360
|
+
IS_NOT_EQUAL_TO =
|
361
|
+
T.let(
|
362
|
+
:IS_NOT_EQUAL_TO,
|
363
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
364
|
+
)
|
355
365
|
IS_GREATER_THAN =
|
356
366
|
T.let(
|
357
367
|
:IS_GREATER_THAN,
|
358
368
|
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
359
369
|
)
|
370
|
+
IS_GREATER_THAN_OR_EQUAL_TO =
|
371
|
+
T.let(
|
372
|
+
:IS_GREATER_THAN_OR_EQUAL_TO,
|
373
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
374
|
+
)
|
360
375
|
IS_LESS_THAN =
|
361
376
|
T.let(
|
362
377
|
:IS_LESS_THAN,
|
363
378
|
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
364
379
|
)
|
380
|
+
IS_LESS_THAN_OR_EQUAL_TO =
|
381
|
+
T.let(
|
382
|
+
:IS_LESS_THAN_OR_EQUAL_TO,
|
383
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
384
|
+
)
|
365
385
|
|
366
386
|
sig do
|
367
387
|
override.returns(
|
@@ -11,7 +11,7 @@ module Lithic
|
|
11
11
|
T.any(Lithic::BookTransferCreateParams, Lithic::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
|
-
# Amount to be transferred in the currency
|
14
|
+
# Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
|
15
15
|
# This should always be a positive value.
|
16
16
|
sig { returns(Integer) }
|
17
17
|
attr_accessor :amount
|
@@ -34,7 +34,7 @@ module Lithic
|
|
34
34
|
sig { returns(String) }
|
35
35
|
attr_accessor :to_financial_account_token
|
36
36
|
|
37
|
-
# Type of
|
37
|
+
# Type of the book transfer
|
38
38
|
sig { returns(Lithic::BookTransferCreateParams::Type::OrSymbol) }
|
39
39
|
attr_accessor :type
|
40
40
|
|
@@ -46,6 +46,13 @@ module Lithic
|
|
46
46
|
sig { params(token: String).void }
|
47
47
|
attr_writer :token
|
48
48
|
|
49
|
+
# External ID defined by the customer
|
50
|
+
sig { returns(T.nilable(String)) }
|
51
|
+
attr_reader :external_id
|
52
|
+
|
53
|
+
sig { params(external_id: String).void }
|
54
|
+
attr_writer :external_id
|
55
|
+
|
49
56
|
# Optional descriptor for the transfer.
|
50
57
|
sig { returns(T.nilable(String)) }
|
51
58
|
attr_reader :memo
|
@@ -53,6 +60,22 @@ module Lithic
|
|
53
60
|
sig { params(memo: String).void }
|
54
61
|
attr_writer :memo
|
55
62
|
|
63
|
+
# What to do if the financial account is closed when posting an operation
|
64
|
+
sig do
|
65
|
+
returns(
|
66
|
+
T.nilable(Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol)
|
67
|
+
)
|
68
|
+
end
|
69
|
+
attr_reader :on_closed_account
|
70
|
+
|
71
|
+
sig do
|
72
|
+
params(
|
73
|
+
on_closed_account:
|
74
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol
|
75
|
+
).void
|
76
|
+
end
|
77
|
+
attr_writer :on_closed_account
|
78
|
+
|
56
79
|
sig do
|
57
80
|
params(
|
58
81
|
amount: Integer,
|
@@ -62,12 +85,15 @@ module Lithic
|
|
62
85
|
to_financial_account_token: String,
|
63
86
|
type: Lithic::BookTransferCreateParams::Type::OrSymbol,
|
64
87
|
token: String,
|
88
|
+
external_id: String,
|
65
89
|
memo: String,
|
90
|
+
on_closed_account:
|
91
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
|
66
92
|
request_options: Lithic::RequestOptions::OrHash
|
67
93
|
).returns(T.attached_class)
|
68
94
|
end
|
69
95
|
def self.new(
|
70
|
-
# Amount to be transferred in the currency
|
96
|
+
# Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
|
71
97
|
# This should always be a positive value.
|
72
98
|
amount:,
|
73
99
|
# Category of the book transfer
|
@@ -80,13 +106,17 @@ module Lithic
|
|
80
106
|
# Globally unique identifier for the financial account or card that will receive
|
81
107
|
# the funds. Accepted type dependent on the program's use case.
|
82
108
|
to_financial_account_token:,
|
83
|
-
# Type of
|
109
|
+
# Type of the book transfer
|
84
110
|
type:,
|
85
111
|
# Customer-provided token that will serve as an idempotency token. This token will
|
86
112
|
# become the transaction token.
|
87
113
|
token: nil,
|
114
|
+
# External ID defined by the customer
|
115
|
+
external_id: nil,
|
88
116
|
# Optional descriptor for the transfer.
|
89
117
|
memo: nil,
|
118
|
+
# What to do if the financial account is closed when posting an operation
|
119
|
+
on_closed_account: nil,
|
90
120
|
request_options: {}
|
91
121
|
)
|
92
122
|
end
|
@@ -101,7 +131,10 @@ module Lithic
|
|
101
131
|
to_financial_account_token: String,
|
102
132
|
type: Lithic::BookTransferCreateParams::Type::OrSymbol,
|
103
133
|
token: String,
|
134
|
+
external_id: String,
|
104
135
|
memo: String,
|
136
|
+
on_closed_account:
|
137
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
|
105
138
|
request_options: Lithic::RequestOptions
|
106
139
|
}
|
107
140
|
)
|
@@ -161,7 +194,7 @@ module Lithic
|
|
161
194
|
end
|
162
195
|
end
|
163
196
|
|
164
|
-
# Type of
|
197
|
+
# Type of the book transfer
|
165
198
|
module Type
|
166
199
|
extend Lithic::Internal::Type::Enum
|
167
200
|
|
@@ -316,6 +349,11 @@ module Lithic
|
|
316
349
|
T.let(:SERVICE, Lithic::BookTransferCreateParams::Type::TaggedSymbol)
|
317
350
|
TRANSFER =
|
318
351
|
T.let(:TRANSFER, Lithic::BookTransferCreateParams::Type::TaggedSymbol)
|
352
|
+
COLLECTION =
|
353
|
+
T.let(
|
354
|
+
:COLLECTION,
|
355
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
356
|
+
)
|
319
357
|
|
320
358
|
sig do
|
321
359
|
override.returns(
|
@@ -325,6 +363,38 @@ module Lithic
|
|
325
363
|
def self.values
|
326
364
|
end
|
327
365
|
end
|
366
|
+
|
367
|
+
# What to do if the financial account is closed when posting an operation
|
368
|
+
module OnClosedAccount
|
369
|
+
extend Lithic::Internal::Type::Enum
|
370
|
+
|
371
|
+
TaggedSymbol =
|
372
|
+
T.type_alias do
|
373
|
+
T.all(Symbol, Lithic::BookTransferCreateParams::OnClosedAccount)
|
374
|
+
end
|
375
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
376
|
+
|
377
|
+
FAIL =
|
378
|
+
T.let(
|
379
|
+
:FAIL,
|
380
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
|
381
|
+
)
|
382
|
+
USE_SUSPENSE =
|
383
|
+
T.let(
|
384
|
+
:USE_SUSPENSE,
|
385
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
|
386
|
+
)
|
387
|
+
|
388
|
+
sig do
|
389
|
+
override.returns(
|
390
|
+
T::Array[
|
391
|
+
Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
|
392
|
+
]
|
393
|
+
)
|
394
|
+
end
|
395
|
+
def self.values
|
396
|
+
end
|
397
|
+
end
|
328
398
|
end
|
329
399
|
end
|
330
400
|
end
|