lithic 0.21.0 → 0.23.0

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 (235) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/type/union.rb +21 -7
  6. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  7. data/lib/lithic/models/account_activity_list_response.rb +2 -24
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -24
  9. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  10. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  11. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  12. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  13. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  14. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  15. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  16. data/lib/lithic/models/address.rb +33 -19
  17. data/lib/lithic/models/address_update.rb +27 -11
  18. data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
  19. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  20. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  21. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  22. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  23. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  24. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  25. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  26. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  27. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  28. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  29. data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
  30. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  32. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  33. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  34. data/lib/lithic/models/book_transfer_create_params.rb +1 -0
  35. data/lib/lithic/models/book_transfer_response.rb +1 -0
  36. data/lib/lithic/models/card_authorization.rb +12 -1
  37. data/lib/lithic/models/card_create_params.rb +11 -1
  38. data/lib/lithic/models/card_update_params.rb +12 -1
  39. data/lib/lithic/models/cards/financial_transaction_list_params.rb +9 -1
  40. data/lib/lithic/models/claim_created_webhook_event.rb +15 -1
  41. data/lib/lithic/models/claim_updated_webhook_event.rb +15 -1
  42. data/lib/lithic/models/financial_account_balance.rb +6 -6
  43. data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +9 -2
  44. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +9 -1
  45. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  46. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  47. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  48. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +6 -6
  49. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +6 -6
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +71 -2
  51. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +5 -0
  52. data/lib/lithic/models/financial_event.rb +4 -0
  53. data/lib/lithic/models/funding_event_list_params.rb +28 -1
  54. data/lib/lithic/models/hold.rb +24 -28
  55. data/lib/lithic/models/ip_range_retrieve_params.rb +14 -0
  56. data/lib/lithic/models/ip_range_retrieve_response.rb +25 -0
  57. data/lib/lithic/models/kyb.rb +4 -2
  58. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  59. data/lib/lithic/models/kyc.rb +2 -1
  60. data/lib/lithic/models/non_pci_card.rb +11 -1
  61. data/lib/lithic/models/parsed_webhook_event.rb +120 -66
  62. data/lib/lithic/models/payment.rb +3 -1
  63. data/lib/lithic/models/transaction.rb +11 -4
  64. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  65. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  66. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  67. data/lib/lithic/models/transactions/events/enhanced_data.rb +27 -3
  68. data/lib/lithic/models/transfer_limits_response.rb +9 -1
  69. data/lib/lithic/models.rb +2 -0
  70. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  71. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  72. data/lib/lithic/resources/cards/financial_transactions.rb +5 -3
  73. data/lib/lithic/resources/cards.rb +6 -2
  74. data/lib/lithic/resources/financial_accounts/credit_configuration.rb +9 -2
  75. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +5 -3
  76. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  77. data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
  78. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -6
  79. data/lib/lithic/resources/funding_events.rb +8 -2
  80. data/lib/lithic/resources/ip_ranges.rb +36 -0
  81. data/lib/lithic/resources/transactions.rb +17 -4
  82. data/lib/lithic/resources/webhooks.rb +20 -0
  83. data/lib/lithic/version.rb +1 -1
  84. data/lib/lithic.rb +11 -1
  85. data/rbi/lithic/client.rbi +3 -0
  86. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  87. data/rbi/lithic/models/account_activity_list_response.rbi +6 -75
  88. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +6 -75
  89. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  90. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  91. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  92. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  93. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  94. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  95. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  96. data/rbi/lithic/models/address.rbi +57 -29
  97. data/rbi/lithic/models/address_update.rbi +50 -24
  98. data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
  99. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  100. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  101. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  102. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  103. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  104. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  105. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  106. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  107. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  108. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  109. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
  110. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  111. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  112. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  113. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  114. data/rbi/lithic/models/book_transfer_create_params.rbi +5 -0
  115. data/rbi/lithic/models/book_transfer_response.rbi +5 -0
  116. data/rbi/lithic/models/card_authorization.rbi +14 -0
  117. data/rbi/lithic/models/card_create_params.rbi +15 -0
  118. data/rbi/lithic/models/card_update_params.rbi +17 -0
  119. data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
  120. data/rbi/lithic/models/claim_created_webhook_event.rbi +14 -0
  121. data/rbi/lithic/models/claim_updated_webhook_event.rbi +14 -0
  122. data/rbi/lithic/models/financial_account_balance.rbi +6 -6
  123. data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +8 -2
  124. data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
  125. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  126. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  127. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  128. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +9 -18
  129. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +9 -18
  130. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +143 -3
  131. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +25 -0
  132. data/rbi/lithic/models/financial_event.rbi +17 -0
  133. data/rbi/lithic/models/funding_event_list_params.rbi +39 -0
  134. data/rbi/lithic/models/hold.rbi +28 -29
  135. data/rbi/lithic/models/ip_range_retrieve_params.rbi +27 -0
  136. data/rbi/lithic/models/ip_range_retrieve_response.rbi +40 -0
  137. data/rbi/lithic/models/kyb.rbi +8 -4
  138. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  139. data/rbi/lithic/models/kyc.rbi +4 -2
  140. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  141. data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
  142. data/rbi/lithic/models/payment.rbi +5 -2
  143. data/rbi/lithic/models/transaction.rbi +15 -6
  144. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  145. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  146. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  147. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +25 -5
  148. data/rbi/lithic/models/transfer_limits_response.rbi +8 -0
  149. data/rbi/lithic/models.rbi +2 -0
  150. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  151. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  152. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  153. data/rbi/lithic/resources/cards/financial_transactions.rbi +4 -1
  154. data/rbi/lithic/resources/cards.rbi +11 -0
  155. data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +8 -2
  156. data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +4 -1
  157. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  158. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
  159. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -6
  160. data/rbi/lithic/resources/funding_events.rbi +12 -0
  161. data/rbi/lithic/resources/ip_ranges.rbi +25 -0
  162. data/rbi/lithic/resources/transactions.rbi +31 -2
  163. data/sig/lithic/client.rbs +2 -0
  164. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  165. data/sig/lithic/models/account_activity_list_response.rbs +3 -32
  166. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +3 -32
  167. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  168. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  169. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  170. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  171. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  172. data/sig/lithic/models/address.rbs +13 -13
  173. data/sig/lithic/models/address_update.rbs +8 -12
  174. data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
  175. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  176. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  177. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  178. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  179. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  180. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  181. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  182. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  183. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  184. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  185. data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
  186. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  187. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  188. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  189. data/sig/lithic/models/book_transfer_create_params.rbs +2 -0
  190. data/sig/lithic/models/book_transfer_response.rbs +2 -0
  191. data/sig/lithic/models/card_authorization.rbs +13 -1
  192. data/sig/lithic/models/card_create_params.rbs +7 -0
  193. data/sig/lithic/models/card_update_params.rbs +8 -1
  194. data/sig/lithic/models/cards/financial_transaction_list_params.rbs +7 -0
  195. data/sig/lithic/models/claim_created_webhook_event.rbs +5 -0
  196. data/sig/lithic/models/claim_updated_webhook_event.rbs +5 -0
  197. data/sig/lithic/models/financial_account_balance.rbs +8 -8
  198. data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +7 -0
  199. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  200. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  201. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  202. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +12 -18
  203. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +12 -18
  204. data/sig/lithic/models/financial_accounts/loan_tape.rbs +55 -3
  205. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +10 -0
  206. data/sig/lithic/models/financial_event.rbs +8 -0
  207. data/sig/lithic/models/funding_event_list_params.rbs +26 -1
  208. data/sig/lithic/models/hold.rbs +22 -30
  209. data/sig/lithic/models/ip_range_retrieve_params.rbs +15 -0
  210. data/sig/lithic/models/ip_range_retrieve_response.rbs +16 -0
  211. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  212. data/sig/lithic/models/non_pci_card.rbs +5 -0
  213. data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
  214. data/sig/lithic/models/payment.rbs +2 -0
  215. data/sig/lithic/models/transaction.rbs +12 -5
  216. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  217. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  218. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  219. data/sig/lithic/models/transactions/events/enhanced_data.rbs +13 -3
  220. data/sig/lithic/models/transfer_limits_response.rbs +5 -0
  221. data/sig/lithic/models.rbs +2 -0
  222. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  223. data/sig/lithic/resources/cards/financial_transactions.rbs +2 -1
  224. data/sig/lithic/resources/cards.rbs +2 -0
  225. data/sig/lithic/resources/financial_accounts/financial_transactions.rbs +2 -1
  226. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  227. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
  228. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +6 -6
  229. data/sig/lithic/resources/funding_events.rbs +3 -0
  230. data/sig/lithic/resources/ip_ranges.rbs +11 -0
  231. data/sig/lithic/resources/transactions.rbs +5 -0
  232. metadata +36 -10
  233. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  234. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  235. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -0,0 +1,107 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FinancialAccounts
