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
@@ -0,0 +1,78 @@
1
+ module Lithic
2
+ module Models
3
+ type tokenization_two_factor_authentication_code_sent_webhook_event =
4
+ {
5
+ account_token: String,
6
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
7
+ card_token: String,
8
+ created: Time,
9
+ event_type: :"tokenization.two_factor_authentication_code_sent",
10
+ tokenization_token: String
11
+ }
12
+
13
+ class TokenizationTwoFactorAuthenticationCodeSentWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor account_token: String
15
+
16
+ attr_accessor activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod
17
+
18
+ attr_accessor card_token: String
19
+
20
+ attr_accessor created: Time
21
+
22
+ attr_accessor event_type: :"tokenization.two_factor_authentication_code_sent"
23
+
24
+ attr_accessor tokenization_token: String
25
+
26
+ def initialize: (
27
+ account_token: String,
28
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
29
+ card_token: String,
30
+ created: Time,
31
+ tokenization_token: String,
32
+ ?event_type: :"tokenization.two_factor_authentication_code_sent"
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ account_token: String,
37
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
38
+ card_token: String,
39
+ created: Time,
40
+ event_type: :"tokenization.two_factor_authentication_code_sent",
41
+ tokenization_token: String
42
+ }
43
+
44
+ type activation_method =
45
+ {
46
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_,
47
+ value: String
48
+ }
49
+
50
+ class ActivationMethod < Lithic::Internal::Type::BaseModel
51
+ attr_accessor type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_
52
+
53
+ attr_accessor value: String
54
+
55
+ def initialize: (
56
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_,
57
+ value: String
58
+ ) -> void
59
+
60
+ def to_hash: -> {
61
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_,
62
+ value: String
63
+ }
64
+
65
+ type type_ = :EMAIL_TO_CARDHOLDER_ADDRESS | :TEXT_TO_CARDHOLDER_NUMBER
66
+
67
+ module Type
68
+ extend Lithic::Internal::Type::Enum
69
+
70
+ EMAIL_TO_CARDHOLDER_ADDRESS: :EMAIL_TO_CARDHOLDER_ADDRESS
71
+ TEXT_TO_CARDHOLDER_NUMBER: :TEXT_TO_CARDHOLDER_NUMBER
72
+
73
+ def self?.values: -> ::Array[Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_]
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,83 @@
1
+ module Lithic
2
+ module Models
3
+ type tokenization_two_factor_authentication_code_webhook_event =
4
+ {
5
+ account_token: String,
6
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
7
+ authentication_code: String,
8
+ card_token: String,
9
+ created: Time,
10
+ event_type: :"tokenization.two_factor_authentication_code",
11
+ tokenization_token: String
12
+ }
13
+
14
+ class TokenizationTwoFactorAuthenticationCodeWebhookEvent < Lithic::Internal::Type::BaseModel
15
+ attr_accessor account_token: String
16
+
17
+ attr_accessor activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod
18
+
19
+ attr_accessor authentication_code: String
20
+
21
+ attr_accessor card_token: String
22
+
23
+ attr_accessor created: Time
24
+
25
+ attr_accessor event_type: :"tokenization.two_factor_authentication_code"
26
+
27
+ attr_accessor tokenization_token: String
28
+
29
+ def initialize: (
30
+ account_token: String,
31
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
32
+ authentication_code: String,
33
+ card_token: String,
34
+ created: Time,
35
+ tokenization_token: String,
36
+ ?event_type: :"tokenization.two_factor_authentication_code"
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ account_token: String,
41
+ activation_method: Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
42
+ authentication_code: String,
43
+ card_token: String,
44
+ created: Time,
45
+ event_type: :"tokenization.two_factor_authentication_code",
46
+ tokenization_token: String
47
+ }
48
+
49
+ type activation_method =
50
+ {
51
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_,
52
+ value: String
53
+ }
54
+
55
+ class ActivationMethod < Lithic::Internal::Type::BaseModel
56
+ attr_accessor type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_
57
+
58
+ attr_accessor value: String
59
+
60
+ def initialize: (
61
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_,
62
+ value: String
63
+ ) -> void
64
+
65
+ def to_hash: -> {
66
+ type: Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_,
67
+ value: String
68
+ }
69
+
70
+ type type_ = :EMAIL_TO_CARDHOLDER_ADDRESS | :TEXT_TO_CARDHOLDER_NUMBER
71
+
72
+ module Type
73
+ extend Lithic::Internal::Type::Enum
74
+
75
+ EMAIL_TO_CARDHOLDER_ADDRESS: :EMAIL_TO_CARDHOLDER_ADDRESS
76
+ TEXT_TO_CARDHOLDER_NUMBER: :TEXT_TO_CARDHOLDER_NUMBER
77
+
78
+ def self?.values: -> ::Array[Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_]
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,40 @@
1
+ module Lithic
2
+ module Models
3
+ type tokenization_updated_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ created: Time,
8
+ event_type: :"tokenization.updated",
9
+ tokenization: Lithic::Tokenization
10
+ }
11
+
12
+ class TokenizationUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
13
+ attr_accessor account_token: String
14
+
15
+ attr_accessor card_token: String
16
+
17
+ attr_accessor created: Time
18
+
19
+ attr_accessor event_type: :"tokenization.updated"
20
+
21
+ attr_accessor tokenization: Lithic::Tokenization
22
+
23
+ def initialize: (
24
+ account_token: String,
25
+ card_token: String,
26
+ created: Time,
27
+ tokenization: Lithic::Tokenization,
28
+ ?event_type: :"tokenization.updated"
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ account_token: String,
33
+ card_token: String,
34
+ created: Time,
35
+ event_type: :"tokenization.updated",
36
+ tokenization: Lithic::Tokenization
37
+ }
38
+ end
39
+ end
40
+ end
@@ -787,6 +787,7 @@ module Lithic
787
787
  | :AUTH_RULE_ALLOWED_MCC
