lithic 0.1.0.pre.alpha.52 → 0.1.0.pre.alpha.54

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/lithic/internal/type/union.rb +15 -3
  7. data/lib/lithic/models/account_activity_list_response.rb +48 -1141
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
  11. data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
  12. data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
  14. data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
  16. data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
  17. data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
  18. data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
  19. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
  20. data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
  21. data/lib/lithic/models/book_transfer_response.rb +51 -48
  22. data/lib/lithic/models/card_provision_response.rb +25 -3
  23. data/lib/lithic/models/event.rb +0 -1
  24. data/lib/lithic/models/event_list_params.rb +0 -1
  25. data/lib/lithic/models/event_subscription.rb +0 -1
  26. data/lib/lithic/models/events/subscription_create_params.rb +0 -1
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  28. data/lib/lithic/models/events/subscription_update_params.rb +0 -1
  29. data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
  30. data/lib/lithic/models/external_payment.rb +21 -23
  31. data/lib/lithic/models/financial_account.rb +48 -39
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
  33. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  34. data/lib/lithic/models/financial_transaction.rb +1 -0
  35. data/lib/lithic/models/management_operation_transaction.rb +21 -23
  36. data/lib/lithic/models/payment.rb +269 -140
  37. data/lib/lithic/models/payment_create_response.rb +2 -0
  38. data/lib/lithic/models/payment_retry_response.rb +2 -0
  39. data/lib/lithic/models/provision_response.rb +30 -0
  40. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
  41. data/lib/lithic/models/tokenization.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +4 -0
  43. data/lib/lithic/models/transfer.rb +1 -0
  44. data/lib/lithic/models/verification_method.rb +0 -1
  45. data/lib/lithic/models.rb +2 -0
  46. data/lib/lithic/resources/account_activity.rb +2 -2
  47. data/lib/lithic/resources/auth_rules/v2.rb +0 -72
  48. data/lib/lithic/resources/external_bank_accounts.rb +1 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +2 -2
  51. data/manifest.yaml +1 -0
  52. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  53. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  54. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  55. data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
  56. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
  57. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
  58. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
  59. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
  60. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
  61. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
  64. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
  65. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
  66. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
  67. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
  68. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
  69. data/rbi/lithic/models/book_transfer_response.rbi +67 -68
  70. data/rbi/lithic/models/card_provision_response.rbi +50 -5
  71. data/rbi/lithic/models/event.rbi +0 -5
  72. data/rbi/lithic/models/event_list_params.rbi +0 -5
  73. data/rbi/lithic/models/event_subscription.rbi +0 -5
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
  77. data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
  78. data/rbi/lithic/models/external_payment.rbi +34 -39
  79. data/rbi/lithic/models/financial_account.rbi +74 -73
  80. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
  81. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  82. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  83. data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
  84. data/rbi/lithic/models/payment.rbi +425 -182
  85. data/rbi/lithic/models/payment_create_response.rbi +1 -0
  86. data/rbi/lithic/models/payment_retry_response.rbi +1 -0
  87. data/rbi/lithic/models/provision_response.rbi +58 -0
  88. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
  89. data/rbi/lithic/models/tokenization.rbi +5 -0
  90. data/rbi/lithic/models/transaction.rbi +20 -0
  91. data/rbi/lithic/models/transfer.rbi +5 -0
  92. data/rbi/lithic/models/verification_method.rbi +0 -1
  93. data/rbi/lithic/models.rbi +2 -0
  94. data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
  95. data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
  96. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  97. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  98. data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
  100. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
  103. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  104. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
  105. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  106. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
  107. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
  108. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
  109. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
  110. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
  111. data/sig/lithic/models/book_transfer_response.rbs +26 -19
  112. data/sig/lithic/models/card_provision_response.rbs +22 -5
  113. data/sig/lithic/models/event.rbs +0 -2
  114. data/sig/lithic/models/event_list_params.rbs +0 -2
  115. data/sig/lithic/models/event_subscription.rbs +0 -2
  116. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  117. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  118. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  119. data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
  120. data/sig/lithic/models/external_payment.rbs +19 -26
  121. data/sig/lithic/models/financial_account.rbs +28 -30
  122. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
  123. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  124. data/sig/lithic/models/financial_transaction.rbs +2 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +19 -26
  126. data/sig/lithic/models/payment.rbs +199 -76
  127. data/sig/lithic/models/provision_response.rbs +36 -0
  128. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
  129. data/sig/lithic/models/tokenization.rbs +2 -0
  130. data/sig/lithic/models/transaction.rbs +8 -0
  131. data/sig/lithic/models/transfer.rbs +2 -0
  132. data/sig/lithic/models/verification_method.rbs +1 -7
  133. data/sig/lithic/models.rbs +2 -0
  134. data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
  135. data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
  136. metadata +5 -8
  137. data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
  138. data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
  139. data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
  140. data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
  141. data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
  142. data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