6
+ class InstallmentPlans
7
+ class Statements
8
+ # Get a specific statement snapshot for a given installment plan.
9
+ #
10
+ # @overload retrieve(statement_token, financial_account_token:, installment_plan_token:, request_options: {})
11
+ #
12
+ # @param statement_token [String] Globally unique identifier for statement.
13
+ #
14
+ # @param financial_account_token [String] Globally unique identifier for financial account.
15
+ #
16
+ # @param installment_plan_token [String] Globally unique identifier for installment plan.
17
+ #
18
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
19
+ #
20
+ # @return [Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement]
21
+ #
22
+ # @see Lithic::Models::FinancialAccounts::InstallmentPlans::StatementRetrieveParams
23
+ def retrieve(statement_token, params)
24
+ parsed, options =
25
+ Lithic::FinancialAccounts::InstallmentPlans::StatementRetrieveParams.dump_request(params)
26
+ financial_account_token =
27
+ parsed.delete(:financial_account_token) do
28
+ raise ArgumentError.new("missing required path argument #{_1}")
29
+ end
30
+ installment_plan_token =
31
+ parsed.delete(:installment_plan_token) do
32
+ raise ArgumentError.new("missing required path argument #{_1}")
33
+ end
34
+ @client.request(
35
+ method: :get,
36
+ path: [
37
+ "v1/financial_accounts/%1$s/installment_plans/%2$s/statements/%3$s",
38
+ financial_account_token,
39
+ installment_plan_token,
40
+ statement_token
41
+ ],
42
+ model: Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement,
43
+ options: options
44
+ )
45
+ end
46
+
47
+ # Some parameter documentations has been truncated, see
48
+ # {Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams} for
49
+ # more details.
50
+ #
51
+ # List the statement snapshots for a given installment plan.
52
+ #
53
+ # @overload list(installment_plan_token, financial_account_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
54
+ #
55
+ # @param installment_plan_token [String] Path param: Globally unique identifier for installment plan.
56
+ #
57
+ # @param financial_account_token [String] Path param: Globally unique identifier for financial account.
58
+ #
59
+ # @param begin_ [Date] Query param: Date string in RFC 3339 format. Only entries created after the spec
60
+ #
61
+ # @param end_ [Date] Query param: Date string in RFC 3339 format. Only entries created before the spe
62
+ #
63
+ # @param ending_before [String] Query param: A cursor representing an item's token before which a page of result
64
+ #
65
+ # @param page_size [Integer] Query param: Page size (for pagination).
66
+ #
67
+ # @param starting_after [String] Query param: A cursor representing an item's token after which a page of results
68
+ #
69
+ # @param state [Symbol, Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams::State, nil] Query param: Only snapshots in which the plan was in this state will be included
70
+ #
71
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
72
+ #
73
+ # @return [Lithic::Internal::CursorPage<Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement>]
74
+ #
75
+ # @see Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams
76
+ def list(installment_plan_token, params)
77
+ parsed, options = Lithic::FinancialAccounts::InstallmentPlans::StatementListParams.dump_request(params)
78
+ query = Lithic::Internal::Util.encode_query_params(parsed)
79
+ financial_account_token =
80
+ parsed.delete(:financial_account_token) do
81
+ raise ArgumentError.new("missing required path argument #{_1}")
82
+ end
83
+ @client.request(
84
+ method: :get,
85
+ path: [
86
+ "v1/financial_accounts/%1$s/installment_plans/%2$s/statements",
87
+ financial_account_token,
88
+ installment_plan_token
89
+ ],
90
+ query: query.transform_keys(begin_: "begin", end_: "end"),
91
+ page: Lithic::Internal::CursorPage,
92
+ model: Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement,
93
+ options: options
94
+ )
95
+ end
96
+
97
+ # @api private
98
+ #
99
+ # @param client [Lithic::Client]
100
+ def initialize(client:)
101
+ @client = client
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
@@ -4,6 +4,9 @@ module Lithic
4
4
  module Resources
