lithic 0.1.0.pre.alpha.39 → 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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -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.rb +88 -1
  14. data/lib/lithic/models/account_activity_list_params.rb +156 -0
  15. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  17. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  18. data/lib/lithic/models/account_holder.rb +16 -19
  19. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  21. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  22. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  23. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  24. data/lib/lithic/models/account_update_params.rb +86 -1
  25. data/lib/lithic/models/aggregate_balance.rb +1 -0
  26. data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
  27. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  28. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
  29. data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
  30. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
  31. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
  32. data/lib/lithic/models/balance.rb +1 -0
  33. data/lib/lithic/models/balance_list_params.rb +1 -0
  34. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  35. data/lib/lithic/models/book_transfer_response.rb +124 -28
  36. data/lib/lithic/models/card_create_params.rb +90 -1
  37. data/lib/lithic/models/card_program.rb +10 -1
  38. data/lib/lithic/models/card_update_params.rb +98 -1
  39. data/lib/lithic/models/cards/balance_list_response.rb +1 -0
  40. data/lib/lithic/models/document.rb +1 -3
  41. data/lib/lithic/models/events/subscription_create_params.rb +1 -3
  42. data/lib/lithic/models/events/subscription_update_params.rb +1 -3
  43. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  44. data/lib/lithic/models/external_payment.rb +89 -48
  45. data/lib/lithic/models/external_resource.rb +34 -0
  46. data/lib/lithic/models/external_resource_type.rb +18 -0
  47. data/lib/lithic/models/financial_account.rb +1 -0
  48. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
  51. data/lib/lithic/models/financial_accounts/statement.rb +3 -10
  52. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
  53. data/lib/lithic/models/financial_transaction.rb +2 -0
  54. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  55. data/lib/lithic/models/kyb.rb +2 -2
  56. data/lib/lithic/models/management_operation_create_params.rb +30 -1
  57. data/lib/lithic/models/management_operation_transaction.rb +100 -52
  58. data/lib/lithic/models/network_program.rb +41 -0
  59. data/lib/lithic/models/network_program_list_params.rb +43 -0
  60. data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
  61. data/lib/lithic/models/non_pci_card.rb +88 -1
  62. data/lib/lithic/models/payment.rb +60 -1
  63. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  64. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  65. data/lib/lithic/models/settlement_detail.rb +1 -0
  66. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
  67. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  68. data/lib/lithic/models/tokenization.rb +1 -1
  69. data/lib/lithic/models/transaction.rb +31 -20
  70. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  71. data/lib/lithic/models/transfer.rb +2 -0
  72. data/lib/lithic/models/wire_party_details.rb +40 -0
  73. data/lib/lithic/models.rb +16 -0
  74. data/lib/lithic/resources/account_activity.rb +80 -0
  75. data/lib/lithic/resources/account_holders.rb +9 -9
  76. data/lib/lithic/resources/accounts.rb +5 -1
  77. data/lib/lithic/resources/book_transfers.rb +7 -3
  78. data/lib/lithic/resources/cards.rb +12 -2
  79. data/lib/lithic/resources/management_operations.rb +13 -1
  80. data/lib/lithic/resources/network_programs.rb +64 -0
  81. data/lib/lithic/resources/reports/settlement.rb +1 -1
  82. data/lib/lithic/resources/tokenizations.rb +2 -2
  83. data/lib/lithic/version.rb +1 -1
  84. data/lib/lithic.rb +13 -2
  85. data/rbi/lithic/client.rbi +6 -0
  86. data/rbi/lithic/errors.rbi +2 -2
  87. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  88. data/rbi/lithic/internal/type/converter.rbi +46 -0
  89. data/rbi/lithic/internal/type/union.rbi +7 -2
  90. data/rbi/lithic/models/account.rbi +131 -0
  91. data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
  92. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  93. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  94. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  95. data/rbi/lithic/models/account_holder.rbi +21 -23
  96. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  97. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  98. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  99. data/rbi/lithic/models/account_update_params.rbi +159 -0
  100. data/rbi/lithic/models/aggregate_balance.rbi +5 -0
  101. data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
  102. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  103. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
  104. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
  105. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
  106. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
  107. data/rbi/lithic/models/balance.rbi +2 -0
  108. data/rbi/lithic/models/balance_list_params.rbi +5 -0
  109. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  110. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  111. data/rbi/lithic/models/card_create_params.rbi +190 -0
  112. data/rbi/lithic/models/card_program.rbi +13 -0
  113. data/rbi/lithic/models/card_update_params.rbi +168 -0
  114. data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
  115. data/rbi/lithic/models/external_payment.rbi +147 -60
  116. data/rbi/lithic/models/external_resource.rbi +57 -0
  117. data/rbi/lithic/models/external_resource_type.rbi +26 -0
  118. data/rbi/lithic/models/financial_account.rbi +5 -0
  119. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  120. data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
  121. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  122. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  123. data/rbi/lithic/models/kyb.rbi +2 -2
  124. data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
  125. data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
  126. data/rbi/lithic/models/network_program.rbi +61 -0
  127. data/rbi/lithic/models/network_program_list_params.rbi +72 -0
  128. data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
  129. data/rbi/lithic/models/non_pci_card.rbi +133 -3
  130. data/rbi/lithic/models/payment.rbi +103 -3
  131. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  132. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  133. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  134. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
  135. data/rbi/lithic/models/transaction.rbi +23 -31
  136. data/rbi/lithic/models/transfer.rbi +1 -0
  137. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  138. data/rbi/lithic/models.rbi +17 -0
  139. data/rbi/lithic/resources/account_activity.rbi +80 -0
  140. data/rbi/lithic/resources/account_holders.rbi +28 -29
  141. data/rbi/lithic/resources/accounts.rbi +32 -0
  142. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  143. data/rbi/lithic/resources/cards.rbi +70 -0
  144. data/rbi/lithic/resources/management_operations.rbi +4 -0
  145. data/rbi/lithic/resources/network_programs.rbi +48 -0
  146. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  147. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  148. data/sig/lithic/client.rbs +4 -0
  149. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  150. data/sig/lithic/internal/type/converter.rbs +17 -0
  151. data/sig/lithic/internal/type/union.rbs +2 -2
  152. data/sig/lithic/models/account.rbs +41 -0
  153. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  154. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  155. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  156. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  157. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  158. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  159. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  160. data/sig/lithic/models/account_update_params.rbs +41 -0
  161. data/sig/lithic/models/aggregate_balance.rbs +2 -1
  162. data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
  163. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  164. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  165. data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
  166. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
  167. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
  168. data/sig/lithic/models/balance.rbs +2 -1
  169. data/sig/lithic/models/balance_list_params.rbs +2 -1
  170. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  171. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  172. data/sig/lithic/models/card_create_params.rbs +47 -0
  173. data/sig/lithic/models/card_program.rbs +7 -0
  174. data/sig/lithic/models/card_update_params.rbs +55 -1
  175. data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
  176. data/sig/lithic/models/external_payment.rbs +91 -40
  177. data/sig/lithic/models/external_resource.rbs +32 -0
  178. data/sig/lithic/models/external_resource_type.rbs +16 -0
  179. data/sig/lithic/models/financial_account.rbs +2 -0
  180. data/sig/lithic/models/financial_account_list_params.rbs +2 -1
  181. data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
  182. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  183. data/sig/lithic/models/management_operation_create_params.rbs +20 -0
  184. data/sig/lithic/models/management_operation_transaction.rbs +98 -42
  185. data/sig/lithic/models/network_program.rbs +35 -0
  186. data/sig/lithic/models/network_program_list_params.rbs +38 -0
  187. data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
  188. data/sig/lithic/models/non_pci_card.rbs +55 -3
  189. data/sig/lithic/models/payment.rbs +61 -3
  190. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  191. data/sig/lithic/models/settlement_detail.rbs +2 -0
  192. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
  193. data/sig/lithic/models/transaction.rbs +2 -6
  194. data/sig/lithic/models/wire_party_details.rbs +35 -0
  195. data/sig/lithic/models.rbs +16 -0
  196. data/sig/lithic/resources/account_activity.rbs +27 -0
  197. data/sig/lithic/resources/account_holders.rbs +3 -3
  198. data/sig/lithic/resources/accounts.rbs +2 -0
  199. data/sig/lithic/resources/book_transfers.rbs +2 -0
  200. data/sig/lithic/resources/cards.rbs +5 -0
  201. data/sig/lithic/resources/management_operations.rbs +1 -0
  202. data/sig/lithic/resources/network_programs.rbs +19 -0
  203. data/sig/lithic/resources/tokenizations.rbs +1 -1
  204. metadata +38 -5
  205. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  206. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  207. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -106,6 +106,13 @@ module Lithic
