lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.41

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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -0
  5. data/lib/lithic/internal/transport/base_client.rb +1 -1
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
  7. data/lib/lithic/internal/type/array_of.rb +1 -0
  8. data/lib/lithic/internal/type/base_model.rb +3 -1
  9. data/lib/lithic/internal/type/converter.rb +27 -0
  10. data/lib/lithic/internal/type/hash_of.rb +1 -0
  11. data/lib/lithic/internal/type/union.rb +9 -7
  12. data/lib/lithic/internal/util.rb +1 -1
  13. data/lib/lithic/models/account.rb +88 -1
  14. data/lib/lithic/models/account_activity_list_params.rb +156 -0
  15. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  17. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  18. data/lib/lithic/models/account_holder.rb +16 -19
  19. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  21. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  22. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  23. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  24. data/lib/lithic/models/account_update_params.rb +86 -1
  25. data/lib/lithic/models/aggregate_balance.rb +1 -0
  26. data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
  27. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  28. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
  29. data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
  30. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
  31. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
  32. data/lib/lithic/models/balance.rb +1 -0
  33. data/lib/lithic/models/balance_list_params.rb +1 -0
  34. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  35. data/lib/lithic/models/book_transfer_response.rb +124 -28
  36. data/lib/lithic/models/card_create_params.rb +90 -1
  37. data/lib/lithic/models/card_program.rb +10 -1
  38. data/lib/lithic/models/card_update_params.rb +98 -1
  39. data/lib/lithic/models/cards/balance_list_response.rb +1 -0
  40. data/lib/lithic/models/document.rb +1 -3
  41. data/lib/lithic/models/events/subscription_create_params.rb +1 -3
  42. data/lib/lithic/models/events/subscription_update_params.rb +1 -3
  43. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  44. data/lib/lithic/models/external_payment.rb +89 -48
  45. data/lib/lithic/models/external_resource.rb +34 -0
  46. data/lib/lithic/models/external_resource_type.rb +18 -0
  47. data/lib/lithic/models/financial_account.rb +1 -0
  48. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
  51. data/lib/lithic/models/financial_accounts/statement.rb +3 -10
  52. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
  53. data/lib/lithic/models/financial_transaction.rb +2 -0
  54. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  55. data/lib/lithic/models/kyb.rb +2 -2
  56. data/lib/lithic/models/management_operation_create_params.rb +30 -1
  57. data/lib/lithic/models/management_operation_transaction.rb +100 -52
  58. data/lib/lithic/models/network_program.rb +41 -0
  59. data/lib/lithic/models/network_program_list_params.rb +43 -0
  60. data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
  61. data/lib/lithic/models/non_pci_card.rb +88 -1
  62. data/lib/lithic/models/payment.rb +60 -1
  63. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  64. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  65. data/lib/lithic/models/settlement_detail.rb +1 -0
  66. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
  67. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  68. data/lib/lithic/models/tokenization.rb +1 -1
  69. data/lib/lithic/models/transaction.rb +31 -20
  70. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  71. data/lib/lithic/models/transfer.rb +2 -0
  72. data/lib/lithic/models/wire_party_details.rb +40 -0
  73. data/lib/lithic/models.rb +16 -0
  74. data/lib/lithic/resources/account_activity.rb +80 -0
  75. data/lib/lithic/resources/account_holders.rb +9 -9
  76. data/lib/lithic/resources/accounts.rb +5 -1
  77. data/lib/lithic/resources/book_transfers.rb +7 -3
  78. data/lib/lithic/resources/cards.rb +12 -2
  79. data/lib/lithic/resources/management_operations.rb +13 -1
  80. data/lib/lithic/resources/network_programs.rb +64 -0
  81. data/lib/lithic/resources/reports/settlement.rb +1 -1
  82. data/lib/lithic/resources/tokenizations.rb +2 -2
  83. data/lib/lithic/version.rb +1 -1
  84. data/lib/lithic.rb +13 -2
  85. data/rbi/lithic/client.rbi +6 -0
  86. data/rbi/lithic/errors.rbi +2 -2
  87. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  88. data/rbi/lithic/internal/type/converter.rbi +46 -0
  89. data/rbi/lithic/internal/type/union.rbi +7 -2
  90. data/rbi/lithic/models/account.rbi +131 -0
  91. data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
  92. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  93. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  94. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  95. data/rbi/lithic/models/account_holder.rbi +21 -23
  96. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  97. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  98. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  99. data/rbi/lithic/models/account_update_params.rbi +159 -0
  100. data/rbi/lithic/models/aggregate_balance.rbi +5 -0
  101. data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
  102. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  103. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
  104. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
  105. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
  106. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
  107. data/rbi/lithic/models/balance.rbi +2 -0
  108. data/rbi/lithic/models/balance_list_params.rbi +5 -0
  109. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  110. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  111. data/rbi/lithic/models/card_create_params.rbi +190 -0
  112. data/rbi/lithic/models/card_program.rbi +13 -0
  113. data/rbi/lithic/models/card_update_params.rbi +168 -0
  114. data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
  115. data/rbi/lithic/models/external_payment.rbi +147 -60
  116. data/rbi/lithic/models/external_resource.rbi +57 -0
  117. data/rbi/lithic/models/external_resource_type.rbi +26 -0
  118. data/rbi/lithic/models/financial_account.rbi +5 -0
  119. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  120. data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
  121. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  122. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  123. data/rbi/lithic/models/kyb.rbi +2 -2
  124. data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
  125. data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
  126. data/rbi/lithic/models/network_program.rbi +61 -0
  127. data/rbi/lithic/models/network_program_list_params.rbi +72 -0
  128. data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
  129. data/rbi/lithic/models/non_pci_card.rbi +133 -3
  130. data/rbi/lithic/models/payment.rbi +103 -3
  131. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  132. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  133. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  134. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
  135. data/rbi/lithic/models/transaction.rbi +23 -31
  136. data/rbi/lithic/models/transfer.rbi +1 -0
  137. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  138. data/rbi/lithic/models.rbi +17 -0
  139. data/rbi/lithic/resources/account_activity.rbi +80 -0
  140. data/rbi/lithic/resources/account_holders.rbi +28 -29
  141. data/rbi/lithic/resources/accounts.rbi +32 -0
  142. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  143. data/rbi/lithic/resources/cards.rbi +70 -0
  144. data/rbi/lithic/resources/management_operations.rbi +4 -0
  145. data/rbi/lithic/resources/network_programs.rbi +48 -0
  146. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  147. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  148. data/sig/lithic/client.rbs +4 -0
  149. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  150. data/sig/lithic/internal/type/converter.rbs +17 -0
  151. data/sig/lithic/internal/type/union.rbs +2 -2
  152. data/sig/lithic/models/account.rbs +41 -0
  153. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  154. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  155. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  156. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  157. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  158. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  159. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  160. data/sig/lithic/models/account_update_params.rbs +41 -0
  161. data/sig/lithic/models/aggregate_balance.rbs +2 -1
  162. data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
  163. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  164. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  165. data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
  166. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
  167. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
  168. data/sig/lithic/models/balance.rbs +2 -1
  169. data/sig/lithic/models/balance_list_params.rbs +2 -1
  170. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  171. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  172. data/sig/lithic/models/card_create_params.rbs +47 -0
  173. data/sig/lithic/models/card_program.rbs +7 -0
  174. data/sig/lithic/models/card_update_params.rbs +55 -1
  175. data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
  176. data/sig/lithic/models/external_payment.rbs +91 -40
  177. data/sig/lithic/models/external_resource.rbs +32 -0
  178. data/sig/lithic/models/external_resource_type.rbs +16 -0
  179. data/sig/lithic/models/financial_account.rbs +2 -0
  180. data/sig/lithic/models/financial_account_list_params.rbs +2 -1
  181. data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
  182. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  183. data/sig/lithic/models/management_operation_create_params.rbs +20 -0
  184. data/sig/lithic/models/management_operation_transaction.rbs +98 -42
  185. data/sig/lithic/models/network_program.rbs +35 -0
  186. data/sig/lithic/models/network_program_list_params.rbs +38 -0
  187. data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
  188. data/sig/lithic/models/non_pci_card.rbs +55 -3
  189. data/sig/lithic/models/payment.rbs +61 -3
  190. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  191. data/sig/lithic/models/settlement_detail.rbs +2 -0
  192. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
  193. data/sig/lithic/models/transaction.rbs +2 -6
  194. data/sig/lithic/models/wire_party_details.rbs +35 -0
  195. data/sig/lithic/models.rbs +16 -0
  196. data/sig/lithic/resources/account_activity.rbs +27 -0
  197. data/sig/lithic/resources/account_holders.rbs +3 -3
  198. data/sig/lithic/resources/accounts.rbs +2 -0
  199. data/sig/lithic/resources/book_transfers.rbs +2 -0
  200. data/sig/lithic/resources/cards.rbs +5 -0
  201. data/sig/lithic/resources/management_operations.rbs +1 -0
  202. data/sig/lithic/resources/network_programs.rbs +19 -0
  203. data/sig/lithic/resources/tokenizations.rbs +1 -1
  204. metadata +38 -5
  205. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  206. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  207. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -3,53 +3,549 @@