@@ -16,9 +16,6 @@ module Lithic
16
16
  sig { returns(Time) }
17
17
  attr_accessor :created
18
18
 
19
- sig { returns(Lithic::ExternalPayment::Family::TaggedSymbol) }
20
- attr_accessor :family
21
-
22
19
  # The status of the transaction
23
20
  sig { returns(Lithic::ExternalPayment::Status::TaggedSymbol) }
24
21
  attr_accessor :status
@@ -49,6 +46,13 @@ module Lithic
49
46
  end
50
47
  attr_writer :events
51
48
 
49
+ # EXTERNAL_PAYMENT - External Payment Response
50
+ sig { returns(T.nilable(Lithic::ExternalPayment::Family::TaggedSymbol)) }
51
+ attr_reader :family
52
+
53
+ sig { params(family: Lithic::ExternalPayment::Family::OrSymbol).void }
54
+ attr_writer :family
55
+
52
56
  sig { returns(T.nilable(String)) }
53
57
  attr_reader :financial_account_token
54
58
 
@@ -95,12 +99,12 @@ module Lithic
95
99
  params(
96
100
  token: String,
97
101
  created: Time,
98
- family: Lithic::ExternalPayment::Family::OrSymbol,
99
102
  status: Lithic::ExternalPayment::Status::OrSymbol,
100
103
  updated: Time,
101
104
  category: Lithic::ExternalPayment::Category::OrSymbol,
102
105
  currency: String,
103
106
  events: T::Array[Lithic::ExternalPayment::Event::OrHash],
107
+ family: Lithic::ExternalPayment::Family::OrSymbol,
104
108
  financial_account_token: String,
105
109
  payment_type: Lithic::ExternalPayment::PaymentType::OrSymbol,
106
110
  pending_amount: Integer,
@@ -114,7 +118,6 @@ module Lithic
114
118
  token:,
115
119
  # ISO 8601 timestamp of when the transaction was created
116
120
  created:,
117
- family:,
118
121
  # The status of the transaction
119
122
  status:,
120
123
  # ISO 8601 timestamp of when the transaction was last updated
@@ -122,6 +125,8 @@ module Lithic
122
125
  category: nil,
123
126
  currency: nil,
124
127
  events: nil,
128
+ # EXTERNAL_PAYMENT - External Payment Response
129
+ family: nil,
125
130
  financial_account_token: nil,
126
131
  payment_type: nil,
127
132
  pending_amount: nil,
@@ -136,12 +141,12 @@ module Lithic
136
141
  {
137
142
  token: String,
138
143
  created: Time,
139
- family: Lithic::ExternalPayment::Family::TaggedSymbol,
140
144
  status: Lithic::ExternalPayment::Status::TaggedSymbol,
141
145
  updated: Time,
142
146
  category: Lithic::ExternalPayment::Category::TaggedSymbol,
143
147
  currency: String,
144
148
  events: T::Array[Lithic::ExternalPayment::Event],
149
+ family: Lithic::ExternalPayment::Family::TaggedSymbol,
145
150
  financial_account_token: String,
146
151
  payment_type: Lithic::ExternalPayment::PaymentType::TaggedSymbol,
147
152
  pending_amount: Integer,
@@ -154,39 +159,6 @@ module Lithic
154
159
  def to_hash
155
160
  end
156
161
 
157
- module Family
158
- extend Lithic::Internal::Type::Enum
159
-
160
- TaggedSymbol =
161
- T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Family) }
162
- OrSymbol = T.type_alias { T.any(Symbol, String) }
163
-
164
- CARD = T.let(:CARD, Lithic::ExternalPayment::Family::TaggedSymbol)
165
- PAYMENT = T.let(:PAYMENT, Lithic::ExternalPayment::Family::TaggedSymbol)
166
- TRANSFER =
167
- T.let(:TRANSFER, Lithic::ExternalPayment::Family::TaggedSymbol)
168
- INTERNAL =
169
- T.let(:INTERNAL, Lithic::ExternalPayment::Family::TaggedSymbol)
170
- EXTERNAL_PAYMENT =
171
- T.let(
172
- :EXTERNAL_PAYMENT,
173
- Lithic::ExternalPayment::Family::TaggedSymbol
174
- )
175
- MANAGEMENT_OPERATION =
176
- T.let(
177
- :MANAGEMENT_OPERATION,
178
- Lithic::ExternalPayment::Family::TaggedSymbol
179
- )
180
-
181
- sig do
182
- override.returns(
183
- T::Array[Lithic::ExternalPayment::Family::TaggedSymbol]
184
- )
185
- end
186
- def self.values
187
- end
188
- end
189
-
190
162
  # The status of the transaction
