lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  8. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
  17. data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
  19. data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
  20. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
  23. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  24. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
  25. data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
  26. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  27. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  28. data/lib/lithic/models/book_transfer_response.rb +6 -5
  29. data/lib/lithic/models/category_details.rb +27 -0
  30. data/lib/lithic/models/dispute_v2.rb +555 -0
  31. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  32. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  33. data/lib/lithic/models/event.rb +213 -69
  34. data/lib/lithic/models/event_list_params.rb +112 -6
  35. data/lib/lithic/models/event_subscription.rb +112 -6
  36. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  37. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  38. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  39. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  40. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  41. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  42. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  43. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  44. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  45. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  46. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  47. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  48. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  49. data/lib/lithic/models/external_payment.rb +3 -2
  50. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  51. data/lib/lithic/models/financial_account.rb +5 -68
  52. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  53. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  54. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
  55. data/lib/lithic/models/financial_accounts/statement.rb +73 -211
  56. data/lib/lithic/models/financial_event.rb +148 -0
  57. data/lib/lithic/models/financial_transaction.rb +3 -146
  58. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  59. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  60. data/lib/lithic/models/merchant.rb +70 -0
  61. data/lib/lithic/models/payment.rb +16 -14
  62. data/lib/lithic/models/payment_return_params.rb +62 -0
  63. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  64. data/lib/lithic/models/statement_totals.rb +100 -0
  65. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  66. data/lib/lithic/models/tokenization.rb +189 -23
  67. data/lib/lithic/models/transaction.rb +15 -185
  68. data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
  69. data/lib/lithic/models/transfer.rb +3 -146
  70. data/lib/lithic/models.rb +18 -0
  71. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  72. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  73. data/lib/lithic/resources/disputes_v2.rb +74 -0
  74. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  75. data/lib/lithic/resources/payments.rb +53 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +18 -3
  78. data/rbi/lithic/client.rbi +3 -0
  79. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  80. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  81. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  82. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  83. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  84. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  85. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  86. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
  87. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  88. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  89. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  90. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
  91. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
  92. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
  93. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
  94. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  95. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
  96. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
  97. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  98. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
  99. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
  100. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  101. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  102. data/rbi/lithic/models/book_transfer_response.rbi +16 -11
  103. data/rbi/lithic/models/category_details.rbi +43 -0
  104. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  105. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  106. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  107. data/rbi/lithic/models/event.rbi +348 -111
  108. data/rbi/lithic/models/event_list_params.rbi +155 -25
  109. data/rbi/lithic/models/event_subscription.rbi +155 -25
  110. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  111. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  112. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  113. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  114. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  115. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  116. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  117. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  118. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  119. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  120. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  121. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  122. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  123. data/rbi/lithic/models/external_payment.rbi +5 -6
  124. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  125. data/rbi/lithic/models/financial_account.rbi +15 -136
  126. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  127. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  128. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
  129. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
  130. data/rbi/lithic/models/financial_event.rbi +409 -0
  131. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  132. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  133. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  134. data/rbi/lithic/models/merchant.rbi +89 -0
  135. data/rbi/lithic/models/payment.rbi +27 -21
  136. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  137. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  138. data/rbi/lithic/models/statement_totals.rbi +128 -0
  139. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  140. data/rbi/lithic/models/tokenization.rbi +429 -34
  141. data/rbi/lithic/models/transaction.rbi +26 -336
  142. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
  143. data/rbi/lithic/models/transfer.rbi +4 -436
  144. data/rbi/lithic/models.rbi +19 -0
  145. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  146. data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
  147. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  148. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  149. data/rbi/lithic/resources/payments.rbi +52 -0
  150. data/sig/lithic/client.rbs +2 -0
  151. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  152. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  153. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  154. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  155. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  156. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  157. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  158. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
  159. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  160. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  161. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  162. data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
  163. data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
  164. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
  165. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
  166. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  167. data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
  168. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
  169. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  170. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
  171. data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
  172. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  173. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  174. data/sig/lithic/models/book_transfer_response.rbs +10 -8
  175. data/sig/lithic/models/category_details.rbs +26 -0
  176. data/sig/lithic/models/dispute_v2.rbs +438 -0
  177. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  178. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  179. data/sig/lithic/models/event.rbs +25 -13
  180. data/sig/lithic/models/event_list_params.rbs +25 -13
  181. data/sig/lithic/models/event_subscription.rbs +25 -13
  182. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  183. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  184. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  185. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  186. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  187. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  188. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  189. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  190. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  191. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  192. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  193. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  194. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  195. data/sig/lithic/models/external_payment.rbs +7 -7
  196. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  197. data/sig/lithic/models/financial_account.rbs +7 -49
  198. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  199. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  200. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
  201. data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
  202. data/sig/lithic/models/financial_event.rbs +216 -0
  203. data/sig/lithic/models/financial_transaction.rbs +4 -217
  204. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  205. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  206. data/sig/lithic/models/merchant.rbs +50 -0
  207. data/sig/lithic/models/payment.rbs +17 -15
  208. data/sig/lithic/models/payment_return_params.rbs +46 -0
  209. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  210. data/sig/lithic/models/statement_totals.rbs +76 -0
  211. data/sig/lithic/models/tokenization.rbs +160 -13
  212. data/sig/lithic/models/transaction.rbs +17 -145
  213. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  214. data/sig/lithic/models/transfer.rbs +6 -219
  215. data/sig/lithic/models.rbs +18 -0
  216. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  217. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  218. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  219. data/sig/lithic/resources/payments.rbs +12 -0
  220. metadata +56 -11
  221. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  222. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  223. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  224. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  225. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  226. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  227. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  228. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  229. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -0,0 +1,437 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
