lithic 0.18.0 → 0.19.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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/type/union.rb +7 -21
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  9. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  10. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  11. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  12. data/lib/lithic/models/book_transfer_response.rb +4 -0
  13. data/lib/lithic/models/card_authorization.rb +7 -6
  14. data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
  15. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  16. data/lib/lithic/models/event.rb +44 -12
  17. data/lib/lithic/models/event_list_params.rb +23 -6
  18. data/lib/lithic/models/event_subscription.rb +23 -6
  19. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  20. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  21. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  22. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  23. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  24. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +7 -0
  25. data/lib/lithic/models/financial_event.rb +5 -0
  26. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  27. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  28. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  29. data/lib/lithic/models/payment.rb +28 -1
  30. data/lib/lithic/models/payment_list_params.rb +1 -0
  31. data/lib/lithic/models/transaction_monitoring/case_transaction.rb +120 -43
  32. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  33. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  34. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  35. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  36. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  37. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  38. data/lib/lithic/models.rb +4 -0
  39. data/lib/lithic/resources/card_authorizations.rb +1 -1
  40. data/lib/lithic/resources/cards.rb +5 -0
  41. data/lib/lithic/resources/external_payments.rb +1 -1
  42. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  43. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  44. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  45. data/lib/lithic/resources/transactions.rb +4 -3
  46. data/lib/lithic/resources/webhooks.rb +1 -1
  47. data/lib/lithic/version.rb +1 -1
  48. data/lib/lithic.rb +2 -1
  49. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  50. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  51. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  52. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  53. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  54. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  55. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  56. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  57. data/rbi/lithic/models/card_authorization.rbi +12 -10
  58. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  59. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  60. data/rbi/lithic/models/event.rbi +70 -18
  61. data/rbi/lithic/models/event_list_params.rbi +31 -6
  62. data/rbi/lithic/models/event_subscription.rbi +31 -6
  63. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  64. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  65. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  66. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  67. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  68. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +35 -0
  69. data/rbi/lithic/models/financial_event.rbi +22 -0
  70. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  71. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  72. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  73. data/rbi/lithic/models/payment.rbi +47 -0
  74. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  75. data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +151 -46
  76. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  77. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  78. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  79. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  80. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  81. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  82. data/rbi/lithic/models.rbi +5 -0
  83. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  84. data/rbi/lithic/resources/cards.rbi +3 -0
  85. data/rbi/lithic/resources/external_payments.rbi +1 -1
  86. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  87. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  88. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +4 -11
  89. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  90. data/rbi/lithic/resources/transactions.rbi +8 -6
  91. data/rbi/lithic/resources/webhooks.rbi +2 -0
  92. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  93. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  94. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  95. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  96. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  97. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  98. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  99. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  100. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  101. data/sig/lithic/models/event.rbs +4 -0
  102. data/sig/lithic/models/event_list_params.rbs +4 -0
  103. data/sig/lithic/models/event_subscription.rbs +4 -0
  104. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  105. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  106. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  107. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +14 -0
  108. data/sig/lithic/models/financial_event.rbs +10 -0
  109. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  110. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  111. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  112. data/sig/lithic/models/payment.rbs +15 -0
  113. data/sig/lithic/models/payment_list_params.rbs +2 -1
  114. data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +93 -34
  115. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  116. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  117. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  118. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  119. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  120. data/sig/lithic/models.rbs +4 -0
  121. data/sig/lithic/resources/transaction_monitoring/cases.rbs +2 -2
  122. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  123. data/sig/lithic/resources/webhooks.rbs +2 -0
  124. metadata +8 -5
  125. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  126. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  127. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -20,9 +20,10 @@ module Lithic
20
20
  financial_account_token,
21
21
  # UTC date of the balance to retrieve. Defaults to latest available balance
22
22
  balance_date: nil,
23
- # Balance after a given financial event occured. For example, passing the
24
- # event_token of a $5 CARD_CLEARING financial event will return a balance
25
- # decreased by $5
23
+ # Balance after a given financial event occured. Note: if an account receives
24
+ # multiple events around the same time whose financial impacts cancel out, a
25
+ # balance lookup by one of those event tokens may return 404, since their combined
26
+ # impact on the account is zero.
26
27
  last_transaction_event_token: nil,
27
28
  request_options: {}
28
29
  )
@@ -6,7 +6,7 @@ module Lithic
6
6
  class Decisioning
7
7
  # Card program's response to a 3DS Challenge Request. Challenge Request is emitted
8
8
  # as a webhook
