lithic 0.12.0 → 0.13.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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +15 -1
  5. data/lib/lithic/models/account.rb +2 -2
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +5 -4
  7. data/lib/lithic/models/account_holder_update_response.rb +3 -3
  8. data/lib/lithic/models/account_update_params.rb +2 -2
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +14 -8
  10. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  11. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +109 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +9 -0
  13. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +244 -0
  14. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  15. data/lib/lithic/models/auth_rules/spend_velocity_filters.rb +33 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
  17. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  18. data/lib/lithic/models/card_create_params.rb +4 -2
  19. data/lib/lithic/models/card_renew_params.rb +4 -2
  20. data/lib/lithic/models/non_pci_card.rb +13 -13
  21. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
  22. data/lib/lithic/models/settlement_detail.rb +11 -4
  23. data/lib/lithic/models/settlement_summary_details.rb +1 -0
  24. data/lib/lithic/resources/accounts.rb +1 -1
  25. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  26. data/lib/lithic/version.rb +1 -1
  27. data/lib/lithic.rb +4 -1
  28. data/rbi/lithic/models/account.rbi +3 -6
  29. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -14
  30. data/rbi/lithic/models/account_holder_update_response.rbi +3 -3
  31. data/rbi/lithic/models/account_update_params.rbi +5 -8
  32. data/rbi/lithic/models/auth_rules/auth_rule.rbi +10 -3
  33. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  34. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +242 -0
  35. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +17 -0
  36. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +573 -0
  37. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  38. data/rbi/lithic/models/auth_rules/spend_velocity_filters.rbi +58 -0
  39. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +30 -9
  40. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  41. data/rbi/lithic/models/card_create_params.rbi +8 -4
  42. data/rbi/lithic/models/card_renew_params.rbi +8 -4
  43. data/rbi/lithic/models/non_pci_card.rbi +21 -31
  44. data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +5 -0
  45. data/rbi/lithic/models/settlement_detail.rbi +17 -4
  46. data/rbi/lithic/models/settlement_summary_details.rbi +2 -0
  47. data/rbi/lithic/resources/accounts.rbi +2 -1
  48. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  49. data/rbi/lithic/resources/cards.rbi +8 -4
  50. data/sig/lithic/models/account.rbs +4 -8
  51. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -8
  52. data/sig/lithic/models/account_update_params.rbs +4 -8
  53. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  54. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  55. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +100 -0
  56. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +2 -0
  57. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +155 -0
  58. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  59. data/sig/lithic/models/auth_rules/spend_velocity_filters.rbs +35 -0
  60. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  61. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  62. data/sig/lithic/models/non_pci_card.rbs +20 -30
  63. data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +2 -1
  64. data/sig/lithic/models/settlement_detail.rbs +3 -1
  65. data/sig/lithic/models/settlement_summary_details.rbs +3 -1
  66. data/sig/lithic/resources/accounts.rbs +1 -1
  67. metadata +11 -2
