lithic 0.2.0 → 0.3.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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +5 -10
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/lithic/internal/util.rb +7 -2
  7. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  8. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  9. data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
  10. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  11. data/lib/lithic/models/financial_account.rb +33 -25
  12. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  13. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  14. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  15. data/lib/lithic/models/parsed_webhook_event.rb +3 -4
  16. data/lib/lithic/models/payment.rb +10 -1
  17. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  18. data/lib/lithic/models/transaction.rb +2 -0
  19. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  20. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  21. data/lib/lithic/models.rb +12 -6
  22. data/lib/lithic/resources/book_transfers.rb +27 -0
  23. data/lib/lithic/resources/cards.rb +1 -5
  24. data/lib/lithic/resources/external_payments.rb +13 -1
  25. data/lib/lithic/resources/financial_accounts.rb +3 -1
  26. data/lib/lithic/resources/management_operations.rb +4 -1
  27. data/lib/lithic/resources/transfer_limits.rb +37 -0
  28. data/lib/lithic/resources/webhooks.rb +3 -2
  29. data/lib/lithic/version.rb +1 -1
  30. data/lib/lithic.rb +6 -7
  31. data/rbi/lithic/client.rbi +3 -3
  32. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  33. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  34. data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
  35. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  36. data/rbi/lithic/models/financial_account.rbi +62 -54
  37. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  38. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  39. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  40. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -2
  41. data/rbi/lithic/models/payment.rbi +13 -3
  42. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  43. data/rbi/lithic/models/transaction.rbi +10 -0
  44. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  45. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  46. data/rbi/lithic/models.rbi +12 -6
  47. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  48. data/rbi/lithic/resources/cards.rbi +1 -4
  49. data/rbi/lithic/resources/external_payments.rbi +2 -0
  50. data/rbi/lithic/resources/financial_accounts.rbi +3 -0
  51. data/rbi/lithic/resources/management_operations.rbi +2 -0
  52. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  53. data/rbi/lithic/resources/webhooks.rbi +2 -124
  54. data/sig/lithic/client.rbs +2 -2
  55. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  56. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  57. data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
  58. data/sig/lithic/models/financial_account.rbs +32 -27
  59. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  60. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  61. data/sig/lithic/models/parsed_webhook_event.rbs +2 -2
  62. data/sig/lithic/models/payment.rbs +10 -3
  63. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  64. data/sig/lithic/models/transaction.rbs +4 -0
  65. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  66. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  67. data/sig/lithic/models.rbs +10 -6
  68. data/sig/lithic/resources/book_transfers.rbs +6 -0
  69. data/sig/lithic/resources/cards.rbs +0 -2
  70. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  71. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  72. data/sig/lithic/resources/webhooks.rbs +2 -116
  73. metadata +20 -23
  74. data/lib/lithic/models/aggregate_balance.rb +0 -113
  75. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  76. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  77. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  78. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  79. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  80. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  81. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  82. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  83. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  84. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  85. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  86. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  87. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  88. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  89. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  90. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  91. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Lithic
4
4
  module Models
5
- class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel
5
+ class CardAuthorizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel
6
6
  # @!attribute token
7
7
  # The provisional transaction group uuid associated with the authorization
8
8
  #
@@ -34,14 +34,14 @@ module Lithic
34
34
 
35
35
  # @!attribute avs
36
36
  #
37
- # @return [Lithic::Models::AsaRequestWebhookEvent::Avs]
38
- required :avs, -> { Lithic::AsaRequestWebhookEvent::Avs }
37
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs]
38
+ required :avs, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs }
39
39
 
40
40
  # @!attribute card
41
41
  # Card object in ASA
42
42
  #
43
- # @return [Lithic::Models::AsaRequestWebhookEvent::Card]
44
- required :card, -> { Lithic::AsaRequestWebhookEvent::Card }
43
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card]
44
+ required :card, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card }
45
45
 
46
46
  # @!attribute cardholder_currency
47
47
  # 3-character alphabetic ISO 4217 code for cardholder's billing currency.
@@ -66,6 +66,11 @@ module Lithic
66
66
  # @return [Time]
67
67
  required :created, Time
68
68
 
69
+ # @!attribute event_type
70
+ #
71
+ # @return [Symbol, :"card_authorization.approval_request"]
72
+ required :event_type, const: :"card_authorization.approval_request"
73
+
69
74
  # @!attribute merchant
