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
@@ -7,7 +7,7 @@ module Lithic
7
7
  created: Time,
8
8
  currency: String,
9
9
  descriptor: String,
10
- events: ::Array[Lithic::FinancialTransaction::Event],
10
+ events: ::Array[Lithic::FinancialEvent],
11
11
  pending_amount: Integer,
12
12
  result: Lithic::Models::FinancialTransaction::result,
13
13
  settled_amount: Integer,
@@ -26,7 +26,7 @@ module Lithic
26
26
 
27
27
  attr_accessor descriptor: String
28
28
 
29
- attr_accessor events: ::Array[Lithic::FinancialTransaction::Event]
29
+ attr_accessor events: ::Array[Lithic::FinancialEvent]
30
30
 
31
31
  attr_accessor pending_amount: Integer
32
32
 
@@ -44,7 +44,7 @@ module Lithic
44
44
  created: Time,
45
45
  currency: String,
46
46
  descriptor: String,
47
- events: ::Array[Lithic::FinancialTransaction::Event],
47
+ events: ::Array[Lithic::FinancialEvent],
48
48
  pending_amount: Integer,
49
49
  result: Lithic::Models::FinancialTransaction::result,
50
50
  settled_amount: Integer,
@@ -58,7 +58,7 @@ module Lithic
58
58
  created: Time,
59
59
  currency: String,
60
60
  descriptor: String,
61
- events: ::Array[Lithic::FinancialTransaction::Event],
61
+ events: ::Array[Lithic::FinancialEvent],
62
62
  pending_amount: Integer,
63
63
  result: Lithic::Models::FinancialTransaction::result,
64
64
  settled_amount: Integer,
@@ -79,219 +79,6 @@ module Lithic
79
79
  def self?.values: -> ::Array[Lithic::Models::FinancialTransaction::category]
80
80
  end
81
81
 
