lithic 0.18.1 → 0.20.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  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/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  10. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  11. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -0
  12. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  13. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  14. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  15. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  16. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  17. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  18. data/lib/lithic/models/book_transfer_response.rb +4 -0
  19. data/lib/lithic/models/card.rb +2 -2
  20. data/lib/lithic/models/card_provision_params.rb +10 -8
  21. data/lib/lithic/models/card_reassign_account_params.rb +29 -0
  22. data/lib/lithic/models/dispute_v2.rb +178 -130
  23. data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
  24. data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
  25. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  26. data/lib/lithic/models/event.rb +44 -12
  27. data/lib/lithic/models/event_list_params.rb +23 -6
  28. data/lib/lithic/models/event_subscription.rb +23 -6
  29. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  32. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  36. data/lib/lithic/models/financial_event.rb +8 -0
  37. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  38. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  39. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  40. data/lib/lithic/models/payment.rb +91 -6
  41. data/lib/lithic/models/payment_list_params.rb +1 -0
  42. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  43. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  44. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  45. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  46. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  47. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  48. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  49. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  50. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  51. data/lib/lithic/models.rb +10 -0
  52. data/lib/lithic/resources/blockchain_recipients.rb +57 -0
  53. data/lib/lithic/resources/card_authorizations.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +34 -2
  55. data/lib/lithic/resources/disputes_v2.rb +3 -1
  56. data/lib/lithic/resources/external_payments.rb +1 -1
  57. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  58. data/lib/lithic/resources/tokenizations.rb +1 -1
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  61. data/lib/lithic/resources/transactions.rb +4 -3
  62. data/lib/lithic/resources/webhooks.rb +1 -1
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +6 -1
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  67. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  68. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  69. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  70. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  71. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  72. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  74. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  75. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  76. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  77. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  78. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  79. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  80. data/rbi/lithic/models/card.rbi +2 -2
  81. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  82. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  83. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  84. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  85. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  86. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  87. data/rbi/lithic/models/event.rbi +70 -18
  88. data/rbi/lithic/models/event_list_params.rbi +31 -6
  89. data/rbi/lithic/models/event_subscription.rbi +31 -6
  90. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  91. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  92. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  93. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  94. data/rbi/lithic/models/financial_account.rbi +12 -0
  95. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  96. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  97. data/rbi/lithic/models/financial_event.rbi +34 -0
  98. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  99. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  100. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  101. data/rbi/lithic/models/payment.rbi +147 -4
  102. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  103. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  104. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  105. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  107. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  108. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  111. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  112. data/rbi/lithic/models.rbi +12 -0
  113. data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
  114. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  115. data/rbi/lithic/resources/cards.rbi +30 -6
  116. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  117. data/rbi/lithic/resources/external_payments.rbi +1 -1
  118. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  119. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  120. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  121. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +6 -11
  122. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  123. data/rbi/lithic/resources/transactions.rbi +8 -6
  124. data/rbi/lithic/resources/webhooks.rbi +2 -0
  125. data/sig/lithic/client.rbs +2 -0
  126. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  127. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  128. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  129. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  130. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  131. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  132. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -2
  133. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  134. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  135. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  136. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  137. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  138. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  139. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  140. data/sig/lithic/models/dispute_v2.rbs +145 -101
  141. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  142. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  143. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  144. data/sig/lithic/models/event.rbs +4 -0
  145. data/sig/lithic/models/event_list_params.rbs +4 -0
  146. data/sig/lithic/models/event_subscription.rbs +4 -0
  147. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  148. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  149. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  150. data/sig/lithic/models/financial_account.rbs +5 -0
  151. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  152. data/sig/lithic/models/financial_event.rbs +16 -0
  153. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  154. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  155. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  156. data/sig/lithic/models/payment.rbs +46 -1
  157. data/sig/lithic/models/payment_list_params.rbs +2 -1
  158. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  159. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  160. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  161. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  163. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  164. data/sig/lithic/models.rbs +10 -0
  165. data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
  166. data/sig/lithic/resources/cards.rbs +6 -0
  167. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  168. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  170. data/sig/lithic/resources/webhooks.rbs +2 -0
  171. metadata +20 -5
  172. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  173. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  174. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -6,10 +6,11 @@ module Lithic
6
6
  account_token: String,
7
7
  card_token: String,
8
8
  case_id: String?,
9
+ claim_token: String?,
9
10
  created: Time,
10
11
  currency: String,
11
12
  disposition: Lithic::Models::DisputeV2::disposition?,
12
- events: ::Array[Lithic::DisputeV2::Event],
13
+ events: ::Array[Lithic::Models::DisputeV2::event],
13
14
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
14
15
  merchant: Lithic::Merchant,
15
16
  network: Lithic::Models::DisputeV2::network,
