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
@@ -39,32 +39,7 @@ module Lithic
39
39
  # @return [String, nil]
40
40
  required :tier, String, nil?: true
41
41
 
42
- # @!attribute charged_off_reason
43
- # @deprecated
44
- #
45
- # Reason for the financial account being marked as Charged Off
46
- #
47
- # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil]
48
- optional :charged_off_reason,
49
- enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason },
50
- nil?: true
51
-
52
- # @!attribute financial_account_state
53
- # @deprecated
54
- #
55
- # State of the financial account
56
- #
57
- # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, nil]
58
- optional :financial_account_state,
59
- enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState }
60
-
61
- # @!attribute is_spend_blocked
62
- # @deprecated
63
- #
64
- # @return [Boolean, nil]
65
- optional :is_spend_blocked, Lithic::Internal::Type::Boolean
66
-
67
- # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil)
42
+ # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:)
68
43
  # @param account_token [String] Globally unique identifier for the account
69
44
  #
70
45
  # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration]
@@ -76,12 +51,6 @@ module Lithic
76
51
  # @param external_bank_account_token [String, nil]
77
52
  #
78
53
  # @param tier [String, nil] Tier assigned to the financial account
79
- #
80
- # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
81
- #
82
- # @param financial_account_state [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState] State of the financial account
83
- #
84
- # @param is_spend_blocked [Boolean]
85
54
 
86
55
  # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#auto_collection_configuration
87
56
  class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
@@ -94,38 +63,6 @@ module Lithic
94
63
  # @!method initialize(auto_collection_enabled:)
95
64
  # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account
96
65
  end
97
-
98
- # @deprecated
99
- #
100
- # Reason for the financial account being marked as Charged Off
101
- #
102
- # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#charged_off_reason
103
- module ChargedOffReason
104
- extend Lithic::Internal::Type::Enum
105
-
106
- DELINQUENT = :DELINQUENT
107
- FRAUD = :FRAUD
108
-
109
- # @!method self.values
110
- # @return [Array<Symbol>]
111
- end
112
-
113
- # @deprecated
114
- #
115
- # State of the financial account
116
- #
117
- # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#financial_account_state
118
- module FinancialAccountState
119
- extend Lithic::Internal::Type::Enum
120
-
121
- PENDING = :PENDING
122
- CURRENT = :CURRENT
123
- DELINQUENT = :DELINQUENT
124
- CHARGED_OFF = :CHARGED_OFF
125
-
126
- # @!method self.values
127
- # @return [Array<Symbol>]
128
- end
129
66
  end
130
67
  end
131
68
 
@@ -55,8 +55,8 @@ module Lithic
55
55
 
56
56
  # @!attribute day_totals
57
57
  #
58
- # @return [Lithic::Models::FinancialAccounts::LoanTape::DayTotals]
59
- required :day_totals, -> { Lithic::FinancialAccounts::LoanTape::DayTotals }
58
+ # @return [Lithic::Models::StatementTotals]
59
+ required :day_totals, -> { Lithic::StatementTotals }
60
60
 
61
61
  # @!attribute ending_balance
62
62
  # Balance at the end of the day
@@ -90,13 +90,13 @@ module Lithic
90
90
 
91
91
  # @!attribute payment_allocation
92
92
  #
93
- # @return [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
94
- required :payment_allocation, -> { Lithic::FinancialAccounts::LoanTape::PaymentAllocation }
93
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
94
+ required :payment_allocation, -> { Lithic::FinancialAccounts::CategoryBalances }
95
95
 
96
96
  # @!attribute period_totals
97
97
  #
98
- # @return [Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals]
99
- required :period_totals, -> { Lithic::FinancialAccounts::LoanTape::PeriodTotals }
98
+ # @return [Lithic::Models::StatementTotals]
99
+ required :period_totals, -> { Lithic::StatementTotals }
100
100
 
101
101
  # @!attribute previous_statement_balance
102
102
  #
@@ -123,14 +123,14 @@ module Lithic
123
123
 
124
124
  # @!attribute ytd_totals
125
125
  #