82
- type event =
83
- {
84
- token: String,
85
- amount: Integer,
86
- created: Time,
87
- result: Lithic::Models::FinancialTransaction::Event::result,
88
- type: Lithic::Models::FinancialTransaction::Event::type_
89
- }
90
-
91
- class Event < Lithic::Internal::Type::BaseModel
92
- attr_reader token: String?
93
-
94
- def token=: (String) -> String
95
-
96
- attr_reader amount: Integer?
97
-
98
- def amount=: (Integer) -> Integer
99
-
100
- attr_reader created: Time?
101
-
102
- def created=: (Time) -> Time
103
-
104
- attr_reader result: Lithic::Models::FinancialTransaction::Event::result?
105
-
106
- def result=: (
107
- Lithic::Models::FinancialTransaction::Event::result
108
- ) -> Lithic::Models::FinancialTransaction::Event::result
109
-
110
- attr_reader type: Lithic::Models::FinancialTransaction::Event::type_?
111
-
112
- def type=: (
113
- Lithic::Models::FinancialTransaction::Event::type_
114
- ) -> Lithic::Models::FinancialTransaction::Event::type_
115
-
116
- def initialize: (
117
- ?token: String,
118
- ?amount: Integer,
119
- ?created: Time,
120
- ?result: Lithic::Models::FinancialTransaction::Event::result,
121
- ?type: Lithic::Models::FinancialTransaction::Event::type_
122
- ) -> void
123
-
124
- def to_hash: -> {
125
- token: String,
126
- amount: Integer,
127
- created: Time,
128
- result: Lithic::Models::FinancialTransaction::Event::result,
129
- type: Lithic::Models::FinancialTransaction::Event::type_
130
- }
131
-
132
- type result = :APPROVED | :DECLINED
133
-
134
- module Result
135
- extend Lithic::Internal::Type::Enum
136
-
137
- APPROVED: :APPROVED
138
- DECLINED: :DECLINED
139
-
140
- def self?.values: -> ::Array[Lithic::Models::FinancialTransaction::Event::result]
141
- end
142
-
143
- type type_ =
144
- :ACH_ORIGINATION_CANCELLED
145
- | :ACH_ORIGINATION_INITIATED
146
- | :ACH_ORIGINATION_PROCESSED
147
- | :ACH_ORIGINATION_RELEASED
148
- | :ACH_ORIGINATION_REJECTED
149
- | :ACH_ORIGINATION_REVIEWED
150
- | :ACH_ORIGINATION_SETTLED
151
- | :ACH_RECEIPT_PROCESSED
152
- | :ACH_RECEIPT_RELEASED
153
- | :ACH_RECEIPT_SETTLED
154
- | :ACH_RETURN_INITIATED
155
- | :ACH_RETURN_PROCESSED
156
- | :ACH_RETURN_REJECTED
157
- | :ACH_RETURN_SETTLED
158
- | :AUTHORIZATION
159
- | :AUTHORIZATION_ADVICE
160
- | :AUTHORIZATION_EXPIRY
161
- | :AUTHORIZATION_REVERSAL
162
- | :BALANCE_INQUIRY
163
- | :BILLING_ERROR
164
- | :BILLING_ERROR_REVERSAL
165
- | :CARD_TO_CARD
166
- | :CASH_BACK
167
- | :CASH_BACK_REVERSAL
168
- | :CLEARING
169
- | :COLLECTION
170
- | :CORRECTION_CREDIT
171
- | :CORRECTION_DEBIT
172
- | :CREDIT_AUTHORIZATION
173
- | :CREDIT_AUTHORIZATION_ADVICE
174
- | :CURRENCY_CONVERSION
175
- | :CURRENCY_CONVERSION_REVERSAL
176
- | :DISPUTE_WON
177
- | :EXTERNAL_ACH_CANCELED
178
- | :EXTERNAL_ACH_INITIATED
179
- | :EXTERNAL_ACH_RELEASED
180
- | :EXTERNAL_ACH_REVERSED
181
- | :EXTERNAL_ACH_SETTLED
182
- | :EXTERNAL_CHECK_CANCELED
183
- | :EXTERNAL_CHECK_INITIATED
184
- | :EXTERNAL_CHECK_RELEASED
185
- | :EXTERNAL_CHECK_REVERSED
186
- | :EXTERNAL_CHECK_SETTLED
187
- | :EXTERNAL_TRANSFER_CANCELED
188
- | :EXTERNAL_TRANSFER_INITIATED
189
- | :EXTERNAL_TRANSFER_RELEASED
190
- | :EXTERNAL_TRANSFER_REVERSED
191
- | :EXTERNAL_TRANSFER_SETTLED
192
- | :EXTERNAL_WIRE_CANCELED
193
- | :EXTERNAL_WIRE_INITIATED
194
- | :EXTERNAL_WIRE_RELEASED
195
- | :EXTERNAL_WIRE_REVERSED
196
- | :EXTERNAL_WIRE_SETTLED
197
- | :FINANCIAL_AUTHORIZATION
198
- | :FINANCIAL_CREDIT_AUTHORIZATION
199
- | :INTEREST
200
- | :INTEREST_REVERSAL
201
- | :INTERNAL_ADJUSTMENT
202
- | :LATE_PAYMENT
203
- | :LATE_PAYMENT_REVERSAL
204
- | :LOSS_WRITE_OFF
205
- | :PROVISIONAL_CREDIT
206
- | :PROVISIONAL_CREDIT_REVERSAL
207
- | :SERVICE
208
- | :RETURN
209
- | :RETURN_REVERSAL
210
- | :TRANSFER
211
- | :TRANSFER_INSUFFICIENT_FUNDS
212
- | :RETURNED_PAYMENT
213
- | :RETURNED_PAYMENT_REVERSAL
214
- | :LITHIC_NETWORK_PAYMENT
215
-
216
- module Type
217
- extend Lithic::Internal::Type::Enum
218
-
219
- ACH_ORIGINATION_CANCELLED: :ACH_ORIGINATION_CANCELLED
220
- ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED
221
- ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED
222
- ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED
223
- ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED
224
- ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED
225
- ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
226
- ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
227
- ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
228
- ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
229
- ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
230
- ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
231
- ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED
232
- ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED
233
- AUTHORIZATION: :AUTHORIZATION
234
- AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE
235
- AUTHORIZATION_EXPIRY: :AUTHORIZATION_EXPIRY
236
- AUTHORIZATION_REVERSAL: :AUTHORIZATION_REVERSAL
237
- BALANCE_INQUIRY: :BALANCE_INQUIRY
238
- BILLING_ERROR: :BILLING_ERROR
239
- BILLING_ERROR_REVERSAL: :BILLING_ERROR_REVERSAL
240
- CARD_TO_CARD: :CARD_TO_CARD
241
- CASH_BACK: :CASH_BACK
242
- CASH_BACK_REVERSAL: :CASH_BACK_REVERSAL
243
- CLEARING: :CLEARING
244
- COLLECTION: :COLLECTION
245
- CORRECTION_CREDIT: :CORRECTION_CREDIT
246
- CORRECTION_DEBIT: :CORRECTION_DEBIT
247
- CREDIT_AUTHORIZATION: :CREDIT_AUTHORIZATION
248
- CREDIT_AUTHORIZATION_ADVICE: :CREDIT_AUTHORIZATION_ADVICE
249
- CURRENCY_CONVERSION: :CURRENCY_CONVERSION
250
- CURRENCY_CONVERSION_REVERSAL: :CURRENCY_CONVERSION_REVERSAL
251
- DISPUTE_WON: :DISPUTE_WON
252
- EXTERNAL_ACH_CANCELED: :EXTERNAL_ACH_CANCELED
253
- EXTERNAL_ACH_INITIATED: :EXTERNAL_ACH_INITIATED
254
- EXTERNAL_ACH_RELEASED: :EXTERNAL_ACH_RELEASED
255
- EXTERNAL_ACH_REVERSED: :EXTERNAL_ACH_REVERSED
256
- EXTERNAL_ACH_SETTLED: :EXTERNAL_ACH_SETTLED
257
- EXTERNAL_CHECK_CANCELED: :EXTERNAL_CHECK_CANCELED
258
- EXTERNAL_CHECK_INITIATED: :EXTERNAL_CHECK_INITIATED
259
- EXTERNAL_CHECK_RELEASED: :EXTERNAL_CHECK_RELEASED
260
- EXTERNAL_CHECK_REVERSED: :EXTERNAL_CHECK_REVERSED
261
- EXTERNAL_CHECK_SETTLED: :EXTERNAL_CHECK_SETTLED
262
- EXTERNAL_TRANSFER_CANCELED: :EXTERNAL_TRANSFER_CANCELED
263
- EXTERNAL_TRANSFER_INITIATED: :EXTERNAL_TRANSFER_INITIATED
264
- EXTERNAL_TRANSFER_RELEASED: :EXTERNAL_TRANSFER_RELEASED
265
- EXTERNAL_TRANSFER_REVERSED: :EXTERNAL_TRANSFER_REVERSED
266
- EXTERNAL_TRANSFER_SETTLED: :EXTERNAL_TRANSFER_SETTLED
267
- EXTERNAL_WIRE_CANCELED: :EXTERNAL_WIRE_CANCELED
268
- EXTERNAL_WIRE_INITIATED: :EXTERNAL_WIRE_INITIATED
269
- EXTERNAL_WIRE_RELEASED: :EXTERNAL_WIRE_RELEASED
270
- EXTERNAL_WIRE_REVERSED: :EXTERNAL_WIRE_REVERSED
271
- EXTERNAL_WIRE_SETTLED: :EXTERNAL_WIRE_SETTLED
272
- FINANCIAL_AUTHORIZATION: :FINANCIAL_AUTHORIZATION
273
- FINANCIAL_CREDIT_AUTHORIZATION: :FINANCIAL_CREDIT_AUTHORIZATION
274
- INTEREST: :INTEREST
275
- INTEREST_REVERSAL: :INTEREST_REVERSAL
276
- INTERNAL_ADJUSTMENT: :INTERNAL_ADJUSTMENT
277
- LATE_PAYMENT: :LATE_PAYMENT
278
- LATE_PAYMENT_REVERSAL: :LATE_PAYMENT_REVERSAL
279
- LOSS_WRITE_OFF: :LOSS_WRITE_OFF
280
- PROVISIONAL_CREDIT: :PROVISIONAL_CREDIT
281
- PROVISIONAL_CREDIT_REVERSAL: :PROVISIONAL_CREDIT_REVERSAL
282
- SERVICE: :SERVICE
283
- RETURN: :RETURN
284
- RETURN_REVERSAL: :RETURN_REVERSAL
285
- TRANSFER: :TRANSFER
286
- TRANSFER_INSUFFICIENT_FUNDS: :TRANSFER_INSUFFICIENT_FUNDS
287
- RETURNED_PAYMENT: :RETURNED_PAYMENT
288
- RETURNED_PAYMENT_REVERSAL: :RETURNED_PAYMENT_REVERSAL
289
- LITHIC_NETWORK_PAYMENT: :LITHIC_NETWORK_PAYMENT
290
-
291
- def self?.values: -> ::Array[Lithic::Models::FinancialTransaction::Event::type_]
292
- end
293
- end
294
-
295
82
  type result = :APPROVED | :DECLINED
