lithic 0.1.0.pre.alpha.54 → 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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -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/account_holder_simulate_enrollment_review_response.rb +2 -2
  8. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
  17. data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
  19. data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
  20. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
  23. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  24. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
  25. data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
  26. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  27. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  28. data/lib/lithic/models/book_transfer_response.rb +6 -5
  29. data/lib/lithic/models/category_details.rb +27 -0
  30. data/lib/lithic/models/dispute_v2.rb +555 -0
  31. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  32. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  33. data/lib/lithic/models/event.rb +213 -69
  34. data/lib/lithic/models/event_list_params.rb +112 -6
  35. data/lib/lithic/models/event_subscription.rb +112 -6
  36. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  37. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  38. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  39. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  40. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  41. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  42. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  43. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  44. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  45. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  46. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  47. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  48. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  49. data/lib/lithic/models/external_payment.rb +3 -2
  50. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  51. data/lib/lithic/models/financial_account.rb +5 -68
  52. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  53. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  54. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
  55. data/lib/lithic/models/financial_accounts/statement.rb +73 -211
  56. data/lib/lithic/models/financial_event.rb +148 -0
  57. data/lib/lithic/models/financial_transaction.rb +3 -146
  58. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  59. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  60. data/lib/lithic/models/merchant.rb +70 -0
  61. data/lib/lithic/models/payment.rb +16 -14
  62. data/lib/lithic/models/payment_return_params.rb +62 -0
  63. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  64. data/lib/lithic/models/statement_totals.rb +100 -0
  65. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  66. data/lib/lithic/models/tokenization.rb +189 -23
  67. data/lib/lithic/models/transaction.rb +15 -185
  68. data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
  69. data/lib/lithic/models/transfer.rb +3 -146
  70. data/lib/lithic/models.rb +18 -0
  71. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  72. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  73. data/lib/lithic/resources/disputes_v2.rb +74 -0
  74. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  75. data/lib/lithic/resources/payments.rb +53 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +18 -3
  78. data/rbi/lithic/client.rbi +3 -0
  79. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  80. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  81. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  82. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  83. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  84. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  85. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  86. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
  87. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  88. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  89. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  90. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
  91. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
  92. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
  93. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
  94. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  95. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
  96. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
  97. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  98. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
  99. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
  100. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  101. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  102. data/rbi/lithic/models/book_transfer_response.rbi +16 -11
  103. data/rbi/lithic/models/category_details.rbi +43 -0
  104. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  105. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  106. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  107. data/rbi/lithic/models/event.rbi +348 -111
  108. data/rbi/lithic/models/event_list_params.rbi +155 -25
  109. data/rbi/lithic/models/event_subscription.rbi +155 -25
  110. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  111. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  112. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  113. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  114. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  115. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  116. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  117. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  118. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  119. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  120. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  121. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  122. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  123. data/rbi/lithic/models/external_payment.rbi +5 -6
  124. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  125. data/rbi/lithic/models/financial_account.rbi +15 -136
  126. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  127. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  128. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
  129. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
  130. data/rbi/lithic/models/financial_event.rbi +409 -0
  131. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  132. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  133. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  134. data/rbi/lithic/models/merchant.rbi +89 -0
  135. data/rbi/lithic/models/payment.rbi +27 -21
  136. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  137. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  138. data/rbi/lithic/models/statement_totals.rbi +128 -0
  139. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  140. data/rbi/lithic/models/tokenization.rbi +429 -34
  141. data/rbi/lithic/models/transaction.rbi +26 -336
  142. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
  143. data/rbi/lithic/models/transfer.rbi +4 -436
  144. data/rbi/lithic/models.rbi +19 -0
  145. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  146. data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
  147. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  148. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  149. data/rbi/lithic/resources/payments.rbi +52 -0
  150. data/sig/lithic/client.rbs +2 -0
  151. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  152. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  153. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  154. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  155. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  156. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  157. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  158. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
  159. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  160. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  161. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  162. data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
  163. data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
  164. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
  165. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
  166. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  167. data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
  168. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
  169. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  170. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
  171. data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
  172. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  173. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  174. data/sig/lithic/models/book_transfer_response.rbs +10 -8
  175. data/sig/lithic/models/category_details.rbs +26 -0
  176. data/sig/lithic/models/dispute_v2.rbs +438 -0
  177. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  178. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  179. data/sig/lithic/models/event.rbs +25 -13
  180. data/sig/lithic/models/event_list_params.rbs +25 -13
  181. data/sig/lithic/models/event_subscription.rbs +25 -13
  182. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  183. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  184. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  185. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  186. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  187. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  188. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  189. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  190. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  191. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  192. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  193. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  194. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  195. data/sig/lithic/models/external_payment.rbs +7 -7
  196. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  197. data/sig/lithic/models/financial_account.rbs +7 -49
  198. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  199. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  200. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
  201. data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
  202. data/sig/lithic/models/financial_event.rbs +216 -0
  203. data/sig/lithic/models/financial_transaction.rbs +4 -217
  204. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  205. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  206. data/sig/lithic/models/merchant.rbs +50 -0
  207. data/sig/lithic/models/payment.rbs +17 -15
  208. data/sig/lithic/models/payment_return_params.rbs +46 -0
  209. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  210. data/sig/lithic/models/statement_totals.rbs +76 -0
  211. data/sig/lithic/models/tokenization.rbs +160 -13
  212. data/sig/lithic/models/transaction.rbs +17 -145
  213. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  214. data/sig/lithic/models/transfer.rbs +6 -219
  215. data/sig/lithic/models.rbs +18 -0
  216. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  217. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  218. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  219. data/sig/lithic/resources/payments.rbs +12 -0
  220. metadata +56 -11
  221. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  222. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  223. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  224. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  225. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  226. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  227. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  228. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  229. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -59,14 +59,10 @@ module Lithic
