lithic 0.13.0 → 0.15.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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +2 -0
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
  7. data/lib/lithic/models/account_retrieve_signals_params.rb +20 -0
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  10. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  11. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
  12. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
  13. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +119 -44
  14. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
  15. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
  16. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
  17. data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
  18. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  20. data/lib/lithic/models/balance.rb +8 -6
  21. data/lib/lithic/models/card_authorization.rb +1266 -0
  22. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
  23. data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
  24. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
  25. data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
  26. data/lib/lithic/models/card_program.rb +2 -2
  27. data/lib/lithic/models/card_retrieve_signals_params.rb +20 -0
  28. data/lib/lithic/models/event.rb +13 -4
  29. data/lib/lithic/models/event_list_params.rb +7 -2
  30. data/lib/lithic/models/event_subscription.rb +7 -2
  31. data/lib/lithic/models/events/subscription_create_params.rb +7 -2
  32. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  33. data/lib/lithic/models/events/subscription_update_params.rb +7 -2
  34. data/lib/lithic/models/external_bank_account.rb +1 -1
  35. data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
  36. data/lib/lithic/models/financial_accounts/statement.rb +4 -4
  37. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
  38. data/lib/lithic/models/financial_event.rb +1 -0
  39. data/lib/lithic/models/kyb_business_entity.rb +2 -2
  40. data/lib/lithic/models/parsed_webhook_event.rb +4 -1
  41. data/lib/lithic/models/settlement_detail.rb +14 -14
  42. data/lib/lithic/models/signals_response.rb +306 -0
  43. data/lib/lithic/models/statement_totals.rb +6 -6
  44. data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
  45. data/lib/lithic/models/transaction.rb +2 -2
  46. data/lib/lithic/models/transfer_limits_response.rb +12 -12
  47. data/lib/lithic/models.rb +14 -0
  48. data/lib/lithic/resources/accounts.rb +27 -0
  49. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  50. data/lib/lithic/resources/card_authorizations.rb +45 -0
  51. data/lib/lithic/resources/cards.rb +25 -0
  52. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  53. data/lib/lithic/resources/webhooks.rb +1 -1
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +9 -0
  56. data/rbi/lithic/client.rbi +3 -0
  57. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
  58. data/rbi/lithic/models/account_retrieve_signals_params.rbi +35 -0
  59. data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
  60. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
  61. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
  62. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  63. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +214 -63
  64. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
  65. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
  66. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
  67. data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
  68. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
  69. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  70. data/rbi/lithic/models/balance.rbi +12 -6
  71. data/rbi/lithic/models/card_authorization.rbi +2540 -0
  72. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
  73. data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
  74. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
  75. data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
  76. data/rbi/lithic/models/card_program.rbi +3 -6
  77. data/rbi/lithic/models/card_retrieve_signals_params.rbi +35 -0
  78. data/rbi/lithic/models/event.rbi +23 -6
  79. data/rbi/lithic/models/event_list_params.rbi +11 -2
  80. data/rbi/lithic/models/event_subscription.rbi +11 -2
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
  84. data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
  85. data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
  86. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
  87. data/rbi/lithic/models/financial_event.rbi +2 -0
  88. data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
  89. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  90. data/rbi/lithic/models/settlement_detail.rbi +15 -15
  91. data/rbi/lithic/models/signals_response.rbi +352 -0
  92. data/rbi/lithic/models/statement_totals.rbi +9 -18
  93. data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
  94. data/rbi/lithic/models/transaction.rbi +3 -3
  95. data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
  96. data/rbi/lithic/models.rbi +17 -0
  97. data/rbi/lithic/resources/accounts.rbi +21 -0
  98. data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
  99. data/rbi/lithic/resources/card_authorizations.rbi +35 -0
  100. data/rbi/lithic/resources/cards.rbi +19 -0
  101. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  102. data/rbi/lithic/resources/webhooks.rbi +4 -1
  103. data/sig/lithic/client.rbs +2 -0
  104. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
  105. data/sig/lithic/models/account_retrieve_signals_params.rbs +23 -0
  106. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  107. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +29 -3
  109. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
  110. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  111. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  112. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  113. data/sig/lithic/models/balance.rbs +17 -9
  114. data/sig/lithic/models/card_authorization.rbs +1038 -0
  115. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
  116. data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
  117. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
  118. data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
  119. data/sig/lithic/models/card_program.rbs +4 -6
  120. data/sig/lithic/models/card_retrieve_signals_params.rbs +23 -0
  121. data/sig/lithic/models/event.rbs +2 -0
  122. data/sig/lithic/models/event_list_params.rbs +2 -0
  123. data/sig/lithic/models/event_subscription.rbs +2 -0
  124. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  125. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  126. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  127. data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
  128. data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
  129. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
  130. data/sig/lithic/models/financial_event.rbs +2 -0
  131. data/sig/lithic/models/kyb_business_entity.rbs +4 -6
  132. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  133. data/sig/lithic/models/settlement_detail.rbs +18 -18
  134. data/sig/lithic/models/signals_response.rbs +170 -0
  135. data/sig/lithic/models/statement_totals.rbs +12 -18
  136. data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
  137. data/sig/lithic/models/transaction.rbs +4 -8
  138. data/sig/lithic/models/transfer_limits_response.rbs +24 -36
  139. data/sig/lithic/models.rbs +14 -0
  140. data/sig/lithic/resources/accounts.rbs +5 -0
  141. data/sig/lithic/resources/card_authorizations.rbs +13 -0
  142. data/sig/lithic/resources/cards.rbs +5 -0
  143. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  144. data/sig/lithic/resources/webhooks.rbs +1 -0
  145. metadata +29 -2