296
83
 
297
84
  module Result
@@ -103,7 +103,8 @@ module Lithic
103
103
  def self?.values: -> ::Array[Lithic::Models::ManagementOperationListParams::category]
104
104
  end
105
105
 
106
- type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
106
+ type status =
107
+ :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED | :RETURNED
107
108
 
108
109
  module Status
109
110
  extend Lithic::Internal::Type::Enum
@@ -113,6 +114,7 @@ module Lithic
113
114
  DECLINED: :DECLINED
114
115
  REVERSED: :REVERSED
115
116
  CANCELED: :CANCELED
117
+ RETURNED: :RETURNED
116
118
 
117
119
  def self?.values: -> ::Array[Lithic::Models::ManagementOperationListParams::status]
118
120
  end
@@ -17,7 +17,7 @@ module Lithic
17
17
  result: Lithic::Models::ManagementOperationTransaction::result,
18
18
  settled_amount: Integer,
19
19
  transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
20
- user_defined_id: String
20
+ user_defined_id: String?
21
21
  }
22
22
 
23
23
  class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
@@ -79,9 +79,7 @@ module Lithic
79
79
 
80
80
  attr_accessor transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?
81
81
 
82
- attr_reader user_defined_id: String?
83
-
84
- def user_defined_id=: (String) -> String
82
+ attr_accessor user_defined_id: String?
85
83
 
