lithic 0.1.0.pre.alpha.55 → 0.1.0.pre.alpha.56

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 (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  8. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  9. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +8 -53
  11. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  12. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  13. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  14. data/lib/lithic/models/auth_rules/v2_create_params.rb +14 -5
  15. data/lib/lithic/models/auth_rules/v2_create_response.rb +21 -8
  16. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -3
  17. data/lib/lithic/models/auth_rules/v2_draft_response.rb +21 -8
  18. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  19. data/lib/lithic/models/auth_rules/v2_list_response.rb +21 -8
  20. data/lib/lithic/models/auth_rules/v2_promote_response.rb +21 -8
  21. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +21 -8
  22. data/lib/lithic/models/auth_rules/v2_update_response.rb +21 -8
  23. data/lib/lithic/models/book_transfer_response.rb +1 -0
  24. data/lib/lithic/models/category_details.rb +27 -0
  25. data/lib/lithic/models/dispute.rb +242 -510
  26. data/lib/lithic/models/dispute_v2.rb +555 -0
  27. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  28. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  29. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  30. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  31. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  32. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  33. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  34. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  35. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  36. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  37. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  38. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  39. data/lib/lithic/models/external_payment.rb +3 -2
  40. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  41. data/lib/lithic/models/financial_account.rb +4 -3
  42. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  43. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -520
  44. data/lib/lithic/models/financial_accounts/statement.rb +73 -275
  45. data/lib/lithic/models/financial_event.rb +148 -0
  46. data/lib/lithic/models/financial_transaction.rb +3 -146
  47. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  48. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  49. data/lib/lithic/models/merchant.rb +70 -0
  50. data/lib/lithic/models/payment.rb +7 -5
  51. data/lib/lithic/models/payment_return_params.rb +62 -0
  52. data/lib/lithic/models/statement_totals.rb +100 -0
  53. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  54. data/lib/lithic/models/transaction.rb +3 -69
  55. data/lib/lithic/models/transactions/events/enhanced_data.rb +49 -40
  56. data/lib/lithic/models/transfer.rb +3 -146
  57. data/lib/lithic/models.rb +18 -0
  58. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  59. data/lib/lithic/resources/disputes.rb +10 -10
  60. data/lib/lithic/resources/disputes_v2.rb +74 -0
  61. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  62. data/lib/lithic/resources/payments.rb +48 -0
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +16 -5
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  67. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  68. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  69. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  70. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  71. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +13 -153
  72. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  73. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  74. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  75. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -7
  76. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -7
  77. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -4
  78. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -7
  79. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  80. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -7
  81. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -7
  82. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -7
  83. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -7
  84. data/rbi/lithic/models/book_transfer_response.rbi +2 -0
  85. data/rbi/lithic/models/category_details.rbi +43 -0
  86. data/rbi/lithic/models/dispute.rbi +395 -942
  87. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  88. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  89. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  90. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  91. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  92. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  93. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  94. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  95. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  96. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  97. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  98. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  99. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  100. data/rbi/lithic/models/external_payment.rbi +5 -6
  101. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  102. data/rbi/lithic/models/financial_account.rbi +12 -4
  103. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  104. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -802
  105. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -430
  106. data/rbi/lithic/models/financial_event.rbi +409 -0
  107. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  108. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  109. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  110. data/rbi/lithic/models/merchant.rbi +89 -0
  111. data/rbi/lithic/models/payment.rbi +16 -7
  112. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  113. data/rbi/lithic/models/statement_totals.rbi +128 -0
  114. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  115. data/rbi/lithic/models/transaction.rbi +4 -90
  116. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +74 -133
  117. data/rbi/lithic/models/transfer.rbi +4 -436
  118. data/rbi/lithic/models.rbi +19 -0
  119. data/rbi/lithic/resources/auth_rules/v2.rbi +8 -3
  120. data/rbi/lithic/resources/disputes.rbi +5 -7
  121. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  122. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  123. data/rbi/lithic/resources/payments.rbi +46 -0
  124. data/sig/lithic/client.rbs +2 -0
  125. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  126. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  127. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  128. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  129. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  130. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +10 -61
  131. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  132. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  133. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  134. data/sig/lithic/models/auth_rules/v2_create_params.rbs +11 -1
  135. data/sig/lithic/models/auth_rules/v2_create_response.rbs +13 -1
  136. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  137. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +13 -1
  138. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  139. data/sig/lithic/models/auth_rules/v2_list_response.rbs +13 -1
  140. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +13 -1
  141. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +13 -1
  142. data/sig/lithic/models/auth_rules/v2_update_response.rbs +13 -1
  143. data/sig/lithic/models/book_transfer_response.rbs +3 -1
  144. data/sig/lithic/models/category_details.rbs +26 -0
  145. data/sig/lithic/models/dispute.rbs +157 -417
  146. data/sig/lithic/models/dispute_v2.rbs +438 -0
  147. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  148. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  149. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  150. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  151. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  152. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  153. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  154. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  155. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  156. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  157. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  158. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  159. data/sig/lithic/models/external_payment.rbs +7 -7
  160. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  161. data/sig/lithic/models/financial_account.rbs +4 -4
  162. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  163. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -464
  164. data/sig/lithic/models/financial_accounts/statement.rbs +59 -244
  165. data/sig/lithic/models/financial_event.rbs +216 -0
  166. data/sig/lithic/models/financial_transaction.rbs +4 -217
  167. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  168. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  169. data/sig/lithic/models/merchant.rbs +50 -0
  170. data/sig/lithic/models/payment.rbs +9 -5
  171. data/sig/lithic/models/payment_return_params.rbs +46 -0
  172. data/sig/lithic/models/statement_totals.rbs +76 -0
  173. data/sig/lithic/models/transaction.rbs +4 -51
  174. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  175. data/sig/lithic/models/transfer.rbs +6 -219
  176. data/sig/lithic/models.rbs +18 -0
  177. data/sig/lithic/resources/disputes.rbs +5 -5
  178. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  179. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  180. data/sig/lithic/resources/payments.rbs +10 -0
  181. metadata +50 -17
  182. data/lib/lithic/models/dispute_create_response.rb +0 -326
  183. data/lib/lithic/models/dispute_delete_response.rb +0 -326
  184. data/lib/lithic/models/dispute_list_response.rb +0 -326
  185. data/lib/lithic/models/dispute_retrieve_response.rb +0 -326
  186. data/lib/lithic/models/dispute_update_response.rb +0 -326
  187. data/rbi/lithic/models/dispute_create_response.rbi +0 -599
  188. data/rbi/lithic/models/dispute_delete_response.rbi +0 -599
  189. data/rbi/lithic/models/dispute_list_response.rbi +0 -582
  190. data/rbi/lithic/models/dispute_retrieve_response.rbi +0 -601
  191. data/rbi/lithic/models/dispute_update_response.rbi +0 -599
  192. data/sig/lithic/models/dispute_create_response.rbs +0 -210
  193. data/sig/lithic/models/dispute_delete_response.rbs +0 -210
  194. data/sig/lithic/models/dispute_list_response.rbs +0 -210
  195. data/sig/lithic/models/dispute_retrieve_response.rbs +0 -210
  196. data/sig/lithic/models/dispute_update_response.rbs +0 -210
@@ -0,0 +1,438 @@
1
+ module Lithic
2
+ module Models
3
+ type dispute_v2 =
4
+ {
5
+ token: String,
6
+ account_token: String,
7
+ card_token: String,
8
+ case_id: String?,
9
+ created: Time,
10
+ currency: String,
11
+ disposition: Lithic::Models::DisputeV2::disposition?,
12
+ events: ::Array[Lithic::DisputeV2::Event],
13
+ liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
14
+ merchant: Lithic::Merchant,
15
+ network: Lithic::Models::DisputeV2::network,
16
+ status: Lithic::Models::DisputeV2::status?,
17
+ transaction_series: Lithic::DisputeV2::TransactionSeries?,
18
+ updated: Time
19
+ }
20
+
21
+ class DisputeV2 < Lithic::Internal::Type::BaseModel
22
+ attr_accessor token: String
23
+
24
+ attr_accessor account_token: String
25
+
26
+ attr_accessor card_token: String
27
+
28
+ attr_accessor case_id: String?
29
+
30
+ attr_accessor created: Time
31
+
32
+ attr_accessor currency: String
33
+
34
+ attr_accessor disposition: Lithic::Models::DisputeV2::disposition?
35
+
36
+ attr_accessor events: ::Array[Lithic::DisputeV2::Event]
37
+
38
+ attr_accessor liability_allocation: Lithic::DisputeV2::LiabilityAllocation
39
+
40
+ attr_accessor merchant: Lithic::Merchant
41
+
42
+ attr_accessor network: Lithic::Models::DisputeV2::network
43
+
44
+ attr_accessor status: Lithic::Models::DisputeV2::status?
45
+
46
+ attr_accessor transaction_series: Lithic::DisputeV2::TransactionSeries?
47
+
48
+ attr_accessor updated: Time
49
+
50
+ def initialize: (
51
+ token: String,
52
+ account_token: String,
53
+ card_token: String,
54
+ case_id: String?,
55
+ created: Time,
56
+ currency: String,
57
+ disposition: Lithic::Models::DisputeV2::disposition?,
58
+ events: ::Array[Lithic::DisputeV2::Event],
59
+ liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
60
+ merchant: Lithic::Merchant,
61
+ network: Lithic::Models::DisputeV2::network,
62
+ status: Lithic::Models::DisputeV2::status?,
63
+ transaction_series: Lithic::DisputeV2::TransactionSeries?,
64
+ updated: Time
65
+ ) -> void
66
+
67
+ def to_hash: -> {
68
+ token: String,
69
+ account_token: String,
70
+ card_token: String,
71
+ case_id: String?,
72
+ created: Time,
73
+ currency: String,
74
+ disposition: Lithic::Models::DisputeV2::disposition?,
75
+ events: ::Array[Lithic::DisputeV2::Event],
76
+ liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
77
+ merchant: Lithic::Merchant,
78
+ network: Lithic::Models::DisputeV2::network,
79
+ status: Lithic::Models::DisputeV2::status?,
80
+ transaction_series: Lithic::DisputeV2::TransactionSeries?,
81
+ updated: Time
82
+ }
83
+
84
+ type disposition = :WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED
85
+
86
+ module Disposition
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ WON: :WON
90
+ LOST: :LOST
91
+ PARTIALLY_WON: :PARTIALLY_WON
92
+ WITHDRAWN: :WITHDRAWN
93
+ DENIED: :DENIED
94
+
95
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::disposition]
96
+ end
97
+
98
+ type event =
99
+ {
100
+ token: String,
101
+ created: Time,
102
+ data: Lithic::Models::DisputeV2::Event::data,
103
+ type: Lithic::Models::DisputeV2::Event::type_
104
+ }
105
+
106
+ class Event < Lithic::Internal::Type::BaseModel
107
+ attr_accessor token: String
108
+
109
+ attr_accessor created: Time
110
+
111
+ attr_accessor data: Lithic::Models::DisputeV2::Event::data
112
+
113
+ attr_accessor type: Lithic::Models::DisputeV2::Event::type_
114
+
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
121
+
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
+ }
128
+
129
+ type data =
130
+ Lithic::DisputeV2::Event::Data::Workflow
131
+ | Lithic::DisputeV2::Event::Data::Financial
132
+ | Lithic::DisputeV2::Event::Data::CardholderLiability
133
+
134
+ module Data
135
+ extend Lithic::Internal::Type::Union
136
+
137
+ type workflow =
138
+ {
139
+ action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
140
+ amount: Integer?,
141
+ disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
142
+ reason: String?,
143
+ stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
144
+ type: :WORKFLOW
145
+ }
146
+
147
+ class Workflow < Lithic::Internal::Type::BaseModel
148
+ attr_accessor action: Lithic::Models::DisputeV2::Event::Data::Workflow::action
149
+
150
+ attr_accessor amount: Integer?
151
+
152
+ attr_accessor disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?
153
+
154
+ attr_accessor reason: String?
155
+
156
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage
157
+
158
+ attr_accessor type: :WORKFLOW
159
+
160
+ def initialize: (
161
+ action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
162
+ amount: Integer?,
163
+ disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
164
+ reason: String?,
165
+ stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
166
+ ?type: :WORKFLOW
167
+ ) -> void
168
+
169
+ def to_hash: -> {
170
+ action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
171
+ amount: Integer?,
172
+ disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
173
+ reason: String?,
174
+ stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
175
+ type: :WORKFLOW
176
+ }
177
+
178
+ type action = :OPENED | :CLOSED | :REOPENED
179
+
180
+ module Action
181
+ extend Lithic::Internal::Type::Enum
182
+
183
+ OPENED: :OPENED
184
+ CLOSED: :CLOSED
185
+ REOPENED: :REOPENED
186
+
187
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::action]
188
+ end
189
+
190
+ type disposition =
191
+ :WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED
192
+
193
+ module Disposition
194
+ extend Lithic::Internal::Type::Enum
195
+
196
+ WON: :WON
197
+ LOST: :LOST
198
+ PARTIALLY_WON: :PARTIALLY_WON
199
+ WITHDRAWN: :WITHDRAWN
200
+ DENIED: :DENIED
201
+
202
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::disposition]
203
+ end
204
+
205
+ type stage = :CLAIM
206
+
207
+ module Stage
208
+ extend Lithic::Internal::Type::Enum
209
+
210
+ CLAIM: :CLAIM
211
+
212
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::stage]
213
+ end
214
+ end
215
+
216
+ type financial =
217
+ {
218
+ amount: Integer,
219
+ polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
220
+ stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
221
+ type: :FINANCIAL
222
+ }
223
+
224
+ class Financial < Lithic::Internal::Type::BaseModel
225
+ attr_accessor amount: Integer
226
+
227
+ attr_accessor polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity
228
+
229
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage
230
+
231
+ attr_accessor type: :FINANCIAL
232
+
233
+ def initialize: (
234
+ amount: Integer,
235
+ polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
236
+ stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
237
+ ?type: :FINANCIAL
238
+ ) -> void
239
+
240
+ def to_hash: -> {
241
+ amount: Integer,
242
+ polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
243
+ stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
244
+ type: :FINANCIAL
245
+ }
246
+
247
+ type polarity = :CREDIT | :DEBIT
248
+
249
+ module Polarity
250
+ extend Lithic::Internal::Type::Enum
251
+
252
+ CREDIT: :CREDIT
253
+ DEBIT: :DEBIT
254
+
255
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::polarity]
256
+ end
257
+
258
+ type stage =
259
+ :CHARGEBACK
260
+ | :REPRESENTMENT
261
+ | :PREARBITRATION
262
+ | :ARBITRATION
263
+ | :COLLABORATION
264
+
265
+ module Stage
266
+ extend Lithic::Internal::Type::Enum
267
+
268
+ CHARGEBACK: :CHARGEBACK
269
+ REPRESENTMENT: :REPRESENTMENT
270
+ PREARBITRATION: :PREARBITRATION
271
+ ARBITRATION: :ARBITRATION
272
+ COLLABORATION: :COLLABORATION
273
+
274
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::stage]
275
+ end
276
+ end
277
+
278
+ type cardholder_liability =
279
+ {
280
+ action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
281
+ amount: Integer,
282
+ reason: String,
283
+ type: :CARDHOLDER_LIABILITY
284
+ }
285
+
286
+ class CardholderLiability < Lithic::Internal::Type::BaseModel
287
+ attr_accessor action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action
288
+
289
+ attr_accessor amount: Integer
290
+
291
+ attr_accessor reason: String
292
+
293
+ attr_accessor type: :CARDHOLDER_LIABILITY
294
+
295
+ def initialize: (
296
+ action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
297
+ amount: Integer,
298
+ reason: String,
299
+ ?type: :CARDHOLDER_LIABILITY
300
+ ) -> void
301
+
302
+ def to_hash: -> {
303
+ action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
304
+ amount: Integer,
305
+ reason: String,
306
+ type: :CARDHOLDER_LIABILITY
307
+ }
308
+
309
+ type action =
310
+ :PROVISIONAL_CREDIT_GRANTED
311
+ | :PROVISIONAL_CREDIT_REVERSED
312
+ | :WRITTEN_OFF
313
+
314
+ module Action
315
+ extend Lithic::Internal::Type::Enum
316
+
317
+ PROVISIONAL_CREDIT_GRANTED: :PROVISIONAL_CREDIT_GRANTED
318
+ PROVISIONAL_CREDIT_REVERSED: :PROVISIONAL_CREDIT_REVERSED
319
+ WRITTEN_OFF: :WRITTEN_OFF
320
+
321
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action]
322
+ end
323
+ end
324
+
325
+ def self?.variants: -> ::Array[Lithic::Models::DisputeV2::Event::data]
326
+ end
327
+
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
339
+ end
340
+
341
+ type liability_allocation =
342
+ {
343
+ denied_amount: Integer,
344
+ original_amount: Integer,
345
+ recovered_amount: Integer,
346
+ remaining_amount: Integer,
347
+ written_off_amount: Integer
348
+ }
349
+
350
+ class LiabilityAllocation < Lithic::Internal::Type::BaseModel
351
+ attr_accessor denied_amount: Integer
352
+
353
+ attr_accessor original_amount: Integer
354
+
355
+ attr_accessor recovered_amount: Integer
356
+
357
+ attr_accessor remaining_amount: Integer
358
+
359
+ attr_accessor written_off_amount: Integer
360
+
361
+ def initialize: (
362
+ denied_amount: Integer,
363
+ original_amount: Integer,
364
+ recovered_amount: Integer,
365
+ remaining_amount: Integer,
366
+ written_off_amount: Integer
367
+ ) -> void
368
+
369
+ def to_hash: -> {
370
+ denied_amount: Integer,
371
+ original_amount: Integer,
372
+ recovered_amount: Integer,
373
+ remaining_amount: Integer,
374
+ written_off_amount: Integer
375
+ }
376
+ end
377
+
378
+ type network = :VISA | :MASTERCARD
379
+
380
+ module Network
381
+ extend Lithic::Internal::Type::Enum
382
+
383
+ VISA: :VISA
384
+ MASTERCARD: :MASTERCARD
385
+
386
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::network]
387
+ end
388
+
389
+ type status = :OPEN | :CLOSED
390
+
391
+ module Status
392
+ extend Lithic::Internal::Type::Enum
393
+
394
+ OPEN: :OPEN
395
+ CLOSED: :CLOSED
396
+
397
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::status]
398
+ end
399
+
400
+ type transaction_series =
401
+ {
402
+ related_transaction_event_token: String?,
403
+ related_transaction_token: String,
404
+ type: Lithic::Models::DisputeV2::TransactionSeries::type_
405
+ }
406
+
407
+ class TransactionSeries < Lithic::Internal::Type::BaseModel
408
+ attr_accessor related_transaction_event_token: String?
409
+
410
+ attr_accessor related_transaction_token: String
411
+
412
+ attr_accessor type: Lithic::Models::DisputeV2::TransactionSeries::type_
413
+
414
+ def initialize: (
415
+ related_transaction_event_token: String?,
416
+ related_transaction_token: String,
417
+ type: Lithic::Models::DisputeV2::TransactionSeries::type_
418
+ ) -> void
419
+
420
+ def to_hash: -> {
421
+ related_transaction_event_token: String?,
422
+ related_transaction_token: String,
423
+ type: Lithic::Models::DisputeV2::TransactionSeries::type_
424
+ }
425
+
426
+ type type_ = :DISPUTE
427
+
428
+ module Type
429
+ extend Lithic::Internal::Type::Enum
430
+
431
+ DISPUTE: :DISPUTE
432
+
433
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::TransactionSeries::type_]
434
+ end
435
+ end
436
+ end
437
+ end
438
+ end
@@ -0,0 +1,77 @@
1
+ module Lithic
2
+ module Models
3
+ type disputes_v2_list_params =
4
+ {
5
+ account_token: String,
6
+ begin_: Time,
7
+ card_token: String,
8
+ disputed_transaction_token: String,
9
+ end_: Time,
10
+ ending_before: String,
11
+ page_size: Integer,
12
+ starting_after: String
13
+ }
14
+ & Lithic::Internal::Type::request_parameters
15
+
16
+ class DisputesV2ListParams < Lithic::Internal::Type::BaseModel
17
+ extend Lithic::Internal::Type::RequestParameters::Converter
18
+ include Lithic::Internal::Type::RequestParameters
19
+
20
+ attr_reader account_token: String?
21
+
22
+ def account_token=: (String) -> String
23
+
24
+ attr_reader begin_: Time?
25
+
26
+ def begin_=: (Time) -> Time
27
+
28
+ attr_reader card_token: String?
29
+
30
+ def card_token=: (String) -> String
31
+
32
+ attr_reader disputed_transaction_token: String?
33
+
34
+ def disputed_transaction_token=: (String) -> String
35
+
36
+ attr_reader end_: Time?
37
+
38
+ def end_=: (Time) -> Time
39
+
40
+ attr_reader ending_before: String?
41
+
42
+ def ending_before=: (String) -> String
43
+
44
+ attr_reader page_size: Integer?
45
+
46
+ def page_size=: (Integer) -> Integer
47
+
48
+ attr_reader starting_after: String?
49
+
50
+ def starting_after=: (String) -> String
51
+
52
+ def initialize: (
53
+ ?account_token: String,
54
+ ?begin_: Time,
55
+ ?card_token: String,
56
+ ?disputed_transaction_token: String,
57
+ ?end_: Time,
58
+ ?ending_before: String,
59
+ ?page_size: Integer,
60
+ ?starting_after: String,
61
+ ?request_options: Lithic::request_opts
62
+ ) -> void
63
+
64
+ def to_hash: -> {
65
+ account_token: String,
66
+ begin_: Time,
67
+ card_token: String,
68
+ disputed_transaction_token: String,
69
+ end_: Time,
70
+ ending_before: String,
71
+ page_size: Integer,
72
+ starting_after: String,
73
+ request_options: Lithic::RequestOptions
74
+ }
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ type disputes_v2_retrieve_params =
4
+ { } & Lithic::Internal::Type::request_parameters
5
+
6
+ class DisputesV2RetrieveParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: Lithic::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: Lithic::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -7,7 +7,7 @@ module Lithic
7
7
  country: String,