@@ -0,0 +1,533 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalAuthorizationAdjustmentParameters < Lithic::Internal::Type::BaseModel
7
+ # @!attribute adjustment
8
+ # The hold adjustment to apply if the conditions are met
9
+ #
10
+ # @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment]
11
+ required :adjustment, -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment }
12
+
13
+ # @!attribute conditions
14
+ #
15
+ # @return [Array<Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition>]
16
+ required :conditions,
17
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] }
18
+
19
+ # @!method initialize(adjustment:, conditions:)
20
+ # @param adjustment [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment] The hold adjustment to apply if the conditions are met
21
+ #
22
+ # @param conditions [Array<Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition>]
23
+
24
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters#adjustment
25
+ class Adjustment < Lithic::Internal::Type::BaseModel
26
+ # @!attribute mode
27
+ # The mode of the hold adjustment, determining how the value is interpreted:
28
+ #
29
+ # - `REPLACE_WITH_AMOUNT`: The value is the approved hold amount in cents.
30
+ # - `ADD_PERCENTAGE`: The value adjusts the hold amount by a percentage. 1000
31
+ # represents a 10% increase, 0 represents no change.
32
+ # - `ADD_AMOUNT`: The value is added to the hold amount in cents.
33
+ #
34
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode]
35
+ required :mode,
36
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode }
37
+
38
+ # @!attribute type
39
+ # The type of adjustment to apply
40
+ #
41
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type]
42
+ required :type,
43
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type }
44
+
45
+ # @!attribute value
46
+ # The value used for the hold adjustment, interpreted based on the mode
47
+ #
48
+ # @return [Integer]
49
+ required :value, Integer
50
+
51
+ # @!method initialize(mode:, type:, value:)
52
+ # Some parameter documentations has been truncated, see
53
+ # {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment}
54
+ # for more details.
55
+ #
56
+ # The hold adjustment to apply if the conditions are met
57
+ #
58
+ # @param mode [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode] The mode of the hold adjustment, determining how the value is interpreted:
59
+ #
60
+ # @param type [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type] The type of adjustment to apply
61
+ #
62
+ # @param value [Integer] The value used for the hold adjustment, interpreted based on the mode
63
+
64
+ # The mode of the hold adjustment, determining how the value is interpreted:
65
+ #
66
+ # - `REPLACE_WITH_AMOUNT`: The value is the approved hold amount in cents.
67
+ # - `ADD_PERCENTAGE`: The value adjusts the hold amount by a percentage. 1000
68
+ # represents a 10% increase, 0 represents no change.
69
+ # - `ADD_AMOUNT`: The value is added to the hold amount in cents.
70
+ #
71
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment#mode
72
+ module Mode
73
+ extend Lithic::Internal::Type::Enum
74
+
75
+ REPLACE_WITH_AMOUNT = :REPLACE_WITH_AMOUNT
76
+ ADD_PERCENTAGE = :ADD_PERCENTAGE
77
+ ADD_AMOUNT = :ADD_AMOUNT
78
+
79
+ # @!method self.values
80
+ # @return [Array<Symbol>]
81
+ end
82
+
83
+ # The type of adjustment to apply
84
+ #
85
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment#type
86
+ module Type
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ HOLD_ADJUSTMENT = :HOLD_ADJUSTMENT
90
+
91
+ # @!method self.values
92
+ # @return [Array<Symbol>]
93
+ end
94
+ end
95
+
96
+ class Condition < Lithic::Internal::Type::BaseModel
97
+ # @!attribute attribute
98
+ # The attribute to target.
99
+ #
100
+ # The following attributes may be targeted:
101
+ #
102
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
103
+ # business by the types of goods or services it provides.
104
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
105
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
106
+ # Netherlands Antilles.
107
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
108
+ # the transaction.
109
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
110
+ # (merchant).
111
+ # - `DESCRIPTOR`: Short description of card acceptor.
112
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
113
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
114
+ # `TOKEN_AUTHENTICATED`.
115
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
116
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
117
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
118
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
119
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
120
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
121
+ # fee field in the settlement/cardholder billing currency. This is the amount
122
+ # the issuer should authorize against unless the issuer is paying the acquirer
123
+ # fee on behalf of the cardholder. Use an integer value.
124
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
125
+ # represents the amount of cash being withdrawn or advanced. Use an integer
126
+ # value.
127
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
128
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
129
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
130
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
131
+ # multiplying the raw score by 10x. Use an integer value.
132
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
133
+ # trailing 15 minutes before the authorization. Use an integer value.
134
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
135
+ # trailing hour up and until the authorization. Use an integer value.
136
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
137
+ # trailing 24 hours up and until the authorization. Use an integer value.
138
+ # - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
139
+ # the trailing 15 minutes before the authorization. Use an integer value.
140
+ # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
141
+ # the trailing hour up and until the authorization. Use an integer value.
142
+ # - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
143
+ # the trailing 24 hours up and until the authorization. Use an integer value.
144
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
145
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
146
+ # `PENDING_FULFILLMENT`.
147
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
148
+ # Valid values are `TRUE`, `FALSE`.
149
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
150
+ # `OK`, `BLOCKED`.
151
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
152
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
153
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
154
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
155
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
156
+ # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
157
+ # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
158
+ # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
159
+ # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
160
+ # cardholder received the service, e.g. "NY". When a service location is present
161
+ # in the network data, the service location state is used. Otherwise, falls back
162
+ # to the card acceptor state.
163
+ # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
164
+ # the service, e.g. "10001". When a service location is present in the network
165
+ # data, the service location postal code is used. Otherwise, falls back to the
166
+ # card acceptor postal code.
167
+ # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
168
+ # Use an integer value.
169
+ # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
170
+ # of the authorization. Use an integer value. For programs where Lithic does not
171
+ # manage or retain account holder data, this attribute does not evaluate.
172
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
173
+ # entity's transaction history. Null if fewer than 30 approved transactions in
174
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
175
+ # Use a decimal value.
176
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
177
+ # entity over the specified window, in cents. Requires `parameters.scope` and
178
+ # `parameters.interval`. Use a decimal value.
179
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
180
+ # amounts for the entity over the specified window, in cents. Null if fewer than
181
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
182
+ # and `parameters.interval`. Use a decimal value.
183
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
184
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
185
+ # Requires `parameters.scope`.
186
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
187
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
188
+ # `parameters.scope`.
189
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
190
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
191
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
192
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
193
+ # supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
194
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
195
+ # transaction for the entity, rounded to the nearest whole day. Requires
196
+ # `parameters.scope`. Use an integer value.
197
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
198
+ # the entity's transaction history. Requires `parameters.scope`. Use an integer
199
+ # value.
200
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
201
+ # card's approved transaction history (capped at the 1000 most recently seen
202
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
203
+ # `parameters` required.
204
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
205
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
206
+ # Use a decimal value.
207
+ # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
208
+ # between the postal code centers of the last card-present transaction and the
209
+ # current transaction, divided by the elapsed time. Null if there is no prior
210
+ # card-present transaction, if either postal code cannot be geocoded, or if
211
+ # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
212
+ # decimal value.
213
+ # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
214
+ # code centers of the last card-present transaction and the current transaction.
215
+ # Null if there is no prior card-present transaction or if either postal code
216
+ # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
217
+ # Use a decimal value.
218
+ #
219
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Attribute]
220
+ required :attribute,
221
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Attribute }
222
+
223
+ # @!attribute operation
224
+ # The operation to apply to the attribute
225
+ #
226
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
227
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
228
+
229
+ # @!attribute value
230
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
231
+ #
232
+ # @return [String, Integer, Float, Array<String>, Time]
233
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
234
+
235
+ # @!attribute parameters
236
+ # Additional parameters for certain attributes. Required when `attribute` is one
237
+ # of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`,
238
+ # `IS_NEW_COUNTRY`, `IS_NEW_MCC`, `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`,
239
+ # `TIME_SINCE_LAST_TRANSACTION`, or `DISTINCT_COUNTRY_COUNT` (require `scope`); or
240
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used
241
+ # for other attributes.
242
+ #
243
+ # @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters, nil]
244
+ optional :parameters,
245
+ -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters }
246
+
247
+ # @!method initialize(attribute:, operation:, value:, parameters: nil)
248
+ # Some parameter documentations has been truncated, see
249
+ # {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition}
250
+ # for more details.
251
+ #
252
+ # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Attribute] The attribute to target.
253
+ #
254
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
255
+ #
256
+ # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
257
+ #
258
+ # @param parameters [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters] Additional parameters for certain attributes. Required when `attribute` is one o
259
+
260
+ # The attribute to target.
261
+ #
262
+ # The following attributes may be targeted:
263
+ #
264
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
265
+ # business by the types of goods or services it provides.
266
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
267
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
268
+ # Netherlands Antilles.
269
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
270
+ # the transaction.
271
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
272
+ # (merchant).
273
+ # - `DESCRIPTOR`: Short description of card acceptor.
274
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
275
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
276
+ # `TOKEN_AUTHENTICATED`.
277
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
278
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
279
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
280
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
281
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
282
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
283
+ # fee field in the settlement/cardholder billing currency. This is the amount
284
+ # the issuer should authorize against unless the issuer is paying the acquirer
285
+ # fee on behalf of the cardholder. Use an integer value.
286
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
287
+ # represents the amount of cash being withdrawn or advanced. Use an integer
288
+ # value.
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. Use an integer value.
294
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
295
+ # trailing 15 minutes before the authorization. Use an integer value.
296
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
297
+ # trailing hour up and until the authorization. Use an integer value.
298
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
299
+ # trailing 24 hours up and until the authorization. Use an integer value.
300
+ # - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
301
+ # the trailing 15 minutes before the authorization. Use an integer value.
302
+ # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
303
+ # the trailing hour up and until the authorization. Use an integer value.
304
+ # - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
305
+ # the trailing 24 hours up and until the authorization. Use an integer value.
306
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
307
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
308
+ # `PENDING_FULFILLMENT`.
309
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
310
+ # Valid values are `TRUE`, `FALSE`.
311
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
312
+ # `OK`, `BLOCKED`.
313
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
314
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
315
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
316
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
317
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
318
+ # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
319
+ # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
320
+ # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
321
+ # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
322
+ # cardholder received the service, e.g. "NY". When a service location is present
323
+ # in the network data, the service location state is used. Otherwise, falls back
324
+ # to the card acceptor state.
325
+ # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
326
+ # the service, e.g. "10001". When a service location is present in the network
327
+ # data, the service location postal code is used. Otherwise, falls back to the
328
+ # card acceptor postal code.
329
+ # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
330
+ # Use an integer value.
331
+ # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
332
+ # of the authorization. Use an integer value. For programs where Lithic does not
333
+ # manage or retain account holder data, this attribute does not evaluate.
334
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
335
+ # entity's transaction history. Null if fewer than 30 approved transactions in
336
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
337
+ # Use a decimal value.
338
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
339
+ # entity over the specified window, in cents. Requires `parameters.scope` and
340
+ # `parameters.interval`. Use a decimal value.
341
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
342
+ # amounts for the entity over the specified window, in cents. Null if fewer than
343
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
344
+ # and `parameters.interval`. Use a decimal value.
345
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
346
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
347
+ # Requires `parameters.scope`.
348
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
349
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
350
+ # `parameters.scope`.
351
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
352
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
353
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
354
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
355
+ # supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
356
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
357
+ # transaction for the entity, rounded to the nearest whole day. Requires
358
+ # `parameters.scope`. Use an integer value.
359
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
360
+ # the entity's transaction history. Requires `parameters.scope`. Use an integer
361
+ # value.
362
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
363
+ # card's approved transaction history (capped at the 1000 most recently seen
364
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
365
+ # `parameters` required.
366
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
367
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
368
+ # Use a decimal value.
369
+ # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
370
+ # between the postal code centers of the last card-present transaction and the
371
+ # current transaction, divided by the elapsed time. Null if there is no prior
372
+ # card-present transaction, if either postal code cannot be geocoded, or if
373
+ # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
374
+ # decimal value.
375
+ # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
376
+ # code centers of the last card-present transaction and the current transaction.
377
+ # Null if there is no prior card-present transaction or if either postal code
378
+ # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
379
+ # Use a decimal value.
380
+ #
381
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition#attribute
382
+ module Attribute
383
+ extend Lithic::Internal::Type::Enum
384
+
385
+ MCC = :MCC
386
+ COUNTRY = :COUNTRY
387
+ CURRENCY = :CURRENCY
388
+ MERCHANT_ID = :MERCHANT_ID
389
+ DESCRIPTOR = :DESCRIPTOR
390
+ LIABILITY_SHIFT = :LIABILITY_SHIFT
391
+ PAN_ENTRY_MODE = :PAN_ENTRY_MODE
392
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
393
+ CASH_AMOUNT = :CASH_AMOUNT
394
+ RISK_SCORE = :RISK_SCORE
395
+ CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
396
+ CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
397
+ CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
398
+ CARD_DECLINE_COUNT_15_M = :CARD_DECLINE_COUNT_15M
399
+ CARD_DECLINE_COUNT_1_H = :CARD_DECLINE_COUNT_1H
400
+ CARD_DECLINE_COUNT_24_H = :CARD_DECLINE_COUNT_24H
401
+ CARD_STATE = :CARD_STATE
402
+ PIN_ENTERED = :PIN_ENTERED
403
+ PIN_STATUS = :PIN_STATUS
404
+ WALLET_TYPE = :WALLET_TYPE
405
+ TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
406
+ ADDRESS_MATCH = :ADDRESS_MATCH
407
+ SERVICE_LOCATION_STATE = :SERVICE_LOCATION_STATE
408
+ SERVICE_LOCATION_POSTAL_CODE = :SERVICE_LOCATION_POSTAL_CODE
409
+ CARD_AGE = :CARD_AGE
410
+ ACCOUNT_AGE = :ACCOUNT_AGE
411
+ AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
412
+ AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
413
+ STDEV_TRANSACTION_AMOUNT = :STDEV_TRANSACTION_AMOUNT
414
+ IS_NEW_COUNTRY = :IS_NEW_COUNTRY
415
+ IS_NEW_MCC = :IS_NEW_MCC
416
+ IS_FIRST_TRANSACTION = :IS_FIRST_TRANSACTION
417
+ CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
418
+ TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
419
+ DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
420
+ IS_NEW_MERCHANT = :IS_NEW_MERCHANT
421
+ THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
422
+ TRAVEL_SPEED = :TRAVEL_SPEED
423
+ DISTANCE_FROM_LAST_TRANSACTION = :DISTANCE_FROM_LAST_TRANSACTION
424
+
425
+ # @!method self.values
426
+ # @return [Array<Symbol>]
427
+ end
428
+
429
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition#parameters
430
+ class Parameters < Lithic::Internal::Type::BaseModel
431
+ # @!attribute interval
432
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
433
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
434
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
435
+ #
436
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Interval, nil]
437
+ optional :interval,
438
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Interval }
439
+
440
+ # @!attribute scope
441
+ # The entity scope to evaluate the attribute against.
442
+ #
443
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Scope, nil]
444
+ optional :scope,
445
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Scope }
446
+
447
+ # @!attribute unit
448
+ # The unit for impossible travel attributes. Required when `attribute` is
449
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
450
+ #
451
+ # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
452
+ #
453
+ # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
454
+ #
455
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Unit, nil]
456
+ optional :unit,
457
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Unit }
458
+
459
+ # @!method initialize(interval: nil, scope: nil, unit: nil)
460
+ # Some parameter documentations has been truncated, see
461
+ # {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters}
462
+ # for more details.
463
+ #
464
+ # Additional parameters for certain attributes. Required when `attribute` is one
465
+ # of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`,
466
+ # `IS_NEW_COUNTRY`, `IS_NEW_MCC`, `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`,
467
+ # `TIME_SINCE_LAST_TRANSACTION`, or `DISTINCT_COUNTRY_COUNT` (require `scope`); or
468
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used
469
+ # for other attributes.
470
+ #
471
+ # @param interval [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Interval] The time window for statistical attributes (`AMOUNT_Z_SCORE`, `AVG_TRANSACTION_A
472
+ #
473
+ # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
474
+ #
475
+ # @param unit [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters::Unit] The unit for impossible travel attributes. Required when `attribute` is
476
+ # `TRAVEL\_
477
+
478
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
479
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
480
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
481
+ #
482
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters#interval
483
+ module Interval
484
+ extend Lithic::Internal::Type::Enum
485
+
486
+ LIFETIME = :LIFETIME
487
+ INTERVAL_7_D = :"7D"
488
+ INTERVAL_30_D = :"30D"
489
+ INTERVAL_90_D = :"90D"
490
+
491
+ # @!method self.values
492
+ # @return [Array<Symbol>]
493
+ end
494
+
495
+ # The entity scope to evaluate the attribute against.
496
+ #
497
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters#scope
498
+ module Scope
499
+ extend Lithic::Internal::Type::Enum
500
+
501
+ CARD = :CARD
502
+ ACCOUNT = :ACCOUNT
503
+ BUSINESS_ACCOUNT = :BUSINESS_ACCOUNT
504
+
505
+ # @!method self.values
506
+ # @return [Array<Symbol>]
507
+ end
508
+
509
+ # The unit for impossible travel attributes. Required when `attribute` is
510
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
511
+ #
512
+ # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
513
+ #
514
+ # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
515
+ #
516
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::Parameters#unit
517
+ module Unit
518
+ extend Lithic::Internal::Type::Enum
519
+
520
+ MPH = :MPH
521
+ KPH = :KPH
522
+ MILES = :MILES
523
+ KILOMETERS = :KILOMETERS
524
+
525
+ # @!method self.values
526
+ # @return [Array<Symbol>]
527
+ end
528
+ end
529
+ end
530
+ end
531
+ end
532
+ end
533
+ end
@@ -40,12 +40,12 @@ module Lithic
40
40
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
41
41
  # fee field in the settlement/cardholder billing currency. This is the amount