126
- # @return [Lithic::Models::FinancialAccounts::LoanTape::YtdTotals]
127
- required :ytd_totals, -> { Lithic::FinancialAccounts::LoanTape::YtdTotals }
126
+ # @return [Lithic::Models::StatementTotals]
127
+ required :ytd_totals, -> { Lithic::StatementTotals }
128
128
 
129
129
  # @!attribute tier
130
130
  # Interest tier to which this account belongs to
131
131
  #
132
132
  # @return [String, nil]
133
- optional :tier, String
133
+ optional :tier, String, nil?: true
134
134
 
135
135
  # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, tier: nil)
136
136
  # Some parameter documentations has been truncated, see
@@ -152,7 +152,7 @@ module Lithic
152
152
  #
153
153
  # @param date [Date] Date of transactions that this loan tape covers
154
154
  #
155
- # @param day_totals [Lithic::Models::FinancialAccounts::LoanTape::DayTotals]
155
+ # @param day_totals [Lithic::Models::StatementTotals]
156
156
  #
157
157
  # @param ending_balance [Integer] Balance at the end of the day
158
158
  #
@@ -164,9 +164,9 @@ module Lithic
164
164
  #
165
165
  # @param minimum_payment_balance [Lithic::Models::FinancialAccounts::LoanTape::MinimumPaymentBalance]
166
166
  #
167
- # @param payment_allocation [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
167
+ # @param payment_allocation [Lithic::Models::FinancialAccounts::CategoryBalances]
168
168
  #
169
- # @param period_totals [Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals]
169
+ # @param period_totals [Lithic::Models::StatementTotals]
170
170
  #
171
171
  # @param previous_statement_balance [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
172
172
  #
@@ -176,9 +176,9 @@ module Lithic
176
176
  #
177
177
  # @param version [Integer] Version number of the loan tape. This starts at 1
178
178
  #
179
- # @param ytd_totals [Lithic::Models::FinancialAccounts::LoanTape::YtdTotals]
179
+ # @param ytd_totals [Lithic::Models::StatementTotals]
180
180
  #
181
- # @param tier [String] Interest tier to which this account belongs to
181
+ # @param tier [String, nil] Interest tier to which this account belongs to
182
182
 
183
183
  # @see Lithic::Models::FinancialAccounts::LoanTape#account_standing
184
184
  class AccountStanding < Lithic::Internal::Type::BaseModel
@@ -324,207 +324,40 @@ module Lithic
324
324
  # Amount due for the prior billing cycle. Any amounts not fully paid off on this
325
325
  # due date will be considered past due the next day
326
326
  #
327
- # @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::Due]
328
- required :due, -> { Lithic::FinancialAccounts::LoanTape::Balances::Due }
327
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
328
+ required :due, -> { Lithic::FinancialAccounts::CategoryBalances }
329
329
 
330
330
  # @!attribute next_statement_due
331
331
  # Amount due for the current billing cycle. Any amounts not paid off by early
332
332
  # payments or credits will be considered due at the end of the current billing
333
333
  # period
334
334
  #
335
- # @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::NextStatementDue]
336
- required :next_statement_due, -> { Lithic::FinancialAccounts::LoanTape::Balances::NextStatementDue }
335
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
336
+ required :next_statement_due, -> { Lithic::FinancialAccounts::CategoryBalances }
337
337
 
338
338
  # @!attribute past_due
339
339
  # Amount not paid off on previous due dates
340
340
  #
341
- # @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastDue]
342
- required :past_due, -> { Lithic::FinancialAccounts::LoanTape::Balances::PastDue }
341
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
342
+ required :past_due, -> { Lithic::FinancialAccounts::CategoryBalances }
343
343
 
344
344
  # @!attribute past_statements_due
345
345
  # Amount due for the past billing cycles.
346
346
  #
347
- # @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue]
348
- required :past_statements_due, -> { Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue }
347
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
348
+ required :past_statements_due, -> { Lithic::FinancialAccounts::CategoryBalances }
349
349
 
350
350
  # @!method initialize(due:, next_statement_due:, past_due:, past_statements_due:)
351
351
  # Some parameter documentations has been truncated, see
