lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +1 -1
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
  7. data/lib/lithic/internal/type/array_of.rb +1 -0
  8. data/lib/lithic/internal/type/base_model.rb +3 -1
  9. data/lib/lithic/internal/type/converter.rb +27 -0
  10. data/lib/lithic/internal/type/hash_of.rb +1 -0
  11. data/lib/lithic/internal/type/union.rb +9 -7
  12. data/lib/lithic/internal/util.rb +1 -1
  13. data/lib/lithic/models/account_activity_list_params.rb +156 -0
  14. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  15. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  17. data/lib/lithic/models/account_holder.rb +16 -19
  18. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  19. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  21. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  22. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  23. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  24. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
  25. data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
  26. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
  27. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  28. data/lib/lithic/models/book_transfer_response.rb +124 -28
  29. data/lib/lithic/models/document.rb +1 -3
  30. data/lib/lithic/models/events/subscription_create_params.rb +1 -3
  31. data/lib/lithic/models/events/subscription_update_params.rb +1 -3
  32. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  33. data/lib/lithic/models/external_payment.rb +89 -48
  34. data/lib/lithic/models/financial_account.rb +1 -0
  35. data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
  36. data/lib/lithic/models/financial_accounts/statement.rb +3 -10
  37. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
  38. data/lib/lithic/models/financial_transaction.rb +2 -0
  39. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  40. data/lib/lithic/models/kyb.rb +2 -2
  41. data/lib/lithic/models/management_operation_transaction.rb +90 -63
  42. data/lib/lithic/models/payment.rb +60 -1
  43. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  44. data/lib/lithic/models/settlement_detail.rb +1 -0
  45. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
  46. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  47. data/lib/lithic/models/tokenization.rb +1 -1
  48. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  49. data/lib/lithic/models/transfer.rb +2 -0
  50. data/lib/lithic/models/wire_party_details.rb +40 -0
  51. data/lib/lithic/models.rb +6 -0
  52. data/lib/lithic/resources/account_activity.rb +80 -0
  53. data/lib/lithic/resources/account_holders.rb +9 -9
  54. data/lib/lithic/resources/book_transfers.rb +7 -3
  55. data/lib/lithic/resources/reports/settlement.rb +1 -1
  56. data/lib/lithic/resources/tokenizations.rb +2 -2
  57. data/lib/lithic/version.rb +1 -1
  58. data/lib/lithic.rb +7 -2
  59. data/rbi/lithic/client.rbi +3 -0
  60. data/rbi/lithic/errors.rbi +2 -2
  61. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  62. data/rbi/lithic/internal/type/converter.rbi +46 -0
  63. data/rbi/lithic/internal/type/union.rbi +7 -2
  64. data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
  65. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  66. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  67. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  68. data/rbi/lithic/models/account_holder.rbi +21 -23
  69. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  70. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  71. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  72. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  73. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
  74. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
  75. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  76. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  77. data/rbi/lithic/models/external_payment.rbi +147 -60
  78. data/rbi/lithic/models/financial_account.rbi +5 -0
  79. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  80. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  81. data/rbi/lithic/models/kyb.rbi +2 -2
  82. data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
  83. data/rbi/lithic/models/payment.rbi +103 -3
  84. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  85. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  86. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
  87. data/rbi/lithic/models/transfer.rbi +1 -0
  88. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  89. data/rbi/lithic/models.rbi +7 -0
  90. data/rbi/lithic/resources/account_activity.rbi +80 -0
  91. data/rbi/lithic/resources/account_holders.rbi +28 -29
  92. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  93. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  94. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  95. data/sig/lithic/client.rbs +2 -0
  96. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  97. data/sig/lithic/internal/type/converter.rbs +17 -0
  98. data/sig/lithic/internal/type/union.rbs +2 -2
  99. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  100. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  101. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  102. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  103. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  104. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  105. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  106. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  107. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  108. data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
  109. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  110. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  111. data/sig/lithic/models/external_payment.rbs +91 -40
  112. data/sig/lithic/models/financial_account.rbs +2 -0
  113. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  114. data/sig/lithic/models/management_operation_transaction.rbs +95 -44
  115. data/sig/lithic/models/payment.rbs +61 -3
  116. data/sig/lithic/models/settlement_detail.rbs +2 -0
  117. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
  118. data/sig/lithic/models/wire_party_details.rbs +35 -0
  119. data/sig/lithic/models.rbs +6 -0
  120. data/sig/lithic/resources/account_activity.rbs +27 -0
  121. data/sig/lithic/resources/account_holders.rbs +3 -3
  122. data/sig/lithic/resources/book_transfers.rbs +2 -0
  123. data/sig/lithic/resources/tokenizations.rbs +1 -1
  124. metadata +20 -5
  125. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  126. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  127. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -86,6 +86,52 @@ module Lithic