86
84
  def initialize: (
87
85
  token: String,
@@ -99,7 +97,7 @@ module Lithic
99
97
  ?result: Lithic::Models::ManagementOperationTransaction::result,
100
98
  ?settled_amount: Integer,
101
99
  ?transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
102
- ?user_defined_id: String
100
+ ?user_defined_id: String?
103
101
  ) -> void
104
102
 
105
103
  def to_hash: -> {
@@ -118,10 +116,11 @@ module Lithic
118
116
  result: Lithic::Models::ManagementOperationTransaction::result,
119
117
  settled_amount: Integer,
120
118
  transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
121
- user_defined_id: String
119
+ user_defined_id: String?
122
120
  }
123
121
 
124
- type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
122
+ type status =
123
+ :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED | :RETURNED
125
124
 
126
125
  module Status
127
126
  extend Lithic::Internal::Type::Enum
@@ -131,6 +130,7 @@ module Lithic
131
130
  DECLINED: :DECLINED
132
131
  REVERSED: :REVERSED
133
132
  CANCELED: :CANCELED
133
+ RETURNED: :RETURNED
134
134
 
135
135
  def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::status]
136
136
  end
@@ -175,7 +175,7 @@ module Lithic
175
175
  memo: String,
176
176
  result: Lithic::Models::ManagementOperationTransaction::Event::result,
177
177
  type: Lithic::Models::ManagementOperationTransaction::Event::type_,
178
- subtype: String
178
+ subtype: String?
179
179
  }
180
180
 
181
181
  class Event < Lithic::Internal::Type::BaseModel
@@ -195,9 +195,7 @@ module Lithic
195
195
 
196
196
  attr_accessor type: Lithic::Models::ManagementOperationTransaction::Event::type_
197
197
 
