lithic 0.4.0 → 0.5.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 +33 -0
- data/README.md +10 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_holder.rb +14 -5
- data/lib/lithic/models/account_holder_create_params.rb +10 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
- data/lib/lithic/models/account_holder_update_params.rb +10 -1
- data/lib/lithic/models/account_holder_update_response.rb +14 -5
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
- data/lib/lithic/models/book_transfer_create_params.rb +9 -1
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
- data/lib/lithic/models/kyb.rb +10 -1
- data/lib/lithic/models/parsed_webhook_event.rb +10 -1
- data/lib/lithic/resources/account_holders.rb +6 -2
- data/lib/lithic/resources/auth_rules/v2.rb +42 -0
- data/lib/lithic/resources/book_transfers.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/internal/util.rbi +1 -1
- data/rbi/lithic/models/account_holder.rbi +19 -6
- data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
- data/rbi/lithic/models/kyb.rbi +13 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
- data/rbi/lithic/resources/account_holders.rbi +8 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
- data/rbi/lithic/resources/book_transfers.rbi +3 -0
- data/sig/lithic/models/account_holder.rbs +7 -0
- data/sig/lithic/models/account_holder_create_params.rbs +7 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
- data/sig/lithic/models/account_holder_update_params.rbs +7 -0
- data/sig/lithic/models/account_holder_update_response.rbs +7 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
- data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
- data/sig/lithic/models/kyb.rbs +7 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
- data/sig/lithic/resources/account_holders.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
- data/sig/lithic/resources/book_transfers.rbs +1 -0
- metadata +8 -2
|
@@ -10,6 +10,7 @@ module Lithic
|
|
|
10
10
|
type: Lithic::Models::BookTransferCreateParams::type_,
|
|
11
11
|
token: String,
|
|
12
12
|
external_id: String,
|
|
13
|
+
hold_token: String,
|
|
13
14
|
memo: String,
|
|
14
15
|
on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account
|
|
15
16
|
}
|
|
@@ -39,6 +40,10 @@ module Lithic
|
|
|
39
40
|
|
|
40
41
|
def external_id=: (String) -> String
|
|
41
42
|
|
|
43
|
+
attr_reader hold_token: String?
|
|
44
|
+
|
|
45
|
+
def hold_token=: (String) -> String
|
|
46
|
+
|
|
42
47
|
attr_reader memo: String?
|
|
43
48
|
|
|
44
49
|
def memo=: (String) -> String
|
|
@@ -58,6 +63,7 @@ module Lithic
|
|
|
58
63
|
type: Lithic::Models::BookTransferCreateParams::type_,
|
|
59
64
|
?token: String,
|
|
60
65
|
?external_id: String,
|
|
66
|
+
?hold_token: String,
|
|
61
67
|
?memo: String,
|
|
62
68
|
?on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
|
|
63
69
|
?request_options: Lithic::request_opts
|
|
@@ -72,6 +78,7 @@ module Lithic
|
|
|
72
78
|
type: Lithic::Models::BookTransferCreateParams::type_,
|
|
73
79
|
token: String,
|
|
74
80
|
external_id: String,
|
|
81
|
+
hold_token: String,
|
|
75
82
|
memo: String,
|
|
76
83
|
on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
|
|
77
84
|
request_options: Lithic::RequestOptions
|
|
@@ -5,6 +5,7 @@ module Lithic
|
|
|
5
5
|
token: String,
|
|
6
6
|
acquirer_fee: Integer,
|
|
7
7
|
amount: Integer,
|
|
8
|
+
amounts: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts,
|
|
8
9
|
authorization_amount: Integer,
|
|
9
10
|
avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
|
|
10
11
|
card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
|
|
@@ -40,6 +41,8 @@ module Lithic
|
|
|
40
41
|
|
|
41
42
|
attr_accessor amount: Integer
|
|
42
43
|
|
|
44
|
+
attr_accessor amounts: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts
|
|
45
|
+
|
|
43
46
|
attr_accessor authorization_amount: Integer
|
|
44
47
|
|
|
45
48
|
attr_accessor avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs
|
|
@@ -124,6 +127,7 @@ module Lithic
|
|
|
124
127
|
token: String,
|
|
125
128
|
acquirer_fee: Integer,
|
|
126
129
|
amount: Integer,
|
|
130
|
+
amounts: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts,
|
|
127
131
|
authorization_amount: Integer,
|
|
128
132
|
avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
|
|
129
133
|
card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
|
|
@@ -156,6 +160,7 @@ module Lithic
|
|
|
156
160
|
token: String,
|
|
157
161
|
acquirer_fee: Integer,
|
|
158
162
|
amount: Integer,
|
|
163
|
+
amounts: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts,
|
|
159
164
|
authorization_amount: Integer,
|
|
160
165
|
avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs,
|
|
161
166
|
card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card,
|
|
@@ -184,6 +189,97 @@ module Lithic
|
|
|
184
189
|
ttl: Time
|
|
185
190
|
}
|
|
186
191
|
|
|
192
|
+
type amounts =
|
|
193
|
+
{
|
|
194
|
+
cardholder: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Cardholder,
|
|
195
|
+
hold: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Hold?,
|
|
196
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Merchant,
|
|
197
|
+
settlement: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Settlement?
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class Amounts < Lithic::Internal::Type::BaseModel
|
|
201
|
+
attr_accessor cardholder: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Cardholder
|
|
202
|
+
|
|
203
|
+
attr_accessor hold: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Hold?
|
|
204
|
+
|
|
205
|
+
attr_accessor merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Merchant
|
|
206
|
+
|
|
207
|
+
attr_accessor settlement: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Settlement?
|
|
208
|
+
|
|
209
|
+
def initialize: (
|
|
210
|
+
cardholder: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Cardholder,
|
|
211
|
+
hold: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Hold?,
|
|
212
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Merchant,
|
|
213
|
+
settlement: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Settlement?
|
|
214
|
+
) -> void
|
|
215
|
+
|
|
216
|
+
def to_hash: -> {
|
|
217
|
+
cardholder: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Cardholder,
|
|
218
|
+
hold: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Hold?,
|
|
219
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Merchant,
|
|
220
|
+
settlement: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Amounts::Settlement?
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
type cardholder =
|
|
224
|
+
{ amount: Integer, conversion_rate: String, currency: String }
|
|
225
|
+
|
|
226
|
+
class Cardholder < Lithic::Internal::Type::BaseModel
|
|
227
|
+
attr_accessor amount: Integer
|
|
228
|
+
|
|
229
|
+
attr_accessor conversion_rate: String
|
|
230
|
+
|
|
231
|
+
attr_accessor currency: String
|
|
232
|
+
|
|
233
|
+
def initialize: (
|
|
234
|
+
amount: Integer,
|
|
235
|
+
conversion_rate: String,
|
|
236
|
+
currency: String
|
|
237
|
+
) -> void
|
|
238
|
+
|
|
239
|
+
def to_hash: -> {
|
|
240
|
+
amount: Integer,
|
|
241
|
+
conversion_rate: String,
|
|
242
|
+
currency: String
|
|
243
|
+
}
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
type hold = { amount: Integer, currency: String }
|
|
247
|
+
|
|
248
|
+
class Hold < Lithic::Internal::Type::BaseModel
|
|
249
|
+
attr_accessor amount: Integer
|
|
250
|
+
|
|
251
|
+
attr_accessor currency: String
|
|
252
|
+
|
|
253
|
+
def initialize: (amount: Integer, currency: String) -> void
|
|
254
|
+
|
|
255
|
+
def to_hash: -> { amount: Integer, currency: String }
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
type merchant = { amount: Integer, currency: String }
|
|
259
|
+
|
|
260
|
+
class Merchant < Lithic::Internal::Type::BaseModel
|
|
261
|
+
attr_accessor amount: Integer
|
|
262
|
+
|
|
263
|
+
attr_accessor currency: String
|
|
264
|
+
|
|
265
|
+
def initialize: (amount: Integer, currency: String) -> void
|
|
266
|
+
|
|
267
|
+
def to_hash: -> { amount: Integer, currency: String }
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
type settlement = { amount: Integer, currency: String }
|
|
271
|
+
|
|
272
|
+
class Settlement < Lithic::Internal::Type::BaseModel
|
|
273
|
+
attr_accessor amount: Integer
|
|
274
|
+
|
|
275
|
+
attr_accessor currency: String
|
|
276
|
+
|
|
277
|
+
def initialize: (amount: Integer, currency: String) -> void
|
|
278
|
+
|
|
279
|
+
def to_hash: -> { amount: Integer, currency: String }
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
187
283
|
type avs =
|
|
188
284
|
{
|
|
189
285
|
address: String,
|
data/sig/lithic/models/kyb.rbs
CHANGED
|
@@ -11,6 +11,7 @@ module Lithic
|
|
|
11
11
|
beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity],
|
|
12
12
|
external_id: String,
|
|
13
13
|
kyb_passed_timestamp: String,
|
|
14
|
+
naics_code: String,
|
|
14
15
|
website_url: String
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -41,6 +42,10 @@ module Lithic
|
|
|
41
42
|
|
|
42
43
|
def kyb_passed_timestamp=: (String) -> String
|
|
43
44
|
|
|
45
|
+
attr_reader naics_code: String?
|
|
46
|
+
|
|
47
|
+
def naics_code=: (String) -> String
|
|
48
|
+
|
|
44
49
|
attr_reader website_url: String?
|
|
45
50
|
|
|
46
51
|
def website_url=: (String) -> String
|
|
@@ -55,6 +60,7 @@ module Lithic
|
|
|
55
60
|
?beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity],
|
|
56
61
|
?external_id: String,
|
|
57
62
|
?kyb_passed_timestamp: String,
|
|
63
|
+
?naics_code: String,
|
|
58
64
|
?website_url: String
|
|
59
65
|
) -> void
|
|
60
66
|
|
|
@@ -68,6 +74,7 @@ module Lithic
|
|
|
68
74
|
beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity],
|
|
69
75
|
external_id: String,
|
|
70
76
|
kyb_passed_timestamp: String,
|
|
77
|
+
naics_code: String,
|
|
71
78
|
website_url: String
|
|
72
79
|
}
|
|
73
80
|
|
|
@@ -69,6 +69,7 @@ module Lithic
|
|
|
69
69
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
70
70
|
event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
71
71
|
external_id: String,
|
|
72
|
+
naics_code: String,
|
|
72
73
|
nature_of_business: String,
|
|
73
74
|
website_url: String
|
|
74
75
|
}
|
|
@@ -88,6 +89,10 @@ module Lithic
|
|
|
88
89
|
|
|
89
90
|
def external_id=: (String) -> String
|
|
90
91
|
|
|
92
|
+
attr_reader naics_code: String?
|
|
93
|
+
|
|
94
|
+
def naics_code=: (String) -> String
|
|
95
|
+
|
|
91
96
|
attr_reader nature_of_business: String?
|
|
92
97
|
|
|
93
98
|
def nature_of_business=: (String) -> String
|
|
@@ -101,6 +106,7 @@ module Lithic
|
|
|
101
106
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
102
107
|
?event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
103
108
|
?external_id: String,
|
|
109
|
+
?naics_code: String,
|
|
104
110
|
?nature_of_business: String,
|
|
105
111
|
?website_url: String
|
|
106
112
|
) -> void
|
|
@@ -110,6 +116,7 @@ module Lithic
|
|
|
110
116
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
111
117
|
event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
112
118
|
external_id: String,
|
|
119
|
+
naics_code: String,
|
|
113
120
|
nature_of_business: String,
|
|
114
121
|
website_url: String
|
|
115
122
|
}
|
|
@@ -18,6 +18,7 @@ module Lithic
|
|
|
18
18
|
?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
19
19
|
?external_id: String,
|
|
20
20
|
?kyb_passed_timestamp: String,
|
|
21
|
+
?naics_code: String,
|
|
21
22
|
?website_url: String,
|
|
22
23
|
?kyc_passed_timestamp: String,
|
|
23
24
|
?business_account_token: String,
|
|
@@ -36,6 +37,7 @@ module Lithic
|
|
|
36
37
|
?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
37
38
|
?control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
38
39
|
?external_id: String,
|
|
40
|
+
?naics_code: String,
|
|
39
41
|
?nature_of_business: String,
|
|
40
42
|
?website_url: String,
|
|
41
43
|
?individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -58,6 +58,16 @@ module Lithic
|
|
|
58
58
|
?request_options: Lithic::request_opts
|
|
59
59
|
) -> Lithic::AuthRules::AuthRule
|
|
60
60
|
|
|
61
|
+
def list_results: (
|
|
62
|
+
?auth_rule_token: String,
|
|
63
|
+
?ending_before: String,
|
|
64
|
+
?event_token: String,
|
|
65
|
+
?has_actions: bool,
|
|
66
|
+
?page_size: Integer,
|
|
67
|
+
?starting_after: String,
|
|
68
|
+
?request_options: Lithic::request_opts
|
|
69
|
+
) -> Lithic::Internal::CursorPage[Lithic::Models::AuthRules::v2_list_results_response]
|
|
70
|
+
|
|
61
71
|
def promote: (
|
|
62
72
|
String auth_rule_token,
|
|
63
73
|
?request_options: Lithic::request_opts
|
|
@@ -10,6 +10,7 @@ module Lithic
|
|
|
10
10
|
type: Lithic::Models::BookTransferCreateParams::type_,
|
|
11
11
|
?token: String,
|
|
12
12
|
?external_id: String,
|
|
13
|
+
?hold_token: String,
|
|
13
14
|
?memo: String,
|
|
14
15
|
?on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
|
|
15
16
|
?request_options: Lithic::request_opts
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lithic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lithic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -124,6 +124,8 @@ files:
|
|
|
124
124
|
- lib/lithic/models/auth_rules/v2_delete_params.rb
|
|
125
125
|
- lib/lithic/models/auth_rules/v2_draft_params.rb
|
|
126
126
|
- lib/lithic/models/auth_rules/v2_list_params.rb
|
|
127
|
+
- lib/lithic/models/auth_rules/v2_list_results_params.rb
|
|
128
|
+
- lib/lithic/models/auth_rules/v2_list_results_response.rb
|
|
127
129
|
- lib/lithic/models/auth_rules/v2_promote_params.rb
|
|
128
130
|
- lib/lithic/models/auth_rules/v2_retrieve_features_params.rb
|
|
129
131
|
- lib/lithic/models/auth_rules/v2_retrieve_features_response.rb
|
|
@@ -578,6 +580,8 @@ files:
|
|
|
578
580
|
- rbi/lithic/models/auth_rules/v2_delete_params.rbi
|
|
579
581
|
- rbi/lithic/models/auth_rules/v2_draft_params.rbi
|
|
580
582
|
- rbi/lithic/models/auth_rules/v2_list_params.rbi
|
|
583
|
+
- rbi/lithic/models/auth_rules/v2_list_results_params.rbi
|
|
584
|
+
- rbi/lithic/models/auth_rules/v2_list_results_response.rbi
|
|
581
585
|
- rbi/lithic/models/auth_rules/v2_promote_params.rbi
|
|
582
586
|
- rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi
|
|
583
587
|
- rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi
|
|
@@ -1031,6 +1035,8 @@ files:
|
|
|
1031
1035
|
- sig/lithic/models/auth_rules/v2_delete_params.rbs
|
|
1032
1036
|
- sig/lithic/models/auth_rules/v2_draft_params.rbs
|
|
1033
1037
|
- sig/lithic/models/auth_rules/v2_list_params.rbs
|
|
1038
|
+
- sig/lithic/models/auth_rules/v2_list_results_params.rbs
|
|
1039
|
+
- sig/lithic/models/auth_rules/v2_list_results_response.rbs
|
|
1034
1040
|
- sig/lithic/models/auth_rules/v2_promote_params.rbs
|
|
1035
1041
|
- sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs
|
|
1036
1042
|
- sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs
|