lithic 0.15.0 → 0.16.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 (175) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +4 -1
  6. data/lib/lithic/models/account.rb +2 -2
  7. data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
  8. data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +4 -2
  10. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
  11. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
  12. data/lib/lithic/models/auth_rules/rule_feature.rb +29 -6
  13. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  14. data/lib/lithic/models/auth_rules/v2_create_params.rb +12 -6
  15. data/lib/lithic/models/card.rb +1 -1
  16. data/lib/lithic/models/card_authorization.rb +117 -11
  17. data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
  18. data/lib/lithic/models/payment.rb +13 -1
  19. data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
  20. data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
  21. data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
  22. data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
  23. data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
  24. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
  25. data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
  26. data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
  27. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
  28. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
  29. data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
  30. data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
  31. data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
  32. data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
  33. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
  34. data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
  35. data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
  36. data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
  37. data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
  38. data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
  39. data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
  40. data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
  41. data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
  42. data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
  43. data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
  44. data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
  45. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
  46. data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
  47. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
  48. data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
  49. data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
  50. data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
  51. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
  52. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
  53. data/lib/lithic/models/transaction_route_params.rb +29 -0
  54. data/lib/lithic/models.rb +4 -0
  55. data/lib/lithic/resources/account_holders/entities.rb +1 -1
  56. data/lib/lithic/resources/cards.rb +2 -2
  57. data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
  58. data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
  61. data/lib/lithic/resources/transaction_monitoring.rb +22 -0
  62. data/lib/lithic/resources/transactions.rb +25 -0
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +40 -0
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account.rbi +3 -3
  67. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
  68. data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
  69. data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
  70. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
  71. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
  72. data/rbi/lithic/models/auth_rules/rule_feature.rbi +41 -5
  73. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
  74. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +18 -9
  75. data/rbi/lithic/models/card.rbi +2 -2
  76. data/rbi/lithic/models/card_authorization.rbi +246 -17
  77. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
  78. data/rbi/lithic/models/payment.rbi +13 -0
  79. data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
  80. data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
  81. data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
  82. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
  83. data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
  84. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
  85. data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
  86. data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
  87. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
  88. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
  89. data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
  90. data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
  91. data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
  92. data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
  93. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
  94. data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
  95. data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
  96. data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
  97. data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
  98. data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
  99. data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
  100. data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
  101. data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
  102. data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
  103. data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
  104. data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
  105. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
  106. data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
  107. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
  108. data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
  111. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
  112. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
  113. data/rbi/lithic/models/transaction_route_params.rbi +49 -0
  114. data/rbi/lithic/models.rbi +4 -0
  115. data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
  116. data/rbi/lithic/resources/cards.rbi +2 -2
  117. data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
  118. data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
  119. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
  120. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
  121. data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
  122. data/rbi/lithic/resources/transactions.rbi +18 -0
  123. data/sig/lithic/client.rbs +2 -0
  124. data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
  125. data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
  126. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
  127. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
  128. data/sig/lithic/models/auth_rules/rule_feature.rbs +16 -0
  129. data/sig/lithic/models/card_authorization.rbs +84 -10
  130. data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
  131. data/sig/lithic/models/payment.rbs +7 -0
  132. data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
  133. data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
  134. data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
  135. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
  136. data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
  137. data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
  138. data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
  139. data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
  140. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
  141. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
  142. data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
  143. data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
  144. data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
  145. data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
  146. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
  147. data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
  148. data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
  149. data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
  150. data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
  151. data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
  152. data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
  153. data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
  154. data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
  155. data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
  156. data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
  157. data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
  158. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
  159. data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
  160. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
  161. data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
  163. data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
  164. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
  165. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
  166. data/sig/lithic/models/transaction_route_params.rbs +28 -0
  167. data/sig/lithic/models.rbs +4 -0
  168. data/sig/lithic/resources/account_holders/entities.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
  170. data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
  171. data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
  172. data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
  173. data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
  174. data/sig/lithic/resources/transactions.rbs +6 -0
  175. metadata +122 -2
@@ -15,7 +15,7 @@ module Lithic
15
15
  # @!attribute features
16
16
  # Features available to the TypeScript code at evaluation time
17
17
  #
18
- # @return [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
18
+ # @return [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
19
19
  required :features, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::RuleFeature] }
