lithic 0.1.0.pre.alpha.56 → 0.1.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 (242) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +208 -49
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +2 -2
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +2 -2
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +2 -2
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +5 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +19 -2
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +4 -1
  16. data/lib/lithic/models/auth_rules/event_stream.rb +21 -0
  17. data/lib/lithic/models/auth_rules/v2_create_params.rb +3 -17
  18. data/lib/lithic/models/auth_rules/v2_list_params.rb +16 -19
  19. data/lib/lithic/models/card_bulk_order.rb +106 -0
  20. data/lib/lithic/models/card_bulk_order_create_params.rb +52 -0
  21. data/lib/lithic/models/card_bulk_order_list_params.rb +61 -0
  22. data/lib/lithic/models/card_bulk_order_retrieve_params.rb +14 -0
  23. data/lib/lithic/models/card_bulk_order_update_params.rb +32 -0
  24. data/lib/lithic/models/card_convert_physical_params.rb +3 -0
  25. data/lib/lithic/models/card_create_params.rb +14 -1
  26. data/lib/lithic/models/card_program.rb +10 -10
  27. data/lib/lithic/models/card_reissue_params.rb +3 -0
  28. data/lib/lithic/models/card_renew_params.rb +3 -0
  29. data/lib/lithic/models/card_web_provision_params.rb +32 -1
  30. data/lib/lithic/models/card_web_provision_response.rb +98 -60
  31. data/lib/lithic/models/cardholder_authentication.rb +132 -0
  32. data/lib/lithic/models/device.rb +37 -0
  33. data/lib/lithic/models/digital_wallet_token_metadata.rb +141 -0
  34. data/lib/lithic/models/{external_bank_account_unpause_response.rb → external_bank_account.rb} +15 -16
  35. data/lib/lithic/models/external_payment.rb +12 -0
  36. data/lib/lithic/models/external_payment_create_params.rb +2 -0
  37. data/lib/lithic/models/external_payment_list_params.rb +2 -0
  38. data/lib/lithic/models/financial_account_balance.rb +112 -0
  39. data/lib/lithic/models/financial_accounts/statement.rb +9 -9
  40. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -0
  41. data/lib/lithic/models/financial_event.rb +16 -0
  42. data/lib/lithic/models/{funding_event_retrieve_response.rb → funding_event.rb} +9 -10
  43. data/lib/lithic/models/internal_transaction.rb +166 -0
  44. data/lib/lithic/models/management_operation_create_params.rb +6 -0
  45. data/lib/lithic/models/management_operation_transaction.rb +6 -0
  46. data/lib/lithic/models/network_total.rb +169 -0
  47. data/lib/lithic/models/non_pci_card.rb +10 -1
  48. data/lib/lithic/models/payment.rb +11 -1
  49. data/lib/lithic/models/payment_create_params.rb +10 -1
  50. data/lib/lithic/models/three_ds_authentication.rb +1259 -0
  51. data/lib/lithic/models/token_info.rb +42 -0
  52. data/lib/lithic/models/tokenization.rb +9 -111
  53. data/lib/lithic/models/tokenization_decline_reason.rb +27 -0
  54. data/lib/lithic/models/tokenization_rule_result.rb +61 -0
  55. data/lib/lithic/models/tokenization_tfa_reason.rb +29 -0
  56. data/lib/lithic/models/transaction.rb +6 -174
  57. data/lib/lithic/models/wallet_decisioning_info.rb +44 -0
  58. data/lib/lithic/models.rb +38 -0
  59. data/lib/lithic/resources/auth_rules/v2.rb +17 -15
  60. data/lib/lithic/resources/card_bulk_orders.rb +127 -0
  61. data/lib/lithic/resources/cards/balances.rb +2 -2
  62. data/lib/lithic/resources/cards.rb +14 -3
  63. data/lib/lithic/resources/external_bank_accounts.rb +4 -4
  64. data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
  65. data/lib/lithic/resources/funding_events.rb +4 -4
  66. data/lib/lithic/resources/internal_transaction.rb +14 -0
  67. data/lib/lithic/resources/reports/settlement/network_totals.rb +4 -4
  68. data/lib/lithic/resources/three_ds/authentication.rb +2 -2
  69. data/lib/lithic/resources/tokenizations.rb +4 -4
  70. data/lib/lithic/version.rb +1 -1
  71. data/lib/lithic.rb +23 -17
  72. data/manifest.yaml +1 -0
  73. data/rbi/lithic/client.rbi +6 -0
  74. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  75. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  76. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  77. data/rbi/lithic/models/auth_rules/auth_rule.rbi +339 -80
  78. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +25 -0
  79. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +29 -0
  80. data/rbi/lithic/models/auth_rules/conditional_value.rbi +2 -1
  81. data/rbi/lithic/models/auth_rules/event_stream.rbi +44 -0
  82. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +4 -60
  83. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +27 -59
  84. data/rbi/lithic/models/card_bulk_order.rbi +141 -0
  85. data/rbi/lithic/models/card_bulk_order_create_params.rbi +92 -0
  86. data/rbi/lithic/models/card_bulk_order_list_params.rbi +98 -0
  87. data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +27 -0
  88. data/rbi/lithic/models/card_bulk_order_update_params.rbi +68 -0
  89. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -0
  90. data/rbi/lithic/models/card_create_params.rbi +23 -0
  91. data/rbi/lithic/models/card_program.rbi +10 -13
  92. data/rbi/lithic/models/card_reissue_params.rbi +8 -0
  93. data/rbi/lithic/models/card_renew_params.rbi +8 -0
  94. data/rbi/lithic/models/card_web_provision_params.rbi +44 -0
  95. data/rbi/lithic/models/card_web_provision_response.rbi +182 -102
  96. data/rbi/lithic/models/cardholder_authentication.rbi +296 -0
  97. data/rbi/lithic/models/device.rbi +54 -0
  98. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +290 -0
  99. data/rbi/lithic/models/{external_bank_account_unpause_response.rbi → external_bank_account.rbi} +26 -75
  100. data/rbi/lithic/models/external_payment.rbi +57 -0
  101. data/rbi/lithic/models/external_payment_create_params.rbi +10 -0
  102. data/rbi/lithic/models/external_payment_list_params.rbi +10 -0
  103. data/rbi/lithic/models/financial_account_balance.rbi +144 -0
  104. data/rbi/lithic/models/financial_accounts/statement.rbi +9 -9
  105. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +90 -0
  106. data/rbi/lithic/models/financial_event.rbi +60 -0
  107. data/rbi/lithic/models/{funding_event_list_response.rbi → funding_event.rbi} +13 -35
  108. data/rbi/lithic/models/internal_transaction.rbi +277 -0
  109. data/rbi/lithic/models/management_operation_create_params.rbi +30 -0
  110. data/rbi/lithic/models/management_operation_transaction.rbi +30 -0
  111. data/rbi/lithic/models/network_total.rbi +226 -0
  112. data/rbi/lithic/models/non_pci_card.rbi +10 -0
  113. data/rbi/lithic/models/payment.rbi +12 -0
  114. data/rbi/lithic/models/payment_create_params.rbi +15 -1
  115. data/rbi/lithic/models/three_ds_authentication.rbi +2432 -0
  116. data/rbi/lithic/models/token_info.rbi +70 -0
  117. data/rbi/lithic/models/tokenization.rbi +12 -335
  118. data/rbi/lithic/models/tokenization_decline_reason.rbi +73 -0
  119. data/rbi/lithic/models/tokenization_rule_result.rbi +96 -0
  120. data/rbi/lithic/models/tokenization_tfa_reason.rbi +74 -0
  121. data/rbi/lithic/models/transaction.rbi +8 -410
  122. data/rbi/lithic/models/wallet_decisioning_info.rbi +63 -0
  123. data/rbi/lithic/models.rbi +38 -0
  124. data/rbi/lithic/resources/auth_rules/v2.rbi +15 -15
  125. data/rbi/lithic/resources/card_bulk_orders.rbi +101 -0
  126. data/rbi/lithic/resources/cards/balances.rbi +1 -3
  127. data/rbi/lithic/resources/cards.rbi +22 -1
  128. data/rbi/lithic/resources/external_bank_accounts.rbi +2 -2
  129. data/rbi/lithic/resources/financial_accounts/balances.rbi +1 -3
  130. data/rbi/lithic/resources/funding_events.rbi +2 -4
  131. data/rbi/lithic/resources/internal_transaction.rbi +12 -0
  132. data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -8
  133. data/rbi/lithic/resources/three_ds/authentication.rbi +1 -1
  134. data/rbi/lithic/resources/tokenizations.rbi +2 -2
  135. data/sig/lithic/client.rbs +4 -0
  136. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  137. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  138. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  139. data/sig/lithic/models/auth_rules/auth_rule.rbs +135 -36
  140. data/sig/lithic/models/auth_rules/conditional_operation.rbs +10 -0
  141. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  142. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  143. data/sig/lithic/models/auth_rules/event_stream.rbs +24 -0
  144. data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -25
  145. data/sig/lithic/models/auth_rules/v2_list_params.rbs +15 -25
  146. data/sig/lithic/models/card_bulk_order.rbs +76 -0
  147. data/sig/lithic/models/card_bulk_order_create_params.rbs +46 -0
  148. data/sig/lithic/models/card_bulk_order_list_params.rbs +56 -0
  149. data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +15 -0
  150. data/sig/lithic/models/card_bulk_order_update_params.rbs +34 -0
  151. data/sig/lithic/models/card_convert_physical_params.rbs +2 -0
  152. data/sig/lithic/models/card_create_params.rbs +9 -0
  153. data/sig/lithic/models/card_program.rbs +5 -7
  154. data/sig/lithic/models/card_reissue_params.rbs +2 -0
  155. data/sig/lithic/models/card_renew_params.rbs +2 -0
  156. data/sig/lithic/models/card_web_provision_params.rbs +26 -2
  157. data/sig/lithic/models/card_web_provision_response.rbs +81 -51
  158. data/sig/lithic/models/cardholder_authentication.rbs +98 -0
  159. data/sig/lithic/models/device.rbs +21 -0
  160. data/sig/lithic/models/digital_wallet_token_metadata.rbs +119 -0
  161. data/sig/lithic/models/{external_bank_account_unpause_response.rbs → external_bank_account.rbs} +17 -17
  162. data/sig/lithic/models/external_payment.rbs +28 -1
  163. data/sig/lithic/models/external_payment_create_params.rbs +8 -1
  164. data/sig/lithic/models/external_payment_list_params.rbs +8 -1
  165. data/sig/lithic/models/financial_account_balance.rbs +78 -0
  166. data/sig/lithic/models/financial_accounts/statement.rbs +12 -12
  167. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +36 -0
  168. data/sig/lithic/models/financial_event.rbs +32 -0
  169. data/sig/lithic/models/{funding_event_list_response.rbs → funding_event.rbs} +11 -11
  170. data/sig/lithic/models/internal_transaction.rbs +165 -0
  171. data/sig/lithic/models/management_operation_create_params.rbs +12 -0
  172. data/sig/lithic/models/management_operation_transaction.rbs +12 -0
  173. data/sig/lithic/models/network_total.rbs +125 -0
  174. data/sig/lithic/models/non_pci_card.rbs +5 -0
  175. data/sig/lithic/models/payment.rbs +9 -0
  176. data/sig/lithic/models/payment_create_params.rbs +7 -0
  177. data/sig/lithic/models/three_ds_authentication.rbs +911 -0
  178. data/sig/lithic/models/token_info.rbs +36 -0
  179. data/sig/lithic/models/tokenization.rbs +18 -137
  180. data/sig/lithic/models/tokenization_decline_reason.rbs +38 -0
  181. data/sig/lithic/models/tokenization_rule_result.rbs +48 -0
  182. data/sig/lithic/models/tokenization_tfa_reason.rbs +42 -0
  183. data/sig/lithic/models/transaction.rbs +8 -140
  184. data/sig/lithic/models/wallet_decisioning_info.rbs +35 -0
  185. data/sig/lithic/models.rbs +38 -0
  186. data/sig/lithic/resources/auth_rules/v2.rbs +9 -8
  187. data/sig/lithic/resources/card_bulk_orders.rbs +34 -0
  188. data/sig/lithic/resources/cards/balances.rbs +1 -1
  189. data/sig/lithic/resources/cards.rbs +5 -1
  190. data/sig/lithic/resources/external_bank_accounts.rbs +2 -2
  191. data/sig/lithic/resources/financial_accounts/balances.rbs +1 -1
  192. data/sig/lithic/resources/funding_events.rbs +2 -2
  193. data/sig/lithic/resources/internal_transaction.rbs +7 -0
  194. data/sig/lithic/resources/reports/settlement/network_totals.rbs +2 -2
  195. data/sig/lithic/resources/three_ds/authentication.rbs +1 -1
  196. data/sig/lithic/resources/tokenizations.rbs +2 -2
  197. metadata +70 -55
  198. data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -280
  199. data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -279
  200. data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -279
  201. data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -280
  202. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -284
  203. data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -280
  204. data/lib/lithic/models/cards/balance_list_response.rb +0 -115
  205. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +0 -242
  206. data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -115
  207. data/lib/lithic/models/funding_event_list_response.rb +0 -108
  208. data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -176
  209. data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -176
  210. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +0 -1288
  211. data/lib/lithic/models/tokenization_simulate_response.rb +0 -16
  212. data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +0 -16
  213. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +0 -522
  214. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +0 -522
  215. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +0 -518
  216. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +0 -525
  217. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +0 -528
  218. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +0 -522
  219. data/rbi/lithic/models/cards/balance_list_response.rbi +0 -170
  220. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +0 -375
  221. data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +0 -174
  222. data/rbi/lithic/models/funding_event_retrieve_response.rbi +0 -184
  223. data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +0 -280
  224. data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +0 -280
  225. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +0 -2580
  226. data/rbi/lithic/models/tokenization_simulate_response.rbi +0 -33
  227. data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +0 -31
  228. data/sig/lithic/models/auth_rules/v2_create_response.rbs +0 -205
  229. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +0 -205
  230. data/sig/lithic/models/auth_rules/v2_list_response.rbs +0 -205
  231. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +0 -205
  232. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +0 -205
  233. data/sig/lithic/models/auth_rules/v2_update_response.rbs +0 -205
  234. data/sig/lithic/models/cards/balance_list_response.rbs +0 -80
  235. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +0 -162
  236. data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -80
  237. data/sig/lithic/models/funding_event_retrieve_response.rbs +0 -85
  238. data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -129
  239. data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -129
  240. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +0 -913
  241. data/sig/lithic/models/tokenization_simulate_response.rbs +0 -18
  242. data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +0 -16
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class TokenInfo < Lithic::Internal::Type::BaseModel
6
+ # @!attribute wallet_type
7
+ # The wallet_type field will indicate the source of the token. Possible token
8
+ # sources include digital wallets (Apple, Google, or Samsung Pay), merchant
9
+ # tokenization, and “other” sources like in-flight commerce. Masterpass is not
10
+ # currently supported and is included for future use.
11
+ #
12
+ # @return [Symbol, Lithic::Models::TokenInfo::WalletType]
13
+ required :wallet_type, enum: -> { Lithic::TokenInfo::WalletType }
14
+
15
+ # @!method initialize(wallet_type:)
16
+ # Some parameter documentations has been truncated, see
17
+ # {Lithic::Models::TokenInfo} for more details.
18
+ #
19
+ # @param wallet_type [Symbol, Lithic::Models::TokenInfo::WalletType] The wallet_type field will indicate the source of the token. Possible token sour
20
+
21
+ # The wallet_type field will indicate the source of the token. Possible token
22
+ # sources include digital wallets (Apple, Google, or Samsung Pay), merchant
23
+ # tokenization, and “other” sources like in-flight commerce. Masterpass is not
24
+ # currently supported and is included for future use.
25
+ #
26
+ # @see Lithic::Models::TokenInfo#wallet_type
27
+ module WalletType
28
+ extend Lithic::Internal::Type::Enum
29
+
30
+ APPLE_PAY = :APPLE_PAY
31
+ GOOGLE_PAY = :GOOGLE_PAY
32
+ MASTERPASS = :MASTERPASS
33
+ MERCHANT = :MERCHANT
34
+ OTHER = :OTHER
35
+ SAMSUNG_PAY = :SAMSUNG_PAY
36
+
37
+ # @!method self.values
38
+ # @return [Array<Symbol>]
39
+ end
40
+ end
41
+ end
42
+ end
@@ -238,22 +238,22 @@ module Lithic
238
238
  # @!attribute rule_results