9
- # [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge)
9
+ # [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook)
10
10
  # and your Card Program needs to be configured with Out of Band (OOB) Challenges
11
11
  # in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for
12
12
  # more information).
@@ -33,8 +33,7 @@ module Lithic
33
33
  actor_token: String,
34
34
  assignee: T.nilable(String),
35
35
  priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol,
36
- resolution:
37
- Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol,
36
+ resolution: String,
38
37
  resolution_notes: String,
39
38
  sla_deadline: T.nilable(Time),
40
39
  status: Lithic::TransactionMonitoring::CaseStatus::OrSymbol,
@@ -54,14 +53,8 @@ module Lithic
54
53
  assignee: nil,
55
54
  # Priority level of a case, controlling queue ordering and SLA urgency
56
55
  priority: nil,
57
- # Outcome recorded when a case is resolved:
58
- #
59
- # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent
60
- # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud
61
- # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false
62
- # positive
63
- # - `NO_ACTION_REQUIRED` - No further action is required
64
- # - `ESCALATED_EXTERNAL` - The case was escalated to an external party
56
+ # Resolution to record on the case. Must be one of the `allowed_resolutions`
57
+ # configured on the case's queue, otherwise the request is rejected with a `400`
65
58
  resolution: nil,
66
59
  # Notes describing the resolution
67
60
  resolution_notes: nil,
@@ -187,7 +180,7 @@ module Lithic
187
180
  request_options: Lithic::RequestOptions::OrHash
188
181
  ).returns(
189
182
  Lithic::Internal::CursorPage[
190
- Lithic::TransactionMonitoring::CaseTransaction
183
+ Lithic::TransactionMonitoring::CaseTransaction::Variants
191
184
  ]
192
185
  )
193
186
  end
@@ -8,6 +8,7 @@ module Lithic
8
8
  sig do
9
9
  params(
10
10
  name: String,
11
+ allowed_resolutions: T.nilable(T::Array[String]),
11
12
  description: T.nilable(String),
12
13
  request_options: Lithic::RequestOptions::OrHash
13
14
  ).returns(Lithic::TransactionMonitoring::Queue)
