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
@@ -72,8 +72,8 @@ module Lithic
72
72
 
73
73
  # @!attribute period_totals
74
74
  #
75
- # @return [Lithic::Models::FinancialAccounts::Statement::PeriodTotals]
76
- required :period_totals, -> { Lithic::FinancialAccounts::Statement::PeriodTotals }
75
+ # @return [Lithic::Models::StatementTotals]
76
+ required :period_totals, -> { Lithic::StatementTotals }
77
77
 
78
78
  # @!attribute starting_balance
79
79
  # Balance at the start of the billing period
@@ -106,8 +106,8 @@ module Lithic
106
106
 
107
107
  # @!attribute ytd_totals
108
108
  #
109
- # @return [Lithic::Models::FinancialAccounts::Statement::YtdTotals]
110
- required :ytd_totals, -> { Lithic::FinancialAccounts::Statement::YtdTotals }
109
+ # @return [Lithic::Models::StatementTotals]
110
+ required :ytd_totals, -> { Lithic::StatementTotals }
111
111
 
112
112
  # @!attribute interest_details
113
113
  #
@@ -126,7 +126,13 @@ module Lithic
126
126
  # @return [Date, nil]
127
127
  optional :next_statement_end_date, Date
128
128
 
129
- # @!method initialize(token:, account_standing:, amount_due:, available_credit:, created:, credit_limit:, credit_product_token:, days_in_billing_cycle:, ending_balance:, financial_account_token:, payment_due_date:, period_totals:, starting_balance:, statement_end_date:, statement_start_date:, statement_type:, updated:, ytd_totals:, interest_details: nil, next_payment_due_date: nil, next_statement_end_date: nil)
129
+ # @!attribute payoff_details
130
+ # Details on number and size of payments to pay off balance
131
+ #
132
+ # @return [Lithic::Models::FinancialAccounts::Statement::PayoffDetails, nil]
133
+ optional :payoff_details, -> { Lithic::FinancialAccounts::Statement::PayoffDetails }, nil?: true
134
+
135
+ # @!method initialize(token:, account_standing:, amount_due:, available_credit:, created:, credit_limit:, credit_product_token:, days_in_billing_cycle:, ending_balance:, financial_account_token:, payment_due_date:, period_totals:, starting_balance:, statement_end_date:, statement_start_date:, statement_type:, updated:, ytd_totals:, interest_details: nil, next_payment_due_date: nil, next_statement_end_date: nil, payoff_details: nil)
130
136
  # Some parameter documentations has been truncated, see
131
137
  # {Lithic::Models::FinancialAccounts::Statement} for more details.
132
138
  #
@@ -152,7 +158,7 @@ module Lithic
152
158
  #
153
159
  # @param payment_due_date [Date, nil] Date when the payment is due
154
160
  #
155
- # @param period_totals [Lithic::Models::FinancialAccounts::Statement::PeriodTotals]
161
+ # @param period_totals [Lithic::Models::StatementTotals]
156
162
  #
157
163
  # @param starting_balance [Integer] Balance at the start of the billing period
158
164
  #
@@ -164,13 +170,15 @@ module Lithic
164
170
  #
165
171
  # @param updated [Time] Timestamp of when the statement was updated
166
172
  #
167
- # @param ytd_totals [Lithic::Models::FinancialAccounts::Statement::YtdTotals]
173
+ # @param ytd_totals [Lithic::Models::StatementTotals]
168
174
  #
169
175
  # @param interest_details [Lithic::Models::FinancialAccounts::Statement::InterestDetails, nil]
170
176
  #
171
177
  # @param next_payment_due_date [Date] Date when the next payment is due
172
178
  #
173
179
  # @param next_statement_end_date [Date] Date when the next billing period will end
180
+ #
181
+ # @param payoff_details [Lithic::Models::FinancialAccounts::Statement::PayoffDetails, nil] Details on number and size of payments to pay off balance
174
182
 