@@ -27,13 +28,15 @@ module Lithic
27
28
 
28
29
  attr_accessor case_id: String?
29
30
 
31
+ attr_accessor claim_token: String?
32
+
30
33
  attr_accessor created: Time
31
34
 
32
35
  attr_accessor currency: String
33
36
 
34
37
  attr_accessor disposition: Lithic::Models::DisputeV2::disposition?
35
38
 
36
- attr_accessor events: ::Array[Lithic::DisputeV2::Event]
39
+ attr_accessor events: ::Array[Lithic::Models::DisputeV2::event]
37
40
 
38
41
  attr_accessor liability_allocation: Lithic::DisputeV2::LiabilityAllocation
39
42
 
@@ -52,10 +55,11 @@ module Lithic
52
55
  account_token: String,
53
56
  card_token: String,
54
57
  case_id: String?,
58
+ claim_token: String?,
55
59
  created: Time,
56
60
  currency: String,
57
61
  disposition: Lithic::Models::DisputeV2::disposition?,
58
- events: ::Array[Lithic::DisputeV2::Event],
62
+ events: ::Array[Lithic::Models::DisputeV2::event],
59
63
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
60
64
  merchant: Lithic::Merchant,
61
65
  network: Lithic::Models::DisputeV2::network,
@@ -69,10 +73,11 @@ module Lithic
69
73
  account_token: String,
70
74
  card_token: String,
71
75
  case_id: String?,
76
+ claim_token: String?,
72
77
  created: Time,
73
78
  currency: String,
74
79
  disposition: Lithic::Models::DisputeV2::disposition?,
75
- events: ::Array[Lithic::DisputeV2::Event],
80
+ events: ::Array[Lithic::Models::DisputeV2::event],
76
81
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
77
82
  merchant: Lithic::Merchant,
78
83
  network: Lithic::Models::DisputeV2::network,
@@ -96,83 +101,78 @@ module Lithic
96
101
  end
97
102
 
98
103
  type event =
99
- {
100
- token: String,
101
- created: Time,
102
- data: Lithic::Models::DisputeV2::Event::data,
103
- type: Lithic::Models::DisputeV2::Event::type_
104
- }
104
+ Lithic::DisputeV2::Event::Workflow
105
+ | Lithic::DisputeV2::Event::Financial
106
+ | Lithic::DisputeV2::Event::CardholderLiability
105
107
 
106
- class Event < Lithic::Internal::Type::BaseModel
107
- attr_accessor token: String
108
+ module Event
109
+ extend Lithic::Internal::Type::Union
108
110
 
109
- attr_accessor created: Time
111
+ type workflow =
112
+ {
113
+ token: String,
114
+ created: Time,
115
+ data: Lithic::DisputeV2::Event::Workflow::Data,
116
+ type: :WORKFLOW
117
+ }
110
118
 
111
- attr_accessor data: Lithic::Models::DisputeV2::Event::data
119
+ class Workflow < Lithic::Internal::Type::BaseModel
120
+ attr_accessor token: String
112
121
 
113
- attr_accessor type: Lithic::Models::DisputeV2::Event::type_
122
+ attr_accessor created: Time
114
123
 
115
- def initialize: (
116
- token: String,
117
- created: Time,
118
- data: Lithic::Models::DisputeV2::Event::data,
119
- type: Lithic::Models::DisputeV2::Event::type_
120
- ) -> void
124
+ attr_accessor data: Lithic::DisputeV2::Event::Workflow::Data
121
125
 
122
- def to_hash: -> {
123
- token: String,
124
- created: Time,
125
- data: Lithic::Models::DisputeV2::Event::data,
126
- type: Lithic::Models::DisputeV2::Event::type_
127
- }
126
+ attr_accessor type: :WORKFLOW
128
127
 
129
- type data =
130
- Lithic::DisputeV2::Event::Data::Workflow
131
- | Lithic::DisputeV2::Event::Data::Financial
132
- | Lithic::DisputeV2::Event::Data::CardholderLiability
128
+ def initialize: (
129
+ token: String,
130
+ created: Time,
131
+ data: Lithic::DisputeV2::Event::Workflow::Data,
132
+ ?type: :WORKFLOW
133
+ ) -> void
133
134
 
134
- module Data
135
- extend Lithic::Internal::Type::Union
135
+ def to_hash: -> {
136
+ token: String,
137
+ created: Time,
138
+ data: Lithic::DisputeV2::Event::Workflow::Data,
139
+ type: :WORKFLOW
140
+ }
136
141
 
137
- type workflow =
142
+ type data =
138
143
  {
139
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
144
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
140
145
  amount: Integer?,
141
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
146
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
142
147
  reason: String?,
143
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
144
- type: :WORKFLOW
148
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
145
149
  }
146
150
 
