lithic 0.1.0 → 0.3.0

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 (256) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +36 -1
  4. data/lib/lithic/client.rb +9 -10
  5. data/lib/lithic/errors.rb +15 -0
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  7. data/lib/lithic/internal/util.rb +7 -2
  8. data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
  9. data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
  10. data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
  11. data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
  12. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  13. data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
  14. data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
  15. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  16. data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
  17. data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
  18. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +1032 -0
  19. data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
  20. data/lib/lithic/models/card_created_webhook_event.rb +32 -0
  21. data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
  22. data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
  23. data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
  24. data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
  25. data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
  26. data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
  27. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
  28. data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
  29. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  30. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  31. data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
  32. data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
  33. data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
  34. data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
  35. data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
  36. data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
  37. data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
  38. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  39. data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
  40. data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
  41. data/lib/lithic/models/financial_account.rb +33 -25
  42. data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
  43. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  44. data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
  45. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  46. data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
  47. data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
  48. data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
  49. data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
  50. data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
  51. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  52. data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
  53. data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
  54. data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
  55. data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
  56. data/lib/lithic/models/parsed_webhook_event.rb +817 -0
  57. data/lib/lithic/models/payment.rb +10 -1
  58. data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
  59. data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
  60. data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
  61. data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
  62. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  63. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
  64. data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
  65. data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
  66. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
  67. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
  68. data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
  69. data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  70. data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  71. data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
  72. data/lib/lithic/models/transaction.rb +2 -0
  73. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  74. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  75. data/lib/lithic/models/webhook_parsed_params.rb +14 -0
  76. data/lib/lithic/models.rb +130 -4
  77. data/lib/lithic/resources/book_transfers.rb +27 -0
  78. data/lib/lithic/resources/cards.rb +1 -5
  79. data/lib/lithic/resources/external_payments.rb +13 -1
  80. data/lib/lithic/resources/financial_accounts.rb +3 -1
  81. data/lib/lithic/resources/management_operations.rb +4 -1
  82. data/lib/lithic/resources/transfer_limits.rb +37 -0
  83. data/lib/lithic/resources/webhooks.rb +88 -0
  84. data/lib/lithic/version.rb +1 -1
  85. data/lib/lithic.rb +79 -23
  86. data/rbi/lithic/client.rbi +6 -3
  87. data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
  88. data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
  89. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
  90. data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
  91. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  92. data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
  93. data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
  94. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  95. data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
  96. data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
  97. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +2367 -0
  98. data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
  99. data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
  100. data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
  101. data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
  102. data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
  103. data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
  104. data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
  105. data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
  106. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
  107. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
  108. data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
  109. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  110. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  111. data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
  112. data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
  113. data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
  114. data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
  115. data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
  116. data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
  117. data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
  118. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  119. data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
  120. data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
  121. data/rbi/lithic/models/financial_account.rbi +62 -54
  122. data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
  123. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  124. data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
  125. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  126. data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
  127. data/rbi/lithic/models/internal_transaction.rbi +15 -10
  128. data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
  129. data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
  130. data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
  131. data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
  132. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  133. data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
  134. data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
  135. data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
  136. data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
  137. data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
  138. data/rbi/lithic/models/payment.rbi +13 -3
  139. data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
  140. data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
  141. data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
  142. data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
  143. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  144. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
  145. data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
  146. data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
  147. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
  148. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
  149. data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
  150. data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  151. data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  152. data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
  153. data/rbi/lithic/models/transaction.rbi +10 -0
  154. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  155. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  156. data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
  157. data/rbi/lithic/models.rbi +165 -4
  158. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  159. data/rbi/lithic/resources/cards.rbi +1 -4
  160. data/rbi/lithic/resources/external_payments.rbi +2 -0
  161. data/rbi/lithic/resources/financial_accounts.rbi +3 -0
  162. data/rbi/lithic/resources/management_operations.rbi +2 -0
  163. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  164. data/rbi/lithic/resources/webhooks.rbi +36 -0
  165. data/sig/lithic/client.rbs +4 -2
  166. data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
  167. data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
  168. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
  169. data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
  170. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  171. data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
  172. data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
  173. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  174. data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
  175. data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
  176. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +886 -0
  177. data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
  178. data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
  179. data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
  180. data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
  181. data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
  182. data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
  183. data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
  184. data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
  185. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
  186. data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
  187. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  188. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  189. data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
  190. data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
  191. data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
  192. data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
  193. data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
  194. data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
  195. data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
  196. data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
  197. data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
  198. data/sig/lithic/models/financial_account.rbs +32 -27
  199. data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
  200. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  201. data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
  202. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  203. data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
  204. data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
  205. data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
  206. data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
  207. data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
  208. data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
  209. data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
  210. data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
  211. data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
  212. data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
  213. data/sig/lithic/models/payment.rbs +10 -3
  214. data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
  215. data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
  216. data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
  217. data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
  218. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  219. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
  220. data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
  221. data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
  222. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
  223. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
  224. data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
  225. data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  226. data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  227. data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
  228. data/sig/lithic/models/transaction.rbs +4 -0
  229. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  230. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  231. data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
  232. data/sig/lithic/models.rbs +120 -4
  233. data/sig/lithic/resources/book_transfers.rbs +6 -0
  234. data/sig/lithic/resources/cards.rbs +0 -2
  235. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  236. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  237. data/sig/lithic/resources/webhooks.rbs +21 -0
  238. metadata +188 -20
  239. data/lib/lithic/models/aggregate_balance.rb +0 -113
  240. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  241. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  242. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  243. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  244. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  245. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  246. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  247. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  248. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  249. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  250. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  251. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  252. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  253. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  254. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  255. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  256. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -1,113 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Models