175
183
  # @see Lithic::Models::FinancialAccounts::Statement#account_standing
176
184
  class AccountStanding < Lithic::Internal::Type::BaseModel
@@ -336,70 +344,6 @@ module Lithic
336
344
  # @param past_due [Integer] Amount past due for statement in cents
337
345
  end
338
346
 
339
- # @see Lithic::Models::FinancialAccounts::Statement#period_totals
340
- class PeriodTotals < Lithic::Internal::Type::BaseModel
341
- # @!attribute balance_transfers
342
- # Opening balance transferred from previous account in cents
343
- #
344
- # @return [Integer]
345
- required :balance_transfers, Integer
346
-
347
- # @!attribute cash_advances
348
- # ATM and cashback transactions in cents
349
- #
350
- # @return [Integer]
351
- required :cash_advances, Integer
352
-
353
- # @!attribute credits
354
- # Volume of credit management operation transactions less any balance transfers in
355
- # cents
356
- #
357
- # @return [Integer]
358
- required :credits, Integer
359
-
360
- # @!attribute fees
361
- # Volume of debit management operation transactions less any interest in cents
362
- #
363
- # @return [Integer]
364
- required :fees, Integer
365
-
366
- # @!attribute interest
367
- # Interest accrued in cents
368
- #
369
- # @return [Integer]
370
- required :interest, Integer
371
-
372
- # @!attribute payments
373
- # Any funds transfers which affective the balance in cents
374
- #
375
- # @return [Integer]
376
- required :payments, Integer
377
-
378
- # @!attribute purchases
379
- # Net card transaction volume less any cash advances in cents
380
- #
381
- # @return [Integer]
382
- required :purchases, Integer
383
-
384
- # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:)
385
- # Some parameter documentations has been truncated, see
386
- # {Lithic::Models::FinancialAccounts::Statement::PeriodTotals} for more details.
387
- #
388
- # @param balance_transfers [Integer] Opening balance transferred from previous account in cents
389
- #
390
- # @param cash_advances [Integer] ATM and cashback transactions in cents
391
- #
392
- # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in
393
- #
394
- # @param fees [Integer] Volume of debit management operation transactions less any interest in cents
395
- #
396
- # @param interest [Integer] Interest accrued in cents
397
- #
398
- # @param payments [Integer] Any funds transfers which affective the balance in cents
399
- #
400
- # @param purchases [Integer] Net card transaction volume less any cash advances in cents
401
- end
402
-
403
347
  # @see Lithic::Models::FinancialAccounts::Statement#statement_type
404
348
  module StatementType
405
349
  extend Lithic::Internal::Type::Enum
@@ -412,70 +356,6 @@ module Lithic
412
356
  # @return [Array<Symbol>]
413
357
  end
414
358
 
415
- # @see Lithic::Models::FinancialAccounts::Statement#ytd_totals
416
- class YtdTotals < Lithic::Internal::Type::BaseModel
417
- # @!attribute balance_transfers
418
- # Opening balance transferred from previous account in cents
419
- #
420
- # @return [Integer]
421
- required :balance_transfers, Integer
422
-
423
- # @!attribute cash_advances
424
- # ATM and cashback transactions in cents
425
- #
426
- # @return [Integer]
427
- required :cash_advances, Integer
428
-
429
- # @!attribute credits
430
- # Volume of credit management operation transactions less any balance transfers in
431
- # cents
432
- #
433
- # @return [Integer]
434
- required :credits, Integer
435
-
436
- # @!attribute fees
437
- # Volume of debit management operation transactions less any interest in cents
438
- #
439
- # @return [Integer]
440
- required :fees, Integer
441
-
442
- # @!attribute interest
443
- # Interest accrued in cents
444
- #
445
- # @return [Integer]
446
- required :interest, Integer
447
-
448
- # @!attribute payments
449
- # Any funds transfers which affective the balance in cents
450
- #
451
- # @return [Integer]
452
- required :payments, Integer
453
-
454
- # @!attribute purchases
455
- # Net card transaction volume less any cash advances in cents
456
- #
457
- # @return [Integer]
458
- required :purchases, Integer
459
-
460
- # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:)
461
- # Some parameter documentations has been truncated, see
462
- # {Lithic::Models::FinancialAccounts::Statement::YtdTotals} for more details.
463
- #
464
- # @param balance_transfers [Integer] Opening balance transferred from previous account in cents
465
- #
466
- # @param cash_advances [Integer] ATM and cashback transactions in cents
467
- #
468
- # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in
469
- #
470
- # @param fees [Integer] Volume of debit management operation transactions less any interest in cents
471
- #
472
- # @param interest [Integer] Interest accrued in cents
473
- #
474
- # @param payments [Integer] Any funds transfers which affective the balance in cents
475
- #
476
- # @param purchases [Integer] Net card transaction volume less any cash advances in cents
477
- end
478
-
479
359
  # @see Lithic::Models::FinancialAccounts::Statement#interest_details