70
75
  #
71
76
  # @return [Lithic::Models::Merchant]
@@ -99,19 +104,20 @@ module Lithic
99
104
  # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to
100
105
  # users with credit decisioning via ASA enabled.
101
106
  #
102
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Status]
103
- required :status, enum: -> { Lithic::AsaRequestWebhookEvent::Status }
107
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Status]
108
+ required :status, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status }
104
109
 
105
110
  # @!attribute transaction_initiator
106
111
  # The entity that initiated the transaction.
107
112
  #
108
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::TransactionInitiator]
109
- required :transaction_initiator, enum: -> { Lithic::AsaRequestWebhookEvent::TransactionInitiator }
113
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator]
114
+ required :transaction_initiator,
115
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator }
110
116
 
111
117
  # @!attribute account_type
112
118
  #
113
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::AccountType, nil]
114
- optional :account_type, enum: -> { Lithic::AsaRequestWebhookEvent::AccountType }
119
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::AccountType, nil]
120
+ optional :account_type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType }
115
121
 
116
122
  # @!attribute cardholder_authentication
117
123
  #
@@ -145,21 +151,21 @@ module Lithic
145
151
  # Optional Object containing information if the Card is a part of a Fleet managed
146
152
  # program
147
153
  #
148
- # @return [Lithic::Models::AsaRequestWebhookEvent::FleetInfo, nil]
149
- optional :fleet_info, -> { Lithic::AsaRequestWebhookEvent::FleetInfo }, nil?: true
154
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo, nil]
155
+ optional :fleet_info, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo }, nil?: true
150
156
 
151
157
  # @!attribute latest_challenge
152
158
  # The latest Authorization Challenge that was issued to the cardholder for this
153
159
  # merchant.
154
160
  #
155
- # @return [Lithic::Models::AsaRequestWebhookEvent::LatestChallenge, nil]
156
- optional :latest_challenge, -> { Lithic::AsaRequestWebhookEvent::LatestChallenge }
161
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, nil]
162
+ optional :latest_challenge, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge }
157
163
 
158
164
  # @!attribute network
159
165
  # Card network of the authorization.
160
166
  #
161
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Network, nil]
162
- optional :network, enum: -> { Lithic::AsaRequestWebhookEvent::Network }
167
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Network, nil]
168
+ optional :network, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network }
163
169
 
164
170
  # @!attribute network_risk_score
165
171
  # Network-provided score assessing risk level associated with a given
@@ -179,13 +185,15 @@ module Lithic
179
185
  # values and how to use them. This object is only available to certain programs-
180
186
  # contact your Customer Success Manager to discuss enabling access.
181
187
  #
182
- # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData, nil]
183
- optional :network_specific_data, -> { Lithic::AsaRequestWebhookEvent::NetworkSpecificData }, nil?: true
188
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData, nil]
189
+ optional :network_specific_data,
190
+ -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData },
191
+ nil?: true
184
192
 
185
193
  # @!attribute pos
186
194
  #
187
- # @return [Lithic::Models::AsaRequestWebhookEvent::Pos, nil]
188
- optional :pos, -> { Lithic::AsaRequestWebhookEvent::Pos }
195
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos, nil]
196
+ optional :pos, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos }
189
197
 
190
198
  # @!attribute token_info
191
199
  #
@@ -198,11 +206,9 @@ module Lithic
198
206
  # @return [Time, nil]
199
207
  optional :ttl, Time
200
208
 
201
- # @!method initialize(token:, acquirer_fee:, amount:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil)
209
+ # @!method initialize(token:, acquirer_fee:, amount:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil, event_type: :"card_authorization.approval_request")
202
210
  # Some parameter documentations has been truncated, see
203
- # {Lithic::Models::AsaRequestWebhookEvent} for more details.
204
- #
205
- # The Auth Stream Access request payload that was sent to the ASA responder.
211
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent} for more details.
206
212
  #
207
213
  # @param token [String] The provisional transaction group uuid associated with the authorization
208
214
  #
@@ -212,9 +218,9 @@ module Lithic
212
218
  #
213
219
  # @param authorization_amount [Integer] The base transaction amount (in cents) plus the acquirer fee field. This is the
214
220
  #
215
- # @param avs [Lithic::Models::AsaRequestWebhookEvent::Avs]
221
+ # @param avs [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs]
216
222
  #