@@ -0,0 +1,244 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalCardTransactionUpdateActionParameters < Lithic::Internal::Type::BaseModel
7
+ # @!attribute action
8
+ # The action to take if the conditions are met.
9
+ #
10
+ # @return [Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction]
11
+ required :action, union: -> { Lithic::AuthRules::CardTransactionUpdateAction }
12
+
13
+ # @!attribute conditions
14
+ #
15
+ # @return [Array<Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition>]
16
+ required :conditions,
17
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition] }
18
+
19
+ # @!method initialize(action:, conditions:)
20
+ # @param action [Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction] The action to take if the conditions are met.
21
+ #
22
+ # @param conditions [Array<Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition>]
23
+
24
+ class Condition < Lithic::Internal::Type::BaseModel
25
+ # @!attribute attribute
26
+ # The attribute to target.
27
+ #
28
+ # The following attributes may be targeted:
29
+ #
30
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
31
+ # business by the types of goods or services it provides.
32
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
33
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
34
+ # Netherlands Antilles.
35
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
36
+ # the transaction.
37
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
38
+ # (merchant).
39
+ # - `DESCRIPTOR`: Short description of card acceptor.
40
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
41
+ # fee field in the settlement/cardholder billing currency. This is the amount
42
+ # the issuer should authorize against unless the issuer is paying the acquirer
43
+ # fee on behalf of the cardholder.
44
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
45
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
46
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
47
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
48
+ # multiplying the raw score by 10x.
49
+ # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
50
+ # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
51
+ # `EXPIRED`.
52
+ # - `LAST_EVENT_TYPE`: The type of the most recent event on the transaction. Valid
53
+ # values are `AUTHORIZATION`, `AUTHORIZATION_ADVICE`, `AUTHORIZATION_EXPIRY`,
54
+ # `AUTHORIZATION_REVERSAL`, `BALANCE_INQUIRY`, `CLEARING`, `CORRECTION_CREDIT`,
55
+ # `CORRECTION_DEBIT`, `CREDIT_AUTHORIZATION`, `CREDIT_AUTHORIZATION_ADVICE`,
56
+ # `FINANCIAL_AUTHORIZATION`, `FINANCIAL_CREDIT_AUTHORIZATION`, `RETURN`,
57
+ # `RETURN_REVERSAL`.
58
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
59
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
60
+ # `TOKEN_AUTHENTICATED`.
61
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
62
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
63
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
64
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
65
+ # `UNKNOWN`, or `CREDENTIAL_ON_FILE`.
66
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
67
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
68
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
69
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
70
+ # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
71
+ # transaction.
72
+ # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
73
+ # filters within the given period. Requires `parameters` with `scope`, `period`,
74
+ # and optional `filters`.
75
+ # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
76
+ # matching the specified filters within the given period. Requires `parameters`
77
+ # with `scope`, `period`, and optional `filters`.
78
+ #
79
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute]
80
+ required :attribute,
81
+ enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute }
82
+
83
+ # @!attribute operation
84
+ # The operation to apply to the attribute
85
+ #
86
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
87
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
88
+
89
+ # @!attribute value
90
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
91
+ #
92
+ # @return [String, Integer, Array<String>, Time]
93
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
94
+
95
+ # @!attribute parameters
96
+ # Additional parameters for spend velocity attributes. Required when `attribute`
97
+ # is `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT`. Not used for other
98
+ # attributes.
99
+ #
100
+ # @return [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters, nil]
101
+ optional :parameters,
102
+ -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters }
103
+
104
+ # @!method initialize(attribute:, operation:, value:, parameters: nil)
105
+ # Some parameter documentations has been truncated, see
106
+ # {Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition}
107
+ # for more details.
108
+ #
109
+ # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute] The attribute to target.
110
+ #
111
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
112
+ #
113
+ # @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
114
+ #
115
+ # @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for spend velocity attributes. Required when `attribute` i
116
+
117
+ # The attribute to target.
118
+ #
119
+ # The following attributes may be targeted:
120
+ #
121
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
122
+ # business by the types of goods or services it provides.
123
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
124
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
125
+ # Netherlands Antilles.
126
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
127
+ # the transaction.
128
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
129
+ # (merchant).
130
+ # - `DESCRIPTOR`: Short description of card acceptor.
131
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
132
+ # fee field in the settlement/cardholder billing currency. This is the amount
133
+ # the issuer should authorize against unless the issuer is paying the acquirer
134
+ # fee on behalf of the cardholder.
135
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
136
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
137
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
138
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
139
+ # multiplying the raw score by 10x.
140
+ # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
141
+ # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
142
+ # `EXPIRED`.
143
+ # - `LAST_EVENT_TYPE`: The type of the most recent event on the transaction. Valid
144
+ # values are `AUTHORIZATION`, `AUTHORIZATION_ADVICE`, `AUTHORIZATION_EXPIRY`,
145
+ # `AUTHORIZATION_REVERSAL`, `BALANCE_INQUIRY`, `CLEARING`, `CORRECTION_CREDIT`,
146
+ # `CORRECTION_DEBIT`, `CREDIT_AUTHORIZATION`, `CREDIT_AUTHORIZATION_ADVICE`,
147
+ # `FINANCIAL_AUTHORIZATION`, `FINANCIAL_CREDIT_AUTHORIZATION`, `RETURN`,
148
+ # `RETURN_REVERSAL`.
149
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
150
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
151
+ # `TOKEN_AUTHENTICATED`.
152
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
153
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
154
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
155
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
156
+ # `UNKNOWN`, or `CREDENTIAL_ON_FILE`.
157
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
158
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
159
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
160
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
161
+ # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
162
+ # transaction.
163
+ # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
164
+ # filters within the given period. Requires `parameters` with `scope`, `period`,
165
+ # and optional `filters`.
166
+ # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
167
+ # matching the specified filters within the given period. Requires `parameters`
168
+ # with `scope`, `period`, and optional `filters`.
169
+ #
170
+ # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition#attribute
171
+ module Attribute
172
+ extend Lithic::Internal::Type::Enum
173
+
174
+ MCC = :MCC
175
+ COUNTRY = :COUNTRY
176
+ CURRENCY = :CURRENCY
177
+ MERCHANT_ID = :MERCHANT_ID
178
+ DESCRIPTOR = :DESCRIPTOR
179
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
180
+ RISK_SCORE = :RISK_SCORE
181
+ TRANSACTION_STATUS = :TRANSACTION_STATUS
182
+ LAST_EVENT_TYPE = :LAST_EVENT_TYPE
183
+ LIABILITY_SHIFT = :LIABILITY_SHIFT
184
+ PAN_ENTRY_MODE = :PAN_ENTRY_MODE
185
+ WALLET_TYPE = :WALLET_TYPE
186
+ CARD_AGE = :CARD_AGE
187
+ ACCOUNT_AGE = :ACCOUNT_AGE
188
+ SPEND_VELOCITY_COUNT = :SPEND_VELOCITY_COUNT
189
+ SPEND_VELOCITY_AMOUNT = :SPEND_VELOCITY_AMOUNT
190
+
191
+ # @!method self.values
192
+ # @return [Array<Symbol>]
193
+ end
194
+
195
+ # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition#parameters
196
+ class Parameters < Lithic::Internal::Type::BaseModel
197
+ # @!attribute filters
198
+ #
199
+ # @return [Lithic::Models::AuthRules::SpendVelocityFilters, nil]
200
+ optional :filters, -> { Lithic::AuthRules::SpendVelocityFilters }
201
+
202
+ # @!attribute period
203
+ # The time period over which to calculate the spend velocity.
204
+ #
205
+ # @return [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear, nil]
206
+ optional :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod }
207
+
208
+ # @!attribute scope
209
+ # The entity scope to evaluate the attribute against.
210
+ #
211
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope, nil]
212
+ optional :scope,
213
+ enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope }
214
+
215
+ # @!method initialize(filters: nil, period: nil, scope: nil)
216
+ # Additional parameters for spend velocity attributes. Required when `attribute`
217
+ # is `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT`. Not used for other
218
+ # attributes.
219
+ #
220
+ # @param filters [Lithic::Models::AuthRules::SpendVelocityFilters]
221
+ #
222
+ # @param period [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] The time period over which to calculate the spend velocity.
223
+ #
224
+ # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
225
+
226
+ # The entity scope to evaluate the attribute against.
227
+ #
228
+ # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#scope
229
+ module Scope
230
+ extend Lithic::Internal::Type::Enum
231
+
232
+ CARD = :CARD
233
+ ACCOUNT = :ACCOUNT
234
+ GLOBAL = :GLOBAL
235
+
236
+ # @!method self.values
237
+ # @return [Array<Symbol>]
238
+ end
239
+ end
240
+ end
241
+ end
242
+ end
243
+ end
244
+ end
@@ -12,6 +12,7 @@ module Lithic
12
12
  TOKENIZATION = :TOKENIZATION