106
106
  sig { params(cardholder_currency: String).void }
107
107
  attr_writer :cardholder_currency
108
108
 
109
+ # Additional context or information related to the card.
110
+ sig { returns(T.nilable(String)) }
111
+ attr_reader :comment
112
+
113
+ sig { params(comment: String).void }
114
+ attr_writer :comment
115
+
109
116
  # Specifies the digital card art to be displayed in the user's digital wallet
110
117
  # after tokenization. This artwork must be approved by Mastercard and configured
111
118
  # by Lithic to use.
@@ -143,6 +150,12 @@ module Lithic
143
150
  sig { params(memo: String).void }
144
151
  attr_writer :memo
145
152
 
153
+ # Globally unique identifier for the card's network program. Null if the card is
154
+ # not associated with a network program. Currently applicable to Visa cards
155
+ # participating in Account Level Management only
156
+ sig { returns(T.nilable(String)) }
157
+ attr_accessor :network_program_token
158
+
146
159
  # Indicates if there are offline PIN changes pending card interaction with an
147
160
  # offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
148
161
  # only to cards issued in markets supporting offline PINs.
@@ -166,6 +179,32 @@ module Lithic
166
179
  sig { returns(T.nilable(String)) }
167
180
  attr_accessor :replacement_for
168
181
 