198
- attr_reader subtype: String?
199
-
200
- def subtype=: (String) -> String
198
+ attr_accessor subtype: String?
201
199
 
202
200
  def initialize: (
203
201
  token: String,
@@ -208,7 +206,7 @@ module Lithic
208
206
  memo: String,
209
207
  result: Lithic::Models::ManagementOperationTransaction::Event::result,
210
208
  type: Lithic::Models::ManagementOperationTransaction::Event::type_,
211
- ?subtype: String
209
+ ?subtype: String?
212
210
  ) -> void
213
211
 
214
212
  def to_hash: -> {
@@ -220,7 +218,7 @@ module Lithic
220
218
  memo: String,
221
219
  result: Lithic::Models::ManagementOperationTransaction::Event::result,
222
220
  type: Lithic::Models::ManagementOperationTransaction::Event::type_,
223
- subtype: String
221
+ subtype: String?
224
222
  }
225
223
 
226
224
  type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
@@ -0,0 +1,50 @@
1
+ module Lithic
2
+ module Models
3
+ type merchant =
4
+ {
5
+ acceptor_id: String,
6
+ acquiring_institution_id: String,
7
+ city: String,
8
+ country: String,
9
+ descriptor: String,
10
+ mcc: String,
11
+ state: String
12
+ }
13
+
14
+ class Merchant < Lithic::Internal::Type::BaseModel
15
+ attr_accessor acceptor_id: String
16
+
17
+ attr_accessor acquiring_institution_id: String
18
+
19
+ attr_accessor city: String
20
+
21
+ attr_accessor country: String
22
+
23
+ attr_accessor descriptor: String
24
+
25
+ attr_accessor mcc: String
26
+
27
+ attr_accessor state: String
28
+
29
+ def initialize: (
30
+ acceptor_id: String,
31
+ acquiring_institution_id: String,
32
+ city: String,
33
+ country: String,
34
+ descriptor: String,
35
+ mcc: String,
36
+ state: String
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ acceptor_id: String,
41
+ acquiring_institution_id: String,
42
+ city: String,
43
+ country: String,
44
+ descriptor: String,
45
+ mcc: String,
46
+ state: String
47
+ }
48
+ end
49
+ end
50
+ end
@@ -13,7 +13,7 @@ module Lithic
13
13
  method_: Lithic::Models::Payment::method_,
14
14
  method_attributes: Lithic::Models::Payment::method_attributes,
15
15
  pending_amount: Integer,
16
- related_account_tokens: Lithic::Payment::RelatedAccountTokens,
16
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens?,
17
17
  result: Lithic::Models::Payment::result,
18
18
  settled_amount: Integer,
19
19
  source: Lithic::Models::Payment::source,
@@ -49,7 +49,7 @@ module Lithic
49
49
 
50
50
  attr_accessor pending_amount: Integer
51
51
 
52
- attr_accessor related_account_tokens: Lithic::Payment::RelatedAccountTokens
52
+ attr_accessor related_account_tokens: Lithic::Payment::RelatedAccountTokens?
53
53
 
54
54
  attr_accessor result: Lithic::Models::Payment::result
55
55
 
@@ -88,7 +88,7 @@ module Lithic
88
88
  method_: Lithic::Models::Payment::method_,
89
89
  method_attributes: Lithic::Models::Payment::method_attributes,
90
90
  pending_amount: Integer,
91
- related_account_tokens: Lithic::Payment::RelatedAccountTokens,
91
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens?,
92
92
  result: Lithic::Models::Payment::result,
93
93
  settled_amount: Integer,
94
94
  source: Lithic::Models::Payment::source,
@@ -114,7 +114,7 @@ module Lithic
114
114
  method_: Lithic::Models::Payment::method_,
115
115
  method_attributes: Lithic::Models::Payment::method_attributes,
116
116
  pending_amount: Integer,
117
- related_account_tokens: Lithic::Payment::RelatedAccountTokens,
117
+ related_account_tokens: Lithic::Payment::RelatedAccountTokens?,
118
118
  result: Lithic::Models::Payment::result,
119
119
  settled_amount: Integer,
120
120
  source: Lithic::Models::Payment::source,