352
352
  # {Lithic::Models::FinancialAccounts::LoanTape::Balances} for more details.
353
353
  #
354
- # @param due [Lithic::Models::FinancialAccounts::LoanTape::Balances::Due] Amount due for the prior billing cycle. Any amounts not fully paid off on this d
354
+ # @param due [Lithic::Models::FinancialAccounts::CategoryBalances] Amount due for the prior billing cycle. Any amounts not fully paid off on this d
355
355
  #
356
- # @param next_statement_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::NextStatementDue] Amount due for the current billing cycle. Any amounts not paid off by early paym
356
+ # @param next_statement_due [Lithic::Models::FinancialAccounts::CategoryBalances] Amount due for the current billing cycle. Any amounts not paid off by early paym
357
357
  #
358
- # @param past_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastDue] Amount not paid off on previous due dates
358
+ # @param past_due [Lithic::Models::FinancialAccounts::CategoryBalances] Amount not paid off on previous due dates
359
359
  #
360
- # @param past_statements_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue] Amount due for the past billing cycles.
361
-
362
- # @see Lithic::Models::FinancialAccounts::LoanTape::Balances#due
363
- class Due < Lithic::Internal::Type::BaseModel
364
- # @!attribute fees
365
- #
366
- # @return [Integer]
367
- required :fees, Integer
368
-
369
- # @!attribute interest
370
- #
371
- # @return [Integer]
372
- required :interest, Integer
373
-
374
- # @!attribute principal
375
- #
376
- # @return [Integer]
377
- required :principal, Integer
378
-
379
- # @!method initialize(fees:, interest:, principal:)
380
- # Amount due for the prior billing cycle. Any amounts not fully paid off on this
381
- # due date will be considered past due the next day
382
- #
383
- # @param fees [Integer]
384
- # @param interest [Integer]
385
- # @param principal [Integer]
386
- end
387
-
388
- # @see Lithic::Models::FinancialAccounts::LoanTape::Balances#next_statement_due
389
- class NextStatementDue < Lithic::Internal::Type::BaseModel
390
- # @!attribute fees
391
- #
392
- # @return [Integer]
393
- required :fees, Integer
394
-
395
- # @!attribute interest
396
- #
397
- # @return [Integer]
398
- required :interest, Integer
399
-
400
- # @!attribute principal
401
- #
402
- # @return [Integer]
403
- required :principal, Integer
404
-
405
- # @!method initialize(fees:, interest:, principal:)
406
- # Amount due for the current billing cycle. Any amounts not paid off by early
407
- # payments or credits will be considered due at the end of the current billing
408
- # period
409
- #
410
- # @param fees [Integer]
411
- # @param interest [Integer]
412
- # @param principal [Integer]
413
- end
414
-
415
- # @see Lithic::Models::FinancialAccounts::LoanTape::Balances#past_due
416
- class PastDue < Lithic::Internal::Type::BaseModel
417
- # @!attribute fees
418
- #
419
- # @return [Integer]
420
- required :fees, Integer
421
-
422
- # @!attribute interest
423
- #
424
- # @return [Integer]
425
- required :interest, Integer
426
-
427
- # @!attribute principal
428
- #
429
- # @return [Integer]
430
- required :principal, Integer
431
-
432
- # @!method initialize(fees:, interest:, principal:)
433
- # Amount not paid off on previous due dates
434
- #
435
- # @param fees [Integer]
436
- # @param interest [Integer]
437
- # @param principal [Integer]
438
- end
439
-
440
- # @see Lithic::Models::FinancialAccounts::LoanTape::Balances#past_statements_due
441
- class PastStatementsDue < Lithic::Internal::Type::BaseModel
442
- # @!attribute fees
443
- #
444
- # @return [Integer]
445
- required :fees, Integer
446
-
447
- # @!attribute interest
448
- #
449
- # @return [Integer]
450
- required :interest, Integer
451
-
452
- # @!attribute principal
453
- #
454
- # @return [Integer]
455
- required :principal, Integer
456
-
457
- # @!method initialize(fees:, interest:, principal:)
458
- # Amount due for the past billing cycles.
459
- #
460
- # @param fees [Integer]
461
- # @param interest [Integer]
462
- # @param principal [Integer]
463
- end
464
- end
465
-
466
- # @see Lithic::Models::FinancialAccounts::LoanTape#day_totals
467
- class DayTotals < Lithic::Internal::Type::BaseModel
468
- # @!attribute balance_transfers
469
- # Opening balance transferred from previous account in cents
470
- #
471
- # @return [Integer]
472
- required :balance_transfers, Integer
473
-
474
- # @!attribute cash_advances
475
- # ATM and cashback transactions in cents
476
- #
477
- # @return [Integer]
478
- required :cash_advances, Integer
479
-
480
- # @!attribute credits
481
- # Volume of credit management operation transactions less any balance transfers in
482
- # cents
483
- #
484
- # @return [Integer]
485
- required :credits, Integer
486
-
487
- # @!attribute fees
488
- # Volume of debit management operation transactions less any interest in cents
489
- #
490
- # @return [Integer]
491
- required :fees, Integer
492
-
493
- # @!attribute interest
494
- # Interest accrued in cents
495
- #
496
- # @return [Integer]
497
- required :interest, Integer
498
-
499
- # @!attribute payments
500
- # Any funds transfers which affective the balance in cents
501
- #
502
- # @return [Integer]
503
- required :payments, Integer
504
-
505
- # @!attribute purchases
506
- # Net card transaction volume less any cash advances in cents
507
- #
508
- # @return [Integer]
509
- required :purchases, Integer
510
-
511
- # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:)
512
- # Some parameter documentations has been truncated, see
513
- # {Lithic::Models::FinancialAccounts::LoanTape::DayTotals} for more details.
514
- #
515
- # @param balance_transfers [Integer] Opening balance transferred from previous account in cents
516
- #
517
- # @param cash_advances [Integer] ATM and cashback transactions in cents
518
- #
519
- # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in
520
- #
521
- # @param fees [Integer] Volume of debit management operation transactions less any interest in cents
522
- #
523
- # @param interest [Integer] Interest accrued in cents
524
- #
525
- # @param payments [Integer] Any funds transfers which affective the balance in cents
526
- #
527
- # @param purchases [Integer] Net card transaction volume less any cash advances in cents
360
+ # @param past_statements_due [Lithic::Models::FinancialAccounts::CategoryBalances] Amount due for the past billing cycles.
528
361
  end