86
86
  def self.type_info(spec)
87
87
  end
88
88
 
89
+ # @api private
90
+ sig do
91
+ params(
92
+ type_info:
93
+ T.any(
94
+ {
95
+ const:
96
+ T.nilable(
97
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
98
+ ),
99
+ enum:
100
+ T.nilable(
101
+ T.proc.returns(Lithic::Internal::Type::Converter::Input)
102
+ ),
103
+ union:
104
+ T.nilable(
105
+ T.proc.returns(Lithic::Internal::Type::Converter::Input)
106
+ )
107
+ },
108
+ T.proc.returns(Lithic::Internal::Type::Converter::Input),
109
+ Lithic::Internal::Type::Converter::Input
110
+ ),
111
+ spec:
112
+ T.any(
113
+ {
114
+ const:
115
+ T.nilable(
116
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
117
+ ),
118
+ enum:
119
+ T.nilable(
120
+ T.proc.returns(Lithic::Internal::Type::Converter::Input)
121
+ ),
122
+ union:
123
+ T.nilable(
124
+ T.proc.returns(Lithic::Internal::Type::Converter::Input)
125
+ )
126
+ },
127
+ T.proc.returns(Lithic::Internal::Type::Converter::Input),
128
+ Lithic::Internal::Type::Converter::Input
129
+ )
130
+ ).returns(Lithic::Internal::AnyHash)
131
+ end
132
+ def self.meta_info(type_info, spec)
133
+ end
134
+
89
135
  # @api private
90
136
  sig do
91
137
  params(translate_names: T::Boolean).returns(
@@ -16,7 +16,8 @@ module Lithic
16
16
  T::Array[
17
17
  [
18
18
  T.nilable(Symbol),
19
- T.proc.returns(Lithic::Internal::Type::Converter::Input)
19
+ T.proc.returns(Lithic::Internal::Type::Converter::Input),
20
+ Lithic::Internal::AnyHash
20
21
  ]
21
22
  ]
22
23
  )
@@ -25,7 +26,11 @@ module Lithic
25
26
  end
26
27
 
27
28
  # @api private
28
- sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) }
29
+ sig do
30
+ returns(
31
+ T::Array[[T.nilable(Symbol), T.anything, Lithic::Internal::AnyHash]]
32
+ )
33
+ end
29
34
  protected def derefed_variants
30
35
  end
31
36
 