13
13
  ACH_CREDIT_RECEIPT = :ACH_CREDIT_RECEIPT
14
14
  ACH_DEBIT_RECEIPT = :ACH_DEBIT_RECEIPT
15
+ CARD_TRANSACTION_UPDATE = :CARD_TRANSACTION_UPDATE
15
16
 
16
17
  # @!method self.values
17
18
  # @return [Array<Symbol>]
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class SpendVelocityFilters < Lithic::Models::AuthRules::VelocityLimitFilters
7
+ # @!attribute exclude_tags
8
+ # Tag key-value pairs to exclude from the velocity calculation. Transactions
9
+ # matching all specified tag key-value pairs will be excluded from the calculated
10
+ # velocity.
11
+ #
12
+ # @return [Hash{Symbol=>String}, nil]
13
+ optional :exclude_tags, Lithic::Internal::Type::HashOf[String], nil?: true
14
+
15
+ # @!attribute include_tags
16
+ # Tag key-value pairs to include in the velocity calculation. Only transactions
17
+ # matching all specified tag key-value pairs will be included in the calculated
18
+ # velocity.
19
+ #
20
+ # @return [Hash{Symbol=>String}, nil]
21
+ optional :include_tags, Lithic::Internal::Type::HashOf[String], nil?: true
22
+
23
+ # @!method initialize(exclude_tags: nil, include_tags: nil)
24
+ # Some parameter documentations has been truncated, see
25
+ # {Lithic::Models::AuthRules::SpendVelocityFilters} for more details.
26
+ #
27
+ # @param exclude_tags [Hash{Symbol=>String}, nil] Tag key-value pairs to exclude from the velocity calculation. Transactions match
28
+ #
29
+ # @param include_tags [Hash{Symbol=>String}, nil] Tag key-value pairs to include in the velocity calculation. Only transactions ma
30
+ end
31
+ end
32
+ end
33
+ end
@@ -30,7 +30,7 @@ module Lithic
30
30
  # @!attribute parameters