529
362
 
530
363
  # @see Lithic::Models::FinancialAccounts::LoanTape#interest_details
@@ -536,14 +369,13 @@ module Lithic
536
369
 
537
370
  # @!attribute daily_balance_amounts
538
371
  #
539
- # @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts]
540
- required :daily_balance_amounts,
541
- -> { Lithic::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts }
372
+ # @return [Lithic::Models::CategoryDetails]
373
+ required :daily_balance_amounts, -> { Lithic::CategoryDetails }
542
374
 
543
375
  # @!attribute effective_apr
544
376
  #
545
- # @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr]
546
- required :effective_apr, -> { Lithic::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr }
377
+ # @return [Lithic::Models::CategoryDetails]
378
+ required :effective_apr, -> { Lithic::CategoryDetails }
547
379
 
548
380
  # @!attribute interest_calculation_method
549
381
  #
@@ -553,9 +385,8 @@ module Lithic
553
385
 
554
386
  # @!attribute interest_for_period
555
387
  #
556
- # @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod]
557
- required :interest_for_period,
558
- -> { Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod }
388
+ # @return [Lithic::Models::CategoryDetails]
389
+ required :interest_for_period, -> { Lithic::CategoryDetails }
559
390
 
560
391
  # @!attribute prime_rate
561
392
  #
@@ -569,59 +400,13 @@ module Lithic
569
400
 
570
401
  # @!method initialize(actual_interest_charged:, daily_balance_amounts:, effective_apr:, interest_calculation_method:, interest_for_period:, prime_rate:, minimum_interest_charged: nil)
571
402
  # @param actual_interest_charged [Integer, nil]