191
163
  module Status
192
164
  extend Lithic::Internal::Type::Enum
@@ -505,6 +477,29 @@ module Lithic
505
477
  end
506
478
  end
507
479
 
480
+ # EXTERNAL_PAYMENT - External Payment Response
481
+ module Family
482
+ extend Lithic::Internal::Type::Enum
483
+
484
+ TaggedSymbol =
485
+ T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Family) }
486
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
487
+
488
+ EXTERNAL_PAYMENT =
489
+ T.let(
490
+ :EXTERNAL_PAYMENT,
491
+ Lithic::ExternalPayment::Family::TaggedSymbol
492
+ )
493
+
494
+ sig do
495
+ override.returns(
496
+ T::Array[Lithic::ExternalPayment::Family::TaggedSymbol]
497
+ )
498
+ end
499
+ def self.values
500
+ end
501
+ end
502
+
508
503
  module PaymentType
509
504
  extend Lithic::Internal::Type::Enum
510
505
 
@@ -127,15 +127,20 @@ module Lithic
127
127
  )
128
128
  end
129
129
 
130
- # Reason for the financial account being marked as Charged Off
131
130
  sig do
132
131
  returns(
133
- T.nilable(
134
- Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
135
- )
132
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
136
133
  )
137
134
  end
138
- attr_accessor :charged_off_reason
135
+ attr_reader :auto_collection_configuration
136
+
137
+ sig do
138
+ params(
139
+ auto_collection_configuration:
140
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
141
+ ).void
142
+ end
143
+ attr_writer :auto_collection_configuration
139
144
 
140
145
  sig { returns(T.nilable(Integer)) }
141
146
  attr_accessor :credit_limit
@@ -147,99 +152,124 @@ module Lithic
147
152
  sig { returns(T.nilable(String)) }
148
153
  attr_accessor :external_bank_account_token
149
154
 
150
- # State of the financial account
155
+ # Tier assigned to the financial account
156
+ sig { returns(T.nilable(String)) }
157
+ attr_accessor :tier
158
+
159
+ # Reason for the financial account being marked as Charged Off
151
160
  sig do
152
161
  returns(
153
162
  T.nilable(
154
- Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
163
+ Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
155
164
  )
156
165
  )
157
166
  end
158
- attr_accessor :financial_account_state
159
-
160
- sig { returns(T::Boolean) }
161
- attr_accessor :is_spend_blocked
162
-
163
- # Tier assigned to the financial account
164
- sig { returns(T.nilable(String)) }
165
- attr_accessor :tier
167
+ attr_accessor :charged_off_reason
166
168
 
169
+ # State of the financial account
167
170
  sig do
168
171
  returns(
169
172
  T.nilable(
170
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
173
+ Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
171
174
  )
172
175
  )
173
176
  end
174
- attr_reader :auto_collection_configuration
177
+ attr_accessor :financial_account_state
175
178
 