239
239
  # Results from rules that were evaluated for this tokenization
240
240
  #
241
- # @return [Array<Lithic::Models::Tokenization::Event::RuleResult>, nil]
242
- optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::Tokenization::Event::RuleResult] }
241
+ # @return [Array<Lithic::Models::TokenizationRuleResult>, nil]
242
+ optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::TokenizationRuleResult] }
243
243
 
244
244
  # @!attribute tokenization_decline_reasons
245
245
  # List of reasons why the tokenization was declined
246
246
  #
247
- # @return [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationDeclineReason>, nil]
247
+ # @return [Array<Symbol, Lithic::Models::TokenizationDeclineReason>, nil]
248
248
  optional :tokenization_decline_reasons,
249
- -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationDeclineReason] }
249
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationDeclineReason] }
250
250
 
251
251
  # @!attribute tokenization_tfa_reasons
252
252
  # List of reasons why two-factor authentication was required
253
253
  #
254
- # @return [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationTfaReason>, nil]
254
+ # @return [Array<Symbol, Lithic::Models::TokenizationTfaReason>, nil]
255
255
  optional :tokenization_tfa_reasons,
256
- -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationTfaReason] }
256
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
257
257
 
258
258
  # @!attribute type
259
259
  # Enum representing the type of tokenization event that occurred