788
788
  | :AUTH_RULE_BLOCKED_COUNTRY
789
789
  | :AUTH_RULE_BLOCKED_MCC
790
+ | :AUTH_RULE
790
791
  | :CARD_CLOSED
791
792
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
792
793
  | :CARD_EXPIRED
@@ -847,6 +848,7 @@ module Lithic
847
848
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
848
849
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
849
850
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
851
+ AUTH_RULE: :AUTH_RULE
850
852
  CARD_CLOSED: :CARD_CLOSED
851
853
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
852
854
  CARD_EXPIRED: :CARD_EXPIRED
@@ -1133,6 +1135,7 @@ module Lithic
1133
1135
  | :AUTH_RULE_ALLOWED_MCC
1134
1136
  | :AUTH_RULE_BLOCKED_COUNTRY
1135
1137
  | :AUTH_RULE_BLOCKED_MCC
1138
+ | :AUTH_RULE
1136
1139
  | :CARD_CLOSED
1137
1140
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1138
1141
  | :CARD_EXPIRED
@@ -1193,6 +1196,7 @@ module Lithic
1193
1196
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
1194
1197
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
1195
1198
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
1199
+ AUTH_RULE: :AUTH_RULE
1196
1200
  CARD_CLOSED: :CARD_CLOSED
1197
1201
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1198
1202
  CARD_EXPIRED: :CARD_EXPIRED