31
31
  # Parameters for the Auth Rule
32
32
  #
33
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
33
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
34
34
  required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters }
35
35
 
36
36
  # @!attribute type
@@ -44,7 +44,8 @@ module Lithic
44
44
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
45
45
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
46
46
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
47
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
47
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
48
+ # stream.
48
49
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
49
50
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
50
51
  #
@@ -80,7 +81,7 @@ module Lithic
80
81
  # {Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule} for more
81
82
  # details.
82
83
  #
83
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
84
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
84
85
  #
85
86
  # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
86
87
  #
@@ -113,11 +114,13 @@ module Lithic
113
114
 
114
115
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
115
116
 
117
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
118
+
116
119
  # Parameters for defining a TypeScript code rule
117
120
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
118
121
 
119
122
  # @!method self.variants
120
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
123
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
121
124
  end
122
125
 
123
126
  # The type of Auth Rule. For certain rule types, this determines the event stream
@@ -130,7 +133,8 @@ module Lithic
130
133
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
131
134
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
132
135
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
133
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
136
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
137
+ # stream.
134
138
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
135
139
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
136
140
  #
@@ -159,7 +163,7 @@ module Lithic
159
163
  # @!attribute parameters
160
164
  # Parameters for the Auth Rule
161
165
  #
162
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
166
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
163
167
  required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters }
164
168
 
165
169
  # @!attribute type
@@ -173,7 +177,8 @@ module Lithic
173
177
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
174
178
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
175
179
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
176
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
180
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
181
+ # stream.
177
182
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
178
183
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
179
184
  #
@@ -199,7 +204,7 @@ module Lithic
199
204
  #
200
205
  # @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
201
206
  #
202
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
207
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
203
208
  #
204
209
  # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
205
210
  #
@@ -228,11 +233,13 @@ module Lithic
228
233
 
229
234
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
230
235
 
236
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
237
+
231
238
  # Parameters for defining a TypeScript code rule
232
239
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
233
240
 
234
241
  # @!method self.variants
235
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
242
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
236
243
  end
237
244
 
238
245
  # The type of Auth Rule. For certain rule types, this determines the event stream
@@ -245,7 +252,8 @@ module Lithic
245
252
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
246
253
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
247
254
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
248
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
255
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
256
+ # stream.
249
257
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
250
258
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
251
259
  #
@@ -268,7 +276,7 @@ module Lithic
268
276
  # @!attribute parameters
269
277
  # Parameters for the Auth Rule
270
278
  #
271
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
279
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
272
280
  required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters }
273
281
 
274
282
  # @!attribute program_level
@@ -288,7 +296,8 @@ module Lithic
288
296
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
289
297
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
290
298
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
291
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
299
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
300
+ # stream.
292
301
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
293
302
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
294
303
  #
@@ -330,7 +339,7 @@ module Lithic
330
339
  # {Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule} for more
331
340
  # details.
332
341
  #
333
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
342
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
334
343
  #
335
344
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
336
345
  #
@@ -367,11 +376,13 @@ module Lithic
367
376
 