@@ -268,11 +268,11 @@ module Lithic
268
268
  #
269
269
  # @param result [Symbol, Lithic::Models::Tokenization::Event::Result] Enum representing the result of the tokenization event
270
270
  #
271
- # @param rule_results [Array<Lithic::Models::Tokenization::Event::RuleResult>] Results from rules that were evaluated for this tokenization
271
+ # @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
272
272
  #
273
- # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationDeclineReason>] List of reasons why the tokenization was declined
273
+ # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined
274
274
  #
275
- # @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationTfaReason>] List of reasons why two-factor authentication was required
275
+ # @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::TokenizationTfaReason>] List of reasons why two-factor authentication was required
276
276
  #
277
277
  # @param type [Symbol, Lithic::Models::Tokenization::Event::Type] Enum representing the type of tokenization event that occurred
278
278
 
@@ -299,108 +299,6 @@ module Lithic
299
299
  # @return [Array<Symbol>]
300
300
  end
301
301
 
302
- class RuleResult < Lithic::Internal::Type::BaseModel
303
- # @!attribute auth_rule_token
304
- # The Auth Rule Token associated with the rule. If this is set to null, then the
305
- # result was not associated with a customer-configured rule. This may happen in
306
- # cases where a tokenization is declined or requires TFA due to a
307
- # Lithic-configured security or compliance rule, for example.
308
- #
309
- # @return [String, nil]
310
- required :auth_rule_token, String, nil?: true
311
-
312
- # @!attribute explanation
313
- # A human-readable explanation outlining the motivation for the rule's result
314
- #
315
- # @return [String, nil]
316
- required :explanation, String, nil?: true
317
-
318
- # @!attribute name
319
- # The name for the rule, if any was configured
320
- #
321
- # @return [String, nil]
322
- required :name, String, nil?: true
323
-
324
- # @!attribute result
325
- # The result associated with this rule
326
- #
327
- # @return [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result]
328
- required :result, enum: -> { Lithic::Tokenization::Event::RuleResult::Result }
329
-
330
- # @!method initialize(auth_rule_token:, explanation:, name:, result:)
331
- # Some parameter documentations has been truncated, see
332
- # {Lithic::Models::Tokenization::Event::RuleResult} for more details.
333
- #
334
- # @param auth_rule_token [String, nil] The Auth Rule Token associated with the rule. If this is set to null, then the r
335
- #
336
- # @param explanation [String, nil] A human-readable explanation outlining the motivation for the rule's result
337
- #
338
- # @param name [String, nil] The name for the rule, if any was configured
339
- #
340
- # @param result [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result] The result associated with this rule
341
-
342
- # The result associated with this rule
343
- #
344
- # @see Lithic::Models::Tokenization::Event::RuleResult#result
345
- module Result
346
- extend Lithic::Internal::Type::Enum
347
-
348
- APPROVED = :APPROVED
349
- DECLINED = :DECLINED
350
- REQUIRE_TFA = :REQUIRE_TFA
351
- ERROR = :ERROR
352
-
353
- # @!method self.values
354
- # @return [Array<Symbol>]
355
- end
356
- end
357
-
358
- # Reason code for why a tokenization was declined
359
- module TokenizationDeclineReason
360
- extend Lithic::Internal::Type::Enum
361
-
362
- ACCOUNT_SCORE_1 = :ACCOUNT_SCORE_1
363
- DEVICE_SCORE_1 = :DEVICE_SCORE_1
364
- ALL_WALLET_DECLINE_REASONS_PRESENT = :ALL_WALLET_DECLINE_REASONS_PRESENT
365
- WALLET_RECOMMENDED_DECISION_RED = :WALLET_RECOMMENDED_DECISION_RED
366
- CVC_MISMATCH = :CVC_MISMATCH
367
- CARD_EXPIRY_MONTH_MISMATCH = :CARD_EXPIRY_MONTH_MISMATCH
368
- CARD_EXPIRY_YEAR_MISMATCH = :CARD_EXPIRY_YEAR_MISMATCH
369
- CARD_INVALID_STATE = :CARD_INVALID_STATE
370
- CUSTOMER_RED_PATH = :CUSTOMER_RED_PATH
371
- INVALID_CUSTOMER_RESPONSE = :INVALID_CUSTOMER_RESPONSE
372
- NETWORK_FAILURE = :NETWORK_FAILURE
373
- GENERIC_DECLINE = :GENERIC_DECLINE
374
- DIGITAL_CARD_ART_REQUIRED = :DIGITAL_CARD_ART_REQUIRED
375
-
376
- # @!method self.values
377
- # @return [Array<Symbol>]
378
- end
379
-
380
- # Reason code for why a tokenization required two-factor authentication
381
- module TokenizationTfaReason
382
- extend Lithic::Internal::Type::Enum
383
-
384
- WALLET_RECOMMENDED_TFA = :WALLET_RECOMMENDED_TFA
385
- SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
386
- DEVICE_RECENTLY_LOST = :DEVICE_RECENTLY_LOST
387
- TOO_MANY_RECENT_ATTEMPTS = :TOO_MANY_RECENT_ATTEMPTS
388
- TOO_MANY_RECENT_TOKENS = :TOO_MANY_RECENT_TOKENS
389
- TOO_MANY_DIFFERENT_CARDHOLDERS = :TOO_MANY_DIFFERENT_CARDHOLDERS
390
- OUTSIDE_HOME_TERRITORY = :OUTSIDE_HOME_TERRITORY
391
- HAS_SUSPENDED_TOKENS = :HAS_SUSPENDED_TOKENS
392
- HIGH_RISK = :HIGH_RISK
393
- ACCOUNT_SCORE_LOW = :ACCOUNT_SCORE_LOW
394
- DEVICE_SCORE_LOW = :DEVICE_SCORE_LOW
395
- CARD_STATE_TFA = :CARD_STATE_TFA
396
- HARDCODED_TFA = :HARDCODED_TFA
397
- CUSTOMER_RULE_TFA = :CUSTOMER_RULE_TFA
398
- DEVICE_HOST_CARD_EMULATION = :DEVICE_HOST_CARD_EMULATION
399
-
400
- # @!method self.values
401
- # @return [Array<Symbol>]
402
- end
403
-
404
302
  # Enum representing the type of tokenization event that occurred