217
- # @param card [Lithic::Models::AsaRequestWebhookEvent::Card] Card object in ASA
223
+ # @param card [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card] Card object in ASA
218
224
  #
219
225
  # @param cardholder_currency [String] 3-character alphabetic ISO 4217 code for cardholder's billing currency.
220
226
  #
@@ -230,11 +236,11 @@ module Lithic
230
236
  #
231
237
  # @param settled_amount [Integer] Amount (in cents) of the transaction that has been settled, including any acquir
232
238
  #
233
- # @param status [Symbol, Lithic::Models::AsaRequestWebhookEvent::Status] The type of authorization request that this request is for. Note that `CREDIT_AU
239
+ # @param status [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Status] The type of authorization request that this request is for. Note that `CREDIT_AU
234
240
  #
235
- # @param transaction_initiator [Symbol, Lithic::Models::AsaRequestWebhookEvent::TransactionInitiator] The entity that initiated the transaction.
241
+ # @param transaction_initiator [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator] The entity that initiated the transaction.
236
242
  #
237
- # @param account_type [Symbol, Lithic::Models::AsaRequestWebhookEvent::AccountType]
243
+ # @param account_type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::AccountType]
238
244
  #
239
245
  # @param cardholder_authentication [Lithic::Models::CardholderAuthentication]
240
246
  #
@@ -244,23 +250,25 @@ module Lithic
244
250
  #
245
251
  # @param event_token [String] The event token associated with the authorization. This field is only set for pr
246
252
  #
247
- # @param fleet_info [Lithic::Models::AsaRequestWebhookEvent::FleetInfo, nil] Optional Object containing information if the Card is a part of a Fleet managed
253
+ # @param fleet_info [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo, nil] Optional Object containing information if the Card is a part of a Fleet managed
248
254
  #
249
- # @param latest_challenge [Lithic::Models::AsaRequestWebhookEvent::LatestChallenge] The latest Authorization Challenge that was issued to the cardholder for this me
255
+ # @param latest_challenge [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge] The latest Authorization Challenge that was issued to the cardholder for this me
250
256
  #
251
- # @param network [Symbol, Lithic::Models::AsaRequestWebhookEvent::Network] Card network of the authorization.
257
+ # @param network [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Network] Card network of the authorization.
252
258
  #
253
259
  # @param network_risk_score [Integer, nil] Network-provided score assessing risk level associated with a given authorizatio
254
260
  #
255
- # @param network_specific_data [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData, nil] Contains raw data provided by the card network, including attributes that provid
261
+ # @param network_specific_data [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData, nil] Contains raw data provided by the card network, including attributes that provid
256
262
  #
257
- # @param pos [Lithic::Models::AsaRequestWebhookEvent::Pos]
263
+ # @param pos [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos]
258
264
  #
259
265
  # @param token_info [Lithic::Models::TokenInfo, nil]
260
266
  #
261
267
  # @param ttl [Time] Deprecated: approximate time-to-live for the authorization.
268
+ #
269
+ # @param event_type [Symbol, :"card_authorization.approval_request"]
262
270
 
263
- # @see Lithic::Models::AsaRequestWebhookEvent#avs
271
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#avs
264
272
  class Avs < Lithic::Internal::Type::BaseModel
265
273
  # @!attribute address
266
274
  # Cardholder address
@@ -274,8 +282,9 @@ module Lithic
274
282
  # Cardholder KYC data, or the transaction does not contain any address data,
275
283
  # NOT_PRESENT will be returned
276
284
  #
277
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Avs::AddressOnFileMatch]
278
- required :address_on_file_match, enum: -> { Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch }
285
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch]
286
+ required :address_on_file_match,
287
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch }
279
288
 
280
289
  # @!attribute zipcode
281
290
  # Cardholder ZIP code
@@ -285,11 +294,12 @@ module Lithic
285
294
 
286
295
  # @!method initialize(address:, address_on_file_match:, zipcode:)
287
296
  # Some parameter documentations has been truncated, see
288
- # {Lithic::Models::AsaRequestWebhookEvent::Avs} for more details.
297
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs} for more
298
+ # details.
289
299
  #
290
300
  # @param address [String] Cardholder address
291
301
  #