368
377
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
369
378
 
379
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
380
+
370
381
  # Parameters for defining a TypeScript code rule
371
382
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
372
383
 
373
384
  # @!method self.variants
374
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
385
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
375
386
  end
376
387
 
377
388
  # The type of Auth Rule. For certain rule types, this determines the event stream
@@ -384,7 +395,8 @@ module Lithic
384
395
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
385
396
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
386
397
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
387
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
398
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
399
+ # stream.
388
400
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
389
401
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
390
402
  #
@@ -16,13 +16,13 @@ module Lithic
16
16
  # @!attribute parameters
17
17
  # Parameters for the Auth Rule
18
18
  #
19
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil]
19
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil]
20
20
  optional :parameters, union: -> { Lithic::AuthRules::V2DraftParams::Parameters }, nil?: true
21
21
 
22
22
  # @!method initialize(auth_rule_token:, parameters: nil, request_options: {})
23
23
  # @param auth_rule_token [String]
24
24
  #
25
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil] Parameters for the Auth Rule
25
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil] Parameters for the Auth Rule
26
26
  #
27
27
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
28
28
 
@@ -45,11 +45,13 @@ module Lithic
45
45
 
46
46
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
47
47
 
48
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
49
+
48
50
  # Parameters for defining a TypeScript code rule
49
51
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
50
52
 
51
53
  # @!method self.variants
52
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
54
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
53
55
  end
54
56
  end
55
57
  end
@@ -72,14 +72,16 @@ module Lithic
72
72
 
73
73
  # @!attribute exp_month
74
74
  # Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
75
- # an expiration date will be generated.
75
+ # an expiration date five years in the future will be generated. Five years is the
76
+ # maximum expiration date.
76
77
  #
77
78
  # @return [String, nil]
78
79
  optional :exp_month, String
79
80
 
80
81
  # @!attribute exp_year
81
82
  # Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
82
- # provided, an expiration date will be generated.
83
+ # provided, an expiration date five years in the future will be generated. Five
84
+ # years is the maximum expiration date.
83
85
  #
84
86
  # @return [String, nil]
85
87
  optional :exp_year, String
@@ -26,14 +26,16 @@ module Lithic
26
26
 
27
27
  # @!attribute exp_month
28
28
  # Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
29
- # an expiration date six years in the future will be generated.
29
+ # an expiration date five years in the future will be generated. Five years is the
30
+ # maximum expiration date.
30
31
  #
31
32
  # @return [String, nil]
32
33
  optional :exp_month, String
33
34
 
34
35
  # @!attribute exp_year
35
36
  # Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
36
- # provided, an expiration date six years in the future will be generated.
37
+ # provided, an expiration date five years in the future will be generated. Five
38
+ # years is the maximum expiration date.
37
39
  #
38
40
  # @return [String, nil]
39
41
  optional :exp_year, String
@@ -29,10 +29,10 @@ module Lithic
29
29
  required :created, Time
30
30
 
31
31
  # @!attribute funding
32
- # Deprecated: Funding account for the card.
32
+ # Funding account for a card
33
33
  #
34
- # @return [Lithic::Models::NonPCICard::Funding]
35
- required :funding, -> { Lithic::NonPCICard::Funding }
34
+ # @return [Lithic::Models::NonPCICard::Funding, nil]
35
+ required :funding, -> { Lithic::NonPCICard::Funding }, nil?: true
36
36
 
37
37
  # @!attribute last_four
38
38
  # Last four digits of the card number.
@@ -141,7 +141,7 @@ module Lithic
141
141
  # by Lithic to use.
142
142
  #
143
143
  # @return [String, nil]
144
- optional :digital_card_art_token, String
144
+ optional :digital_card_art_token, String, nil?: true
145
145
 
146
146
  # @!attribute exp_month
147
147
  # Two digit (MM) expiry month.
@@ -189,7 +189,7 @@ module Lithic
189
189
  # should be manufactured with.
190
190
  #
191
191
  # @return [String, nil]
192
- optional :product_id, String
192
+ optional :product_id, String, nil?: true
193
193
 
194
194
  # @!attribute replacement_for
195
195
  # If the card is a replacement for another card, the globally unique identifier