@@ -15,6 +16,10 @@ module Lithic
15
16
  def create(
16
17
  # Human-readable name of the queue
17
18
  name:,
19
+ # Resolutions that can be recorded on cases in this queue. Omit or send `null` to
20
+ # use the default list. Values are free-form labels and must be non-empty and
21
+ # unique
22
+ allowed_resolutions: nil,
18
23
  # Optional description of the queue
19
24
  description: nil,
20
25
  request_options: {}
@@ -39,6 +44,7 @@ module Lithic
39
44
  sig do
40
45
  params(
41
46
  queue_token: String,
47
+ allowed_resolutions: T.nilable(T::Array[String]),
42
48
  description: T.nilable(String),
43
49
  name: String,
44
50
  request_options: Lithic::RequestOptions::OrHash
@@ -47,6 +53,11 @@ module Lithic
47
53
  def update(
48
54
  # Globally unique identifier for the queue.
49
55
  queue_token,
56
+ # New list of resolutions that can be recorded on cases in this queue, or `null`
57
+ # to revert to the default list. Values are free-form labels and must be non-empty
58
+ # and unique. Changing the list only affects what is selectable going forward; the
59
+ # `resolution` already stored on a case is preserved as-is
60
+ allowed_resolutions: nil,
50
61
  # New description for the queue, or `null` to clear it
51
62
  description: nil,
52
63
  # New name for the queue
@@ -208,9 +208,10 @@ module Lithic
208
208
  # Clears an existing authorization, either debit or credit. After this event, the
209
209
  # transaction transitions from `PENDING` to `SETTLED` status.
210
210
  #
211
- # If `amount` is not set, the full amount of the transaction will be cleared.
212
- # Transactions that have already cleared, either partially or fully, cannot be
213
- # cleared again using this endpoint.
211
+ # If `amount` is not set, the full amount of the transaction will be cleared. This
212
+ # endpoint may be called multiple times against the same authorization to simulate
213
+ # a multiple-completion scenario, with each call creating a separate clearing
214
+ # event.
214
215
  sig do
215
216
  params(
216
217
  token: String,
@@ -227,9 +228,10 @@ module Lithic
227
228
  # example, entering 100 in this field will result in a -100 amount in the
228
229
  # transaction, if the original authorization is a credit authorization.
229
230
  #
230
- # If `amount` is not set, the full amount of the transaction will be cleared.
231
- # Transactions that have already cleared, either partially or fully, cannot be
232
- # cleared again using this endpoint.
231
+ # If `amount` is not set, the full amount of the transaction will be cleared. This
232
+ # endpoint may be called multiple times against the same authorization to simulate
233
+ # a multiple-completion scenario, with each call creating a separate clearing
234
+ # event.
233
235
  amount: nil,
234
236
  request_options: {}
235
237
  )
@@ -44,6 +44,8 @@ module Lithic
44
44
  Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
45
45
  Lithic::DisputeUpdatedWebhookEvent,
46
46
  Lithic::DisputeEvidenceUploadFailedWebhookEvent,
47
+ Lithic::EmbedSessionGeneratedWebhookEvent,
48
+ Lithic::EmbedViewedWebhookEvent,
47
49
  Lithic::ExternalBankAccountCreatedWebhookEvent,
48
50
  Lithic::ExternalBankAccountUpdatedWebhookEvent,
49
51
  Lithic::ExternalPaymentCreatedWebhookEvent,
@@ -103,6 +103,7 @@ module Lithic
103
103
  type category =
104
104
  :ACH
105
105
  | :WIRE
106
+ | :STABLECOIN
106
107
  | :BALANCE_OR_FUNDING
107
108
  | :FEE
108
109
  | :REWARD
@@ -123,12 +124,14 @@ module Lithic
123
124
  | :MANAGEMENT_DISBURSEMENT
124
125
  | :HOLD
125
126
  | :PROGRAM_FUNDING
127
+ | :PROGRAM_TRANSFER
126
128
 
127
129
  module Category
128
130
  extend Lithic::Internal::Type::Enum
129
131
 
130
132
  ACH: :ACH
131
133
  WIRE: :WIRE
134
+ STABLECOIN: :STABLECOIN
132
135
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
133
136
  FEE: :FEE
134
137
  REWARD: :REWARD
@@ -149,6 +152,7 @@ module Lithic
149
152
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
150
153
  HOLD: :HOLD
151
154
  PROGRAM_FUNDING: :PROGRAM_FUNDING
155
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
152
156
 
153
157
  def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::category]
154
158
  end
@@ -91,6 +91,7 @@ module Lithic
91
91
  type category =
92
92
  :ACH
93
93
  | :WIRE
94
+ | :STABLECOIN
94
95
  | :BALANCE_OR_FUNDING
95
96
  | :FEE
96
97
  | :REWARD
@@ -111,12 +112,14 @@ module Lithic
111
112
  | :MANAGEMENT_DISBURSEMENT
112
113
  | :HOLD
113
114
  | :PROGRAM_FUNDING
115
+ | :PROGRAM_TRANSFER
114
116
 
115
117
  module Category
116
118
  extend Lithic::Internal::Type::Enum
117
119
 
118
120
  ACH: :ACH
119
121
  WIRE: :WIRE
122
+ STABLECOIN: :STABLECOIN
120
123
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
121
124
  FEE: :FEE
122
125
  REWARD: :REWARD
@@ -137,6 +140,7 @@ module Lithic
137
140
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
138
141
  HOLD: :HOLD
139
142
  PROGRAM_FUNDING: :PROGRAM_FUNDING
143
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
140
144
 
141
145
  def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::category]
142
146
  end
@@ -91,6 +91,7 @@ module Lithic
91
91
  type category =
92
92
  :ACH
93
93
  | :WIRE
94
+ | :STABLECOIN
94
95
  | :BALANCE_OR_FUNDING
95
96
  | :FEE
96
97
  | :REWARD
@@ -111,12 +112,14 @@ module Lithic
111
112
  | :MANAGEMENT_DISBURSEMENT
112
113
  | :HOLD
113
114
  | :PROGRAM_FUNDING
115
+ | :PROGRAM_TRANSFER
114
116
 
115
117
  module Category
116
118
  extend Lithic::Internal::Type::Enum
117
119
 
118
120
  ACH: :ACH
119
121
  WIRE: :WIRE
122
+ STABLECOIN: :STABLECOIN
120
123
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
121
124
  FEE: :FEE
122
125
  REWARD: :REWARD
@@ -137,6 +140,7 @@ module Lithic
137
140
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
138
141
  HOLD: :HOLD
139
142
  PROGRAM_FUNDING: :PROGRAM_FUNDING
143
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
140
144
 
141
145
  def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category]
142
146
  end
@@ -273,6 +273,7 @@ module Lithic
273
273
  | :TRANSACTION_AMOUNT
