lithic 0.7.0 → 0.8.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 +36 -0
- data/README.md +3 -3
- data/lib/lithic/client.rb +11 -0
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +8 -2
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
- data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
- data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
- data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
- data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
- data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
- data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
- data/lib/lithic/models/dispute_create_params.rb +11 -11
- data/lib/lithic/models/dispute_list_params.rb +3 -3
- data/lib/lithic/models/dispute_update_params.rb +9 -9
- data/lib/lithic/models/event.rb +0 -7
- data/lib/lithic/models/event_list_params.rb +0 -4
- data/lib/lithic/models/event_subscription.rb +0 -4
- data/lib/lithic/models/events/subscription_create_params.rb +0 -4
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
- data/lib/lithic/models/events/subscription_update_params.rb +0 -4
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
- data/lib/lithic/models/hold.rb +147 -0
- data/lib/lithic/models/hold_create_params.rb +61 -0
- data/lib/lithic/models/hold_event.rb +110 -0
- data/lib/lithic/models/hold_list_params.rb +89 -0
- data/lib/lithic/models/hold_retrieve_params.rb +20 -0
- data/lib/lithic/models/hold_void_params.rb +29 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/parsed_webhook_event.rb +2 -4
- data/lib/lithic/models/payment.rb +76 -12
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models.rb +12 -2
- data/lib/lithic/resources/account_activity.rb +2 -2
- data/lib/lithic/resources/auth_rules/v2.rb +24 -4
- data/lib/lithic/resources/disputes.rb +21 -21
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
- data/lib/lithic/resources/holds.rb +132 -0
- data/lib/lithic/resources/webhooks.rb +2 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +14 -1
- data/rbi/lithic/client.rbi +9 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
- data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
- data/rbi/lithic/models/dispute_create_params.rbi +11 -11
- data/rbi/lithic/models/dispute_list_params.rbi +3 -3
- data/rbi/lithic/models/dispute_update_params.rbi +9 -9
- data/rbi/lithic/models/event.rbi +0 -14
- data/rbi/lithic/models/event_list_params.rbi +0 -8
- data/rbi/lithic/models/event_subscription.rbi +0 -8
- data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
- data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
- data/rbi/lithic/models/hold.rbi +183 -0
- data/rbi/lithic/models/hold_create_params.rbi +90 -0
- data/rbi/lithic/models/hold_event.rbi +148 -0
- data/rbi/lithic/models/hold_list_params.rbi +137 -0
- data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
- data/rbi/lithic/models/hold_void_params.rbi +49 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
- data/rbi/lithic/models/payment.rbi +139 -13
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models.rbi +12 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
- data/rbi/lithic/resources/disputes.rbi +21 -21
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
- data/rbi/lithic/resources/holds.rbi +111 -0
- data/rbi/lithic/resources/webhooks.rbi +8 -2
- data/sig/lithic/client.rbs +5 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +5 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
- data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
- data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
- data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
- data/sig/lithic/models/event.rbs +0 -2
- data/sig/lithic/models/event_list_params.rbs +0 -2
- data/sig/lithic/models/event_subscription.rbs +0 -2
- data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +7 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
- data/sig/lithic/models/hold.rbs +137 -0
- data/sig/lithic/models/hold_create_params.rbs +57 -0
- data/sig/lithic/models/hold_event.rbs +91 -0
- data/sig/lithic/models/hold_list_params.rbs +83 -0
- data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
- data/sig/lithic/models/hold_void_params.rbs +28 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
- data/sig/lithic/models/payment.rbs +23 -8
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models.rbs +12 -2
- data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
- data/sig/lithic/resources/holds.rbs +39 -0
- data/sig/lithic/resources/webhooks.rbs +0 -1
- metadata +41 -5
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
|
@@ -189,6 +189,7 @@ module Lithic
|
|
|
189
189
|
extend Lithic::Internal::Type::Enum
|
|
190
190
|
|
|
191
191
|
ACH = :ACH
|
|
192
|
+
WIRE = :WIRE
|
|
192
193
|
BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
|
|
193
194
|
FEE = :FEE
|
|
194
195
|
REWARD = :REWARD
|
|
@@ -207,6 +208,7 @@ module Lithic
|
|
|
207
208
|
MANAGEMENT_FEE = :MANAGEMENT_FEE
|
|
208
209
|
MANAGEMENT_REWARD = :MANAGEMENT_REWARD
|
|
209
210
|
MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
|
|
211
|
+
HOLD = :HOLD
|
|
210
212
|
PROGRAM_FUNDING = :PROGRAM_FUNDING
|
|
211
213
|
|
|
212
214
|
# @!method self.values
|
|
@@ -254,8 +256,14 @@ module Lithic
|
|
|
254
256
|
required :result, enum: -> { Lithic::Payment::Event::Result }
|
|
255
257
|
|
|
256
258
|
# @!attribute type
|
|
259
|
+
# Note: Inbound wire transfers are coming soon (availability varies by partner
|
|
260
|
+
# bank). Wire-related event types below are a preview. To learn more, contact your
|
|
261
|
+
# customer success manager.
|
|
262
|
+
#
|
|
257
263
|
# Event types:
|
|
258
264
|
#
|
|
265
|
+
# ACH events:
|
|
266
|
+
#
|
|
259
267
|
# - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
|
|
260
268
|
# approval/release from an ACH hold.
|
|
261
269
|
# - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
|
|
@@ -271,6 +279,8 @@ module Lithic
|
|
|
271
279
|
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
|
272
280
|
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
|
273
281
|
# balance.
|
|
282
|
+
# - `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to
|
|
283
|
+
# available balance.
|
|
274
284
|
# - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
|
|
275
285
|
# - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
|
|
276
286
|
# Financial Institution.
|
|
@@ -279,6 +289,26 @@ module Lithic
|
|
|
279
289
|
# - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
|
|
280
290
|
# Financial Institution.
|
|
281
291
|
#
|
|
292
|
+
# Wire transfer events:
|
|
293
|
+
#
|
|
294
|
+
# - `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
|
|
295
|
+
# Federal Reserve and pending release to available balance.
|
|
296
|
+
# - `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
|
|
297
|
+
# pending to available balance.
|
|
298
|
+
# - `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
|
|
299
|
+
# frozen for regulatory review.
|
|
300
|
+
#
|
|
301
|
+
# Wire return events:
|
|
302
|
+
#
|
|
303
|
+
# - `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
|
|
304
|
+
# funds from an inbound wire transfer.
|
|
305
|
+
# - `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
|
|
306
|
+
# and pending acceptance.
|
|
307
|
+
# - `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
|
|
308
|
+
# Reserve and funds returned to sender.
|
|
309
|
+
# - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
|
|
310
|
+
# Reserve.
|
|
311
|
+
#
|
|
282
312
|
# @return [Symbol, Lithic::Models::Payment::Event::Type]
|
|
283
313
|
required :type, enum: -> { Lithic::Payment::Event::Type }
|
|
284
314
|
|
|
@@ -290,7 +320,9 @@ module Lithic
|
|
|
290
320
|
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Payment::Event::DetailedResult] }
|
|
291
321
|
|
|
292
322
|
# @!attribute external_id
|
|
293
|
-
# Payment event external ID
|
|
323
|
+
# Payment event external ID. For ACH transactions, this is the ACH trace number.
|
|
324
|
+
# For inbound wire transfers, this is the IMAD (Input Message Accountability
|
|
325
|
+
# Data).
|
|
294
326
|
#
|
|
295
327
|
# @return [String, nil]
|
|
296
328
|
optional :external_id, String, nil?: true
|
|
@@ -299,6 +331,10 @@ module Lithic
|
|
|
299
331
|
# Some parameter documentations has been truncated, see
|
|
300
332
|
# {Lithic::Models::Payment::Event} for more details.
|
|
301
333
|
#
|
|
334
|
+
# Note: Inbound wire transfers are coming soon (availability varies by partner
|
|
335
|
+
# bank). Wire-related fields below are a preview. To learn more, contact your
|
|
336
|
+
# customer success manager.
|
|
337
|
+
#
|
|
302
338
|
# Payment Event
|
|
303
339
|
#
|
|
304
340
|
# @param token [String] Globally unique identifier.
|
|
@@ -309,11 +345,11 @@ module Lithic
|
|
|
309
345
|
#
|
|
310
346
|
# @param result [Symbol, Lithic::Models::Payment::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
|
|
311
347
|
#
|
|
312
|
-
# @param type [Symbol, Lithic::Models::Payment::Event::Type]
|
|
348
|
+
# @param type [Symbol, Lithic::Models::Payment::Event::Type] Note: Inbound wire transfers are coming soon (availability varies by partner ban
|
|
313
349
|
#
|
|
314
350
|
# @param detailed_results [Array<Symbol, Lithic::Models::Payment::Event::DetailedResult>] More detailed reasons for the event
|
|
315
351
|
#
|
|
316
|
-
# @param external_id [String, nil] Payment event external ID
|
|
352
|
+
# @param external_id [String, nil] Payment event external ID. For ACH transactions, this is the ACH trace number.
|
|
317
353
|
|
|
318
354
|
# APPROVED financial events were successful while DECLINED financial events were
|
|
319
355
|
# declined by user, Lithic, or the network.
|
|
@@ -329,8 +365,14 @@ module Lithic
|
|
|
329
365
|
# @return [Array<Symbol>]
|
|
330
366
|
end
|
|
331
367
|
|
|
368
|
+
# Note: Inbound wire transfers are coming soon (availability varies by partner
|
|
369
|
+
# bank). Wire-related event types below are a preview. To learn more, contact your
|
|
370
|
+
# customer success manager.
|
|
371
|
+
#
|
|
332
372
|
# Event types:
|
|
333
373
|
#
|
|
374
|
+
# ACH events:
|
|
375
|
+
#
|
|
334
376
|
# - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
|
|
335
377
|
# approval/release from an ACH hold.
|
|
336
378
|
# - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
|
|
@@ -346,6 +388,8 @@ module Lithic
|
|
|
346
388
|
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
|
347
389
|
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
|
348
390
|
# balance.
|
|
391
|
+
# - `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to
|
|
392
|
+
# available balance.
|
|
349
393
|
# - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
|
|
350
394
|
# - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
|
|
351
395
|
# Financial Institution.
|
|
@@ -354,6 +398,26 @@ module Lithic
|
|
|
354
398
|
# - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
|
|
355
399
|
# Financial Institution.
|
|
356
400
|
#
|
|
401
|
+
# Wire transfer events:
|
|
402
|
+
#
|
|
403
|
+
# - `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
|
|
404
|
+
# Federal Reserve and pending release to available balance.
|
|
405
|
+
# - `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
|
|
406
|
+
# pending to available balance.
|
|
407
|
+
# - `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
|
|
408
|
+
# frozen for regulatory review.
|
|
409
|
+
#
|
|
410
|
+
# Wire return events:
|
|
411
|
+
#
|
|
412
|
+
# - `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
|
|
413
|
+
# funds from an inbound wire transfer.
|
|
414
|
+
# - `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
|
|
415
|
+
# and pending acceptance.
|
|
416
|
+
# - `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
|
|
417
|
+
# Reserve and funds returned to sender.
|
|
418
|
+
# - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
|
|
419
|
+
# Reserve.
|
|
420
|
+
#
|
|
357
421
|
# @see Lithic::Models::Payment::Event#type
|
|
358
422
|
module Type
|
|
359
423
|
extend Lithic::Internal::Type::Enum
|
|
@@ -367,11 +431,19 @@ module Lithic
|
|
|
367
431
|
ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
|
|
368
432
|
ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
|
|
369
433
|
ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
|
|
434
|
+
ACH_RECEIPT_RELEASED_EARLY = :ACH_RECEIPT_RELEASED_EARLY
|
|
370
435
|
ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
|
|
371
436
|
ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
|
|
372
437
|
ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
|
|
373
438
|
ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED
|
|
374
439
|
ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
|
|
440
|
+
WIRE_TRANSFER_INBOUND_RECEIVED = :WIRE_TRANSFER_INBOUND_RECEIVED
|
|
441
|
+
WIRE_TRANSFER_INBOUND_SETTLED = :WIRE_TRANSFER_INBOUND_SETTLED
|
|
442
|
+
WIRE_TRANSFER_INBOUND_BLOCKED = :WIRE_TRANSFER_INBOUND_BLOCKED
|
|
443
|
+
WIRE_RETURN_OUTBOUND_INITIATED = :WIRE_RETURN_OUTBOUND_INITIATED
|
|
444
|
+
WIRE_RETURN_OUTBOUND_SENT = :WIRE_RETURN_OUTBOUND_SENT
|
|
445
|
+
WIRE_RETURN_OUTBOUND_SETTLED = :WIRE_RETURN_OUTBOUND_SETTLED
|
|
446
|
+
WIRE_RETURN_OUTBOUND_REJECTED = :WIRE_RETURN_OUTBOUND_REJECTED
|
|
375
447
|
|
|
376
448
|
# @!method self.values
|
|
377
449
|
# @return [Array<Symbol>]
|
|
@@ -531,13 +603,7 @@ module Lithic
|
|
|
531
603
|
# @return [String, nil]
|
|
532
604
|
optional :message_id, String, nil?: true
|
|
533
605
|
|
|
534
|
-
# @!
|
|
535
|
-
# Payment details or invoice reference
|
|
536
|
-
#
|
|
537
|
-
# @return [String, nil]
|
|
538
|
-
optional :remittance_information, String, nil?: true
|
|
539
|
-
|
|
540
|
-
# @!method initialize(wire_message_type:, wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil)
|
|
606
|
+
# @!method initialize(wire_message_type:, wire_network:, creditor: nil, debtor: nil, message_id: nil)
|
|
541
607
|
# Some parameter documentations has been truncated, see
|
|
542
608
|
# {Lithic::Models::Payment::MethodAttributes::WireMethodAttributes} for more
|
|
543
609
|
# details.
|
|
@@ -551,8 +617,6 @@ module Lithic
|
|
|
551
617
|
# @param debtor [Lithic::Models::WirePartyDetails]
|
|
552
618
|
#
|
|
553
619
|
# @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used
|
|
554
|
-
#
|
|
555
|
-
# @param remittance_information [String, nil] Payment details or invoice reference
|
|
556
620
|
|
|
557
621
|
# Type of wire transfer
|
|
558
622
|
#
|
|
@@ -67,6 +67,7 @@ module Lithic
|
|
|
67
67
|
ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
|
|
68
68
|
ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
|
|
69
69
|
ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
|
|
70
|
+
ACH_RECEIPT_RELEASED_EARLY = :ACH_RECEIPT_RELEASED_EARLY
|
|
70
71
|
ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
|
|
71
72
|
ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
|
|
72
73
|
ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
|
data/lib/lithic/models.rb
CHANGED
|
@@ -365,6 +365,18 @@ module Lithic
|
|
|
365
365
|
|
|
366
366
|
FundingEventRetrieveParams = Lithic::Models::FundingEventRetrieveParams
|
|
367
367
|
|
|
368
|
+
Hold = Lithic::Models::Hold
|
|
369
|
+
|
|
370
|
+
HoldCreateParams = Lithic::Models::HoldCreateParams
|
|
371
|
+
|
|
372
|
+
HoldEvent = Lithic::Models::HoldEvent
|
|
373
|
+
|
|
374
|
+
HoldListParams = Lithic::Models::HoldListParams
|
|
375
|
+
|
|
376
|
+
HoldRetrieveParams = Lithic::Models::HoldRetrieveParams
|
|
377
|
+
|
|
378
|
+
HoldVoidParams = Lithic::Models::HoldVoidParams
|
|
379
|
+
|
|
368
380
|
InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
|
|
369
381
|
|
|
370
382
|
InternalTransactionAPI = Lithic::Models::InternalTransactionAPI
|
|
@@ -498,8 +510,6 @@ module Lithic
|
|
|
498
510
|
|
|
499
511
|
TokenizationDeactivateParams = Lithic::Models::TokenizationDeactivateParams
|
|
500
512
|
|
|
501
|
-
TokenizationDecisioningRequestWebhookEvent = Lithic::Models::TokenizationDecisioningRequestWebhookEvent
|
|
502
|
-
|
|
503
513
|
TokenizationDecisioningRetrieveSecretParams = Lithic::Models::TokenizationDecisioningRetrieveSecretParams
|
|
504
514
|
|
|
505
515
|
TokenizationDecisioningRotateSecretParams = Lithic::Models::TokenizationDecisioningRotateSecretParams
|
|
@@ -34,7 +34,7 @@ module Lithic
|
|
|
34
34
|
#
|
|
35
35
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
36
36
|
#
|
|
37
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>]
|
|
37
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction, Lithic::Models::Hold>]
|
|
38
38
|
#
|
|
39
39
|
# @see Lithic::Models::AccountActivityListParams
|
|
40
40
|
def list(params = {})
|
|
@@ -58,7 +58,7 @@ module Lithic
|
|
|
58
58
|
#
|
|
59
59
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
60
60
|
#
|
|
61
|
-
# @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction]
|
|
61
|
+
# @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction, Lithic::Models::Hold]
|
|
62
62
|
#
|
|
63
63
|
# @see Lithic::Models::AccountActivityRetrieveTransactionParams
|
|
64
64
|
def retrieve_transaction(transaction_token, params = {})
|
|
@@ -49,9 +49,9 @@ module Lithic
|
|
|
49
49
|
|
|
50
50
|
# Updates a V2 Auth rule's properties
|
|
51
51
|
#
|
|
52
|
-
# If `account_tokens`, `card_tokens`, `program_level`,
|
|
53
|
-
#
|
|
54
|
-
# entities.
|
|
52
|
+
# If `account_tokens`, `card_tokens`, `program_level`, `excluded_card_tokens`,
|
|
53
|
+
# `excluded_account_tokens`, or `excluded_business_account_tokens` is provided,
|
|
54
|
+
# this will replace existing associations with the provided list of entities.
|
|
55
55
|
#
|
|
56
56
|
# @overload update(auth_rule_token, body:, request_options: {})
|
|
57
57
|
#
|
|
@@ -144,7 +144,7 @@ module Lithic
|
|
|
144
144
|
#
|
|
145
145
|
# @param auth_rule_token [String]
|
|
146
146
|
#
|
|
147
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil] Parameters for the Auth Rule
|
|
147
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil] Parameters for the Auth Rule
|
|
148
148
|
#
|
|
149
149
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
150
|
#
|
|
@@ -209,6 +209,26 @@ module Lithic
|
|
|
209
209
|
)
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
+
# Returns all versions of an auth rule, sorted by version number descending
|
|
213
|
+
# (newest first).
|
|
214
|
+
#
|
|
215
|
+
# @overload list_versions(auth_rule_token, request_options: {})
|
|
216
|
+
#
|
|
217
|
+
# @param auth_rule_token [String]
|
|
218
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
219
|
+
#
|
|
220
|
+
# @return [Lithic::Models::AuthRules::V2ListVersionsResponse]
|
|
221
|
+
#
|
|
222
|
+
# @see Lithic::Models::AuthRules::V2ListVersionsParams
|
|
223
|
+
def list_versions(auth_rule_token, params = {})
|
|
224
|
+
@client.request(
|
|
225
|
+
method: :get,
|
|
226
|
+
path: ["v2/auth_rules/%1$s/versions", auth_rule_token],
|
|
227
|
+
model: Lithic::Models::AuthRules::V2ListVersionsResponse,
|
|
228
|
+
options: params[:request_options]
|
|
229
|
+
)
|
|
230
|
+
end
|
|
231
|
+
|
|
212
232
|
# Promotes the draft version of an Auth rule to the currently active version such
|
|
213
233
|
# that it is enforced in the respective stream.
|
|
214
234
|
#
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Resources
|
|
5
5
|
class Disputes
|
|
6
|
-
#
|
|
6
|
+
# Request a chargeback.
|
|
7
7
|
#
|
|
8
8
|
# @overload create(amount:, reason:, transaction_token:, customer_filed_date: nil, customer_note: nil, request_options: {})
|
|
9
9
|
#
|
|
10
|
-
# @param amount [Integer] Amount
|
|
10
|
+
# @param amount [Integer] Amount for chargeback
|
|
11
11
|
#
|
|
12
|
-
# @param reason [Symbol, Lithic::Models::DisputeCreateParams::Reason] Reason for
|
|
12
|
+
# @param reason [Symbol, Lithic::Models::DisputeCreateParams::Reason] Reason for chargeback
|
|
13
13
|
#
|
|
14
|
-
# @param transaction_token [String] Transaction
|
|
14
|
+
# @param transaction_token [String] Transaction for chargeback
|
|
15
15
|
#
|
|
16
|
-
# @param customer_filed_date [Time] Date the customer filed the
|
|
16
|
+
# @param customer_filed_date [Time] Date the customer filed the chargeback request
|
|
17
17
|
#
|
|
18
|
-
# @param customer_note [String] Customer description
|
|
18
|
+
# @param customer_note [String] Customer description
|
|
19
19
|
#
|
|
20
20
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
21
21
|
#
|
|
@@ -33,7 +33,7 @@ module Lithic
|
|
|
33
33
|
)
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
# Get
|
|
36
|
+
# Get chargeback request.
|
|
37
37
|
#
|
|
38
38
|
# @overload retrieve(dispute_token, request_options: {})
|
|
39
39
|
#
|
|
@@ -52,19 +52,19 @@ module Lithic
|
|
|
52
52
|
)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
# Update
|
|
55
|
+
# Update chargeback request. Can only be modified if status is `NEW`.
|
|
56
56
|
#
|
|
57
57
|
# @overload update(dispute_token, amount: nil, customer_filed_date: nil, customer_note: nil, reason: nil, request_options: {})
|
|
58
58
|
#
|
|
59
59
|
# @param dispute_token [String]
|
|
60
60
|
#
|
|
61
|
-
# @param amount [Integer] Amount
|
|
61
|
+
# @param amount [Integer] Amount for chargeback
|
|
62
62
|
#
|
|
63
|
-
# @param customer_filed_date [Time] Date the customer filed the
|
|
63
|
+
# @param customer_filed_date [Time] Date the customer filed the chargeback request
|
|
64
64
|
#
|
|
65
|
-
# @param customer_note [String] Customer description
|
|
65
|
+
# @param customer_note [String] Customer description
|
|
66
66
|
#
|
|
67
|
-
# @param reason [Symbol, Lithic::Models::DisputeUpdateParams::Reason] Reason for
|
|
67
|
+
# @param reason [Symbol, Lithic::Models::DisputeUpdateParams::Reason] Reason for chargeback
|
|
68
68
|
#
|
|
69
69
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
70
70
|
#
|
|
@@ -85,7 +85,7 @@ module Lithic
|
|
|
85
85
|
# Some parameter documentations has been truncated, see
|
|
86
86
|
# {Lithic::Models::DisputeListParams} for more details.
|
|
87
87
|
#
|
|
88
|
-
# List
|
|
88
|
+
# List chargeback requests.
|
|
89
89
|
#
|
|
90
90
|
# @overload list(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, transaction_tokens: nil, request_options: {})
|
|
91
91
|
#
|
|
@@ -99,7 +99,7 @@ module Lithic
|
|
|
99
99
|
#
|
|
100
100
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
101
101
|
#
|
|
102
|
-
# @param status [Symbol, Lithic::Models::DisputeListParams::Status]
|
|
102
|
+
# @param status [Symbol, Lithic::Models::DisputeListParams::Status] Filter by status.
|
|
103
103
|
#
|
|
104
104
|
# @param transaction_tokens [Array<String>] Transaction tokens to filter by.
|
|
105
105
|
#
|
|
@@ -121,7 +121,7 @@ module Lithic
|
|
|
121
121
|
)
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
# Withdraw
|
|
124
|
+
# Withdraw chargeback request.
|
|
125
125
|
#
|
|
126
126
|
# @overload delete(dispute_token, request_options: {})
|
|
127
127
|
#
|
|
@@ -140,8 +140,8 @@ module Lithic
|
|
|
140
140
|
)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
# Soft delete evidence for a
|
|
144
|
-
# by Lithic after it is withdrawn.
|
|
143
|
+
# Soft delete evidence for a chargeback request. Evidence will not be reviewed or
|
|
144
|
+
# submitted by Lithic after it is withdrawn.
|
|
145
145
|
#
|
|
146
146
|
# @overload delete_evidence(evidence_token, dispute_token:, request_options: {})
|
|
147
147
|
#
|
|
@@ -166,8 +166,8 @@ module Lithic
|
|
|
166
166
|
)
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
# Use this endpoint to upload
|
|
170
|
-
# upload your documents to. The URL will expire in 30 minutes.
|
|
169
|
+
# Use this endpoint to upload evidence for a chargeback request. It will return a
|
|
170
|
+
# URL to upload your documents to. The URL will expire in 30 minutes.
|
|
171
171
|
#
|
|
172
172
|
# Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be
|
|
173
173
|
# less than 5 GiB.
|
|
@@ -197,7 +197,7 @@ module Lithic
|
|
|
197
197
|
# Some parameter documentations has been truncated, see
|
|
198
198
|
# {Lithic::Models::DisputeListEvidencesParams} for more details.
|
|
199
199
|
#
|
|
200
|
-
# List evidence
|
|
200
|
+
# List evidence for a chargeback request.
|
|
201
201
|
#
|
|
202
202
|
# @overload list_evidences(dispute_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
203
203
|
#
|
|
@@ -231,7 +231,7 @@ module Lithic
|
|
|
231
231
|
)
|
|
232
232
|
end
|
|
233
233
|
|
|
234
|
-
# Get a
|
|
234
|
+
# Get evidence for a chargeback request.
|
|
235
235
|
#
|
|
236
236
|
# @overload retrieve_evidence(evidence_token, dispute_token:, request_options: {})
|
|
237
237
|
#
|
|
@@ -10,7 +10,7 @@ module Lithic
|
|
|
10
10
|
#
|
|
11
11
|
# Create a new interest tier schedule entry for a supported financial account
|
|
12
12
|
#
|
|
13
|
-
# @overload create(financial_account_token, credit_product_token:, effective_date:, tier_name: nil, tier_rates: nil, request_options: {})
|
|
13
|
+
# @overload create(financial_account_token, credit_product_token:, effective_date:, penalty_rates: nil, tier_name: nil, tier_rates: nil, request_options: {})
|
|
14
14
|
#
|
|
15
15
|
# @param financial_account_token [String] Globally unique identifier for financial account
|
|
16
16
|
#
|
|
@@ -18,6 +18,8 @@ module Lithic
|
|
|
18
18
|
#
|
|
19
19
|
# @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
|
|
20
20
|
#
|
|
21
|
+
# @param penalty_rates [Object] Custom rates per category for penalties
|
|
22
|
+
#
|
|
21
23
|
# @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
|
|
22
24
|
#
|
|
23
25
|
# @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
|
|
@@ -75,12 +77,14 @@ module Lithic
|
|
|
75
77
|
#
|
|
76
78
|
# Update an existing interest tier schedule
|
|
77
79
|
#
|
|
78
|
-
# @overload update(effective_date, financial_account_token:, tier_name: nil, tier_rates: nil, request_options: {})
|
|
80
|
+
# @overload update(effective_date, financial_account_token:, penalty_rates: nil, tier_name: nil, tier_rates: nil, request_options: {})
|
|
79
81
|
#
|
|
80
82
|
# @param effective_date [Date] Path param: Effective date in ISO format (YYYY-MM-DD)
|
|
81
83
|
#
|
|
82
84
|
# @param financial_account_token [String] Path param: Globally unique identifier for financial account
|
|
83
85
|
#
|
|
86
|
+
# @param penalty_rates [Object] Body param: Custom rates per category for penalties
|
|
87
|
+
#
|
|
84
88
|
# @param tier_name [String] Body param: Name of a tier contained in the credit product. Mutually exclusive w
|
|
85
89
|
#
|
|
86
90
|
# @param tier_rates [Object] Body param: Custom rates per category. Mutually exclusive with tier_name
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class Holds
|
|
6
|
+
# Create a hold on a financial account. Holds reserve funds by moving them from
|
|
7
|
+
# available to pending balance. They can be resolved via settlement (linked to a
|
|
8
|
+
# payment or book transfer), voiding, or expiration.
|
|
9
|
+
#
|
|
10
|
+
# @overload create(financial_account_token, amount:, token: nil, expiration_datetime: nil, memo: nil, user_defined_id: nil, request_options: {})
|
|
11
|
+
#
|
|
12
|
+
# @param financial_account_token [String] Globally unique identifier for the financial account.
|
|
13
|
+
#
|
|
14
|
+
# @param amount [Integer] Amount to hold in cents
|
|
15
|
+
#
|
|
16
|
+
# @param token [String] Customer-provided token for idempotency. Becomes the hold token.
|
|
17
|
+
#
|
|
18
|
+
# @param expiration_datetime [Time] When the hold should auto-expire
|
|
19
|
+
#
|
|
20
|
+
# @param memo [String, nil] Reason for the hold
|
|
21
|
+
#
|
|
22
|
+
# @param user_defined_id [String] User-provided identifier for the hold
|
|
23
|
+
#
|
|
24
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
|
+
#
|
|
26
|
+
# @return [Lithic::Models::Hold]
|
|
27
|
+
#
|
|
28
|
+
# @see Lithic::Models::HoldCreateParams
|
|
29
|
+
def create(financial_account_token, params)
|
|
30
|
+
parsed, options = Lithic::HoldCreateParams.dump_request(params)
|
|
31
|
+
@client.request(
|
|
32
|
+
method: :post,
|
|
33
|
+
path: ["v1/financial_accounts/%1$s/holds", financial_account_token],
|
|
34
|
+
body: parsed,
|
|
35
|
+
model: Lithic::Hold,
|
|
36
|
+
options: options
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Get hold by token.
|
|
41
|
+
#
|
|
42
|
+
# @overload retrieve(hold_token, request_options: {})
|
|
43
|
+
#
|
|
44
|
+
# @param hold_token [String] Globally unique identifier for the hold.
|
|
45
|
+
#
|
|
46
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
47
|
+
#
|
|
48
|
+
# @return [Lithic::Models::Hold]
|
|
49
|
+
#
|
|
50
|
+
# @see Lithic::Models::HoldRetrieveParams
|
|
51
|
+
def retrieve(hold_token, params = {})
|
|
52
|
+
@client.request(
|
|
53
|
+
method: :get,
|
|
54
|
+
path: ["v1/holds/%1$s", hold_token],
|
|
55
|
+
model: Lithic::Hold,
|
|
56
|
+
options: params[:request_options]
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Some parameter documentations has been truncated, see
|
|
61
|
+
# {Lithic::Models::HoldListParams} for more details.
|
|
62
|
+
#
|
|
63
|
+
# List holds for a financial account.
|
|
64
|
+
#
|
|
65
|
+
# @overload list(financial_account_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {})
|
|
66
|
+
#
|
|
67
|
+
# @param financial_account_token [String] Globally unique identifier for the financial account.
|
|
68
|
+
#
|
|
69
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
|
70
|
+
#
|
|
71
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
|
72
|
+
#
|
|
73
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
74
|
+
#
|
|
75
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
76
|
+
#
|
|
77
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
78
|
+
#
|
|
79
|
+
# @param status [Symbol, Lithic::Models::HoldListParams::Status] Hold status to filter by.
|
|
80
|
+
#
|
|
81
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
82
|
+
#
|
|
83
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::Hold>]
|
|
84
|
+
#
|
|
85
|
+
# @see Lithic::Models::HoldListParams
|
|
86
|
+
def list(financial_account_token, params = {})
|
|
87
|
+
parsed, options = Lithic::HoldListParams.dump_request(params)
|
|
88
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
89
|
+
@client.request(
|
|
90
|
+
method: :get,
|
|
91
|
+
path: ["v1/financial_accounts/%1$s/holds", financial_account_token],
|
|
92
|
+
query: query.transform_keys(begin_: "begin", end_: "end"),
|
|
93
|
+
page: Lithic::Internal::CursorPage,
|
|
94
|
+
model: Lithic::Hold,
|
|
95
|
+
options: options
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Void an active hold. This returns the held funds from pending back to available
|
|
100
|
+
# balance. Only holds in PENDING status can be voided.
|
|
101
|
+
#
|
|
102
|
+
# @overload void(hold_token, memo: nil, request_options: {})
|
|
103
|
+
#
|
|
104
|
+
# @param hold_token [String] Globally unique identifier for the hold.
|
|
105
|
+
#
|
|
106
|
+
# @param memo [String, nil] Reason for voiding the hold
|
|
107
|
+
#
|
|
108
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
109
|
+
#
|
|
110
|
+
# @return [Lithic::Models::Hold]
|
|
111
|
+
#
|
|
112
|
+
# @see Lithic::Models::HoldVoidParams
|
|
113
|
+
def void(hold_token, params = {})
|
|
114
|
+
parsed, options = Lithic::HoldVoidParams.dump_request(params)
|
|
115
|
+
@client.request(
|
|
116
|
+
method: :post,
|
|
117
|
+
path: ["v1/holds/%1$s/void", hold_token],
|
|
118
|
+
body: parsed,
|
|
119
|
+
model: Lithic::Hold,
|
|
120
|
+
options: options
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @api private
|
|
125
|
+
#
|
|
126
|
+
# @param client [Lithic::Client]
|
|
127
|
+
def initialize(client:)
|
|
128
|
+
@client = client
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -9,8 +9,7 @@ module Lithic
|
|
|
9
9
|
# @param headers [Hash{String => String}] The webhook request headers
|
|
10
10
|
# @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable.
|
|
11
11
|
#
|
|
12
|
-
# @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::
|
|
13
|
-
#
|
|
12
|
+
# @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
|
|
14
13
|
# @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set
|
|
15
14
|
# @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed
|
|
16
15
|
# @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid
|
|
@@ -32,7 +31,7 @@ module Lithic
|
|
|
32
31
|
#
|
|
33
32
|
# @param payload [String] The raw webhook payload as a string
|
|
34
33
|
#
|
|
35
|
-
# @return [Lithic::
|
|
34
|
+
# @return [Lithic::ParsedWebhookEvent::Variants]
|
|
36
35
|
def parse_unsafe(payload)
|
|
37
36
|
parsed = JSON.parse(payload, symbolize_names: true)
|
|
38
37
|
Lithic::Internal::Type::Converter.coerce(Lithic::Models::ParsedWebhookEvent, parsed)
|
data/lib/lithic/version.rb
CHANGED