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,886 @@
1
+ module Lithic
2
+ module Models
3
+ type card_authorization_approval_request_webhook_event =
4
+ {
5
+ token: String,
6
+ acquirer_fee: Integer,
7
+ amount: Integer,
8
+ authorization_amount: Integer,
9
+ avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
10
+ card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
11
+ cardholder_currency: String,
12
+ cash_amount: Integer,
13
+ created: Time,
14
+ event_type: :"card_authorization.approval_request",
15
+ merchant: Lithic::Merchant,
16
+ merchant_amount: Integer,
17
+ merchant_currency: String,
18
+ settled_amount: Integer,
19
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
20
+ transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
21
+ account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type,
22
+ cardholder_authentication: Lithic::CardholderAuthentication,
23
+ cashback: Integer,
24
+ conversion_rate: Float,
25
+ event_token: String,
26
+ fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?,
27
+ latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge,
28
+ network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network,
29
+ network_risk_score: Integer?,
30
+ network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?,
31
+ pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos,
32
+ token_info: Lithic::TokenInfo?,
33
+ ttl: Time
34
+ }
35
+
36
+ class CardAuthorizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel
37
+ attr_accessor token: String
38
+
39
+ attr_accessor acquirer_fee: Integer
40
+
41
+ attr_accessor amount: Integer
42
+
43
+ attr_accessor authorization_amount: Integer
44
+
45
+ attr_accessor avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs
46
+
47
+ attr_accessor card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card
48
+
49
+ attr_accessor cardholder_currency: String
50
+
51
+ attr_accessor cash_amount: Integer
52
+
53
+ attr_accessor created: Time
54
+
55
+ attr_accessor event_type: :"card_authorization.approval_request"
56
+
57
+ attr_accessor merchant: Lithic::Merchant
58
+
59
+ attr_accessor merchant_amount: Integer
60
+
61
+ attr_accessor merchant_currency: String
62
+
63
+ attr_accessor settled_amount: Integer
64
+
65
+ attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status
66
+
67
+ attr_accessor transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator
68
+
69
+ attr_reader account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type?
70
+
71
+ def account_type=: (
72
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type
73
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type
74
+
75
+ attr_reader cardholder_authentication: Lithic::CardholderAuthentication?
76
+
77
+ def cardholder_authentication=: (
78
+ Lithic::CardholderAuthentication
79
+ ) -> Lithic::CardholderAuthentication
80
+
81
+ attr_reader cashback: Integer?
82
+
83
+ def cashback=: (Integer) -> Integer
84
+
85
+ attr_reader conversion_rate: Float?
86
+
87
+ def conversion_rate=: (Float) -> Float
88
+
89
+ attr_reader event_token: String?
90
+
91
+ def event_token=: (String) -> String
92
+
93
+ attr_accessor fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?
94
+
95
+ attr_reader latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge?
96
+
97
+ def latest_challenge=: (
98
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge
99
+ ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge
100
+
101
+ attr_reader network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network?
102
+
103
+ def network=: (
104
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network
105
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network
106
+
107
+ attr_accessor network_risk_score: Integer?
108
+
109
+ attr_accessor network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?
110
+
111
+ attr_reader pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos?
112
+
113
+ def pos=: (
114
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos
115
+ ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos
116
+
117
+ attr_accessor token_info: Lithic::TokenInfo?
118
+
119
+ attr_reader ttl: Time?
120
+
121
+ def ttl=: (Time) -> Time
122
+
123
+ def initialize: (
124
+ token: String,
125
+ acquirer_fee: Integer,
126
+ amount: Integer,
127
+ authorization_amount: Integer,
128
+ avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
129
+ card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
130
+ cardholder_currency: String,
131
+ cash_amount: Integer,
132
+ created: Time,
133
+ merchant: Lithic::Merchant,
134
+ merchant_amount: Integer,
135
+ merchant_currency: String,
136
+ settled_amount: Integer,
137
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
138
+ transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
139
+ ?account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type,
140
+ ?cardholder_authentication: Lithic::CardholderAuthentication,
141
+ ?cashback: Integer,
142
+ ?conversion_rate: Float,
143
+ ?event_token: String,
144
+ ?fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?,
145
+ ?latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge,
146
+ ?network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network,
147
+ ?network_risk_score: Integer?,
148
+ ?network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?,
149
+ ?pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos,
150
+ ?token_info: Lithic::TokenInfo?,
151
+ ?ttl: Time,
152
+ ?event_type: :"card_authorization.approval_request"
153
+ ) -> void
154
+
155
+ def to_hash: -> {
156
+ token: String,
157
+ acquirer_fee: Integer,
158
+ amount: Integer,
159
+ authorization_amount: Integer,
160
+ avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
161
+ card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
162
+ cardholder_currency: String,
163
+ cash_amount: Integer,
164
+ created: Time,
165
+ event_type: :"card_authorization.approval_request",
166
+ merchant: Lithic::Merchant,
167
+ merchant_amount: Integer,
168
+ merchant_currency: String,
169
+ settled_amount: Integer,
170
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
171
+ transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
172
+ account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type,
173
+ cardholder_authentication: Lithic::CardholderAuthentication,
174
+ cashback: Integer,
175
+ conversion_rate: Float,
176
+ event_token: String,
177
+ fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?,
178
+ latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge,
179
+ network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network,
180
+ network_risk_score: Integer?,
181
+ network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?,
182
+ pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos,
183
+ token_info: Lithic::TokenInfo?,
184
+ ttl: Time
185
+ }
186
+
187
+ type avs =
188
+ {
189
+ address: String,
190
+ address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match,
191
+ zipcode: String
192
+ }
193
+
194
+ class Avs < Lithic::Internal::Type::BaseModel
195
+ attr_accessor address: String
196
+
197
+ attr_accessor address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match
198
+
199
+ attr_accessor zipcode: String
200
+
201
+ def initialize: (
202
+ address: String,
203
+ address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match,
204
+ zipcode: String
205
+ ) -> void
206
+
207
+ def to_hash: -> {
208
+ address: String,
209
+ address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match,
210
+ zipcode: String
211
+ }
212
+
213
+ type address_on_file_match =
214
+ :MATCH
215
+ | :MATCH_ADDRESS_ONLY
216
+ | :MATCH_ZIP_ONLY
217
+ | :MISMATCH
218
+ | :NOT_PRESENT
219
+
220
+ module AddressOnFileMatch
221
+ extend Lithic::Internal::Type::Enum
222
+
223
+ MATCH: :MATCH
224
+ MATCH_ADDRESS_ONLY: :MATCH_ADDRESS_ONLY
225
+ MATCH_ZIP_ONLY: :MATCH_ZIP_ONLY
226
+ MISMATCH: :MISMATCH
227
+ NOT_PRESENT: :NOT_PRESENT
228
+
229
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match]
230
+ end
231
+ end
232
+
233
+ type card =
234
+ {
235
+ token: String,
236
+ hostname: String,
237
+ last_four: String,
238
+ memo: String,
239
+ spend_limit: Integer,
240
+ spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
241
+ state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
242
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
243
+ }
244
+
245
+ class Card < Lithic::Internal::Type::BaseModel
246
+ attr_reader token: String?
247
+
248
+ def token=: (String) -> String
249
+
250
+ attr_reader hostname: String?
251
+
252
+ def hostname=: (String) -> String
253
+
254
+ attr_reader last_four: String?
255
+
256
+ def last_four=: (String) -> String
257
+
258
+ attr_reader memo: String?
259
+
260
+ def memo=: (String) -> String
261
+
262
+ attr_reader spend_limit: Integer?
263
+
264
+ def spend_limit=: (Integer) -> Integer
265
+
266
+ attr_reader spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration?
267
+
268
+ def spend_limit_duration=: (
269
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
270
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
271
+
272
+ attr_reader state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state?
273
+
274
+ def state=: (
275
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
276
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
277
+
278
+ attr_reader type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_?
279
+
280
+ def type=: (
281
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
282
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
283
+
284
+ def initialize: (
285
+ ?token: String,
286
+ ?hostname: String,
287
+ ?last_four: String,
288
+ ?memo: String,
289
+ ?spend_limit: Integer,
290
+ ?spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
291
+ ?state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
292
+ ?type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
293
+ ) -> void
294
+
295
+ def to_hash: -> {
296
+ token: String,
297
+ hostname: String,
298
+ last_four: String,
299
+ memo: String,
300
+ spend_limit: Integer,
301
+ spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
302
+ state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
303
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
304
+ }
305
+
306
+ type spend_limit_duration =
307
+ :ANNUALLY | :FOREVER | :MONTHLY | :TRANSACTION
308
+
309
+ module SpendLimitDuration
310
+ extend Lithic::Internal::Type::Enum
311
+
312
+ ANNUALLY: :ANNUALLY
313
+ FOREVER: :FOREVER
314
+ MONTHLY: :MONTHLY
315
+ TRANSACTION: :TRANSACTION
316
+
317
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration]
318
+ end
319
+
320
+ type state =
321
+ :CLOSED | :OPEN | :PAUSED | :PENDING_ACTIVATION | :PENDING_FULFILLMENT
322
+
323
+ module State
324
+ extend Lithic::Internal::Type::Enum
325
+
326
+ CLOSED: :CLOSED
327
+ OPEN: :OPEN
328
+ PAUSED: :PAUSED
329
+ PENDING_ACTIVATION: :PENDING_ACTIVATION
330
+ PENDING_FULFILLMENT: :PENDING_FULFILLMENT
331
+
332
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state]
333
+ end
334
+
335
+ type type_ =
336
+ :SINGLE_USE
337
+ | :MERCHANT_LOCKED
338
+ | :UNLOCKED
339
+ | :PHYSICAL
340
+ | :DIGITAL_WALLET
341
+ | :VIRTUAL
342
+
343
+ module Type
344
+ extend Lithic::Internal::Type::Enum
345
+
346
+ SINGLE_USE: :SINGLE_USE
347
+ MERCHANT_LOCKED: :MERCHANT_LOCKED
348
+ UNLOCKED: :UNLOCKED
349
+ PHYSICAL: :PHYSICAL
350
+ DIGITAL_WALLET: :DIGITAL_WALLET
351
+ VIRTUAL: :VIRTUAL
352
+
353
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_]
354
+ end
355
+ end
356
+
357
+ type status =
358
+ :AUTHORIZATION
359
+ | :CREDIT_AUTHORIZATION
360
+ | :FINANCIAL_AUTHORIZATION
361
+ | :FINANCIAL_CREDIT_AUTHORIZATION
362
+ | :BALANCE_INQUIRY
363
+
364
+ module Status
365
+ extend Lithic::Internal::Type::Enum
366
+
367
+ AUTHORIZATION: :AUTHORIZATION
368
+ CREDIT_AUTHORIZATION: :CREDIT_AUTHORIZATION
369
+ FINANCIAL_AUTHORIZATION: :FINANCIAL_AUTHORIZATION
370
+ FINANCIAL_CREDIT_AUTHORIZATION: :FINANCIAL_CREDIT_AUTHORIZATION
371
+ BALANCE_INQUIRY: :BALANCE_INQUIRY
372
+
373
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status]
374
+ end
375
+
376
+ type transaction_initiator = :CARDHOLDER | :MERCHANT | :UNKNOWN
377
+
378
+ module TransactionInitiator
379
+ extend Lithic::Internal::Type::Enum
380
+
381
+ CARDHOLDER: :CARDHOLDER
382
+ MERCHANT: :MERCHANT
383
+ UNKNOWN: :UNKNOWN
384
+
385
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator]
386
+ end
387
+
388
+ type account_type = :CHECKING | :SAVINGS
389
+
390
+ module AccountType
391
+ extend Lithic::Internal::Type::Enum
392
+
393
+ CHECKING: :CHECKING
394
+ SAVINGS: :SAVINGS
395
+
396
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type]
397
+ end
398
+
399
+ type fleet_info =
400
+ {
401
+ fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code,
402
+ fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code,
403
+ driver_number: String?,
404
+ vehicle_number: String?
405
+ }
406
+
407
+ class FleetInfo < Lithic::Internal::Type::BaseModel
408
+ attr_accessor fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code
409
+
410
+ attr_accessor fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code
411
+
412
+ attr_accessor driver_number: String?
413
+
414
+ attr_accessor vehicle_number: String?
415
+
416
+ def initialize: (
417
+ fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code,
418
+ fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code,
419
+ ?driver_number: String?,
420
+ ?vehicle_number: String?
421
+ ) -> void
422
+
423
+ def to_hash: -> {
424
+ fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code,
425
+ fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code,
426
+ driver_number: String?,
427
+ vehicle_number: String?
428
+ }
429
+
430
+ type fleet_prompt_code = :NO_PROMPT | :VEHICLE_NUMBER | :DRIVER_NUMBER
431
+
432
+ module FleetPromptCode
433
+ extend Lithic::Internal::Type::Enum
434
+
435
+ NO_PROMPT: :NO_PROMPT
436
+ VEHICLE_NUMBER: :VEHICLE_NUMBER
437
+ DRIVER_NUMBER: :DRIVER_NUMBER
438
+
439
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code]
440
+ end
441
+
442
+ type fleet_restriction_code = :NO_RESTRICTIONS | :FUEL_ONLY
443
+
444
+ module FleetRestrictionCode
445
+ extend Lithic::Internal::Type::Enum
446
+
447
+ NO_RESTRICTIONS: :NO_RESTRICTIONS
448
+ FUEL_ONLY: :FUEL_ONLY
449
+
450
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code]
451
+ end
452
+ end
453
+
454
+ type latest_challenge =
455
+ {
456
+ phone_number: String,
457
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status,
458
+ completed_at: Time
459
+ }
460
+
461
+ class LatestChallenge < Lithic::Internal::Type::BaseModel
462
+ attr_accessor phone_number: String
463
+
464
+ attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status
465
+
466
+ attr_reader completed_at: Time?
467
+
468
+ def completed_at=: (Time) -> Time
469
+
470
+ def initialize: (
471
+ phone_number: String,
472
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status,
473
+ ?completed_at: Time
474
+ ) -> void
475
+
476
+ def to_hash: -> {
477
+ phone_number: String,
478
+ status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status,
479
+ completed_at: Time
480
+ }
481
+
482
+ type status = :COMPLETED | :PENDING | :EXPIRED | :ERROR
483
+
484
+ module Status
485
+ extend Lithic::Internal::Type::Enum
486
+
487
+ COMPLETED: :COMPLETED
488
+ PENDING: :PENDING
489
+ EXPIRED: :EXPIRED
490
+ ERROR: :ERROR
491
+
492
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status]
493
+ end
494
+ end
495
+
496
+ type network =
497
+ :AMEX | :INTERLINK | :MAESTRO | :MASTERCARD | :UNKNOWN | :VISA
498
+
499
+ module Network
500
+ extend Lithic::Internal::Type::Enum
501
+
502
+ AMEX: :AMEX
503
+ INTERLINK: :INTERLINK
504
+ MAESTRO: :MAESTRO
505
+ MASTERCARD: :MASTERCARD
506
+ UNKNOWN: :UNKNOWN
507
+ VISA: :VISA
508
+
509
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network]
510
+ end
511
+
512
+ type network_specific_data =
513
+ {
514
+ mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?,
515
+ visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa?
516
+ }
517
+
518
+ class NetworkSpecificData < Lithic::Internal::Type::BaseModel
519
+ attr_accessor mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?
520
+
521
+ attr_accessor visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa?
522
+
523
+ def initialize: (
524
+ ?mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?,
525
+ ?visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa?
526
+ ) -> void
527
+
528
+ def to_hash: -> {
529
+ mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?,
530
+ visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa?
531
+ }
532
+
533
+ type mastercard =
534
+ {
535
+ ecommerce_security_level_indicator: String?,
536
+ on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?,
537
+ transaction_type_identifier: String?
538
+ }
539
+
540
+ class Mastercard < Lithic::Internal::Type::BaseModel
541
+ attr_accessor ecommerce_security_level_indicator: String?
542
+
543
+ attr_accessor on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?
544
+
545
+ attr_accessor transaction_type_identifier: String?
546
+
547
+ def initialize: (
548
+ ?ecommerce_security_level_indicator: String?,
549
+ ?on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?,
550
+ ?transaction_type_identifier: String?
551
+ ) -> void
552
+
553
+ def to_hash: -> {
554
+ ecommerce_security_level_indicator: String?,
555
+ on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?,
556
+ transaction_type_identifier: String?
557
+ }
558
+
559
+ type on_behalf_service_result =
560
+ { :result_1 => String, :result_2 => String, service: String }
561
+
562
+ class OnBehalfServiceResult < Lithic::Internal::Type::BaseModel
563
+ attr_accessor result_1: String
564
+
565
+ attr_accessor result_2: String
566
+
567
+ attr_accessor service: String
568
+
569
+ def initialize: (
570
+ result_1: String,
571
+ result_2: String,
572
+ service: String
573
+ ) -> void
574
+
575
+ def to_hash: -> {
576
+ :result_1 => String,
577
+ :result_2 => String,
578
+ service: String
579
+ }
580
+ end
581
+ end
582
+
583
+ type visa = { business_application_identifier: String? }
584
+
585
+ class Visa < Lithic::Internal::Type::BaseModel
586
+ attr_accessor business_application_identifier: String?
587
+
588
+ def initialize: (?business_application_identifier: String?) -> void
589
+
590
+ def to_hash: -> { business_application_identifier: String? }
591
+ end
592
+ end
593
+
594
+ type pos =
595
+ {
596
+ entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode,
597
+ terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal
598
+ }
599
+
600
+ class Pos < Lithic::Internal::Type::BaseModel
601
+ attr_reader entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode?
602
+
603
+ def entry_mode=: (
604
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode
605
+ ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode
606
+
607
+ attr_reader terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal?
608
+
609
+ def terminal=: (
610
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal
611
+ ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal
612
+
613
+ def initialize: (
614
+ ?entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode,
615
+ ?terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal
616
+ ) -> void
617
+
618
+ def to_hash: -> {
619
+ entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode,
620
+ terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal
621
+ }
622
+
623
+ type entry_mode =
624
+ {
625
+ card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card,
626
+ cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder,
627
+ pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan,
628
+ pin_entered: bool
629
+ }
630
+
631
+ class EntryMode < Lithic::Internal::Type::BaseModel
632
+ attr_reader card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card?
633
+
634
+ def card=: (
635
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card
636
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card
637
+
638
+ attr_reader cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder?
639
+
640
+ def cardholder=: (
641
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder
642
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder
643
+
644
+ attr_reader pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan?
645
+
646
+ def pan=: (
647
+ Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan
648
+ ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan
649
+
650
+ attr_reader pin_entered: bool?
651
+
652
+ def pin_entered=: (bool) -> bool
653
+
654
+ def initialize: (
655
+ ?card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card,
656
+ ?cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder,
657
+ ?pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan,
658
+ ?pin_entered: bool
659
+ ) -> void
660
+
661
+ def to_hash: -> {
662
+ card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card,
663
+ cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder,
664
+ pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan,
665
+ pin_entered: bool
666
+ }
667
+
668
+ type card = :PRESENT | :NOT_PRESENT | :UNKNOWN
669
+
670
+ module Card
671
+ extend Lithic::Internal::Type::Enum
672
+
673
+ PRESENT: :PRESENT
674
+ NOT_PRESENT: :NOT_PRESENT
675
+ UNKNOWN: :UNKNOWN
676
+
677
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card]
678
+ end
679
+
680
+ type cardholder =
681
+ :DEFERRED_BILLING
682
+ | :ELECTRONIC_ORDER
683
+ | :INSTALLMENT
684
+ | :MAIL_ORDER
685
+ | :NOT_PRESENT
686
+ | :PRESENT
687
+ | :REOCCURRING
688
+ | :TELEPHONE_ORDER
689
+ | :UNKNOWN
690
+
691
+ module Cardholder
692
+ extend Lithic::Internal::Type::Enum
693
+
694
+ DEFERRED_BILLING: :DEFERRED_BILLING
695
+ ELECTRONIC_ORDER: :ELECTRONIC_ORDER
696
+ INSTALLMENT: :INSTALLMENT
697
+ MAIL_ORDER: :MAIL_ORDER
698
+ NOT_PRESENT: :NOT_PRESENT
699
+ PRESENT: :PRESENT
700
+ REOCCURRING: :REOCCURRING
701
+ TELEPHONE_ORDER: :TELEPHONE_ORDER
702
+ UNKNOWN: :UNKNOWN
703
+
704
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder]
705
+ end
706
+
707
+ type pan =
708
+ :AUTO_ENTRY
709
+ | :BAR_CODE
710
+ | :CONTACTLESS
711
+ | :ECOMMERCE
712
+ | :ERROR_KEYED
713
+ | :ERROR_MAGNETIC_STRIPE
714
+ | :ICC
715
+ | :KEY_ENTERED
716
+ | :MAGNETIC_STRIPE
717
+ | :MANUAL
718
+ | :OCR
719
+ | :SECURE_CARDLESS
720
+ | :UNSPECIFIED
721
+ | :UNKNOWN
722
+ | :CREDENTIAL_ON_FILE
723
+
724
+ module Pan
725
+ extend Lithic::Internal::Type::Enum
726
+
727
+ AUTO_ENTRY: :AUTO_ENTRY
728
+ BAR_CODE: :BAR_CODE
729
+ CONTACTLESS: :CONTACTLESS
730
+ ECOMMERCE: :ECOMMERCE
731
+ ERROR_KEYED: :ERROR_KEYED
732
+ ERROR_MAGNETIC_STRIPE: :ERROR_MAGNETIC_STRIPE
733
+ ICC: :ICC
734
+ KEY_ENTERED: :KEY_ENTERED
735
+ MAGNETIC_STRIPE: :MAGNETIC_STRIPE
736
+ MANUAL: :MANUAL
737
+ OCR: :OCR
738
+ SECURE_CARDLESS: :SECURE_CARDLESS
739
+ UNSPECIFIED: :UNSPECIFIED
740
+ UNKNOWN: :UNKNOWN
741
+ CREDENTIAL_ON_FILE: :CREDENTIAL_ON_FILE
742
+
743
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan]
744
+ end
745
+ end
746
+
747
+ type terminal =
748
+ {
749
+ attended: bool,
750
+ card_retention_capable: bool,
751
+ on_premise: bool,
752
+ operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator,
753
+ partial_approval_capable: bool,
754
+ pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability,
755
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_,
756
+ acceptor_terminal_id: String?
757
+ }
758
+
759
+ class Terminal < Lithic::Internal::Type::BaseModel
760
+ attr_accessor attended: bool
761
+
762
+ attr_accessor card_retention_capable: bool
763
+
764
+ attr_accessor on_premise: bool
765
+
766
+ attr_accessor operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator
767
+
768
+ attr_accessor partial_approval_capable: bool
769
+
770
+ attr_accessor pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability
771
+
772
+ attr_accessor type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_
773
+
774
+ attr_accessor acceptor_terminal_id: String?
775
+
776
+ def initialize: (
777
+ attended: bool,
778
+ card_retention_capable: bool,
779
+ on_premise: bool,
780
+ operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator,
781
+ partial_approval_capable: bool,
782
+ pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability,
783
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_,
784
+ ?acceptor_terminal_id: String?
785
+ ) -> void
786
+
787
+ def to_hash: -> {
788
+ attended: bool,
789
+ card_retention_capable: bool,
790
+ on_premise: bool,
791
+ operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator,
792
+ partial_approval_capable: bool,
793
+ pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability,
794
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_,
795
+ acceptor_terminal_id: String?
796
+ }
797
+
798
+ type operator =
799
+ :ADMINISTRATIVE | :CARDHOLDER | :CARD_ACCEPTOR | :UNKNOWN
800
+
801
+ module Operator
802
+ extend Lithic::Internal::Type::Enum
803
+
804
+ ADMINISTRATIVE: :ADMINISTRATIVE
805
+ CARDHOLDER: :CARDHOLDER
806
+ CARD_ACCEPTOR: :CARD_ACCEPTOR
807
+ UNKNOWN: :UNKNOWN
808
+
809
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator]
810
+ end
811
+
812
+ type pin_capability =
813
+ :CAPABLE | :INOPERATIVE | :NOT_CAPABLE | :UNSPECIFIED
814
+
815
+ module PinCapability
816
+ extend Lithic::Internal::Type::Enum
817
+
818
+ CAPABLE: :CAPABLE
819
+ INOPERATIVE: :INOPERATIVE
820
+ NOT_CAPABLE: :NOT_CAPABLE
821
+ UNSPECIFIED: :UNSPECIFIED
822
+
823
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability]
824
+ end
825
+
826
+ type type_ =
827
+ :ADMINISTRATIVE
828
+ | :ATM
829
+ | :AUTHORIZATION
830
+ | :COUPON_MACHINE
831
+ | :DIAL_TERMINAL
832
+ | :ECOMMERCE
833
+ | :ECR
834
+ | :FUEL_MACHINE
835
+ | :HOME_TERMINAL
836
+ | :MICR
837
+ | :OFF_PREMISE
838
+ | :PAYMENT
839
+ | :PDA
840
+ | :PHONE
841
+ | :POINT
842
+ | :POS_TERMINAL
843
+ | :PUBLIC_UTILITY
844
+ | :SELF_SERVICE
845
+ | :TELEVISION
846
+ | :TELLER
847
+ | :TRAVELERS_CHECK_MACHINE
848
+ | :VENDING
849
+ | :VOICE
850
+ | :UNKNOWN
851
+
852
+ module Type
853
+ extend Lithic::Internal::Type::Enum
854
+
855
+ ADMINISTRATIVE: :ADMINISTRATIVE
856
+ ATM: :ATM
857
+ AUTHORIZATION: :AUTHORIZATION
858
+ COUPON_MACHINE: :COUPON_MACHINE
859
+ DIAL_TERMINAL: :DIAL_TERMINAL
860
+ ECOMMERCE: :ECOMMERCE
861
+ ECR: :ECR
862
+ FUEL_MACHINE: :FUEL_MACHINE
863
+ HOME_TERMINAL: :HOME_TERMINAL
864
+ MICR: :MICR
865
+ OFF_PREMISE: :OFF_PREMISE
866
+ PAYMENT: :PAYMENT
867
+ PDA: :PDA
868
+ PHONE: :PHONE
869
+ POINT: :POINT
870
+ POS_TERMINAL: :POS_TERMINAL
871
+ PUBLIC_UTILITY: :PUBLIC_UTILITY
872
+ SELF_SERVICE: :SELF_SERVICE
873
+ TELEVISION: :TELEVISION
874
+ TELLER: :TELLER
875
+ TRAVELERS_CHECK_MACHINE: :TRAVELERS_CHECK_MACHINE
876
+ VENDING: :VENDING
877
+ VOICE: :VOICE
878
+ UNKNOWN: :UNKNOWN
879
+
880
+ def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_]
881
+ end
882
+ end
883
+ end
884
+ end
885
+ end
886
+ end