8
8
  postal_code: String,
9
9
  state: String,
10
- :address2 => String
10
+ :address2 => String?
11
11
  }
12
12
 
13
13
  class ExternalBankAccountAddress < Lithic::Internal::Type::BaseModel
@@ -21,9 +21,7 @@ module Lithic
21
21
 
22
22
  attr_accessor state: String
23
23
 
24
- attr_reader address2: String?
25
-
26
- def address2=: (String) -> String
24
+ attr_accessor address2: String?
27
25
 
28
26
  def initialize: (
29
27
  address1: String,
@@ -31,7 +29,7 @@ module Lithic
31
29
  country: String,
32
30
  postal_code: String,
33
31
  state: String,
34
- ?address2: String
32
+ ?address2: String?
35
33
  ) -> void
36
34
 
37
35
  def to_hash: -> {
@@ -40,7 +38,7 @@ module Lithic
40
38
  country: String,
41
39
  postal_code: String,
42
40
  state: String,
43
- :address2 => String
41
+ :address2 => String?
44
42
  }
45
43
  end
46
44
  end
@@ -15,15 +15,15 @@ module Lithic
15
15
  verification_attempts: Integer,
16
16
  verification_method: Lithic::Models::ExternalBankAccountCreateResponse::verification_method,
17
17
  verification_state: Lithic::Models::ExternalBankAccountCreateResponse::verification_state,