405
303
  #
406
304
  # @see Lithic::Models::Tokenization::Event#type
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # Reason code for why a tokenization was declined
6
+ module TokenizationDeclineReason
7
+ extend Lithic::Internal::Type::Enum
8
+
9
+ ACCOUNT_SCORE_1 = :ACCOUNT_SCORE_1
10
+ DEVICE_SCORE_1 = :DEVICE_SCORE_1
11
+ ALL_WALLET_DECLINE_REASONS_PRESENT = :ALL_WALLET_DECLINE_REASONS_PRESENT
12
+ WALLET_RECOMMENDED_DECISION_RED = :WALLET_RECOMMENDED_DECISION_RED
13
+ CVC_MISMATCH = :CVC_MISMATCH
14
+ CARD_EXPIRY_MONTH_MISMATCH = :CARD_EXPIRY_MONTH_MISMATCH
15
+ CARD_EXPIRY_YEAR_MISMATCH = :CARD_EXPIRY_YEAR_MISMATCH
16
+ CARD_INVALID_STATE = :CARD_INVALID_STATE
17
+ CUSTOMER_RED_PATH = :CUSTOMER_RED_PATH
18
+ INVALID_CUSTOMER_RESPONSE = :INVALID_CUSTOMER_RESPONSE
19
+ NETWORK_FAILURE = :NETWORK_FAILURE
20
+ GENERIC_DECLINE = :GENERIC_DECLINE
21
+ DIGITAL_CARD_ART_REQUIRED = :DIGITAL_CARD_ART_REQUIRED
22
+
23
+ # @!method self.values
24
+ # @return [Array<Symbol>]
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class TokenizationRuleResult < Lithic::Internal::Type::BaseModel
6
+ # @!attribute auth_rule_token
7
+ # The Auth Rule Token associated with the rule. If this is set to null, then the
8
+ # result was not associated with a customer-configured rule. This may happen in
9
+ # cases where a tokenization is declined or requires TFA due to a
10
+ # Lithic-configured security or compliance rule, for example.
11
+ #
12
+ # @return [String, nil]
13
+ required :auth_rule_token, String, nil?: true
14
+
15
+ # @!attribute explanation
16
+ # A human-readable explanation outlining the motivation for the rule's result
17
+ #
18
+ # @return [String, nil]
19
+ required :explanation, String, nil?: true
20
+
21
+ # @!attribute name
22
+ # The name for the rule, if any was configured
23
+ #
24
+ # @return [String, nil]
25
+ required :name, String, nil?: true
26
+
27
+ # @!attribute result
28
+ # The result associated with this rule
29
+ #
30
+ # @return [Symbol, Lithic::Models::TokenizationRuleResult::Result]
31
+ required :result, enum: -> { Lithic::TokenizationRuleResult::Result }
32
+
33
+ # @!method initialize(auth_rule_token:, explanation:, name:, result:)
34
+ # Some parameter documentations has been truncated, see
35
+ # {Lithic::Models::TokenizationRuleResult} for more details.
36
+ #
37
+ # @param auth_rule_token [String, nil] The Auth Rule Token associated with the rule. If this is set to null, then the r
38
+ #
39
+ # @param explanation [String, nil] A human-readable explanation outlining the motivation for the rule's result
40
+ #
41
+ # @param name [String, nil] The name for the rule, if any was configured
42
+ #
43
+ # @param result [Symbol, Lithic::Models::TokenizationRuleResult::Result] The result associated with this rule
44
+
45
+ # The result associated with this rule
46
+ #
47
+ # @see Lithic::Models::TokenizationRuleResult#result
48
+ module Result
49
+ extend Lithic::Internal::Type::Enum
50
+
51
+ APPROVED = :APPROVED
52
+ DECLINED = :DECLINED
53
+ REQUIRE_TFA = :REQUIRE_TFA
54
+ ERROR = :ERROR
55
+
56
+ # @!method self.values
57
+ # @return [Array<Symbol>]
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # Reason code for why a tokenization required two-factor authentication
6
+ module TokenizationTfaReason
7
+ extend Lithic::Internal::Type::Enum
8
+
9
+ WALLET_RECOMMENDED_TFA = :WALLET_RECOMMENDED_TFA
10
+ SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
11
+ DEVICE_RECENTLY_LOST = :DEVICE_RECENTLY_LOST
12
+ TOO_MANY_RECENT_ATTEMPTS = :TOO_MANY_RECENT_ATTEMPTS
13
+ TOO_MANY_RECENT_TOKENS = :TOO_MANY_RECENT_TOKENS
14
+ TOO_MANY_DIFFERENT_CARDHOLDERS = :TOO_MANY_DIFFERENT_CARDHOLDERS
15
+ OUTSIDE_HOME_TERRITORY = :OUTSIDE_HOME_TERRITORY
16
+ HAS_SUSPENDED_TOKENS = :HAS_SUSPENDED_TOKENS
17
+ HIGH_RISK = :HIGH_RISK
18
+ ACCOUNT_SCORE_LOW = :ACCOUNT_SCORE_LOW
19
+ DEVICE_SCORE_LOW = :DEVICE_SCORE_LOW
20
+ CARD_STATE_TFA = :CARD_STATE_TFA
21
+ HARDCODED_TFA = :HARDCODED_TFA
22
+ CUSTOMER_RULE_TFA = :CUSTOMER_RULE_TFA
23
+ DEVICE_HOST_CARD_EMULATION = :DEVICE_HOST_CARD_EMULATION
24
+
25
+ # @!method self.values
26
+ # @return [Array<Symbol>]
27
+ end
28
+ end
29
+ end
@@ -78,8 +78,8 @@ module Lithic
78
78
 