147
- class Workflow < Lithic::Internal::Type::BaseModel
148
- attr_accessor action: Lithic::Models::DisputeV2::Event::Data::Workflow::action
151
+ class Data < Lithic::Internal::Type::BaseModel
152
+ attr_accessor action: Lithic::Models::DisputeV2::Event::Workflow::Data::action
149
153
 
150
154
  attr_accessor amount: Integer?
151
155
 
152
- attr_accessor disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?
156
+ attr_accessor disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?
153
157
 
154
158
  attr_accessor reason: String?
155
159
 
156
- attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage
157
-
158
- attr_accessor type: :WORKFLOW
160
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
159
161
 
160
162
  def initialize: (
161
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
163
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
162
164
  amount: Integer?,
163
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
165
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
164
166
  reason: String?,
165
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
166
- ?type: :WORKFLOW
167
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
167
168
  ) -> void
168
169
 
169
170
  def to_hash: -> {
170
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
171
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
171
172
  amount: Integer?,
172
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
173
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
173
174
  reason: String?,
174
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
175
- type: :WORKFLOW
175
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
176
176
  }
177
177
 
178
178
  type action = :OPENED | :CLOSED | :REOPENED
@@ -184,7 +184,7 @@ module Lithic
184
184
  CLOSED: :CLOSED
185
185
  REOPENED: :REOPENED
186
186
 
187
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::action]
187
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::action]
188
188
  end
189
189
 
190
190
  type disposition =
@@ -199,7 +199,7 @@ module Lithic
199
199
  WITHDRAWN: :WITHDRAWN
200
200
  DENIED: :DENIED
201
201
 
202
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::disposition]
202
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::disposition]
203
203
  end
204
204
 
205
205
  type stage = :CLAIM
@@ -209,39 +209,66 @@ module Lithic
209
209
 
210
210
  CLAIM: :CLAIM
211
211
 
212
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::stage]
212
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::stage]
213
213
  end
214
214
  end
215
+ end
215
216
 
216
- type financial =
217
+ type financial =
218
+ {
219
+ token: String,
220
+ created: Time,
221
+ data: Lithic::DisputeV2::Event::Financial::Data,
222
+ type: :FINANCIAL
223
+ }
224
+
225
+ class Financial < Lithic::Internal::Type::BaseModel
226
+ attr_accessor token: String
227
+
228
+ attr_accessor created: Time
229
+
230
+ attr_accessor data: Lithic::DisputeV2::Event::Financial::Data
231
+
232
+ attr_accessor type: :FINANCIAL
233
+
234
+ def initialize: (
235
+ token: String,
236
+ created: Time,
237
+ data: Lithic::DisputeV2::Event::Financial::Data,
238
+ ?type: :FINANCIAL
239
+ ) -> void
240
+
241
+ def to_hash: -> {
242
+ token: String,
243
+ created: Time,
244
+ data: Lithic::DisputeV2::Event::Financial::Data,
245
+ type: :FINANCIAL
246
+ }
247
+
248
+ type data =
217
249
  {
218
250
  amount: Integer,
219
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
220
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
221
- type: :FINANCIAL
251
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
252
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
222
253
  }
223
254
 
224
- class Financial < Lithic::Internal::Type::BaseModel
255
+ class Data < Lithic::Internal::Type::BaseModel
225
256
  attr_accessor amount: Integer
226
257
 
227
- attr_accessor polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity
228
-
229
- attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage
258
+ attr_accessor polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity
230
259
 
231
- attr_accessor type: :FINANCIAL
260
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
232
261
 
233
262
  def initialize: (
234
263
  amount: Integer,
235
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
236
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
237
- ?type: :FINANCIAL
264
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
265
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
238
266
  ) -> void
239
267
 
240
268
  def to_hash: -> {
241
269
  amount: Integer,
242
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
243
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
244
- type: :FINANCIAL
270
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
271
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
245
272
  }
246
273
 
247
274
  type polarity = :CREDIT | :DEBIT
@@ -252,7 +279,7 @@ module Lithic
252
279
  CREDIT: :CREDIT
253
280
  DEBIT: :DEBIT
254
281
 
255
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::polarity]
282
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Financial::Data::polarity]
256
283
  end
257
284
 
258
285
  type stage =
@@ -271,45 +298,73 @@ module Lithic
271
298
  ARBITRATION: :ARBITRATION
272
299
  COLLABORATION: :COLLABORATION
273
300
 
274
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::stage]
301
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Financial::Data::stage]
275
302
  end
276
303
  end