480
360
  class InterestDetails < Lithic::Internal::Type::BaseModel
481
361
  # @!attribute actual_interest_charged
@@ -485,14 +365,13 @@ module Lithic
485
365
 
486
366
  # @!attribute daily_balance_amounts
487
367
  #
488
- # @return [Lithic::Models::FinancialAccounts::Statement::InterestDetails::DailyBalanceAmounts]
489
- required :daily_balance_amounts,
490
- -> { Lithic::FinancialAccounts::Statement::InterestDetails::DailyBalanceAmounts }
368
+ # @return [Lithic::Models::CategoryDetails]
369
+ required :daily_balance_amounts, -> { Lithic::CategoryDetails }
491
370
 
492
371
  # @!attribute effective_apr
493
372
  #
494
- # @return [Lithic::Models::FinancialAccounts::Statement::InterestDetails::EffectiveApr]
495
- required :effective_apr, -> { Lithic::FinancialAccounts::Statement::InterestDetails::EffectiveApr }
373
+ # @return [Lithic::Models::CategoryDetails]
374
+ required :effective_apr, -> { Lithic::CategoryDetails }
496
375
 
497
376
  # @!attribute interest_calculation_method
498
377
  #
@@ -502,9 +381,8 @@ module Lithic
502
381
 
503
382
  # @!attribute interest_for_period
504
383
  #
505
- # @return [Lithic::Models::FinancialAccounts::Statement::InterestDetails::InterestForPeriod]
506
- required :interest_for_period,
507
- -> { Lithic::FinancialAccounts::Statement::InterestDetails::InterestForPeriod }
384
+ # @return [Lithic::Models::CategoryDetails]
385
+ required :interest_for_period, -> { Lithic::CategoryDetails }
508
386
 
509
387
  # @!attribute prime_rate
510
388
  #
@@ -518,59 +396,13 @@ module Lithic
518
396
 
519
397
  # @!method initialize(actual_interest_charged:, daily_balance_amounts:, effective_apr:, interest_calculation_method:, interest_for_period:, prime_rate:, minimum_interest_charged: nil)
520
398
  # @param actual_interest_charged [Integer, nil]
521
- # @param daily_balance_amounts [Lithic::Models::FinancialAccounts::Statement::InterestDetails::DailyBalanceAmounts]
522
- # @param effective_apr [Lithic::Models::FinancialAccounts::Statement::InterestDetails::EffectiveApr]
399
+ # @param daily_balance_amounts [Lithic::Models::CategoryDetails]
400
+ # @param effective_apr [Lithic::Models::CategoryDetails]
523
401
  # @param interest_calculation_method [Symbol, Lithic::Models::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod]
524
- # @param interest_for_period [Lithic::Models::FinancialAccounts::Statement::InterestDetails::InterestForPeriod]
402
+ # @param interest_for_period [Lithic::Models::CategoryDetails]
525
403
  # @param prime_rate [String, nil]
