lithic 0.1.0.pre.alpha.55 → 0.1.0.pre.alpha.56

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 (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  8. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  9. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +8 -53
  11. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  12. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  13. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  14. data/lib/lithic/models/auth_rules/v2_create_params.rb +14 -5
  15. data/lib/lithic/models/auth_rules/v2_create_response.rb +21 -8
  16. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -3
  17. data/lib/lithic/models/auth_rules/v2_draft_response.rb +21 -8
  18. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  19. data/lib/lithic/models/auth_rules/v2_list_response.rb +21 -8
  20. data/lib/lithic/models/auth_rules/v2_promote_response.rb +21 -8
  21. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +21 -8
  22. data/lib/lithic/models/auth_rules/v2_update_response.rb +21 -8
  23. data/lib/lithic/models/book_transfer_response.rb +1 -0
  24. data/lib/lithic/models/category_details.rb +27 -0
  25. data/lib/lithic/models/dispute.rb +242 -510
  26. data/lib/lithic/models/dispute_v2.rb +555 -0
  27. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  28. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  29. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  30. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  31. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  32. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  33. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  34. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  35. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  36. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  37. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  38. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  39. data/lib/lithic/models/external_payment.rb +3 -2
  40. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  41. data/lib/lithic/models/financial_account.rb +4 -3
  42. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  43. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -520
  44. data/lib/lithic/models/financial_accounts/statement.rb +73 -275
  45. data/lib/lithic/models/financial_event.rb +148 -0
  46. data/lib/lithic/models/financial_transaction.rb +3 -146
  47. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  48. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  49. data/lib/lithic/models/merchant.rb +70 -0
  50. data/lib/lithic/models/payment.rb +7 -5
  51. data/lib/lithic/models/payment_return_params.rb +62 -0
  52. data/lib/lithic/models/statement_totals.rb +100 -0
  53. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  54. data/lib/lithic/models/transaction.rb +3 -69
  55. data/lib/lithic/models/transactions/events/enhanced_data.rb +49 -40
  56. data/lib/lithic/models/transfer.rb +3 -146
  57. data/lib/lithic/models.rb +18 -0
  58. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  59. data/lib/lithic/resources/disputes.rb +10 -10
  60. data/lib/lithic/resources/disputes_v2.rb +74 -0
  61. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  62. data/lib/lithic/resources/payments.rb +48 -0
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +16 -5
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  67. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  68. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  69. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  70. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  71. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +13 -153
  72. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  73. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  74. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  75. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -7
  76. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -7
  77. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -4
  78. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -7
  79. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  80. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -7
  81. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -7
  82. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -7
  83. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -7
  84. data/rbi/lithic/models/book_transfer_response.rbi +2 -0
  85. data/rbi/lithic/models/category_details.rbi +43 -0
  86. data/rbi/lithic/models/dispute.rbi +395 -942
  87. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  88. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  89. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  90. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  91. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  92. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  93. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  94. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  95. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  96. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  97. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  98. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  99. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  100. data/rbi/lithic/models/external_payment.rbi +5 -6
  101. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  102. data/rbi/lithic/models/financial_account.rbi +12 -4
  103. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  104. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -802
  105. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -430
  106. data/rbi/lithic/models/financial_event.rbi +409 -0
  107. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  108. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  109. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  110. data/rbi/lithic/models/merchant.rbi +89 -0
  111. data/rbi/lithic/models/payment.rbi +16 -7
  112. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  113. data/rbi/lithic/models/statement_totals.rbi +128 -0
  114. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  115. data/rbi/lithic/models/transaction.rbi +4 -90
  116. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +74 -133
  117. data/rbi/lithic/models/transfer.rbi +4 -436
  118. data/rbi/lithic/models.rbi +19 -0
  119. data/rbi/lithic/resources/auth_rules/v2.rbi +8 -3
  120. data/rbi/lithic/resources/disputes.rbi +5 -7
  121. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  122. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  123. data/rbi/lithic/resources/payments.rbi +46 -0
  124. data/sig/lithic/client.rbs +2 -0
  125. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  126. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  127. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  128. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  129. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  130. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +10 -61
  131. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  132. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  133. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  134. data/sig/lithic/models/auth_rules/v2_create_params.rbs +11 -1
  135. data/sig/lithic/models/auth_rules/v2_create_response.rbs +13 -1
  136. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  137. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +13 -1
  138. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  139. data/sig/lithic/models/auth_rules/v2_list_response.rbs +13 -1
  140. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +13 -1
  141. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +13 -1
  142. data/sig/lithic/models/auth_rules/v2_update_response.rbs +13 -1
  143. data/sig/lithic/models/book_transfer_response.rbs +3 -1
  144. data/sig/lithic/models/category_details.rbs +26 -0
  145. data/sig/lithic/models/dispute.rbs +157 -417
  146. data/sig/lithic/models/dispute_v2.rbs +438 -0
  147. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  148. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  149. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  150. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  151. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  152. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  153. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  154. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  155. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  156. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  157. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  158. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  159. data/sig/lithic/models/external_payment.rbs +7 -7
  160. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  161. data/sig/lithic/models/financial_account.rbs +4 -4
  162. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  163. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -464
  164. data/sig/lithic/models/financial_accounts/statement.rbs +59 -244
  165. data/sig/lithic/models/financial_event.rbs +216 -0
  166. data/sig/lithic/models/financial_transaction.rbs +4 -217
  167. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  168. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  169. data/sig/lithic/models/merchant.rbs +50 -0
  170. data/sig/lithic/models/payment.rbs +9 -5
  171. data/sig/lithic/models/payment_return_params.rbs +46 -0
  172. data/sig/lithic/models/statement_totals.rbs +76 -0
  173. data/sig/lithic/models/transaction.rbs +4 -51
  174. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  175. data/sig/lithic/models/transfer.rbs +6 -219
  176. data/sig/lithic/models.rbs +18 -0
  177. data/sig/lithic/resources/disputes.rbs +5 -5
  178. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  179. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  180. data/sig/lithic/resources/payments.rbs +10 -0
  181. metadata +50 -17
  182. data/lib/lithic/models/dispute_create_response.rb +0 -326
  183. data/lib/lithic/models/dispute_delete_response.rb +0 -326
  184. data/lib/lithic/models/dispute_list_response.rb +0 -326
  185. data/lib/lithic/models/dispute_retrieve_response.rb +0 -326
  186. data/lib/lithic/models/dispute_update_response.rb +0 -326
  187. data/rbi/lithic/models/dispute_create_response.rbi +0 -599
  188. data/rbi/lithic/models/dispute_delete_response.rbi +0 -599
  189. data/rbi/lithic/models/dispute_list_response.rbi +0 -582
  190. data/rbi/lithic/models/dispute_retrieve_response.rbi +0 -601
  191. data/rbi/lithic/models/dispute_update_response.rbi +0 -599
  192. data/sig/lithic/models/dispute_create_response.rbs +0 -210
  193. data/sig/lithic/models/dispute_delete_response.rbs +0 -210
  194. data/sig/lithic/models/dispute_list_response.rbs +0 -210
  195. data/sig/lithic/models/dispute_retrieve_response.rbs +0 -210
  196. data/sig/lithic/models/dispute_update_response.rbs +0 -210
@@ -0,0 +1,789 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Lithic::AuthRules::ConditionalACHActionParameters,
11
+ Lithic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The action to take if the conditions are met
16
+ sig do
17
+ returns(
18
+ T.any(
19
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction,
20
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction
21
+ )
22
+ )
23
+ end
24
+ attr_accessor :action
25
+
26
+ sig do
27
+ returns(
28
+ T::Array[
29
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition
30
+ ]
31
+ )
32
+ end
33
+ attr_accessor :conditions
34
+
35
+ sig do
36
+ params(
37
+ action:
38
+ T.any(
39
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::OrHash,
40
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::OrHash
41
+ ),
42
+ conditions:
43
+ T::Array[
44
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::OrHash
45
+ ]
46
+ ).returns(T.attached_class)
47
+ end
48
+ def self.new(
49
+ # The action to take if the conditions are met
50
+ action:,
51
+ conditions:
52
+ )
53
+ end
54
+
55
+ sig do
56
+ override.returns(
57
+ {
58
+ action:
59
+ T.any(
60
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction,
61
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction
62
+ ),
63
+ conditions:
64
+ T::Array[
65
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition
66
+ ]
67
+ }
68
+ )
69
+ end
70
+ def to_hash
71
+ end
72
+
73
+ # The action to take if the conditions are met
74
+ module Action
75
+ extend Lithic::Internal::Type::Union
76
+
77
+ Variants =
78
+ T.type_alias do
79
+ T.any(
80
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction,
81
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction
82
+ )
83
+ end
84
+
85
+ class ApproveAction < Lithic::Internal::Type::BaseModel
86
+ OrHash =
87
+ T.type_alias do
88
+ T.any(
89
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction,
90
+ Lithic::Internal::AnyHash
91
+ )
92
+ end
93
+
94
+ # Approve the ACH transaction
95
+ sig do
96
+ returns(
97
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol
98
+ )
99
+ end
100
+ attr_accessor :type
101
+
102
+ sig do
103
+ params(
104
+ type:
105
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol
106
+ ).returns(T.attached_class)
107
+ end
108
+ def self.new(
109
+ # Approve the ACH transaction
110
+ type:
111
+ )
112
+ end
113
+
114
+ sig do
115
+ override.returns(
116
+ {
117
+ type:
118
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol
119
+ }
120
+ )
121
+ end
122
+ def to_hash
123
+ end
124
+
125
+ # Approve the ACH transaction
126
+ module Type
127
+ extend Lithic::Internal::Type::Enum
128
+
129
+ TaggedSymbol =
130
+ T.type_alias do
131
+ T.all(
132
+ Symbol,
133
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type
134
+ )
135
+ end
136
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
137
+
138
+ APPROVE =
139
+ T.let(
140
+ :APPROVE,
141
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::TaggedSymbol
142
+ )
143
+
144
+ sig do
145
+ override.returns(
146
+ T::Array[
147
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::TaggedSymbol
148
+ ]
149
+ )
150
+ end
151
+ def self.values
152
+ end
153
+ end
154
+ end
155
+
156
+ class ReturnAction < Lithic::Internal::Type::BaseModel
157
+ OrHash =
158
+ T.type_alias do
159
+ T.any(
160
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction,
161
+ Lithic::Internal::AnyHash
162
+ )
163
+ end
164
+
165
+ # NACHA return code to use when returning the transaction. Note that the list of
166
+ # available return codes is subject to an allowlist configured at the program
167
+ # level
168
+ sig do
169
+ returns(
170
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::OrSymbol
171
+ )
172
+ end
173
+ attr_accessor :code
174
+
175
+ # Return the ACH transaction
176
+ sig do
177
+ returns(
178
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type::OrSymbol
179
+ )
180
+ end
181
+ attr_accessor :type
182
+
183
+ sig do
184
+ params(
185
+ code:
186
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::OrSymbol,
187
+ type:
188
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type::OrSymbol
189
+ ).returns(T.attached_class)
190
+ end
191
+ def self.new(
192
+ # NACHA return code to use when returning the transaction. Note that the list of
193
+ # available return codes is subject to an allowlist configured at the program
194
+ # level
195
+ code:,
196
+ # Return the ACH transaction
197
+ type:
198
+ )
199
+ end
200
+
201
+ sig do
202
+ override.returns(
203
+ {
204
+ code:
205
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::OrSymbol,
206
+ type:
207
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type::OrSymbol
208
+ }
209
+ )
210
+ end
211
+ def to_hash
212
+ end
213
+
214
+ # NACHA return code to use when returning the transaction. Note that the list of
215
+ # available return codes is subject to an allowlist configured at the program
216
+ # level
217
+ module Code
218
+ extend Lithic::Internal::Type::Enum
219
+
220
+ TaggedSymbol =
221
+ T.type_alias do
222
+ T.all(
223
+ Symbol,
224
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code
225
+ )
226
+ end
227
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
228
+
229
+ R01 =
230
+ T.let(
231
+ :R01,
232
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
233
+ )
234
+ R02 =
235
+ T.let(
236
+ :R02,
237
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
238
+ )
239
+ R03 =
240
+ T.let(
241
+ :R03,
242
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
243
+ )
244
+ R04 =
245
+ T.let(
246
+ :R04,
247
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
248
+ )
249
+ R05 =
250
+ T.let(
251
+ :R05,
252
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
253
+ )
254
+ R06 =
255
+ T.let(
256
+ :R06,
257
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
258
+ )
259
+ R07 =
260
+ T.let(
261
+ :R07,
262
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
263
+ )
264
+ R08 =
265
+ T.let(
266
+ :R08,
267
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
268
+ )
269
+ R09 =
270
+ T.let(
271
+ :R09,
272
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
273
+ )
274
+ R10 =
275
+ T.let(
276
+ :R10,
277
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
278
+ )
279
+ R11 =
280
+ T.let(
281
+ :R11,
282
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
283
+ )
284
+ R12 =
285
+ T.let(
286
+ :R12,
287
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
288
+ )
289
+ R13 =
290
+ T.let(
291
+ :R13,
292
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
293
+ )
294
+ R14 =
295
+ T.let(
296
+ :R14,
297
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
298
+ )
299
+ R15 =
300
+ T.let(
301
+ :R15,
302
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
303
+ )
304
+ R16 =
305
+ T.let(
306
+ :R16,
307
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
308
+ )
309
+ R17 =
310
+ T.let(
311
+ :R17,
312
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
313
+ )
314
+ R18 =
315
+ T.let(
316
+ :R18,
317
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
318
+ )
319
+ R19 =
320
+ T.let(
321
+ :R19,
322
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
323
+ )
324
+ R20 =
325
+ T.let(
326
+ :R20,
327
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
328
+ )
329
+ R21 =
330
+ T.let(
331
+ :R21,
332
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
333
+ )
334
+ R22 =
335
+ T.let(
336
+ :R22,
337
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
338
+ )
339
+ R23 =
340
+ T.let(
341
+ :R23,
342
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
343
+ )
344
+ R24 =
345
+ T.let(
346
+ :R24,
347
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
348
+ )
349
+ R25 =
350
+ T.let(
351
+ :R25,
352
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
353
+ )
354
+ R26 =
355
+ T.let(
356
+ :R26,
357
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
358
+ )
359
+ R27 =
360
+ T.let(
361
+ :R27,
362
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
363
+ )
364
+ R28 =
365
+ T.let(
366
+ :R28,
367
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
368
+ )
369
+ R29 =
370
+ T.let(
371
+ :R29,
372
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
373
+ )
374
+ R30 =
375
+ T.let(
376
+ :R30,
377
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
378
+ )
379
+ R31 =
380
+ T.let(
381
+ :R31,
382
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
383
+ )
384
+ R32 =
385
+ T.let(
386
+ :R32,
387
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
388
+ )
389
+ R33 =
390
+ T.let(
391
+ :R33,
392
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
393
+ )
394
+ R34 =
395
+ T.let(
396
+ :R34,
397
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
398
+ )
399
+ R35 =
400
+ T.let(
401
+ :R35,
402
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
403
+ )
404
+ R36 =
405
+ T.let(
406
+ :R36,
407
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
408
+ )
409
+ R37 =
410
+ T.let(
411
+ :R37,
412
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
413
+ )
414
+ R38 =
415
+ T.let(
416
+ :R38,
417
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
418
+ )
419
+ R39 =
420
+ T.let(
421
+ :R39,
422
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
423
+ )
424
+ R40 =
425
+ T.let(
426
+ :R40,
427
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
428
+ )
429
+ R41 =
430
+ T.let(
431
+ :R41,
432
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
433
+ )
434
+ R42 =
435
+ T.let(
436
+ :R42,
437
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
438
+ )
439
+ R43 =
440
+ T.let(
441
+ :R43,
442
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
443
+ )
444
+ R44 =
445
+ T.let(
446
+ :R44,
447
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
448
+ )
449
+ R45 =
450
+ T.let(
451
+ :R45,
452
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
453
+ )
454
+ R46 =
455
+ T.let(
456
+ :R46,
457
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
458
+ )
459
+ R47 =
460
+ T.let(
461
+ :R47,
462
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
463
+ )
464
+ R50 =
465
+ T.let(
466
+ :R50,
467
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
468
+ )
469
+ R51 =
470
+ T.let(
471
+ :R51,
472
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
473
+ )
474
+ R52 =
475
+ T.let(
476
+ :R52,
477
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
478
+ )
479
+ R53 =
480
+ T.let(
481
+ :R53,
482
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
483
+ )
484
+ R61 =
485
+ T.let(
486
+ :R61,
487
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
488
+ )
489
+ R62 =
490
+ T.let(
491
+ :R62,
492
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
493
+ )
494
+ R67 =
495
+ T.let(
496
+ :R67,
497
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
498
+ )
499
+ R68 =
500
+ T.let(
501
+ :R68,
502
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
503
+ )
504
+ R69 =
505
+ T.let(
506
+ :R69,
507
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
508
+ )
509
+ R70 =
510
+ T.let(
511
+ :R70,
512
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
513
+ )
514
+ R71 =
515
+ T.let(
516
+ :R71,
517
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
518
+ )
519
+ R72 =
520
+ T.let(
521
+ :R72,
522
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
523
+ )
524
+ R73 =
525
+ T.let(
526
+ :R73,
527
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
528
+ )
529
+ R74 =
530
+ T.let(
531
+ :R74,
532
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
533
+ )
534
+ R75 =
535
+ T.let(
536
+ :R75,
537
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
538
+ )
539
+ R76 =
540
+ T.let(
541
+ :R76,
542
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
543
+ )
544
+ R77 =
545
+ T.let(
546
+ :R77,
547
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
548
+ )
549
+ R80 =
550
+ T.let(
551
+ :R80,
552
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
553
+ )
554
+ R81 =
555
+ T.let(
556
+ :R81,
557
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
558
+ )
559
+ R82 =
560
+ T.let(
561
+ :R82,
562
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
563
+ )
564
+ R83 =
565
+ T.let(
566
+ :R83,
567
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
568
+ )
569
+ R84 =
570
+ T.let(
571
+ :R84,
572
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
573
+ )
574
+ R85 =
575
+ T.let(
576
+ :R85,
577
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
578
+ )
579
+
580
+ sig do
581
+ override.returns(
582
+ T::Array[
583
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code::TaggedSymbol
584
+ ]
585
+ )
586
+ end
587
+ def self.values
588
+ end
589
+ end
590
+
591
+ # Return the ACH transaction
592
+ module Type
593
+ extend Lithic::Internal::Type::Enum
594
+
595
+ TaggedSymbol =
596
+ T.type_alias do
597
+ T.all(
598
+ Symbol,
599
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type
600
+ )
601
+ end
602
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
603
+
604
+ RETURN =
605
+ T.let(
606
+ :RETURN,
607
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type::TaggedSymbol
608
+ )
609
+
610
+ sig do
611
+ override.returns(
612
+ T::Array[
613
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type::TaggedSymbol
614
+ ]
615
+ )
616
+ end
617
+ def self.values
618
+ end
619
+ end
620
+ end
621
+
622
+ sig do
623
+ override.returns(
624
+ T::Array[
625
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::Variants
626
+ ]
627
+ )
628
+ end
629
+ def self.variants
630
+ end
631
+ end
632
+
633
+ class Condition < Lithic::Internal::Type::BaseModel
634
+ OrHash =
635
+ T.type_alias do
636
+ T.any(
637
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition,
638
+ Lithic::Internal::AnyHash
639
+ )
640
+ end
641
+
642
+ # The attribute to target.
643
+ #
644
+ # The following attributes may be targeted:
645
+ #
646
+ # - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
647
+ # - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
648
+ # ID) of the entity initiating the ACH transaction.
649
+ # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
650
+ # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
651
+ # (cents).
652
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
653
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
654
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
655
+ # (Telephone-Initiated Entry), and others.
656
+ # - `MEMO`: Optional memo or description field included with the ACH transaction.
657
+ sig do
658
+ returns(
659
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol
660
+ )
661
+ end
662
+ attr_accessor :attribute
663
+
664
+ # The operation to apply to the attribute
665
+ sig { returns(Lithic::AuthRules::ConditionalOperation::OrSymbol) }
666
+ attr_accessor :operation
667
+
668
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
669
+ sig { returns(Lithic::AuthRules::ConditionalValue::Variants) }
670
+ attr_accessor :value
671
+
672
+ sig do
673
+ params(
674
+ attribute:
675
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol,
676
+ operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
677
+ value: Lithic::AuthRules::ConditionalValue::Variants
678
+ ).returns(T.attached_class)
679
+ end
680
+ def self.new(
681
+ # The attribute to target.
682
+ #
683
+ # The following attributes may be targeted:
684
+ #
685
+ # - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
686
+ # - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
687
+ # ID) of the entity initiating the ACH transaction.
688
+ # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
689
+ # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
690
+ # (cents).
691
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
692
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
693
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
694
+ # (Telephone-Initiated Entry), and others.
695
+ # - `MEMO`: Optional memo or description field included with the ACH transaction.
696
+ attribute:,
697
+ # The operation to apply to the attribute
698
+ operation:,
699
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
700
+ value:
701
+ )
702
+ end
703
+
704
+ sig do
705
+ override.returns(
706
+ {
707
+ attribute:
708
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol,
709
+ operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
710
+ value: Lithic::AuthRules::ConditionalValue::Variants
711
+ }
712
+ )
713
+ end
714
+ def to_hash
715
+ end
716
+
717
+ # The attribute to target.
718
+ #
719
+ # The following attributes may be targeted:
720
+ #
721
+ # - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
722
+ # - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
723
+ # ID) of the entity initiating the ACH transaction.
724
+ # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
725
+ # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
726
+ # (cents).
727
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
728
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
729
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
730
+ # (Telephone-Initiated Entry), and others.
731
+ # - `MEMO`: Optional memo or description field included with the ACH transaction.
732
+ module Attribute
733
+ extend Lithic::Internal::Type::Enum
734
+
735
+ TaggedSymbol =
736
+ T.type_alias do
737
+ T.all(
738
+ Symbol,
739
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute
740
+ )
741
+ end
742
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
743
+
744
+ COMPANY_NAME =
745
+ T.let(
746
+ :COMPANY_NAME,
747
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
748
+ )
749
+ COMPANY_ID =
750
+ T.let(
751
+ :COMPANY_ID,
752
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
753
+ )
754
+ TIMESTAMP =
755
+ T.let(
756
+ :TIMESTAMP,
757
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
758
+ )
759
+ TRANSACTION_AMOUNT =
760
+ T.let(
761
+ :TRANSACTION_AMOUNT,
762
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
763
+ )
764
+ SEC_CODE =
765
+ T.let(
766
+ :SEC_CODE,
767
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
768
+ )
769
+ MEMO =
770
+ T.let(
771
+ :MEMO,
772
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
773
+ )
774
+
775
+ sig do
776
+ override.returns(
777
+ T::Array[
778
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
779
+ ]
780
+ )
781
+ end
782
+ def self.values
783
+ end
784
+ end
785
+ end
786
+ end
787
+ end
788
+ end
789
+ end