18
- account_token: String,
19
- address: Lithic::ExternalBankAccountAddress,
20
- company_id: String,
21
- dob: Date,
22
- doing_business_as: String,
23
- financial_account_token: String,
24
- name: String,
25
- user_defined_id: String,
26
- verification_failed_reason: String
18
+ account_token: String?,
19
+ address: Lithic::ExternalBankAccountAddress?,
20
+ company_id: String?,
21
+ dob: Date?,
22
+ doing_business_as: String?,
23
+ financial_account_token: String?,
24
+ name: String?,
25
+ user_defined_id: String?,
26
+ verification_failed_reason: String?
27
27
  }
28
28
 
29
29
  class ExternalBankAccountCreateResponse < Lithic::Internal::Type::BaseModel
@@ -53,43 +53,23 @@ module Lithic
53
53
 
54
54
  attr_accessor verification_state: Lithic::Models::ExternalBankAccountCreateResponse::verification_state
55
55
 
56
- attr_reader account_token: String?
56
+ attr_accessor account_token: String?
57
57
 
58
- def account_token=: (String) -> String
58
+ attr_accessor address: Lithic::ExternalBankAccountAddress?
59
59
 
60
- attr_reader address: Lithic::ExternalBankAccountAddress?
60
+ attr_accessor company_id: String?
61
61
 