79
79
  # @!attribute cardholder_authentication
80
80
  #
81
- # @return [Lithic::Models::Transaction::CardholderAuthentication, nil]
82
- required :cardholder_authentication, -> { Lithic::Transaction::CardholderAuthentication }, nil?: true
81
+ # @return [Lithic::Models::CardholderAuthentication, nil]
82
+ required :cardholder_authentication, -> { Lithic::CardholderAuthentication }, nil?: true
83
83
 
84
84
  # @!attribute created
85
85
  # Date and time when the transaction first occurred. UTC time zone.
@@ -164,8 +164,8 @@ module Lithic
164
164
 
165
165
  # @!attribute token_info
166
166
  #
167
- # @return [Lithic::Models::Transaction::TokenInfo, nil]
168
- required :token_info, -> { Lithic::Transaction::TokenInfo }, nil?: true
167
+ # @return [Lithic::Models::TokenInfo, nil]
168
+ required :token_info, -> { Lithic::TokenInfo }, nil?: true
169
169
 
170
170
  # @!attribute updated
171
171
  # Date and time when the transaction last updated. UTC time zone.
@@ -202,7 +202,7 @@ module Lithic
202
202
  #
203
203
  # @param card_token [String] Token for the card used in this transaction.
204
204
  #
205
- # @param cardholder_authentication [Lithic::Models::Transaction::CardholderAuthentication, nil]
205
+ # @param cardholder_authentication [Lithic::Models::CardholderAuthentication, nil]
206
206
  #
