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.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3 -3
  4. data/lib/lithic/client.rb +11 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +8 -2
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  10. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  11. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  12. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  14. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  15. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  16. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  18. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  19. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  20. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  21. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  22. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  23. data/lib/lithic/models/dispute_create_params.rb +11 -11
  24. data/lib/lithic/models/dispute_list_params.rb +3 -3
  25. data/lib/lithic/models/dispute_update_params.rb +9 -9
  26. data/lib/lithic/models/event.rb +0 -7
  27. data/lib/lithic/models/event_list_params.rb +0 -4
  28. data/lib/lithic/models/event_subscription.rb +0 -4
  29. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  31. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  32. data/lib/lithic/models/financial_account.rb +1 -0
  33. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  37. data/lib/lithic/models/hold.rb +147 -0
  38. data/lib/lithic/models/hold_create_params.rb +61 -0
  39. data/lib/lithic/models/hold_event.rb +110 -0
  40. data/lib/lithic/models/hold_list_params.rb +89 -0
  41. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  42. data/lib/lithic/models/hold_void_params.rb +29 -0
  43. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  44. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  45. data/lib/lithic/models/payment.rb +76 -12
  46. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  47. data/lib/lithic/models.rb +12 -2
  48. data/lib/lithic/resources/account_activity.rb +2 -2
  49. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  50. data/lib/lithic/resources/disputes.rb +21 -21
  51. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  52. data/lib/lithic/resources/holds.rb +132 -0
  53. data/lib/lithic/resources/webhooks.rb +2 -3
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +14 -1
  56. data/rbi/lithic/client.rbi +9 -0
  57. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  58. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  59. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  60. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  61. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  62. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  63. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  64. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  65. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  66. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  67. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  68. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  70. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  71. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  72. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  74. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  75. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  76. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  77. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  78. data/rbi/lithic/models/event.rbi +0 -14
  79. data/rbi/lithic/models/event_list_params.rbi +0 -8
  80. data/rbi/lithic/models/event_subscription.rbi +0 -8
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  84. data/rbi/lithic/models/financial_account.rbi +5 -0
  85. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  88. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  89. data/rbi/lithic/models/hold.rbi +183 -0
  90. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  91. data/rbi/lithic/models/hold_event.rbi +148 -0
  92. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  93. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  94. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  95. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  96. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  97. data/rbi/lithic/models/payment.rbi +139 -13
  98. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  99. data/rbi/lithic/models.rbi +12 -3
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  101. data/rbi/lithic/resources/disputes.rbi +21 -21
  102. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  103. data/rbi/lithic/resources/holds.rbi +111 -0
  104. data/rbi/lithic/resources/webhooks.rbi +8 -2
  105. data/sig/lithic/client.rbs +5 -0
  106. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  107. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  108. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  109. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  110. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  111. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  112. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  113. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  114. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  115. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  116. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  117. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  118. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  119. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  120. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  121. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  122. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  123. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  124. data/sig/lithic/models/event.rbs +0 -2
  125. data/sig/lithic/models/event_list_params.rbs +0 -2
  126. data/sig/lithic/models/event_subscription.rbs +0 -2
  127. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  128. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  129. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  130. data/sig/lithic/models/financial_account.rbs +2 -0
  131. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  132. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  133. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  134. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  135. data/sig/lithic/models/hold.rbs +137 -0
  136. data/sig/lithic/models/hold_create_params.rbs +57 -0
  137. data/sig/lithic/models/hold_event.rbs +91 -0
  138. data/sig/lithic/models/hold_list_params.rbs +83 -0
  139. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  140. data/sig/lithic/models/hold_void_params.rbs +28 -0
  141. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  142. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  143. data/sig/lithic/models/payment.rbs +23 -8
  144. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  145. data/sig/lithic/models.rbs +12 -2
  146. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  147. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  148. data/sig/lithic/resources/holds.rbs +39 -0
  149. data/sig/lithic/resources/webhooks.rbs +0 -1
  150. metadata +41 -5
  151. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  152. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  153. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -0,0 +1,137 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class HoldListParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::HoldListParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :financial_account_token