5
5
  class FinancialAccounts
6
6
  class InstallmentPlans
7
+ # @return [Lithic::Resources::FinancialAccounts::InstallmentPlans::Statements]
8
+ attr_reader :statements
9
+
7
10
  # Get a specific installment plan for a given financial account.
8
11
  #
9
12
  # @overload retrieve(installment_plan_token, financial_account_token:, request_options: {})
@@ -75,6 +78,7 @@ module Lithic
75
78
  # @param client [Lithic::Client]
76
79
  def initialize(client:)
77
80
  @client = client
81
+ @statements = Lithic::Resources::FinancialAccounts::InstallmentPlans::Statements.new(client: client)
78
82
  end
79
83
  end
80
84
  end
@@ -18,11 +18,11 @@ module Lithic
18
18
  #
19
19
  # @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
20
20
  #
21
- # @param penalty_rates [Object] Custom rates per category for penalties
21
+ # @param penalty_rates [Object, nil] Custom rates per category for penalties
22
22
  #
23
- # @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
23
+ # @param tier_name [String, nil] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
24
24
  #
25
- # @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
25
+ # @param tier_rates [Object, nil] Custom rates per category. Mutually exclusive with tier_name
26
26
  #
27
27
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
28
28
  #
@@ -83,11 +83,11 @@ module Lithic
83
83
  #
