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
@@ -210,16 +210,36 @@ module Lithic
210
210
  :DOES_NOT_MATCH,
211
211
  Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
212
212
  )
213
+ IS_EQUAL_TO =
214
+ T.let(
215
+ :IS_EQUAL_TO,
216
+ Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
217
+ )
218
+ IS_NOT_EQUAL_TO =
219
+ T.let(
220
+ :IS_NOT_EQUAL_TO,
221
+ Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
222
+ )
213
223
  IS_GREATER_THAN =
214
224
  T.let(
215
225
  :IS_GREATER_THAN,
216
226
  Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
217
227
  )
228
+ IS_GREATER_THAN_OR_EQUAL_TO =
229
+ T.let(
230
+ :IS_GREATER_THAN_OR_EQUAL_TO,
231
+ Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
232
+ )
218
233
  IS_LESS_THAN =
219
234
  T.let(
220
235
  :IS_LESS_THAN,
221
236
  Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
222
237
  )
238
+ IS_LESS_THAN_OR_EQUAL_TO =
239
+ T.let(
240
+ :IS_LESS_THAN_OR_EQUAL_TO,
241
+ Lithic::AuthRules::AuthRuleCondition::Operation::TaggedSymbol
242
+ )
223
243
 
224
244
  sig do
225
245
  override.returns(
@@ -352,16 +352,36 @@ module Lithic
352
352
  :DOES_NOT_MATCH,
353
353
  Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
354
354
  )
355
+ IS_EQUAL_TO =
356
+ T.let(
357
+ :IS_EQUAL_TO,
358
+ Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
359
+ )
360
+ IS_NOT_EQUAL_TO =
361
+ T.let(
362
+ :IS_NOT_EQUAL_TO,
363
+ Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
364
+ )
355
365
  IS_GREATER_THAN =
356
366
  T.let(
357
367
  :IS_GREATER_THAN,
358
368
  Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
359
369
  )
370
+ IS_GREATER_THAN_OR_EQUAL_TO =
371
+ T.let(
372
+ :IS_GREATER_THAN_OR_EQUAL_TO,
373
+ Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
374
+ )
360
375
  IS_LESS_THAN =
361
376
  T.let(
362
377
  :IS_LESS_THAN,
363
378
  Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
364
379
  )
380
+ IS_LESS_THAN_OR_EQUAL_TO =
381
+ T.let(
382
+ :IS_LESS_THAN_OR_EQUAL_TO,
383
+ Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
384
+ )
365
385
 
366
386
  sig do
367
387
  override.returns(
@@ -181,6 +181,8 @@ module Lithic
181
181
  )
182
182
  CARD =
183
183
  T.let(:CARD, Lithic::AuthRules::V2ListParams::Scope::TaggedSymbol)
184
+ ANY =
185
+ T.let(:ANY, Lithic::AuthRules::V2ListParams::Scope::TaggedSymbol)
184
186
 
185
187
  sig do