42
42
  # the issuer should authorize against unless the issuer is paying the acquirer
43
- # fee on behalf of the cardholder.
43
+ # fee on behalf of the cardholder. Use an integer value.
44
44
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
45
45
  # given authorization. Scores are on a range of 0-999, with 0 representing the
46
46
  # lowest risk and 999 representing the highest risk. For Visa transactions,
47
47
  # where the raw score has a range of 0-99, Lithic will normalize the score by
48
- # multiplying the raw score by 10x.
48
+ # multiplying the raw score by 10x. Use an integer value.
49
49
  # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
50
50
  # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
51
51
  # `EXPIRED`.
@@ -66,15 +66,17 @@ module Lithic
66
66
  # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
67
67
  # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
68
68
  # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
69
- # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
69
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use
70
+ # an integer value.
70
71
  # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
71
- # transaction.
72
+ # transaction. Use an integer value. For programs where Lithic does not manage
73
+ # or retain account holder data, this attribute does not evaluate.
72
74
  # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
73
75
  # filters within the given period. Requires `parameters` with `scope`, `period`,
74
- # and optional `filters`.
76
+ # and optional `filters`. Use an integer value.
75
77
  # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
76
78
  # matching the specified filters within the given period. Requires `parameters`
77
- # with `scope`, `period`, and optional `filters`.
79
+ # with `scope`, `period`, and optional `filters`. Use an integer value.
78
80
  #