182
+ # Card state substatus values: _ `LOST` - The physical card is no longer in the
183
+ # cardholder's possession due to being lost or never received by the cardholder. _
184
+ # `COMPROMISED` - Card information has been exposed, potentially leading to
185
+ # unauthorized access. This may involve physical card theft, cloning, or online
186
+ # data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
187
+ # as having chip failures or a demagnetized magnetic stripe. _
188
+ # `END_USER_REQUEST` - The cardholder requested the closure of the card for
189
+ # reasons unrelated to fraud or damage, such as switching to a different product
190
+ # or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
191
+ # reasons unrelated to fraud or damage, such as account inactivity, product or
192
+ # policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
193
+ # transaction activity for a specified period, applicable to statuses like
194
+ # `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
195
+ # suspicious transactions or activities that require review. This can involve
196
+ # prompting the cardholder to confirm legitimate use or report confirmed fraud. _
197
+ # `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
198
+ # review. _ `EXPIRED` - The card has expired and has been closed without being
199
+ # reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
200
+ # has been returned. \* `OTHER` - The reason for the status does not fall into any
201
+ # of the above categories. A comment can be provided to specify the reason.
202
+ sig { returns(T.nilable(Lithic::NonPCICard::Substatus::TaggedSymbol)) }
203
+ attr_reader :substatus
204
+
205
+ sig { params(substatus: Lithic::NonPCICard::Substatus::OrSymbol).void }
206
+ attr_writer :substatus
207
+
169
208
  # Card details without PCI information
170
209
  sig do
171
210
  params(
@@ -182,14 +221,17 @@ module Lithic
182
221
  type: Lithic::NonPCICard::Type::OrSymbol,
183
222
  auth_rule_tokens: T::Array[String],
184
223
  cardholder_currency: String,
224
+ comment: String,
185
225
  digital_card_art_token: String,
186
226
  exp_month: String,
187
227
  exp_year: String,
188
228
  hostname: String,
189
229
  memo: String,
230
+ network_program_token: T.nilable(String),
190
231
  pending_commands: T::Array[String],
191
232
  product_id: String,
192
- replacement_for: T.nilable(String)
233
+ replacement_for: T.nilable(String),
234
+ substatus: Lithic::NonPCICard::Substatus::OrSymbol
193
235
  ).returns(T.attached_class)