20
20
 
21
21
  # @!method initialize(code:, features:)
@@ -26,7 +26,7 @@ module Lithic
26
26
  #
27
27
  # @param code [String] The TypeScript source code of the rule. Must define a `rule()` function that acc
28
28
  #
29
- # @param features [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
29
+ # @param features [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
30
30
  end
31
31
  end
32
32
  end
@@ -47,7 +47,8 @@ module Lithic
47
47
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
48
48
  # stream.
49
49
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
50
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
50
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
51
+ # stream.
51
52
  #
52
53
  # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type]
53
54
  required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type }
@@ -138,7 +139,8 @@ module Lithic
138
139
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
139
140
  # stream.
140
141
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
141
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
142
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
143
+ # stream.
142
144
  #
143
145
  # @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#type
144
146
  module Type
@@ -182,7 +184,8 @@ module Lithic
182
184
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
183
185
  # stream.
184
186
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
185
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
187
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
188
+ # stream.
186
189
  #
187
190
  # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type]
188
191
  required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type }
@@ -259,7 +262,8 @@ module Lithic
259
262
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
260
263
  # stream.
261
264
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
262
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
265
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
266
+ # stream.
263
267
  #
264
268
  # @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#type
265
269
  module Type
@@ -303,7 +307,8 @@ module Lithic
303
307
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
304
308
  # stream.
305
309
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
306
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
310
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
311
+ # stream.
307
312
  #
308
313
  # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type]
309
314
  required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type }
@@ -404,7 +409,8 @@ module Lithic
404
409
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
405
410
  # stream.
406
411
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
407
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
412
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
413
+ # stream.
408
414
  #
409
415
  # @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#type
410
416
  module Type
@@ -13,7 +13,7 @@ module Lithic
13
13
  # @!attribute pan
14
14
  # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
15
15
  # compliant to have PAN returned as a field in production. Please contact
16
- # support@lithic.com for questions.
16
+ # https://support.lithic.com/ for questions.
17
17
  #
18
18
  # @return [String, nil]
19
19
  optional :pan, String
@@ -110,6 +110,14 @@ module Lithic
110
110
  # @return [String]
111
111
  required :merchant_currency, String
112
112
 
113
+ # @!attribute name_validation
114
+ # Network name validation data, present when the card network requested name
115
+ # validation for this transaction. Contains the cardholder name provided by the
116
+ # network and Lithic's computed match result against KYC data on file.
117
+ #
118
+ # @return [Lithic::Models::CardAuthorization::NameValidation, nil]
119
+ required :name_validation, -> { Lithic::CardAuthorization::NameValidation }, nil?: true
120
+
113
121
  # @!attribute service_location
114
122
  # Where the cardholder received the service, when different from the card acceptor
115
123
  # location. This is populated from network data elements such as Mastercard DE-122
@@ -233,7 +241,7 @@ module Lithic
233
241
  # @return [Time, nil]
234
242
  optional :ttl, Time
235
243
 
236
- # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, service_location:, 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)
244
+ # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, name_validation:, service_location:, 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)
237
245
  # Some parameter documentations has been truncated, see
238
246
  # {Lithic::Models::CardAuthorization} for more details.
239
247
  #
@@ -265,6 +273,8 @@ module Lithic
265
273
  #
266
274
  # @param merchant_currency [String] 3-character alphabetic ISO 4217 code for the local currency of the transaction.
267
275
  #
276
+ # @param name_validation [Lithic::Models::CardAuthorization::NameValidation, nil] Network name validation data, present when the card network requested name valid
277
+ #
268
278
  # @param service_location [Lithic::Models::CardAuthorization::ServiceLocation, nil] Where the cardholder received the service, when different from the card acceptor
269
279
  #
270
280
  # @param settled_amount [Integer] Deprecated, use `amounts`. Amount (in cents) of the transaction that has been se
@@ -623,6 +633,94 @@ module Lithic
623
633
  # @param street_address [String, nil] Street address of card acceptor.
624
634
  end
625
635
 