59
59
  sig { returns(Date) }
60
60
  attr_accessor :date
61
61
 
62
- sig { returns(Lithic::FinancialAccounts::LoanTape::DayTotals) }
62
+ sig { returns(Lithic::StatementTotals) }
63
63
  attr_reader :day_totals
64
64
 
65
- sig do
66
- params(
67
- day_totals: Lithic::FinancialAccounts::LoanTape::DayTotals::OrHash
68
- ).void
69
- end
65
+ sig { params(day_totals: Lithic::StatementTotals::OrHash).void }
70
66
  attr_writer :day_totals
71
67
 
72
68
  # Balance at the end of the day
@@ -113,26 +109,21 @@ module Lithic
113
109
  end
114
110
  attr_writer :minimum_payment_balance
115
111
 
116
- sig { returns(Lithic::FinancialAccounts::LoanTape::PaymentAllocation) }
112
+ sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
117
113
  attr_reader :payment_allocation
118
114
 
119
115
  sig do
120
116
  params(
121
117
  payment_allocation:
122
- Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash
118
+ Lithic::FinancialAccounts::CategoryBalances::OrHash
123
119
  ).void
124
120
  end
125
121
  attr_writer :payment_allocation
126
122
 
127
- sig { returns(Lithic::FinancialAccounts::LoanTape::PeriodTotals) }
123
+ sig { returns(Lithic::StatementTotals) }
128
124
  attr_reader :period_totals
129
125
 
130
- sig do
131
- params(
132
- period_totals:
133
- Lithic::FinancialAccounts::LoanTape::PeriodTotals::OrHash
134
- ).void
135
- end
126
+ sig { params(period_totals: Lithic::StatementTotals::OrHash).void }
136
127
  attr_writer :period_totals
137
128
 
138
129
  sig do
@@ -160,22 +151,15 @@ module Lithic
160
151
  sig { returns(Integer) }
161
152
  attr_accessor :version
162
153
 
163
- sig { returns(Lithic::FinancialAccounts::LoanTape::YtdTotals) }
154
+ sig { returns(Lithic::StatementTotals) }
164
155
  attr_reader :ytd_totals
165
156
 
166
- sig do
167
- params(
168
- ytd_totals: Lithic::FinancialAccounts::LoanTape::YtdTotals::OrHash
169
- ).void
170
- end
157
+ sig { params(ytd_totals: Lithic::StatementTotals::OrHash).void }
171
158
  attr_writer :ytd_totals
172
159
 
173
160
  # Interest tier to which this account belongs to
174
161
  sig { returns(T.nilable(String)) }
175
- attr_reader :tier
176
-
177
- sig { params(tier: String).void }
178
- attr_writer :tier
162
+ attr_accessor :tier
179
163
 
180
164
  sig do