292
- # @param address_on_file_match [Symbol, Lithic::Models::AsaRequestWebhookEvent::Avs::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car
302
+ # @param address_on_file_match [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car
293
303
  #
294
304
  # @param zipcode [String] Cardholder ZIP code
295
305
 
@@ -298,7 +308,7 @@ module Lithic
298
308
  # Cardholder KYC data, or the transaction does not contain any address data,
299
309
  # NOT_PRESENT will be returned
300
310
  #
301
- # @see Lithic::Models::AsaRequestWebhookEvent::Avs#address_on_file_match
311
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs#address_on_file_match
302
312
  module AddressOnFileMatch
303
313
  extend Lithic::Internal::Type::Enum
304
314
 
@@ -313,7 +323,7 @@ module Lithic
313
323
  end
314
324
  end
315
325
 
316
- # @see Lithic::Models::AsaRequestWebhookEvent#card
326
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#card
317
327
  class Card < Lithic::Internal::Type::BaseModel
318
328
  # @!attribute token
319
329
  # Globally unique identifier for the card.
@@ -358,22 +368,24 @@ module Lithic
358
368
  # day every month, the time window we consider for MONTHLY velocity starts 6 days
359
369
  # after the current calendar date one month prior.
360
370
  #
361
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::SpendLimitDuration, nil]
362
- optional :spend_limit_duration, enum: -> { Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration }
371
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration, nil]
372
+ optional :spend_limit_duration,
373
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration }
363
374
 
364
375
  # @!attribute state
365
376
  #
366
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::State, nil]
367
- optional :state, enum: -> { Lithic::AsaRequestWebhookEvent::Card::State }
377
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State, nil]
378
+ optional :state, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State }
368
379
 
369
380
  # @!attribute type
370
381
  #
371
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::Type, nil]
372
- optional :type, enum: -> { Lithic::AsaRequestWebhookEvent::Card::Type }
382
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type, nil]
383
+ optional :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type }
373
384
 
374
385
  # @!method initialize(token: nil, hostname: nil, last_four: nil, memo: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, type: nil)
375
386
  # Some parameter documentations has been truncated, see
376
- # {Lithic::Models::AsaRequestWebhookEvent::Card} for more details.
387
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card} for more
388
+ # details.
377
389
  #
378
390
  # Card object in ASA
379
391
  #
@@ -387,17 +399,17 @@ module Lithic
387
399
  #
388
400
  # @param spend_limit [Integer] Amount (in cents) to limit approved authorizations. Purchase requests above the
389
401
  #
390
- # @param spend_limit_duration [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::SpendLimitDuration] Note that to support recurring monthly payments, which can occur on different da
402
+ # @param spend_limit_duration [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration] Note that to support recurring monthly payments, which can occur on different da
391
403
  #
392
- # @param state [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::State]
404
+ # @param state [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State]
393
405
  #
394
- # @param type [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::Type]
406
+ # @param type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type]
395
407
 
396
408
  # Note that to support recurring monthly payments, which can occur on different
397
409
  # day every month, the time window we consider for MONTHLY velocity starts 6 days
398
410
  # after the current calendar date one month prior.
399
411
  #
400
- # @see Lithic::Models::AsaRequestWebhookEvent::Card#spend_limit_duration
412
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#spend_limit_duration
401
413
  module SpendLimitDuration
402
414
  extend Lithic::Internal::Type::Enum
403
415
 
@@ -410,7 +422,7 @@ module Lithic
410
422
  # @return [Array<Symbol>]
411
423
  end
412
424
 
413
- # @see Lithic::Models::AsaRequestWebhookEvent::Card#state
425
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#state
414
426
  module State
415
427
  extend Lithic::Internal::Type::Enum
416
428
 
@@ -424,7 +436,7 @@ module Lithic
424
436
  # @return [Array<Symbol>]
425
437
  end
426
438
 
427
- # @see Lithic::Models::AsaRequestWebhookEvent::Card#type
439
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#type
428
440
  module Type
429
441
  extend Lithic::Internal::Type::Enum
430
442
 
@@ -444,7 +456,7 @@ module Lithic
444
456
  # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to
445
457
  # users with credit decisioning via ASA enabled.
446
458
  #
447
- # @see Lithic::Models::AsaRequestWebhookEvent#status
459
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#status
448
460
  module Status
449
461
  extend Lithic::Internal::Type::Enum
450
462
 