194
236
  end
195
237
  def self.new(
@@ -258,6 +300,8 @@ module Lithic
258
300
  auth_rule_tokens: nil,
259
301
  # 3-character alphabetic ISO 4217 code for the currency of the cardholder.
260
302
  cardholder_currency: nil,
303
+ # Additional context or information related to the card.
304
+ comment: nil,
261
305
  # Specifies the digital card art to be displayed in the user's digital wallet
262
306
  # after tokenization. This artwork must be approved by Mastercard and configured
263
307
  # by Lithic to use.
@@ -270,6 +314,10 @@ module Lithic
270
314
  hostname: nil,
271
315
  # Friendly name to identify the card.
272
316
  memo: nil,
317
+ # Globally unique identifier for the card's network program. Null if the card is
318
+ # not associated with a network program. Currently applicable to Visa cards
319
+ # participating in Account Level Management only
320
+ network_program_token: nil,
273
321
  # Indicates if there are offline PIN changes pending card interaction with an
274
322
  # offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
275
323
  # only to cards issued in markets supporting offline PINs.
@@ -280,7 +328,28 @@ module Lithic
280
328
  product_id: nil,
281
329
  # If the card is a replacement for another card, the globally unique identifier
282
330
  # for the card that was replaced.
283
- replacement_for: nil
331
+ replacement_for: nil,
332
+ # Card state substatus values: _ `LOST` - The physical card is no longer in the
333
+ # cardholder's possession due to being lost or never received by the cardholder. _
334
+ # `COMPROMISED` - Card information has been exposed, potentially leading to
335
+ # unauthorized access. This may involve physical card theft, cloning, or online
336
+ # data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
337
+ # as having chip failures or a demagnetized magnetic stripe. _
338
+ # `END_USER_REQUEST` - The cardholder requested the closure of the card for
339
+ # reasons unrelated to fraud or damage, such as switching to a different product
340
+ # or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
341
+ # reasons unrelated to fraud or damage, such as account inactivity, product or
342
+ # policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
343
+ # transaction activity for a specified period, applicable to statuses like
344
+ # `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
345
+ # suspicious transactions or activities that require review. This can involve
346
+ # prompting the cardholder to confirm legitimate use or report confirmed fraud. _
347
+ # `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
348
+ # review. _ `EXPIRED` - The card has expired and has been closed without being
349
+ # reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
350
+ # has been returned. \* `OTHER` - The reason for the status does not fall into any
351
+ # of the above categories. A comment can be provided to specify the reason.
352
+ substatus: nil
284
353
  )
285
354
  end
286
355
 
@@ -300,14 +369,17 @@ module Lithic
300
369
  type: Lithic::NonPCICard::Type::TaggedSymbol,
301
370
  auth_rule_tokens: T::Array[String],
302
371
  cardholder_currency: String,
372
+ comment: String,
303
373
  digital_card_art_token: String,
304
374
  exp_month: String,
305
375
  exp_year: String,
306
376
  hostname: String,
307
377
  memo: String,
378
+ network_program_token: T.nilable(String),
308
379
  pending_commands: T::Array[String],
309
380
  product_id: String,
310
- replacement_for: T.nilable(String)
381
+ replacement_for: T.nilable(String),
382
+ substatus: Lithic::NonPCICard::Substatus::TaggedSymbol
311
383
  }
312
384
  )
313
385
  end
@@ -558,6 +630,64 @@ module Lithic
558
630
  def self.values
559
631
  end
560
632
  end