181
165
  params(
@@ -188,7 +172,7 @@ module Lithic
188
172
  credit_limit: Integer,
189
173
  credit_product_token: String,
190
174
  date: Date,
191
- day_totals: Lithic::FinancialAccounts::LoanTape::DayTotals::OrHash,
175
+ day_totals: Lithic::StatementTotals::OrHash,
192
176
  ending_balance: Integer,
193
177
  excess_credits: Integer,
194
178
  financial_account_token: String,
@@ -199,16 +183,15 @@ module Lithic
199
183
  minimum_payment_balance:
200
184
  Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance::OrHash,
201
185
  payment_allocation:
202
- Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash,
203
- period_totals:
204
- Lithic::FinancialAccounts::LoanTape::PeriodTotals::OrHash,
186
+ Lithic::FinancialAccounts::CategoryBalances::OrHash,
187
+ period_totals: Lithic::StatementTotals::OrHash,
205
188
  previous_statement_balance:
206
189
  Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance::OrHash,
207
190
  starting_balance: Integer,
208
191
  updated: Time,
209
192
  version: Integer,
210
- ytd_totals: Lithic::FinancialAccounts::LoanTape::YtdTotals::OrHash,
211
- tier: String
193
+ ytd_totals: Lithic::StatementTotals::OrHash,
194
+ tier: T.nilable(String)
212
195
  ).returns(T.attached_class)
213
196
  end
214
197
  def self.new(
@@ -266,7 +249,7 @@ module Lithic
266
249
  credit_limit: Integer,
267
250
  credit_product_token: String,
268
251
  date: Date,
269
- day_totals: Lithic::FinancialAccounts::LoanTape::DayTotals,
252
+ day_totals: Lithic::StatementTotals,
270
253
  ending_balance: Integer,
271
254
  excess_credits: Integer,
272
255
  financial_account_token: String,
@@ -274,16 +257,15 @@ module Lithic
274
257
  T.nilable(Lithic::FinancialAccounts::LoanTape::InterestDetails),
275
258
  minimum_payment_balance:
276
259
  Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
277
- payment_allocation:
278
- Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
279
- period_totals: Lithic::FinancialAccounts::LoanTape::PeriodTotals,
260
+ payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
261
+ period_totals: Lithic::StatementTotals,
280
262
  previous_statement_balance:
281
263
  Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
282
264
  starting_balance: Integer,
283
265
  updated: Time,
284
266
  version: Integer,
285
- ytd_totals: Lithic::FinancialAccounts::LoanTape::YtdTotals,
286
- tier: String
267
+ ytd_totals: Lithic::StatementTotals,
268
+ tier: T.nilable(String)
287
269
  }
288
270
  )
289
271
  end
@@ -606,12 +588,12 @@ module Lithic
606
588
 
607
589
  # Amount due for the prior billing cycle. Any amounts not fully paid off on this
608
590
  # due date will be considered past due the next day
609
- sig { returns(Lithic::FinancialAccounts::LoanTape::Balances::Due) }
591
+ sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
610
592
  attr_reader :due
611
593
 
612
594
  sig do
613
595
  params(
614
- due: Lithic::FinancialAccounts::LoanTape::Balances::Due::OrHash
596
+ due: Lithic::FinancialAccounts::CategoryBalances::OrHash
615
597
  ).void
616
598
  end
617
599
  attr_writer :due
@@ -619,60 +601,48 @@ module Lithic
619
601
  # Amount due for the current billing cycle. Any amounts not paid off by early
620
602
  # payments or credits will be considered due at the end of the current billing
621
603
  # period
622
- sig do
623
- returns(
624
- Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue
625
- )
626
- end
604
+ sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
627
605
  attr_reader :next_statement_due
628
606
 
629
607
  sig do
630
608
  params(
631
609
  next_statement_due:
632
- Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue::OrHash
610
+ Lithic::FinancialAccounts::CategoryBalances::OrHash
633
611
  ).void
634
612
  end
635
613
  attr_writer :next_statement_due
636
614
 
637
615
  # Amount not paid off on previous due dates
638
- sig do
639
- returns(Lithic::FinancialAccounts::LoanTape::Balances::PastDue)
640
- end
616
+ sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
641
617
  attr_reader :past_due
642
618
 
643
619
  sig do
644
620
  params(
645
- past_due:
646
- Lithic::FinancialAccounts::LoanTape::Balances::PastDue::OrHash
621
+ past_due: Lithic::FinancialAccounts::CategoryBalances::OrHash
647
622
  ).void
648
623
  end
649
624
  attr_writer :past_due
650
625
 
651
626
  # Amount due for the past billing cycles.
652
- sig do
653
- returns(
654
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue
655
- )
656
- end
627
+ sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
657
628
  attr_reader :past_statements_due
658
629
 
659
630
  sig do