@@ -0,0 +1,359 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class AccountActivityListParams < 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::AccountActivityListParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ # Filter by account token
15
+ sig { returns(T.nilable(String)) }
16
+ attr_reader :account_token
17
+
18
+ sig { params(account_token: String).void }
19
+ attr_writer :account_token
20
+
21
+ # Date string in RFC 3339 format. Only entries created after the specified time
22
+ # will be included. UTC time zone.
23
+ sig { returns(T.nilable(Time)) }
24
+ attr_reader :begin_
25
+
26
+ sig { params(begin_: Time).void }
27
+ attr_writer :begin_
28
+
29
+ # Filter by business account token
30
+ sig { returns(T.nilable(String)) }
31
+ attr_reader :business_account_token
32
+
33
+ sig { params(business_account_token: String).void }
34
+ attr_writer :business_account_token
35
+
36
+ # Filter by transaction category
37
+ sig do
38
+ returns(
39
+ T.nilable(Lithic::AccountActivityListParams::Category::OrSymbol)
40
+ )
41
+ end
42
+ attr_reader :category
43
+
44
+ sig do
45
+ params(
46
+ category: Lithic::AccountActivityListParams::Category::OrSymbol
47
+ ).void
48
+ end
49
+ attr_writer :category
50
+
51
+ # Date string in RFC 3339 format. Only entries created before the specified time
52
+ # will be included. UTC time zone.
53
+ sig { returns(T.nilable(Time)) }
54
+ attr_reader :end_
55
+
56
+ sig { params(end_: Time).void }
57
+ attr_writer :end_
58
+
59
+ # A cursor representing an item's token before which a page of results should end.
60
+ # Used to retrieve the previous page of results before this item.
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :ending_before
63
+
64
+ sig { params(ending_before: String).void }
65
+ attr_writer :ending_before
66
+
67
+ # Filter by financial account token
68
+ sig { returns(T.nilable(String)) }
69
+ attr_reader :financial_account_token
70
+
71
+ sig { params(financial_account_token: String).void }
72
+ attr_writer :financial_account_token
73
+
74
+ # Page size (for pagination).
75
+ sig { returns(T.nilable(Integer)) }
76
+ attr_reader :page_size
77
+
78
+ sig { params(page_size: Integer).void }
79
+ attr_writer :page_size
80
+
81
+ # Filter by transaction result
82
+ sig do
83
+ returns(
84
+ T.nilable(
85
+ T::Array[Lithic::AccountActivityListParams::Result::OrSymbol]
86
+ )
87
+ )
88
+ end
89
+ attr_reader :result
90
+
91
+ sig do
92
+ params(
93
+ result: T::Array[Lithic::AccountActivityListParams::Result::OrSymbol]
94
+ ).void
95
+ end
96
+ attr_writer :result
97
+
98
+ # A cursor representing an item's token after which a page of results should
99
+ # begin. Used to retrieve the next page of results after this item.
100
+ sig { returns(T.nilable(String)) }
101
+ attr_reader :starting_after
102
+
103
+ sig { params(starting_after: String).void }
104
+ attr_writer :starting_after
105
+
106
+ # Filter by transaction status
107
+ sig do
108
+ returns(
109
+ T.nilable(
110
+ T::Array[Lithic::AccountActivityListParams::Status::OrSymbol]
111
+ )
112
+ )
113
+ end
114
+ attr_reader :status
115
+
116
+ sig do
117
+ params(
118
+ status: T::Array[Lithic::AccountActivityListParams::Status::OrSymbol]
119
+ ).void
120
+ end
121
+ attr_writer :status
122
+
123
+ sig do
124
+ params(
125
+ account_token: String,
126
+ begin_: Time,
127
+ business_account_token: String,
128
+ category: Lithic::AccountActivityListParams::Category::OrSymbol,
129
+ end_: Time,
130
+ ending_before: String,
131
+ financial_account_token: String,
132
+ page_size: Integer,
133
+ result: T::Array[Lithic::AccountActivityListParams::Result::OrSymbol],
134
+ starting_after: String,
135
+ status: T::Array[Lithic::AccountActivityListParams::Status::OrSymbol],
136
+ request_options: Lithic::RequestOptions::OrHash
137
+ ).returns(T.attached_class)
138
+ end
139
+ def self.new(
140
+ # Filter by account token
141
+ account_token: nil,
142
+ # Date string in RFC 3339 format. Only entries created after the specified time
143
+ # will be included. UTC time zone.
144
+ begin_: nil,
145
+ # Filter by business account token
146
+ business_account_token: nil,
147
+ # Filter by transaction category
148
+ category: nil,
149
+ # Date string in RFC 3339 format. Only entries created before the specified time
150
+ # will be included. UTC time zone.
151
+ end_: nil,
152
+ # A cursor representing an item's token before which a page of results should end.
153
+ # Used to retrieve the previous page of results before this item.
154
+ ending_before: nil,
155
+ # Filter by financial account token
156
+ financial_account_token: nil,
157
+ # Page size (for pagination).
158
+ page_size: nil,
159
+ # Filter by transaction result
160
+ result: nil,
161
+ # A cursor representing an item's token after which a page of results should
162
+ # begin. Used to retrieve the next page of results after this item.
163
+ starting_after: nil,
164
+ # Filter by transaction status
165
+ status: nil,
166
+ request_options: {}
167
+ )
168
+ end
169
+
170
+ sig do
171
+ override.returns(
172
+ {
173
+ account_token: String,
174
+ begin_: Time,
175
+ business_account_token: String,
176
+ category: Lithic::AccountActivityListParams::Category::OrSymbol,
177
+ end_: Time,
178
+ ending_before: String,
179
+ financial_account_token: String,
180
+ page_size: Integer,
181
+ result:
182
+ T::Array[Lithic::AccountActivityListParams::Result::OrSymbol],
183
+ starting_after: String,
184
+ status:
185
+ T::Array[Lithic::AccountActivityListParams::Status::OrSymbol],
186
+ request_options: Lithic::RequestOptions
187
+ }
188
+ )
189
+ end
190
+ def to_hash
191
+ end
192
+
193
+ # Filter by transaction category
194
+ module Category
195
+ extend Lithic::Internal::Type::Enum
196
+
197
+ TaggedSymbol =
198
+ T.type_alias do
199
+ T.all(Symbol, Lithic::AccountActivityListParams::Category)
200
+ end
201
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
202
+
203
+ ACH =
204
+ T.let(:ACH, Lithic::AccountActivityListParams::Category::TaggedSymbol)
205
+ BALANCE_OR_FUNDING =
206
+ T.let(
207
+ :BALANCE_OR_FUNDING,
208
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
209
+ )
210
+ CARD =
211
+ T.let(
212
+ :CARD,
213
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
214
+ )
215
+ EXTERNAL_ACH =
216
+ T.let(
217
+ :EXTERNAL_ACH,
218
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
219
+ )
220
+ EXTERNAL_CHECK =
221
+ T.let(
222
+ :EXTERNAL_CHECK,
223
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
224
+ )
225
+ EXTERNAL_TRANSFER =
226
+ T.let(
227
+ :EXTERNAL_TRANSFER,
228
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
229
+ )
230
+ EXTERNAL_WIRE =
231
+ T.let(
232
+ :EXTERNAL_WIRE,
233
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
234
+ )
235
+ MANAGEMENT_ADJUSTMENT =
236
+ T.let(
237
+ :MANAGEMENT_ADJUSTMENT,
238
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
239
+ )
240
+ MANAGEMENT_DISPUTE =
241
+ T.let(
242
+ :MANAGEMENT_DISPUTE,
243
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
244
+ )
245
+ MANAGEMENT_FEE =
246
+ T.let(
247
+ :MANAGEMENT_FEE,
248
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
249
+ )
250
+ MANAGEMENT_REWARD =
251
+ T.let(
252
+ :MANAGEMENT_REWARD,
253
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
254
+ )
255
+ MANAGEMENT_DISBURSEMENT =
256
+ T.let(
257
+ :MANAGEMENT_DISBURSEMENT,
258
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
259
+ )
260
+ PROGRAM_FUNDING =
261
+ T.let(
262
+ :PROGRAM_FUNDING,
263
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
264
+ )
265
+
266
+ sig do
267
+ override.returns(
268
+ T::Array[Lithic::AccountActivityListParams::Category::TaggedSymbol]
269
+ )
270
+ end
271
+ def self.values
272
+ end
273
+ end
274
+
275
+ module Result
276
+ extend Lithic::Internal::Type::Enum
277
+
278
+ TaggedSymbol =
279
+ T.type_alias do
280
+ T.all(Symbol, Lithic::AccountActivityListParams::Result)
281
+ end
282
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
283
+
284
+ APPROVED =
285
+ T.let(
286
+ :APPROVED,
287
+ Lithic::AccountActivityListParams::Result::TaggedSymbol
288
+ )
289
+ DECLINED =
290
+ T.let(
291
+ :DECLINED,
292
+ Lithic::AccountActivityListParams::Result::TaggedSymbol
293
+ )
294
+
295
+ sig do
296
+ override.returns(
297
+ T::Array[Lithic::AccountActivityListParams::Result::TaggedSymbol]
298
+ )
299
+ end
300
+ def self.values
301
+ end
302
+ end
303
+
304
+ module Status
305
+ extend Lithic::Internal::Type::Enum
306
+
307
+ TaggedSymbol =
308
+ T.type_alias do
309
+ T.all(Symbol, Lithic::AccountActivityListParams::Status)
310
+ end
311
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
312
+
313
+ DECLINED =
314
+ T.let(
315
+ :DECLINED,
316
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
317
+ )
318
+ EXPIRED =
319
+ T.let(
320
+ :EXPIRED,
321
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
322
+ )
323
+ PENDING =
324
+ T.let(
325
+ :PENDING,
326
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
327
+ )
328
+ SETTLED =
329
+ T.let(
330
+ :SETTLED,
331
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
332
+ )
333
+ VOIDED =
334
+ T.let(
335
+ :VOIDED,
336
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
337
+ )
338
+ RETURNED =
339
+ T.let(
340
+ :RETURNED,
341
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
342
+ )
343
+ REVERSED =
344
+ T.let(
345
+ :REVERSED,
346
+ Lithic::AccountActivityListParams::Status::TaggedSymbol
347
+ )
348
+
349
+ sig do
350
+ override.returns(
351
+ T::Array[Lithic::AccountActivityListParams::Status::TaggedSymbol]
352
+ )
353
+ end
354
+ def self.values
355
+ end
356
+ end
357
+ end
358
+ end
359
+ end