633
+
634
+ # Card state substatus values: _ `LOST` - The physical card is no longer in the
635
+ # cardholder's possession due to being lost or never received by the cardholder. _
636
+ # `COMPROMISED` - Card information has been exposed, potentially leading to
637
+ # unauthorized access. This may involve physical card theft, cloning, or online
638
+ # data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
639
+ # as having chip failures or a demagnetized magnetic stripe. _
640
+ # `END_USER_REQUEST` - The cardholder requested the closure of the card for
641
+ # reasons unrelated to fraud or damage, such as switching to a different product
642
+ # or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
643
+ # reasons unrelated to fraud or damage, such as account inactivity, product or
644
+ # policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
645
+ # transaction activity for a specified period, applicable to statuses like
646
+ # `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
647
+ # suspicious transactions or activities that require review. This can involve
648
+ # prompting the cardholder to confirm legitimate use or report confirmed fraud. _
649
+ # `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
650
+ # review. _ `EXPIRED` - The card has expired and has been closed without being
651
+ # reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
652
+ # has been returned. \* `OTHER` - The reason for the status does not fall into any
653
+ # of the above categories. A comment can be provided to specify the reason.
654
+ module Substatus
655
+ extend Lithic::Internal::Type::Enum
656
+
657
+ TaggedSymbol =
658
+ T.type_alias { T.all(Symbol, Lithic::NonPCICard::Substatus) }
659
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
660
+
661
+ LOST = T.let(:LOST, Lithic::NonPCICard::Substatus::TaggedSymbol)
662
+ COMPROMISED =
663
+ T.let(:COMPROMISED, Lithic::NonPCICard::Substatus::TaggedSymbol)
664
+ DAMAGED = T.let(:DAMAGED, Lithic::NonPCICard::Substatus::TaggedSymbol)
665
+ END_USER_REQUEST =
666
+ T.let(:END_USER_REQUEST, Lithic::NonPCICard::Substatus::TaggedSymbol)
667
+ ISSUER_REQUEST =
668
+ T.let(:ISSUER_REQUEST, Lithic::NonPCICard::Substatus::TaggedSymbol)
669
+ NOT_ACTIVE =
670
+ T.let(:NOT_ACTIVE, Lithic::NonPCICard::Substatus::TaggedSymbol)
671
+ SUSPICIOUS_ACTIVITY =
672
+ T.let(
673
+ :SUSPICIOUS_ACTIVITY,
674
+ Lithic::NonPCICard::Substatus::TaggedSymbol
675
+ )
676
+ INTERNAL_REVIEW =
677
+ T.let(:INTERNAL_REVIEW, Lithic::NonPCICard::Substatus::TaggedSymbol)
678
+ EXPIRED = T.let(:EXPIRED, Lithic::NonPCICard::Substatus::TaggedSymbol)
679
+ UNDELIVERABLE =
680
+ T.let(:UNDELIVERABLE, Lithic::NonPCICard::Substatus::TaggedSymbol)
681
+ OTHER = T.let(:OTHER, Lithic::NonPCICard::Substatus::TaggedSymbol)
682
+
683
+ sig do
684
+ override.returns(
685
+ T::Array[Lithic::NonPCICard::Substatus::TaggedSymbol]
686
+ )
687
+ end
688
+ def self.values
689
+ end
690
+ end
561
691
  end
562
692
  end
563
693
  end
@@ -58,6 +58,17 @@ module Lithic
58
58
  sig { returns(Integer) }
59
59
  attr_accessor :pending_amount
60
60
 
61
+ # Account tokens related to a payment transaction
62
+ sig { returns(Lithic::Payment::RelatedAccountTokens) }
63
+ attr_reader :related_account_tokens
64
+
65
+ sig do
66
+ params(
67
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens::OrHash
68
+ ).void
69
+ end
70
+ attr_writer :related_account_tokens
71
+
61
72
  # APPROVED payments were successful while DECLINED payments were declined by
62
73
  # Lithic or returned.
63
74
  sig { returns(Lithic::Payment::Result::TaggedSymbol) }
@@ -95,6 +106,13 @@ module Lithic
95
106
  sig { params(expected_release_date: Date).void }
96
107
  attr_writer :expected_release_date
97
108
 