274
274
  | :SEC_CODE
275
275
  | :MEMO
276
+ | :RECIPIENT_NAME
276
277
 
277
278
  module Attribute
278
279
  extend Lithic::Internal::Type::Enum
@@ -283,6 +284,7 @@ module Lithic
283
284
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
284
285
  SEC_CODE: :SEC_CODE
285
286
  MEMO: :MEMO
287
+ RECIPIENT_NAME: :RECIPIENT_NAME
286
288
 
287
289
  def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute]
288
290
  end
@@ -93,6 +93,7 @@ module Lithic
93
93
  | :INTERNAL
94
94
  | :REWARD
95
95
  | :PROGRAM_FUNDING
96
+ | :PROGRAM_TRANSFER
96
97
  | :TRANSFER
97
98
 
98
99
  module Category
@@ -106,6 +107,7 @@ module Lithic
106
107
  INTERNAL: :INTERNAL
107
108
  REWARD: :REWARD
108
109
  PROGRAM_FUNDING: :PROGRAM_FUNDING
110
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
109
111
  TRANSFER: :TRANSFER
110
112
 
111
113
  def self?.values: -> ::Array[Lithic::Models::BookTransferCreateParams::category]
@@ -132,6 +134,7 @@ module Lithic
132
134
  | :INTEREST
133
135
  | :LATE_PAYMENT
134
136
  | :BILL_PAYMENT
137
+ | :PAYMENT_FEE
135
138
  | :CASH_BACK
136
139
  | :ACCOUNT_TO_ACCOUNT
137
140
  | :CARD_TO_CARD
@@ -147,6 +150,8 @@ module Lithic
147
150
  | :SERVICE
148
151
  | :TRANSFER
149
152
  | :COLLECTION
153
+ | :LITHIC_PROGRAM_TRANSFER
154
+ | :BANK_PROGRAM_TRANSFER
150
155
 
151
156
  module Type
152
157
  extend Lithic::Internal::Type::Enum
@@ -171,6 +176,7 @@ module Lithic
171
176
  INTEREST: :INTEREST
172
177
  LATE_PAYMENT: :LATE_PAYMENT
173
178
  BILL_PAYMENT: :BILL_PAYMENT
179
+ PAYMENT_FEE: :PAYMENT_FEE
174
180
  CASH_BACK: :CASH_BACK
175
181
  ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT
176
182
  CARD_TO_CARD: :CARD_TO_CARD
@@ -186,6 +192,8 @@ module Lithic
186
192
  SERVICE: :SERVICE
187
193
  TRANSFER: :TRANSFER
188
194
  COLLECTION: :COLLECTION
195
+ LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER
196
+ BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER
189
197
 
190
198
  def self?.values: -> ::Array[Lithic::Models::BookTransferCreateParams::type_]
191
199
  end
@@ -109,6 +109,7 @@ module Lithic
109
109
  | :INTERNAL
110
110
  | :REWARD
111
111
  | :PROGRAM_FUNDING
112
+ | :PROGRAM_TRANSFER
112
113
  | :TRANSFER
113
114
 
114
115
  module Category
@@ -122,6 +123,7 @@ module Lithic
122
123
  INTERNAL: :INTERNAL
123
124
  REWARD: :REWARD
124
125
  PROGRAM_FUNDING: :PROGRAM_FUNDING
126
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
125
127
  TRANSFER: :TRANSFER
126
128
 
127
129
  def self?.values: -> ::Array[Lithic::Models::BookTransferListParams::category]
@@ -100,6 +100,7 @@ module Lithic
100
100
  | :INTERNAL
101
101
  | :REWARD
102
102
  | :PROGRAM_FUNDING
103
+ | :PROGRAM_TRANSFER
103
104
  | :TRANSFER
104
105
 
105
106
  module Category
@@ -113,6 +114,7 @@ module Lithic
113
114
  INTERNAL: :INTERNAL
114
115
  REWARD: :REWARD
115
116
  PROGRAM_FUNDING: :PROGRAM_FUNDING
117
+ PROGRAM_TRANSFER: :PROGRAM_TRANSFER
116
118
  TRANSFER: :TRANSFER
117
119
 
118
120
  def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::category]
@@ -212,6 +214,7 @@ module Lithic
212
214
  | :INTEREST
213
215
  | :LATE_PAYMENT
214
216
  | :BILL_PAYMENT
217
+ | :PAYMENT_FEE
215
218
  | :CASH_BACK
216
219
  | :ACCOUNT_TO_ACCOUNT