207
207
  # @param created [Time] Date and time when the transaction first occurred. UTC time zone.
208
208
  #
@@ -228,7 +228,7 @@ module Lithic
228
228
  #
229
229
  # @param status [Symbol, Lithic::Models::Transaction::Status] Status of the transaction.
230
230
  #
231
- # @param token_info [Lithic::Models::Transaction::TokenInfo, nil]
231
+ # @param token_info [Lithic::Models::TokenInfo, nil]
232
232
  #
233
233
  # @param updated [Time] Date and time when the transaction last updated. UTC time zone.
234
234
  #
@@ -376,136 +376,6 @@ module Lithic
376
376
  # @param zipcode [String] Cardholder ZIP code
377
377
  end
378
378
 
379
- # @see Lithic::Models::Transaction#cardholder_authentication
380
- class CardholderAuthentication < Lithic::Internal::Type::BaseModel
381
- # @!attribute authentication_method
382
- # Indicates the method used to authenticate the cardholder.
383
- #
384
- # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod]
385
- required :authentication_method,
386
- enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod }
387
-
388
- # @!attribute authentication_result
389
- # Indicates the outcome of the 3DS authentication process.
390
- #
391
- # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationResult]
392
- required :authentication_result,
393
- enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationResult }
394
-
395
- # @!attribute decision_made_by
396
- # Indicates which party made the 3DS authentication decision.
397
- #
398
- # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::DecisionMadeBy]
399
- required :decision_made_by, enum: -> { Lithic::Transaction::CardholderAuthentication::DecisionMadeBy }
400
-
401
- # @!attribute liability_shift
402
- # Indicates whether chargeback liability shift applies to the transaction.
403
- # Possible enum values:
404
- #
405
- # - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
406
- # Secure flow, chargeback liability shift applies.
407
- # - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
408
- # merchant is liable.
409
- # - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
410
- # cryptography, possibly recurring. Chargeback liability shift to the issuer
411
- # applies.
412
- #
413
- # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift]
414
- required :liability_shift, enum: -> { Lithic::Transaction::CardholderAuthentication::LiabilityShift }
415
-
416
- # @!attribute three_ds_authentication_token
417
- # Unique identifier you can use to match a given 3DS authentication (available via
418
- # the three_ds_authentication.created event webhook) and the transaction. Note
419
- # that in cases where liability shift does not occur, this token is matched to the
420
- # transaction on a best-effort basis.
421
- #
422
- # @return [String, nil]
423
- required :three_ds_authentication_token, String, nil?: true
424
-
425
- # @!method initialize(authentication_method:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:)
426
- # Some parameter documentations has been truncated, see
427
- # {Lithic::Models::Transaction::CardholderAuthentication} for more details.
428
- #
429
- # @param authentication_method [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder.
430
- #
431
- # @param authentication_result [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationResult] Indicates the outcome of the 3DS authentication process.
432
- #
433
- # @param decision_made_by [Symbol, Lithic::Models::Transaction::CardholderAuthentication::DecisionMadeBy] Indicates which party made the 3DS authentication decision.
434
- #
435
- # @param liability_shift [Symbol, Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift] Indicates whether chargeback liability shift applies to the transaction. Possibl
436
- #
437
- # @param three_ds_authentication_token [String, nil] Unique identifier you can use to match a given 3DS authentication (available via
438
-
439
- # Indicates the method used to authenticate the cardholder.
440
- #
441
- # @see Lithic::Models::Transaction::CardholderAuthentication#authentication_method
442
- module AuthenticationMethod
443
- extend Lithic::Internal::Type::Enum
444
-
445
- FRICTIONLESS = :FRICTIONLESS
446
- CHALLENGE = :CHALLENGE
447
- NONE = :NONE
448
-
449
- # @!method self.values
450
- # @return [Array<Symbol>]
451
- end
452
-
453
- # Indicates the outcome of the 3DS authentication process.
454
- #
455
- # @see Lithic::Models::Transaction::CardholderAuthentication#authentication_result
456
- module AuthenticationResult
457
- extend Lithic::Internal::Type::Enum
458
-
459
- ATTEMPTS = :ATTEMPTS
460
- DECLINE = :DECLINE
461
- NONE = :NONE
462
- SUCCESS = :SUCCESS
463
-
464
- # @!method self.values
465
- # @return [Array<Symbol>]
466
- end
467
-
468
- # Indicates which party made the 3DS authentication decision.
469
- #
470
- # @see Lithic::Models::Transaction::CardholderAuthentication#decision_made_by
471
- module DecisionMadeBy
472
- extend Lithic::Internal::Type::Enum
473
-
474
- CUSTOMER_RULES = :CUSTOMER_RULES
475
- CUSTOMER_ENDPOINT = :CUSTOMER_ENDPOINT
476
- LITHIC_DEFAULT = :LITHIC_DEFAULT
477
- LITHIC_RULES = :LITHIC_RULES
478
- NETWORK = :NETWORK
479
- UNKNOWN = :UNKNOWN
480
-
481
- # @!method self.values
482
- # @return [Array<Symbol>]
483
- end
484
-
485
- # Indicates whether chargeback liability shift applies to the transaction.
486
- # Possible enum values:
487
- #
488
- # - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
489
- # Secure flow, chargeback liability shift applies.
490
- # - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
491
- # merchant is liable.
492
- # - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
493
- # cryptography, possibly recurring. Chargeback liability shift to the issuer
494
- # applies.
495
- #
496
- # @see Lithic::Models::Transaction::CardholderAuthentication#liability_shift
497
- module LiabilityShift
498
- extend Lithic::Internal::Type::Enum
499
-
500
- LIABILITY_SHIFT_3DS_AUTHENTICATED = :"3DS_AUTHENTICATED"
501
- TOKEN_AUTHENTICATED = :TOKEN_AUTHENTICATED
502
- NONE = :NONE
503
-
504
- # @!method self.values
505
- # @return [Array<Symbol>]
506
- end
507
- end
508
-
509
379
  # Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