@@ -460,7 +472,7 @@ module Lithic
460
472
 
461
473
  # The entity that initiated the transaction.
462
474
  #
463
- # @see Lithic::Models::AsaRequestWebhookEvent#transaction_initiator
475
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#transaction_initiator
464
476
  module TransactionInitiator
465
477
  extend Lithic::Internal::Type::Enum
466
478
 
@@ -472,7 +484,7 @@ module Lithic
472
484
  # @return [Array<Symbol>]
473
485
  end
474
486
 
475
- # @see Lithic::Models::AsaRequestWebhookEvent#account_type
487
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#account_type
476
488
  module AccountType
477
489
  extend Lithic::Internal::Type::Enum
478
490
 
@@ -483,24 +495,25 @@ module Lithic
483
495
  # @return [Array<Symbol>]
484
496
  end
485
497
 
486
- # @see Lithic::Models::AsaRequestWebhookEvent#fleet_info
498
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#fleet_info
487
499
  class FleetInfo < Lithic::Internal::Type::BaseModel
488
500
  # @!attribute fleet_prompt_code
489
501
  # Code indicating what the driver was prompted to enter at time of purchase. This
490
502
  # is configured at a program level and is a static configuration, and does not
491
503
  # change on a request to request basis
492
504
  #
493
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode]
494
- required :fleet_prompt_code, enum: -> { Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode }
505
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode]
506
+ required :fleet_prompt_code,
507
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode }
495
508
 
496
509
  # @!attribute fleet_restriction_code
497
510
  # Code indicating which restrictions, if any, there are on purchase. This is
498
511
  # configured at a program level and is a static configuration, and does not change
499
512
  # on a request to request basis
500
513
  #
501
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode]
514
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode]
502
515
  required :fleet_restriction_code,
503
- enum: -> { Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode }
516
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode }
504
517
 
505
518
  # @!attribute driver_number
506
519
  # Number representing the driver
@@ -516,14 +529,15 @@ module Lithic
516
529
 
517
530
  # @!method initialize(fleet_prompt_code:, fleet_restriction_code:, driver_number: nil, vehicle_number: nil)
518
531
  # Some parameter documentations has been truncated, see
519
- # {Lithic::Models::AsaRequestWebhookEvent::FleetInfo} for more details.
532
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo} for
533
+ # more details.
520
534
  #
521
535
  # Optional Object containing information if the Card is a part of a Fleet managed
522
536
  # program
523
537
  #
524
- # @param fleet_prompt_code [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode] Code indicating what the driver was prompted to enter at time of purchase. This
538
+ # @param fleet_prompt_code [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode] Code indicating what the driver was prompted to enter at time of purchase. This
525
539
  #
526
- # @param fleet_restriction_code [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode] Code indicating which restrictions, if any, there are on purchase. This is confi
540
+ # @param fleet_restriction_code [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode] Code indicating which restrictions, if any, there are on purchase. This is confi
527
541
  #
528
542
  # @param driver_number [String, nil] Number representing the driver
529
543
  #
@@ -533,7 +547,7 @@ module Lithic
533
547
  # is configured at a program level and is a static configuration, and does not
534
548
  # change on a request to request basis
535
549
  #
536
- # @see Lithic::Models::AsaRequestWebhookEvent::FleetInfo#fleet_prompt_code
550
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo#fleet_prompt_code
537
551
  module FleetPromptCode
538
552
  extend Lithic::Internal::Type::Enum
539
553
 
@@ -549,7 +563,7 @@ module Lithic
549
563
  # configured at a program level and is a static configuration, and does not change
550
564
  # on a request to request basis
551
565
  #
552
- # @see Lithic::Models::AsaRequestWebhookEvent::FleetInfo#fleet_restriction_code
566
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo#fleet_restriction_code
553
567
  module FleetRestrictionCode
554
568
  extend Lithic::Internal::Type::Enum
555
569
 
@@ -561,7 +575,7 @@ module Lithic
561
575
  end
562
576
  end
563
577
 
564
- # @see Lithic::Models::AsaRequestWebhookEvent#latest_challenge
578
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#latest_challenge
565
579
  class LatestChallenge < Lithic::Internal::Type::BaseModel
566
580
  # @!attribute phone_number
567
581
  # The phone number used for sending Authorization Challenge SMS.