11
+ Lithic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The action to take if the conditions are met.
16
+ sig do
17
+ returns(
18
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol
19
+ )
20
+ end
21
+ attr_accessor :action
22
+
23
+ sig do
24
+ returns(
25
+ T::Array[
26
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition
27
+ ]
28
+ )
29
+ end
30
+ attr_accessor :conditions
31
+
32
+ sig do
33
+ params(
34
+ action:
35
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol,
36
+ conditions:
37
+ T::Array[
38
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::OrHash
39
+ ]
40
+ ).returns(T.attached_class)
41
+ end
42
+ def self.new(
43
+ # The action to take if the conditions are met.
44
+ action:,
45
+ conditions:
46
+ )
47
+ end
48
+
49
+ sig do
50
+ override.returns(
51
+ {
52
+ action:
53
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol,
54
+ conditions:
55
+ T::Array[
56
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition
57
+ ]
58
+ }
59
+ )
60
+ end
61
+ def to_hash
62
+ end
63
+
64
+ # The action to take if the conditions are met.
65
+ module Action
66
+ extend Lithic::Internal::Type::Enum
67
+
68
+ TaggedSymbol =
69
+ T.type_alias do
70
+ T.all(
71
+ Symbol,
72
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action
73
+ )
74
+ end
75
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
76
+
77
+ DECLINE =
78
+ T.let(
79
+ :DECLINE,
80
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
81
+ )
82
+ CHALLENGE =
83
+ T.let(
84
+ :CHALLENGE,
85
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
86
+ )
87
+
88
+ sig do
89
+ override.returns(
90
+ T::Array[
91
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
92
+ ]
93
+ )
94
+ end
95
+ def self.values
96
+ end
97
+ end
98
+
99
+ class Condition < Lithic::Internal::Type::BaseModel
100
+ OrHash =
101
+ T.type_alias do
102
+ T.any(
103
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition,
104
+ Lithic::Internal::AnyHash
105
+ )
106
+ end
107
+
108
+ # The attribute to target.
109
+ #
110
+ # The following attributes may be targeted:
111
+ #
112
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
113
+ # business by the types of goods or services it provides.
114
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
115
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
116
+ # Netherlands Antilles.
117
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
118
+ # the transaction.
119
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
120
+ # (merchant).
121
+ # - `DESCRIPTOR`: Short description of card acceptor.
122
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
123
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
124
+ # `TOKEN_AUTHENTICATED`.
125
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
126
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
127
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
128
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
129
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
130
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
131
+ # fee field in the settlement/cardholder billing currency. This is the amount
132
+ # the issuer should authorize against unless the issuer is paying the acquirer
133
+ # fee on behalf of the cardholder.
134
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
135
+ # represents the amount of cash being withdrawn or advanced.
136
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
137
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
138
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
139
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
140
+ # multiplying the raw score by 10x.
141
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
142
+ # trailing 15 minutes before the authorization.
143
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
144
+ # trailing hour up and until the authorization.
145
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
146
+ # trailing 24 hours up and until the authorization.
147
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
148
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
149
+ # `PENDING_FULFILLMENT`.
150
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
151
+ # Valid values are `TRUE`, `FALSE`.
152
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
153
+ # `OK`, `BLOCKED`.
154
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
155
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
156
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
157
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
158
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
159
+ # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
160
+ # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
161
+ # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
162
+ sig do
163
+ returns(
164
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
165
+ )
166
+ end
167
+ attr_accessor :attribute
168
+
169
+ # The operation to apply to the attribute
170
+ sig { returns(Lithic::AuthRules::ConditionalOperation::OrSymbol) }
171
+ attr_accessor :operation
172
+
173
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
174
+ sig { returns(Lithic::AuthRules::ConditionalValue::Variants) }
175
+ attr_accessor :value
176
+
177
+ sig do
178
+ params(
179
+ attribute:
180
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
181
+ operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
182
+ value: Lithic::AuthRules::ConditionalValue::Variants
183
+ ).returns(T.attached_class)
184
+ end
185
+ def self.new(
186
+ # The attribute to target.
187
+ #
188
+ # The following attributes may be targeted:
189
+ #
190
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
191
+ # business by the types of goods or services it provides.
192
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
193
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
194
+ # Netherlands Antilles.
195
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
196
+ # the transaction.
197
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
198
+ # (merchant).
199
+ # - `DESCRIPTOR`: Short description of card acceptor.
200
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
201
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
202
+ # `TOKEN_AUTHENTICATED`.
203
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
204
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
205
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
206
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
207
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
208
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
209
+ # fee field in the settlement/cardholder billing currency. This is the amount
210
+ # the issuer should authorize against unless the issuer is paying the acquirer
211
+ # fee on behalf of the cardholder.
212
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
213
+ # represents the amount of cash being withdrawn or advanced.
214
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
215
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
216
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
217
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
218
+ # multiplying the raw score by 10x.
219
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
220
+ # trailing 15 minutes before the authorization.
221
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
222
+ # trailing hour up and until the authorization.
223
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
224
+ # trailing 24 hours up and until the authorization.
225
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
226
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
227
+ # `PENDING_FULFILLMENT`.
228
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
229
+ # Valid values are `TRUE`, `FALSE`.
230
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
231
+ # `OK`, `BLOCKED`.
232
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
233
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
234
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
235
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
236
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
237
+ # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
238
+ # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
239
+ # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
240
+ attribute:,
241
+ # The operation to apply to the attribute
242
+ operation:,
243
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
244
+ value:
245
+ )
246
+ end
247
+
248
+ sig do
249
+ override.returns(
250
+ {
251
+ attribute:
252
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
253
+ operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
254
+ value: Lithic::AuthRules::ConditionalValue::Variants
255
+ }
256
+ )
257
+ end
258
+ def to_hash
259
+ end
260
+
261
+ # The attribute to target.
262
+ #
263
+ # The following attributes may be targeted:
264
+ #
265
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
266
+ # business by the types of goods or services it provides.
267
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
268
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
269
+ # Netherlands Antilles.
270
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
271
+ # the transaction.
272
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
273
+ # (merchant).
274
+ # - `DESCRIPTOR`: Short description of card acceptor.
275
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
276
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
277
+ # `TOKEN_AUTHENTICATED`.
278
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
279
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
280
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
281
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
282
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
283
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
284
+ # fee field in the settlement/cardholder billing currency. This is the amount
285
+ # the issuer should authorize against unless the issuer is paying the acquirer
286
+ # fee on behalf of the cardholder.
287
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
288
+ # represents the amount of cash being withdrawn or advanced.
289
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
290
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
291
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
292
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
293
+ # multiplying the raw score by 10x.
294
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
295
+ # trailing 15 minutes before the authorization.
296
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
297
+ # trailing hour up and until the authorization.
298
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
299
+ # trailing 24 hours up and until the authorization.
300
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
301
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
302
+ # `PENDING_FULFILLMENT`.
303
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
304
+ # Valid values are `TRUE`, `FALSE`.
305
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
306
+ # `OK`, `BLOCKED`.
307
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
308
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
309
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
310
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
311
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
312
+ # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
313
+ # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
314
+ # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
315
+ module Attribute
316
+ extend Lithic::Internal::Type::Enum
317
+
318
+ TaggedSymbol =
319
+ T.type_alias do
320
+ T.all(
321
+ Symbol,
322
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute
323
+ )
324
+ end
325
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
326
+
327
+ MCC =
328
+ T.let(
329
+ :MCC,
330
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
331
+ )
332
+ COUNTRY =
333
+ T.let(
334
+ :COUNTRY,
335
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
336
+ )
337
+ CURRENCY =
338
+ T.let(
339
+ :CURRENCY,
340
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
341
+ )
342
+ MERCHANT_ID =
343
+ T.let(
344
+ :MERCHANT_ID,
345
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
346
+ )
347
+ DESCRIPTOR =
348
+ T.let(
349
+ :DESCRIPTOR,
350
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
351
+ )
352
+ LIABILITY_SHIFT =
353
+ T.let(
354
+ :LIABILITY_SHIFT,
355
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
356
+ )
357
+ PAN_ENTRY_MODE =
358
+ T.let(
359
+ :PAN_ENTRY_MODE,
360
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
361
+ )
362
+ TRANSACTION_AMOUNT =
363
+ T.let(
364
+ :TRANSACTION_AMOUNT,
365
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
366
+ )
367
+ CASH_AMOUNT =
368
+ T.let(
369
+ :CASH_AMOUNT,
370
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
371
+ )
372
+ RISK_SCORE =
373
+ T.let(
374
+ :RISK_SCORE,
375
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
376
+ )
377
+ CARD_TRANSACTION_COUNT_15_M =
378
+ T.let(
379
+ :CARD_TRANSACTION_COUNT_15M,
380
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
381
+ )
382
+ CARD_TRANSACTION_COUNT_1_H =
383
+ T.let(
384
+ :CARD_TRANSACTION_COUNT_1H,
385
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
386
+ )
387
+ CARD_TRANSACTION_COUNT_24_H =
388
+ T.let(
389
+ :CARD_TRANSACTION_COUNT_24H,
390
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
391
+ )
392
+ CARD_STATE =
393
+ T.let(
394
+ :CARD_STATE,
395
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
396
+ )
397
+ PIN_ENTERED =
398
+ T.let(
399
+ :PIN_ENTERED,
400
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
401
+ )
402
+ PIN_STATUS =
403
+ T.let(
404
+ :PIN_STATUS,
405
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
406
+ )
407
+ WALLET_TYPE =
408
+ T.let(
409
+ :WALLET_TYPE,
410
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
411
+ )
412
+ TRANSACTION_INITIATOR =
413
+ T.let(
414
+ :TRANSACTION_INITIATOR,
415
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
416
+ )
417
+ ADDRESS_MATCH =
418
+ T.let(
419
+ :ADDRESS_MATCH,
420
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
421
+ )
422
+
423
+ sig do
424
+ override.returns(
425
+ T::Array[
426
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
427
+ ]
428
+ )
429
+ end
430
+ def self.values
431
+ end
432
+ end
433
+ end
434
+ end
435
+ end
436
+ end
437
+ end
@@ -0,0 +1,74 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ # The operation to apply to the attribute
7
+ module ConditionalOperation
8
+ extend Lithic::Internal::Type::Enum
9
+
10
+ TaggedSymbol =
11
+ T.type_alias do
12
+ T.all(Symbol, Lithic::AuthRules::ConditionalOperation)
13
+ end
14
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
15
+
16
+ IS_ONE_OF =
17
+ T.let(
18
+ :IS_ONE_OF,
19
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
20
+ )
21
+ IS_NOT_ONE_OF =
22
+ T.let(
23
+ :IS_NOT_ONE_OF,
24
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
25
+ )
26
+ MATCHES =
27
+ T.let(:MATCHES, Lithic::AuthRules::ConditionalOperation::TaggedSymbol)
28
+ DOES_NOT_MATCH =
29
+ T.let(
30
+ :DOES_NOT_MATCH,
31
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
32
+ )
33
+ IS_EQUAL_TO =
34
+ T.let(
35
+ :IS_EQUAL_TO,
36
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
37
+ )
38
+ IS_NOT_EQUAL_TO =
39
+ T.let(
40
+ :IS_NOT_EQUAL_TO,
41
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
42
+ )
43
+ IS_GREATER_THAN =
44
+ T.let(
45
+ :IS_GREATER_THAN,
46
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
47
+ )
48
+ IS_GREATER_THAN_OR_EQUAL_TO =
49
+ T.let(
50
+ :IS_GREATER_THAN_OR_EQUAL_TO,
51
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
52
+ )
53
+ IS_LESS_THAN =
54
+ T.let(
55
+ :IS_LESS_THAN,
56
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
57
+ )
58
+ IS_LESS_THAN_OR_EQUAL_TO =
59
+ T.let(
60
+ :IS_LESS_THAN_OR_EQUAL_TO,
61
+ Lithic::AuthRules::ConditionalOperation::TaggedSymbol
62
+ )
63
+
64
+ sig do
65
+ override.returns(
66
+ T::Array[Lithic::AuthRules::ConditionalOperation::TaggedSymbol]
67
+ )
68
+ end
69
+ def self.values
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end