16
+
17
+ # Date string in RFC 3339 format. Only entries created after the specified time
18
+ # will be included. UTC time zone.
19
+ sig { returns(T.nilable(Time)) }
20
+ attr_reader :begin_
21
+
22
+ sig { params(begin_: Time).void }
23
+ attr_writer :begin_
24
+
25
+ # Date string in RFC 3339 format. Only entries created before the specified time
26
+ # will be included. UTC time zone.
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_reader :end_
29
+
30
+ sig { params(end_: Time).void }
31
+ attr_writer :end_
32
+
33
+ # A cursor representing an item's token before which a page of results should end.
34
+ # Used to retrieve the previous page of results before this item.
35
+ sig { returns(T.nilable(String)) }
36
+ attr_reader :ending_before
37
+
38
+ sig { params(ending_before: String).void }
39
+ attr_writer :ending_before
40
+
41
+ # Page size (for pagination).
42
+ sig { returns(T.nilable(Integer)) }
43
+ attr_reader :page_size
44
+
45
+ sig { params(page_size: Integer).void }
46
+ attr_writer :page_size
47
+
48
+ # A cursor representing an item's token after which a page of results should
49
+ # begin. Used to retrieve the next page of results after this item.
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :starting_after
52
+
53
+ sig { params(starting_after: String).void }
54
+ attr_writer :starting_after
55
+
56
+ # Hold status to filter by.
57
+ sig { returns(T.nilable(Lithic::HoldListParams::Status::OrSymbol)) }
58
+ attr_reader :status
59
+
60
+ sig { params(status: Lithic::HoldListParams::Status::OrSymbol).void }
61
+ attr_writer :status
62
+
63
+ sig do
64
+ params(
65
+ financial_account_token: String,
66
+ begin_: Time,
67
+ end_: Time,
68
+ ending_before: String,
69
+ page_size: Integer,
70
+ starting_after: String,
71
+ status: Lithic::HoldListParams::Status::OrSymbol,
72
+ request_options: Lithic::RequestOptions::OrHash
73
+ ).returns(T.attached_class)
74
+ end
75
+ def self.new(
76
+ financial_account_token:,
77
+ # Date string in RFC 3339 format. Only entries created after the specified time
78
+ # will be included. UTC time zone.
79
+ begin_: nil,
80
+ # Date string in RFC 3339 format. Only entries created before the specified time
81
+ # will be included. UTC time zone.
82
+ end_: nil,
83
+ # A cursor representing an item's token before which a page of results should end.
84
+ # Used to retrieve the previous page of results before this item.
85
+ ending_before: nil,
86
+ # Page size (for pagination).
87
+ page_size: nil,
88
+ # A cursor representing an item's token after which a page of results should
89
+ # begin. Used to retrieve the next page of results after this item.
90
+ starting_after: nil,
91
+ # Hold status to filter by.
92
+ status: nil,
93
+ request_options: {}
94
+ )
95
+ end
96
+
97
+ sig do
98
+ override.returns(
99
+ {
100
+ financial_account_token: String,
101
+ begin_: Time,
102
+ end_: Time,
103
+ ending_before: String,
104
+ page_size: Integer,
105
+ starting_after: String,
106
+ status: Lithic::HoldListParams::Status::OrSymbol,
107
+ request_options: Lithic::RequestOptions
108
+ }
109
+ )
110
+ end
111
+ def to_hash
112
+ end
113
+
114
+ # Hold status to filter by.
115
+ module Status
116
+ extend Lithic::Internal::Type::Enum
117
+
118
+ TaggedSymbol =
119
+ T.type_alias { T.all(Symbol, Lithic::HoldListParams::Status) }
120
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
121
+
122
+ PENDING = T.let(:PENDING, Lithic::HoldListParams::Status::TaggedSymbol)
123
+ SETTLED = T.let(:SETTLED, Lithic::HoldListParams::Status::TaggedSymbol)
124
+ EXPIRED = T.let(:EXPIRED, Lithic::HoldListParams::Status::TaggedSymbol)
125
+ VOIDED = T.let(:VOIDED, Lithic::HoldListParams::Status::TaggedSymbol)
126
+
127
+ sig do
128
+ override.returns(
129
+ T::Array[Lithic::HoldListParams::Status::TaggedSymbol]
130
+ )
131
+ end
132
+ def self.values
133
+ end
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,35 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class HoldRetrieveParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::HoldRetrieveParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :hold_token
16
+
17
+ sig do
18
+ params(
19
+ hold_token: String,
20
+ request_options: Lithic::RequestOptions::OrHash
21
+ ).returns(T.attached_class)
22
+ end
23
+ def self.new(hold_token:, request_options: {})
24
+ end
25
+
26
+ sig do
27
+ override.returns(
28
+ { hold_token: String, request_options: Lithic::RequestOptions }
29
+ )
30
+ end
31
+ def to_hash
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,49 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class HoldVoidParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::HoldVoidParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :hold_token
16
+
17
+ # Reason for voiding the hold
18
+ sig { returns(T.nilable(String)) }
19
+ attr_accessor :memo
20
+
21
+ sig do
22
+ params(
23
+ hold_token: String,
24
+ memo: T.nilable(String),
25
+ request_options: Lithic::RequestOptions::OrHash
26
+ ).returns(T.attached_class)
27
+ end
28
+ def self.new(
29
+ hold_token:,
30
+ # Reason for voiding the hold
31
+ memo: nil,
32
+ request_options: {}
33
+ )
34
+ end
35
+
36
+ sig do
37
+ override.returns(
38
+ {
39
+ hold_token: String,
40
+ memo: T.nilable(String),
41
+ request_options: Lithic::RequestOptions
42
+ }
43
+ )
44
+ end
45
+ def to_hash
46
+ end
47
+ end
48
+ end
49
+ end
@@ -45,6 +45,11 @@ module Lithic
45
45
  :PROGRAM_BANK_ACCOUNTS_PAYABLE,