109
+ # Payment type indicating the specific ACH message or Fedwire transfer type
110
+ sig { returns(T.nilable(Lithic::Payment::Type::TaggedSymbol)) }
111
+ attr_reader :type
112
+
113
+ sig { params(type: Lithic::Payment::Type::OrSymbol).void }
114
+ attr_writer :type
115
+
98
116
  sig do
99
117
  params(
100
118
  token: String,
@@ -109,13 +127,15 @@ module Lithic
109
127
  method_: Lithic::Payment::Method::OrSymbol,
110
128
  method_attributes: Lithic::Payment::MethodAttributes::OrHash,
111
129
  pending_amount: Integer,
130
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens::OrHash,
112
131
  result: Lithic::Payment::Result::OrSymbol,
113
132
  settled_amount: Integer,
114
133
  source: Lithic::Payment::Source::OrSymbol,
115
134
  status: Lithic::Payment::Status::OrSymbol,
116
135
  updated: Time,
117
136
  user_defined_id: T.nilable(String),
118
- expected_release_date: Date
137
+ expected_release_date: Date,
138
+ type: Lithic::Payment::Type::OrSymbol
119
139
  ).returns(T.attached_class)
120
140
  end
121
141
  def self.new(
@@ -140,6 +160,8 @@ module Lithic
140
160
  # Pending amount of the payment in the currency's smallest unit (e.g., cents). The
141
161
  # value of this field will go to zero over time once the payment is settled.
142
162
  pending_amount:,
163
+ # Account tokens related to a payment transaction
164
+ related_account_tokens:,
143
165
  # APPROVED payments were successful while DECLINED payments were declined by
144
166
  # Lithic or returned.
145
167
  result:,
@@ -159,7 +181,9 @@ module Lithic
159
181
  updated:,
160
182
  user_defined_id:,
161
183
  # Date when the financial transaction expected to be released after settlement
162
- expected_release_date: nil
184
+ expected_release_date: nil,
185
+ # Payment type indicating the specific ACH message or Fedwire transfer type
186
+ type: nil
163
187
  )
164
188
  end
165
189
 
@@ -178,13 +202,15 @@ module Lithic
178
202
  method_: Lithic::Payment::Method::TaggedSymbol,
179
203
  method_attributes: Lithic::Payment::MethodAttributes,
180
204
  pending_amount: Integer,
205
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens,
181
206
  result: Lithic::Payment::Result::TaggedSymbol,
182
207
  settled_amount: Integer,
183
208
  source: Lithic::Payment::Source::TaggedSymbol,
184
209
  status: Lithic::Payment::Status::TaggedSymbol,
185
210
  updated: Time,
186
211
  user_defined_id: T.nilable(String),
187
- expected_release_date: Date
212
+ expected_release_date: Date,
213
+ type: Lithic::Payment::Type::TaggedSymbol
188
214
  }
189
215
  )
190
216
  end
@@ -289,6 +315,7 @@ module Lithic
289
315
  end
290
316
  attr_writer :detailed_results
291
317
 
318
+ # Payment Event
292
319
  sig do