84
84
  # @param financial_account_token [String] Path param: Globally unique identifier for financial account
85
85
  #
86
- # @param penalty_rates [Object] Body param: Custom rates per category for penalties
86
+ # @param penalty_rates [Object, nil] Body param: Custom rates per category for penalties
87
87
  #
88
- # @param tier_name [String] Body param: Name of a tier contained in the credit product. Mutually exclusive w
88
+ # @param tier_name [String, nil] Body param: Name of a tier contained in the credit product. Mutually exclusive w
89
89
  #
90
- # @param tier_rates [Object] Body param: Custom rates per category. Mutually exclusive with tier_name
90
+ # @param tier_rates [Object, nil] Body param: Custom rates per category. Mutually exclusive with tier_name
91
91
  #
92
92
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
93
93
  #
@@ -28,10 +28,16 @@ module Lithic
28
28
  #
29
29
  # Get all funding events for program
30
30
  #
31
- # @overload list(ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
31
+ # @overload list(begin_: nil, end_: nil, ending_before: nil, network_settlement_date: nil, page_size: nil, starting_after: nil, request_options: {})
32
+ #
33
+ # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
34
+ #
35
+ # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
32
36
  #
33
37
  # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
34
38
  #
39
+ # @param network_settlement_date [Date] Only funding events with a settlement breakout for this network settlement date
40
+ #
35
41
  # @param page_size [Integer] Page size (for pagination).
36
42
  #
37
43
  # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