@@ -278,6 +278,7 @@ module Lithic
278
278
 
279
279
  type detailed_result =
280
280
  :APPROVED
281
+ | :DECLINED
281
282
  | :FUNDS_INSUFFICIENT
282
283
  | :ACCOUNT_INVALID
283
284
  | :PROGRAM_TRANSACTION_LIMIT_EXCEEDED
@@ -288,6 +289,7 @@ module Lithic
288
289
  extend Lithic::Internal::Type::Enum
289
290
 
290
291
  APPROVED: :APPROVED
292
+ DECLINED: :DECLINED
291
293
  FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT
292
294
  ACCOUNT_INVALID: :ACCOUNT_INVALID
293
295
  PROGRAM_TRANSACTION_LIMIT_EXCEEDED: :PROGRAM_TRANSACTION_LIMIT_EXCEEDED
@@ -483,7 +485,8 @@ module Lithic
483
485
  def self?.values: -> ::Array[Lithic::Models::Payment::source]
484
486
  end
485
487
 
486
- type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
488
+ type status =
489
+ :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED | :RETURNED
487
490
 
488
491
  module Status
489
492
  extend Lithic::Internal::Type::Enum
@@ -493,6 +496,7 @@ module Lithic
493
496
  DECLINED: :DECLINED
494
497
  REVERSED: :REVERSED
495
498
  CANCELED: :CANCELED
499
+ RETURNED: :RETURNED
496
500
 
497
501
  def self?.values: -> ::Array[Lithic::Models::Payment::status]
498
502
  end