217
220
  | :CARD_TO_CARD
@@ -227,6 +230,8 @@ module Lithic
227
230
  | :SERVICE
228
231
  | :TRANSFER
229
232
  | :COLLECTION
233
+ | :LITHIC_PROGRAM_TRANSFER
234
+ | :BANK_PROGRAM_TRANSFER
230
235
 
231
236
  module Type
232
237
  extend Lithic::Internal::Type::Enum
@@ -251,6 +256,7 @@ module Lithic
251
256
  INTEREST: :INTEREST
252
257
  LATE_PAYMENT: :LATE_PAYMENT
253
258
  BILL_PAYMENT: :BILL_PAYMENT
259
+ PAYMENT_FEE: :PAYMENT_FEE
254
260
  CASH_BACK: :CASH_BACK
255
261
  ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT
256
262
  CARD_TO_CARD: :CARD_TO_CARD
@@ -266,6 +272,8 @@ module Lithic
266
272
  SERVICE: :SERVICE
267
273
  TRANSFER: :TRANSFER
268
274
  COLLECTION: :COLLECTION
275
+ LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER
276
+ BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER
269
277
 
270
278
  def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::type_]
271
279
  end
@@ -0,0 +1,66 @@
1
+ module Lithic
2
+ module Models
3
+ type embed_session_generated_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
8
+ event_type: :"embed.session_generated",
9
+ session_id: String,
10
+ session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type
11
+ }
12
+
13
+ class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor account_token: String
15
+
16
+ attr_accessor card_token: String
17
+
18
+ attr_accessor device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails
19
+
20
+ attr_accessor event_type: :"embed.session_generated"
21
+
22
+ attr_accessor session_id: String
23
+
24
+ attr_accessor session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type
25
+
26
+ def initialize: (
27
+ account_token: String,
28
+ card_token: String,
29
+ device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
30
+ session_id: String,
31
+ session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type,
32
+ ?event_type: :"embed.session_generated"
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ account_token: String,
37
+ card_token: String,
38
+ device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
39
+ event_type: :"embed.session_generated",
40
+ session_id: String,
41
+ session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type
42
+ }
43
+
44
+ type device_details = { ip_address: String }
45
+
46
+ class DeviceDetails < Lithic::Internal::Type::BaseModel
47
+ attr_accessor ip_address: String
48
+
49
+ def initialize: (ip_address: String) -> void
50
+
51
+ def to_hash: -> { ip_address: String }
52
+ end
53
+
54
+ type session_type = :CARD_EMBED | :PIN_SETTING_EMBED
55
+
56
+ module SessionType
57
+ extend Lithic::Internal::Type::Enum
58
+
59
+ CARD_EMBED: :CARD_EMBED
60
+ PIN_SETTING_EMBED: :PIN_SETTING_EMBED
61
+
62
+ def self?.values: -> ::Array[Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type]
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,68 @@
1
+ module Lithic
2
+ module Models
3
+ type embed_viewed_webhook_event =
4
+ {
5
+ account_token: String,
6
+ card_token: String,
7
+ device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails,
8
+ embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type,
9
+ event_type: :"embed.viewed",
10
+ session_id: String
11
+ }
12
+
13
+ class EmbedViewedWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor account_token: String
15
+
16
+ attr_accessor card_token: String
17
+
18
+ attr_accessor device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails
19
+
20
+ attr_accessor embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type
21
+
22
+ attr_accessor event_type: :"embed.viewed"
23
+
24
+ attr_accessor session_id: String
25
+
26
+ def initialize: (
27
+ account_token: String,
28
+ card_token: String,
29
+ device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails,
30
+ embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type,
31
+ session_id: String,
32
+ ?event_type: :"embed.viewed"
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ account_token: String,
37
+ card_token: String,
38
+ device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails,
39
+ embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type,
40
+ event_type: :"embed.viewed",
41
+ session_id: String
42
+ }
43
+
44
+ type device_details = { ip_address: String }
45
+
46
+ class DeviceDetails < Lithic::Internal::Type::BaseModel
47
+ attr_accessor ip_address: String
48
+
49
+ def initialize: (ip_address: String) -> void
50
+
51
+ def to_hash: -> { ip_address: String }
52
+ end
53
+
54
+ type embed_type = :PAN | :CVV | :EXP_MONTH | :EXP_YEAR
55
+
56
+ module EmbedType
57
+ extend Lithic::Internal::Type::Enum
58
+
59
+ PAN: :PAN
60
+ CVV: :CVV
61
+ EXP_MONTH: :EXP_MONTH
62
+ EXP_YEAR: :EXP_YEAR
63
+
64
+ def self?.values: -> ::Array[Lithic::Models::EmbedViewedWebhookEvent::embed_type]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -64,6 +64,8 @@ module Lithic
64
64
  | :"dispute_transaction.created"