176
- sig do
177
- params(
178
- auto_collection_configuration:
179
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
180
- ).void
181
- end
182
- attr_writer :auto_collection_configuration
179
+ sig { returns(T.nilable(T::Boolean)) }
180
+ attr_reader :is_spend_blocked
181
+
182
+ sig { params(is_spend_blocked: T::Boolean).void }
183
+ attr_writer :is_spend_blocked
183
184
 
184
185
  sig do
185
186
  params(
187
+ auto_collection_configuration:
188
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash,
189
+ credit_limit: T.nilable(Integer),
190
+ credit_product_token: T.nilable(String),
191
+ external_bank_account_token: T.nilable(String),
192
+ tier: T.nilable(String),
186
193
  charged_off_reason:
187
194
  T.nilable(
188
195
  Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::OrSymbol
189
196
  ),
190
- credit_limit: T.nilable(Integer),
191
- credit_product_token: T.nilable(String),
192
- external_bank_account_token: T.nilable(String),
193
197
  financial_account_state:
194
198
  T.nilable(
195
199
  Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol
196
200
  ),
197
- is_spend_blocked: T::Boolean,
198
- tier: T.nilable(String),
199
- auto_collection_configuration:
200
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
201
+ is_spend_blocked: T::Boolean
201
202
  ).returns(T.attached_class)
202
203
  end
203
204
  def self.new(
204
- # Reason for the financial account being marked as Charged Off
205
- charged_off_reason:,
205
+ auto_collection_configuration:,
206
206
  credit_limit:,
207
207
  # Globally unique identifier for the credit product
208
208
  credit_product_token:,
209
209
  external_bank_account_token:,
210
- # State of the financial account
211
- financial_account_state:,
212
- is_spend_blocked:,
213
210
  # Tier assigned to the financial account
214
211
  tier:,
215
- auto_collection_configuration: nil
212
+ # Reason for the financial account being marked as Charged Off
213
+ charged_off_reason: nil,
214
+ # State of the financial account
215
+ financial_account_state: nil,
216
+ is_spend_blocked: nil
216
217
  )
217
218
  end
218
219
 
219
220
  sig do
220
221
  override.returns(
221
222
  {
223
+ auto_collection_configuration:
224
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
225
+ credit_limit: T.nilable(Integer),
226
+ credit_product_token: T.nilable(String),
227
+ external_bank_account_token: T.nilable(String),
228
+ tier: T.nilable(String),
222
229
  charged_off_reason:
223
230
  T.nilable(
224
231
  Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
225
232
  ),
226
- credit_limit: T.nilable(Integer),
227
- credit_product_token: T.nilable(String),
228
- external_bank_account_token: T.nilable(String),
229
233
  financial_account_state:
230
234
  T.nilable(
231
235
  Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
232
236
  ),
233
- is_spend_blocked: T::Boolean,
234
- tier: T.nilable(String),
235
- auto_collection_configuration:
236
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
237
+ is_spend_blocked: T::Boolean
237
238
  }
238
239
  )
239
240
  end
240
241
  def to_hash
241
242
  end
242
243
 
244
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
245
+ OrHash =
246
+ T.type_alias do
247
+ T.any(
248
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
249
+ Lithic::Internal::AnyHash
250
+ )
251
+ end
252
+
253
+ # If auto collection is enabled for this account
254
+ sig { returns(T::Boolean) }
255
+ attr_accessor :auto_collection_enabled
256
+
257
+ sig do
258
+ params(auto_collection_enabled: T::Boolean).returns(
259
+ T.attached_class
260
+ )
261
+ end
262
+ def self.new(
263
+ # If auto collection is enabled for this account
264
+ auto_collection_enabled:
265
+ )
266
+ end
267
+
268
+ sig { override.returns({ auto_collection_enabled: T::Boolean }) }
269
+ def to_hash
270
+ end
271
+ end
272
+
243
273
  # Reason for the financial account being marked as Charged Off
244
274
  module ChargedOffReason
245
275
  extend Lithic::Internal::Type::Enum
@@ -319,35 +349,6 @@ module Lithic
319
349
  def self.values
320
350
  end
321
351
  end