@@ -0,0 +1,46 @@
1
+ module Lithic
2
+ module Models
3
+ type payment_return_params =
4
+ {
5
+ financial_account_token: String,
6
+ return_reason_code: String,
7
+ addenda: String?,
8
+ date_of_death: Date?,
9
+ memo: String?
10
+ }
11
+ & Lithic::Internal::Type::request_parameters
12
+
13
+ class PaymentReturnParams < Lithic::Internal::Type::BaseModel
14
+ extend Lithic::Internal::Type::RequestParameters::Converter
15
+ include Lithic::Internal::Type::RequestParameters
16
+
17
+ attr_accessor financial_account_token: String
18
+
19
+ attr_accessor return_reason_code: String
20
+
21
+ attr_accessor addenda: String?
22
+
23
+ attr_accessor date_of_death: Date?
24
+
25
+ attr_accessor memo: String?
26
+
27
+ def initialize: (
28
+ financial_account_token: String,
29
+ return_reason_code: String,
30
+ ?addenda: String?,
31
+ ?date_of_death: Date?,
32
+ ?memo: String?,
33
+ ?request_options: Lithic::request_opts
34
+ ) -> void
35
+
36
+ def to_hash: -> {
37
+ financial_account_token: String,
38
+ return_reason_code: String,
39
+ addenda: String?,
40
+ date_of_death: Date?,
41
+ memo: String?,
42
+ request_options: Lithic::RequestOptions
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,76 @@
1
+ module Lithic
2
+ module Models
3
+ type statement_totals =
4
+ {
5
+ balance_transfers: Integer,
6
+ cash_advances: Integer,
7
+ credits: Integer,
8
+ debits: Integer,
9
+ fees: Integer,
10
+ interest: Integer,
11
+ payments: Integer,
12
+ purchases: Integer,
13
+ credit_details: top,
14
+ debit_details: top,
15
+ payment_details: top
16
+ }
17
+
18
+ class StatementTotals < Lithic::Internal::Type::BaseModel
19
+ attr_accessor balance_transfers: Integer
20
+
21
+ attr_accessor cash_advances: Integer
22
+
23
+ attr_accessor credits: Integer
24
+
25
+ attr_accessor debits: Integer
26
+
27
+ attr_accessor fees: Integer
28
+
29
+ attr_accessor interest: Integer
30
+
31
+ attr_accessor payments: Integer
32
+
33
+ attr_accessor purchases: Integer
34
+
35
+ attr_reader credit_details: top?
36
+
37
+ def credit_details=: (top) -> top
38
+
39
+ attr_reader debit_details: top?
40
+
41
+ def debit_details=: (top) -> top
42
+
43
+ attr_reader payment_details: top?
44
+
45
+ def payment_details=: (top) -> top
46
+
47
+ def initialize: (
48
+ balance_transfers: Integer,
49
+ cash_advances: Integer,
50
+ credits: Integer,
51
+ debits: Integer,
52
+ fees: Integer,
53
+ interest: Integer,
54
+ payments: Integer,
55
+ purchases: Integer,
56
+ ?credit_details: top,
57
+ ?debit_details: top,
58
+ ?payment_details: top
59
+ ) -> void
60
+
61
+ def to_hash: -> {
62
+ balance_transfers: Integer,
63
+ cash_advances: Integer,
64
+ credits: Integer,
65
+ debits: Integer,
66
+ fees: Integer,
67
+ interest: Integer,
68
+ payments: Integer,
69
+ purchases: Integer,
70
+ credit_details: top,
71
+ debit_details: top,
72
+ payment_details: top
73
+ }
74
+ end
75
+ end
76
+ end
@@ -15,7 +15,7 @@ module Lithic
15
15
  cardholder_authentication: Lithic::Transaction::CardholderAuthentication?,
16
16
  created: Time,
17
17
  financial_account_token: String?,
18
- merchant: Lithic::Transaction::Merchant,
18
+ merchant: Lithic::Merchant,
19
19
  merchant_amount: Integer?,
20
20
  merchant_authorization_amount: Integer?,
21
21
  merchant_currency: String,
@@ -57,7 +57,7 @@ module Lithic
57
57
 
58
58
  attr_accessor financial_account_token: String?
59
59
 
60
- attr_accessor merchant: Lithic::Transaction::Merchant
60
+ attr_accessor merchant: Lithic::Merchant
61
61
 
62
62
  attr_accessor merchant_amount: Integer?
63
63
 
@@ -101,7 +101,7 @@ module Lithic
101
101
  cardholder_authentication: Lithic::Transaction::CardholderAuthentication?,
102
102
  created: Time,
103
103
  financial_account_token: String?,
104
- merchant: Lithic::Transaction::Merchant,
104
+ merchant: Lithic::Merchant,
105
105
  merchant_amount: Integer?,
106
106
  merchant_authorization_amount: Integer?,
107
107
  merchant_currency: String,
@@ -130,7 +130,7 @@ module Lithic
130
130
  cardholder_authentication: Lithic::Transaction::CardholderAuthentication?,
131
131
  created: Time,
132
132
  financial_account_token: String?,
133
- merchant: Lithic::Transaction::Merchant,
133
+ merchant: Lithic::Merchant,
134
134
  merchant_amount: Integer?,
135
135
  merchant_authorization_amount: Integer?,
136
136
  merchant_currency: String,
@@ -344,53 +344,6 @@ module Lithic
344
344
  end
345
345
  end
346
346
 
347
- type merchant =
348
- {
349
- acceptor_id: String,
350
- acquiring_institution_id: String,
351
- city: String,
352
- country: String,
353
- descriptor: String,
354
- mcc: String,
355
- state: String
356
- }
357
-
358
- class Merchant < Lithic::Internal::Type::BaseModel
359
- attr_accessor acceptor_id: String
360
-
361
- attr_accessor acquiring_institution_id: String
362
-
363
- attr_accessor city: String
364
-
365
- attr_accessor country: String
366
-
367
- attr_accessor descriptor: String
368
-
369
- attr_accessor mcc: String
370
-
371
- attr_accessor state: String
372
-
373
- def initialize: (
374
- acceptor_id: String,
375
- acquiring_institution_id: String,
376
- city: String,
377
- country: String,
378
- descriptor: String,
379
- mcc: String,
380
- state: String
381
- ) -> void
382
-
383
- def to_hash: -> {
384
- acceptor_id: String,
385
- acquiring_institution_id: String,
386
- city: String,
387
- country: String,
388
- descriptor: String,
389
- mcc: String,
390
- state: String
391
- }
392
- end
393
-
394
347
  type network =
395
348
  :AMEX | :INTERLINK | :MAESTRO | :MASTERCARD | :UNKNOWN | :VISA
396
349