304
+ end
305
+
306
+ type cardholder_liability =
307
+ {
308
+ token: String,
309
+ created: Time,
310
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
311
+ type: :CARDHOLDER_LIABILITY
312
+ }
313
+
314
+ class CardholderLiability < Lithic::Internal::Type::BaseModel
315
+ attr_accessor token: String
316
+
317
+ attr_accessor created: Time
318
+
319
+ attr_accessor data: Lithic::DisputeV2::Event::CardholderLiability::Data
277
320
 
278
- type cardholder_liability =
321
+ attr_accessor type: :CARDHOLDER_LIABILITY
322
+
323
+ def initialize: (
324
+ token: String,
325
+ created: Time,
326
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
327
+ ?type: :CARDHOLDER_LIABILITY
328
+ ) -> void
329
+
330
+ def to_hash: -> {
331
+ token: String,
332
+ created: Time,
333
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
334
+ type: :CARDHOLDER_LIABILITY
335
+ }
336
+
337
+ type data =
279
338
  {
280
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
339
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
281
340
  amount: Integer,
282
- reason: String,
283
- type: :CARDHOLDER_LIABILITY
341
+ reason: String?
284
342
  }
285
343
 
286
- class CardholderLiability < Lithic::Internal::Type::BaseModel
287
- attr_accessor action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action
344
+ class Data < Lithic::Internal::Type::BaseModel
345
+ attr_accessor action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action
288
346
 
289
347
  attr_accessor amount: Integer
290
348
 
291
- attr_accessor reason: String
292
-
293
- attr_accessor type: :CARDHOLDER_LIABILITY
349
+ attr_accessor reason: String?
294
350
 
295
351
  def initialize: (
296
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
352
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
297
353
  amount: Integer,
298
- reason: String,
299
- ?type: :CARDHOLDER_LIABILITY
354
+ reason: String?
300
355
  ) -> void
301
356
 
302
357
  def to_hash: -> {
303
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
358
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
304
359
  amount: Integer,
305
- reason: String,
306
- type: :CARDHOLDER_LIABILITY
360
+ reason: String?
307
361
  }
308
362
 
309
363
  type action =
310
364
  :PROVISIONAL_CREDIT_GRANTED
311
365
  | :PROVISIONAL_CREDIT_REVERSED
312
366
  | :WRITTEN_OFF
367
+ | :WRITE_OFF_REVERSED
313
368
 
314
369
  module Action
315
370
  extend Lithic::Internal::Type::Enum
@@ -317,25 +372,14 @@ module Lithic
317
372
  PROVISIONAL_CREDIT_GRANTED: :PROVISIONAL_CREDIT_GRANTED
318
373
  PROVISIONAL_CREDIT_REVERSED: :PROVISIONAL_CREDIT_REVERSED
319
374
  WRITTEN_OFF: :WRITTEN_OFF
375
+ WRITE_OFF_REVERSED: :WRITE_OFF_REVERSED
320
376
 
321
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action]
377
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action]
322
378
  end
323
379
  end
324
-
325
- def self?.variants: -> ::Array[Lithic::Models::DisputeV2::Event::data]
326
380
  end
327
381
 
328
- type type_ = :WORKFLOW | :FINANCIAL | :CARDHOLDER_LIABILITY
329
-
330
- module Type
331
- extend Lithic::Internal::Type::Enum
332
-
333
- WORKFLOW: :WORKFLOW
334
- FINANCIAL: :FINANCIAL
335
- CARDHOLDER_LIABILITY: :CARDHOLDER_LIABILITY
336
-
337
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::type_]
338
- end
382
+ def self?.variants: -> ::Array[Lithic::Models::DisputeV2::event]
339
383
  end
340
384
 
341
385
  type liability_allocation =
@@ -5,6 +5,7 @@ module Lithic
5
5
  account_token: String,
6
6
  begin_: Time,
7
7
  card_token: String,
8
+ claim_token: String,
8
9
  disputed_transaction_token: String,
9
10
  end_: Time,
10
11
  ending_before: String,
@@ -29,6 +30,10 @@ module Lithic
29
30
 
30
31
  def card_token=: (String) -> String
31
32
 
33
+ attr_reader claim_token: String?
34
+
35
+ def claim_token=: (String) -> String
36
+
32
37
  attr_reader disputed_transaction_token: String?
33
38
 
34
39
  def disputed_transaction_token=: (String) -> String
@@ -53,6 +58,7 @@ module Lithic
53
58
  ?account_token: String,
54
59
  ?begin_: Time,
55
60
  ?card_token: String,
61
+ ?claim_token: String,
56
62
  ?disputed_transaction_token: String,
57
63
  ?end_: Time,
58
64
  ?ending_before: String,
@@ -65,6 +71,7 @@ module Lithic
65
71
  account_token: String,
66
72
  begin_: Time,
67
73
  card_token: String,
74
+ claim_token: String,
68
75
  disputed_transaction_token: String,
69
76
  end_: Time,
70
77
  ending_before: String,
@@ -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"