510
380
  # determine the network code from the upstream provider.
511
381
  #
@@ -830,44 +700,6 @@ module Lithic
830
700
  # @return [Array<Symbol>]
831
701
  end
832
702
 
833
- # @see Lithic::Models::Transaction#token_info
834
- class TokenInfo < Lithic::Internal::Type::BaseModel
835
- # @!attribute wallet_type
836
- # The wallet_type field will indicate the source of the token. Possible token
837
- # sources include digital wallets (Apple, Google, or Samsung Pay), merchant
838
- # tokenization, and “other” sources like in-flight commerce. Masterpass is not
839
- # currently supported and is included for future use.
840
- #
841
- # @return [Symbol, Lithic::Models::Transaction::TokenInfo::WalletType]
842
- required :wallet_type, enum: -> { Lithic::Transaction::TokenInfo::WalletType }
843
-
844
- # @!method initialize(wallet_type:)
845
- # Some parameter documentations has been truncated, see
846
- # {Lithic::Models::Transaction::TokenInfo} for more details.
847
- #
848
- # @param wallet_type [Symbol, Lithic::Models::Transaction::TokenInfo::WalletType] The wallet_type field will indicate the source of the token. Possible token sour
849
-
850
- # The wallet_type field will indicate the source of the token. Possible token
851
- # sources include digital wallets (Apple, Google, or Samsung Pay), merchant
852
- # tokenization, and “other” sources like in-flight commerce. Masterpass is not
853
- # currently supported and is included for future use.
854
- #
855
- # @see Lithic::Models::Transaction::TokenInfo#wallet_type
856
- module WalletType
857
- extend Lithic::Internal::Type::Enum
858
-
859
- APPLE_PAY = :APPLE_PAY
860
- GOOGLE_PAY = :GOOGLE_PAY
861
- MASTERPASS = :MASTERPASS
862
- MERCHANT = :MERCHANT
863
- OTHER = :OTHER
864
- SAMSUNG_PAY = :SAMSUNG_PAY
865
-
866
- # @!method self.values
867
- # @return [Array<Symbol>]
868
- end
869
- end
870
-
871
703
  class Event < Lithic::Internal::Type::BaseModel
