lithic 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +5 -10
- data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/lithic/internal/util.rb +7 -2
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
- data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
- data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
- data/lib/lithic/models/external_payment_create_params.rb +15 -1
- data/lib/lithic/models/financial_account.rb +33 -25
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
- data/lib/lithic/models/management_operation_create_params.rb +6 -1
- data/lib/lithic/models/parsed_webhook_event.rb +3 -4
- data/lib/lithic/models/payment.rb +10 -1
- data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
- data/lib/lithic/models/transfer_limits_response.rb +274 -0
- data/lib/lithic/models.rb +12 -6
- data/lib/lithic/resources/book_transfers.rb +27 -0
- data/lib/lithic/resources/cards.rb +1 -5
- data/lib/lithic/resources/external_payments.rb +13 -1
- data/lib/lithic/resources/financial_accounts.rb +3 -1
- data/lib/lithic/resources/management_operations.rb +4 -1
- data/lib/lithic/resources/transfer_limits.rb +37 -0
- data/lib/lithic/resources/webhooks.rb +3 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -7
- data/rbi/lithic/client.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
- data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
- data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
- data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
- data/rbi/lithic/models/financial_account.rbi +62 -54
- data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
- data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +2 -2
- data/rbi/lithic/models/payment.rbi +13 -3
- data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
- data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
- data/rbi/lithic/models.rbi +12 -6
- data/rbi/lithic/resources/book_transfers.rbi +18 -0
- data/rbi/lithic/resources/cards.rbi +1 -4
- data/rbi/lithic/resources/external_payments.rbi +2 -0
- data/rbi/lithic/resources/financial_accounts.rbi +3 -0
- data/rbi/lithic/resources/management_operations.rbi +2 -0
- data/rbi/lithic/resources/transfer_limits.rbi +28 -0
- data/rbi/lithic/resources/webhooks.rbi +2 -124
- data/sig/lithic/client.rbs +2 -2
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
- data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
- data/sig/lithic/models/financial_account.rbs +32 -27
- data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
- data/sig/lithic/models/parsed_webhook_event.rbs +2 -2
- data/sig/lithic/models/payment.rbs +10 -3
- data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
- data/sig/lithic/models/transfer_limits_response.rbs +232 -0
- data/sig/lithic/models.rbs +10 -6
- data/sig/lithic/resources/book_transfers.rbs +6 -0
- data/sig/lithic/resources/cards.rbs +0 -2
- data/sig/lithic/resources/financial_accounts.rbs +1 -0
- data/sig/lithic/resources/transfer_limits.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +2 -116
- metadata +20 -23
- data/lib/lithic/models/aggregate_balance.rb +0 -113
- data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
- data/lib/lithic/resources/aggregate_balances.rb +0 -38
- data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
- data/rbi/lithic/models/aggregate_balance.rbi +0 -164
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
- data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
- data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
- data/sig/lithic/models/aggregate_balance.rbs +0 -78
- data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
- data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
- data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
- data/sig/lithic/resources/aggregate_balances.rbs +0 -12
- data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class TransferLimitsResponse < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::TransferLimitsResponse, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# List of transfer limits
|
|
12
|
+
sig { returns(T::Array[Lithic::TransferLimitsResponse::Data]) }
|
|
13
|
+
attr_accessor :data
|
|
14
|
+
|
|
15
|
+
# Whether there are more transfer limits
|
|
16
|
+
sig { returns(T::Boolean) }
|
|
17
|
+
attr_accessor :has_more
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
data: T::Array[Lithic::TransferLimitsResponse::Data::OrHash],
|
|
22
|
+
has_more: T::Boolean
|
|
23
|
+
).returns(T.attached_class)
|
|
24
|
+
end
|
|
25
|
+
def self.new(
|
|
26
|
+
# List of transfer limits
|
|
27
|
+
data:,
|
|
28
|
+
# Whether there are more transfer limits
|
|
29
|
+
has_more:
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
data: T::Array[Lithic::TransferLimitsResponse::Data],
|
|
37
|
+
has_more: T::Boolean
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
class Data < Lithic::Internal::Type::BaseModel
|
|
45
|
+
OrHash =
|
|
46
|
+
T.type_alias do
|
|
47
|
+
T.any(
|
|
48
|
+
Lithic::TransferLimitsResponse::Data,
|
|
49
|
+
Lithic::Internal::AnyHash
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Company ID
|
|
54
|
+
sig { returns(String) }
|
|
55
|
+
attr_accessor :company_id
|
|
56
|
+
|
|
57
|
+
# Daily limits with progress
|
|
58
|
+
sig { returns(Lithic::TransferLimitsResponse::Data::DailyLimit) }
|
|
59
|
+
attr_reader :daily_limit
|
|
60
|
+
|
|
61
|
+
sig do
|
|
62
|
+
params(
|
|
63
|
+
daily_limit:
|
|
64
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::OrHash
|
|
65
|
+
).void
|
|
66
|
+
end
|
|
67
|
+
attr_writer :daily_limit
|
|
68
|
+
|
|
69
|
+
# The date for the limit view (ISO format)
|
|
70
|
+
sig { returns(Date) }
|
|
71
|
+
attr_accessor :date
|
|
72
|
+
|
|
73
|
+
# Whether the company is a FBO; based on the company ID prefix
|
|
74
|
+
sig { returns(T::Boolean) }
|
|
75
|
+
attr_accessor :is_fbo
|
|
76
|
+
|
|
77
|
+
# Monthly limits with progress
|
|
78
|
+
sig { returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit) }
|
|
79
|
+
attr_reader :monthly_limit
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
params(
|
|
83
|
+
monthly_limit:
|
|
84
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::OrHash
|
|
85
|
+
).void
|
|
86
|
+
end
|
|
87
|
+
attr_writer :monthly_limit
|
|
88
|
+
|
|
89
|
+
# Program transaction limits
|
|
90
|
+
sig do
|
|
91
|
+
returns(
|
|
92
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
attr_reader :program_limit_per_transaction
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
params(
|
|
99
|
+
program_limit_per_transaction:
|
|
100
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::OrHash
|
|
101
|
+
).void
|
|
102
|
+
end
|
|
103
|
+
attr_writer :program_limit_per_transaction
|
|
104
|
+
|
|
105
|
+
sig do
|
|
106
|
+
params(
|
|
107
|
+
company_id: String,
|
|
108
|
+
daily_limit:
|
|
109
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::OrHash,
|
|
110
|
+
date: Date,
|
|
111
|
+
is_fbo: T::Boolean,
|
|
112
|
+
monthly_limit:
|
|
113
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::OrHash,
|
|
114
|
+
program_limit_per_transaction:
|
|
115
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::OrHash
|
|
116
|
+
).returns(T.attached_class)
|
|
117
|
+
end
|
|
118
|
+
def self.new(
|
|
119
|
+
# Company ID
|
|
120
|
+
company_id:,
|
|
121
|
+
# Daily limits with progress
|
|
122
|
+
daily_limit:,
|
|
123
|
+
# The date for the limit view (ISO format)
|
|
124
|
+
date:,
|
|
125
|
+
# Whether the company is a FBO; based on the company ID prefix
|
|
126
|
+
is_fbo:,
|
|
127
|
+
# Monthly limits with progress
|
|
128
|
+
monthly_limit:,
|
|
129
|
+
# Program transaction limits
|
|
130
|
+
program_limit_per_transaction:
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
sig do
|
|
135
|
+
override.returns(
|
|
136
|
+
{
|
|
137
|
+
company_id: String,
|
|
138
|
+
daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
|
|
139
|
+
date: Date,
|
|
140
|
+
is_fbo: T::Boolean,
|
|
141
|
+
monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
|
|
142
|
+
program_limit_per_transaction:
|
|
143
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
def to_hash
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
class DailyLimit < Lithic::Internal::Type::BaseModel
|
|
151
|
+
OrHash =
|
|
152
|
+
T.type_alias do
|
|
153
|
+
T.any(
|
|
154
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit,
|
|
155
|
+
Lithic::Internal::AnyHash
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Credit limits
|
|
160
|
+
sig do
|
|
161
|
+
returns(Lithic::TransferLimitsResponse::Data::DailyLimit::Credit)
|
|
162
|
+
end
|
|
163
|
+
attr_reader :credit
|
|
164
|
+
|
|
165
|
+
sig do
|
|
166
|
+
params(
|
|
167
|
+
credit:
|
|
168
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Credit::OrHash
|
|
169
|
+
).void
|
|
170
|
+
end
|
|
171
|
+
attr_writer :credit
|
|
172
|
+
|
|
173
|
+
# Debit limits
|
|
174
|
+
sig do
|
|
175
|
+
returns(Lithic::TransferLimitsResponse::Data::DailyLimit::Debit)
|
|
176
|
+
end
|
|
177
|
+
attr_reader :debit
|
|
178
|
+
|
|
179
|
+
sig do
|
|
180
|
+
params(
|
|
181
|
+
debit:
|
|
182
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Debit::OrHash
|
|
183
|
+
).void
|
|
184
|
+
end
|
|
185
|
+
attr_writer :debit
|
|
186
|
+
|
|
187
|
+
# Daily limits with progress
|
|
188
|
+
sig do
|
|
189
|
+
params(
|
|
190
|
+
credit:
|
|
191
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Credit::OrHash,
|
|
192
|
+
debit:
|
|
193
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Debit::OrHash
|
|
194
|
+
).returns(T.attached_class)
|
|
195
|
+
end
|
|
196
|
+
def self.new(
|
|
197
|
+
# Credit limits
|
|
198
|
+
credit:,
|
|
199
|
+
# Debit limits
|
|
200
|
+
debit:
|
|
201
|
+
)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
sig do
|
|
205
|
+
override.returns(
|
|
206
|
+
{
|
|
207
|
+
credit:
|
|
208
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
|
|
209
|
+
debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
def to_hash
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
class Credit < Lithic::Internal::Type::BaseModel
|
|
217
|
+
OrHash =
|
|
218
|
+
T.type_alias do
|
|
219
|
+
T.any(
|
|
220
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
|
|
221
|
+
Lithic::Internal::AnyHash
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# The limit amount
|
|
226
|
+
sig { returns(Integer) }
|
|
227
|
+
attr_accessor :limit
|
|
228
|
+
|
|
229
|
+
# Amount originated towards limit
|
|
230
|
+
sig { returns(T.nilable(Integer)) }
|
|
231
|
+
attr_reader :amount_originated
|
|
232
|
+
|
|
233
|
+
sig { params(amount_originated: Integer).void }
|
|
234
|
+
attr_writer :amount_originated
|
|
235
|
+
|
|
236
|
+
# Credit limits
|
|
237
|
+
sig do
|
|
238
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
239
|
+
T.attached_class
|
|
240
|
+
)
|
|
241
|
+
end
|
|
242
|
+
def self.new(
|
|
243
|
+
# The limit amount
|
|
244
|
+
limit:,
|
|
245
|
+
# Amount originated towards limit
|
|
246
|
+
amount_originated: nil
|
|
247
|
+
)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
sig do
|
|
251
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
252
|
+
end
|
|
253
|
+
def to_hash
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
class Debit < Lithic::Internal::Type::BaseModel
|
|
258
|
+
OrHash =
|
|
259
|
+
T.type_alias do
|
|
260
|
+
T.any(
|
|
261
|
+
Lithic::TransferLimitsResponse::Data::DailyLimit::Debit,
|
|
262
|
+
Lithic::Internal::AnyHash
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# The limit amount
|
|
267
|
+
sig { returns(Integer) }
|
|
268
|
+
attr_accessor :limit
|
|
269
|
+
|
|
270
|
+
# Amount originated towards limit
|
|
271
|
+
sig { returns(T.nilable(Integer)) }
|
|
272
|
+
attr_reader :amount_originated
|
|
273
|
+
|
|
274
|
+
sig { params(amount_originated: Integer).void }
|
|
275
|
+
attr_writer :amount_originated
|
|
276
|
+
|
|
277
|
+
# Debit limits
|
|
278
|
+
sig do
|
|
279
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
280
|
+
T.attached_class
|
|
281
|
+
)
|
|
282
|
+
end
|
|
283
|
+
def self.new(
|
|
284
|
+
# The limit amount
|
|
285
|
+
limit:,
|
|
286
|
+
# Amount originated towards limit
|
|
287
|
+
amount_originated: nil
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
sig do
|
|
292
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
293
|
+
end
|
|
294
|
+
def to_hash
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
class MonthlyLimit < Lithic::Internal::Type::BaseModel
|
|
300
|
+
OrHash =
|
|
301
|
+
T.type_alias do
|
|
302
|
+
T.any(
|
|
303
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit,
|
|
304
|
+
Lithic::Internal::AnyHash
|
|
305
|
+
)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Credit limits
|
|
309
|
+
sig do
|
|
310
|
+
returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit)
|
|
311
|
+
end
|
|
312
|
+
attr_reader :credit
|
|
313
|
+
|
|
314
|
+
sig do
|
|
315
|
+
params(
|
|
316
|
+
credit:
|
|
317
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit::OrHash
|
|
318
|
+
).void
|
|
319
|
+
end
|
|
320
|
+
attr_writer :credit
|
|
321
|
+
|
|
322
|
+
# Debit limits
|
|
323
|
+
sig do
|
|
324
|
+
returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit)
|
|
325
|
+
end
|
|
326
|
+
attr_reader :debit
|
|
327
|
+
|
|
328
|
+
sig do
|
|
329
|
+
params(
|
|
330
|
+
debit:
|
|
331
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit::OrHash
|
|
332
|
+
).void
|
|
333
|
+
end
|
|
334
|
+
attr_writer :debit
|
|
335
|
+
|
|
336
|
+
# Monthly limits with progress
|
|
337
|
+
sig do
|
|
338
|
+
params(
|
|
339
|
+
credit:
|
|
340
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit::OrHash,
|
|
341
|
+
debit:
|
|
342
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit::OrHash
|
|
343
|
+
).returns(T.attached_class)
|
|
344
|
+
end
|
|
345
|
+
def self.new(
|
|
346
|
+
# Credit limits
|
|
347
|
+
credit:,
|
|
348
|
+
# Debit limits
|
|
349
|
+
debit:
|
|
350
|
+
)
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
sig do
|
|
354
|
+
override.returns(
|
|
355
|
+
{
|
|
356
|
+
credit:
|
|
357
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
|
|
358
|
+
debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
|
|
359
|
+
}
|
|
360
|
+
)
|
|
361
|
+
end
|
|
362
|
+
def to_hash
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
class Credit < Lithic::Internal::Type::BaseModel
|
|
366
|
+
OrHash =
|
|
367
|
+
T.type_alias do
|
|
368
|
+
T.any(
|
|
369
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
|
|
370
|
+
Lithic::Internal::AnyHash
|
|
371
|
+
)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# The limit amount
|
|
375
|
+
sig { returns(Integer) }
|
|
376
|
+
attr_accessor :limit
|
|
377
|
+
|
|
378
|
+
# Amount originated towards limit
|
|
379
|
+
sig { returns(T.nilable(Integer)) }
|
|
380
|
+
attr_reader :amount_originated
|
|
381
|
+
|
|
382
|
+
sig { params(amount_originated: Integer).void }
|
|
383
|
+
attr_writer :amount_originated
|
|
384
|
+
|
|
385
|
+
# Credit limits
|
|
386
|
+
sig do
|
|
387
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
388
|
+
T.attached_class
|
|
389
|
+
)
|
|
390
|
+
end
|
|
391
|
+
def self.new(
|
|
392
|
+
# The limit amount
|
|
393
|
+
limit:,
|
|
394
|
+
# Amount originated towards limit
|
|
395
|
+
amount_originated: nil
|
|
396
|
+
)
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
sig do
|
|
400
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
401
|
+
end
|
|
402
|
+
def to_hash
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
class Debit < Lithic::Internal::Type::BaseModel
|
|
407
|
+
OrHash =
|
|
408
|
+
T.type_alias do
|
|
409
|
+
T.any(
|
|
410
|
+
Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit,
|
|
411
|
+
Lithic::Internal::AnyHash
|
|
412
|
+
)
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# The limit amount
|
|
416
|
+
sig { returns(Integer) }
|
|
417
|
+
attr_accessor :limit
|
|
418
|
+
|
|
419
|
+
# Amount originated towards limit
|
|
420
|
+
sig { returns(T.nilable(Integer)) }
|
|
421
|
+
attr_reader :amount_originated
|
|
422
|
+
|
|
423
|
+
sig { params(amount_originated: Integer).void }
|
|
424
|
+
attr_writer :amount_originated
|
|
425
|
+
|
|
426
|
+
# Debit limits
|
|
427
|
+
sig do
|
|
428
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
429
|
+
T.attached_class
|
|
430
|
+
)
|
|
431
|
+
end
|
|
432
|
+
def self.new(
|
|
433
|
+
# The limit amount
|
|
434
|
+
limit:,
|
|
435
|
+
# Amount originated towards limit
|
|
436
|
+
amount_originated: nil
|
|
437
|
+
)
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
sig do
|
|
441
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
442
|
+
end
|
|
443
|
+
def to_hash
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel
|
|
449
|
+
OrHash =
|
|
450
|
+
T.type_alias do
|
|
451
|
+
T.any(
|
|
452
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction,
|
|
453
|
+
Lithic::Internal::AnyHash
|
|
454
|
+
)
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# Credit limits
|
|
458
|
+
sig do
|
|
459
|
+
returns(
|
|
460
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit
|
|
461
|
+
)
|
|
462
|
+
end
|
|
463
|
+
attr_reader :credit
|
|
464
|
+
|
|
465
|
+
sig do
|
|
466
|
+
params(
|
|
467
|
+
credit:
|
|
468
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit::OrHash
|
|
469
|
+
).void
|
|
470
|
+
end
|
|
471
|
+
attr_writer :credit
|
|
472
|
+
|
|
473
|
+
# Debit limits
|
|
474
|
+
sig do
|
|
475
|
+
returns(
|
|
476
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
|
|
477
|
+
)
|
|
478
|
+
end
|
|
479
|
+
attr_reader :debit
|
|
480
|
+
|
|
481
|
+
sig do
|
|
482
|
+
params(
|
|
483
|
+
debit:
|
|
484
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit::OrHash
|
|
485
|
+
).void
|
|
486
|
+
end
|
|
487
|
+
attr_writer :debit
|
|
488
|
+
|
|
489
|
+
# Program transaction limits
|
|
490
|
+
sig do
|
|
491
|
+
params(
|
|
492
|
+
credit:
|
|
493
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit::OrHash,
|
|
494
|
+
debit:
|
|
495
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit::OrHash
|
|
496
|
+
).returns(T.attached_class)
|
|
497
|
+
end
|
|
498
|
+
def self.new(
|
|
499
|
+
# Credit limits
|
|
500
|
+
credit:,
|
|
501
|
+
# Debit limits
|
|
502
|
+
debit:
|
|
503
|
+
)
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
sig do
|
|
507
|
+
override.returns(
|
|
508
|
+
{
|
|
509
|
+
credit:
|
|
510
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
|
|
511
|
+
debit:
|
|
512
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
end
|
|
516
|
+
def to_hash
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
class Credit < Lithic::Internal::Type::BaseModel
|
|
520
|
+
OrHash =
|
|
521
|
+
T.type_alias do
|
|
522
|
+
T.any(
|
|
523
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
|
|
524
|
+
Lithic::Internal::AnyHash
|
|
525
|
+
)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# The limit amount
|
|
529
|
+
sig { returns(Integer) }
|
|
530
|
+
attr_accessor :limit
|
|
531
|
+
|
|
532
|
+
# Amount originated towards limit
|
|
533
|
+
sig { returns(T.nilable(Integer)) }
|
|
534
|
+
attr_reader :amount_originated
|
|
535
|
+
|
|
536
|
+
sig { params(amount_originated: Integer).void }
|
|
537
|
+
attr_writer :amount_originated
|
|
538
|
+
|
|
539
|
+
# Credit limits
|
|
540
|
+
sig do
|
|
541
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
542
|
+
T.attached_class
|
|
543
|
+
)
|
|
544
|
+
end
|
|
545
|
+
def self.new(
|
|
546
|
+
# The limit amount
|
|
547
|
+
limit:,
|
|
548
|
+
# Amount originated towards limit
|
|
549
|
+
amount_originated: nil
|
|
550
|
+
)
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
sig do
|
|
554
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
555
|
+
end
|
|
556
|
+
def to_hash
|
|
557
|
+
end
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
class Debit < Lithic::Internal::Type::BaseModel
|
|
561
|
+
OrHash =
|
|
562
|
+
T.type_alias do
|
|
563
|
+
T.any(
|
|
564
|
+
Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit,
|
|
565
|
+
Lithic::Internal::AnyHash
|
|
566
|
+
)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# The limit amount
|
|
570
|
+
sig { returns(Integer) }
|
|
571
|
+
attr_accessor :limit
|
|
572
|
+
|
|
573
|
+
# Amount originated towards limit
|
|
574
|
+
sig { returns(T.nilable(Integer)) }
|
|
575
|
+
attr_reader :amount_originated
|
|
576
|
+
|
|
577
|
+
sig { params(amount_originated: Integer).void }
|
|
578
|
+
attr_writer :amount_originated
|
|
579
|
+
|
|
580
|
+
# Debit limits
|
|
581
|
+
sig do
|
|
582
|
+
params(limit: Integer, amount_originated: Integer).returns(
|
|
583
|
+
T.attached_class
|
|
584
|
+
)
|
|
585
|
+
end
|
|
586
|
+
def self.new(
|
|
587
|
+
# The limit amount
|
|
588
|
+
limit:,
|
|
589
|
+
# Amount originated towards limit
|
|
590
|
+
amount_originated: nil
|
|
591
|
+
)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
sig do
|
|
595
|
+
override.returns({ limit: Integer, amount_originated: Integer })
|
|
596
|
+
end
|
|
597
|
+
def to_hash
|
|
598
|
+
end
|
|
599
|
+
end
|
|
600
|
+
end
|
|
601
|
+
end
|
|
602
|
+
end
|
|
603
|
+
end
|
|
604
|
+
end
|
data/rbi/lithic/models.rbi
CHANGED
|
@@ -62,14 +62,8 @@ module Lithic
|
|
|
62
62
|
|
|
63
63
|
AddressUpdate = Lithic::Models::AddressUpdate
|
|
64
64
|
|
|
65
|
-
AggregateBalance = Lithic::Models::AggregateBalance
|
|
66
|
-
|
|
67
|
-
AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams
|
|
68
|
-
|
|
69
65
|
APIStatus = Lithic::Models::APIStatus
|
|
70
66
|
|
|
71
|
-
AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent
|
|
72
|
-
|
|
73
67
|
AuthRules = Lithic::Models::AuthRules
|
|
74
68
|
|
|
75
69
|
AuthRulesBacktestReportCreatedWebhookEvent =
|
|
@@ -97,6 +91,8 @@ module Lithic
|
|
|
97
91
|
|
|
98
92
|
BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams
|
|
99
93
|
|
|
94
|
+
BookTransferRetryParams = Lithic::Models::BookTransferRetryParams
|
|
95
|
+
|
|
100
96
|
BookTransferReverseParams = Lithic::Models::BookTransferReverseParams
|
|
101
97
|
|
|
102
98
|
BookTransferTransactionCreatedWebhookEvent =
|
|
@@ -107,6 +103,9 @@ module Lithic
|
|
|
107
103
|
|
|
108
104
|
Card = Lithic::Models::Card
|
|
109
105
|
|
|
106
|
+
CardAuthorizationApprovalRequestWebhookEvent =
|
|
107
|
+
Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
|
|
108
|
+
|
|
110
109
|
CardBulkOrder = Lithic::Models::CardBulkOrder
|
|
111
110
|
|
|
112
111
|
CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
|
|
@@ -492,6 +491,9 @@ module Lithic
|
|
|
492
491
|
|
|
493
492
|
ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication
|
|
494
493
|
|
|
494
|
+
ThreeDSAuthenticationApprovalRequestWebhookEvent =
|
|
495
|
+
Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent
|
|
496
|
+
|
|
495
497
|
ThreeDSAuthenticationChallengeWebhookEvent =
|
|
496
498
|
Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent
|
|
497
499
|
|
|
@@ -592,6 +594,10 @@ module Lithic
|
|
|
592
594
|
|
|
593
595
|
TransferCreateParams = Lithic::Models::TransferCreateParams
|
|
594
596
|
|
|
597
|
+
TransferLimitListParams = Lithic::Models::TransferLimitListParams
|
|
598
|
+
|
|
599
|
+
TransferLimitsResponse = Lithic::Models::TransferLimitsResponse
|
|
600
|
+
|
|
595
601
|
VerificationMethod = Lithic::Models::VerificationMethod
|
|
596
602
|
|
|
597
603
|
WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo
|
|
@@ -110,6 +110,24 @@ module Lithic
|
|
|
110
110
|
)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
# Retry a book transfer that has been declined
|
|
114
|
+
sig do
|
|
115
|
+
params(
|
|
116
|
+
book_transfer_token: String,
|
|
117
|
+
retry_token: String,
|
|
118
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
119
|
+
).returns(Lithic::BookTransferResponse)
|
|
120
|
+
end
|
|
121
|
+
def retry_(
|
|
122
|
+
# Token of the book transfer to retry
|
|
123
|
+
book_transfer_token,
|
|
124
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
|
125
|
+
# become the transaction token.
|
|
126
|
+
retry_token:,
|
|
127
|
+
request_options: {}
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
|
|
113
131
|
# Reverse a book transfer
|
|
114
132
|
sig do
|
|
115
133
|
params(
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Resources
|
|
5
5
|
class Cards
|
|
6
|
-
sig { returns(Lithic::Resources::Cards::AggregateBalances) }
|
|
7
|
-
attr_reader :aggregate_balances
|
|
8
|
-
|
|
9
6
|
sig { returns(Lithic::Resources::Cards::Balances) }
|
|
10
7
|
attr_reader :balances
|
|
11
8
|
|
|
@@ -611,7 +608,7 @@ module Lithic
|
|
|
611
608
|
end
|
|
612
609
|
|
|
613
610
|
# Allow your cardholders to directly add payment cards to the device's digital
|
|
614
|
-
# wallet from a browser on the web.
|
|
611
|
+
# wallet from a browser on the web.
|
|
615
612
|
#
|
|
616
613
|
# This requires some additional setup and configuration. Please
|
|
617
614
|
# [Contact Us](https://lithic.com/contact) or your Customer Success representative
|