46
46
  Lithic::InstanceFinancialAccountType::TaggedSymbol
47
47
  )
48
+ EARLY_DIRECT_DEPOSIT_FLOAT =
49
+ T.let(
50
+ :EARLY_DIRECT_DEPOSIT_FLOAT,
51
+ Lithic::InstanceFinancialAccountType::TaggedSymbol
52
+ )
48
53
 
49
54
  sig do
50
55
  override.returns(
@@ -16,7 +16,6 @@ module Lithic
16
16
  Lithic::AccountHolderVerificationWebhookEvent,
17
17
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
18
18
  Lithic::CardAuthorizationApprovalRequestWebhookEvent,
19
- Lithic::TokenizationDecisioningRequestWebhookEvent,
20
19
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
21
20
  Lithic::BalanceUpdatedWebhookEvent,
22
21
  Lithic::BookTransferTransactionCreatedWebhookEvent,
@@ -226,6 +226,7 @@ module Lithic
226
226
  OrSymbol = T.type_alias { T.any(Symbol, String) }
227
227
 
228
228
  ACH = T.let(:ACH, Lithic::Payment::Category::TaggedSymbol)
229
+ WIRE = T.let(:WIRE, Lithic::Payment::Category::TaggedSymbol)
229
230
  BALANCE_OR_FUNDING =
230
231
  T.let(:BALANCE_OR_FUNDING, Lithic::Payment::Category::TaggedSymbol)
231
232
  FEE = T.let(:FEE, Lithic::Payment::Category::TaggedSymbol)
@@ -260,6 +261,7 @@ module Lithic
260
261
  :MANAGEMENT_DISBURSEMENT,
261
262
  Lithic::Payment::Category::TaggedSymbol
262
263
  )
264
+ HOLD = T.let(:HOLD, Lithic::Payment::Category::TaggedSymbol)
263
265
  PROGRAM_FUNDING =
264
266
  T.let(:PROGRAM_FUNDING, Lithic::Payment::Category::TaggedSymbol)
265
267
 
@@ -312,8 +314,14 @@ module Lithic
312
314
  sig { returns(Lithic::Payment::Event::Result::TaggedSymbol) }
313
315
  attr_accessor :result
314
316
 
317
+ # Note: Inbound wire transfers are coming soon (availability varies by partner
318
+ # bank). Wire-related event types below are a preview. To learn more, contact your
319
+ # customer success manager.
320
+ #
315
321
  # Event types:
316
322
  #
323
+ # ACH events:
324
+ #
317
325
  # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
318
326
  # approval/release from an ACH hold.
319
327
  # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
@@ -329,6 +337,8 @@ module Lithic
329
337
  # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
330
338
  # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
331
339
  # balance.
340
+ # - `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to
341
+ # available balance.
332
342
  # - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
333
343
  # - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
334
344
  # Financial Institution.
@@ -336,6 +346,26 @@ module Lithic
336
346
  # Financial Institution.
337
347
  # - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
338
348
  # Financial Institution.
349
+ #
350
+ # Wire transfer events:
351
+ #
352
+ # - `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
353
+ # Federal Reserve and pending release to available balance.
354
+ # - `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
355
+ # pending to available balance.
356
+ # - `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
357
+ # frozen for regulatory review.
358
+ #
359
+ # Wire return events:
360
+ #
361
+ # - `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
362
+ # funds from an inbound wire transfer.
363
+ # - `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
364
+ # and pending acceptance.
365
+ # - `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
366
+ # Reserve and funds returned to sender.
367
+ # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
368
+ # Reserve.
339
369
  sig { returns(Lithic::Payment::Event::Type::TaggedSymbol) }
340
370
  attr_accessor :type
341
371
 
@@ -357,10 +387,16 @@ module Lithic
357
387
  end
358
388
  attr_writer :detailed_results
359
389
 
360
- # Payment event external ID, for example, ACH trace number.
390
+ # Payment event external ID. For ACH transactions, this is the ACH trace number.
391
+ # For inbound wire transfers, this is the IMAD (Input Message Accountability
392
+ # Data).
361
393
  sig { returns(T.nilable(String)) }
362
394
  attr_accessor :external_id
363
395
 
396
+ # Note: Inbound wire transfers are coming soon (availability varies by partner
397
+ # bank). Wire-related fields below are a preview. To learn more, contact your
398
+ # customer success manager.
399
+ #
364
400
  # Payment Event
365
401
  sig do
366
402
  params(
@@ -385,8 +421,14 @@ module Lithic
385
421
  # APPROVED financial events were successful while DECLINED financial events were
386
422
  # declined by user, Lithic, or the network.
387
423
  result:,
424
+ # Note: Inbound wire transfers are coming soon (availability varies by partner
425
+ # bank). Wire-related event types below are a preview. To learn more, contact your
426
+ # customer success manager.
427
+ #
388
428
  # Event types:
389
429
  #
430
+ # ACH events:
431
+ #
390
432
  # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
391
433
  # approval/release from an ACH hold.
392
434
  # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
@@ -402,6 +444,8 @@ module Lithic
402
444
  # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
403
445
  # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
404
446
  # balance.
447
+ # - `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to
448
+ # available balance.
405
449
  # - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
406
450
  # - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
407
451
  # Financial Institution.
@@ -409,10 +453,32 @@ module Lithic
409
453
  # Financial Institution.
410
454
  # - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
411
455
  # Financial Institution.
456
+ #
457
+ # Wire transfer events:
458
+ #
459
+ # - `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
460
+ # Federal Reserve and pending release to available balance.
461
+ # - `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
462
+ # pending to available balance.
463
+ # - `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
464
+ # frozen for regulatory review.
465
+ #
466
+ # Wire return events:
467
+ #
468
+ # - `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
469
+ # funds from an inbound wire transfer.
470
+ # - `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
471
+ # and pending acceptance.
472
+ # - `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
473
+ # Reserve and funds returned to sender.
474
+ # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
475
+ # Reserve.
412
476
  type:,
413
477
  # More detailed reasons for the event
414
478
  detailed_results: nil,
415
- # Payment event external ID, for example, ACH trace number.
479
+ # Payment event external ID. For ACH transactions, this is the ACH trace number.
480
+ # For inbound wire transfers, this is the IMAD (Input Message Accountability
481
+ # Data).
416
482
  external_id: nil
417
483
  )
418
484
  end
@@ -457,8 +523,14 @@ module Lithic
457
523
  end