322
-
323
- class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
324
- OrHash =
325
- T.type_alias do
326
- T.any(
327
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
328
- Lithic::Internal::AnyHash
329
- )
330
- end
331
-
332
- # If auto collection is enabled for this account
333
- sig { returns(T::Boolean) }
334
- attr_accessor :auto_collection_enabled
335
-
336
- sig do
337
- params(auto_collection_enabled: T::Boolean).returns(
338
- T.attached_class
339
- )
340
- end
341
- def self.new(
342
- # If auto collection is enabled for this account
343
- auto_collection_enabled:
344
- )
345
- end
346
-
347
- sig { override.returns({ auto_collection_enabled: T::Boolean }) }
348
- def to_hash
349
- end
350
- end
351
352
  end
352
353
 
353
354
  # Status of the financial account
@@ -34,16 +34,6 @@ module Lithic
34
34
  end
35
35
  attr_writer :auto_collection_configuration
36
36
 
37
- # Reason for the financial account being marked as Charged Off
38
- sig do
39
- returns(
40
- T.nilable(
41
- Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
42
- )
43
- )
44
- end
45
- attr_accessor :charged_off_reason
46
-
47
37
  sig { returns(T.nilable(Integer)) }
48
38
  attr_accessor :credit_limit
49
39
 
@@ -54,54 +44,77 @@ module Lithic
54
44
  sig { returns(T.nilable(String)) }
55
45
  attr_accessor :external_bank_account_token
56
46
 
47
+ # Tier assigned to the financial account
48
+ sig { returns(T.nilable(String)) }
49
+ attr_accessor :tier
50
+
51
+ # Reason for the financial account being marked as Charged Off
52
+ sig do
53
+ returns(
54
+ T.nilable(
55
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
56
+ )
57
+ )
58
+ end
59
+ attr_accessor :charged_off_reason
60
+
57
61
  # State of the financial account
58
62
  sig do
59
63
  returns(
60
- Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
64
+ T.nilable(
65
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
66
+ )
61
67
  )
62
68
  end
63
- attr_accessor :financial_account_state
69
+ attr_reader :financial_account_state
64
70
 
65
- sig { returns(T::Boolean) }
66
- attr_accessor :is_spend_blocked
71
+ sig do
72
+ params(
73
+ financial_account_state:
74
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol
75
+ ).void
76
+ end
77
+ attr_writer :financial_account_state
67
78
 
68
- # Tier assigned to the financial account
69
- sig { returns(T.nilable(String)) }
70
- attr_accessor :tier
79
+ sig { returns(T.nilable(T::Boolean)) }
80
+ attr_reader :is_spend_blocked
81
+
82
+ sig { params(is_spend_blocked: T::Boolean).void }
83
+ attr_writer :is_spend_blocked
71
84
 
72
85
  sig do
73
86
  params(
74
87
  account_token: String,
75
88
  auto_collection_configuration:
76
89
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash,
90
+ credit_limit: T.nilable(Integer),
91
+ credit_product_token: T.nilable(String),
92
+ external_bank_account_token: T.nilable(String),
93
+ tier: T.nilable(String),
77
94
  charged_off_reason:
78
95
  T.nilable(
79
96
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol
80
97
  ),
81
- credit_limit: T.nilable(Integer),
82
- credit_product_token: T.nilable(String),
83
- external_bank_account_token: T.nilable(String),
84
98
  financial_account_state:
85
99
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol,
86
- is_spend_blocked: T::Boolean,
87
- tier: T.nilable(String)
100
+ is_spend_blocked: T::Boolean
88
101
  ).returns(T.attached_class)
89
102
  end
90
103
  def self.new(
91
104
  # Globally unique identifier for the account
92
105
  account_token:,
93
106
  auto_collection_configuration:,
94
- # Reason for the financial account being marked as Charged Off
95
- charged_off_reason:,
96
107
  credit_limit:,
97
108
  # Globally unique identifier for the credit product
98
109
  credit_product_token:,
99
110
  external_bank_account_token:,
100
- # State of the financial account
101
- financial_account_state:,
102
- is_spend_blocked:,
103
111
  # Tier assigned to the financial account
104
- tier:
112
+ tier:,
113
+ # Reason for the financial account being marked as Charged Off
114
+ charged_off_reason: nil,
115
+ # State of the financial account
116
+ financial_account_state: nil,
117
+ is_spend_blocked: nil
105
118
  )
