lithic 0.1.0 → 0.2.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 (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +36 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/errors.rb +15 -0
  6. data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
  7. data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
  8. data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
  9. data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
  10. data/lib/lithic/models/asa_request_webhook_event.rb +1010 -0
  11. data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
  12. data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
  13. data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
  14. data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
  15. data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
  16. data/lib/lithic/models/card_created_webhook_event.rb +32 -0
  17. data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
  18. data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
  19. data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
  20. data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
  21. data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
  22. data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
  23. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
  24. data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
  25. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  26. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  27. data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
  28. data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
  29. data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
  30. data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
  31. data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
  32. data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
  33. data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
  34. data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
  35. data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
  36. data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
  37. data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
  38. data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
  39. data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
  40. data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
  41. data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
  42. data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
  43. data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
  44. data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
  45. data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
  46. data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
  47. data/lib/lithic/models/parsed_webhook_event.rb +818 -0
  48. data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
  49. data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
  50. data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
  51. data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
  52. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
  53. data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
  54. data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
  55. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
  56. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
  57. data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
  58. data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  59. data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  60. data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
  61. data/lib/lithic/models/webhook_parsed_params.rb +14 -0
  62. data/lib/lithic/models.rb +120 -0
  63. data/lib/lithic/resources/webhooks.rb +87 -0
  64. data/lib/lithic/version.rb +1 -1
  65. data/lib/lithic.rb +74 -17
  66. data/rbi/lithic/client.rbi +3 -0
  67. data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
  68. data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
  69. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
  70. data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
  71. data/rbi/lithic/models/asa_request_webhook_event.rbi +2229 -0
  72. data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
  73. data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
  74. data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
  75. data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
  76. data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
  77. data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
  78. data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
  79. data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
  80. data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
  81. data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
  82. data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
  83. data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
  84. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
  85. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
  86. data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
  87. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  88. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  89. data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
  90. data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
  91. data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
  92. data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
  93. data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
  94. data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
  95. data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
  96. data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
  97. data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
  98. data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
  99. data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
  100. data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
  101. data/rbi/lithic/models/internal_transaction.rbi +15 -10
  102. data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
  103. data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
  104. data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
  105. data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
  106. data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
  107. data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
  108. data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
  109. data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
  110. data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
  111. data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
  112. data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
  113. data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
  114. data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
  115. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
  116. data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
  117. data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
  118. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
  119. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
  120. data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
  121. data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  122. data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  123. data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
  124. data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
  125. data/rbi/lithic/models.rbi +155 -0
  126. data/rbi/lithic/resources/webhooks.rbi +158 -0
  127. data/sig/lithic/client.rbs +2 -0
  128. data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
  129. data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
  130. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
  131. data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
  132. data/sig/lithic/models/asa_request_webhook_event.rbs +881 -0
  133. data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
  134. data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
  135. data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
  136. data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
  137. data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
  138. data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
  139. data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
  140. data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
  141. data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
  142. data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
  143. data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
  144. data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
  145. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
  146. data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
  147. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  148. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  149. data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
  150. data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
  151. data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
  152. data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
  153. data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
  154. data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
  155. data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
  156. data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
  157. data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
  158. data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
  159. data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
  160. data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
  161. data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
  162. data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
  163. data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
  164. data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
  165. data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
  166. data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
  167. data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
  168. data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
  169. data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
  170. data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
  171. data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
  172. data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
  173. data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
  174. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
  175. data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
  176. data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
  177. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
  178. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
  179. data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
  180. data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  181. data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  182. data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
  183. data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
  184. data/sig/lithic/models.rbs +112 -0
  185. data/sig/lithic/resources/webhooks.rbs +135 -0
  186. metadata +173 -2
@@ -0,0 +1,133 @@
1
+ module Lithic
2
+ module Models
3
+ type digital_wallet_tokenization_result_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ created: Time,
8
+ event_type: :"digital_wallet.tokenization_result",
9
+ tokenization_result_details: Lithic::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails,
10
+ tokenization_token: String
11
+ }
12
+
13
+ class DigitalWalletTokenizationResultWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor account_token: String
15
+
16
+ attr_accessor card_token: String
17
+
18
+ attr_accessor created: Time
19
+
20
+ attr_accessor event_type: :"digital_wallet.tokenization_result"
21
+
22
+ attr_accessor tokenization_result_details: Lithic::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails
23
+
24
+ attr_accessor tokenization_token: String
25
+
26
+ def initialize: (
27
+ account_token: String,
28
+ card_token: String,
29
+ created: Time,
30
+ tokenization_result_details: Lithic::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails,
31
+ tokenization_token: String,
32
+ ?event_type: :"digital_wallet.tokenization_result"
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ account_token: String,
37
+ card_token: String,
38
+ created: Time,
39
+ event_type: :"digital_wallet.tokenization_result",
40
+ tokenization_result_details: Lithic::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails,
41
+ tokenization_token: String
42
+ }
43
+
44
+ type tokenization_result_details =
45
+ {
46
+ issuer_decision: String,
47
+ tokenization_decline_reasons: ::Array[Lithic::Models::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails::tokenization_decline_reason],
48
+ customer_decision: String?,
49
+ rule_results: ::Array[Lithic::TokenizationRuleResult],
50
+ token_activated_date_time: Time?,
51
+ tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
52
+ wallet_decision: String?
53
+ }
54
+
55
+ class TokenizationResultDetails < Lithic::Internal::Type::BaseModel
56
+ attr_accessor issuer_decision: String
57
+
58
+ attr_accessor tokenization_decline_reasons: ::Array[Lithic::Models::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails::tokenization_decline_reason]
59
+
60
+ attr_accessor customer_decision: String?
61
+
62
+ attr_reader rule_results: ::Array[Lithic::TokenizationRuleResult]?
63
+
64
+ def rule_results=: (
65
+ ::Array[Lithic::TokenizationRuleResult]
66
+ ) -> ::Array[Lithic::TokenizationRuleResult]
67
+
68
+ attr_accessor token_activated_date_time: Time?
69
+
70
+ attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]?
71
+
72
+ def tokenization_tfa_reasons=: (
73
+ ::Array[Lithic::Models::tokenization_tfa_reason]
74
+ ) -> ::Array[Lithic::Models::tokenization_tfa_reason]
75
+
76
+ attr_accessor wallet_decision: String?
77
+
78
+ def initialize: (
79
+ issuer_decision: String,
80
+ tokenization_decline_reasons: ::Array[Lithic::Models::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails::tokenization_decline_reason],
81
+ ?customer_decision: String?,
82
+ ?rule_results: ::Array[Lithic::TokenizationRuleResult],
83
+ ?token_activated_date_time: Time?,
84
+ ?tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
85
+ ?wallet_decision: String?
86
+ ) -> void
87
+
88
+ def to_hash: -> {
89
+ issuer_decision: String,
90
+ tokenization_decline_reasons: ::Array[Lithic::Models::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails::tokenization_decline_reason],
91
+ customer_decision: String?,
92
+ rule_results: ::Array[Lithic::TokenizationRuleResult],
93
+ token_activated_date_time: Time?,
94
+ tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
95
+ wallet_decision: String?
96
+ }
97
+
98
+ type tokenization_decline_reason =
99
+ :ACCOUNT_SCORE_1
100
+ | :ALL_WALLET_DECLINE_REASONS_PRESENT
101
+ | :CARD_EXPIRY_MONTH_MISMATCH
102
+ | :CARD_EXPIRY_YEAR_MISMATCH
103
+ | :CARD_INVALID_STATE
104
+ | :CUSTOMER_RED_PATH
105
+ | :CVC_MISMATCH
106
+ | :DEVICE_SCORE_1
107
+ | :GENERIC_DECLINE
108
+ | :INVALID_CUSTOMER_RESPONSE
109
+ | :NETWORK_FAILURE
110
+ | :WALLET_RECOMMENDED_DECISION_RED
111
+
112
+ module TokenizationDeclineReason
113
+ extend Lithic::Internal::Type::Enum
114
+
115
+ ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1
116
+ ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT
117
+ CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH
118
+ CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH
119
+ CARD_INVALID_STATE: :CARD_INVALID_STATE
120
+ CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH
121
+ CVC_MISMATCH: :CVC_MISMATCH
122
+ DEVICE_SCORE_1: :DEVICE_SCORE_1
123
+ GENERIC_DECLINE: :GENERIC_DECLINE
124
+ INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE
125
+ NETWORK_FAILURE: :NETWORK_FAILURE
126
+ WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED
127
+
128
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationResultWebhookEvent::TokenizationResultDetails::tokenization_decline_reason]
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,78 @@
1
+ module Lithic
2
+ module Models
3
+ type digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event =
4
+ {
5
+ account_token: String,
6
+ activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
7
+ card_token: String,
8
+ created: Time,
9
+ event_type: :"digital_wallet.tokenization_two_factor_authentication_code_sent",
10
+ tokenization_token: String
11
+ }
12
+
13
+ class DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor account_token: String
15
+
16
+ attr_accessor activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod
17
+
18
+ attr_accessor card_token: String
19
+
20
+ attr_accessor created: Time
21
+
22
+ attr_accessor event_type: :"digital_wallet.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::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
29
+ card_token: String,
30
+ created: Time,
31
+ tokenization_token: String,
32
+ ?event_type: :"digital_wallet.tokenization_two_factor_authentication_code_sent"
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ account_token: String,
37
+ activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod,
38
+ card_token: String,
39
+ created: Time,
40
+ event_type: :"digital_wallet.tokenization_two_factor_authentication_code_sent",
41
+ tokenization_token: String
42
+ }
43
+
44
+ type activation_method =
45
+ {
46
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_,
47
+ value: String
48
+ }
49
+
50
+ class ActivationMethod < Lithic::Internal::Type::BaseModel
51
+ attr_accessor type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_
52
+
53
+ attr_accessor value: String
54
+
55
+ def initialize: (
56
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_,
57
+ value: String
58
+ ) -> void
59
+
60
+ def to_hash: -> {
61
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::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::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent::ActivationMethod::type_]
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,83 @@
1
+ module Lithic
2
+ module Models
3
+ type digital_wallet_tokenization_two_factor_authentication_code_webhook_event =
4
+ {
5
+ account_token: String,
6
+ activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
7
+ authentication_code: String,
8
+ card_token: String,
9
+ created: Time,
10
+ event_type: :"digital_wallet.tokenization_two_factor_authentication_code",
11
+ tokenization_token: String
12
+ }
13
+
14
+ class DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent < Lithic::Internal::Type::BaseModel
15
+ attr_accessor account_token: String
16
+
17
+ attr_accessor activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::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: :"digital_wallet.tokenization_two_factor_authentication_code"
26
+
27
+ attr_accessor tokenization_token: String
28
+
29
+ def initialize: (
30
+ account_token: String,
31
+ activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
32
+ authentication_code: String,
33
+ card_token: String,
34
+ created: Time,
35
+ tokenization_token: String,
36
+ ?event_type: :"digital_wallet.tokenization_two_factor_authentication_code"
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ account_token: String,
41
+ activation_method: Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod,
42
+ authentication_code: String,
43
+ card_token: String,
44
+ created: Time,
45
+ event_type: :"digital_wallet.tokenization_two_factor_authentication_code",
46
+ tokenization_token: String
47
+ }
48
+
49
+ type activation_method =
50
+ {
51
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_,
52
+ value: String
53
+ }
54
+
55
+ class ActivationMethod < Lithic::Internal::Type::BaseModel
56
+ attr_accessor type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_
57
+
58
+ attr_accessor value: String
59
+
60
+ def initialize: (
61
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_,
62
+ value: String
63
+ ) -> void
64
+
65
+ def to_hash: -> {
66
+ type: Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::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::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent::ActivationMethod::type_]
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,40 @@
1
+ module Lithic
2
+ module Models
3
+ type digital_wallet_tokenization_updated_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ created: Time,
8
+ event_type: :"digital_wallet.tokenization_updated",
9
+ tokenization: Lithic::Tokenization
10
+ }
11
+
12
+ class DigitalWalletTokenizationUpdatedWebhookEvent < 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: :"digital_wallet.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: :"digital_wallet.tokenization_updated"
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ account_token: String,
33
+ card_token: String,
34
+ created: Time,
35
+ event_type: :"digital_wallet.tokenization_updated",
36
+ tokenization: Lithic::Tokenization
37
+ }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type dispute_evidence_upload_failed_webhook_event =
4
+ { event_type: :"dispute_evidence.upload_failed" }
5
+
6
+ class DisputeEvidenceUploadFailedWebhookEvent < Lithic::Models::DisputeEvidence
7
+ def event_type: -> :"dispute_evidence.upload_failed"
8
+
9
+ def event_type=: (
10
+ :"dispute_evidence.upload_failed" _
11
+ ) -> :"dispute_evidence.upload_failed"
12
+
13
+ def initialize: (?event_type: :"dispute_evidence.upload_failed") -> void
14
+
15
+ def to_hash: -> { event_type: :"dispute_evidence.upload_failed" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type dispute_transaction_created_webhook_event =
4
+ { event_type: :"dispute_transaction.created" }
5
+
6
+ class DisputeTransactionCreatedWebhookEvent < Lithic::Models::DisputeV2
7
+ def event_type: -> :"dispute_transaction.created"
8
+
9
+ def event_type=: (
10
+ :"dispute_transaction.created" _
11
+ ) -> :"dispute_transaction.created"
12
+
13
+ def initialize: (?event_type: :"dispute_transaction.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"dispute_transaction.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type dispute_transaction_updated_webhook_event =
4
+ { event_type: :"dispute_transaction.updated" }
5
+
6
+ class DisputeTransactionUpdatedWebhookEvent < Lithic::Models::DisputeV2
7
+ def event_type: -> :"dispute_transaction.updated"
8
+
9
+ def event_type=: (
10
+ :"dispute_transaction.updated" _
11
+ ) -> :"dispute_transaction.updated"
12
+
13
+ def initialize: (?event_type: :"dispute_transaction.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"dispute_transaction.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ type dispute_updated_webhook_event = { event_type: :"dispute.updated" }
4
+
5
+ class DisputeUpdatedWebhookEvent < Lithic::Models::Dispute
6
+ def event_type: -> :"dispute.updated"
7
+
8
+ def event_type=: (:"dispute.updated" _) -> :"dispute.updated"
9
+
10
+ def initialize: (?event_type: :"dispute.updated") -> void
11
+
12
+ def to_hash: -> { event_type: :"dispute.updated" }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type external_bank_account_created_webhook_event =
4
+ { event_type: :"external_bank_account.created" }
5
+
6
+ class ExternalBankAccountCreatedWebhookEvent < Lithic::Models::ExternalBankAccount
7
+ def event_type: -> :"external_bank_account.created"
8
+
9
+ def event_type=: (
10
+ :"external_bank_account.created" _
11
+ ) -> :"external_bank_account.created"
12
+
13
+ def initialize: (?event_type: :"external_bank_account.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"external_bank_account.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type external_bank_account_updated_webhook_event =
4
+ { event_type: :"external_bank_account.updated" }
5
+
6
+ class ExternalBankAccountUpdatedWebhookEvent < Lithic::Models::ExternalBankAccount
7
+ def event_type: -> :"external_bank_account.updated"
8
+
9
+ def event_type=: (
10
+ :"external_bank_account.updated" _
11
+ ) -> :"external_bank_account.updated"
12
+
13
+ def initialize: (?event_type: :"external_bank_account.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"external_bank_account.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type external_payment_created_webhook_event =
4
+ { event_type: :"external_payment.created" }
5
+
6
+ class ExternalPaymentCreatedWebhookEvent < Lithic::Models::ExternalPayment
7
+ def event_type: -> :"external_payment.created"
8
+
9
+ def event_type=: (
10
+ :"external_payment.created" _
11
+ ) -> :"external_payment.created"
12
+
13
+ def initialize: (?event_type: :"external_payment.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"external_payment.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type external_payment_updated_webhook_event =
4
+ { event_type: :"external_payment.updated" }
5
+
6
+ class ExternalPaymentUpdatedWebhookEvent < Lithic::Models::ExternalPayment
7
+ def event_type: -> :"external_payment.updated"
8
+
9
+ def event_type=: (
10
+ :"external_payment.updated" _
11
+ ) -> :"external_payment.updated"
12
+
13
+ def initialize: (?event_type: :"external_payment.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"external_payment.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type financial_account_created_webhook_event =
4
+ { event_type: :"financial_account.created" }
5
+
6
+ class FinancialAccountCreatedWebhookEvent < Lithic::Models::FinancialAccount
7
+ def event_type: -> :"financial_account.created"
8
+
9
+ def event_type=: (
10
+ :"financial_account.created" _
11
+ ) -> :"financial_account.created"
12
+
13
+ def initialize: (?event_type: :"financial_account.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"financial_account.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type financial_account_updated_webhook_event =
4
+ { event_type: :"financial_account.updated" }
5
+
6
+ class FinancialAccountUpdatedWebhookEvent < Lithic::Models::FinancialAccount
7
+ def event_type: -> :"financial_account.updated"
8
+
9
+ def event_type=: (
10
+ :"financial_account.updated" _
11
+ ) -> :"financial_account.updated"
12
+
13
+ def initialize: (?event_type: :"financial_account.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"financial_account.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ module Lithic
2
+ module Models
3
+ type funding_event_created_webhook_event =
4
+ { event_type: :"funding_event.created" }
5
+
6
+ class FundingEventCreatedWebhookEvent < Lithic::Models::FundingEvent
7
+ def event_type: -> :"funding_event.created"
8
+
9
+ def event_type=: (:"funding_event.created" _) -> :"funding_event.created"
10
+
11
+ def initialize: (?event_type: :"funding_event.created") -> void
12
+
13
+ def to_hash: -> { event_type: :"funding_event.created" }
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type internal_transaction_created_webhook_event =
4
+ { event_type: :"internal_transaction.created" }
5
+
6
+ class InternalTransactionCreatedWebhookEvent < Lithic::Models::InternalTransactionAPI
7
+ def event_type: -> :"internal_transaction.created"
8
+
9
+ def event_type=: (
10
+ :"internal_transaction.created" _
11
+ ) -> :"internal_transaction.created"
12
+
13
+ def initialize: (?event_type: :"internal_transaction.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"internal_transaction.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type internal_transaction_updated_webhook_event =
4
+ { event_type: :"internal_transaction.updated" }
5
+
6
+ class InternalTransactionUpdatedWebhookEvent < Lithic::Models::InternalTransactionAPI
7
+ def event_type: -> :"internal_transaction.updated"
8
+
9
+ def event_type=: (
10
+ :"internal_transaction.updated" _
11
+ ) -> :"internal_transaction.updated"
12
+
13
+ def initialize: (?event_type: :"internal_transaction.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"internal_transaction.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ type loan_tape_created_webhook_event = { event_type: :"loan_tape.created" }
4
+
5
+ class LoanTapeCreatedWebhookEvent < Lithic::Models::FinancialAccounts::LoanTape
6
+ def event_type: -> :"loan_tape.created"
7
+
8
+ def event_type=: (:"loan_tape.created" _) -> :"loan_tape.created"
9
+
10
+ def initialize: (?event_type: :"loan_tape.created") -> void
11
+
12
+ def to_hash: -> { event_type: :"loan_tape.created" }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ type loan_tape_updated_webhook_event = { event_type: :"loan_tape.updated" }
4
+
5
+ class LoanTapeUpdatedWebhookEvent < Lithic::Models::FinancialAccounts::LoanTape
6
+ def event_type: -> :"loan_tape.updated"
7
+
8
+ def event_type=: (:"loan_tape.updated" _) -> :"loan_tape.updated"
9
+
10
+ def initialize: (?event_type: :"loan_tape.updated") -> void
11
+
12
+ def to_hash: -> { event_type: :"loan_tape.updated" }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type management_operation_created_webhook_event =
4
+ { event_type: :"management_operation.created" }
5
+
6
+ class ManagementOperationCreatedWebhookEvent < Lithic::Models::ManagementOperationTransaction
7
+ def event_type: -> :"management_operation.created"
8
+
9
+ def event_type=: (
10
+ :"management_operation.created" _
11
+ ) -> :"management_operation.created"
12
+
13
+ def initialize: (?event_type: :"management_operation.created") -> void
14
+
15
+ def to_hash: -> { event_type: :"management_operation.created" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type management_operation_updated_webhook_event =
4
+ { event_type: :"management_operation.updated" }
5
+
6
+ class ManagementOperationUpdatedWebhookEvent < Lithic::Models::ManagementOperationTransaction
7
+ def event_type: -> :"management_operation.updated"
8
+
9
+ def event_type=: (
10
+ :"management_operation.updated" _
11
+ ) -> :"management_operation.updated"
12
+
13
+ def initialize: (?event_type: :"management_operation.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"management_operation.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ module Lithic
2
+ module Models
3
+ type network_total_created_webhook_event =
4
+ { event_type: :"network_total.created" }
5
+
6
+ class NetworkTotalCreatedWebhookEvent < Lithic::Models::NetworkTotal
7
+ def event_type: -> :"network_total.created"
8
+
9
+ def event_type=: (:"network_total.created" _) -> :"network_total.created"
10
+
11
+ def initialize: (?event_type: :"network_total.created") -> void
12
+
13
+ def to_hash: -> { event_type: :"network_total.created" }
14
+ end
15
+ end
16
+ end