79
81
  # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute]
80
82
  required :attribute,
@@ -89,7 +91,7 @@ module Lithic
89
91
  # @!attribute value
90
92
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
91
93
  #
92
- # @return [String, Integer, Array<String>, Time]
94
+ # @return [String, Integer, Float, Array<String>, Time]
93
95
  required :value, union: -> { Lithic::AuthRules::ConditionalValue }
94
96
 
95
97
  # @!attribute parameters
@@ -110,7 +112,7 @@ module Lithic
110
112
  #
111
113
  # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
112
114
  #
113
- # @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
115
+ # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
114
116
  #
115
117
  # @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for spend velocity attributes. Required when `attribute` i
116
118
 
@@ -131,12 +133,12 @@ module Lithic
131
133
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
132
134
  # fee field in the settlement/cardholder billing currency. This is the amount
133
135
  # the issuer should authorize against unless the issuer is paying the acquirer
134
- # fee on behalf of the cardholder.
136
+ # fee on behalf of the cardholder. Use an integer value.
135
137
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
136
138
  # given authorization. Scores are on a range of 0-999, with 0 representing the
137
139
  # lowest risk and 999 representing the highest risk. For Visa transactions,
138
140
  # where the raw score has a range of 0-99, Lithic will normalize the score by
139
- # multiplying the raw score by 10x.
141
+ # multiplying the raw score by 10x. Use an integer value.
140
142
  # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
141
143
  # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
142
144
  # `EXPIRED`.
@@ -157,15 +159,17 @@ module Lithic
157
159
  # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
158
160
  # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
159
161
  # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
160
- # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
162
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use
163
+ # an integer value.
161
164
  # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
162
- # transaction.
165
+ # transaction. Use an integer value. For programs where Lithic does not manage
166
+ # or retain account holder data, this attribute does not evaluate.
163
167
  # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
164
168
  # filters within the given period. Requires `parameters` with `scope`, `period`,
165
- # and optional `filters`.
169
+ # and optional `filters`. Use an integer value.
166
170
  # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
167
171
  # matching the specified filters within the given period. Requires `parameters`
168
- # with `scope`, `period`, and optional `filters`.
172
+ # with `scope`, `period`, and optional `filters`. Use an integer value.
169
173
  #
170
174
  # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition#attribute
171
175
  module Attribute