3
3
  module Lithic
4
4
  module Models
5
5
  module AuthRules
6
- # The window of time to calculate Spend Velocity over.
7
- #
8
- # - `DAY`: Velocity over the current day since midnight Eastern Time.
9
- # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in
10
- # Eastern Time.
11
- # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
12
- # the month in Eastern Time.
13
- # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
14
- # Eastern Time.
6
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
7
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
15
8
  module VelocityLimitParamsPeriodWindow
16
- extend Lithic::Internal::Type::Enum
9
+ extend Lithic::Internal::Type::Union
17
10
 
18
- TaggedSymbol =
11
+ Variants =
19
12
  T.type_alias do
20
- T.all(Symbol, Lithic::AuthRules::VelocityLimitParamsPeriodWindow)
13
+ T.any(
14
+ Integer,
15
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol,
16
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject,
17
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay,
18
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek,
19
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth,
20
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear
21
+ )
21
22
  end
22
- OrSymbol = T.type_alias { T.any(Symbol, String) }
23
23
 
24
- DAY =
25
- T.let(
26
- :DAY,
27
- Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
24
+ # The window of time to calculate Spend Velocity over.
25
+ #
26
+ # - `DAY`: Velocity over the current day since midnight Eastern Time.
27
+ # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in
28
+ # Eastern Time.
29
+ # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
30
+ # the month in Eastern Time.
31
+ # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
32
+ # Eastern Time.
33
+ module FixedWindow
34
+ extend Lithic::Internal::Type::Enum
35
+
36
+ TaggedSymbol =
37
+ T.type_alias do
38
+ T.all(
39
+ Symbol,
40
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow
41
+ )
42
+ end
43
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
44
+
45
+ DAY =
46
+ T.let(
47
+ :DAY,
48
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol
49
+ )
50
+ WEEK =
51
+ T.let(
52
+ :WEEK,
53
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol
54
+ )
55
+ MONTH =
56
+ T.let(
57
+ :MONTH,
58
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol
59
+ )
60
+ YEAR =
61
+ T.let(
62
+ :YEAR,
63
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol
64
+ )
65
+
66
+ sig do
67
+ override.returns(
68
+ T::Array[
69
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol
70
+ ]
71
+ )
72
+ end
73
+ def self.values
74
+ end
75
+ end
76
+
77
+ class TrailingWindowObject < Lithic::Internal::Type::BaseModel
78
+ OrHash =
79
+ T.type_alias do
80
+ T.any(
81
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject,
82
+ Lithic::Internal::AnyHash
83
+ )
84
+ end
85
+
86
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
87
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
88
+ sig { returns(T.nilable(Integer)) }
89
+ attr_reader :duration
90
+
91
+ sig { params(duration: Integer).void }
92
+ attr_writer :duration
93
+
94
+ sig do
95
+ returns(
96
+ T.nilable(
97
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol
98
+ )
99
+ )
100
+ end
101
+ attr_reader :type
102
+
103
+ sig do
104
+ params(
105
+ type:
106
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol
107
+ ).void
108
+ end
109
+ attr_writer :type
110
+
111
+ sig do
112
+ params(
113
+ duration: Integer,
114
+ type:
115
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol
116
+ ).returns(T.attached_class)
117
+ end
118
+ def self.new(
119
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
120
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
121
+ duration: nil,
122
+ type: nil
28
123
  )
29
- WEEK =
30
- T.let(
31
- :WEEK,
32
- Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
124
+ end
125
+
126
+ sig do
127
+ override.returns(
128
+ {
129
+ duration: Integer,
130
+ type:
131
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol
132
+ }
133
+ )
134
+ end
135
+ def to_hash
136
+ end
137
+
138
+ module Type
139
+ extend Lithic::Internal::Type::Enum
140
+
141
+ TaggedSymbol =
142
+ T.type_alias do
143
+ T.all(
144
+ Symbol,
145
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type
146
+ )
147
+ end
148
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
149
+
150
+ CUSTOM =
151
+ T.let(
152
+ :CUSTOM,
153
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::TaggedSymbol
154
+ )
155
+
156
+ sig do
157
+ override.returns(
158
+ T::Array[
159
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::TaggedSymbol
160
+ ]
161
+ )
162
+ end
163
+ def self.values
164
+ end
165
+ end
166
+ end
167
+
168
+ class FixedWindowDay < Lithic::Internal::Type::BaseModel
169
+ OrHash =
170
+ T.type_alias do
171
+ T.any(
172
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay,
173
+ Lithic::Internal::AnyHash
174
+ )
175
+ end
176
+
177
+ sig do
178
+ returns(
179
+ T.nilable(
180
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol
181
+ )
182
+ )
183
+ end
184
+ attr_reader :type
185
+
186
+ sig do
187
+ params(
188
+ type:
189
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol
190
+ ).void
191
+ end
192
+ attr_writer :type
193
+
194
+ # Velocity over the current day since 00:00 / 12 AM in Eastern Time
195
+ sig do
196
+ params(
197
+ type:
198
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol
199
+ ).returns(T.attached_class)
200
+ end
201
+ def self.new(type: nil)
202
+ end
203
+
204
+ sig do
205
+ override.returns(
206
+ {
207
+ type:
208
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol
209
+ }
210
+ )
211
+ end
212
+ def to_hash
213
+ end
214
+
215
+ module Type
216
+ extend Lithic::Internal::Type::Enum
217
+
218
+ TaggedSymbol =
219
+ T.type_alias do
220
+ T.all(
221
+ Symbol,
222
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type
223
+ )
224
+ end
225
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
226
+
227
+ DAY =
228
+ T.let(
229
+ :DAY,
230
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::TaggedSymbol
231
+ )
232
+
233
+ sig do
234
+ override.returns(
235
+ T::Array[
236
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::TaggedSymbol
237
+ ]
238
+ )
239
+ end
240
+ def self.values
241
+ end
242
+ end
243
+ end
244
+
245
+ class FixedWindowWeek < Lithic::Internal::Type::BaseModel
246
+ OrHash =
247
+ T.type_alias do
248
+ T.any(
249
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek,
250
+ Lithic::Internal::AnyHash
251
+ )
252
+ end
253
+
254
+ # The day of the week to start the week from. Following ISO-8601, 1 is Monday and
255
+ # 7 is Sunday. Defaults to Monday if not specified.
256
+ sig { returns(T.nilable(Integer)) }
257
+ attr_reader :day_of_week
258
+
259
+ sig { params(day_of_week: Integer).void }
260
+ attr_writer :day_of_week
261
+
262
+ sig do
263
+ returns(
264
+ T.nilable(
265
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol
266
+ )
267
+ )
268
+ end
269
+ attr_reader :type
270
+
271
+ sig do
272
+ params(
273
+ type:
274
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol
275
+ ).void
276
+ end
277
+ attr_writer :type
278
+
279
+ # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified
280
+ # `day_of_week`
281
+ sig do
282
+ params(
283
+ day_of_week: Integer,
284
+ type:
285
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol
286
+ ).returns(T.attached_class)
287
+ end
288
+ def self.new(
289
+ # The day of the week to start the week from. Following ISO-8601, 1 is Monday and
290
+ # 7 is Sunday. Defaults to Monday if not specified.
291
+ day_of_week: nil,
292
+ type: nil
33
293
  )
34
- MONTH =
35
- T.let(
36
- :MONTH,
37
- Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
294
+ end
295
+
296
+ sig do
297
+ override.returns(
298
+ {
299
+ day_of_week: Integer,
300
+ type:
301
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol
302
+ }
303
+ )
304
+ end
305
+ def to_hash
306
+ end
307
+
308
+ module Type
309
+ extend Lithic::Internal::Type::Enum
310
+
311
+ TaggedSymbol =
312
+ T.type_alias do
313
+ T.all(
314
+ Symbol,
315
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type
316
+ )
317
+ end
318
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
319
+
320
+ WEEK =
321
+ T.let(
322
+ :WEEK,
323
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::TaggedSymbol
324
+ )
325
+
326
+ sig do
327
+ override.returns(
328
+ T::Array[
329
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::TaggedSymbol
330
+ ]
331
+ )
332
+ end
333
+ def self.values
334
+ end
335
+ end
336
+ end
337
+
338
+ class FixedWindowMonth < Lithic::Internal::Type::BaseModel
339
+ OrHash =
340
+ T.type_alias do
341
+ T.any(
342
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth,
343
+ Lithic::Internal::AnyHash
344
+ )
345
+ end
346
+
347
+ # The day of the month to start from. Accepts values from 1 to 31, and will reset
348
+ # at the end of the month if the day exceeds the number of days in the month.
349
+ # Defaults to the 1st of the month if not specified.
350
+ sig { returns(T.nilable(Integer)) }
351
+ attr_reader :day_of_month
352
+
353
+ sig { params(day_of_month: Integer).void }
354
+ attr_writer :day_of_month
355
+
356
+ sig do
357
+ returns(
358
+ T.nilable(
359
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol
360
+ )
361
+ )
362
+ end
363
+ attr_reader :type
364
+
365
+ sig do
366
+ params(
367
+ type:
368
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol
369
+ ).void
370
+ end
371
+ attr_writer :type
372
+
373
+ # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified
374
+ # `day_of_month`.
375
+ sig do
376
+ params(
377
+ day_of_month: Integer,
378
+ type:
379
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol
380
+ ).returns(T.attached_class)
381
+ end
382
+ def self.new(
383
+ # The day of the month to start from. Accepts values from 1 to 31, and will reset
384
+ # at the end of the month if the day exceeds the number of days in the month.
385
+ # Defaults to the 1st of the month if not specified.
386
+ day_of_month: nil,
387
+ type: nil
38
388
  )
39
- YEAR =
40
- T.let(
41
- :YEAR,
42
- Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
389
+ end
390
+
391
+ sig do
392
+ override.returns(
393
+ {
394
+ day_of_month: Integer,
395
+ type:
396
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol
397
+ }
398
+ )
399
+ end
400
+ def to_hash
401
+ end
402
+
403
+ module Type
404
+ extend Lithic::Internal::Type::Enum
405
+
406
+ TaggedSymbol =
407
+ T.type_alias do
408
+ T.all(
409
+ Symbol,
410
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type
411
+ )
412
+ end
413
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
414
+
415
+ MONTH =
416
+ T.let(
417
+ :MONTH,
418
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::TaggedSymbol
419
+ )
420
+
421
+ sig do
422
+ override.returns(
423
+ T::Array[
424
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::TaggedSymbol
425
+ ]
426
+ )
427
+ end
428
+ def self.values
429
+ end
430
+ end
431
+ end
432
+
433
+ class FixedWindowYear < Lithic::Internal::Type::BaseModel
434
+ OrHash =
435
+ T.type_alias do
436
+ T.any(
437
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear,
438
+ Lithic::Internal::AnyHash
439
+ )
440
+ end
441
+
442
+ # The day of the month to start from. Defaults to the 1st of the month if not
443
+ # specified.
444
+ sig { returns(T.nilable(Integer)) }
445
+ attr_reader :day_of_month
446
+
447
+ sig { params(day_of_month: Integer).void }
448
+ attr_writer :day_of_month
449
+
450
+ # The month to start from. 1 is January and 12 is December. Defaults to January if
451
+ # not specified.
452
+ sig { returns(T.nilable(Integer)) }
453
+ attr_reader :month
454
+
455
+ sig { params(month: Integer).void }
456
+ attr_writer :month
457
+
458
+ sig do
459
+ returns(
460
+ T.nilable(
461
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol
462
+ )
463
+ )
464
+ end
465
+ attr_reader :type
466
+
467
+ sig do
468
+ params(
469
+ type:
470
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol
471
+ ).void
472
+ end
473
+ attr_writer :type
474
+
475
+ # Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified
476
+ # `month` and `day_of_month`. This validates the month and day of the year to
477
+ # start from is a real date. In the event that February 29th is selected, in
478
+ # non-leap years, the window will start from February 28th.
479
+ sig do
480
+ params(
481
+ day_of_month: Integer,
482
+ month: Integer,
483
+ type:
484
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol
485
+ ).returns(T.attached_class)
486
+ end
487
+ def self.new(
488
+ # The day of the month to start from. Defaults to the 1st of the month if not
489
+ # specified.
490
+ day_of_month: nil,
491
+ # The month to start from. 1 is January and 12 is December. Defaults to January if
492
+ # not specified.
493
+ month: nil,
494
+ type: nil
43
495
  )
496
+ end
497
+
498
+ sig do
499
+ override.returns(
500
+ {
501
+ day_of_month: Integer,
502
+ month: Integer,
503
+ type:
504
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol
505
+ }
506
+ )
507
+ end
508
+ def to_hash
509
+ end
510
+
511
+ module Type
512
+ extend Lithic::Internal::Type::Enum
513
+
514
+ TaggedSymbol =
515
+ T.type_alias do
516
+ T.all(
517
+ Symbol,
518
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type
519
+ )
520
+ end
521
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
522
+
523
+ YEAR =
524
+ T.let(
525
+ :YEAR,
526
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::TaggedSymbol
527
+ )
528
+
529
+ sig do
530
+ override.returns(
531
+ T::Array[
532
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::TaggedSymbol
533
+ ]
534
+ )
535
+ end
536
+ def self.values
537
+ end
538
+ end
539
+ end
44
540
 
45
541
  sig do
46
542
  override.returns(
47
543
  T::Array[
48
- Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol
544
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants
49
545
  ]
50
546
  )
51
547
  end
52
- def self.values
548
+ def self.variants
53
549
  end
54
550
  end
55
551
  end
@@ -128,6 +128,8 @@ module Lithic
128
128
  T.let(:OPERATING, Lithic::Balance::FinancialAccountType::TaggedSymbol)
129
129
  RESERVE =
130
130
  T.let(:RESERVE, Lithic::Balance::FinancialAccountType::TaggedSymbol)
131
+ SECURITY =
132
+ T.let(:SECURITY, Lithic::Balance::FinancialAccountType::TaggedSymbol)
131
133
 
132
134
  sig do
133
135
  override.returns(
@@ -113,6 +113,11 @@ module Lithic
113
113
  :RESERVE,
114
114
  Lithic::BalanceListParams::FinancialAccountType::TaggedSymbol
115
115
  )
116
+ SECURITY =
117
+ T.let(
118
+ :SECURITY,
119
+ Lithic::BalanceListParams::FinancialAccountType::TaggedSymbol
120
+ )
116
121
 
117
122
  sig do
118
123
  override.returns(