572
- # @param daily_balance_amounts [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts]
573
- # @param effective_apr [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr]
403
+ # @param daily_balance_amounts [Lithic::Models::CategoryDetails]
404
+ # @param effective_apr [Lithic::Models::CategoryDetails]
574
405
  # @param interest_calculation_method [Symbol, Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod]
575
- # @param interest_for_period [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod]
406
+ # @param interest_for_period [Lithic::Models::CategoryDetails]
576
407
  # @param prime_rate [String, nil]
577
408
  # @param minimum_interest_charged [Integer, nil]
578
409
 
579
- # @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#daily_balance_amounts
580
- class DailyBalanceAmounts < Lithic::Internal::Type::BaseModel
581
- # @!attribute balance_transfers
582
- #
583
- # @return [String]
584
- required :balance_transfers, String
585
-
586
- # @!attribute cash_advances
587
- #
588
- # @return [String]
589
- required :cash_advances, String
590
-
591
- # @!attribute purchases
592
- #
593
- # @return [String]
594
- required :purchases, String
595
-
596
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
597
- # @param balance_transfers [String]
598
- # @param cash_advances [String]
599
- # @param purchases [String]
600
- end
601
-
602
- # @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#effective_apr
603
- class EffectiveApr < Lithic::Internal::Type::BaseModel
604
- # @!attribute balance_transfers
605
- #
606
- # @return [String]
607
- required :balance_transfers, String
608
-
609
- # @!attribute cash_advances
610
- #
611
- # @return [String]
612
- required :cash_advances, String
613
-
614
- # @!attribute purchases
615
- #
616
- # @return [String]
617
- required :purchases, String
618
-
619
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
620
- # @param balance_transfers [String]
621
- # @param cash_advances [String]
622
- # @param purchases [String]
623
- end
624
-
625
410
  # @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#interest_calculation_method
626
411
  module InterestCalculationMethod
627
412
  extend Lithic::Internal::Type::Enum
@@ -632,29 +417,6 @@ module Lithic
632
417
  # @!method self.values
633
418
  # @return [Array<Symbol>]
634
419
  end
635
-
636
- # @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#interest_for_period
637
- class InterestForPeriod < Lithic::Internal::Type::BaseModel
638
- # @!attribute balance_transfers
639
- #
640
- # @return [String]
641
- required :balance_transfers, String
642
-
643
- # @!attribute cash_advances
644
- #
645
- # @return [String]
646
- required :cash_advances, String
647
-
648
- # @!attribute purchases
649
- #
650
- # @return [String]
651
- required :purchases, String
652
-
653
- # @!method initialize(balance_transfers:, cash_advances:, purchases:)
654
- # @param balance_transfers [String]
655
- # @param cash_advances [String]
656
- # @param purchases [String]
657
- end
658
420
  end
659
421
 
660
422
  # @see Lithic::Models::FinancialAccounts::LoanTape#minimum_payment_balance
@@ -674,93 +436,6 @@ module Lithic
674
436
  # @param remaining [Integer]
675
437
  end
676
438
 