@@ -0,0 +1,22 @@
1
+ module Lithic
2
+ module Models
3
+ type transfer_limit_list_params =
4
+ { date: Date } & Lithic::Internal::Type::request_parameters
5
+
6
+ class TransferLimitListParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ attr_reader date: Date?
11
+
12
+ def date=: (Date) -> Date
13
+
14
+ def initialize: (
15
+ ?date: Date,
16
+ ?request_options: Lithic::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> { date: Date, request_options: Lithic::RequestOptions }
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,232 @@
1
+ module Lithic
2
+ module Models
3
+ type transfer_limits_response =
4
+ { data: ::Array[Lithic::TransferLimitsResponse::Data], has_more: bool }
5
+
6
+ class TransferLimitsResponse < Lithic::Internal::Type::BaseModel
7
+ attr_accessor data: ::Array[Lithic::TransferLimitsResponse::Data]
8
+
9
+ attr_accessor has_more: bool
10
+
11
+ def initialize: (
12
+ data: ::Array[Lithic::TransferLimitsResponse::Data],
13
+ has_more: bool
14
+ ) -> void
15
+
16
+ def to_hash: -> {
17
+ data: ::Array[Lithic::TransferLimitsResponse::Data],
18
+ has_more: bool
19
+ }
20
+
21
+ type data =
22
+ {
23
+ company_id: String,
24
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
25
+ date: Date,
26
+ is_fbo: bool,
27
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
28
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
29
+ }
30
+
31
+ class Data < Lithic::Internal::Type::BaseModel
32
+ attr_accessor company_id: String
33
+
34
+ attr_accessor daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit
35
+
36
+ attr_accessor date: Date
37
+
38
+ attr_accessor is_fbo: bool
39
+
40
+ attr_accessor monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit
41
+
42
+ attr_accessor program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
43
+
44
+ def initialize: (
45
+ company_id: String,
46
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
47
+ date: Date,
48
+ is_fbo: bool,
49
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
50
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ company_id: String,
55
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
56
+ date: Date,
57
+ is_fbo: bool,
58
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
59
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
60
+ }
61
+
62
+ type daily_limit =
63
+ {
64
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
65
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
66
+ }
67
+
68
+ class DailyLimit < Lithic::Internal::Type::BaseModel
69
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit
70
+
71
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
72
+
73
+ def initialize: (
74
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
75
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
76
+ ) -> void
77
+
78
+ def to_hash: -> {
79
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
80
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
81
+ }
82
+
83
+ type credit = { limit: Integer, amount_originated: Integer }
84
+
85
+ class Credit < Lithic::Internal::Type::BaseModel
86
+ attr_accessor limit: Integer
87
+
88
+ attr_reader amount_originated: Integer?
89
+
90
+ def amount_originated=: (Integer) -> Integer
91
+
92
+ def initialize: (
93
+ limit: Integer,
94
+ ?amount_originated: Integer
95
+ ) -> void
96
+
97
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
98
+ end
99
+
100
+ type debit = { limit: Integer, amount_originated: Integer }
101
+
102
+ class Debit < Lithic::Internal::Type::BaseModel
103
+ attr_accessor limit: Integer
104
+
105
+ attr_reader amount_originated: Integer?
106
+
107
+ def amount_originated=: (Integer) -> Integer
108
+
109
+ def initialize: (
110
+ limit: Integer,
111
+ ?amount_originated: Integer
112
+ ) -> void
113
+
114
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
115
+ end
116
+ end
117
+
118
+ type monthly_limit =
119
+ {
120
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
121
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
122
+ }
123
+
124
+ class MonthlyLimit < Lithic::Internal::Type::BaseModel
125
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit
126
+
127
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
128
+
129
+ def initialize: (
130
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
131
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
132
+ ) -> void
133
+
134
+ def to_hash: -> {
135
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
136
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
137
+ }
138
+
139
+ type credit = { limit: Integer, amount_originated: Integer }
140
+
141
+ class Credit < Lithic::Internal::Type::BaseModel
142
+ attr_accessor limit: Integer
143
+
144
+ attr_reader amount_originated: Integer?
145
+
146
+ def amount_originated=: (Integer) -> Integer
147
+
148
+ def initialize: (
149
+ limit: Integer,
150
+ ?amount_originated: Integer
151
+ ) -> void
152
+
153
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
154
+ end
155
+
156
+ type debit = { limit: Integer, amount_originated: Integer }
157
+
158
+ class Debit < Lithic::Internal::Type::BaseModel
159
+ attr_accessor limit: Integer
160
+
161
+ attr_reader amount_originated: Integer?
162
+
163
+ def amount_originated=: (Integer) -> Integer
164
+
165
+ def initialize: (
166
+ limit: Integer,
167
+ ?amount_originated: Integer
168
+ ) -> void
169
+
170
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
171
+ end
172
+ end
173
+
174
+ type program_limit_per_transaction =
175
+ {
176
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
177
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
178
+ }
179
+
180
+ class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel
181
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit
182
+
183
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
184
+
185
+ def initialize: (
186
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
187
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
188
+ ) -> void
189
+
190
+ def to_hash: -> {
191
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
192
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
193
+ }
194
+
195
+ type credit = { limit: Integer, amount_originated: Integer }
196
+
197
+ class Credit < Lithic::Internal::Type::BaseModel
198
+ attr_accessor limit: Integer
199
+
200
+ attr_reader amount_originated: Integer?
201
+
202
+ def amount_originated=: (Integer) -> Integer
203
+
204
+ def initialize: (
205
+ limit: Integer,
206
+ ?amount_originated: Integer
207
+ ) -> void
208
+
209
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
210
+ end
211
+
212
+ type debit = { limit: Integer, amount_originated: Integer }
213
+
214
+ class Debit < Lithic::Internal::Type::BaseModel
215
+ attr_accessor limit: Integer
216
+
217
+ attr_reader amount_originated: Integer?
218
+
219
+ def amount_originated=: (Integer) -> Integer
220
+
221
+ def initialize: (
222
+ limit: Integer,
223
+ ?amount_originated: Integer
224
+ ) -> void
225
+
226
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
227
+ end
228
+ end
229
+ end
230
+ end
231
+ end
232
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ type webhook_parsed_params =
4
+ { } & Lithic::Internal::Type::request_parameters
5
+
6
+ class WebhookParsedParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: Lithic::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: Lithic::RequestOptions }
13
+ end
14
+ end
15
+ end