@@ -577,8 +591,9 @@ module Lithic
577
591
  # - `EXPIRED` - Challenge has expired without being completed
578
592
  # - `ERROR` - There was an error processing the challenge
579
593
  #
580
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::Status]
581
- required :status, enum: -> { Lithic::AsaRequestWebhookEvent::LatestChallenge::Status }
594
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status]
595
+ required :status,
596
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status }
582
597
 
583
598
  # @!attribute completed_at
584
599
  # The date and time when the Authorization Challenge was completed in UTC. Present
@@ -589,14 +604,15 @@ module Lithic
589
604
 
590
605
  # @!method initialize(phone_number:, status:, completed_at: nil)
591
606
  # Some parameter documentations has been truncated, see
592
- # {Lithic::Models::AsaRequestWebhookEvent::LatestChallenge} for more details.
607
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge}
608
+ # for more details.
593
609
  #
594
610
  # The latest Authorization Challenge that was issued to the cardholder for this
595
611
  # merchant.
596
612
  #
597
613
  # @param phone_number [String] The phone number used for sending Authorization Challenge SMS.
598
614
  #
599
- # @param status [Symbol, Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::Status] The status of the Authorization Challenge
615
+ # @param status [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status] The status of the Authorization Challenge
600
616
  #
601
617
  # @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present
602
618
 
@@ -607,7 +623,7 @@ module Lithic
607
623
  # - `EXPIRED` - Challenge has expired without being completed
608
624
  # - `ERROR` - There was an error processing the challenge
609
625
  #
610
- # @see Lithic::Models::AsaRequestWebhookEvent::LatestChallenge#status
626
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge#status
611
627
  module Status
612
628
  extend Lithic::Internal::Type::Enum
613
629
 
@@ -623,7 +639,7 @@ module Lithic
623
639
 
624
640
  # Card network of the authorization.
625
641
  #
626
- # @see Lithic::Models::AsaRequestWebhookEvent#network
642
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#network
627
643
  module Network
628
644
  extend Lithic::Internal::Type::Enum
629
645
 
@@ -638,21 +654,21 @@ module Lithic
638
654
  # @return [Array<Symbol>]
639
655
  end
640
656
 
641
- # @see Lithic::Models::AsaRequestWebhookEvent#network_specific_data
657
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#network_specific_data
642
658
  class NetworkSpecificData < Lithic::Internal::Type::BaseModel
643
659
  # @!attribute mastercard
644
660
  #
645
- # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard, nil]
661
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard, nil]
646
662
  optional :mastercard,
647
- -> {
648
- Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard
649
- },
663
+ -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard },
650
664
  nil?: true
651
665
 
652
666
  # @!attribute visa
653
667
  #
654
- # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa, nil]
655
- optional :visa, -> { Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa }, nil?: true
668
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa, nil]
669
+ optional :visa,
670
+ -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa },
671
+ nil?: true
656
672
 
657
673
  # @!method initialize(mastercard: nil, visa: nil)
658
674
  # Contains raw data provided by the card network, including attributes that
@@ -662,10 +678,10 @@ module Lithic
662
678
  # values and how to use them. This object is only available to certain programs-
663
679
  # contact your Customer Success Manager to discuss enabling access.
664
680
  #
665
- # @param mastercard [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard, nil]
666
- # @param visa [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa, nil]
681
+ # @param mastercard [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard, nil]
682
+ # @param visa [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa, nil]
667
683
 
668
- # @see Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData#mastercard
684
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData#mastercard
669
685
  class Mastercard < Lithic::Internal::Type::BaseModel
670
686
  # @!attribute ecommerce_security_level_indicator
671
687
  # Indicates the electronic commerce security level and UCAF collection.
@@ -678,11 +694,13 @@ module Lithic
678
694
  # applicable, on-behalf service results that were performed on a given
679
695
  # transaction.
680
696
  #
681
- # @return [Array<Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult>, nil]
697
+ # @return [Array<Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult>, nil]
682
698
  optional :on_behalf_service_result,
683
- -> {
684
- Lithic::Internal::Type::ArrayOf[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]
685
- },
699
+ -> do
700
+ Lithic::Internal::Type::ArrayOf[
701
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult
702
+ ]
703
+ end,
686
704
  nil?: true
687
705
 
688
706
  # @!attribute transaction_type_identifier
@@ -693,12 +711,12 @@ module Lithic
693
711
 