65
65
  | :"dispute_transaction.updated"
66
66
  | :"dispute.updated"
67
+ | :"embed.session_generated"
68
+ | :"embed.viewed"
67
69
  | :"external_bank_account.created"
68
70
  | :"external_bank_account.updated"
69
71
  | :"external_payment.created"
@@ -127,6 +129,8 @@ module Lithic
127
129
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
128
130
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
129
131
  DISPUTE_UPDATED: :"dispute.updated"
132
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
133
+ EMBED_VIEWED: :"embed.viewed"
130
134
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
131
135
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
132
136
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
@@ -101,6 +101,8 @@ module Lithic
101
101
  | :"dispute_transaction.created"
102
102
  | :"dispute_transaction.updated"
103
103
  | :"dispute.updated"
104
+ | :"embed.session_generated"
105
+ | :"embed.viewed"
104
106
  | :"external_bank_account.created"
105
107
  | :"external_bank_account.updated"
106
108
  | :"external_payment.created"
@@ -164,6 +166,8 @@ module Lithic
164
166
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
165
167
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
166
168
  DISPUTE_UPDATED: :"dispute.updated"
169
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
170
+ EMBED_VIEWED: :"embed.viewed"
167
171
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
168
172
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
169
173
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
@@ -69,6 +69,8 @@ module Lithic
69
69
  | :"dispute_transaction.created"
70
70
  | :"dispute_transaction.updated"
71
71
  | :"dispute.updated"
72
+ | :"embed.session_generated"
73
+ | :"embed.viewed"
72
74
  | :"external_bank_account.created"
73
75
  | :"external_bank_account.updated"
74
76
  | :"external_payment.created"
@@ -132,6 +134,8 @@ module Lithic
132
134
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
133
135
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
134
136
  DISPUTE_UPDATED: :"dispute.updated"
137
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
138
+ EMBED_VIEWED: :"embed.viewed"
135
139
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
136
140
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
137
141
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
@@ -79,6 +79,8 @@ module Lithic
79
79
  | :"dispute_transaction.created"
80
80
  | :"dispute_transaction.updated"
81
81
  | :"dispute.updated"
82
+ | :"embed.session_generated"
83
+ | :"embed.viewed"
82
84
  | :"external_bank_account.created"
83
85
  | :"external_bank_account.updated"
84
86
  | :"external_payment.created"
@@ -142,6 +144,8 @@ module Lithic
142
144
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
143
145
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
144
146
  DISPUTE_UPDATED: :"dispute.updated"
147
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
148
+ EMBED_VIEWED: :"embed.viewed"
145
149
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
146
150
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
147
151
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
@@ -65,6 +65,8 @@ module Lithic
65
65
  | :"dispute_transaction.created"
66
66
  | :"dispute_transaction.updated"
67
67
  | :"dispute.updated"
68
+ | :"embed.session_generated"
69
+ | :"embed.viewed"
68
70
  | :"external_bank_account.created"
69
71
  | :"external_bank_account.updated"
70
72
  | :"external_payment.created"
@@ -128,6 +130,8 @@ module Lithic
128
130
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
129
131
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
130
132
  DISPUTE_UPDATED: :"dispute.updated"
133
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
134
+ EMBED_VIEWED: :"embed.viewed"
131
135
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
132
136
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
133
137
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
@@ -84,6 +84,8 @@ module Lithic
84
84
  | :"dispute_transaction.created"
85
85
  | :"dispute_transaction.updated"
86
86
  | :"dispute.updated"
87
+ | :"embed.session_generated"
88
+ | :"embed.viewed"
87
89
  | :"external_bank_account.created"
88
90
  | :"external_bank_account.updated"
89
91
  | :"external_payment.created"
@@ -147,6 +149,8 @@ module Lithic
147
149
  DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
148
150
  DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
149
151
  DISPUTE_UPDATED: :"dispute.updated"
152
+ EMBED_SESSION_GENERATED: :"embed.session_generated"
153
+ EMBED_VIEWED: :"embed.viewed"
150
154
  EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
151
155
  EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
152
156
  EXTERNAL_PAYMENT_CREATED: :"external_payment.created"