@@ -47,7 +53,7 @@ module Lithic
47
53
  @client.request(
48
54
  method: :get,
49
55
  path: "v1/funding_events",
50
- query: query,
56
+ query: query.transform_keys(begin_: "begin", end_: "end"),
51
57
  page: Lithic::Internal::CursorPage,
52
58
  model: Lithic::FundingEvent,
53
59
  options: options
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Resources
5
+ class IPRanges
6
+ # Returns the IP addresses Lithic sends responder requests from (Auth Stream
7
+ # Access, 3DS decisioning, and tokenization decisioning), so you can allowlist
8
+ # them in your firewall. Each environment returns its own set of addresses. Lithic
9
+ # announces new addresses at least 30 days before sending traffic from them. Event
10
+ # webhooks are not sent from these addresses
11
+ #
12
+ # @overload retrieve(request_options: {})
13
+ #
14
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
15
+ #
16
+ # @return [Lithic::Models::IPRangeRetrieveResponse]
17
+ #
18
+ # @see Lithic::Models::IPRangeRetrieveParams
19
+ def retrieve(params = {})
20
+ @client.request(
21
+ method: :get,
22
+ path: "v1/ip_ranges",
23
+ model: Lithic::Models::IPRangeRetrieveResponse,
24
+ options: params[:request_options]
25
+ )
26
+ end
27
+
28
+ # @api private
29
+ #
30
+ # @param client [Lithic::Client]
31
+ def initialize(client:)
32
+ @client = client
33
+ end
34
+ end
35
+ end
36
+ end
@@ -131,7 +131,7 @@ module Lithic
131
131
  # [update account](https://docs.lithic.com/reference/patchaccountbytoken)
132
132
  # endpoint.
133
133
  #
134
- # @overload simulate_authorization(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, status: nil, request_options: {})
134
+ # @overload simulate_authorization(amount:, descriptor:, pan:, billing_currency: nil, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, settlement_currency: nil, status: nil, request_options: {})
135
135
  #
136
136
  # @param amount [Integer] Amount (in cents) to authorize. For credit authorizations and financial credit a
137
137
  #
@@ -139,6 +139,8 @@ module Lithic
139
139
  #
140
140
  # @param pan [String] Sixteen digit card number.
141
141
  #
142
+ # @param billing_currency [String] 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
143
+ #
142
144
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
143
145
  #
144
146
  # @param merchant_acceptor_city [String] Merchant acceptor city
@@ -151,12 +153,14 @@ module Lithic
151
153
  #
152
154
  # @param merchant_amount [Integer] Amount of the transaction to be simulated in currency specified in merchant_curr
153
155
  #
154
- # @param merchant_currency [String] 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
156
+ # @param merchant_currency [String] 3-character alphabetic ISO 4217 currency code for the merchant amount. Only used
155
157
  #
156
158
  # @param partial_approval_capable [Boolean] Set to true if the terminal is capable of partial approval otherwise false.
157
159
  #
158
160
  # @param pin [String] Simulate entering a PIN. If omitted, PIN check will not be performed.
159
161
  #
162
+ # @param settlement_currency [String] 3-character alphabetic ISO 4217 currency code for the settlement amount. Permitt
163
+ #
160
164
  # @param status [Symbol, Lithic::Models::TransactionSimulateAuthorizationParams::Status] Type of event to simulate.
161
165
  #
162
166
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -244,7 +248,7 @@ module Lithic
244
248
  # Simulates a credit authorization advice from the card network. This message
245
249
  # indicates that the network approved a credit authorization on your behalf.
246
250
  #
247
- # @overload simulate_credit_authorization_advice(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, request_options: {})
251
+ # @overload simulate_credit_authorization_advice(amount:, descriptor:, pan:, billing_currency: nil, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, request_options: {})
248
252
  #
249
253
  # @param amount [Integer] Amount (in cents). Any value entered will be converted into a negative amount in
250
254
  #
@@ -252,6 +256,8 @@ module Lithic
252
256
  #
253
257
  # @param pan [String] Sixteen digit card number.
254
258
  #
259
+ # @param billing_currency [String] 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
260
+ #
255
261
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
256
262
  #
257
263
  # @param merchant_acceptor_city [String] Merchant acceptor city
@@ -278,11 +284,14 @@ module Lithic
278
284
  )
279
285
  end
280
286
 
287
+ # Some parameter documentations has been truncated, see
288
+ # {Lithic::Models::TransactionSimulateReturnParams} for more details.
289
+ #
281
290
  # Returns, or refunds, an amount back to a card. Returns simulated via this
282
291
  # endpoint clear immediately, without prior authorization, and result in a
283
292
  # `SETTLED` transaction status.
284
293
  #
285
- # @overload simulate_return(amount:, descriptor:, pan:, request_options: {})
294
+ # @overload simulate_return(amount:, descriptor:, pan:, billing_currency: nil, settlement_currency: nil, request_options: {})
286
295
  #
287
296
  # @param amount [Integer] Amount (in cents) to authorize.
288
297
  #
@@ -290,6 +299,10 @@ module Lithic
290
299
  #
291
300
  # @param pan [String] Sixteen digit card number.
292
301
  #
302
+ # @param billing_currency [String] 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
303
+ #
304
+ # @param settlement_currency [String] 3-character alphabetic ISO 4217 currency code for the settlement amount. Permitt
305
+ #
293
306
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
294
307
  #
295
308
  # @return [Lithic::Models::TransactionSimulateReturnResponse]
@@ -37,6 +37,24 @@ module Lithic
37
37
  Lithic::Internal::Type::Converter.coerce(Lithic::Models::ParsedWebhookEvent, parsed)
38
38
  end
39
39
 
