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,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class AuthRulesBacktestReportCreatedWebhookEvent < Lithic::Models::AuthRules::V2::BacktestResults
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"auth_rules.backtest_report.created"]
10
+ required :event_type, const: :"auth_rules.backtest_report.created"
11
+
12
+ # @!method initialize(event_type: :"auth_rules.backtest_report.created")
13
+ # @param event_type [Symbol, :"auth_rules.backtest_report.created"] The type of event that occurred.
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class BalanceUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute data
7
+ #
8
+ # @return [Array<Lithic::Models::FinancialAccountBalance>]
9
+ required :data, -> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialAccountBalance] }
10
+
11
+ # @!attribute event_type
12
+ # The type of event that occurred.
13
+ #
14
+ # @return [Symbol, :"balance.updated"]
15
+ required :event_type, const: :"balance.updated"
16
+
17
+ # @!method initialize(data:, event_type: :"balance.updated")
18
+ # @param data [Array<Lithic::Models::FinancialAccountBalance>]
19
+ #
20
+ # @param event_type [Symbol, :"balance.updated"] The type of event that occurred.
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class BookTransferTransactionCreatedWebhookEvent < Lithic::Models::BookTransferResponse
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"book_transfer_transaction.created"]
10
+ required :event_type, const: :"book_transfer_transaction.created"
11
+
12
+ # @!method initialize(event_type: :"book_transfer_transaction.created")
13
+ # Book transfer transaction
14
+ #
15
+ # @param event_type [Symbol, :"book_transfer_transaction.created"] The type of event that occurred.
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class BookTransferTransactionUpdatedWebhookEvent < Lithic::Models::BookTransferResponse
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"book_transfer_transaction.updated"]
10
+ required :event_type, const: :"book_transfer_transaction.updated"
11
+
12
+ # @!method initialize(event_type: :"book_transfer_transaction.updated")
13
+ # Book transfer transaction
14
+ #
15
+ # @param event_type [Symbol, :"book_transfer_transaction.updated"] The type of event that occurred.
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardConvertedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute card_token
7
+ # The token of the card that was created.
8
+ #
9
+ # @return [String]
10
+ required :card_token, String
11
+
12
+ # @!attribute event_type
13
+ # The type of event that occurred.
14
+ #
15
+ # @return [Symbol, :"card.converted"]
16
+ required :event_type, const: :"card.converted"
17
+
18
+ # @!method initialize(card_token:, event_type: :"card.converted")
19
+ # @param card_token [String] The token of the card that was created.
20
+ #
21
+ # @param event_type [Symbol, :"card.converted"] The type of event that occurred.
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute card_token
7
+ # The token of the card that was created.
8
+ #
9
+ # @return [String]
10
+ required :card_token, String
11
+
12
+ # @!attribute event_type
13
+ # The type of event that occurred.
14
+ #
15
+ # @return [Symbol, :"card.created"]
16
+ required :event_type, const: :"card.created"
17
+
18
+ # @!attribute replacement_for
19
+ # The token of the card that was replaced, if the new card is a replacement card.
20
+ #
21
+ # @return [String, nil]
22
+ optional :replacement_for, String, nil?: true
23
+
24
+ # @!method initialize(card_token:, replacement_for: nil, event_type: :"card.created")
25
+ # @param card_token [String] The token of the card that was created.
26
+ #
27
+ # @param replacement_for [String, nil] The token of the card that was replaced, if the new card is a replacement card.
28
+ #
29
+ # @param event_type [Symbol, :"card.created"] The type of event that occurred.
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardReissuedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"card.reissued"]
10
+ required :event_type, const: :"card.reissued"
11
+
12
+ # @!attribute card_token
13
+ # The token of the card that was reissued.
14
+ #
15
+ # @return [String, nil]
16
+ optional :card_token, String
17
+
18
+ # @!method initialize(card_token: nil, event_type: :"card.reissued")
19
+ # @param card_token [String] The token of the card that was reissued.
20
+ #
21
+ # @param event_type [Symbol, :"card.reissued"] The type of event that occurred.
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardRenewedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"card.renewed"]
10
+ required :event_type, const: :"card.renewed"
11
+
12
+ # @!attribute card_token
13
+ # The token of the card that was renewed.
14
+ #
15
+ # @return [String, nil]
16
+ optional :card_token, String
17
+
18
+ # @!attribute exp_month
19
+ # The new expiration month of the card.
20
+ #
21
+ # @return [String, nil]
22
+ optional :exp_month, String
23
+
24
+ # @!attribute exp_year
25
+ # The new expiration year of the card.
26
+ #
27
+ # @return [String, nil]
28
+ optional :exp_year, String
29
+
30
+ # @!attribute previous_exp_month
31
+ # The previous expiration month of the card.
32
+ #
33
+ # @return [String, nil]
34
+ optional :previous_exp_month, String
35
+
36
+ # @!attribute previous_exp_year
37
+ # The previous expiration year of the card.
38
+ #
39
+ # @return [String, nil]
40
+ optional :previous_exp_year, String
41
+
42
+ # @!method initialize(card_token: nil, exp_month: nil, exp_year: nil, previous_exp_month: nil, previous_exp_year: nil, event_type: :"card.renewed")
43
+ # @param card_token [String] The token of the card that was renewed.
44
+ #
45
+ # @param exp_month [String] The new expiration month of the card.
46
+ #
47
+ # @param exp_year [String] The new expiration year of the card.
48
+ #
49
+ # @param previous_exp_month [String] The previous expiration month of the card.
50
+ #
51
+ # @param previous_exp_year [String] The previous expiration year of the card.
52
+ #
53
+ # @param event_type [Symbol, :"card.renewed"] The type of event that occurred.
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardShippedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute bulk_order_token
7
+ # The token of the bulk order associated with this card shipment, if applicable.
8
+ #
9
+ # @return [String, nil]
10
+ required :bulk_order_token, String, nil?: true
11
+
12
+ # @!attribute card_token
13
+ # The token of the card that was shipped.
14
+ #
15
+ # @return [String]
16
+ required :card_token, String
17
+
18
+ # @!attribute event_type
19
+ # The type of event that occurred.
20
+ #
21
+ # @return [Symbol, :"card.shipped"]
22
+ required :event_type, const: :"card.shipped"
23
+
24
+ # @!attribute shipping_method
25
+ # The specific shipping method used to ship the card.
26
+ #
27
+ # @return [Symbol, Lithic::Models::CardShippedWebhookEvent::ShippingMethod]
28
+ required :shipping_method, enum: -> { Lithic::CardShippedWebhookEvent::ShippingMethod }
29
+
30
+ # @!attribute tracking_number
31
+ # The tracking number of the shipment.
32
+ #
33
+ # @return [String, nil]
34
+ required :tracking_number, String, nil?: true
35
+
36
+ # @!method initialize(bulk_order_token:, card_token:, shipping_method:, tracking_number:, event_type: :"card.shipped")
37
+ # @param bulk_order_token [String, nil] The token of the bulk order associated with this card shipment, if applicable.
38
+ #
39
+ # @param card_token [String] The token of the card that was shipped.
40
+ #
41
+ # @param shipping_method [Symbol, Lithic::Models::CardShippedWebhookEvent::ShippingMethod] The specific shipping method used to ship the card.
42
+ #
43
+ # @param tracking_number [String, nil] The tracking number of the shipment.
44
+ #
45
+ # @param event_type [Symbol, :"card.shipped"] The type of event that occurred.
46
+
47
+ # The specific shipping method used to ship the card.
48
+ #
49
+ # @see Lithic::Models::CardShippedWebhookEvent#shipping_method
50
+ module ShippingMethod
51
+ extend Lithic::Internal::Type::Enum
52
+
53
+ EX_US_EXPEDITED_WITH_TRACKING = :"Ex-US expedited with tracking"
54
+ EX_US_STANDARD_WITH_TRACKING = :"Ex-US standard with tracking"
55
+ EX_US_STANDARD_WITHOUT_TRACKING = :"Ex-US standard without tracking"
56
+ FED_EX_2_DAYS = :"FedEx 2 days"
57
+ FED_EX_EXPRESS = :"FedEx express"
58
+ FED_EX_OVERNIGHT = :"FedEx overnight"
59
+ USPS_PRIORITY = :"USPS priority"
60
+ USPS_WITH_TRACKING = :"USPS with tracking"
61
+ USPS_WITHOUT_TRACKING_ENVELOPE = :"USPS without tracking envelope"
62
+ USPS_WITHOUT_TRACKING_ENVELOPE_NON_MACHINE = :"USPS without tracking envelope non-machine"
63
+ USPS_WITHOUT_TRACKING_FLAT = :"USPS without tracking flat"
64
+
65
+ # @!method self.values
66
+ # @return [Array<Symbol>]
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardTransactionEnhancedDataCreatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"card_transaction.enhanced_data.created"]
10
+ required :event_type, const: :"card_transaction.enhanced_data.created"
11
+
12
+ # @!method initialize(event_type: :"card_transaction.enhanced_data.created")
13
+ # @param event_type [Symbol, :"card_transaction.enhanced_data.created"] The type of event that occurred.
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardTransactionEnhancedDataUpdatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"card_transaction.enhanced_data.updated"]
10
+ required :event_type, const: :"card_transaction.enhanced_data.updated"
11
+
12
+ # @!method initialize(event_type: :"card_transaction.enhanced_data.updated")
13
+ # @param event_type [Symbol, :"card_transaction.enhanced_data.updated"] The type of event that occurred.
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardTransactionUpdatedWebhookEvent < Lithic::Models::Transaction
6
+ # @!attribute event_type
7
+ # The type of event that occurred.
8
+ #
9
+ # @return [Symbol, :"card_transaction.updated"]
10
+ required :event_type, const: :"card_transaction.updated"
11
+
12
+ # @!method initialize(event_type: :"card_transaction.updated")
13
+ # @param event_type [Symbol, :"card_transaction.updated"] The type of event that occurred.
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,253 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute account_token
7
+ # Unique identifier for the user tokenizing a card
8
+ #
9
+ # @return [String]
10
+ required :account_token, String
11
+
12
+ # @!attribute card_token
13
+ # Unique identifier for the card being tokenized
14
+ #
15
+ # @return [String]
16
+ required :card_token, String
17
+
18
+ # @!attribute created
19
+ # Indicate when the request was received from Mastercard or Visa
20
+ #
21
+ # @return [Time]
22
+ required :created, Time
23
+
24
+ # @!attribute customer_tokenization_decision
25
+ # Contains the metadata for the customer tokenization decision.
26
+ #
27
+ # @return [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil]
28
+ required :customer_tokenization_decision,
29
+ -> {
30
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
31
+ },
32
+ nil?: true
33
+
34
+ # @!attribute event_type
35
+ # The name of this event
36
+ #
37
+ # @return [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType]
38
+ required :event_type, enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType }
39
+
40
+ # @!attribute issuer_decision
41
+ # Whether Lithic decisioned on the token, and if so, what the decision was.
42
+ # APPROVED/VERIFICATION_REQUIRED/DENIED.
43
+ #
44
+ # @return [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision]
45
+ required :issuer_decision,
46
+ enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision }
47
+
48
+ # @!attribute tokenization_channel
49
+ # The channel through which the tokenization was made.
50
+ #
51
+ # @return [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel]
52
+ required :tokenization_channel,
53
+ enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel }
54
+
55
+ # @!attribute tokenization_token
56
+ # Unique identifier for the digital wallet token attempt
57
+ #
58
+ # @return [String]
59
+ required :tokenization_token, String
60
+
61
+ # @!attribute wallet_decisioning_info
62
+ #
63
+ # @return [Lithic::Models::WalletDecisioningInfo]
64
+ required :wallet_decisioning_info, -> { Lithic::WalletDecisioningInfo }
65
+
66
+ # @!attribute device
67
+ #
68
+ # @return [Lithic::Models::Device, nil]
69
+ optional :device, -> { Lithic::Device }
70
+
71
+ # @!attribute digital_wallet_token_metadata
72
+ # Contains the metadata for the digital wallet being tokenized.
73
+ #
74
+ # @return [Lithic::Models::DigitalWalletTokenMetadata, nil]
75
+ optional :digital_wallet_token_metadata, -> { Lithic::DigitalWalletTokenMetadata }
76
+
77
+ # @!attribute rule_results
78
+ # Results from rules that were evaluated for this tokenization
79
+ #
80
+ # @return [Array<Lithic::Models::TokenizationRuleResult>, nil]
81
+ optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::TokenizationRuleResult] }
82
+
83
+ # @!attribute tokenization_decline_reasons
84
+ # List of reasons why the tokenization was declined
85
+ #
86
+ # @return [Array<Symbol, Lithic::Models::TokenizationDeclineReason>, nil]
87
+ optional :tokenization_decline_reasons,
88
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationDeclineReason] }
89
+
90
+ # @!attribute tokenization_source
91
+ # The source of the tokenization.
92
+ #
93
+ # @return [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationSource, nil]
94
+ optional :tokenization_source,
95
+ enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationSource }
96
+
97
+ # @!attribute tokenization_tfa_reasons
98
+ # List of reasons why two-factor authentication was required
99
+ #
100
+ # @return [Array<Symbol, Lithic::Models::TokenizationTfaReason>, nil]
101
+ optional :tokenization_tfa_reasons,
102
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
103
+
104
+ # @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, digital_wallet_token_metadata: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
105
+ # Some parameter documentations has been truncated, see
106
+ # {Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent} for more
107
+ # details.
108
+ #
109
+ # @param account_token [String] Unique identifier for the user tokenizing a card
110
+ #
111
+ # @param card_token [String] Unique identifier for the card being tokenized
112
+ #
113
+ # @param created [Time] Indicate when the request was received from Mastercard or Visa
114
+ #
115
+ # @param customer_tokenization_decision [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil] Contains the metadata for the customer tokenization decision.
116
+ #
117
+ # @param event_type [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType] The name of this event
118
+ #
119
+ # @param issuer_decision [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision] Whether Lithic decisioned on the token, and if so, what the decision was. APPROV
120
+ #
121
+ # @param tokenization_channel [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel] The channel through which the tokenization was made.
122
+ #
123
+ # @param tokenization_token [String] Unique identifier for the digital wallet token attempt
124
+ #
125
+ # @param wallet_decisioning_info [Lithic::Models::WalletDecisioningInfo]
126
+ #
127
+ # @param device [Lithic::Models::Device]
128
+ #
129
+ # @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
130
+ #
131
+ # @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
132
+ #
133
+ # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined
134
+ #
135
+ # @param tokenization_source [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationSource] The source of the tokenization.
136
+ #
137
+ # @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::TokenizationTfaReason>] List of reasons why two-factor authentication was required
138
+
139
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#customer_tokenization_decision
140
+ class CustomerTokenizationDecision < Lithic::Internal::Type::BaseModel
141
+ # @!attribute outcome
142
+ # The outcome of the customer's decision
143
+ #
144
+ # @return [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::Outcome]
145
+ required :outcome,
146
+ enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::Outcome }
147
+
148
+ # @!attribute responder_url
149
+ # The customer's subscribed URL
150
+ #
151
+ # @return [String]
152
+ required :responder_url, String
153
+
154
+ # @!attribute latency
155
+ # Time in ms it took for the customer's URL to respond
156
+ #
157
+ # @return [String, nil]
158
+ optional :latency, String
159
+
160
+ # @!attribute response_code
161
+ # The response code that the customer provided
162
+ #
163
+ # @return [String, nil]
164
+ optional :response_code, String
165
+
166
+ # @!method initialize(outcome:, responder_url:, latency: nil, response_code: nil)
167
+ # Contains the metadata for the customer tokenization decision.
168
+ #
169
+ # @param outcome [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::Outcome] The outcome of the customer's decision
170
+ #
171
+ # @param responder_url [String] The customer's subscribed URL
172
+ #
173
+ # @param latency [String] Time in ms it took for the customer's URL to respond
174
+ #
175
+ # @param response_code [String] The response code that the customer provided
176
+
177
+ # The outcome of the customer's decision
178
+ #
179
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision#outcome
180
+ module Outcome
181
+ extend Lithic::Internal::Type::Enum
182
+
183
+ APPROVED = :APPROVED
184
+ DECLINED = :DECLINED
185
+ ERROR = :ERROR
186
+ INVALID_RESPONSE = :INVALID_RESPONSE
187
+ REQUIRE_ADDITIONAL_AUTHENTICATION = :REQUIRE_ADDITIONAL_AUTHENTICATION
188
+ TIMEOUT = :TIMEOUT
189
+
190
+ # @!method self.values
191
+ # @return [Array<Symbol>]
192
+ end
193
+ end
194
+
195
+ # The name of this event
196
+ #
197
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#event_type
198
+ module EventType
199
+ extend Lithic::Internal::Type::Enum
200
+
201
+ DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
202
+
203
+ # @!method self.values
204
+ # @return [Array<Symbol>]
205
+ end
206
+
207
+ # Whether Lithic decisioned on the token, and if so, what the decision was.
208
+ # APPROVED/VERIFICATION_REQUIRED/DENIED.
209
+ #
210
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#issuer_decision
211
+ module IssuerDecision
212
+ extend Lithic::Internal::Type::Enum
213
+
214
+ APPROVED = :APPROVED
215
+ DENIED = :DENIED
216
+ VERIFICATION_REQUIRED = :VERIFICATION_REQUIRED
217
+
218
+ # @!method self.values
219
+ # @return [Array<Symbol>]
220
+ end
221
+
222
+ # The channel through which the tokenization was made.
223
+ #
224
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#tokenization_channel
225
+ module TokenizationChannel
226
+ extend Lithic::Internal::Type::Enum
227
+
228
+ DIGITAL_WALLET = :DIGITAL_WALLET
229
+ MERCHANT = :MERCHANT
230
+
231
+ # @!method self.values
232
+ # @return [Array<Symbol>]
233
+ end
234
+
235
+ # The source of the tokenization.
236
+ #
237
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#tokenization_source
238
+ module TokenizationSource
239
+ extend Lithic::Internal::Type::Enum
240
+
241
+ ACCOUNT_ON_FILE = :ACCOUNT_ON_FILE
242
+ CONTACTLESS_TAP = :CONTACTLESS_TAP
243
+ MANUAL_PROVISION = :MANUAL_PROVISION
244
+ PUSH_PROVISION = :PUSH_PROVISION
245
+ TOKEN = :TOKEN
246
+ UNKNOWN = :UNKNOWN
247
+
248
+ # @!method self.values
249
+ # @return [Array<Symbol>]
250
+ end
251
+ end
252
+ end
253
+ end