lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.40
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account.rb +88 -1
- data/lib/lithic/models/account_update_params.rb +86 -1
- data/lib/lithic/models/aggregate_balance.rb +1 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +4 -10
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +238 -16
- data/lib/lithic/models/balance.rb +1 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- data/lib/lithic/models/card_create_params.rb +90 -1
- data/lib/lithic/models/card_program.rb +10 -1
- data/lib/lithic/models/card_update_params.rb +98 -1
- data/lib/lithic/models/cards/balance_list_response.rb +1 -0
- data/lib/lithic/models/external_resource.rb +34 -0
- data/lib/lithic/models/external_resource_type.rb +18 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
- data/lib/lithic/models/management_operation_create_params.rb +30 -1
- data/lib/lithic/models/management_operation_transaction.rb +22 -1
- data/lib/lithic/models/network_program.rb +41 -0
- data/lib/lithic/models/network_program_list_params.rb +43 -0
- data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
- data/lib/lithic/models/non_pci_card.rb +88 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/transaction.rb +31 -20
- data/lib/lithic/models.rb +10 -0
- data/lib/lithic/resources/accounts.rb +5 -1
- data/lib/lithic/resources/cards.rb +12 -2
- data/lib/lithic/resources/management_operations.rb +13 -1
- data/lib/lithic/resources/network_programs.rb +64 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +131 -0
- data/rbi/lithic/models/account_update_params.rbi +159 -0
- data/rbi/lithic/models/aggregate_balance.rbi +5 -0
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +6 -15
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
- data/rbi/lithic/models/balance.rbi +2 -0
- data/rbi/lithic/models/balance_list_params.rbi +5 -0
- data/rbi/lithic/models/card_create_params.rbi +190 -0
- data/rbi/lithic/models/card_program.rbi +13 -0
- data/rbi/lithic/models/card_update_params.rbi +168 -0
- data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/external_resource.rbi +57 -0
- data/rbi/lithic/models/external_resource_type.rbi +26 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +15 -0
- data/rbi/lithic/models/network_program.rbi +61 -0
- data/rbi/lithic/models/network_program_list_params.rbi +72 -0
- data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/non_pci_card.rbi +133 -3
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/transaction.rbi +23 -31
- data/rbi/lithic/models.rbi +10 -0
- data/rbi/lithic/resources/accounts.rbi +32 -0
- data/rbi/lithic/resources/cards.rbi +70 -0
- data/rbi/lithic/resources/management_operations.rbi +4 -0
- data/rbi/lithic/resources/network_programs.rbi +48 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account.rbs +41 -0
- data/sig/lithic/models/account_update_params.rbs +41 -0
- data/sig/lithic/models/aggregate_balance.rbs +2 -1
- data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
- data/sig/lithic/models/balance.rbs +2 -1
- data/sig/lithic/models/balance_list_params.rbs +2 -1
- data/sig/lithic/models/card_create_params.rbs +47 -0
- data/sig/lithic/models/card_program.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +55 -1
- data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
- data/sig/lithic/models/external_resource.rbs +32 -0
- data/sig/lithic/models/external_resource_type.rbs +16 -0
- data/sig/lithic/models/financial_account_list_params.rbs +2 -1
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
- data/sig/lithic/models/management_operation_create_params.rbs +20 -0
- data/sig/lithic/models/management_operation_transaction.rbs +5 -0
- data/sig/lithic/models/network_program.rbs +35 -0
- data/sig/lithic/models/network_program_list_params.rbs +38 -0
- data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
- data/sig/lithic/models/non_pci_card.rbs +55 -3
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +2 -6
- data/sig/lithic/models.rbs +10 -0
- data/sig/lithic/resources/accounts.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/management_operations.rbs +1 -0
- data/sig/lithic/resources/network_programs.rbs +19 -0
- metadata +20 -2
@@ -3,53 +3,549 @@
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
5
|
module AuthRules
|
6
|
-
# The
|
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::
|
9
|
+
extend Lithic::Internal::Type::Union
|
17
10
|
|
18
|
-
|
11
|
+
Variants =
|
19
12
|
T.type_alias do
|
20
|
-
T.
|
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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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::
|
544
|
+
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants
|
49
545
|
]
|
50
546
|
)
|
51
547
|
end
|
52
|
-
def self.
|
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(
|