40
+ # @param payload [String] The raw webhook payload as a string
41
+ #
42
+ # @param headers [Hash{String=>String}] The raw HTTP headers that came with the payload
43
+ #
44
+ # @param key [String, nil] The webhook signing key
45
+ #
46
+ # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardPinUpdatedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent]
47
+ def parsed(payload, headers:, key: @client.webhook_secret)
48
+ if key.nil?
49
+ raise ArgumentError.new("Cannot verify a webhook without a key on either the client's webhook_secret or passed in as an argument")
50
+ end
51
+
52
+ ::StandardWebhooks::Webhook.new(key).verify(payload, headers)
53
+
54
+ parsed = JSON.parse(payload, symbolize_names: true)
55
+ Lithic::Internal::Type::Converter.coerce(Lithic::Models::ParsedWebhookEvent, parsed)
56
+ end
57
+
40
58
  # Verifies the signature of a webhook payload using the Standard Webhooks specification.
41
59
  #
42
60
  # @param payload [String] The raw webhook payload as a string
@@ -74,6 +92,8 @@ module Lithic
74
92
 
75
93
  wh = StandardWebhooks::Webhook.new(secret)
76
94
  wh.verify(payload, headers)
95
+
96
+ JSON.parse(payload, symbolize_names: true)
77
97
  end
78
98
 
79
99
  # @api private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.21.0"
4
+ VERSION = "0.23.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -120,6 +120,9 @@ require_relative "lithic/models/api_status"
120
120
  require_relative "lithic/models/auth_rules/ach_payment_update_action"
121
121
  require_relative "lithic/models/auth_rules/auth_rule"
122
122
  require_relative "lithic/models/auth_rules/auth_rule_condition"
123
+ require_relative "lithic/models/auth_rules/auth_rule_entities"
124
+ require_relative "lithic/models/auth_rules/auth_rule_entities_response"
125
+ require_relative "lithic/models/auth_rules/auth_rule_entity"
123
126
  require_relative "lithic/models/auth_rules/auth_rule_version"
124
127
  require_relative "lithic/models/auth_rules/backtest_stats"
125
128
  require_relative "lithic/models/auth_rules/card_transaction_update_action"
@@ -129,7 +132,6 @@ require_relative "lithic/models/auth_rules/conditional_ach_payment_update_action
129
132
  require_relative "lithic/models/auth_rules/conditional_attribute"
130
133
  require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
131
134
  require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
132
- require_relative "lithic/models/auth_rules/conditional_block_parameters"
133
135
  require_relative "lithic/models/auth_rules/conditional_card_transaction_update_action_parameters"
134
136
  require_relative "lithic/models/auth_rules/conditional_operation"
135
137
  require_relative "lithic/models/auth_rules/conditional_tokenization_action_parameters"
@@ -157,6 +159,7 @@ require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
157
159
  require_relative "lithic/models/auth_rules/v2_retrieve_params"
158
160
  require_relative "lithic/models/auth_rules/v2_retrieve_report_params"
159
161
  require_relative "lithic/models/auth_rules/v2_retrieve_report_response"
162
+ require_relative "lithic/models/auth_rules/v2_update_entities_params"
160
163
  require_relative "lithic/models/auth_rules/v2_update_params"
161
164
  require_relative "lithic/models/auth_rules/velocity_limit_params"
162
165
  require_relative "lithic/models/auth_rules/velocity_limit_period"
@@ -331,6 +334,9 @@ require_relative "lithic/models/financial_accounts/financial_transaction_retriev
331
334
  require_relative "lithic/models/financial_accounts/installment_plan"
332
335
  require_relative "lithic/models/financial_accounts/installment_plan_list_params"
333
336
  require_relative "lithic/models/financial_accounts/installment_plan_retrieve_params"
337
+ require_relative "lithic/models/financial_accounts/installment_plans/installment_plan_statement"
338
+ require_relative "lithic/models/financial_accounts/installment_plans/statement_list_params"
339
+ require_relative "lithic/models/financial_accounts/installment_plans/statement_retrieve_params"
334
340
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_create_params"
335
341
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_delete_params"
336
342
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_list_params"
@@ -370,6 +376,8 @@ require_relative "lithic/models/hold_void_params"
370
376
  require_relative "lithic/models/instance_financial_account_type"
371
377
  require_relative "lithic/models/internal_transaction_created_webhook_event"
372
378
  require_relative "lithic/models/internal_transaction_updated_webhook_event"
