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,20 @@
1
+ module Lithic
2
+ module Models
3
+ type auth_rules_backtest_report_created_webhook_event =
4
+ { event_type: :"auth_rules.backtest_report.created" }
5
+
6
+ class AuthRulesBacktestReportCreatedWebhookEvent < Lithic::Models::AuthRules::V2::BacktestResults
7
+ def event_type: -> :"auth_rules.backtest_report.created"
8
+
9
+ def event_type=: (
10
+ :"auth_rules.backtest_report.created" _
11
+ ) -> :"auth_rules.backtest_report.created"
12
+
13
+ def initialize: (
14
+ ?event_type: :"auth_rules.backtest_report.created"
15
+ ) -> void
16
+
17
+ def to_hash: -> { event_type: :"auth_rules.backtest_report.created" }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,25 @@
1
+ module Lithic
2
+ module Models
3
+ type balance_updated_webhook_event =
4
+ {
5
+ data: ::Array[Lithic::FinancialAccountBalance],
6
+ event_type: :"balance.updated"
7
+ }
8
+
9
+ class BalanceUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
10
+ attr_accessor data: ::Array[Lithic::FinancialAccountBalance]
11
+
12
+ attr_accessor event_type: :"balance.updated"
13
+
14
+ def initialize: (
15
+ data: ::Array[Lithic::FinancialAccountBalance],
16
+ ?event_type: :"balance.updated"
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ data: ::Array[Lithic::FinancialAccountBalance],
21
+ event_type: :"balance.updated"
22
+ }
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,20 @@
1
+ module Lithic
2
+ module Models
3
+ type book_transfer_transaction_created_webhook_event =
4
+ { event_type: :"book_transfer_transaction.created" }
5
+
6
+ class BookTransferTransactionCreatedWebhookEvent < Lithic::Models::BookTransferResponse
7
+ def event_type: -> :"book_transfer_transaction.created"
8
+
9
+ def event_type=: (
10
+ :"book_transfer_transaction.created" _
11
+ ) -> :"book_transfer_transaction.created"
12
+
13
+ def initialize: (
14
+ ?event_type: :"book_transfer_transaction.created"
15
+ ) -> void
16
+
17
+ def to_hash: -> { event_type: :"book_transfer_transaction.created" }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ module Lithic
2
+ module Models
3
+ type book_transfer_transaction_updated_webhook_event =
4
+ { event_type: :"book_transfer_transaction.updated" }
5
+
6
+ class BookTransferTransactionUpdatedWebhookEvent < Lithic::Models::BookTransferResponse
7
+ def event_type: -> :"book_transfer_transaction.updated"
8
+
9
+ def event_type=: (
10
+ :"book_transfer_transaction.updated" _
11
+ ) -> :"book_transfer_transaction.updated"
12
+
13
+ def initialize: (
14
+ ?event_type: :"book_transfer_transaction.updated"
15
+ ) -> void
16
+
17
+ def to_hash: -> { event_type: :"book_transfer_transaction.updated" }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ module Lithic
2
+ module Models
3
+ type card_converted_webhook_event =
4
+ { card_token: String, event_type: :"card.converted" }
5
+
6
+ class CardConvertedWebhookEvent < Lithic::Internal::Type::BaseModel
7
+ attr_accessor card_token: String
8
+
9
+ attr_accessor event_type: :"card.converted"
10
+
11
+ def initialize: (
12
+ card_token: String,
13
+ ?event_type: :"card.converted"
14
+ ) -> void
15
+
16
+ def to_hash: -> { card_token: String, event_type: :"card.converted" }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,30 @@
1
+ module Lithic
2
+ module Models
3
+ type card_created_webhook_event =
4
+ {
5
+ card_token: String,
6
+ event_type: :"card.created",
7
+ replacement_for: String?
8
+ }
9
+
10
+ class CardCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
11
+ attr_accessor card_token: String
12
+
13
+ attr_accessor event_type: :"card.created"
14
+
15
+ attr_accessor replacement_for: String?
16
+
17
+ def initialize: (
18
+ card_token: String,
19
+ ?replacement_for: String?,
20
+ ?event_type: :"card.created"
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ card_token: String,
25
+ event_type: :"card.created",
26
+ replacement_for: String?
27
+ }
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,21 @@
1
+ module Lithic
2
+ module Models
3
+ type card_reissued_webhook_event =
4
+ { event_type: :"card.reissued", card_token: String }
5
+
6
+ class CardReissuedWebhookEvent < Lithic::Internal::Type::BaseModel
7
+ attr_accessor event_type: :"card.reissued"
8
+
9
+ attr_reader card_token: String?
10
+
11
+ def card_token=: (String) -> String
12
+
13
+ def initialize: (
14
+ ?card_token: String,
15
+ ?event_type: :"card.reissued"
16
+ ) -> void
17
+
18
+ def to_hash: -> { event_type: :"card.reissued", card_token: String }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,55 @@
1
+ module Lithic
2
+ module Models
3
+ type card_renewed_webhook_event =
4
+ {
5
+ event_type: :"card.renewed",
6
+ card_token: String,
7
+ exp_month: String,
8
+ exp_year: String,
9
+ previous_exp_month: String,
10
+ previous_exp_year: String
11
+ }
12
+
13
+ class CardRenewedWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor event_type: :"card.renewed"
15
+
16
+ attr_reader card_token: String?
17
+
18
+ def card_token=: (String) -> String
19
+
20
+ attr_reader exp_month: String?
21
+
22
+ def exp_month=: (String) -> String
23
+
24
+ attr_reader exp_year: String?
25
+
26
+ def exp_year=: (String) -> String
27
+
28
+ attr_reader previous_exp_month: String?
29
+
30
+ def previous_exp_month=: (String) -> String
31
+
32
+ attr_reader previous_exp_year: String?
33
+
34
+ def previous_exp_year=: (String) -> String
35
+
36
+ def initialize: (
37
+ ?card_token: String,
38
+ ?exp_month: String,
39
+ ?exp_year: String,
40
+ ?previous_exp_month: String,
41
+ ?previous_exp_year: String,
42
+ ?event_type: :"card.renewed"
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ event_type: :"card.renewed",
47
+ card_token: String,
48
+ exp_month: String,
49
+ exp_year: String,
50
+ previous_exp_month: String,
51
+ previous_exp_year: String
52
+ }
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,71 @@
1
+ module Lithic
2
+ module Models
3
+ type card_shipped_webhook_event =
4
+ {
5
+ bulk_order_token: String?,
6
+ card_token: String,
7
+ event_type: :"card.shipped",
8
+ shipping_method: Lithic::Models::CardShippedWebhookEvent::shipping_method,
9
+ tracking_number: String?
10
+ }
11
+
12
+ class CardShippedWebhookEvent < Lithic::Internal::Type::BaseModel
13
+ attr_accessor bulk_order_token: String?
14
+
15
+ attr_accessor card_token: String
16
+
17
+ attr_accessor event_type: :"card.shipped"
18
+
19
+ attr_accessor shipping_method: Lithic::Models::CardShippedWebhookEvent::shipping_method
20
+
21
+ attr_accessor tracking_number: String?
22
+
23
+ def initialize: (
24
+ bulk_order_token: String?,
25
+ card_token: String,
26
+ shipping_method: Lithic::Models::CardShippedWebhookEvent::shipping_method,
27
+ tracking_number: String?,
28
+ ?event_type: :"card.shipped"
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ bulk_order_token: String?,
33
+ card_token: String,
34
+ event_type: :"card.shipped",
35
+ shipping_method: Lithic::Models::CardShippedWebhookEvent::shipping_method,
36
+ tracking_number: String?
37
+ }
38
+
39
+ type shipping_method =
40
+ :"Ex-US expedited with tracking"
41
+ | :"Ex-US standard with tracking"
42
+ | :"Ex-US standard without tracking"
43
+ | :"FedEx 2 days"
44
+ | :"FedEx express"
45
+ | :"FedEx overnight"
46
+ | :"USPS priority"
47
+ | :"USPS with tracking"
48
+ | :"USPS without tracking envelope"
49
+ | :"USPS without tracking envelope non-machine"
50
+ | :"USPS without tracking flat"
51
+
52
+ module ShippingMethod
53
+ extend Lithic::Internal::Type::Enum
54
+
55
+ EX_US_EXPEDITED_WITH_TRACKING: :"Ex-US expedited with tracking"
56
+ EX_US_STANDARD_WITH_TRACKING: :"Ex-US standard with tracking"
57
+ EX_US_STANDARD_WITHOUT_TRACKING: :"Ex-US standard without tracking"
58
+ FED_EX_2_DAYS: :"FedEx 2 days"
59
+ FED_EX_EXPRESS: :"FedEx express"
60
+ FED_EX_OVERNIGHT: :"FedEx overnight"
61
+ USPS_PRIORITY: :"USPS priority"
62
+ USPS_WITH_TRACKING: :"USPS with tracking"
63
+ USPS_WITHOUT_TRACKING_ENVELOPE: :"USPS without tracking envelope"
64
+ USPS_WITHOUT_TRACKING_ENVELOPE_NON_MACHINE: :"USPS without tracking envelope non-machine"
65
+ USPS_WITHOUT_TRACKING_FLAT: :"USPS without tracking flat"
66
+
67
+ def self?.values: -> ::Array[Lithic::Models::CardShippedWebhookEvent::shipping_method]
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,20 @@
1
+ module Lithic
2
+ module Models
3
+ type card_transaction_enhanced_data_created_webhook_event =
4
+ { event_type: :"card_transaction.enhanced_data.created" }
5
+
6
+ class CardTransactionEnhancedDataCreatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
7
+ def event_type: -> :"card_transaction.enhanced_data.created"
8
+
9
+ def event_type=: (
10
+ :"card_transaction.enhanced_data.created" _
11
+ ) -> :"card_transaction.enhanced_data.created"
12
+
13
+ def initialize: (
14
+ ?event_type: :"card_transaction.enhanced_data.created"
15
+ ) -> void
16
+
17
+ def to_hash: -> { event_type: :"card_transaction.enhanced_data.created" }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ module Lithic
2
+ module Models
3
+ type card_transaction_enhanced_data_updated_webhook_event =
4
+ { event_type: :"card_transaction.enhanced_data.updated" }
5
+
6
+ class CardTransactionEnhancedDataUpdatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
7
+ def event_type: -> :"card_transaction.enhanced_data.updated"
8
+
9
+ def event_type=: (
10
+ :"card_transaction.enhanced_data.updated" _
11
+ ) -> :"card_transaction.enhanced_data.updated"
12
+
13
+ def initialize: (
14
+ ?event_type: :"card_transaction.enhanced_data.updated"
15
+ ) -> void
16
+
17
+ def to_hash: -> { event_type: :"card_transaction.enhanced_data.updated" }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ type card_transaction_updated_webhook_event =
4
+ { event_type: :"card_transaction.updated" }
5
+
6
+ class CardTransactionUpdatedWebhookEvent < Lithic::Models::Transaction
7
+ def event_type: -> :"card_transaction.updated"
8
+
9
+ def event_type=: (
10
+ :"card_transaction.updated" _
11
+ ) -> :"card_transaction.updated"
12
+
13
+ def initialize: (?event_type: :"card_transaction.updated") -> void
14
+
15
+ def to_hash: -> { event_type: :"card_transaction.updated" }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,223 @@
1
+ module Lithic
2
+ module Models
3
+ type digital_wallet_tokenization_approval_request_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ created: Time,
8
+ customer_tokenization_decision: Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
9
+ event_type: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::event_type,
10
+ issuer_decision: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::issuer_decision,
11
+ tokenization_channel: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_channel,
12
+ tokenization_token: String,
13
+ wallet_decisioning_info: Lithic::WalletDecisioningInfo,
14
+ device: Lithic::Device,
15
+ digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
16
+ rule_results: ::Array[Lithic::TokenizationRuleResult],
17
+ tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
18
+ tokenization_source: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source,
19
+ tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
20
+ }
21
+
22
+ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel
23
+ attr_accessor account_token: String
24
+
25
+ attr_accessor card_token: String
26
+
27
+ attr_accessor created: Time
28
+
29
+ attr_accessor customer_tokenization_decision: Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?
30
+
31
+ attr_accessor event_type: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::event_type
32
+
33
+ attr_accessor issuer_decision: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::issuer_decision
34
+
35
+ attr_accessor tokenization_channel: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_channel
36
+
37
+ attr_accessor tokenization_token: String
38
+
39
+ attr_accessor wallet_decisioning_info: Lithic::WalletDecisioningInfo
40
+
41
+ attr_reader device: Lithic::Device?
42
+
43
+ def device=: (Lithic::Device) -> Lithic::Device
44
+
45
+ attr_reader digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata?
46
+
47
+ def digital_wallet_token_metadata=: (
48
+ Lithic::DigitalWalletTokenMetadata
49
+ ) -> Lithic::DigitalWalletTokenMetadata
50
+
51
+ attr_reader rule_results: ::Array[Lithic::TokenizationRuleResult]?
52
+
53
+ def rule_results=: (
54
+ ::Array[Lithic::TokenizationRuleResult]
55
+ ) -> ::Array[Lithic::TokenizationRuleResult]
56
+
57
+ attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason]?
58
+
59
+ def tokenization_decline_reasons=: (
60
+ ::Array[Lithic::Models::tokenization_decline_reason]
61
+ ) -> ::Array[Lithic::Models::tokenization_decline_reason]
62
+
63
+ attr_reader tokenization_source: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source?
64
+
65
+ def tokenization_source=: (
66
+ Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source
67
+ ) -> Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source
68
+
69
+ attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]?
70
+
71
+ def tokenization_tfa_reasons=: (
72
+ ::Array[Lithic::Models::tokenization_tfa_reason]
73
+ ) -> ::Array[Lithic::Models::tokenization_tfa_reason]
74
+
75
+ def initialize: (
76
+ account_token: String,
77
+ card_token: String,
78
+ created: Time,
79
+ customer_tokenization_decision: Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
80
+ event_type: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::event_type,
81
+ issuer_decision: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::issuer_decision,
82
+ tokenization_channel: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_channel,
83
+ tokenization_token: String,
84
+ wallet_decisioning_info: Lithic::WalletDecisioningInfo,
85
+ ?device: Lithic::Device,
86
+ ?digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
87
+ ?rule_results: ::Array[Lithic::TokenizationRuleResult],
88
+ ?tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
89
+ ?tokenization_source: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source,
90
+ ?tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
91
+ ) -> void
92
+
93
+ def to_hash: -> {
94
+ account_token: String,
95
+ card_token: String,
96
+ created: Time,
97
+ customer_tokenization_decision: Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
98
+ event_type: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::event_type,
99
+ issuer_decision: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::issuer_decision,
100
+ tokenization_channel: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_channel,
101
+ tokenization_token: String,
102
+ wallet_decisioning_info: Lithic::WalletDecisioningInfo,
103
+ device: Lithic::Device,
104
+ digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
105
+ rule_results: ::Array[Lithic::TokenizationRuleResult],
106
+ tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
107
+ tokenization_source: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source,
108
+ tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
109
+ }
110
+
111
+ type customer_tokenization_decision =
112
+ {
113
+ outcome: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
114
+ responder_url: String,
115
+ latency: String,
116
+ response_code: String
117
+ }
118
+
119
+ class CustomerTokenizationDecision < Lithic::Internal::Type::BaseModel
120
+ attr_accessor outcome: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome
121
+
122
+ attr_accessor responder_url: String
123
+
124
+ attr_reader latency: String?
125
+
126
+ def latency=: (String) -> String
127
+
128
+ attr_reader response_code: String?
129
+
130
+ def response_code=: (String) -> String
131
+
132
+ def initialize: (
133
+ outcome: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
134
+ responder_url: String,
135
+ ?latency: String,
136
+ ?response_code: String
137
+ ) -> void
138
+
139
+ def to_hash: -> {
140
+ outcome: Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
141
+ responder_url: String,
142
+ latency: String,
143
+ response_code: String
144
+ }
145
+
146
+ type outcome =
147
+ :APPROVED
148
+ | :DECLINED
149
+ | :ERROR
150
+ | :INVALID_RESPONSE
151
+ | :REQUIRE_ADDITIONAL_AUTHENTICATION
152
+ | :TIMEOUT
153
+
154
+ module Outcome
155
+ extend Lithic::Internal::Type::Enum
156
+
157
+ APPROVED: :APPROVED
158
+ DECLINED: :DECLINED
159
+ ERROR: :ERROR
160
+ INVALID_RESPONSE: :INVALID_RESPONSE
161
+ REQUIRE_ADDITIONAL_AUTHENTICATION: :REQUIRE_ADDITIONAL_AUTHENTICATION
162
+ TIMEOUT: :TIMEOUT
163
+
164
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome]
165
+ end
166
+ end
167
+
168
+ type event_type = :"digital_wallet.tokenization_approval_request"
169
+
170
+ module EventType
171
+ extend Lithic::Internal::Type::Enum
172
+
173
+ DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
174
+
175
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::event_type]
176
+ end
177
+
178
+ type issuer_decision = :APPROVED | :DENIED | :VERIFICATION_REQUIRED
179
+
180
+ module IssuerDecision
181
+ extend Lithic::Internal::Type::Enum
182
+
183
+ APPROVED: :APPROVED
184
+ DENIED: :DENIED
185
+ VERIFICATION_REQUIRED: :VERIFICATION_REQUIRED
186
+
187
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::issuer_decision]
188
+ end
189
+
190
+ type tokenization_channel = :DIGITAL_WALLET | :MERCHANT
191
+
192
+ module TokenizationChannel
193
+ extend Lithic::Internal::Type::Enum
194
+
195
+ DIGITAL_WALLET: :DIGITAL_WALLET
196
+ MERCHANT: :MERCHANT
197
+
198
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_channel]
199
+ end
200
+
201
+ type tokenization_source =
202
+ :ACCOUNT_ON_FILE
203
+ | :CONTACTLESS_TAP
204
+ | :MANUAL_PROVISION
205
+ | :PUSH_PROVISION
206
+ | :TOKEN
207
+ | :UNKNOWN
208
+
209
+ module TokenizationSource
210
+ extend Lithic::Internal::Type::Enum
211
+
212
+ ACCOUNT_ON_FILE: :ACCOUNT_ON_FILE
213
+ CONTACTLESS_TAP: :CONTACTLESS_TAP
214
+ MANUAL_PROVISION: :MANUAL_PROVISION
215
+ PUSH_PROVISION: :PUSH_PROVISION
216
+ TOKEN: :TOKEN
217
+ UNKNOWN: :UNKNOWN
218
+
219
+ def self?.values: -> ::Array[Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::tokenization_source]
220
+ end
221
+ end
222
+ end
223
+ end