636
+ # @see Lithic::Models::CardAuthorization#name_validation
637
+ class NameValidation < Lithic::Internal::Type::BaseModel
638
+ # @!attribute name
639
+ # Cardholder name as provided by the card network.
640
+ #
641
+ # @return [Lithic::Models::CardAuthorization::NameValidation::Name]
642
+ required :name, -> { Lithic::CardAuthorization::NameValidation::Name }
643
+
644
+ # @!attribute name_on_file_match
645
+ # Lithic's computed match result comparing the network-provided name to the name
646
+ # on file.
647
+ #
648
+ # @return [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch]
649
+ required :name_on_file_match, -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch }
650
+
651
+ # @!method initialize(name:, name_on_file_match:)
652
+ # Some parameter documentations has been truncated, see
653
+ # {Lithic::Models::CardAuthorization::NameValidation} for more details.
654
+ #
655
+ # Network name validation data, present when the card network requested name
656
+ # validation for this transaction. Contains the cardholder name provided by the
657
+ # network and Lithic's computed match result against KYC data on file.
658
+ #
659
+ # @param name [Lithic::Models::CardAuthorization::NameValidation::Name] Cardholder name as provided by the card network.
660
+ #
661
+ # @param name_on_file_match [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch] Lithic's computed match result comparing the network-provided name to the name o
662
+
663
+ # @see Lithic::Models::CardAuthorization::NameValidation#name
664
+ class Name < Lithic::Internal::Type::BaseModel
665
+ # @!attribute first
666
+ # First name
667
+ #
668
+ # @return [String]
669
+ required :first, String
670
+
671
+ # @!attribute last
672
+ # Last name
673
+ #
674
+ # @return [String]
675
+ required :last, String
676
+
677
+ # @!attribute middle
678
+ # Middle name
679
+ #
680
+ # @return [String, nil]
681
+ required :middle, String, nil?: true
682
+
683
+ # @!method initialize(first:, last:, middle:)
684
+ # Cardholder name as provided by the card network.
685
+ #
686
+ # @param first [String] First name
687
+ #
688
+ # @param last [String] Last name
689
+ #
690
+ # @param middle [String, nil] Middle name
691
+ end
692
+
693
+ # @see Lithic::Models::CardAuthorization::NameValidation#name_on_file_match
694
+ class NameOnFileMatch < Lithic::Internal::Type::BaseModel
695
+ # @!attribute full_name
696
+ # Overall name match result.
697
+ #
698
+ # @return [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName]
699
+ required :full_name, enum: -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName }
700
+
701
+ # @!method initialize(full_name:)
702
+ # Lithic's computed match result comparing the network-provided name to the name
703
+ # on file.
704
+ #
705
+ # @param full_name [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName] Overall name match result.
706
+
707
+ # Overall name match result.
708
+ #
709
+ # @see Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch#full_name
710
+ module FullName
711
+ extend Lithic::Internal::Type::Enum
712
+
713
+ MATCH = :MATCH
714
+ PARTIAL_MATCH = :PARTIAL_MATCH
715
+ NO_MATCH = :NO_MATCH
716
+ UNVERIFIED = :UNVERIFIED
717
+
718
+ # @!method self.values
719
+ # @return [Array<Symbol>]
720
+ end
721
+ end
722
+ end
723
+
626
724
  # @see Lithic::Models::CardAuthorization#service_location
627
725
  class ServiceLocation < Lithic::Internal::Type::BaseModel
628
726
  # @!attribute city
@@ -793,6 +891,19 @@ module Lithic
793
891
 
794
892
  # @see Lithic::Models::CardAuthorization#latest_challenge
795
893
  class LatestChallenge < Lithic::Internal::Type::BaseModel
894
+ # @!attribute completed_at
895
+ # The date and time when the Authorization Challenge was completed in UTC. Filled
896
+ # only if the challenge has been completed.
897
+ #
898
+ # @return [Time, nil]
899
+ required :completed_at, Time, nil?: true
900
+
901
+ # @!attribute created
902
+ # The date and time when the Authorization Challenge was created in UTC
903
+ #
904
+ # @return [Time]
905
+ required :created, Time
906
+
796
907
  # @!attribute method_
797
908
  # The method used to deliver the challenge to the cardholder
798
909
  #
@@ -821,27 +932,22 @@ module Lithic
821
932
  # @return [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status]
822
933
  required :status, enum: -> { Lithic::CardAuthorization::LatestChallenge::Status }