379
+ require_relative "lithic/models/ip_range_retrieve_params"
380
+ require_relative "lithic/models/ip_range_retrieve_response"
373
381
  require_relative "lithic/models/kyb"
374
382
  require_relative "lithic/models/kyb_business_entity"
375
383
  require_relative "lithic/models/kyc"
@@ -562,6 +570,7 @@ require_relative "lithic/resources/financial_accounts/balances"
562
570
  require_relative "lithic/resources/financial_accounts/credit_configuration"
563
571
  require_relative "lithic/resources/financial_accounts/financial_transactions"
564
572
  require_relative "lithic/resources/financial_accounts/installment_plans"
573
+ require_relative "lithic/resources/financial_accounts/installment_plans/statements"
565
574
  require_relative "lithic/resources/financial_accounts/interest_tier_schedule"
566
575
  require_relative "lithic/resources/financial_accounts/loan_tape_configuration"
567
576
  require_relative "lithic/resources/financial_accounts/loan_tapes"
@@ -573,6 +582,7 @@ require_relative "lithic/resources/fraud/transactions"
573
582
  require_relative "lithic/resources/funding_events"
574
583
  require_relative "lithic/resources/holds"
575
584
  require_relative "lithic/resources/internal_transaction"
585
+ require_relative "lithic/resources/ip_ranges"
576
586
  require_relative "lithic/resources/management_operations"
577
587
  require_relative "lithic/resources/network_programs"
578
588
  require_relative "lithic/resources/payments"
@@ -79,6 +79,9 @@ module Lithic
79
79
  sig { returns(Lithic::Resources::ResponderEndpoints) }
80
80
  attr_reader :responder_endpoints
81
81
 
82
+ sig { returns(Lithic::Resources::IPRanges) }
83
+ attr_reader :ip_ranges
84
+
82
85
  sig { returns(Lithic::Resources::ExternalBankAccounts) }
83
86
  attr_reader :external_bank_accounts
84
87
 
@@ -198,6 +198,11 @@ module Lithic
198
198
  :STABLECOIN,
199
199
  Lithic::AccountActivityListParams::Category::TaggedSymbol
200
200
  )
201
+ INTRA_BANK =
202
+ T.let(
203
+ :INTRA_BANK,
204
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
205
+ )
201
206
  BALANCE_OR_FUNDING =
202
207
  T.let(
203
208
  :BALANCE_OR_FUNDING,
@@ -201,6 +201,11 @@ module Lithic
201
201
  :STABLECOIN,
202
202
  Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
203
203
  )
204
+ INTRA_BANK =
205
+ T.let(
206
+ :INTRA_BANK,
207
+ Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
208
+ )
204
209
  BALANCE_OR_FUNDING =
205
210
  T.let(
206
211
  :BALANCE_OR_FUNDING,
@@ -435,14 +440,6 @@ module Lithic
435
440
  sig { returns(Symbol) }
436
441
  attr_accessor :family
437
442
 
438
- # The status of the transaction
439
- sig do
440
- returns(
441
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
442
- )
443
- end
444
- attr_accessor :status
445
-
446
443
  # ISO 8601 timestamp of when the transaction was last updated
447
444
  sig { returns(Time) }
448
445
  attr_accessor :updated
@@ -452,8 +449,6 @@ module Lithic
452
449
  params(
453
450
  token: String,
454
451
  created: Time,
455
- status:
456
- Lithic::Models::AccountActivityListResponse::Card::Status::OrSymbol,
457
452
  updated: Time,
458
453
  family: Symbol
459
454
  ).returns(T.attached_class)
@@ -463,8 +458,6 @@ module Lithic
463
458
  token:,
464
459
  # ISO 8601 timestamp of when the transaction was created
465
460
  created:,
466
- # The status of the transaction
467
- status:,
468
461
  # ISO 8601 timestamp of when the transaction was last updated
469
462
  updated:,
470
463
  # CARD - Card Transaction
@@ -474,73 +467,11 @@ module Lithic
474
467
 
475
468
  sig do
476
469
  override.returns(
477
- {
478
- token: String,
479
- created: Time,
480
- family: Symbol,
481
- status:
482
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol,
483
- updated: Time
484
- }
470
+ { token: String, created: Time, family: Symbol, updated: Time }
485
471
  )
486
472
  end
487
473
  def to_hash
488
474
  end
489
-
490
- # The status of the transaction
491
- module Status
492
- extend Lithic::Internal::Type::Enum
493
-
494
- TaggedSymbol =
495
- T.type_alias do
496
- T.all(
497
- Symbol,
498
- Lithic::Models::AccountActivityListResponse::Card::Status
499
- )
500
- end
501
- OrSymbol = T.type_alias { T.any(Symbol, String) }
502
-
503
- PENDING =
504
- T.let(
505
- :PENDING,
506
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
507
- )
508
- SETTLED =
509
- T.let(
510
- :SETTLED,
511
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
512
- )
513
- DECLINED =
514
- T.let(
515
- :DECLINED,
516
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
517
- )
518
- REVERSED =
519
- T.let(
520
- :REVERSED,
521
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
522
- )
523
- CANCELED =
524
- T.let(
525
- :CANCELED,
526
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
527
- )
528
- RETURNED =
529
- T.let(
530
- :RETURNED,
531
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
532
- )
533
-
534
- sig do
535
- override.returns(
536
- T::Array[
537
- Lithic::Models::AccountActivityListResponse::Card::Status::TaggedSymbol
538
- ]
539
- )
540
- end
541
- def self.values
542
- end
543
- end
544
475
  end
545
476
 
546
477
  sig do
@@ -201,6 +201,11 @@ module Lithic
201
201
  :STABLECOIN,
202
202
  Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
203
203
  )