293
320
  params(
294
321
  token: String,
@@ -639,6 +666,50 @@ module Lithic
639
666
  end
640
667
  end
641
668
 
669
+ class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
670
+ OrHash =
671
+ T.type_alias do
672
+ T.any(
673
+ Lithic::Payment::RelatedAccountTokens,
674
+ Lithic::Internal::AnyHash
675
+ )
676
+ end
677
+
678
+ # Globally unique identifier for the account
679
+ sig { returns(T.nilable(String)) }
680
+ attr_accessor :account_token
681
+
682
+ # Globally unique identifier for the business account
683
+ sig { returns(T.nilable(String)) }
684
+ attr_accessor :business_account_token
685
+
686
+ # Account tokens related to a payment transaction
687
+ sig do
688
+ params(
689
+ account_token: T.nilable(String),
690
+ business_account_token: T.nilable(String)
691
+ ).returns(T.attached_class)
692
+ end
693
+ def self.new(
694
+ # Globally unique identifier for the account
695
+ account_token:,
696
+ # Globally unique identifier for the business account
697
+ business_account_token:
698
+ )
699
+ end
700
+
701
+ sig do
702
+ override.returns(
703
+ {
704
+ account_token: T.nilable(String),
705
+ business_account_token: T.nilable(String)
706
+ }
707
+ )
708
+ end
709
+ def to_hash
710
+ end
711
+ end
712
+
642
713
  # APPROVED payments were successful while DECLINED payments were declined by
643
714
  # Lithic or returned.
644
715
  module Result
@@ -697,6 +768,35 @@ module Lithic
697
768
  def self.values
698
769
  end
699
770
  end
771
+
772
+ # Payment type indicating the specific ACH message or Fedwire transfer type
773
+ module Type
774
+ extend Lithic::Internal::Type::Enum
775
+
776
+ TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Payment::Type) }
777
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
778
+
779
+ ORIGINATION_CREDIT =
780
+ T.let(:ORIGINATION_CREDIT, Lithic::Payment::Type::TaggedSymbol)
781
+ ORIGINATION_DEBIT =
782
+ T.let(:ORIGINATION_DEBIT, Lithic::Payment::Type::TaggedSymbol)
783
+ RECEIPT_CREDIT =
784
+ T.let(:RECEIPT_CREDIT, Lithic::Payment::Type::TaggedSymbol)
785
+ RECEIPT_DEBIT =
786
+ T.let(:RECEIPT_DEBIT, Lithic::Payment::Type::TaggedSymbol)
787
+ WIRE_INBOUND_PAYMENT =
788
+ T.let(:WIRE_INBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol)
789
+ WIRE_INBOUND_ADMIN =
790
+ T.let(:WIRE_INBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol)
791
+ WIRE_OUTBOUND_PAYMENT =
792
+ T.let(:WIRE_OUTBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol)
793
+ WIRE_OUTBOUND_ADMIN =
794
+ T.let(:WIRE_OUTBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol)
795
+
796
+ sig { override.returns(T::Array[Lithic::Payment::Type::TaggedSymbol]) }
797
+ def self.values
798
+ end
799
+ end
700
800
  end
701
801
  end
702
802
  end
@@ -110,6 +110,11 @@ module Lithic
110
110
  :ACH_RECEIPT_SETTLED,
111
111
  Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
112
112
  )
113
+ ACH_RECEIPT_RELEASED =
114
+ T.let(
115
+ :ACH_RECEIPT_RELEASED,
116
+ Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
117
+ )
113
118
  ACH_RETURN_INITIATED =
114
119
  T.let(
115
120
  :ACH_RETURN_INITIATED,
@@ -23,7 +23,7 @@ module Lithic
23
23
  sig { params(ending_before: String).void }
24
24
  attr_writer :ending_before
25
25
 
26
- # Page size (for pagination).
26
+ # Number of records per page.
27
27
  sig { returns(T.nilable(Integer)) }
28
28
  attr_reader :page_size
29
29
 
@@ -50,7 +50,7 @@ module Lithic
50
50
  # A cursor representing an item's token before which a page of results should end.
51
51
  # Used to retrieve the previous page of results before this item.
52
52
  ending_before: nil,
53
- # Page size (for pagination).
53
+ # Number of records per page.
54
54
  page_size: nil,
55
55
  # A cursor representing an item's token after which a page of results should
56
56
  # begin. Used to retrieve the next page of results after this item.
@@ -286,6 +286,8 @@ module Lithic
286
286
  T.let(:CHARGEBACK, Lithic::SettlementDetail::Type::TaggedSymbol)
287
287
  CLEARING =
288
288
  T.let(:CLEARING, Lithic::SettlementDetail::Type::TaggedSymbol)
289
+ COLLABORATION =
290
+ T.let(:COLLABORATION, Lithic::SettlementDetail::Type::TaggedSymbol)
289
291
  FEE = T.let(:FEE, Lithic::SettlementDetail::Type::TaggedSymbol)
290
292
  FINANCIAL =
291
293
  T.let(:FINANCIAL, Lithic::SettlementDetail::Type::TaggedSymbol)