lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55

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