823
934
 
824
- # @!attribute completed_at
825
- # The date and time when the Authorization Challenge was completed in UTC. Present
826
- # only if the status is `COMPLETED`.
827
- #
828
- # @return [Time, nil]
829
- optional :completed_at, Time
830
-
831
- # @!method initialize(method_:, phone_number:, status:, completed_at: nil)
935
+ # @!method initialize(completed_at:, created:, method_:, phone_number:, status:)
832
936
  # Some parameter documentations has been truncated, see
833
937
  # {Lithic::Models::CardAuthorization::LatestChallenge} for more details.
834
938
  #
835
939
  # The latest Authorization Challenge that was issued to the cardholder for this
836
940
  # merchant.
837
941
  #
942
+ # @param completed_at [Time, nil] The date and time when the Authorization Challenge was completed in UTC. Filled
943
+ #
944
+ # @param created [Time] The date and time when the Authorization Challenge was created in UTC
945
+ #
838
946
  # @param method_ [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Method] The method used to deliver the challenge to the cardholder
839
947
  #
840
948
  # @param phone_number [String, nil] The phone number used for sending the Authorization Challenge. Present only when
841
949
  #
842
950
  # @param status [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status] The status of the Authorization Challenge
843
- #
844
- # @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present
845
951
 
846
952
  # The method used to deliver the challenge to the cardholder
847
953
  #
@@ -126,13 +126,19 @@ module Lithic
126
126
  # @return [Lithic::Models::StatementTotals]
127
127
  required :ytd_totals, -> { Lithic::StatementTotals }
128
128
 
129
+ # @!attribute day_of_period
130
+ # Day of the billing period that this loan tape covers, starting at 1
131
+ #
132
+ # @return [Integer, nil]
133
+ optional :day_of_period, Integer, nil?: true
134
+
129
135
  # @!attribute tier
130
136
  # Interest tier to which this account belongs to
131
137
  #
132
138
  # @return [String, nil]
133
139
  optional :tier, String, nil?: true
134
140
 
135
- # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, tier: nil)
141
+ # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, day_of_period: nil, tier: nil)
136
142
  # Some parameter documentations has been truncated, see
137
143
  # {Lithic::Models::FinancialAccounts::LoanTape} for more details.
138
144
  #
@@ -178,6 +184,8 @@ module Lithic
178
184
  #
179
185
  # @param ytd_totals [Lithic::Models::StatementTotals]
180
186
  #
187
+ # @param day_of_period [Integer, nil] Day of the billing period that this loan tape covers, starting at 1
188
+ #
181
189
  # @param tier [String, nil] Interest tier to which this account belongs to
182
190
 
183
191
  # @see Lithic::Models::FinancialAccounts::LoanTape#account_standing
@@ -124,6 +124,13 @@ module Lithic
124
124
  # @return [String, nil]
125
125
  optional :external_bank_account_token, String, nil?: true
126
126
 
127
+ # @!attribute tags
128
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
129
+ # metadata with a resource for your own purposes.
130
+ #
131
+ # @return [Hash{Symbol=>String}, nil]
132
+ optional :tags, Lithic::Internal::Type::HashOf[String]
133
+
127
134
  # @!attribute type
128
135
  #
129
136
  # @return [Symbol, Lithic::Models::Payment::Type, nil]
@@ -135,7 +142,10 @@ module Lithic
135
142
  # @return [String, nil]
136
143
  optional :user_defined_id, String, nil?: true
137
144
 
138
- # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, type: nil, user_defined_id: nil, family: :PAYMENT)
145
+ # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, tags: nil, type: nil, user_defined_id: nil, family: :PAYMENT)
146
+ # Some parameter documentations has been truncated, see {Lithic::Models::Payment}
147
+ # for more details.
148
+ #
139
149
  # Payment transaction
140
150
  #
141
151
  # @param token [String] Unique identifier for the transaction
@@ -176,6 +186,8 @@ module Lithic
176
186
  #
177
187
  # @param external_bank_account_token [String, nil] External bank account token
178
188
  #
189
+ # @param tags [Hash{Symbol=>String}] Key-value pairs for tagging resources. Tags allow you to associate arbitrary met
190
+ #
179
191
  # @param type [Symbol, Lithic::Models::Payment::Type]
