lithic 0.3.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 +73 -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/auth_rules/velocity_limit_params.rb +21 -21
- 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/card_create_params.rb +12 -5
- data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
- data/lib/lithic/models/card_web_provision_response.rb +5 -5
- data/lib/lithic/models/event.rb +3 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +2 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +2 -0
- data/lib/lithic/models/financial_transaction.rb +4 -2
- data/lib/lithic/models/kyb.rb +10 -1
- data/lib/lithic/models/non_pci_card.rb +8 -10
- data/lib/lithic/models/parsed_webhook_event.rb +13 -2
- data/lib/lithic/models/payment.rb +1 -1
- data/lib/lithic/models/payment_create_params.rb +1 -1
- data/lib/lithic/models/transaction.rb +10 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
- data/lib/lithic/models.rb +2 -0
- 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/resources/cards.rb +32 -22
- data/lib/lithic/resources/financial_accounts.rb +5 -5
- data/lib/lithic/resources/transactions.rb +14 -2
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +3 -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/auth_rules/velocity_limit_params.rbi +47 -45
- 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/card_create_params.rbi +15 -6
- data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
- data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
- data/rbi/lithic/models/event.rbi +5 -0
- data/rbi/lithic/models/event_list_params.rbi +6 -0
- data/rbi/lithic/models/event_subscription.rbi +6 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
- data/rbi/lithic/models/financial_transaction.rbi +8 -4
- data/rbi/lithic/models/kyb.rbi +13 -0
- data/rbi/lithic/models/non_pci_card.rbi +12 -15
- data/rbi/lithic/models/parsed_webhook_event.rbi +14 -0
- data/rbi/lithic/models/payment.rbi +5 -2
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
- data/rbi/lithic/models.rbi +2 -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/rbi/lithic/resources/cards.rbi +51 -45
- data/rbi/lithic/resources/financial_accounts.rbi +5 -5
- data/rbi/lithic/resources/transactions.rbi +18 -0
- data/rbi/lithic/resources/webhooks.rbi +62 -1
- 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/auth_rules/velocity_limit_params.rbs +20 -16
- 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/card_create_params.rbs +8 -1
- data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
- data/sig/lithic/models/card_web_provision_response.rbs +4 -10
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/kyb.rbs +7 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +8 -0
- data/sig/lithic/models/payment.rbs +2 -2
- data/sig/lithic/models/transaction.rbs +5 -0
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
- data/sig/lithic/models.rbs +2 -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
- data/sig/lithic/resources/cards.rbs +1 -0
- data/sig/lithic/resources/transactions.rbs +6 -0
- data/sig/lithic/resources/webhooks.rbs +58 -1
- metadata +25 -2
|
@@ -3,40 +3,55 @@ module Lithic
|
|
|
3
3
|
module AuthRules
|
|
4
4
|
type velocity_limit_params =
|
|
5
5
|
{
|
|
6
|
-
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
7
6
|
period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
8
7
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
|
8
|
+
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
9
9
|
limit_amount: Integer?,
|
|
10
10
|
limit_count: Integer?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
class VelocityLimitParams < Lithic::Internal::Type::BaseModel
|
|
14
|
-
attr_accessor filters: Lithic::AuthRules::VelocityLimitParams::Filters
|
|
15
|
-
|
|
16
14
|
attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
|
|
17
15
|
|
|
18
16
|
attr_accessor scope: Lithic::Models::AuthRules::VelocityLimitParams::scope
|
|
19
17
|
|
|
18
|
+
attr_reader filters: Lithic::AuthRules::VelocityLimitParams::Filters?
|
|
19
|
+
|
|
20
|
+
def filters=: (
|
|
21
|
+
Lithic::AuthRules::VelocityLimitParams::Filters
|
|
22
|
+
) -> Lithic::AuthRules::VelocityLimitParams::Filters
|
|
23
|
+
|
|
20
24
|
attr_accessor limit_amount: Integer?
|
|
21
25
|
|
|
22
26
|
attr_accessor limit_count: Integer?
|
|
23
27
|
|
|
24
28
|
def initialize: (
|
|
25
|
-
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
26
29
|
period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
27
30
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
|
31
|
+
?filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
28
32
|
?limit_amount: Integer?,
|
|
29
33
|
?limit_count: Integer?
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
32
36
|
def to_hash: -> {
|
|
33
|
-
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
34
37
|
period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
35
38
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
|
39
|
+
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
36
40
|
limit_amount: Integer?,
|
|
37
41
|
limit_count: Integer?
|
|
38
42
|
}
|
|
39
43
|
|
|
44
|
+
type scope = :CARD | :ACCOUNT
|
|
45
|
+
|
|
46
|
+
module Scope
|
|
47
|
+
extend Lithic::Internal::Type::Enum
|
|
48
|
+
|
|
49
|
+
CARD: :CARD
|
|
50
|
+
ACCOUNT: :ACCOUNT
|
|
51
|
+
|
|
52
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::scope]
|
|
53
|
+
end
|
|
54
|
+
|
|
40
55
|
type filters =
|
|
41
56
|
{
|
|
42
57
|
exclude_countries: ::Array[String]?,
|
|
@@ -112,17 +127,6 @@ module Lithic
|
|
|
112
127
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]
|
|
113
128
|
end
|
|
114
129
|
end
|
|
115
|
-
|
|
116
|
-
type scope = :CARD | :ACCOUNT
|
|
117
|
-
|
|
118
|
-
module Scope
|
|
119
|
-
extend Lithic::Internal::Type::Enum
|
|
120
|
-
|
|
121
|
-
CARD: :CARD
|
|
122
|
-
ACCOUNT: :ACCOUNT
|
|
123
|
-
|
|
124
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::scope]
|
|
125
|
-
end
|
|
126
130
|
end
|
|
127
131
|
end
|
|
128
132
|
end
|
|
@@ -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,
|
|
@@ -21,7 +21,8 @@ module Lithic
|
|
|
21
21
|
shipping_method: Lithic::Models::CardCreateParams::shipping_method,
|
|
22
22
|
spend_limit: Integer,
|
|
23
23
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
24
|
-
state: Lithic::Models::CardCreateParams::state
|
|
24
|
+
state: Lithic::Models::CardCreateParams::state,
|
|
25
|
+
idempotency_key: String
|
|
25
26
|
}
|
|
26
27
|
& Lithic::Internal::Type::request_parameters
|
|
27
28
|
|
|
@@ -117,6 +118,10 @@ module Lithic
|
|
|
117
118
|
Lithic::Models::CardCreateParams::state
|
|
118
119
|
) -> Lithic::Models::CardCreateParams::state
|
|
119
120
|
|
|
121
|
+
attr_reader idempotency_key: String?
|
|
122
|
+
|
|
123
|
+
def idempotency_key=: (String) -> String
|
|
124
|
+
|
|
120
125
|
def initialize: (
|
|
121
126
|
type: Lithic::Models::CardCreateParams::type_,
|
|
122
127
|
?account_token: String,
|
|
@@ -138,6 +143,7 @@ module Lithic
|
|
|
138
143
|
?spend_limit: Integer,
|
|
139
144
|
?spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
140
145
|
?state: Lithic::Models::CardCreateParams::state,
|
|
146
|
+
?idempotency_key: String,
|
|
141
147
|
?request_options: Lithic::request_opts
|
|
142
148
|
) -> void
|
|
143
149
|
|
|
@@ -162,6 +168,7 @@ module Lithic
|
|
|
162
168
|
spend_limit: Integer,
|
|
163
169
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
164
170
|
state: Lithic::Models::CardCreateParams::state,
|
|
171
|
+
idempotency_key: String,
|
|
165
172
|
request_options: Lithic::RequestOptions
|
|
166
173
|
}
|
|
167
174
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type card_updated_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
card_token: String,
|
|
6
|
+
event_type: :"card.updated",
|
|
7
|
+
previous_fields: top,
|
|
8
|
+
state: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor card_token: String
|
|
13
|
+
|
|
14
|
+
attr_accessor event_type: :"card.updated"
|
|
15
|
+
|
|
16
|
+
attr_accessor previous_fields: top
|
|
17
|
+
|
|
18
|
+
attr_accessor state: String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
card_token: String,
|
|
22
|
+
previous_fields: top,
|
|
23
|
+
state: String,
|
|
24
|
+
?event_type: :"card.updated"
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
card_token: String,
|
|
29
|
+
event_type: :"card.updated",
|
|
30
|
+
previous_fields: top,
|
|
31
|
+
state: String
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -14,19 +14,13 @@ module Lithic
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
class AppleWebPushProvisioningResponse < Lithic::Internal::Type::BaseModel
|
|
17
|
-
|
|
17
|
+
attr_accessor jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
|
|
21
|
-
) -> Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
|
|
22
|
-
|
|
23
|
-
attr_reader state: String?
|
|
24
|
-
|
|
25
|
-
def state=: (String) -> String
|
|
19
|
+
attr_accessor state: String
|
|
26
20
|
|
|
27
21
|
def initialize: (
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
|
|
23
|
+
state: String
|
|
30
24
|
) -> void
|
|
31
25
|
|
|
32
26
|
def to_hash: -> {
|
data/sig/lithic/models/event.rbs
CHANGED
|
@@ -48,6 +48,7 @@ module Lithic
|
|
|
48
48
|
| :"card.reissued"
|
|
49
49
|
| :"card.renewed"
|
|
50
50
|
| :"card.shipped"
|
|
51
|
+
| :"card.updated"
|
|
51
52
|
| :"digital_wallet.tokenization_approval_request"
|
|
52
53
|
| :"digital_wallet.tokenization_result"
|
|
53
54
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -104,6 +105,7 @@ module Lithic
|
|
|
104
105
|
CARD_REISSUED: :"card.reissued"
|
|
105
106
|
CARD_RENEWED: :"card.renewed"
|
|
106
107
|
CARD_SHIPPED: :"card.shipped"
|
|
108
|
+
CARD_UPDATED: :"card.updated"
|
|
107
109
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
108
110
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
109
111
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -85,6 +85,7 @@ module Lithic
|
|
|
85
85
|
| :"card.reissued"
|
|
86
86
|
| :"card.renewed"
|
|
87
87
|
| :"card.shipped"
|
|
88
|
+
| :"card.updated"
|
|
88
89
|
| :"digital_wallet.tokenization_approval_request"
|
|
89
90
|
| :"digital_wallet.tokenization_result"
|
|
90
91
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -141,6 +142,7 @@ module Lithic
|
|
|
141
142
|
CARD_REISSUED: :"card.reissued"
|
|
142
143
|
CARD_RENEWED: :"card.renewed"
|
|
143
144
|
CARD_SHIPPED: :"card.shipped"
|
|
145
|
+
CARD_UPDATED: :"card.updated"
|
|
144
146
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
145
147
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
146
148
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -53,6 +53,7 @@ module Lithic
|
|
|
53
53
|
| :"card.reissued"
|
|
54
54
|
| :"card.renewed"
|
|
55
55
|
| :"card.shipped"
|
|
56
|
+
| :"card.updated"
|
|
56
57
|
| :"digital_wallet.tokenization_approval_request"
|
|
57
58
|
| :"digital_wallet.tokenization_result"
|
|
58
59
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -109,6 +110,7 @@ module Lithic
|
|
|
109
110
|
CARD_REISSUED: :"card.reissued"
|
|
110
111
|
CARD_RENEWED: :"card.renewed"
|
|
111
112
|
CARD_SHIPPED: :"card.shipped"
|
|
113
|
+
CARD_UPDATED: :"card.updated"
|
|
112
114
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
113
115
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
114
116
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -63,6 +63,7 @@ module Lithic
|
|
|
63
63
|
| :"card.reissued"
|
|
64
64
|
| :"card.renewed"
|
|
65
65
|
| :"card.shipped"
|
|
66
|
+
| :"card.updated"
|
|
66
67
|
| :"digital_wallet.tokenization_approval_request"
|
|
67
68
|
| :"digital_wallet.tokenization_result"
|
|
68
69
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -119,6 +120,7 @@ module Lithic
|
|
|
119
120
|
CARD_REISSUED: :"card.reissued"
|
|
120
121
|
CARD_RENEWED: :"card.renewed"
|
|
121
122
|
CARD_SHIPPED: :"card.shipped"
|
|
123
|
+
CARD_UPDATED: :"card.updated"
|
|
122
124
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
123
125
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
124
126
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -44,6 +44,7 @@ module Lithic
|
|
|
44
44
|
| :"card.reissued"
|
|
45
45
|
| :"card.renewed"
|
|
46
46
|
| :"card.shipped"
|
|
47
|
+
| :"card.updated"
|
|
47
48
|
| :"digital_wallet.tokenization_approval_request"
|
|
48
49
|
| :"digital_wallet.tokenization_result"
|
|
49
50
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -100,6 +101,7 @@ module Lithic
|
|
|
100
101
|
CARD_REISSUED: :"card.reissued"
|
|
101
102
|
CARD_RENEWED: :"card.renewed"
|
|
102
103
|
CARD_SHIPPED: :"card.shipped"
|
|
104
|
+
CARD_UPDATED: :"card.updated"
|
|
103
105
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
104
106
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
105
107
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -63,6 +63,7 @@ module Lithic
|
|
|
63
63
|
| :"card.reissued"
|
|
64
64
|
| :"card.renewed"
|
|
65
65
|
| :"card.shipped"
|
|
66
|
+
| :"card.updated"
|
|
66
67
|
| :"digital_wallet.tokenization_approval_request"
|
|
67
68
|
| :"digital_wallet.tokenization_result"
|
|
68
69
|
| :"digital_wallet.tokenization_two_factor_authentication_code"
|
|
@@ -119,6 +120,7 @@ module Lithic
|
|
|
119
120
|
CARD_REISSUED: :"card.reissued"
|
|
120
121
|
CARD_RENEWED: :"card.renewed"
|
|
121
122
|
CARD_SHIPPED: :"card.shipped"
|
|
123
|
+
CARD_UPDATED: :"card.updated"
|
|
122
124
|
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
|
|
123
125
|
DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
|
|
124
126
|
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
|
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
|
|
|
@@ -18,6 +18,7 @@ module Lithic
|
|
|
18
18
|
| Lithic::CardRenewedWebhookEvent
|
|
19
19
|
| Lithic::CardReissuedWebhookEvent
|
|
20
20
|
| Lithic::CardShippedWebhookEvent
|
|
21
|
+
| Lithic::CardUpdatedWebhookEvent
|
|
21
22
|
| Lithic::CardTransactionUpdatedWebhookEvent
|
|
22
23
|
| Lithic::CardTransactionEnhancedDataCreatedWebhookEvent
|
|
23
24
|
| Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent
|
|
@@ -68,6 +69,7 @@ module Lithic
|
|
|
68
69
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
69
70
|
event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
70
71
|
external_id: String,
|
|
72
|
+
naics_code: String,
|
|
71
73
|
nature_of_business: String,
|
|
72
74
|
website_url: String
|
|
73
75
|
}
|
|
@@ -87,6 +89,10 @@ module Lithic
|
|
|
87
89
|
|
|
88
90
|
def external_id=: (String) -> String
|
|
89
91
|
|
|
92
|
+
attr_reader naics_code: String?
|
|
93
|
+
|
|
94
|
+
def naics_code=: (String) -> String
|
|
95
|
+
|
|
90
96
|
attr_reader nature_of_business: String?
|
|
91
97
|
|
|
92
98
|
def nature_of_business=: (String) -> String
|
|
@@ -100,6 +106,7 @@ module Lithic
|
|
|
100
106
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
101
107
|
?event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
102
108
|
?external_id: String,
|
|
109
|
+
?naics_code: String,
|
|
103
110
|
?nature_of_business: String,
|
|
104
111
|
?website_url: String
|
|
105
112
|
) -> void
|
|
@@ -109,6 +116,7 @@ module Lithic
|
|
|
109
116
|
update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest,
|
|
110
117
|
event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type,
|
|
111
118
|
external_id: String,
|
|
119
|
+
naics_code: String,
|
|
112
120
|
nature_of_business: String,
|
|
113
121
|
website_url: String
|
|
114
122
|
}
|
|
@@ -524,7 +524,7 @@ module Lithic
|
|
|
524
524
|
| :WIRE_INBOUND_ADMIN
|
|
525
525
|
| :WIRE_OUTBOUND_PAYMENT
|
|
526
526
|
| :WIRE_OUTBOUND_ADMIN
|
|
527
|
-
| :
|
|
527
|
+
| :WIRE_INBOUND_DRAWDOWN_REQUEST
|
|
528
528
|
|
|
529
529
|
module Type
|
|
530
530
|
extend Lithic::Internal::Type::Enum
|
|
@@ -537,7 +537,7 @@ module Lithic
|
|
|
537
537
|
WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN
|
|
538
538
|
WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT
|
|
539
539
|
WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN
|
|
540
|
-
|
|
540
|
+
WIRE_INBOUND_DRAWDOWN_REQUEST: :WIRE_INBOUND_DRAWDOWN_REQUEST
|
|
541
541
|
|
|
542
542
|
def self?.values: -> ::Array[Lithic::Models::Payment::type_]
|
|
543
543
|
end
|
|
@@ -25,6 +25,7 @@ module Lithic
|
|
|
25
25
|
result: Lithic::Models::Transaction::result,
|
|
26
26
|
settled_amount: Integer,
|
|
27
27
|
status: Lithic::Models::Transaction::status,
|
|
28
|
+
tags: ::Hash[Symbol, String],
|
|
28
29
|
token_info: Lithic::TokenInfo?,
|
|
29
30
|
updated: Time,
|
|
30
31
|
events: ::Array[Lithic::Transaction::Event]
|
|
@@ -77,6 +78,8 @@ module Lithic
|
|
|
77
78
|
|
|
78
79
|
attr_accessor status: Lithic::Models::Transaction::status
|
|
79
80
|
|
|
81
|
+
attr_accessor tags: ::Hash[Symbol, String]
|
|
82
|
+
|
|
80
83
|
attr_accessor token_info: Lithic::TokenInfo?
|
|
81
84
|
|
|
82
85
|
attr_accessor updated: Time
|
|
@@ -111,6 +114,7 @@ module Lithic
|
|
|
111
114
|
result: Lithic::Models::Transaction::result,
|
|
112
115
|
settled_amount: Integer,
|
|
113
116
|
status: Lithic::Models::Transaction::status,
|
|
117
|
+
tags: ::Hash[Symbol, String],
|
|
114
118
|
token_info: Lithic::TokenInfo?,
|
|
115
119
|
updated: Time,
|
|
116
120
|
?events: ::Array[Lithic::Transaction::Event]
|
|
@@ -140,6 +144,7 @@ module Lithic
|
|
|
140
144
|
result: Lithic::Models::Transaction::result,
|
|
141
145
|
settled_amount: Integer,
|
|
142
146
|
status: Lithic::Models::Transaction::status,
|
|
147
|
+
tags: ::Hash[Symbol, String],
|
|
143
148
|
token_info: Lithic::TokenInfo?,
|
|
144
149
|
updated: Time,
|
|
145
150
|
events: ::Array[Lithic::Transaction::Event]
|
|
@@ -6,7 +6,10 @@ module Lithic
|
|
|
6
6
|
descriptor: String,
|
|
7
7
|
pan: String,
|
|
8
8
|
mcc: String,
|
|
9
|
+
merchant_acceptor_city: String,
|
|
10
|
+
merchant_acceptor_country: String,
|
|
9
11
|
merchant_acceptor_id: String,
|
|
12
|
+
merchant_acceptor_state: String,
|
|
10
13
|
merchant_amount: Integer,
|
|
11
14
|
merchant_currency: String,
|
|
12
15
|
partial_approval_capable: bool,
|
|
@@ -29,10 +32,22 @@ module Lithic
|
|
|
29
32
|
|
|
30
33
|
def mcc=: (String) -> String
|
|
31
34
|
|
|
35
|
+
attr_reader merchant_acceptor_city: String?
|
|
36
|
+
|
|
37
|
+
def merchant_acceptor_city=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_reader merchant_acceptor_country: String?
|
|
40
|
+
|
|
41
|
+
def merchant_acceptor_country=: (String) -> String
|
|
42
|
+
|
|
32
43
|
attr_reader merchant_acceptor_id: String?
|
|
33
44
|
|
|
34
45
|
def merchant_acceptor_id=: (String) -> String
|
|
35
46
|
|
|
47
|
+
attr_reader merchant_acceptor_state: String?
|
|
48
|
+
|
|
49
|
+
def merchant_acceptor_state=: (String) -> String
|
|
50
|
+
|
|
36
51
|
attr_reader merchant_amount: Integer?
|
|
37
52
|
|
|
38
53
|
def merchant_amount=: (Integer) -> Integer
|
|
@@ -60,7 +75,10 @@ module Lithic
|
|
|
60
75
|
descriptor: String,
|
|
61
76
|
pan: String,
|
|
62
77
|
?mcc: String,
|
|
78
|
+
?merchant_acceptor_city: String,
|
|
79
|
+
?merchant_acceptor_country: String,
|
|
63
80
|
?merchant_acceptor_id: String,
|
|
81
|
+
?merchant_acceptor_state: String,
|
|
64
82
|
?merchant_amount: Integer,
|
|
65
83
|
?merchant_currency: String,
|
|
66
84
|
?partial_approval_capable: bool,
|
|
@@ -74,7 +92,10 @@ module Lithic
|
|
|
74
92
|
descriptor: String,
|
|
75
93
|
pan: String,
|
|
76
94
|
mcc: String,
|
|
95
|
+
merchant_acceptor_city: String,
|
|
96
|
+
merchant_acceptor_country: String,
|
|
77
97
|
merchant_acceptor_id: String,
|
|
98
|
+
merchant_acceptor_state: String,
|
|
78
99
|
merchant_amount: Integer,
|
|
79
100
|
merchant_currency: String,
|
|
80
101
|
partial_approval_capable: bool,
|
|
@@ -6,7 +6,10 @@ module Lithic
|
|
|
6
6
|
descriptor: String,
|
|
7
7
|
pan: String,
|
|
8
8
|
mcc: String,
|
|
9
|
-
|
|
9
|
+
merchant_acceptor_city: String,
|
|
10
|
+
merchant_acceptor_country: String,
|
|
11
|
+
merchant_acceptor_id: String,
|
|
12
|
+
merchant_acceptor_state: String
|
|
10
13
|
}
|
|
11
14
|
& Lithic::Internal::Type::request_parameters
|
|
12
15
|
|
|
@@ -24,16 +27,31 @@ module Lithic
|
|
|
24
27
|
|
|
25
28
|
def mcc=: (String) -> String
|
|
26
29
|
|
|
30
|
+
attr_reader merchant_acceptor_city: String?
|
|
31
|
+
|
|
32
|
+
def merchant_acceptor_city=: (String) -> String
|
|
33
|
+
|
|
34
|
+
attr_reader merchant_acceptor_country: String?
|
|
35
|
+
|
|
36
|
+
def merchant_acceptor_country=: (String) -> String
|
|
37
|
+
|
|
27
38
|
attr_reader merchant_acceptor_id: String?
|
|
28
39
|
|
|
29
40
|
def merchant_acceptor_id=: (String) -> String
|
|
30
41
|
|
|
42
|
+
attr_reader merchant_acceptor_state: String?
|
|
43
|
+
|
|
44
|
+
def merchant_acceptor_state=: (String) -> String
|
|
45
|
+
|
|
31
46
|
def initialize: (
|
|
32
47
|
amount: Integer,
|
|
33
48
|
descriptor: String,
|
|
34
49
|
pan: String,
|
|
35
50
|
?mcc: String,
|
|
51
|
+
?merchant_acceptor_city: String,
|
|
52
|
+
?merchant_acceptor_country: String,
|
|
36
53
|
?merchant_acceptor_id: String,
|
|
54
|
+
?merchant_acceptor_state: String,
|
|
37
55
|
?request_options: Lithic::request_opts
|
|
38
56
|
) -> void
|
|
39
57
|
|
|
@@ -42,7 +60,10 @@ module Lithic
|
|
|
42
60
|
descriptor: String,
|
|
43
61
|
pan: String,
|
|
44
62
|
mcc: String,
|
|
63
|
+
merchant_acceptor_city: String,
|
|
64
|
+
merchant_acceptor_country: String,
|
|
45
65
|
merchant_acceptor_id: String,
|
|
66
|
+
merchant_acceptor_state: String,
|
|
46
67
|
request_options: Lithic::RequestOptions
|
|
47
68
|
}
|
|
48
69
|
end
|