106
119
  end
107
120
 
@@ -111,17 +124,17 @@ module Lithic
111
124
  account_token: String,
112
125
  auto_collection_configuration:
113
126
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
127
+ credit_limit: T.nilable(Integer),
128
+ credit_product_token: T.nilable(String),
129
+ external_bank_account_token: T.nilable(String),
130
+ tier: T.nilable(String),
114
131
  charged_off_reason:
115
132
  T.nilable(
116
133
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
117
134
  ),
118
- credit_limit: T.nilable(Integer),
119
- credit_product_token: T.nilable(String),
120
- external_bank_account_token: T.nilable(String),
121
135
  financial_account_state:
122
136
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol,
123
- is_spend_blocked: T::Boolean,
124
- tier: T.nilable(String)
137
+ is_spend_blocked: T::Boolean
125
138
  }
126
139
  )
127
140
  end
@@ -355,6 +355,11 @@ module Lithic
355
355
  :ACH_RECEIPT_PROCESSED,
356
356
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
357
357
  )
358
+ ACH_RECEIPT_RELEASED =
359
+ T.let(
360
+ :ACH_RECEIPT_RELEASED,
361
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
362
+ )
358
363
  ACH_RECEIPT_SETTLED =
359
364
  T.let(
360
365
  :ACH_RECEIPT_SETTLED,
@@ -364,6 +364,11 @@ module Lithic
364
364
  :ACH_RECEIPT_PROCESSED,
365
365
  Lithic::FinancialTransaction::Event::Type::TaggedSymbol
366
366
  )
367
+ ACH_RECEIPT_RELEASED =
368
+ T.let(
369
+ :ACH_RECEIPT_RELEASED,
370
+ Lithic::FinancialTransaction::Event::Type::TaggedSymbol
371
+ )
367
372
  ACH_RECEIPT_SETTLED =