5
- # @see Lithic::Resources::AggregateBalances#list
6
- class AggregateBalance < Lithic::Internal::Type::BaseModel
7
- # @!attribute available_amount
8
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
9
- #
10
- # @return [Integer]
11
- required :available_amount, Integer
12
-
13
- # @!attribute created
14
- # Date and time for when the balance was first created.
15
- #
16
- # @return [Time]
17
- required :created, Time
18
-
19
- # @!attribute currency
20
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
21
- #
22
- # @return [String]
23
- required :currency, String
24
-
25
- # @!attribute financial_account_type
26
- # Type of financial account
27
- #
28
- # @return [Symbol, Lithic::Models::AggregateBalance::FinancialAccountType]
29
- required :financial_account_type, enum: -> { Lithic::AggregateBalance::FinancialAccountType }
30
-
31
- # @!attribute last_financial_account_token
32
- # Globally unique identifier for the financial account that had its balance
33
- # updated most recently
34
- #
35
- # @return [String]
36
- required :last_financial_account_token, String
37
-
38
- # @!attribute last_transaction_event_token
39
- # Globally unique identifier for the last transaction event that impacted this
40
- # balance
41
- #
42
- # @return [String]
43
- required :last_transaction_event_token, String
44
-
45
- # @!attribute last_transaction_token
46
- # Globally unique identifier for the last transaction that impacted this balance
47
- #
48
- # @return [String]
49
- required :last_transaction_token, String
50
-
51
- # @!attribute pending_amount
52
- # Funds not available for spend due to card authorizations or pending ACH release.
53
- # Shown in the currency's smallest unit (e.g., cents for USD)
54
- #
55
- # @return [Integer]
56
- required :pending_amount, Integer
57
-
58
- # @!attribute total_amount
59
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
60
- # cents for USD)
61
- #
62
- # @return [Integer]
63
- required :total_amount, Integer
64
-
65
- # @!attribute updated
66
- # Date and time for when the balance was last updated.
67
- #
68
- # @return [Time]
69
- required :updated, Time
70
-
71
- # @!method initialize(available_amount:, created:, currency:, financial_account_type:, last_financial_account_token:, last_transaction_event_token:, last_transaction_token:, pending_amount:, total_amount:, updated:)
72
- # Some parameter documentations has been truncated, see
73
- # {Lithic::Models::AggregateBalance} for more details.
74
- #
75
- # Aggregate Balance across all end-user accounts
76
- #
77
- # @param available_amount [Integer] Funds available for spend in the currency's smallest unit (e.g., cents for USD)
78
- #
79
- # @param created [Time] Date and time for when the balance was first created.
80
- #
81
- # @param currency [String] 3-character alphabetic ISO 4217 code for the local currency of the balance.
82
- #
83
- # @param financial_account_type [Symbol, Lithic::Models::AggregateBalance::FinancialAccountType] Type of financial account
84
- #
85
- # @param last_financial_account_token [String] Globally unique identifier for the financial account that had its balance update
86
- #
87
- # @param last_transaction_event_token [String] Globally unique identifier for the last transaction event that impacted this bal
88
- #
89
- # @param last_transaction_token [String] Globally unique identifier for the last transaction that impacted this balance
90
- #
91
- # @param pending_amount [Integer] Funds not available for spend due to card authorizations or pending ACH release.
92
- #
93
- # @param total_amount [Integer] The sum of available and pending balance in the currency's smallest unit (e.g.,
94
- #
95
- # @param updated [Time] Date and time for when the balance was last updated.
96
-
97
- # Type of financial account
98
- #
99
- # @see Lithic::Models::AggregateBalance#financial_account_type
100
- module FinancialAccountType
101
- extend Lithic::Internal::Type::Enum
102
-
103
- ISSUING = :ISSUING
104
- OPERATING = :OPERATING
105
- RESERVE = :RESERVE
106
- SECURITY = :SECURITY
107
-
108
- # @!method self.values
109
- # @return [Array<Symbol>]
110
- end
111
- end
112
- end
113
- end
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Models
5
- # @see Lithic::Resources::AggregateBalances#list
6
- class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel
7
- extend Lithic::Internal::Type::RequestParameters::Converter
8
- include Lithic::Internal::Type::RequestParameters
9
-
10
- # @!attribute financial_account_type
11
- # Get the aggregate balance for a given Financial Account type.
12
- #
13
- # @return [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType, nil]
14
- optional :financial_account_type, enum: -> { Lithic::AggregateBalanceListParams::FinancialAccountType }
15
-
16
- # @!method initialize(financial_account_type: nil, request_options: {})
17
- # @param financial_account_type [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType] Get the aggregate balance for a given Financial Account type.
18
- #
19
- # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
20
-
21
- # Get the aggregate balance for a given Financial Account type.
22
- module FinancialAccountType
23
- extend Lithic::Internal::Type::Enum
24
-
25
- ISSUING = :ISSUING
26
- OPERATING = :OPERATING
27
- RESERVE = :RESERVE
28
- SECURITY = :SECURITY
29
-
30
- # @!method self.values
31
- # @return [Array<Symbol>]
32
- end
33
- end
34
- end
35
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Models
5
- module Cards
6
- # @see Lithic::Resources::Cards::AggregateBalances#list
7
- class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel
8
- extend Lithic::Internal::Type::RequestParameters::Converter
9
- include Lithic::Internal::Type::RequestParameters
10
-
11
- # @!attribute account_token
12
- # Cardholder to retrieve aggregate balances for.
13
- #
14
- # @return [String, nil]
15
- optional :account_token, String
16
-
17
- # @!attribute business_account_token
18
- # Business to retrieve aggregate balances for.
19
- #
20
- # @return [String, nil]
21
- optional :business_account_token, String
22
-
23
- # @!method initialize(account_token: nil, business_account_token: nil, request_options: {})
24
- # @param account_token [String] Cardholder to retrieve aggregate balances for.
25
- #
26
- # @param business_account_token [String] Business to retrieve aggregate balances for.
27
- #
28
- # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
29
- end
30
- end
31
- end
32
- end
@@ -1,92 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Models
5
- module Cards
6
- # @see Lithic::Resources::Cards::AggregateBalances#list
7
- class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel
8
- # @!attribute available_amount
9
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
10
- #
11
- # @return [Integer]
12
- required :available_amount, Integer
13
-
14
- # @!attribute created
15
- # Date and time for when the balance was first created.
16
- #
17
- # @return [Time]
18
- required :created, Time
19
-
20
- # @!attribute currency
21
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
22
- #
23
- # @return [String]
24
- required :currency, String
25
-
26
- # @!attribute last_card_token
27
- # Globally unique identifier for the card that had its balance updated most
28
- # recently
29
- #
30
- # @return [String]
31
- required :last_card_token, String
32
-
33
- # @!attribute last_transaction_event_token
34
- # Globally unique identifier for the last transaction event that impacted this
35
- # balance
36
- #
37
- # @return [String]
38
- required :last_transaction_event_token, String
39
-
40
- # @!attribute last_transaction_token
41
- # Globally unique identifier for the last transaction that impacted this balance
42
- #
43
- # @return [String]
44
- required :last_transaction_token, String
45
-
46
- # @!attribute pending_amount
47
- # Funds not available for spend due to card authorizations or pending ACH release.
48
- # Shown in the currency's smallest unit (e.g., cents for USD)
49
- #
50
- # @return [Integer]
51
- required :pending_amount, Integer
52
-
53
- # @!attribute total_amount
54
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
55
- # cents for USD)
56
- #
57
- # @return [Integer]
58
- required :total_amount, Integer
59
-
60
- # @!attribute updated
61
- # Date and time for when the balance was last updated.
62
- #
63
- # @return [Time]
64
- required :updated, Time
65
-
66
- # @!method initialize(available_amount:, created:, currency:, last_card_token:, last_transaction_event_token:, last_transaction_token:, pending_amount:, total_amount:, updated:)
67
- # Some parameter documentations has been truncated, see
68
- # {Lithic::Models::Cards::AggregateBalanceListResponse} for more details.
69
- #
70
- # Card Aggregate Balance across all end-user accounts
71
- #
72
- # @param available_amount [Integer] Funds available for spend in the currency's smallest unit (e.g., cents for USD)
73
- #
74
- # @param created [Time] Date and time for when the balance was first created.
75
- #
76
- # @param currency [String] 3-character alphabetic ISO 4217 code for the local currency of the balance.
77
- #
78
- # @param last_card_token [String] Globally unique identifier for the card that had its balance updated most recent
79
- #
80
- # @param last_transaction_event_token [String] Globally unique identifier for the last transaction event that impacted this bal
81
- #
82
- # @param last_transaction_token [String] Globally unique identifier for the last transaction that impacted this balance
83
- #
84
- # @param pending_amount [Integer] Funds not available for spend due to card authorizations or pending ACH release.
85
- #
86
- # @param total_amount [Integer] The sum of available and pending balance in the currency's smallest unit (e.g.,
87
- #
88
- # @param updated [Time] Date and time for when the balance was last updated.
89
- end
90
- end
91
- end
92
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Resources
5
- class AggregateBalances
6
- # Get the aggregated balance across all end-user accounts by financial account
7
- # type
8
- #
9
- # @overload list(financial_account_type: nil, request_options: {})
10
- #
11
- # @param financial_account_type [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType] Get the aggregate balance for a given Financial Account type.
12
- #
13
- # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
14
- #
15
- # @return [Lithic::Internal::SinglePage<Lithic::Models::AggregateBalance>]
16
- #
17
- # @see Lithic::Models::AggregateBalanceListParams
18
- def list(params = {})
19
- parsed, options = Lithic::AggregateBalanceListParams.dump_request(params)
20
- @client.request(
21
- method: :get,
22
- path: "v1/aggregate_balances",
23
- query: parsed,
24
- page: Lithic::Internal::SinglePage,
25
- model: Lithic::AggregateBalance,
26
- options: options
27
- )
28
- end
29
-
30
- # @api private
31
- #
32
- # @param client [Lithic::Client]
33
- def initialize(client:)
34
- @client = client
35
- end
36
- end
37
- end
38
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Resources
5
- class Cards
6
- class AggregateBalances
7
- # Get the aggregated card balance across all end-user accounts.
8
- #
9
- # @overload list(account_token: nil, business_account_token: nil, request_options: {})
10
- #
11
- # @param account_token [String] Cardholder to retrieve aggregate balances for.
12
- #
13
- # @param business_account_token [String] Business to retrieve aggregate balances for.
14
- #
15
- # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
16
- #
17
- # @return [Lithic::Internal::SinglePage<Lithic::Models::Cards::AggregateBalanceListResponse>]
18
- #
19
- # @see Lithic::Models::Cards::AggregateBalanceListParams
20
- def list(params = {})
21
- parsed, options = Lithic::Cards::AggregateBalanceListParams.dump_request(params)
22
- @client.request(
23
- method: :get,
24
- path: "v1/cards/aggregate_balances",
25
- query: parsed,
26
- page: Lithic::Internal::SinglePage,
27
- model: Lithic::Models::Cards::AggregateBalanceListResponse,
28
- options: options
29
- )
30
- end
31
-
32
- # @api private
33
- #
34
- # @param client [Lithic::Client]
35
- def initialize(client:)
36
- @client = client
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,164 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- class AggregateBalance < Lithic::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Lithic::AggregateBalance, Lithic::Internal::AnyHash)
9
- end
10
-
11
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
12
- sig { returns(Integer) }
13
- attr_accessor :available_amount
14
-
15
- # Date and time for when the balance was first created.
16
- sig { returns(Time) }
17
- attr_accessor :created
18
-
19
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
20
- sig { returns(String) }
21
- attr_accessor :currency
22
-
23
- # Type of financial account
24
- sig do
25
- returns(Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol)
26
- end
27
- attr_accessor :financial_account_type
28
-
29
- # Globally unique identifier for the financial account that had its balance
30
- # updated most recently
31
- sig { returns(String) }
32
- attr_accessor :last_financial_account_token
33
-
34
- # Globally unique identifier for the last transaction event that impacted this
35
- # balance
36
- sig { returns(String) }
37
- attr_accessor :last_transaction_event_token
38
-
39
- # Globally unique identifier for the last transaction that impacted this balance
40
- sig { returns(String) }
41
- attr_accessor :last_transaction_token
42
-
43
- # Funds not available for spend due to card authorizations or pending ACH release.
44
- # Shown in the currency's smallest unit (e.g., cents for USD)
45
- sig { returns(Integer) }
46
- attr_accessor :pending_amount
47
-
48
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
49
- # cents for USD)
50
- sig { returns(Integer) }
51
- attr_accessor :total_amount
52
-
53
- # Date and time for when the balance was last updated.
54
- sig { returns(Time) }
55
- attr_accessor :updated
56
-
57
- # Aggregate Balance across all end-user accounts
58
- sig do
59
- params(
60
- available_amount: Integer,
61
- created: Time,
62
- currency: String,
63
- financial_account_type:
64
- Lithic::AggregateBalance::FinancialAccountType::OrSymbol,
65
- last_financial_account_token: String,
66
- last_transaction_event_token: String,
67
- last_transaction_token: String,
68
- pending_amount: Integer,
69
- total_amount: Integer,
70
- updated: Time
71
- ).returns(T.attached_class)
72
- end
73
- def self.new(
74
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
75
- available_amount:,
76
- # Date and time for when the balance was first created.
77
- created:,
78
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
79
- currency:,
80
- # Type of financial account
81
- financial_account_type:,
82
- # Globally unique identifier for the financial account that had its balance
83
- # updated most recently
84
- last_financial_account_token:,
85
- # Globally unique identifier for the last transaction event that impacted this
86
- # balance
87
- last_transaction_event_token:,
88
- # Globally unique identifier for the last transaction that impacted this balance
89
- last_transaction_token:,
90
- # Funds not available for spend due to card authorizations or pending ACH release.
91
- # Shown in the currency's smallest unit (e.g., cents for USD)
92
- pending_amount:,
93
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
94
- # cents for USD)
95
- total_amount:,
96
- # Date and time for when the balance was last updated.
97
- updated:
98
- )
99
- end
100
-
101
- sig do
102
- override.returns(
103
- {
104
- available_amount: Integer,
105
- created: Time,
106
- currency: String,
107
- financial_account_type:
108
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol,
109
- last_financial_account_token: String,
110
- last_transaction_event_token: String,
111
- last_transaction_token: String,
112
- pending_amount: Integer,
113
- total_amount: Integer,
114
- updated: Time
115
- }
116
- )
117
- end
118
- def to_hash
119
- end
120
-
121
- # Type of financial account
122
- module FinancialAccountType
123
- extend Lithic::Internal::Type::Enum
124
-
125
- TaggedSymbol =
126
- T.type_alias do
127
- T.all(Symbol, Lithic::AggregateBalance::FinancialAccountType)
128
- end
129
- OrSymbol = T.type_alias { T.any(Symbol, String) }
130
-
131
- ISSUING =
132
- T.let(
133
- :ISSUING,
134
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol
135
- )
136
- OPERATING =
137
- T.let(
138
- :OPERATING,
139
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol
140
- )
141
- RESERVE =
142
- T.let(
143
- :RESERVE,
144
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol
145
- )
146
- SECURITY =
147
- T.let(
148
- :SECURITY,
149
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol
150
- )
151
-
152
- sig do
153
- override.returns(
154
- T::Array[
155
- Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol
156
- ]
157
- )
158
- end
159
- def self.values
160
- end
161
- end
162
- end
163
- end
164
- end
@@ -1,104 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- class AggregateBalanceListParams < 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::AggregateBalanceListParams, Lithic::Internal::AnyHash)
12
- end
13
-
14
- # Get the aggregate balance for a given Financial Account type.
15
- sig do
16
- returns(
17
- T.nilable(
18
- Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol
19
- )
20
- )
21
- end
22
- attr_reader :financial_account_type
23
-
24
- sig do
25
- params(
26
- financial_account_type:
27
- Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol
28
- ).void
29
- end
30
- attr_writer :financial_account_type
31
-
32
- sig do
33
- params(
34
- financial_account_type:
35
- Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol,
36
- request_options: Lithic::RequestOptions::OrHash
37
- ).returns(T.attached_class)
38
- end
39
- def self.new(
40
- # Get the aggregate balance for a given Financial Account type.
41
- financial_account_type: nil,
42
- request_options: {}
43
- )
44
- end
45
-
46
- sig do
47
- override.returns(
48
- {
49
- financial_account_type:
50
- Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol,
51
- request_options: Lithic::RequestOptions
52
- }
53
- )
54
- end
55
- def to_hash
56
- end
57
-
58
- # Get the aggregate balance for a given Financial Account type.
59
- module FinancialAccountType
60
- extend Lithic::Internal::Type::Enum
61
-
62
- TaggedSymbol =
63
- T.type_alias do
64
- T.all(
65
- Symbol,
66
- Lithic::AggregateBalanceListParams::FinancialAccountType
67
- )
68
- end
69
- OrSymbol = T.type_alias { T.any(Symbol, String) }
70
-
71
- ISSUING =
72
- T.let(
73
- :ISSUING,
74
- Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol
75
- )
76
- OPERATING =
77
- T.let(
78
- :OPERATING,
79
- Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol
80
- )
81
- RESERVE =
82
- T.let(
83
- :RESERVE,
84
- Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol
85
- )
86
- SECURITY =
87
- T.let(
88
- :SECURITY,
89
- Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol
90
- )
91
-
92
- sig do
93
- override.returns(
94
- T::Array[
95
- Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol
96
- ]
97
- )
98
- end
99
- def self.values
100
- end
101
- end
102
- end
103
- end
104
- end
@@ -1,62 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- module Cards
6
- class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel
7
- extend Lithic::Internal::Type::RequestParameters::Converter
8
- include Lithic::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Lithic::Cards::AggregateBalanceListParams,
14
- Lithic::Internal::AnyHash
15
- )
16
- end
17
-
18
- # Cardholder to retrieve aggregate balances for.
19
- sig { returns(T.nilable(String)) }
20
- attr_reader :account_token
21
-
22
- sig { params(account_token: String).void }
23
- attr_writer :account_token
24
-
25
- # Business to retrieve aggregate balances for.
26
- sig { returns(T.nilable(String)) }
27
- attr_reader :business_account_token
28
-
29
- sig { params(business_account_token: String).void }
30
- attr_writer :business_account_token
31
-
32
- sig do
33
- params(
34
- account_token: String,
35
- business_account_token: String,
36
- request_options: Lithic::RequestOptions::OrHash
37
- ).returns(T.attached_class)
38
- end
39
- def self.new(
40
- # Cardholder to retrieve aggregate balances for.
41
- account_token: nil,
42
- # Business to retrieve aggregate balances for.
43
- business_account_token: nil,
44
- request_options: {}
45
- )
46
- end
47
-
48
- sig do
49
- override.returns(
50
- {
51
- account_token: String,
52
- business_account_token: String,
53
- request_options: Lithic::RequestOptions
54
- }
55
- )
56
- end
57
- def to_hash
58
- end
59
- end
60
- end
61
- end
62
- end