677
- # @see Lithic::Models::FinancialAccounts::LoanTape#payment_allocation
678
- class PaymentAllocation < Lithic::Internal::Type::BaseModel
679
- # @!attribute fees
680
- #
681
- # @return [Integer]
682
- required :fees, Integer
683
-
684
- # @!attribute interest
685
- #
686
- # @return [Integer]
687
- required :interest, Integer
688
-
689
- # @!attribute principal
690
- #
691
- # @return [Integer]
692
- required :principal, Integer
693
-
694
- # @!method initialize(fees:, interest:, principal:)
695
- # @param fees [Integer]
696
- # @param interest [Integer]
697
- # @param principal [Integer]
698
- end
699
-
700
- # @see Lithic::Models::FinancialAccounts::LoanTape#period_totals
701
- class PeriodTotals < Lithic::Internal::Type::BaseModel
702
- # @!attribute balance_transfers
703
- # Opening balance transferred from previous account in cents
704
- #
705
- # @return [Integer]
706
- required :balance_transfers, Integer
707
-
708
- # @!attribute cash_advances
709
- # ATM and cashback transactions in cents
710
- #
711
- # @return [Integer]
712
- required :cash_advances, Integer
713
-
714
- # @!attribute credits
715
- # Volume of credit management operation transactions less any balance transfers in
716
- # cents
717
- #
718
- # @return [Integer]
719
- required :credits, Integer
720
-
721
- # @!attribute fees
722
- # Volume of debit management operation transactions less any interest in cents
723
- #
724
- # @return [Integer]
725
- required :fees, Integer
726
-
727
- # @!attribute interest
728
- # Interest accrued in cents
729
- #
730
- # @return [Integer]
731
- required :interest, Integer
732
-
733
- # @!attribute payments
734
- # Any funds transfers which affective the balance in cents
735
- #
736
- # @return [Integer]
737
- required :payments, Integer
738
-
739
- # @!attribute purchases
740
- # Net card transaction volume less any cash advances in cents
741
- #
742
- # @return [Integer]
743
- required :purchases, Integer
744
-
745
- # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:)
746
- # Some parameter documentations has been truncated, see
747
- # {Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals} for more details.
748
- #
749
- # @param balance_transfers [Integer] Opening balance transferred from previous account in cents
750
- #
751
- # @param cash_advances [Integer] ATM and cashback transactions in cents
752
- #
753
- # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in
754
- #
755
- # @param fees [Integer] Volume of debit management operation transactions less any interest in cents
756
- #
757
- # @param interest [Integer] Interest accrued in cents
758
- #
759
- # @param payments [Integer] Any funds transfers which affective the balance in cents
760
- #
761
- # @param purchases [Integer] Net card transaction volume less any cash advances in cents
762
- end
763
-
764
439
  # @see Lithic::Models::FinancialAccounts::LoanTape#previous_statement_balance
765
440
  class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
766
441
  # @!attribute amount
@@ -777,70 +452,6 @@ module Lithic
777
452
  # @param amount [Integer]
778
453
  # @param remaining [Integer]
779
454
  end
780
-
781
- # @see Lithic::Models::FinancialAccounts::LoanTape#ytd_totals
782
- class YtdTotals < Lithic::Internal::Type::BaseModel
783
- # @!attribute balance_transfers
784
- # Opening balance transferred from previous account in cents
785
- #
786
- # @return [Integer]
787
- required :balance_transfers, Integer
788
-
789
- # @!attribute cash_advances
790
- # ATM and cashback transactions in cents
791
- #
792
- # @return [Integer]
793
- required :cash_advances, Integer
794
-
795
- # @!attribute credits
796
- # Volume of credit management operation transactions less any balance transfers in
797
- # cents
798
- #
799
- # @return [Integer]
800
- required :credits, Integer
801
-
802
- # @!attribute fees
803
- # Volume of debit management operation transactions less any interest in cents
804
- #
805
- # @return [Integer]
806
- required :fees, Integer
807
-
808
- # @!attribute interest
809
- # Interest accrued in cents
810
- #
811
- # @return [Integer]
812
- required :interest, Integer
813
-
814
- # @!attribute payments
815
- # Any funds transfers which affective the balance in cents
816
- #
817
- # @return [Integer]
818
- required :payments, Integer
819
-
820
- # @!attribute purchases
821
- # Net card transaction volume less any cash advances in cents
822
- #
823
- # @return [Integer]
824
- required :purchases, Integer
825
-
826
- # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:)
827
- # Some parameter documentations has been truncated, see
828
- # {Lithic::Models::FinancialAccounts::LoanTape::YtdTotals} for more details.
829
- #
830
- # @param balance_transfers [Integer] Opening balance transferred from previous account in cents
831
- #
832
- # @param cash_advances [Integer] ATM and cashback transactions in cents
833
- #
834
- # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in
835
- #
836
- # @param fees [Integer] Volume of debit management operation transactions less any interest in cents
837
- #
838
- # @param interest [Integer] Interest accrued in cents
839
- #
840
- # @param payments [Integer] Any funds transfers which affective the balance in cents
841
- #
842
- # @param purchases [Integer] Net card transaction volume less any cash advances in cents
843
- end
844
455
  end
845
456
  end
846
457
  end