526
404
  # @param minimum_interest_charged [Integer, nil]
527
405
 
528
- # @see Lithic::Models::FinancialAccounts::Statement::InterestDetails#daily_balance_amounts
529
- class DailyBalanceAmounts < Lithic::Internal::Type::BaseModel
530
- # @!attribute balance_transfers
531
- #
532
- # @return [String]
533
- required :balance_transfers, String
534
-
535
- # @!attribute cash_advances
536
- #
537
- # @return [String]
538
- required :cash_advances, String
539
-
540
- # @!attribute purchases
541
- #
542
- # @return [String]
543
- required :purchases, String
544
-
545
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
546
- # @param balance_transfers [String]
547
- # @param cash_advances [String]
548
- # @param purchases [String]
549
- end
550
-
551
- # @see Lithic::Models::FinancialAccounts::Statement::InterestDetails#effective_apr
552
- class EffectiveApr < Lithic::Internal::Type::BaseModel
553
- # @!attribute balance_transfers
554
- #
555
- # @return [String]
556
- required :balance_transfers, String
557
-
558
- # @!attribute cash_advances
559
- #
560
- # @return [String]
561
- required :cash_advances, String
562
-
563
- # @!attribute purchases
564
- #
565
- # @return [String]
566
- required :purchases, String
567
-
568
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
569
- # @param balance_transfers [String]
570
- # @param cash_advances [String]
571
- # @param purchases [String]
572
- end
573
-
574
406
  # @see Lithic::Models::FinancialAccounts::Statement::InterestDetails#interest_calculation_method
575
407
  module InterestCalculationMethod
576
408
  extend Lithic::Internal::Type::Enum
@@ -581,29 +413,59 @@ module Lithic
581
413
  # @!method self.values
582
414
  # @return [Array<Symbol>]
583
415
  end
416
+ end
584
417
 
585
- # @see Lithic::Models::FinancialAccounts::Statement::InterestDetails#interest_for_period
586
- class InterestForPeriod < Lithic::Internal::Type::BaseModel
587
- # @!attribute balance_transfers
588
- #
589
- # @return [String]
590
- required :balance_transfers, String
418
+ # @see Lithic::Models::FinancialAccounts::Statement#payoff_details
419
+ class PayoffDetails < Lithic::Internal::Type::BaseModel
420
+ # @!attribute minimum_payment_months
421
+ # The number of months it would take to pay off the balance in full by only paying
422
+ # the minimum payment. "NA" will signal negative or zero amortization
423
+ #
424
+ # @return [String]
425
+ required :minimum_payment_months, String
591
426
 
592
- # @!attribute cash_advances
593
- #
594
- # @return [String]
595
- required :cash_advances, String
427
+ # @!attribute minimum_payment_total
428
+ # The sum of all interest and principal paid, in cents, when only paying minimum
429
+ # monthly payment. "NA" will signal negative or zero amortization
430
+ #
431
+ # @return [String]
432
+ required :minimum_payment_total, String
596
433
 
597
- # @!attribute purchases
598
- #
599
- # @return [String]
600
- required :purchases, String
434
+ # @!attribute payoff_period_length_months
435
+ # Number of months to full pay off
436
+ #
437
+ # @return [Integer]
438
+ required :payoff_period_length_months, Integer
601
439
 