458
524
  end
459
525
 
526
+ # Note: Inbound wire transfers are coming soon (availability varies by partner
527
+ # bank). Wire-related event types below are a preview. To learn more, contact your
528
+ # customer success manager.
529
+ #
460
530
  # Event types:
461
531
  #
532
+ # ACH events:
533
+ #
462
534
  # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
463
535
  # approval/release from an ACH hold.
464
536
  # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
@@ -474,6 +546,8 @@ module Lithic
474
546
  # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
475
547
  # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
476
548
  # balance.
549
+ # - `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to
550
+ # available balance.
477
551
  # - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
478
552
  # - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
479
553
  # Financial Institution.
@@ -481,6 +555,26 @@ module Lithic
481
555
  # Financial Institution.
482
556
  # - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
483
557
  # Financial Institution.
558
+ #
559
+ # Wire transfer events:
560
+ #
561
+ # - `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
562
+ # Federal Reserve and pending release to available balance.
563
+ # - `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
564
+ # pending to available balance.
565
+ # - `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
566
+ # frozen for regulatory review.
567
+ #
568
+ # Wire return events:
569
+ #
570
+ # - `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
571
+ # funds from an inbound wire transfer.
572
+ # - `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
573
+ # and pending acceptance.
574
+ # - `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
575
+ # Reserve and funds returned to sender.
576
+ # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
577
+ # Reserve.
484
578
  module Type
485
579
  extend Lithic::Internal::Type::Enum
486
580
 
@@ -533,6 +627,11 @@ module Lithic
533
627
  :ACH_RECEIPT_RELEASED,
534
628
  Lithic::Payment::Event::Type::TaggedSymbol
535
629
  )
630
+ ACH_RECEIPT_RELEASED_EARLY =
631
+ T.let(
632
+ :ACH_RECEIPT_RELEASED_EARLY,
633
+ Lithic::Payment::Event::Type::TaggedSymbol
634
+ )
536
635
  ACH_RECEIPT_SETTLED =
537
636
  T.let(
538
637
  :ACH_RECEIPT_SETTLED,
@@ -558,6 +657,41 @@ module Lithic
558
657
  :ACH_RETURN_SETTLED,
559
658
  Lithic::Payment::Event::Type::TaggedSymbol
560
659
  )
660
+ WIRE_TRANSFER_INBOUND_RECEIVED =
661
+ T.let(
662
+ :WIRE_TRANSFER_INBOUND_RECEIVED,
663
+ Lithic::Payment::Event::Type::TaggedSymbol
664
+ )
665
+ WIRE_TRANSFER_INBOUND_SETTLED =
666
+ T.let(
667
+ :WIRE_TRANSFER_INBOUND_SETTLED,
668
+ Lithic::Payment::Event::Type::TaggedSymbol
669
+ )
670
+ WIRE_TRANSFER_INBOUND_BLOCKED =
671
+ T.let(
672
+ :WIRE_TRANSFER_INBOUND_BLOCKED,
673
+ Lithic::Payment::Event::Type::TaggedSymbol
674
+ )
675
+ WIRE_RETURN_OUTBOUND_INITIATED =
676
+ T.let(
677
+ :WIRE_RETURN_OUTBOUND_INITIATED,
678
+ Lithic::Payment::Event::Type::TaggedSymbol
679
+ )
680
+ WIRE_RETURN_OUTBOUND_SENT =
681
+ T.let(
682
+ :WIRE_RETURN_OUTBOUND_SENT,
683
+ Lithic::Payment::Event::Type::TaggedSymbol
684
+ )
685
+ WIRE_RETURN_OUTBOUND_SETTLED =
686
+ T.let(
687
+ :WIRE_RETURN_OUTBOUND_SETTLED,
688
+ Lithic::Payment::Event::Type::TaggedSymbol
689
+ )
690
+ WIRE_RETURN_OUTBOUND_REJECTED =
691
+ T.let(
692
+ :WIRE_RETURN_OUTBOUND_REJECTED,
693
+ Lithic::Payment::Event::Type::TaggedSymbol
694
+ )
561
695
 
562
696
  sig do