872
704
  # @!attribute token
873
705
  # Transaction event identifier.
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class WalletDecisioningInfo < Lithic::Internal::Type::BaseModel
6
+ # @!attribute account_score
7
+ # Score given to the account by the Wallet Provider
8
+ #
9
+ # @return [String, nil]
10
+ required :account_score, String, nil?: true
11
+
12
+ # @!attribute device_score
13
+ # Score given to the device by the Wallet Provider
14
+ #
15
+ # @return [String, nil]
16
+ required :device_score, String, nil?: true
17
+
18
+ # @!attribute recommended_decision
19
+ # The decision recommended by the Wallet Provider
20
+ #
21
+ # @return [String, nil]
22
+ required :recommended_decision, String, nil?: true
23
+
24
+ # @!attribute recommendation_reasons
25
+ # Reasons provided to the Wallet Provider on how the recommended decision was
26
+ # reached
27
+ #
28
+ # @return [Array<String>, nil]
29
+ optional :recommendation_reasons, Lithic::Internal::Type::ArrayOf[String], nil?: true
30
+
31
+ # @!method initialize(account_score:, device_score:, recommended_decision:, recommendation_reasons: nil)
32
+ # Some parameter documentations has been truncated, see
33
+ # {Lithic::Models::WalletDecisioningInfo} for more details.
34
+ #
35
+ # @param account_score [String, nil] Score given to the account by the Wallet Provider
36
+ #
37
+ # @param device_score [String, nil] Score given to the device by the Wallet Provider
38
+ #
39
+ # @param recommended_decision [String, nil] The decision recommended by the Wallet Provider
40
+ #
41
+ # @param recommendation_reasons [Array<String>, nil] Reasons provided to the Wallet Provider on how the recommended decision was reac
42
+ end
43
+ end
44
+ end