602
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
603
- # @param balance_transfers [String]
604
- # @param cash_advances [String]
605
- # @param purchases [String]
606
- end
440
+ # @!attribute payoff_period_monthly_payment_amount
441
+ # The amount needed to be paid, in cents, each month in order to pay off current
442
+ # balance in the payoff period
443
+ #
444
+ # @return [Integer]
445
+ required :payoff_period_monthly_payment_amount, Integer
446
+
447
+ # @!attribute payoff_period_payment_total
448
+ # The sum of all interest and principal paid, in cents, when paying off in the
449
+ # payoff period
450
+ #
451
+ # @return [Integer]
452
+ required :payoff_period_payment_total, Integer
453
+
454
+ # @!method initialize(minimum_payment_months:, minimum_payment_total:, payoff_period_length_months:, payoff_period_monthly_payment_amount:, payoff_period_payment_total:)
455
+ # Some parameter documentations has been truncated, see
456
+ # {Lithic::Models::FinancialAccounts::Statement::PayoffDetails} for more details.
457
+ #
458
+ # Details on number and size of payments to pay off balance
459
+ #
460
+ # @param minimum_payment_months [String] The number of months it would take to pay off the balance in full by only paying
461
+ #
462
+ # @param minimum_payment_total [String] The sum of all interest and principal paid, in cents, when only paying minimum m
463
+ #
464
+ # @param payoff_period_length_months [Integer] Number of months to full pay off
465
+ #
466
+ # @param payoff_period_monthly_payment_amount [Integer] The amount needed to be paid, in cents, each month in order to pay off current b
467
+ #
468
+ # @param payoff_period_payment_total [Integer] The sum of all interest and principal paid, in cents, when paying off in the pay
607
469
  end
608
470
  end
609
471
  end