694
712
  # @!method initialize(ecommerce_security_level_indicator: nil, on_behalf_service_result: nil, transaction_type_identifier: nil)
695
713
  # Some parameter documentations has been truncated, see
696
- # {Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard} for
697
- # more details.
714
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard}
715
+ # for more details.
698
716
  #
699
717
  # @param ecommerce_security_level_indicator [String, nil] Indicates the electronic commerce security level and UCAF collection.
700
718
  #
701
- # @param on_behalf_service_result [Array<Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult>, nil] The On-behalf Service performed on the transaction and the results. Contains all
719
+ # @param on_behalf_service_result [Array<Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult>, nil] The On-behalf Service performed on the transaction and the results. Contains all
702
720
  #
703
721
  # @param transaction_type_identifier [String, nil] Indicates the type of additional transaction purpose.
704
722
 
@@ -730,7 +748,7 @@ module Lithic
730
748
  end
731
749
  end
732
750
 
733
- # @see Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData#visa
751
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData#visa
734
752
  class Visa < Lithic::Internal::Type::BaseModel
735
753
  # @!attribute business_application_identifier
736
754
  # Identifies the purpose or category of a transaction, used to classify and
@@ -741,50 +759,51 @@ module Lithic
741
759
 
742
760
  # @!method initialize(business_application_identifier: nil)
743
761
  # Some parameter documentations has been truncated, see
744
- # {Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa} for more
745
- # details.
762
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa}
763
+ # for more details.
746
764
  #
747
765
  # @param business_application_identifier [String, nil] Identifies the purpose or category of a transaction, used to classify and proces
748
766
  end
749
767
  end
750
768
 
751
- # @see Lithic::Models::AsaRequestWebhookEvent#pos
769
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#pos
752
770
  class Pos < Lithic::Internal::Type::BaseModel
753
771
  # @!attribute entry_mode
754
772
  # POS > Entry Mode object in ASA
755
773
  #
756
- # @return [Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode, nil]
757
- optional :entry_mode, -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode }
774
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, nil]
775
+ optional :entry_mode, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode }
758
776
 
759
777
  # @!attribute terminal
760
778
  #
761
- # @return [Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal, nil]
762
- optional :terminal, -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal }
779
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal, nil]
780
+ optional :terminal, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal }
763
781
 
764
782
  # @!method initialize(entry_mode: nil, terminal: nil)
765
- # @param entry_mode [Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode] POS > Entry Mode object in ASA
783
+ # @param entry_mode [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode] POS > Entry Mode object in ASA
766
784
  #
767
- # @param terminal [Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal]
785
+ # @param terminal [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal]
768
786
 
769
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos#entry_mode
787
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos#entry_mode
770
788
  class EntryMode < Lithic::Internal::Type::BaseModel
771
789
  # @!attribute card
772
790
  # Card Presence Indicator
773
791
  #
774
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Card, nil]
775
- optional :card, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card }
792
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card, nil]
793
+ optional :card, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card }
776
794
 
777
795
  # @!attribute cardholder
778
796
  # Cardholder Presence Indicator
779
797
  #
780
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder, nil]
781
- optional :cardholder, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder }
798
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder, nil]
799
+ optional :cardholder,
800
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder }
782
801
 
783
802
  # @!attribute pan
784
803
  # Method of entry for the PAN
785
804
  #
786
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Pan, nil]
787
- optional :pan, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan }
805
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan, nil]
806
+ optional :pan, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan }
788
807
 
789
808
  # @!attribute pin_entered
790
809
  # Indicates whether the cardholder entered the PIN. True if the PIN was entered.
@@ -795,17 +814,17 @@ module Lithic
795
814
  # @!method initialize(card: nil, cardholder: nil, pan: nil, pin_entered: nil)
796
815
  # POS > Entry Mode object in ASA
797
816
  #
798
- # @param card [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Card] Card Presence Indicator
817
+ # @param card [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card] Card Presence Indicator
799
818
  #
800
- # @param cardholder [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder] Cardholder Presence Indicator
819
+ # @param cardholder [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder] Cardholder Presence Indicator
801
820
  #
802
- # @param pan [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Pan] Method of entry for the PAN
821
+ # @param pan [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan] Method of entry for the PAN
803
822
  #