660
631
  params(
661
632
  past_statements_due:
662
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue::OrHash
633
+ Lithic::FinancialAccounts::CategoryBalances::OrHash
663
634
  ).void
664
635
  end
665
636
  attr_writer :past_statements_due
666
637
 
667
638
  sig do
668
639
  params(
669
- due: Lithic::FinancialAccounts::LoanTape::Balances::Due::OrHash,
640
+ due: Lithic::FinancialAccounts::CategoryBalances::OrHash,
670
641
  next_statement_due:
671
- Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue::OrHash,
672
- past_due:
673
- Lithic::FinancialAccounts::LoanTape::Balances::PastDue::OrHash,
642
+ Lithic::FinancialAccounts::CategoryBalances::OrHash,
643
+ past_due: Lithic::FinancialAccounts::CategoryBalances::OrHash,
674
644
  past_statements_due:
675
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue::OrHash
645
+ Lithic::FinancialAccounts::CategoryBalances::OrHash
676
646
  ).returns(T.attached_class)
677
647
  end
678
648
  def self.new(
@@ -693,253 +663,10 @@ module Lithic
693
663
  sig do
694
664
  override.returns(
695
665
  {
696
- due: Lithic::FinancialAccounts::LoanTape::Balances::Due,
697
- next_statement_due:
698
- Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue,
699
- past_due:
700
- Lithic::FinancialAccounts::LoanTape::Balances::PastDue,
701
- past_statements_due:
702
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue
703
- }
704
- )
705
- end
706
- def to_hash
707
- end
708
-
709
- class Due < Lithic::Internal::Type::BaseModel
710
- OrHash =
711
- T.type_alias do
712
- T.any(
713
- Lithic::FinancialAccounts::LoanTape::Balances::Due,
714
- Lithic::Internal::AnyHash
715
- )
716
- end
717
-
718
- sig { returns(Integer) }
719
- attr_accessor :fees
720
-
721
- sig { returns(Integer) }
722
- attr_accessor :interest
723
-
724
- sig { returns(Integer) }
725
- attr_accessor :principal
726
-
727
- # Amount due for the prior billing cycle. Any amounts not fully paid off on this
728
- # due date will be considered past due the next day
729
- sig do
730
- params(
731
- fees: Integer,
732
- interest: Integer,
733
- principal: Integer
734
- ).returns(T.attached_class)
735
- end
736
- def self.new(fees:, interest:, principal:)
737
- end
738
-
739
- sig do
740
- override.returns(
741
- { fees: Integer, interest: Integer, principal: Integer }
742
- )
743
- end
744
- def to_hash
745
- end
746
- end
747
-
748
- class NextStatementDue < Lithic::Internal::Type::BaseModel
749
- OrHash =
750
- T.type_alias do
751
- T.any(
752
- Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue,
753
- Lithic::Internal::AnyHash
754
- )
755
- end
756
-
757
- sig { returns(Integer) }
758
- attr_accessor :fees
759
-
760
- sig { returns(Integer) }
761
- attr_accessor :interest
762
-
763
- sig { returns(Integer) }
764
- attr_accessor :principal
765
-
766
- # Amount due for the current billing cycle. Any amounts not paid off by early
767
- # payments or credits will be considered due at the end of the current billing
768
- # period
769
- sig do
770
- params(
771
- fees: Integer,
772
- interest: Integer,
773
- principal: Integer
774
- ).returns(T.attached_class)
775
- end
776
- def self.new(fees:, interest:, principal:)
777
- end
778
-
779
- sig do
780
- override.returns(
781
- { fees: Integer, interest: Integer, principal: Integer }
782
- )
783
- end
784
- def to_hash
785
- end
786
- end
787
-
788
- class PastDue < Lithic::Internal::Type::BaseModel
789
- OrHash =
790
- T.type_alias do
791
- T.any(
792
- Lithic::FinancialAccounts::LoanTape::Balances::PastDue,
793
- Lithic::Internal::AnyHash
794
- )
795
- end
796
-
797
- sig { returns(Integer) }
798
- attr_accessor :fees
799
-
800
- sig { returns(Integer) }
801
- attr_accessor :interest
802
-
803
- sig { returns(Integer) }
804
- attr_accessor :principal
805
-
806
- # Amount not paid off on previous due dates
807
- sig do
808
- params(
809
- fees: Integer,
810
- interest: Integer,
811
- principal: Integer
812
- ).returns(T.attached_class)
813
- end
814
- def self.new(fees:, interest:, principal:)
815
- end
816
-
817
- sig do
818
- override.returns(
819
- { fees: Integer, interest: Integer, principal: Integer }
820
- )
821
- end
822
- def to_hash
823
- end
824
- end
825
-
826
- class PastStatementsDue < Lithic::Internal::Type::BaseModel
827
- OrHash =
828
- T.type_alias do
829
- T.any(
830
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue,
831
- Lithic::Internal::AnyHash
832
- )
833
- end
834
-
835
- sig { returns(Integer) }
836
- attr_accessor :fees
837
-
838
- sig { returns(Integer) }
839
- attr_accessor :interest
840
-
841
- sig { returns(Integer) }
842
- attr_accessor :principal
843
-
844
- # Amount due for the past billing cycles.
845
- sig do
846
- params(
847
- fees: Integer,
848
- interest: Integer,
849
- principal: Integer
850
- ).returns(T.attached_class)
851
- end
852
- def self.new(fees:, interest:, principal:)
853
- end
854
-
855
- sig do
856
- override.returns(
857
- { fees: Integer, interest: Integer, principal: Integer }
858
- )
859
- end
860
- def to_hash
861
- end
862
- end
863
- end
864
-
865
- class DayTotals < Lithic::Internal::Type::BaseModel
866
- OrHash =
867
- T.type_alias do
868
- T.any(
869
- Lithic::FinancialAccounts::LoanTape::DayTotals,
870
- Lithic::Internal::AnyHash
871
- )
872
- end
873
-
874
- # Opening balance transferred from previous account in cents
875
- sig { returns(Integer) }
876
- attr_accessor :balance_transfers
877
-
878
- # ATM and cashback transactions in cents
879
- sig { returns(Integer) }
880
- attr_accessor :cash_advances
881
-
882
- # Volume of credit management operation transactions less any balance transfers in
883
- # cents
884
- sig { returns(Integer) }
885
- attr_accessor :credits
886
-
887
- # Volume of debit management operation transactions less any interest in cents
888
- sig { returns(Integer) }
889
- attr_accessor :fees
890
-
891
- # Interest accrued in cents
892
- sig { returns(Integer) }
893
- attr_accessor :interest
894
-
895
- # Any funds transfers which affective the balance in cents
896
- sig { returns(Integer) }
897
- attr_accessor :payments
898
-
899
- # Net card transaction volume less any cash advances in cents
900
- sig { returns(Integer) }
901
- attr_accessor :purchases
902
-
903
- sig do
904
- params(
905
- balance_transfers: Integer,
906
- cash_advances: Integer,
907
- credits: Integer,
908
- fees: Integer,
909
- interest: Integer,
910
- payments: Integer,
911
- purchases: Integer
912
- ).returns(T.attached_class)
913
- end
914
- def self.new(
915
- # Opening balance transferred from previous account in cents
916
- balance_transfers:,
917
- # ATM and cashback transactions in cents
918
- cash_advances:,
919
- # Volume of credit management operation transactions less any balance transfers in
920
- # cents
921
- credits:,
922
- # Volume of debit management operation transactions less any interest in cents
923
- fees:,
924
- # Interest accrued in cents
925
- interest:,
926
- # Any funds transfers which affective the balance in cents
927
- payments:,
928
- # Net card transaction volume less any cash advances in cents
929
- purchases:
930
- )
931
- end
932
-
933
- sig do
934
- override.returns(
935
- {
936
- balance_transfers: Integer,
937
- cash_advances: Integer,
938
- credits: Integer,
939
- fees: Integer,
940
- interest: Integer,
941
- payments: Integer,
942
- purchases: Integer
666
+ due: Lithic::FinancialAccounts::CategoryBalances,
667
+ next_statement_due: Lithic::FinancialAccounts::CategoryBalances,
668
+ past_due: Lithic::FinancialAccounts::CategoryBalances,
669
+ past_statements_due: Lithic::FinancialAccounts::CategoryBalances
943
670
  }
944
671
  )
945
672
  end
@@ -959,34 +686,18 @@ module Lithic
959
686
  sig { returns(T.nilable(Integer)) }
960
687
  attr_accessor :actual_interest_charged
961
688
 
962
- sig do
963
- returns(
964
- Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts
965
- )
966
- end
689
+ sig { returns(Lithic::CategoryDetails) }
967
690
  attr_reader :daily_balance_amounts
968
691
 
969
692
  sig do
970
- params(
971
- daily_balance_amounts:
972
- Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts::OrHash
973
- ).void
693
+ params(daily_balance_amounts: Lithic::CategoryDetails::OrHash).void
974
694
  end
975
695
  attr_writer :daily_balance_amounts
976
696
 
977
- sig do
978
- returns(
979
- Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr
980
- )
981
- end
697
+ sig { returns(Lithic::CategoryDetails) }
982
698
  attr_reader :effective_apr
983
699
 
984
- sig do
985
- params(
986
- effective_apr:
987
- Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr::OrHash
988
- ).void
989
- end
700
+ sig { params(effective_apr: Lithic::CategoryDetails::OrHash).void }
990
701
  attr_writer :effective_apr
991
702
 
992
703
  sig do
@@ -996,18 +707,11 @@ module Lithic
996
707
  end
997
708
  attr_accessor :interest_calculation_method
998
709
 
999
- sig do
1000
- returns(
1001
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod
1002
- )
1003
- end
710
+ sig { returns(Lithic::CategoryDetails) }
1004
711
  attr_reader :interest_for_period
1005
712
 
1006
713
  sig do
1007
- params(
1008
- interest_for_period:
1009
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod::OrHash
1010
- ).void
714
+ params(interest_for_period: Lithic::CategoryDetails::OrHash).void
1011
715
  end
1012
716
  attr_writer :interest_for_period
1013
717
 
@@ -1020,14 +724,11 @@ module Lithic
1020
724
  sig do
1021
725
  params(
1022
726
  actual_interest_charged: T.nilable(Integer),
1023
- daily_balance_amounts:
1024
- Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts::OrHash,
1025
- effective_apr:
1026
- Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr::OrHash,
727
+ daily_balance_amounts: Lithic::CategoryDetails::OrHash,
728
+ effective_apr: Lithic::CategoryDetails::OrHash,
1027
729
  interest_calculation_method:
1028
730
  Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod::OrSymbol,
1029
- interest_for_period:
1030
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod::OrHash,
731
+ interest_for_period: Lithic::CategoryDetails::OrHash,
1031
732
  prime_rate: T.nilable(String),
1032
733
  minimum_interest_charged: T.nilable(Integer)
1033
734
  ).returns(T.attached_class)
@@ -1047,14 +748,11 @@ module Lithic
1047
748
  override.returns(
1048
749
  {
1049
750
  actual_interest_charged: T.nilable(Integer),
1050
- daily_balance_amounts:
1051
- Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts,
1052
- effective_apr:
1053
- Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr,
751
+ daily_balance_amounts: Lithic::CategoryDetails,
752
+ effective_apr: Lithic::CategoryDetails,
1054
753
  interest_calculation_method:
1055
754
  Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod::TaggedSymbol,
1056
- interest_for_period:
1057
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod,
755
+ interest_for_period: Lithic::CategoryDetails,
1058
756
  prime_rate: T.nilable(String),
1059
757
  minimum_interest_charged: T.nilable(Integer)
1060
758
  }
@@ -1063,88 +761,6 @@ module Lithic
1063
761
  def to_hash
1064
762
  end
1065
763
 
1066
- class DailyBalanceAmounts < Lithic::Internal::Type::BaseModel
1067
- OrHash =
1068
- T.type_alias do
1069
- T.any(
1070
- Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts,
1071
- Lithic::Internal::AnyHash
1072
- )
1073
- end
1074
-
1075
- sig { returns(String) }
1076
- attr_accessor :balance_transfers
1077
-
1078
- sig { returns(String) }
1079
- attr_accessor :cash_advances
1080
-
1081
- sig { returns(String) }
1082
- attr_accessor :purchases
1083
-
1084
- sig do
1085
- params(
1086
- balance_transfers: String,
1087
- cash_advances: String,
1088
- purchases: String
1089
- ).returns(T.attached_class)
1090
- end
1091
- def self.new(balance_transfers:, cash_advances:, purchases:)
1092
- end
1093
-
1094
- sig do
1095
- override.returns(
1096
- {
1097
- balance_transfers: String,
1098
- cash_advances: String,
1099
- purchases: String
1100
- }
1101
- )
1102
- end
1103
- def to_hash
1104
- end
1105
- end
1106
-
1107
- class EffectiveApr < Lithic::Internal::Type::BaseModel
1108
- OrHash =
1109
- T.type_alias do
1110
- T.any(
1111
- Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr,
1112
- Lithic::Internal::AnyHash
1113
- )
1114
- end
1115
-
1116
- sig { returns(String) }
1117
- attr_accessor :balance_transfers
1118
-
1119
- sig { returns(String) }
1120
- attr_accessor :cash_advances
1121
-
1122
- sig { returns(String) }
1123
- attr_accessor :purchases
1124
-
1125
- sig do
1126
- params(
1127
- balance_transfers: String,
1128
- cash_advances: String,
1129
- purchases: String
1130
- ).returns(T.attached_class)
1131
- end
1132
- def self.new(balance_transfers:, cash_advances:, purchases:)
1133
- end
1134
-
1135
- sig do
1136
- override.returns(
1137
- {
1138
- balance_transfers: String,
1139
- cash_advances: String,
1140
- purchases: String
1141
- }
1142
- )
1143
- end
1144
- def to_hash
1145
- end
1146
- end
1147
-
1148
764
  module InterestCalculationMethod
1149
765
  extend Lithic::Internal::Type::Enum
1150
766
 
@@ -1178,47 +794,6 @@ module Lithic
1178
794
  def self.values
1179
795
  end
1180
796
  end
1181
-
1182
- class InterestForPeriod < Lithic::Internal::Type::BaseModel
1183
- OrHash =
1184
- T.type_alias do
1185
- T.any(
1186
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod,
1187
- Lithic::Internal::AnyHash
1188
- )
1189
- end
1190
-
1191
- sig { returns(String) }
1192
- attr_accessor :balance_transfers
1193
-
1194
- sig { returns(String) }
1195
- attr_accessor :cash_advances
1196
-
1197
- sig { returns(String) }
1198
- attr_accessor :purchases
1199
-
1200
- sig do
1201
- params(
1202
- balance_transfers: String,
1203
- cash_advances: String,
1204
- purchases: String
1205
- ).returns(T.attached_class)
1206
- end
1207
- def self.new(balance_transfers:, cash_advances:, purchases:)
1208
- end
1209
-
1210
- sig do
1211
- override.returns(
1212
- {
1213
- balance_transfers: String,
1214
- cash_advances: String,
1215
- purchases: String
1216
- }
1217
- )
1218
- end
1219
- def to_hash
1220
- end
1221
- end
1222
797
  end
1223
798
 
1224
799
  class MinimumPaymentBalance < Lithic::Internal::Type::BaseModel
@@ -1249,128 +824,6 @@ module Lithic
1249
824
  end
1250
825
  end
1251
826
 
1252
- class PaymentAllocation < Lithic::Internal::Type::BaseModel
1253
- OrHash =
1254
- T.type_alias do
1255
- T.any(
1256
- Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
1257
- Lithic::Internal::AnyHash
1258
- )
1259
- end
1260
-
1261
- sig { returns(Integer) }
1262
- attr_accessor :fees
1263
-
1264
- sig { returns(Integer) }
1265
- attr_accessor :interest
1266
-
1267
- sig { returns(Integer) }
1268
- attr_accessor :principal
1269
-
1270
- sig do
1271
- params(
1272
- fees: Integer,
1273
- interest: Integer,
1274
- principal: Integer
1275
- ).returns(T.attached_class)
1276
- end
1277
- def self.new(fees:, interest:, principal:)
1278
- end
1279
-
1280
- sig do
1281
- override.returns(
1282
- { fees: Integer, interest: Integer, principal: Integer }
1283
- )
1284
- end
1285
- def to_hash
1286
- end
1287
- end
1288
-
1289
- class PeriodTotals < Lithic::Internal::Type::BaseModel
1290
- OrHash =
1291
- T.type_alias do
1292
- T.any(
1293
- Lithic::FinancialAccounts::LoanTape::PeriodTotals,
1294
- Lithic::Internal::AnyHash
1295
- )
1296
- end
1297
-
1298
- # Opening balance transferred from previous account in cents
1299
- sig { returns(Integer) }
1300
- attr_accessor :balance_transfers
1301
-
1302
- # ATM and cashback transactions in cents
1303
- sig { returns(Integer) }
1304
- attr_accessor :cash_advances
1305
-
1306
- # Volume of credit management operation transactions less any balance transfers in
1307
- # cents
1308
- sig { returns(Integer) }
1309
- attr_accessor :credits
1310
-
1311
- # Volume of debit management operation transactions less any interest in cents
1312
- sig { returns(Integer) }
1313
- attr_accessor :fees
1314
-
1315
- # Interest accrued in cents
1316
- sig { returns(Integer) }
1317
- attr_accessor :interest
1318
-
1319
- # Any funds transfers which affective the balance in cents
1320
- sig { returns(Integer) }
1321
- attr_accessor :payments
1322
-
1323
- # Net card transaction volume less any cash advances in cents
1324
- sig { returns(Integer) }
1325
- attr_accessor :purchases
1326
-
1327
- sig do
1328
- params(
1329
- balance_transfers: Integer,
1330
- cash_advances: Integer,
1331
- credits: Integer,
1332
- fees: Integer,
1333
- interest: Integer,
1334
- payments: Integer,
1335
- purchases: Integer
1336
- ).returns(T.attached_class)
1337
- end
1338
- def self.new(
1339
- # Opening balance transferred from previous account in cents
1340
- balance_transfers:,
1341
- # ATM and cashback transactions in cents
1342
- cash_advances:,
1343
- # Volume of credit management operation transactions less any balance transfers in
1344
- # cents
1345
- credits:,
1346
- # Volume of debit management operation transactions less any interest in cents
1347
- fees:,
1348
- # Interest accrued in cents
1349
- interest:,
1350
- # Any funds transfers which affective the balance in cents
1351
- payments:,
1352
- # Net card transaction volume less any cash advances in cents
1353
- purchases:
1354
- )
1355
- end
1356
-
1357
- sig do
1358
- override.returns(
1359
- {
1360
- balance_transfers: Integer,
1361
- cash_advances: Integer,
1362
- credits: Integer,
1363
- fees: Integer,
1364
- interest: Integer,
1365
- payments: Integer,
1366
- purchases: Integer
1367
- }
1368
- )
1369
- end
1370
- def to_hash
1371
- end
1372
- end
1373
-
1374
827
  class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
1375
828
  OrHash =
1376
829
  T.type_alias do
@@ -1398,91 +851,6 @@ module Lithic
1398
851
  def to_hash
1399
852
  end
1400
853
  end
1401
-
1402
- class YtdTotals < Lithic::Internal::Type::BaseModel
1403
- OrHash =
1404
- T.type_alias do
1405
- T.any(
1406
- Lithic::FinancialAccounts::LoanTape::YtdTotals,
1407
- Lithic::Internal::AnyHash
1408
- )
1409
- end
1410
-
1411
- # Opening balance transferred from previous account in cents
1412
- sig { returns(Integer) }
1413
- attr_accessor :balance_transfers
1414
-
1415
- # ATM and cashback transactions in cents
1416
- sig { returns(Integer) }
1417
- attr_accessor :cash_advances
1418
-
1419
- # Volume of credit management operation transactions less any balance transfers in
1420
- # cents
1421
- sig { returns(Integer) }
1422
- attr_accessor :credits
1423
-
1424
- # Volume of debit management operation transactions less any interest in cents
1425
- sig { returns(Integer) }
1426
- attr_accessor :fees
1427
-
1428
- # Interest accrued in cents
1429
- sig { returns(Integer) }
1430
- attr_accessor :interest
1431
-
1432
- # Any funds transfers which affective the balance in cents
1433
- sig { returns(Integer) }
1434
- attr_accessor :payments
1435
-
1436
- # Net card transaction volume less any cash advances in cents
1437
- sig { returns(Integer) }
1438
- attr_accessor :purchases
1439
-
1440
- sig do
1441
- params(
1442
- balance_transfers: Integer,
1443
- cash_advances: Integer,
1444
- credits: Integer,
1445
- fees: Integer,
1446
- interest: Integer,
1447
- payments: Integer,
1448
- purchases: Integer
1449
- ).returns(T.attached_class)
1450
- end
1451
- def self.new(
1452
- # Opening balance transferred from previous account in cents
1453
- balance_transfers:,
1454
- # ATM and cashback transactions in cents
1455
- cash_advances:,
1456
- # Volume of credit management operation transactions less any balance transfers in
1457
- # cents
1458
- credits:,
1459
- # Volume of debit management operation transactions less any interest in cents
1460
- fees:,
1461
- # Interest accrued in cents
1462
- interest:,
1463
- # Any funds transfers which affective the balance in cents
1464
- payments:,
1465
- # Net card transaction volume less any cash advances in cents
1466
- purchases:
1467
- )
1468
- end
1469
-
1470
- sig do
1471
- override.returns(
1472
- {
1473
- balance_transfers: Integer,
1474
- cash_advances: Integer,
1475
- credits: Integer,
1476
- fees: Integer,
1477
- interest: Integer,
1478
- payments: Integer,
1479
- purchases: Integer
1480
- }
1481
- )
1482
- end
1483
- def to_hash
1484
- end
1485
- end
1486
854
  end
1487
855
  end
1488
856
  end