62
- def address=: (
63
- Lithic::ExternalBankAccountAddress
64
- ) -> Lithic::ExternalBankAccountAddress
62
+ attr_accessor dob: Date?
65
63
 
66
- attr_reader company_id: String?
64
+ attr_accessor doing_business_as: String?
67
65
 
68
- def company_id=: (String) -> String
66
+ attr_accessor financial_account_token: String?
69
67
 
70
- attr_reader dob: Date?
68
+ attr_accessor name: String?
71
69
 
72
- def dob=: (Date) -> Date
70
+ attr_accessor user_defined_id: String?
73
71
 
74
- attr_reader doing_business_as: String?
75
-
76
- def doing_business_as=: (String) -> String
77
-
78
- attr_reader financial_account_token: String?
79
-
80
- def financial_account_token=: (String) -> String
81
-
82
- attr_reader name: String?
83
-
84
- def name=: (String) -> String
85
-
86
- attr_reader user_defined_id: String?
87
-
88
- def user_defined_id=: (String) -> String
89
-
90
- attr_reader verification_failed_reason: String?
91
-
92
- def verification_failed_reason=: (String) -> String
72
+ attr_accessor verification_failed_reason: String?
93
73
 
94
74
  def initialize: (
95
75
  token: String,
@@ -105,15 +85,15 @@ module Lithic
105
85
  verification_attempts: Integer,
106
86
  verification_method: Lithic::Models::ExternalBankAccountCreateResponse::verification_method,
107
87
  verification_state: Lithic::Models::ExternalBankAccountCreateResponse::verification_state,
108
- ?account_token: String,
109
- ?address: Lithic::ExternalBankAccountAddress,
110
- ?company_id: String,
111
- ?dob: Date,
112
- ?doing_business_as: String,
113
- ?financial_account_token: String,
114
- ?name: String,
115
- ?user_defined_id: String,
116
- ?verification_failed_reason: String
88
+ ?account_token: String?,
89
+ ?address: Lithic::ExternalBankAccountAddress?,
90
+ ?company_id: String?,
91
+ ?dob: Date?,
92
+ ?doing_business_as: String?,
93
+ ?financial_account_token: String?,
94
+ ?name: String?,
95
+ ?user_defined_id: String?,
96
+ ?verification_failed_reason: String?
117
97
  ) -> void
118
98
 
119
99
  def to_hash: -> {
@@ -130,15 +110,15 @@ module Lithic
130
110
  verification_attempts: Integer,
131
111
  verification_method: Lithic::Models::ExternalBankAccountCreateResponse::verification_method,
132
112
  verification_state: Lithic::Models::ExternalBankAccountCreateResponse::verification_state,
133
- account_token: String,
134
- address: Lithic::ExternalBankAccountAddress,
135
- company_id: String,
136
- dob: Date,
137
- doing_business_as: String,
138
- financial_account_token: String,
139
- name: String,
140
- user_defined_id: String,
141
- verification_failed_reason: String
113
+ account_token: String?,
114
+ address: Lithic::ExternalBankAccountAddress?,
115
+ company_id: String?,
116
+ dob: Date?,
117
+ doing_business_as: String?,
118
+ financial_account_token: String?,
119
+ name: String?,
120
+ user_defined_id: String?,
121
+ verification_failed_reason: String?
142
122
  }
143
123
 
144
124
  type owner_type = :BUSINESS | :INDIVIDUAL