563
697
  override.returns(
@@ -848,10 +982,6 @@ module Lithic
848
982
  sig { returns(T.nilable(String)) }
849
983
  attr_accessor :message_id
850
984
 
851
- # Payment details or invoice reference
852
- sig { returns(T.nilable(String)) }
853
- attr_accessor :remittance_information
854
-
855
985
  sig do
856
986
  params(
857
987
  wire_message_type: T.nilable(String),
@@ -859,8 +989,7 @@ module Lithic
859
989
  Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol,
860
990
  creditor: Lithic::WirePartyDetails::OrHash,
861
991
  debtor: Lithic::WirePartyDetails::OrHash,
862
- message_id: T.nilable(String),
863
- remittance_information: T.nilable(String)
992
+ message_id: T.nilable(String)
864
993
  ).returns(T.attached_class)
865
994
  end
866
995
  def self.new(
@@ -872,9 +1001,7 @@ module Lithic
872
1001
  debtor: nil,
873
1002
  # Point to point reference identifier, as assigned by the instructing party, used
874
1003
  # for tracking the message through the Fedwire system
875
- message_id: nil,
876
- # Payment details or invoice reference
877
- remittance_information: nil
1004
+ message_id: nil
878
1005
  )
879
1006
  end
880
1007
 
@@ -886,8 +1013,7 @@ module Lithic
886
1013
  Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol,
887
1014
  creditor: Lithic::WirePartyDetails,
888
1015
  debtor: Lithic::WirePartyDetails,
889
- message_id: T.nilable(String),
890
- remittance_information: T.nilable(String)
1016
+ message_id: T.nilable(String)
891
1017
  }
892
1018
  )
893
1019
  end
@@ -143,6 +143,11 @@ module Lithic
143
143
  :ACH_RECEIPT_RELEASED,
144
144
  Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
145
145
  )
146
+ ACH_RECEIPT_RELEASED_EARLY =
147
+ T.let(
148
+ :ACH_RECEIPT_RELEASED_EARLY,
149
+ Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
150
+ )
146
151
  ACH_RETURN_INITIATED =
147
152
  T.let(
148
153
  :ACH_RETURN_INITIATED,
@@ -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
@@ -516,9 +528,6 @@ module Lithic
516
528
 
517
529
  TokenizationDeactivateParams = Lithic::Models::TokenizationDeactivateParams
518
530
 
519
- TokenizationDecisioningRequestWebhookEvent =
520
- Lithic::Models::TokenizationDecisioningRequestWebhookEvent
521
-
522
531
  TokenizationDecisioningRetrieveSecretParams =
523
532
  Lithic::Models::TokenizationDecisioningRetrieveSecretParams
524
533
 
@@ -34,9 +34,9 @@ module Lithic
34
34
 
35
35
  # Updates a V2 Auth rule's properties
36
36
  #
37
- # If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
38
- # is provided, this will replace existing associations with the provided list of
39
- # entities.
37
+ # If `account_tokens`, `card_tokens`, `program_level`, `excluded_card_tokens`,
38
+ # `excluded_account_tokens`, or `excluded_business_account_tokens` is provided,
39
+ # this will replace existing associations with the provided list of entities.
40
40
  sig do
41
41
  params(
42
42
  auth_rule_token: String,
@@ -121,7 +121,8 @@ module Lithic
121
121
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
122
122
  Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
123
123
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
124
- Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
124
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
125
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
125
126
  )
126
127
  ),
127
128
  request_options: Lithic::RequestOptions::OrHash
@@ -185,6 +186,17 @@ module Lithic
185
186
  )
186
187
  end
187
188
 
189
+ # Returns all versions of an auth rule, sorted by version number descending
190
+ # (newest first).
191
+ sig do
192
+ params(
193
+ auth_rule_token: String,
194
+ request_options: Lithic::RequestOptions::OrHash
195
+ ).returns(Lithic::Models::AuthRules::V2ListVersionsResponse)
196
+ end
197
+ def list_versions(auth_rule_token, request_options: {})
198
+ end
199
+
188
200
  # Promotes the draft version of an Auth rule to the currently active version such
189
201
  # that it is enforced in the respective stream.
190
202
  sig do