lithic 0.9.0 → 0.10.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 +29 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_holder_create_params.rb +2 -1
- data/lib/lithic/models/account_holder_update_params.rb +2 -1
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +2 -1
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +26 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +1 -1
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +95 -4
- data/lib/lithic/models/carrier.rb +7 -2
- data/lib/lithic/models/kyb.rb +2 -1
- data/lib/lithic/models/parsed_webhook_event.rb +2 -1
- data/lib/lithic/models/payment.rb +14 -1
- data/lib/lithic/models/transaction.rb +93 -4
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +1 -1
- data/rbi/lithic/models/account_holder_create_params.rbi +4 -2
- data/rbi/lithic/models/account_holder_update_params.rbi +4 -2
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +53 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +1 -1
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +171 -4
- data/rbi/lithic/models/carrier.rbi +6 -2
- data/rbi/lithic/models/kyb.rbi +4 -2
- data/rbi/lithic/models/parsed_webhook_event.rbi +4 -2
- data/rbi/lithic/models/payment.rbi +10 -0
- data/rbi/lithic/models/transaction.rbi +146 -4
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +8 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +75 -4
- data/sig/lithic/models/payment.rbs +5 -0
- data/sig/lithic/models/transaction.rbs +75 -4
- metadata +2 -2
|
@@ -13,9 +13,10 @@ module Lithic
|
|
|
13
13
|
cash_amount: Integer,
|
|
14
14
|
created: Time,
|
|
15
15
|
event_type: :"card_authorization.approval_request",
|
|
16
|
-
merchant: Lithic::Merchant,
|
|
16
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
|
|
17
17
|
merchant_amount: Integer,
|
|
18
18
|
merchant_currency: String,
|
|
19
|
+
service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
|
|
19
20
|
settled_amount: Integer,
|
|
20
21
|
status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
|
|
21
22
|
transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
|
|
@@ -57,12 +58,14 @@ module Lithic
|
|
|
57
58
|
|
|
58
59
|
attr_accessor event_type: :"card_authorization.approval_request"
|
|
59
60
|
|
|
60
|
-
attr_accessor merchant: Lithic::Merchant
|
|
61
|
+
attr_accessor merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant
|
|
61
62
|
|
|
62
63
|
attr_accessor merchant_amount: Integer
|
|
63
64
|
|
|
64
65
|
attr_accessor merchant_currency: String
|
|
65
66
|
|
|
67
|
+
attr_accessor service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?
|
|
68
|
+
|
|
66
69
|
attr_accessor settled_amount: Integer
|
|
67
70
|
|
|
68
71
|
attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status
|
|
@@ -134,9 +137,10 @@ module Lithic
|
|
|
134
137
|
cardholder_currency: String,
|
|
135
138
|
cash_amount: Integer,
|
|
136
139
|
created: Time,
|
|
137
|
-
merchant: Lithic::Merchant,
|
|
140
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
|
|
138
141
|
merchant_amount: Integer,
|
|
139
142
|
merchant_currency: String,
|
|
143
|
+
service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
|
|
140
144
|
settled_amount: Integer,
|
|
141
145
|
status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
|
|
142
146
|
transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
|
|
@@ -168,9 +172,10 @@ module Lithic
|
|
|
168
172
|
cash_amount: Integer,
|
|
169
173
|
created: Time,
|
|
170
174
|
event_type: :"card_authorization.approval_request",
|
|
171
|
-
merchant: Lithic::Merchant,
|
|
175
|
+
merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
|
|
172
176
|
merchant_amount: Integer,
|
|
173
177
|
merchant_currency: String,
|
|
178
|
+
service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
|
|
174
179
|
settled_amount: Integer,
|
|
175
180
|
status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
|
|
176
181
|
transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
|
|
@@ -450,6 +455,72 @@ module Lithic
|
|
|
450
455
|
end
|
|
451
456
|
end
|
|
452
457
|
|
|
458
|
+
type merchant =
|
|
459
|
+
{ phone_number: String?, postal_code: String?, street_address: String? }
|
|
460
|
+
|
|
461
|
+
class Merchant < Lithic::Models::Merchant
|
|
462
|
+
def phone_number: -> String?
|
|
463
|
+
|
|
464
|
+
def phone_number=: (String? _) -> String?
|
|
465
|
+
|
|
466
|
+
def postal_code: -> String?
|
|
467
|
+
|
|
468
|
+
def postal_code=: (String? _) -> String?
|
|
469
|
+
|
|
470
|
+
def street_address: -> String?
|
|
471
|
+
|
|
472
|
+
def street_address=: (String? _) -> String?
|
|
473
|
+
|
|
474
|
+
def initialize: (
|
|
475
|
+
phone_number: String?,
|
|
476
|
+
postal_code: String?,
|
|
477
|
+
street_address: String?
|
|
478
|
+
) -> void
|
|
479
|
+
|
|
480
|
+
def to_hash: -> {
|
|
481
|
+
phone_number: String?,
|
|
482
|
+
postal_code: String?,
|
|
483
|
+
street_address: String?
|
|
484
|
+
}
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
type service_location =
|
|
488
|
+
{
|
|
489
|
+
city: String?,
|
|
490
|
+
country: String?,
|
|
491
|
+
postal_code: String?,
|
|
492
|
+
state: String?,
|
|
493
|
+
street_address: String?
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
class ServiceLocation < Lithic::Internal::Type::BaseModel
|
|
497
|
+
attr_accessor city: String?
|
|
498
|
+
|
|
499
|
+
attr_accessor country: String?
|
|
500
|
+
|
|
501
|
+
attr_accessor postal_code: String?
|
|
502
|
+
|
|
503
|
+
attr_accessor state: String?
|
|
504
|
+
|
|
505
|
+
attr_accessor street_address: String?
|
|
506
|
+
|
|
507
|
+
def initialize: (
|
|
508
|
+
city: String?,
|
|
509
|
+
country: String?,
|
|
510
|
+
postal_code: String?,
|
|
511
|
+
state: String?,
|
|
512
|
+
street_address: String?
|
|
513
|
+
) -> void
|
|
514
|
+
|
|
515
|
+
def to_hash: -> {
|
|
516
|
+
city: String?,
|
|
517
|
+
country: String?,
|
|
518
|
+
postal_code: String?,
|
|
519
|
+
state: String?,
|
|
520
|
+
street_address: String?
|
|
521
|
+
}
|
|
522
|
+
end
|
|
523
|
+
|
|
453
524
|
type status =
|
|
454
525
|
:AUTHORIZATION
|
|
455
526
|
| :CREDIT_AUTHORIZATION
|
|
@@ -354,6 +354,7 @@ module Lithic
|
|
|
354
354
|
ach_hold_period: Integer?,
|
|
355
355
|
addenda: String?,
|
|
356
356
|
company_id: String?,
|
|
357
|
+
override_company_name: String?,
|
|
357
358
|
receipt_routing_number: String?,
|
|
358
359
|
retries: Integer?,
|
|
359
360
|
return_reason_code: String?,
|
|
@@ -369,6 +370,8 @@ module Lithic
|
|
|
369
370
|
|
|
370
371
|
attr_accessor company_id: String?
|
|
371
372
|
|
|
373
|
+
attr_accessor override_company_name: String?
|
|
374
|
+
|
|
372
375
|
attr_accessor receipt_routing_number: String?
|
|
373
376
|
|
|
374
377
|
attr_accessor retries: Integer?
|
|
@@ -384,6 +387,7 @@ module Lithic
|
|
|
384
387
|
?ach_hold_period: Integer?,
|
|
385
388
|
?addenda: String?,
|
|
386
389
|
?company_id: String?,
|
|
390
|
+
?override_company_name: String?,
|
|
387
391
|
?receipt_routing_number: String?,
|
|
388
392
|
?retries: Integer?,
|
|
389
393
|
?return_reason_code: String?,
|
|
@@ -395,6 +399,7 @@ module Lithic
|
|
|
395
399
|
ach_hold_period: Integer?,
|
|
396
400
|
addenda: String?,
|
|
397
401
|
company_id: String?,
|
|
402
|
+
override_company_name: String?,
|
|
398
403
|
receipt_routing_number: String?,
|
|
399
404
|
retries: Integer?,
|
|
400
405
|
return_reason_code: String?,
|
|
@@ -15,7 +15,7 @@ module Lithic
|
|
|
15
15
|
cardholder_authentication: Lithic::CardholderAuthentication?,
|
|
16
16
|
created: Time,
|
|
17
17
|
financial_account_token: String?,
|
|
18
|
-
merchant: Lithic::Merchant,
|
|
18
|
+
merchant: Lithic::Transaction::Merchant,
|
|
19
19
|
merchant_amount: Integer?,
|
|
20
20
|
merchant_authorization_amount: Integer?,
|
|
21
21
|
merchant_currency: String,
|
|
@@ -23,6 +23,7 @@ module Lithic
|
|
|
23
23
|
network_risk_score: Integer?,
|
|
24
24
|
pos: Lithic::Transaction::Pos,
|
|
25
25
|
result: Lithic::Models::Transaction::result,
|
|
26
|
+
service_location: Lithic::Transaction::ServiceLocation?,
|
|
26
27
|
settled_amount: Integer,
|
|
27
28
|
status: Lithic::Models::Transaction::status,
|
|
28
29
|
tags: ::Hash[Symbol, String],
|
|
@@ -58,7 +59,7 @@ module Lithic
|
|
|
58
59
|
|
|
59
60
|
attr_accessor financial_account_token: String?
|
|
60
61
|
|
|
61
|
-
attr_accessor merchant: Lithic::Merchant
|
|
62
|
+
attr_accessor merchant: Lithic::Transaction::Merchant
|
|
62
63
|
|
|
63
64
|
attr_accessor merchant_amount: Integer?
|
|
64
65
|
|
|
@@ -74,6 +75,8 @@ module Lithic
|
|
|
74
75
|
|
|
75
76
|
attr_accessor result: Lithic::Models::Transaction::result
|
|
76
77
|
|
|
78
|
+
attr_accessor service_location: Lithic::Transaction::ServiceLocation?
|
|
79
|
+
|
|
77
80
|
attr_accessor settled_amount: Integer
|
|
78
81
|
|
|
79
82
|
attr_accessor status: Lithic::Models::Transaction::status
|
|
@@ -104,7 +107,7 @@ module Lithic
|
|
|
104
107
|
cardholder_authentication: Lithic::CardholderAuthentication?,
|
|
105
108
|
created: Time,
|
|
106
109
|
financial_account_token: String?,
|
|
107
|
-
merchant: Lithic::Merchant,
|
|
110
|
+
merchant: Lithic::Transaction::Merchant,
|
|
108
111
|
merchant_amount: Integer?,
|
|
109
112
|
merchant_authorization_amount: Integer?,
|
|
110
113
|
merchant_currency: String,
|
|
@@ -112,6 +115,7 @@ module Lithic
|
|
|
112
115
|
network_risk_score: Integer?,
|
|
113
116
|
pos: Lithic::Transaction::Pos,
|
|
114
117
|
result: Lithic::Models::Transaction::result,
|
|
118
|
+
service_location: Lithic::Transaction::ServiceLocation?,
|
|
115
119
|
settled_amount: Integer,
|
|
116
120
|
status: Lithic::Models::Transaction::status,
|
|
117
121
|
tags: ::Hash[Symbol, String],
|
|
@@ -134,7 +138,7 @@ module Lithic
|
|
|
134
138
|
cardholder_authentication: Lithic::CardholderAuthentication?,
|
|
135
139
|
created: Time,
|
|
136
140
|
financial_account_token: String?,
|
|
137
|
-
merchant: Lithic::Merchant,
|
|
141
|
+
merchant: Lithic::Transaction::Merchant,
|
|
138
142
|
merchant_amount: Integer?,
|
|
139
143
|
merchant_authorization_amount: Integer?,
|
|
140
144
|
merchant_currency: String,
|
|
@@ -142,6 +146,7 @@ module Lithic
|
|
|
142
146
|
network_risk_score: Integer?,
|
|
143
147
|
pos: Lithic::Transaction::Pos,
|
|
144
148
|
result: Lithic::Models::Transaction::result,
|
|
149
|
+
service_location: Lithic::Transaction::ServiceLocation?,
|
|
145
150
|
settled_amount: Integer,
|
|
146
151
|
status: Lithic::Models::Transaction::status,
|
|
147
152
|
tags: ::Hash[Symbol, String],
|
|
@@ -253,6 +258,35 @@ module Lithic
|
|
|
253
258
|
def to_hash: -> { address: String, zipcode: String }
|
|
254
259
|
end
|
|
255
260
|
|
|
261
|
+
type merchant =
|
|
262
|
+
{ phone_number: String?, postal_code: String?, street_address: String? }
|
|
263
|
+
|
|
264
|
+
class Merchant < Lithic::Models::Merchant
|
|
265
|
+
def phone_number: -> String?
|
|
266
|
+
|
|
267
|
+
def phone_number=: (String? _) -> String?
|
|
268
|
+
|
|
269
|
+
def postal_code: -> String?
|
|
270
|
+
|
|
271
|
+
def postal_code=: (String? _) -> String?
|
|
272
|
+
|
|
273
|
+
def street_address: -> String?
|
|
274
|
+
|
|
275
|
+
def street_address=: (String? _) -> String?
|
|
276
|
+
|
|
277
|
+
def initialize: (
|
|
278
|
+
phone_number: String?,
|
|
279
|
+
postal_code: String?,
|
|
280
|
+
street_address: String?
|
|
281
|
+
) -> void
|
|
282
|
+
|
|
283
|
+
def to_hash: -> {
|
|
284
|
+
phone_number: String?,
|
|
285
|
+
postal_code: String?,
|
|
286
|
+
street_address: String?
|
|
287
|
+
}
|
|
288
|
+
end
|
|
289
|
+
|
|
256
290
|
type network =
|
|
257
291
|
:AMEX | :INTERLINK | :MAESTRO | :MASTERCARD | :UNKNOWN | :VISA
|
|
258
292
|
|
|
@@ -600,6 +634,43 @@ module Lithic
|
|
|
600
634
|
def self?.values: -> ::Array[Lithic::Models::Transaction::result]
|
|
601
635
|
end
|
|
602
636
|
|
|
637
|
+
type service_location =
|
|
638
|
+
{
|
|
639
|
+
city: String?,
|
|
640
|
+
country: String?,
|
|
641
|
+
postal_code: String?,
|
|
642
|
+
state: String?,
|
|
643
|
+
street_address: String?
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
class ServiceLocation < Lithic::Internal::Type::BaseModel
|
|
647
|
+
attr_accessor city: String?
|
|
648
|
+
|
|
649
|
+
attr_accessor country: String?
|
|
650
|
+
|
|
651
|
+
attr_accessor postal_code: String?
|
|
652
|
+
|
|
653
|
+
attr_accessor state: String?
|
|
654
|
+
|
|
655
|
+
attr_accessor street_address: String?
|
|
656
|
+
|
|
657
|
+
def initialize: (
|
|
658
|
+
city: String?,
|
|
659
|
+
country: String?,
|
|
660
|
+
postal_code: String?,
|
|
661
|
+
state: String?,
|
|
662
|
+
street_address: String?
|
|
663
|
+
) -> void
|
|
664
|
+
|
|
665
|
+
def to_hash: -> {
|
|
666
|
+
city: String?,
|
|
667
|
+
country: String?,
|
|
668
|
+
postal_code: String?,
|
|
669
|
+
state: String?,
|
|
670
|
+
street_address: String?
|
|
671
|
+
}
|
|
672
|
+
end
|
|
673
|
+
|
|
603
674
|
type status = :DECLINED | :EXPIRED | :PENDING | :SETTLED | :VOIDED
|
|
604
675
|
|
|
605
676
|
module Status
|
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.10.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-03-
|
|
11
|
+
date: 2026-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|