@@ -0,0 +1,148 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class FinancialEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute token
7
+ # Globally unique identifier.
8
+ #
9
+ # @return [String, nil]
10
+ optional :token, String
11
+
12
+ # @!attribute amount
13
+ # Amount of the financial event that has been settled in the currency's smallest
14
+ # unit (e.g., cents).
15
+ #
16
+ # @return [Integer, nil]
17
+ optional :amount, Integer
18
+
19
+ # @!attribute created
20
+ # Date and time when the financial event occurred. UTC time zone.
21
+ #
22
+ # @return [Time, nil]
23
+ optional :created, Time
24
+
25
+ # @!attribute result
26
+ # APPROVED financial events were successful while DECLINED financial events were
27
+ # declined by user, Lithic, or the network.
28
+ #
29
+ # @return [Symbol, Lithic::Models::FinancialEvent::Result, nil]
30
+ optional :result, enum: -> { Lithic::FinancialEvent::Result }
31
+
32
+ # @!attribute type
33
+ #
34
+ # @return [Symbol, Lithic::Models::FinancialEvent::Type, nil]
35
+ optional :type, enum: -> { Lithic::FinancialEvent::Type }
36
+
37
+ # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
38
+ # Some parameter documentations has been truncated, see
39
+ # {Lithic::Models::FinancialEvent} for more details.
40
+ #
41
+ # Financial Event
42
+ #
43
+ # @param token [String] Globally unique identifier.
44
+ #
45
+ # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
46
+ #
47
+ # @param created [Time] Date and time when the financial event occurred. UTC time zone.
48
+ #
49
+ # @param result [Symbol, Lithic::Models::FinancialEvent::Result] APPROVED financial events were successful while DECLINED financial events were d
50
+ #
51
+ # @param type [Symbol, Lithic::Models::FinancialEvent::Type]
52
+
53
+ # APPROVED financial events were successful while DECLINED financial events were
54
+ # declined by user, Lithic, or the network.
55
+ #
56
+ # @see Lithic::Models::FinancialEvent#result
57
+ module Result
58
+ extend Lithic::Internal::Type::Enum
59
+
60
+ APPROVED = :APPROVED
61
+ DECLINED = :DECLINED
62
+
63
+ # @!method self.values
64
+ # @return [Array<Symbol>]
65
+ end
66
+
67
+ # @see Lithic::Models::FinancialEvent#type
68
+ module Type
69
+ extend Lithic::Internal::Type::Enum
70
+
71
+ ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
72
+ ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
73
+ ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
74
+ ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
75
+ ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED
76
+ ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
77
+ ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
78
+ ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
79
+ ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
80
+ ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
81
+ ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
82
+ ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
83
+ ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED
84
+ ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
85
+ AUTHORIZATION = :AUTHORIZATION
86
+ AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE
87
+ AUTHORIZATION_EXPIRY = :AUTHORIZATION_EXPIRY
88
+ AUTHORIZATION_REVERSAL = :AUTHORIZATION_REVERSAL
89
+ BALANCE_INQUIRY = :BALANCE_INQUIRY
90
+ BILLING_ERROR = :BILLING_ERROR
91
+ BILLING_ERROR_REVERSAL = :BILLING_ERROR_REVERSAL
92
+ CARD_TO_CARD = :CARD_TO_CARD
93
+ CASH_BACK = :CASH_BACK
94
+ CASH_BACK_REVERSAL = :CASH_BACK_REVERSAL
95
+ CLEARING = :CLEARING
96
+ COLLECTION = :COLLECTION
97
+ CORRECTION_CREDIT = :CORRECTION_CREDIT
98
+ CORRECTION_DEBIT = :CORRECTION_DEBIT
99
+ CREDIT_AUTHORIZATION = :CREDIT_AUTHORIZATION
100
+ CREDIT_AUTHORIZATION_ADVICE = :CREDIT_AUTHORIZATION_ADVICE
101
+ CURRENCY_CONVERSION = :CURRENCY_CONVERSION
102
+ CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
103
+ DISPUTE_WON = :DISPUTE_WON
104
+ EXTERNAL_ACH_CANCELED = :EXTERNAL_ACH_CANCELED
105
+ EXTERNAL_ACH_INITIATED = :EXTERNAL_ACH_INITIATED
106
+ EXTERNAL_ACH_RELEASED = :EXTERNAL_ACH_RELEASED
107
+ EXTERNAL_ACH_REVERSED = :EXTERNAL_ACH_REVERSED
108
+ EXTERNAL_ACH_SETTLED = :EXTERNAL_ACH_SETTLED
109
+ EXTERNAL_CHECK_CANCELED = :EXTERNAL_CHECK_CANCELED
110
+ EXTERNAL_CHECK_INITIATED = :EXTERNAL_CHECK_INITIATED
111
+ EXTERNAL_CHECK_RELEASED = :EXTERNAL_CHECK_RELEASED
112
+ EXTERNAL_CHECK_REVERSED = :EXTERNAL_CHECK_REVERSED
113
+ EXTERNAL_CHECK_SETTLED = :EXTERNAL_CHECK_SETTLED
114
+ EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
115
+ EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
116
+ EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
117
+ EXTERNAL_TRANSFER_REVERSED = :EXTERNAL_TRANSFER_REVERSED
118
+ EXTERNAL_TRANSFER_SETTLED = :EXTERNAL_TRANSFER_SETTLED
119
+ EXTERNAL_WIRE_CANCELED = :EXTERNAL_WIRE_CANCELED
120
+ EXTERNAL_WIRE_INITIATED = :EXTERNAL_WIRE_INITIATED
121
+ EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
122
+ EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
123
+ EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
124
+ FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
125
+ FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
126
+ INTEREST = :INTEREST
127
+ INTEREST_REVERSAL = :INTEREST_REVERSAL
128
+ INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
129
+ LATE_PAYMENT = :LATE_PAYMENT
130
+ LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
131
+ LOSS_WRITE_OFF = :LOSS_WRITE_OFF
132
+ PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
133
+ PROVISIONAL_CREDIT_REVERSAL = :PROVISIONAL_CREDIT_REVERSAL
134
+ SERVICE = :SERVICE
135
+ RETURN = :RETURN
136
+ RETURN_REVERSAL = :RETURN_REVERSAL
137
+ TRANSFER = :TRANSFER
138
+ TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
139
+ RETURNED_PAYMENT = :RETURNED_PAYMENT
140
+ RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
141
+ LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
142
+
143
+ # @!method self.values
144
+ # @return [Array<Symbol>]
145
+ end
146
+ end
147
+ end
148
+ end