180
192
  #
181
193
  # @param user_defined_id [String, nil] User-defined identifier
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module TransactionMonitoring
6
+ # @see Lithic::Resources::TransactionMonitoring::Cases#list_activity
7
+ class CaseActivityEntry < Lithic::Internal::Type::BaseModel
8
+ # @!attribute token
9
+ # Globally unique identifier for the activity entry
10
+ #
11
+ # @return [String]
12
+ required :token, String
13
+
14
+ # @!attribute actor_token
15
+ # Identifier of the actor that produced the activity entry
16
+ #
17
+ # @return [String, nil]
18
+ required :actor_token, String, nil?: true
19
+
20
+ # @!attribute created
21
+ # Date and time at which the activity entry was created
22
+ #
23
+ # @return [Time]
24
+ required :created, Time
25
+
26
+ # @!attribute entry_type
27
+ # The case field that changed, or the action that was taken, in an activity entry:
28
+ #
29
+ # - `STATUS` - The case status changed
30
+ # - `TITLE` - The case title changed
31
+ # - `ASSIGNED_TO` - The case assignee changed
32
+ # - `RESOLUTION_OUTCOME` - The resolution outcome was set or changed
33
+ # - `RESOLUTION_NOTES` - The resolution notes were set or changed
34
+ # - `TAGS` - The case tags changed
35
+ # - `PRIORITY` - The case priority changed
36
+ # - `COMMENT` - A comment was added or edited
37
+ # - `FILE` - A file was attached to the case
38
+ #
39
+ # @return [Symbol, Lithic::Models::TransactionMonitoring::CaseActivityType]
40
+ required :entry_type, enum: -> { Lithic::TransactionMonitoring::CaseActivityType }
41
+
42
+ # @!attribute new_value
43
+ # New value of the changed field, when applicable
44
+ #
45
+ # @return [String, nil]
46
+ required :new_value, String, nil?: true
47
+
48
+ # @!attribute previous_value
49
+ # Previous value of the changed field, when applicable
50
+ #
51
+ # @return [String, nil]
52
+ required :previous_value, String, nil?: true
53
+
54
+ # @!method initialize(token:, actor_token:, created:, entry_type:, new_value:, previous_value:)
55
+ # Some parameter documentations has been truncated, see
56
+ # {Lithic::Models::TransactionMonitoring::CaseActivityEntry} for more details.
57
+ #
58
+ # A single entry in a case's activity feed
59
+ #
60
+ # @param token [String] Globally unique identifier for the activity entry
61
+ #
62
+ # @param actor_token [String, nil] Identifier of the actor that produced the activity entry
63
+ #
64
+ # @param created [Time] Date and time at which the activity entry was created
65
+ #
66
+ # @param entry_type [Symbol, Lithic::Models::TransactionMonitoring::CaseActivityType] The case field that changed, or the action that was taken, in an activity entry:
67
+ #
68
+ # @param new_value [String, nil] New value of the changed field, when applicable
69
+ #
70
+ # @param previous_value [String, nil] Previous value of the changed field, when applicable
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module TransactionMonitoring
6
+ # The case field that changed, or the action that was taken, in an activity entry:
7
+ #
8
+ # - `STATUS` - The case status changed
9
+ # - `TITLE` - The case title changed
10
+ # - `ASSIGNED_TO` - The case assignee changed
11
+ # - `RESOLUTION_OUTCOME` - The resolution outcome was set or changed
12
+ # - `RESOLUTION_NOTES` - The resolution notes were set or changed
13
+ # - `TAGS` - The case tags changed
14
+ # - `PRIORITY` - The case priority changed
15
+ # - `COMMENT` - A comment was added or edited
16
+ # - `FILE` - A file was attached to the case
17
+ module CaseActivityType
18
+ extend Lithic::Internal::Type::Enum
19
+
20
+ STATUS = :STATUS
21
+ TITLE = :TITLE
22
+ ASSIGNED_TO = :ASSIGNED_TO
23
+ RESOLUTION_OUTCOME = :RESOLUTION_OUTCOME
24
+ RESOLUTION_NOTES = :RESOLUTION_NOTES
25
+ TAGS = :TAGS
26
+ PRIORITY = :PRIORITY
27
+ COMMENT = :COMMENT
28
+ FILE = :FILE
29
+
30
+ # @!method self.values
31
+ # @return [Array<Symbol>]
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module TransactionMonitoring
6
+ class CaseCard < Lithic::Internal::Type::BaseModel
7
+ # @!attribute account_token
8
+ # Token of the account the card belongs to
9
+ #
10
+ # @return [String]
11
+ required :account_token, String
12
+
13
+ # @!attribute card_token
14
+ # Token of the card
15
+ #
16
+ # @return [String]
17
+ required :card_token, String
18
+
19
+ # @!attribute transaction_count
20
+ # Number of the card's transactions associated with the case
21
+ #
22
+ # @return [Integer]
23
+ required :transaction_count, Integer
24
+
25
+ # @!method initialize(account_token:, card_token:, transaction_count:)
26
+ # Summary of a card's involvement in a case, aggregated across the case's
27
+ # transactions
28
+ #
29
+ # @param account_token [String] Token of the account the card belongs to
30
+ #
31
+ # @param card_token [String] Token of the card
32
+ #
33
+ # @param transaction_count [Integer] Number of the card's transactions associated with the case
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module TransactionMonitoring
6
+ class CaseEntity < Lithic::Internal::Type::BaseModel
7
+ # @!attribute entity_token
8
+ # Globally unique identifier for the associated entity
9
+ #
10
+ # @return [String]
11
+ required :entity_token, String
12
+
13
+ # @!attribute entity_type
14
+ # The type of entity a case is associated with:
15
+ #
16
+ # - `CARD` - The case is associated with a card
17
+ # - `ACCOUNT` - The case is associated with an account
18
+ #
19
+ # @return [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType]
20
+ required :entity_type, enum: -> { Lithic::TransactionMonitoring::CaseEntity::EntityType }
21
+
22
+ # @!method initialize(entity_token:, entity_type:)
23
+ # Some parameter documentations has been truncated, see
24
+ # {Lithic::Models::TransactionMonitoring::CaseEntity} for more details.
25
+ #
26
+ # The entity a case is associated with
27
+ #
28
+ # @param entity_token [String] Globally unique identifier for the associated entity
29
+ #
30
+ # @param entity_type [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType] The type of entity a case is associated with:
31
+
32
+ # The type of entity a case is associated with:
33
+ #
34
+ # - `CARD` - The case is associated with a card
35
+ # - `ACCOUNT` - The case is associated with an account
36
+ #
37
+ # @see Lithic::Models::TransactionMonitoring::CaseEntity#entity_type
38
+ module EntityType
39
+ extend Lithic::Internal::Type::Enum
40
+
41
+ CARD = :CARD
42
+ ACCOUNT = :ACCOUNT
43
+
44
+ # @!method self.values
45
+ # @return [Array<Symbol>]
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module TransactionMonitoring
6
+ # @see Lithic::Resources::TransactionMonitoring::Cases#list_activity
7
+ class CaseListActivityParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute case_token
12
+ #
13
+ # @return [String]
14
+ required :case_token, String
15
+
16
+ # @!attribute ending_before
17
+ # A cursor representing an item's token before which a page of results should end.
18
+ # Used to retrieve the previous page of results before this item.
19
+ #
20
+ # @return [String, nil]
21
+ optional :ending_before, String
22
+
23
+ # @!attribute page_size
24
+ # Page size (for pagination).
25
+ #
26
+ # @return [Integer, nil]
27
+ optional :page_size, Integer
28
+
29
+ # @!attribute starting_after
30
+ # A cursor representing an item's token after which a page of results should
31
+ # begin. Used to retrieve the next page of results after this item.
32
+ #
33
+ # @return [String, nil]
34
+ optional :starting_after, String
35
+
36
+ # @!method initialize(case_token:, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
37
+ # Some parameter documentations has been truncated, see
38
+ # {Lithic::Models::TransactionMonitoring::CaseListActivityParams} for more
39
+ # details.
40
+ #
41
+ # @param case_token [String]
42
+ #
43
+ # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
44
+ #
45
+ # @param page_size [Integer] Page size (for pagination).
46
+ #
47
+ # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
48
+ #
49
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
50
+ end
51
+ end
52
+ end
53
+ end