@@ -221,7 +221,7 @@ module Lithic
221
221
  # of the above categories. A comment can be provided to specify the reason.
222
222
  #
223
223
  # @return [Symbol, Lithic::Models::NonPCICard::Substatus, nil]
224
- optional :substatus, enum: -> { Lithic::NonPCICard::Substatus }
224
+ optional :substatus, enum: -> { Lithic::NonPCICard::Substatus }, nil?: true
225
225
 
226
226
  # @!method initialize(token:, account_token:, card_program_token:, created:, funding:, last_four:, pin_status:, spend_limit:, spend_limit_duration:, state:, type:, auth_rule_tokens: nil, bulk_order_token: nil, cardholder_currency: nil, comment: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, hostname: nil, memo: nil, network_program_token: nil, pending_commands: nil, product_id: nil, replacement_for: nil, substatus: nil)
227
227
  # Some parameter documentations has been truncated, see
@@ -237,7 +237,7 @@ module Lithic
237
237
  #
238
238
  # @param created [Time] An RFC 3339 timestamp for when the card was created. UTC time zone.
239
239
  #
240
- # @param funding [Lithic::Models::NonPCICard::Funding] Deprecated: Funding account for the card.
240
+ # @param funding [Lithic::Models::NonPCICard::Funding, nil] Funding account for a card
241
241
  #
242
242
  # @param last_four [String] Last four digits of the card number.
243
243
  #
@@ -261,7 +261,7 @@ module Lithic
261
261
  #
262
262
  # @param comment [String] Additional context or information related to the card.
263
263
  #
264
- # @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user's digital wallet afte
264
+ # @param digital_card_art_token [String, nil] Specifies the digital card art to be displayed in the user's digital wallet afte
265
265
  #
266
266
  # @param exp_month [String] Two digit (MM) expiry month.
267
267
  #
@@ -275,11 +275,11 @@ module Lithic
275
275
  #
276
276
  # @param pending_commands [Array<String>] Indicates if there are offline PIN changes pending card interaction with an offl
277
277
  #
278
- # @param product_id [String] Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
278
+ # @param product_id [String, nil] Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
279
279
  #
280
280
  # @param replacement_for [String, nil] If the card is a replacement for another card, the globally unique identifier fo
281
281
  #
282
- # @param substatus [Symbol, Lithic::Models::NonPCICard::Substatus] Card state substatus values: \* `LOST` - The physical card is no longer in the
282
+ # @param substatus [Symbol, Lithic::Models::NonPCICard::Substatus, nil] Card state substatus values: \* `LOST` - The physical card is no longer in the
283
283
  # ca
284
284
 
285
285
  # @see Lithic::Models::NonPCICard#funding
@@ -330,13 +330,13 @@ module Lithic
330
330
  # The nickname given to the `FundingAccount` or `null` if it has no nickname.
331
331
  #
332
332
  # @return [String, nil]
333
- optional :nickname, String
333
+ optional :nickname, String, nil?: true
334
334
 
335
335
  # @!method initialize(token:, created:, last_four:, state:, type:, account_name: nil, nickname: nil)
336
336
  # Some parameter documentations has been truncated, see
337
337
  # {Lithic::Models::NonPCICard::Funding} for more details.
338
338
  #
339
- # Deprecated: Funding account for the card.
339
+ # Funding account for a card
340
340
  #
341
341
  # @param token [String] A globally unique identifier for this FundingAccount.
342
342
  #
@@ -351,7 +351,7 @@ module Lithic
351
351
  #
352
352
  # @param account_name [String] Account name identifying the funding source. This may be `null`.
353
353
  #
354
- # @param nickname [String] The nickname given to the `FundingAccount` or `null` if it has no nickname.
354
+ # @param nickname [String, nil] The nickname given to the `FundingAccount` or `null` if it has no nickname.
355
355
 
356
356
  # State of funding source. Funding source states: _ `ENABLED` - The funding
357
357
  # account is available to use for card creation and transactions. _ `PENDING` -
@@ -112,6 +112,7 @@ module Lithic
112
112
  module Network
113
113
  extend Lithic::Internal::Type::Enum
114
114
 
115
+ AMEX = :AMEX
115
116
  VISA = :VISA
116
117
  MASTERCARD = :MASTERCARD
117
118
  MAESTRO = :MAESTRO