804
823
  # @param pin_entered [Boolean] Indicates whether the cardholder entered the PIN. True if the PIN was entered.
805
824
 
806
825
  # Card Presence Indicator
807
826
  #
808
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#card
827
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#card
809
828
  module Card
810
829
  extend Lithic::Internal::Type::Enum
811
830
 
@@ -819,7 +838,7 @@ module Lithic
819
838
 
820
839
  # Cardholder Presence Indicator
821
840
  #
822
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#cardholder
841
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#cardholder
823
842
  module Cardholder
824
843
  extend Lithic::Internal::Type::Enum
825
844
 
@@ -839,7 +858,7 @@ module Lithic
839
858
 
840
859
  # Method of entry for the PAN
841
860
  #
842
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#pan
861
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#pan
843
862
  module Pan
844
863
  extend Lithic::Internal::Type::Enum
845
864
 
@@ -864,7 +883,7 @@ module Lithic
864
883
  end
865
884
  end
866
885
 
867
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos#terminal
886
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos#terminal
868
887
  class Terminal < Lithic::Internal::Type::BaseModel
869
888
  # @!attribute attended
870
889
  # True if a clerk is present at the sale.
@@ -887,8 +906,9 @@ module Lithic
887
906
  # @!attribute operator
888
907
  # The person that is designated to swipe the card
889
908
  #
890
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Operator]
891
- required :operator, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator }
909
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator]
910
+ required :operator,
911
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator }
892
912
 
893
913
  # @!attribute partial_approval_capable
894
914
  # True if the terminal is capable of partial approval. Partial approval is when
@@ -903,14 +923,15 @@ module Lithic
903
923
  # @!attribute pin_capability
904
924
  # Status of whether the POS is able to accept PINs
905
925
  #
906
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::PinCapability]
907
- required :pin_capability, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability }
926
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability]
927
+ required :pin_capability,
928
+ enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability }
908
929
 
909
930
  # @!attribute type
910
931
  # POS Type
911
932
  #
912
- # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Type]
913
- required :type, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type }
933
+ # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type]
934
+ required :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type }
914
935
 
915
936
  # @!attribute acceptor_terminal_id
916
937
  # Uniquely identifies a terminal at the card acceptor location of acquiring
@@ -921,7 +942,8 @@ module Lithic
921
942
 
922
943
  # @!method initialize(attended:, card_retention_capable:, on_premise:, operator:, partial_approval_capable:, pin_capability:, type:, acceptor_terminal_id: nil)
923
944
  # Some parameter documentations has been truncated, see
924
- # {Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal} for more details.
945
+ # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal}
946
+ # for more details.
925
947
  #
926
948
  # @param attended [Boolean] True if a clerk is present at the sale.
927
949
  #
@@ -929,19 +951,19 @@ module Lithic
929
951
  #
930
952
  # @param on_premise [Boolean] True if the sale was made at the place of business (vs. mobile).
931
953
  #
932
- # @param operator [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Operator] The person that is designated to swipe the card
954
+ # @param operator [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator] The person that is designated to swipe the card
933
955
  #
934
956
  # @param partial_approval_capable [Boolean] True if the terminal is capable of partial approval. Partial approval is when pa
935
957
  #
936
- # @param pin_capability [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::PinCapability] Status of whether the POS is able to accept PINs
958
+ # @param pin_capability [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability] Status of whether the POS is able to accept PINs
937
959
  #
938
- # @param type [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Type] POS Type
960
+ # @param type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type] POS Type
939
961
  #
940
962
  # @param acceptor_terminal_id [String, nil] Uniquely identifies a terminal at the card acceptor location of acquiring instit
941
963
 
942
964
  # The person that is designated to swipe the card
943
965
  #
944
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#operator
966
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#operator
945
967
  module Operator
946
968
  extend Lithic::Internal::Type::Enum
947
969
 
@@ -956,7 +978,7 @@ module Lithic
956
978
 
957
979
  # Status of whether the POS is able to accept PINs
958
980
  #
959
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#pin_capability
981
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#pin_capability
960
982
  module PinCapability
961
983
  extend Lithic::Internal::Type::Enum
962
984
 
@@ -971,7 +993,7 @@ module Lithic
971
993
 
972
994
  # POS Type
973
995
  #
974
- # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#type
996
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#type
975
997
  module Type
976
998
  extend Lithic::Internal::Type::Enum
977
999