186
188
  override.returns(
@@ -11,7 +11,7 @@ module Lithic
11
11
  T.any(Lithic::BookTransferCreateParams, Lithic::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Amount to be transferred in the currencys smallest unit (e.g., cents for USD).
14
+ # Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
15
15
  # This should always be a positive value.
16
16
  sig { returns(Integer) }
17
17
  attr_accessor :amount
@@ -34,7 +34,7 @@ module Lithic
34
34
  sig { returns(String) }
35
35
  attr_accessor :to_financial_account_token
36
36
 
37
- # Type of book_transfer
37
+ # Type of the book transfer
38
38
  sig { returns(Lithic::BookTransferCreateParams::Type::OrSymbol) }
39
39
  attr_accessor :type
40
40
 
@@ -46,6 +46,13 @@ module Lithic
46
46
  sig { params(token: String).void }
47
47
  attr_writer :token
48
48
 
49
+ # External ID defined by the customer
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :external_id
52
+
53
+ sig { params(external_id: String).void }
54
+ attr_writer :external_id
55
+
49
56
  # Optional descriptor for the transfer.
50
57
  sig { returns(T.nilable(String)) }
51
58
  attr_reader :memo
@@ -53,6 +60,22 @@ module Lithic
53
60
  sig { params(memo: String).void }
54
61
  attr_writer :memo
55
62
 
63
+ # What to do if the financial account is closed when posting an operation
64
+ sig do
65
+ returns(
66
+ T.nilable(Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol)
67
+ )
68
+ end
69
+ attr_reader :on_closed_account
70
+
71
+ sig do
72
+ params(
73
+ on_closed_account:
74
+ Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol
75
+ ).void
76
+ end
77
+ attr_writer :on_closed_account
78
+
56
79
  sig do
57
80
  params(
58
81
  amount: Integer,
@@ -62,12 +85,15 @@ module Lithic
62
85
  to_financial_account_token: String,
63
86
  type: Lithic::BookTransferCreateParams::Type::OrSymbol,
64
87
  token: String,
88
+ external_id: String,
65
89
  memo: String,
90
+ on_closed_account:
91
+ Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
66
92
  request_options: Lithic::RequestOptions::OrHash
67
93
  ).returns(T.attached_class)
68
94
  end
69
95
  def self.new(
70
- # Amount to be transferred in the currencys smallest unit (e.g., cents for USD).
96
+ # Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
71
97
  # This should always be a positive value.
72
98
  amount:,
73
99
  # Category of the book transfer
@@ -80,13 +106,17 @@ module Lithic
80
106
  # Globally unique identifier for the financial account or card that will receive
81
107
  # the funds. Accepted type dependent on the program's use case.
82
108
  to_financial_account_token:,
83
- # Type of book_transfer
109
+ # Type of the book transfer
84
110
  type:,
85
111
  # Customer-provided token that will serve as an idempotency token. This token will
86
112
  # become the transaction token.
87
113
  token: nil,
114
+ # External ID defined by the customer
115
+ external_id: nil,
88
116
  # Optional descriptor for the transfer.
89
117
  memo: nil,
118
+ # What to do if the financial account is closed when posting an operation
119
+ on_closed_account: nil,
90
120
  request_options: {}
91
121
  )
92
122
  end
@@ -101,7 +131,10 @@ module Lithic
101
131
  to_financial_account_token: String,
102
132
  type: Lithic::BookTransferCreateParams::Type::OrSymbol,
103
133
  token: String,
134
+ external_id: String,
104
135
  memo: String,
136
+ on_closed_account:
137
+ Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
105
138
  request_options: Lithic::RequestOptions
106
139
  }
107
140
  )
@@ -161,7 +194,7 @@ module Lithic
161
194
  end
162
195
  end
163
196
 
164
- # Type of book_transfer
197
+ # Type of the book transfer
165
198
  module Type
166
199
  extend Lithic::Internal::Type::Enum
167
200
 
@@ -316,6 +349,11 @@ module Lithic
316
349
  T.let(:SERVICE, Lithic::BookTransferCreateParams::Type::TaggedSymbol)
317
350
  TRANSFER =
318
351
  T.let(:TRANSFER, Lithic::BookTransferCreateParams::Type::TaggedSymbol)
352
+ COLLECTION =
353
+ T.let(
354
+ :COLLECTION,
355
+ Lithic::BookTransferCreateParams::Type::TaggedSymbol
356
+ )
319
357
 
320
358
  sig do
321
359
  override.returns(
@@ -325,6 +363,38 @@ module Lithic
325
363
  def self.values
326
364
  end
327
365
  end
366
+
367
+ # What to do if the financial account is closed when posting an operation
368
+ module OnClosedAccount
369
+ extend Lithic::Internal::Type::Enum
370
+
371
+ TaggedSymbol =
372
+ T.type_alias do
373
+ T.all(Symbol, Lithic::BookTransferCreateParams::OnClosedAccount)
374
+ end
375
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
376
+
377
+ FAIL =
378
+ T.let(
379
+ :FAIL,
380
+ Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
381
+ )
382
+ USE_SUSPENSE =
383
+ T.let(
384
+ :USE_SUSPENSE,
385
+ Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
386
+ )
387
+
388
+ sig do
389
+ override.returns(
390
+ T::Array[
391
+ Lithic::BookTransferCreateParams::OnClosedAccount::TaggedSymbol
392
+ ]
393
+ )
394
+ end
395
+ def self.values
396
+ end
397
+ end
328
398
  end
329
399
  end
330
400
  end