lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.42
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 +22 -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 +158 -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_apply_params.rb +13 -5
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
- data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
- data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
- 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/event.rb +6 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -3
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -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 +173 -38
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transaction.rb +4 -0
- 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/auth_rules/v2/backtests.rb +3 -3
- data/lib/lithic/resources/auth_rules/v2.rb +19 -13
- 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 +347 -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_apply_params.rbi +19 -5
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
- 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/event.rbi +16 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- 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 +267 -60
- data/rbi/lithic/models/transaction.rbi +17 -0
- 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/auth_rules/v2/backtests.rbi +3 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
- 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_apply_params.rbs +11 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
- 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/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/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 +110 -23
- data/sig/lithic/models/transaction.rbs +10 -2
- 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/auth_rules/v2.rbs +6 -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
data/rbi/lithic/models/event.rbi
CHANGED
@@ -32,6 +32,8 @@ module Lithic
|
|
32
32
|
# - `card_transaction.updated` - Transaction Lifecycle webhook. See
|
33
33
|
# https://docs.lithic.com/docs/transaction-webhooks.
|
34
34
|
# - `dispute.updated` - A dispute has been updated.
|
35
|
+
# - `dispute_transaction.created` - A new dispute transaction has been created.
|
36
|
+
# - `dispute_transaction.updated` - A dispute transaction has been updated.
|
35
37
|
# - `digital_wallet.tokenization_approval_request` - Card network's request to
|
36
38
|
# Lithic to activate a digital wallet token.
|
37
39
|
# - `digital_wallet.tokenization_result` - Notification of the end result of a
|
@@ -83,6 +85,8 @@ module Lithic
|
|
83
85
|
# - `card_transaction.updated` - Transaction Lifecycle webhook. See
|
84
86
|
# https://docs.lithic.com/docs/transaction-webhooks.
|
85
87
|
# - `dispute.updated` - A dispute has been updated.
|
88
|
+
# - `dispute_transaction.created` - A new dispute transaction has been created.
|
89
|
+
# - `dispute_transaction.updated` - A dispute transaction has been updated.
|
86
90
|
# - `digital_wallet.tokenization_approval_request` - Card network's request to
|
87
91
|
# Lithic to activate a digital wallet token.
|
88
92
|
# - `digital_wallet.tokenization_result` - Notification of the end result of a
|
@@ -130,6 +134,8 @@ module Lithic
|
|
130
134
|
# - `card_transaction.updated` - Transaction Lifecycle webhook. See
|
131
135
|
# https://docs.lithic.com/docs/transaction-webhooks.
|
132
136
|
# - `dispute.updated` - A dispute has been updated.
|
137
|
+
# - `dispute_transaction.created` - A new dispute transaction has been created.
|
138
|
+
# - `dispute_transaction.updated` - A dispute transaction has been updated.
|
133
139
|
# - `digital_wallet.tokenization_approval_request` - Card network's request to
|
134
140
|
# Lithic to activate a digital wallet token.
|
135
141
|
# - `digital_wallet.tokenization_result` - Notification of the end result of a
|
@@ -222,6 +228,16 @@ module Lithic
|
|
222
228
|
:"dispute_evidence.upload_failed",
|
223
229
|
Lithic::Event::EventType::TaggedSymbol
|
224
230
|
)
|
231
|
+
DISPUTE_TRANSACTION_CREATED =
|
232
|
+
T.let(
|
233
|
+
:"dispute_transaction.created",
|
234
|
+
Lithic::Event::EventType::TaggedSymbol
|
235
|
+
)
|
236
|
+
DISPUTE_TRANSACTION_UPDATED =
|
237
|
+
T.let(
|
238
|
+
:"dispute_transaction.updated",
|
239
|
+
Lithic::Event::EventType::TaggedSymbol
|
240
|
+
)
|
225
241
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
226
242
|
T.let(
|
227
243
|
:"external_bank_account.created",
|
@@ -226,6 +226,16 @@ module Lithic
|
|
226
226
|
:"dispute_evidence.upload_failed",
|
227
227
|
Lithic::EventListParams::EventType::TaggedSymbol
|
228
228
|
)
|
229
|
+
DISPUTE_TRANSACTION_CREATED =
|
230
|
+
T.let(
|
231
|
+
:"dispute_transaction.created",
|
232
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
233
|
+
)
|
234
|
+
DISPUTE_TRANSACTION_UPDATED =
|
235
|
+
T.let(
|
236
|
+
:"dispute_transaction.updated",
|
237
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
238
|
+
)
|
229
239
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
230
240
|
T.let(
|
231
241
|
:"external_bank_account.created",
|
@@ -174,6 +174,16 @@ module Lithic
|
|
174
174
|
:"dispute_evidence.upload_failed",
|
175
175
|
Lithic::EventSubscription::EventType::TaggedSymbol
|
176
176
|
)
|
177
|
+
DISPUTE_TRANSACTION_CREATED =
|
178
|
+
T.let(
|
179
|
+
:"dispute_transaction.created",
|
180
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
181
|
+
)
|
182
|
+
DISPUTE_TRANSACTION_UPDATED =
|
183
|
+
T.let(
|
184
|
+
:"dispute_transaction.updated",
|
185
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
186
|
+
)
|
177
187
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
178
188
|
T.let(
|
179
189
|
:"external_bank_account.created",
|
@@ -203,6 +203,16 @@ module Lithic
|
|
203
203
|
:"dispute_evidence.upload_failed",
|
204
204
|
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
205
205
|
)
|
206
|
+
DISPUTE_TRANSACTION_CREATED =
|
207
|
+
T.let(
|
208
|
+
:"dispute_transaction.created",
|
209
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
210
|
+
)
|
211
|
+
DISPUTE_TRANSACTION_UPDATED =
|
212
|
+
T.let(
|
213
|
+
:"dispute_transaction.updated",
|
214
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
215
|
+
)
|
206
216
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
207
217
|
T.let(
|
208
218
|
:"external_bank_account.created",
|
@@ -167,6 +167,16 @@ module Lithic
|
|
167
167
|
:"dispute_evidence.upload_failed",
|
168
168
|
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
169
169
|
)
|
170
|
+
DISPUTE_TRANSACTION_CREATED =
|
171
|
+
T.let(
|
172
|
+
:"dispute_transaction.created",
|
173
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
174
|
+
)
|
175
|
+
DISPUTE_TRANSACTION_UPDATED =
|
176
|
+
T.let(
|
177
|
+
:"dispute_transaction.updated",
|
178
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
179
|
+
)
|
170
180
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
171
181
|
T.let(
|
172
182
|
:"external_bank_account.created",
|
@@ -203,6 +203,16 @@ module Lithic
|
|
203
203
|
:"dispute_evidence.upload_failed",
|
204
204
|
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
205
205
|
)
|
206
|
+
DISPUTE_TRANSACTION_CREATED =
|
207
|
+
T.let(
|
208
|
+
:"dispute_transaction.created",
|
209
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
210
|
+
)
|
211
|
+
DISPUTE_TRANSACTION_UPDATED =
|
212
|
+
T.let(
|
213
|
+
:"dispute_transaction.updated",
|
214
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
215
|
+
)
|
206
216
|
EXTERNAL_BANK_ACCOUNT_CREATED =
|
207
217
|
T.let(
|
208
218
|
:"external_bank_account.created",
|
@@ -8,41 +8,82 @@ module Lithic
|
|
8
8
|
T.any(Lithic::ExternalPayment, Lithic::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
|
+
# Unique identifier for the transaction
|
11
12
|
sig { returns(String) }
|
12
13
|
attr_accessor :token
|
13
14
|
|
14
|
-
|
15
|
-
attr_accessor :category
|
16
|
-
|
15
|
+
# ISO 8601 timestamp of when the transaction was created
|
17
16
|
sig { returns(Time) }
|
18
17
|
attr_accessor :created
|
19
18
|
|
20
|
-
sig { returns(
|
21
|
-
attr_accessor :
|
19
|
+
sig { returns(Lithic::ExternalPayment::Family::TaggedSymbol) }
|
20
|
+
attr_accessor :family
|
22
21
|
|
23
|
-
|
24
|
-
|
22
|
+
# The status of the transaction
|
23
|
+
sig { returns(Lithic::ExternalPayment::Status::TaggedSymbol) }
|
24
|
+
attr_accessor :status
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
27
|
+
sig { returns(Time) }
|
28
|
+
attr_accessor :updated
|
28
29
|
|
29
|
-
sig
|
30
|
-
|
30
|
+
sig do
|
31
|
+
returns(T.nilable(Lithic::ExternalPayment::Category::TaggedSymbol))
|
32
|
+
end
|
33
|
+
attr_reader :category
|
31
34
|
|
32
|
-
sig {
|
33
|
-
|
35
|
+
sig { params(category: Lithic::ExternalPayment::Category::OrSymbol).void }
|
36
|
+
attr_writer :category
|
34
37
|
|
35
|
-
sig { returns(
|
36
|
-
|
38
|
+
sig { returns(T.nilable(String)) }
|
39
|
+
attr_reader :currency
|
37
40
|
|
38
|
-
sig {
|
39
|
-
|
41
|
+
sig { params(currency: String).void }
|
42
|
+
attr_writer :currency
|
40
43
|
|
41
|
-
sig { returns(Lithic::ExternalPayment::
|
42
|
-
|
44
|
+
sig { returns(T.nilable(T::Array[Lithic::ExternalPayment::Event])) }
|
45
|
+
attr_reader :events
|
43
46
|
|
44
|
-
sig
|
45
|
-
|
47
|
+
sig do
|
48
|
+
params(events: T::Array[Lithic::ExternalPayment::Event::OrHash]).void
|
49
|
+
end
|
50
|
+
attr_writer :events
|
51
|
+
|
52
|
+
sig { returns(T.nilable(String)) }
|
53
|
+
attr_reader :financial_account_token
|
54
|
+
|
55
|
+
sig { params(financial_account_token: String).void }
|
56
|
+
attr_writer :financial_account_token
|
57
|
+
|
58
|
+
sig do
|
59
|
+
returns(T.nilable(Lithic::ExternalPayment::PaymentType::TaggedSymbol))
|
60
|
+
end
|
61
|
+
attr_reader :payment_type
|
62
|
+
|
63
|
+
sig do
|
64
|
+
params(
|
65
|
+
payment_type: Lithic::ExternalPayment::PaymentType::OrSymbol
|
66
|
+
).void
|
67
|
+
end
|
68
|
+
attr_writer :payment_type
|
69
|
+
|
70
|
+
sig { returns(T.nilable(Integer)) }
|
71
|
+
attr_reader :pending_amount
|
72
|
+
|
73
|
+
sig { params(pending_amount: Integer).void }
|
74
|
+
attr_writer :pending_amount
|
75
|
+
|
76
|
+
sig { returns(T.nilable(Lithic::ExternalPayment::Result::TaggedSymbol)) }
|
77
|
+
attr_reader :result
|
78
|
+
|
79
|
+
sig { params(result: Lithic::ExternalPayment::Result::OrSymbol).void }
|
80
|
+
attr_writer :result
|
81
|
+
|
82
|
+
sig { returns(T.nilable(Integer)) }
|
83
|
+
attr_reader :settled_amount
|
84
|
+
|
85
|
+
sig { params(settled_amount: Integer).void }
|
86
|
+
attr_writer :settled_amount
|
46
87
|
|
47
88
|
sig { returns(T.nilable(String)) }
|
48
89
|
attr_reader :user_defined_id
|
@@ -53,8 +94,11 @@ module Lithic
|
|
53
94
|
sig do
|
54
95
|
params(
|
55
96
|
token: String,
|
56
|
-
category: Lithic::ExternalPayment::Category::OrSymbol,
|
57
97
|
created: Time,
|
98
|
+
family: Lithic::ExternalPayment::Family::OrSymbol,
|
99
|
+
status: Lithic::ExternalPayment::Status::OrSymbol,
|
100
|
+
updated: Time,
|
101
|
+
category: Lithic::ExternalPayment::Category::OrSymbol,
|
58
102
|
currency: String,
|
59
103
|
events: T::Array[Lithic::ExternalPayment::Event::OrHash],
|
60
104
|
financial_account_token: String,
|
@@ -62,24 +106,27 @@ module Lithic
|
|
62
106
|
pending_amount: Integer,
|
63
107
|
result: Lithic::ExternalPayment::Result::OrSymbol,
|
64
108
|
settled_amount: Integer,
|
65
|
-
status: Lithic::ExternalPayment::Status::OrSymbol,
|
66
|
-
updated: Time,
|
67
109
|
user_defined_id: String
|
68
110
|
).returns(T.attached_class)
|
69
111
|
end
|
70
112
|
def self.new(
|
113
|
+
# Unique identifier for the transaction
|
71
114
|
token:,
|
72
|
-
|
115
|
+
# ISO 8601 timestamp of when the transaction was created
|
73
116
|
created:,
|
74
|
-
|
75
|
-
|
76
|
-
financial_account_token:,
|
77
|
-
payment_type:,
|
78
|
-
pending_amount:,
|
79
|
-
result:,
|
80
|
-
settled_amount:,
|
117
|
+
family:,
|
118
|
+
# The status of the transaction
|
81
119
|
status:,
|
120
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
82
121
|
updated:,
|
122
|
+
category: nil,
|
123
|
+
currency: nil,
|
124
|
+
events: nil,
|
125
|
+
financial_account_token: nil,
|
126
|
+
payment_type: nil,
|
127
|
+
pending_amount: nil,
|
128
|
+
result: nil,
|
129
|
+
settled_amount: nil,
|
83
130
|
user_defined_id: nil
|
84
131
|
)
|
85
132
|
end
|
@@ -88,8 +135,11 @@ module Lithic
|
|
88
135
|
override.returns(
|
89
136
|
{
|
90
137
|
token: String,
|
91
|
-
category: Lithic::ExternalPayment::Category::TaggedSymbol,
|
92
138
|
created: Time,
|
139
|
+
family: Lithic::ExternalPayment::Family::TaggedSymbol,
|
140
|
+
status: Lithic::ExternalPayment::Status::TaggedSymbol,
|
141
|
+
updated: Time,
|
142
|
+
category: Lithic::ExternalPayment::Category::TaggedSymbol,
|
93
143
|
currency: String,
|
94
144
|
events: T::Array[Lithic::ExternalPayment::Event],
|
95
145
|
financial_account_token: String,
|
@@ -97,8 +147,6 @@ module Lithic
|
|
97
147
|
pending_amount: Integer,
|
98
148
|
result: Lithic::ExternalPayment::Result::TaggedSymbol,
|
99
149
|
settled_amount: Integer,
|
100
|
-
status: Lithic::ExternalPayment::Status::TaggedSymbol,
|
101
|
-
updated: Time,
|
102
150
|
user_defined_id: String
|
103
151
|
}
|
104
152
|
)
|
@@ -106,6 +154,65 @@ module Lithic
|
|
106
154
|
def to_hash
|
107
155
|
end
|
108
156
|
|
157
|
+
module Family
|
158
|
+
extend Lithic::Internal::Type::Enum
|
159
|
+
|
160
|
+
TaggedSymbol =
|
161
|
+
T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Family) }
|
162
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
163
|
+
|
164
|
+
CARD = T.let(:CARD, Lithic::ExternalPayment::Family::TaggedSymbol)
|
165
|
+
PAYMENT = T.let(:PAYMENT, Lithic::ExternalPayment::Family::TaggedSymbol)
|
166
|
+
TRANSFER =
|
167
|
+
T.let(:TRANSFER, Lithic::ExternalPayment::Family::TaggedSymbol)
|
168
|
+
INTERNAL =
|
169
|
+
T.let(:INTERNAL, Lithic::ExternalPayment::Family::TaggedSymbol)
|
170
|
+
EXTERNAL_PAYMENT =
|
171
|
+
T.let(
|
172
|
+
:EXTERNAL_PAYMENT,
|
173
|
+
Lithic::ExternalPayment::Family::TaggedSymbol
|
174
|
+
)
|
175
|
+
MANAGEMENT_OPERATION =
|
176
|
+
T.let(
|
177
|
+
:MANAGEMENT_OPERATION,
|
178
|
+
Lithic::ExternalPayment::Family::TaggedSymbol
|
179
|
+
)
|
180
|
+
|
181
|
+
sig do
|
182
|
+
override.returns(
|
183
|
+
T::Array[Lithic::ExternalPayment::Family::TaggedSymbol]
|
184
|
+
)
|
185
|
+
end
|
186
|
+
def self.values
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# The status of the transaction
|
191
|
+
module Status
|
192
|
+
extend Lithic::Internal::Type::Enum
|
193
|
+
|
194
|
+
TaggedSymbol =
|
195
|
+
T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Status) }
|
196
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
197
|
+
|
198
|
+
PENDING = T.let(:PENDING, Lithic::ExternalPayment::Status::TaggedSymbol)
|
199
|
+
SETTLED = T.let(:SETTLED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
200
|
+
DECLINED =
|
201
|
+
T.let(:DECLINED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
202
|
+
REVERSED =
|
203
|
+
T.let(:REVERSED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
204
|
+
CANCELED =
|
205
|
+
T.let(:CANCELED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
206
|
+
|
207
|
+
sig do
|
208
|
+
override.returns(
|
209
|
+
T::Array[Lithic::ExternalPayment::Status::TaggedSymbol]
|
210
|
+
)
|
211
|
+
end
|
212
|
+
def self.values
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
109
216
|
module Category
|
110
217
|
extend Lithic::Internal::Type::Enum
|
111
218
|
|
@@ -234,6 +341,11 @@ module Lithic
|
|
234
341
|
:APPROVED,
|
235
342
|
Lithic::ExternalPayment::Event::DetailedResult::TaggedSymbol
|
236
343
|
)
|
344
|
+
INSUFFICIENT_FUNDS =
|
345
|
+
T.let(
|
346
|
+
:INSUFFICIENT_FUNDS,
|
347
|
+
Lithic::ExternalPayment::Event::DetailedResult::TaggedSymbol
|
348
|
+
)
|
237
349
|
|
238
350
|
sig do
|
239
351
|
override.returns(
|
@@ -434,31 +546,6 @@ module Lithic
|
|
434
546
|
def self.values
|
435
547
|
end
|
436
548
|
end
|
437
|
-
|
438
|
-
module Status
|
439
|
-
extend Lithic::Internal::Type::Enum
|
440
|
-
|
441
|
-
TaggedSymbol =
|
442
|
-
T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Status) }
|
443
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
444
|
-
|
445
|
-
PENDING = T.let(:PENDING, Lithic::ExternalPayment::Status::TaggedSymbol)
|
446
|
-
SETTLED = T.let(:SETTLED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
447
|
-
DECLINED =
|
448
|
-
T.let(:DECLINED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
449
|
-
REVERSED =
|
450
|
-
T.let(:REVERSED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
451
|
-
CANCELED =
|
452
|
-
T.let(:CANCELED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
453
|
-
|
454
|
-
sig do
|
455
|
-
override.returns(
|
456
|
-
T::Array[Lithic::ExternalPayment::Status::TaggedSymbol]
|
457
|
-
)
|
458
|
-
end
|
459
|
-
def self.values
|
460
|
-
end
|
461
|
-
end
|
462
549
|
end
|
463
550
|
end
|
464
551
|
end
|
@@ -355,6 +355,11 @@ module Lithic
|
|
355
355
|
)
|
356
356
|
COLLECTION =
|
357
357
|
T.let(:COLLECTION, Lithic::FinancialAccount::Type::TaggedSymbol)
|
358
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE =
|
359
|
+
T.let(
|
360
|
+
:PROGRAM_BANK_ACCOUNTS_PAYABLE,
|
361
|
+
Lithic::FinancialAccount::Type::TaggedSymbol
|
362
|
+
)
|
358
363
|
|
359
364
|
sig do
|
360
365
|
override.returns(
|
@@ -40,6 +40,11 @@ module Lithic
|
|
40
40
|
)
|
41
41
|
COLLECTION =
|
42
42
|
T.let(:COLLECTION, Lithic::InstanceFinancialAccountType::TaggedSymbol)
|
43
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE =
|
44
|
+
T.let(
|
45
|
+
:PROGRAM_BANK_ACCOUNTS_PAYABLE,
|
46
|
+
Lithic::InstanceFinancialAccountType::TaggedSymbol
|
47
|
+
)
|
43
48
|
|
44
49
|
sig do
|
45
50
|
override.returns(
|
data/rbi/lithic/models/kyb.rbi
CHANGED
@@ -71,7 +71,7 @@ module Lithic
|
|
71
71
|
sig { params(external_id: String).void }
|
72
72
|
attr_writer :external_id
|
73
73
|
|
74
|
-
# An RFC 3339 timestamp indicating when precomputed
|
74
|
+
# An RFC 3339 timestamp indicating when precomputed KYB was completed on the
|
75
75
|
# business with a pass result.
|
76
76
|
#
|
77
77
|
# This field is required only if workflow type is `KYB_BYO`.
|
@@ -138,7 +138,7 @@ module Lithic
|
|
138
138
|
# A user provided id that can be used to link an account holder with an external
|
139
139
|
# system
|
140
140
|
external_id: nil,
|
141
|
-
# An RFC 3339 timestamp indicating when precomputed
|
141
|
+
# An RFC 3339 timestamp indicating when precomputed KYB was completed on the
|
142
142
|
# business with a pass result.
|
143
143
|
#
|
144
144
|
# This field is required only if workflow type is `KYB_BYO`.
|