368
373
  T.let(
369
374
  :ACH_RECEIPT_SETTLED,
@@ -19,11 +19,6 @@ module Lithic
19
19
  sig { returns(Time) }
20
20
  attr_accessor :created
21
21
 
22
- sig do
23
- returns(Lithic::ManagementOperationTransaction::Family::TaggedSymbol)
24
- end
25
- attr_accessor :family
26
-
27
22
  # The status of the transaction
28
23
  sig do
29
24
  returns(Lithic::ManagementOperationTransaction::Status::TaggedSymbol)
@@ -98,6 +93,23 @@ module Lithic
98
93
  end
99
94
  attr_writer :external_resource
100
95
 
96
+ # MANAGEMENT_OPERATION - Management Operation Transaction
97
+ sig do
98
+ returns(
99
+ T.nilable(
100
+ Lithic::ManagementOperationTransaction::Family::TaggedSymbol
101
+ )
102
+ )
103
+ end
104
+ attr_reader :family
105
+
106
+ sig do
107
+ params(
108
+ family: Lithic::ManagementOperationTransaction::Family::OrSymbol
109
+ ).void
110
+ end
111
+ attr_writer :family
112
+
101
113
  sig { returns(T.nilable(String)) }
102
114
  attr_reader :financial_account_token
103
115
 
@@ -159,7 +171,6 @@ module Lithic
159
171
  params(
160
172
  token: String,
161
173
  created: Time,
162
- family: Lithic::ManagementOperationTransaction::Family::OrSymbol,
163
174
  status: Lithic::ManagementOperationTransaction::Status::OrSymbol,
164
175
  updated: Time,
165
176
  category: Lithic::ManagementOperationTransaction::Category::OrSymbol,
@@ -169,6 +180,7 @@ module Lithic
169
180
  events:
170
181
  T::Array[Lithic::ManagementOperationTransaction::Event::OrHash],
171
182
  external_resource: T.nilable(Lithic::ExternalResource::OrHash),
183
+ family: Lithic::ManagementOperationTransaction::Family::OrSymbol,
172
184
  financial_account_token: String,
173
185
  pending_amount: Integer,
174
186
  result: Lithic::ManagementOperationTransaction::Result::OrSymbol,
@@ -185,7 +197,6 @@ module Lithic
185
197
  token:,
186
198
  # ISO 8601 timestamp of when the transaction was created
187
199
  created:,
188
- family:,
189
200
  # The status of the transaction
190
201
  status:,
191
202
  # ISO 8601 timestamp of when the transaction was last updated
@@ -196,6 +207,8 @@ module Lithic
196
207
  events: nil,
197
208
  # External resource associated with the management operation
198
209
  external_resource: nil,
210
+ # MANAGEMENT_OPERATION - Management Operation Transaction
211
+ family: nil,
199
212
  financial_account_token: nil,
200
213
  pending_amount: nil,
201
214
  result: nil,
@@ -210,8 +223,6 @@ module Lithic
210
223
  {
211
224
  token: String,
212
225
  created: Time,
213
- family:
214
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol,
215
226
  status:
216
227
  Lithic::ManagementOperationTransaction::Status::TaggedSymbol,
217
228
  updated: Time,
@@ -222,6 +233,8 @@ module Lithic
222
233
  Lithic::ManagementOperationTransaction::Direction::TaggedSymbol,
223
234
  events: T::Array[Lithic::ManagementOperationTransaction::Event],
224
235
  external_resource: T.nilable(Lithic::ExternalResource),
236
+ family:
237
+ Lithic::ManagementOperationTransaction::Family::TaggedSymbol,
225
238
  financial_account_token: String,
226
239
  pending_amount: Integer,
227
240
  result:
@@ -238,57 +251,6 @@ module Lithic
238
251
  def to_hash
239
252
  end
240
253
 
241
- module Family
242
- extend Lithic::Internal::Type::Enum
243
-
244
- TaggedSymbol =
245
- T.type_alias do
246
- T.all(Symbol, Lithic::ManagementOperationTransaction::Family)
247
- end
248
- OrSymbol = T.type_alias { T.any(Symbol, String) }
249
-
250
- CARD =
251
- T.let(
252
- :CARD,
253
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
254
- )
255
- PAYMENT =
256
- T.let(
257
- :PAYMENT,
258
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
259
- )
260
- TRANSFER =
261
- T.let(
262
- :TRANSFER,
263
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
264
- )
265
- INTERNAL =
266
- T.let(
267
- :INTERNAL,
268
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
269
- )
270
- EXTERNAL_PAYMENT =
271
- T.let(
272
- :EXTERNAL_PAYMENT,
273
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
274
- )
275
- MANAGEMENT_OPERATION =
276
- T.let(
277
- :MANAGEMENT_OPERATION,
278
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
279
- )
280
-
281
- sig do
282
- override.returns(
283
- T::Array[
284
- Lithic::ManagementOperationTransaction::Family::TaggedSymbol
285
- ]
286
- )
287
- end
288
- def self.values
289
- end
290
- end
291
-
292
254
  # The status of the transaction
293
255
  module Status
294
256
  extend Lithic::Internal::Type::Enum
@@ -704,6 +666,33 @@ module Lithic
704
666
  end
705
667
  end
706
668
 
669
+ # MANAGEMENT_OPERATION - Management Operation Transaction
670
+ module Family
671
+ extend Lithic::Internal::Type::Enum
672
+
673
+ TaggedSymbol =
674
+ T.type_alias do
675
+ T.all(Symbol, Lithic::ManagementOperationTransaction::Family)
676
+ end
677
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
678
+
679
+ MANAGEMENT_OPERATION =
680
+ T.let(
681
+ :MANAGEMENT_OPERATION,
682
+ Lithic::ManagementOperationTransaction::Family::TaggedSymbol
683
+ )
684
+
685
+ sig do
686
+ override.returns(
687
+ T::Array[
688
+ Lithic::ManagementOperationTransaction::Family::TaggedSymbol
689
+ ]
690
+ )
691
+ end
692
+ def self.values
693
+ end
694
+ end
695
+
707
696
  module Result
708
697
  extend Lithic::Internal::Type::Enum
709
698