204
+ INTRA_BANK =
205
+ T.let(
206
+ :INTRA_BANK,
207
+ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
208
+ )
204
209
  BALANCE_OR_FUNDING =
205
210
  T.let(
206
211
  :BALANCE_OR_FUNDING,
@@ -435,14 +440,6 @@ module Lithic
435
440
  sig { returns(Symbol) }
436
441
  attr_accessor :family
437
442
 
438
- # The status of the transaction
439
- sig do
440
- returns(
441
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
442
- )
443
- end
444
- attr_accessor :status
445
-
446
443
  # ISO 8601 timestamp of when the transaction was last updated
447
444
  sig { returns(Time) }
448
445
  attr_accessor :updated
@@ -452,8 +449,6 @@ module Lithic
452
449
  params(
453
450
  token: String,
454
451
  created: Time,
455
- status:
456
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::OrSymbol,
457
452
  updated: Time,
458
453
  family: Symbol
459
454
  ).returns(T.attached_class)
@@ -463,8 +458,6 @@ module Lithic
463
458
  token:,
464
459
  # ISO 8601 timestamp of when the transaction was created
465
460
  created:,
466
- # The status of the transaction
467
- status:,
468
461
  # ISO 8601 timestamp of when the transaction was last updated
469
462
  updated:,
470
463
  # CARD - Card Transaction
@@ -474,73 +467,11 @@ module Lithic
474
467
 
475
468
  sig do
476
469
  override.returns(
477
- {
478
- token: String,
479
- created: Time,
480
- family: Symbol,
481
- status:
482
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol,
483
- updated: Time
484
- }
470
+ { token: String, created: Time, family: Symbol, updated: Time }
485
471
  )
486
472
  end
487
473
  def to_hash
488
474
  end
489
-
490
- # The status of the transaction
491
- module Status
492
- extend Lithic::Internal::Type::Enum
493
-
494
- TaggedSymbol =
495
- T.type_alias do
496
- T.all(
497
- Symbol,
498
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status
499
- )
500
- end
501
- OrSymbol = T.type_alias { T.any(Symbol, String) }
502
-
503
- PENDING =
504
- T.let(
505
- :PENDING,
506
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
507
- )
508
- SETTLED =
509
- T.let(
510
- :SETTLED,
511
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
512
- )
513
- DECLINED =
514
- T.let(
515
- :DECLINED,
516
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
517
- )
518
- REVERSED =
519
- T.let(
520
- :REVERSED,
521
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
522
- )
523
- CANCELED =
524
- T.let(
525
- :CANCELED,
526
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
527
- )
528
- RETURNED =
529
- T.let(
530
- :RETURNED,
531
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
532
- )
533
-
534
- sig do
535
- override.returns(
536
- T::Array[
537
- Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status::TaggedSymbol
538
- ]
539
- )
540
- end
541
- def self.values
542
- end
543
- end
544
475
  end
545
476
 
546
477
  sig do