lithic 0.18.0 → 0.18.1
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 +18 -0
- data/README.md +1 -1
- data/lib/lithic/internal/type/union.rb +7 -21
- data/lib/lithic/models/card_authorization.rb +7 -6
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +120 -43
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/rbi/lithic/models/card_authorization.rbi +12 -10
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +151 -46
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +1 -1
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +93 -34
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39c91f51cf5bdeac0ea066eb62ca454e3617be091bf90fbd2dc1a7880341dced
|
|
4
|
+
data.tar.gz: 70b13d4f29b3fe30a7ab75fc1d6a377cc15e557207918dacfe648eb186ec43dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ff8da6ba6b878a6096cf5ccfd4c030fcc6caa496718179c7cf9cfcef478b1d36286439743780ec77259eab01773661f5aefdf48a79530893944ded3477a92fc
|
|
7
|
+
data.tar.gz: 13bc491847868ff70266b047604a387579271a3aae3a65e223b085d641ba1c59a0e261be1b4446f061440ecb9ecad46af7e76225913656bf8eb7ebfec5a9bab3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.1 (2026-06-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.18.0...v0.18.1](https://github.com/lithic-com/lithic-ruby/compare/v0.18.0...v0.18.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **types:** convert CaseTransaction to union with Card/Payment variants ([0d84634](https://github.com/lithic-com/lithic-ruby/commit/0d84634d5cf4e42f4270832089df3cdbd50deed2))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** bound formatter parallelism to CPU count ([acf4dc5](https://github.com/lithic-com/lithic-ruby/commit/acf4dc52c4d33ea1bce9b0544123caf6c2d764d2))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **types:** update cash_amount field description in CardAuthorization ([1385cde](https://github.com/lithic-com/lithic-ruby/commit/1385cde62aca3c83a7525150b535decc016c8ed4))
|
|
20
|
+
|
|
3
21
|
## 0.18.0 (2026-06-23)
|
|
4
22
|
|
|
5
23
|
Full Changelog: [v0.17.0...v0.18.0](https://github.com/lithic-com/lithic-ruby/compare/v0.17.0...v0.18.0)
|
data/README.md
CHANGED
|
@@ -6,28 +6,14 @@ module Lithic
|
|
|
6
6
|
# @api private
|
|
7
7
|
#
|
|
8
8
|
# @example
|
|
9
|
-
# # `
|
|
10
|
-
# case
|
|
11
|
-
# when Lithic::
|
|
12
|
-
# puts(
|
|
13
|
-
# when Lithic::
|
|
14
|
-
# puts(
|
|
15
|
-
# when Lithic::Models::AccountActivityListResponse::Card
|
|
16
|
-
# # ...
|
|
9
|
+
# # `case_transaction` is a `Lithic::TransactionMonitoring::CaseTransaction`
|
|
10
|
+
# case case_transaction
|
|
11
|
+
# when Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction
|
|
12
|
+
# puts(case_transaction.token)
|
|
13
|
+
# when Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
|
|
14
|
+
# puts(case_transaction.added_at)
|
|
17
15
|
# else
|
|
18
|
-
# puts(
|
|
19
|
-
# end
|
|
20
|
-
#
|
|
21
|
-
# @example
|
|
22
|
-
# case account_activity_list_response
|
|
23
|
-
# in {family: :INTERNAL, token: token, category: category, created: created}
|
|
24
|
-
# puts(token)
|
|
25
|
-
# in {family: :TRANSFER, token: token, category: category, created: created}
|
|
26
|
-
# puts(category)
|
|
27
|
-
# in {family: :PAYMENT, token: token, category: category, created: created}
|
|
28
|
-
# puts(created)
|
|
29
|
-
# else
|
|
30
|
-
# puts(account_activity_list_response)
|
|
16
|
+
# puts(case_transaction)
|
|
31
17
|
# end
|
|
32
18
|
module Union
|
|
33
19
|
include Lithic::Internal::Type::Converter
|
|
@@ -68,12 +68,13 @@ module Lithic
|
|
|
68
68
|
required :cardholder_currency, String
|
|
69
69
|
|
|
70
70
|
# @!attribute cash_amount
|
|
71
|
-
# The
|
|
72
|
-
#
|
|
73
|
-
#
|
|
71
|
+
# The amount of cash requested by the cardholder, in the cardholder billing
|
|
72
|
+
# currency's smallest unit. For purchase-with-cashback transactions this is the
|
|
73
|
+
# cashback portion only; for ATM transactions this is the full amount. This amount
|
|
74
|
+
# includes all acquirer fees.
|
|
74
75
|
#
|
|
75
|
-
# If no cash
|
|
76
|
-
#
|
|
76
|
+
# If no cash was requested, the value of this field will be 0, and the field will
|
|
77
|
+
# always be present.
|
|
77
78
|
#
|
|
78
79
|
# @return [Integer]
|
|
79
80
|
required :cash_amount, Integer
|
|
@@ -263,7 +264,7 @@ module Lithic
|
|
|
263
264
|
#
|
|
264
265
|
# @param cardholder_currency [String] Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's
|
|
265
266
|
#
|
|
266
|
-
# @param cash_amount [Integer] The
|
|
267
|
+
# @param cash_amount [Integer] The amount of cash requested by the cardholder, in the cardholder billing curren
|
|
267
268
|
#
|
|
268
269
|
# @param created [Time] Date and time when the transaction first occurred in UTC.
|
|
269
270
|
#
|
|
@@ -3,50 +3,127 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
5
|
module TransactionMonitoring
|
|
6
|
+
# A single transaction associated with a case. The `category` field identifies
|
|
7
|
+
# whether this is a card transaction or a payment transaction.
|
|
8
|
+
#
|
|
6
9
|
# @see Lithic::Resources::TransactionMonitoring::Cases#list_transactions
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
10
|
+
module CaseTransaction
|
|
11
|
+
extend Lithic::Internal::Type::Union
|
|
12
|
+
|
|
13
|
+
discriminator :category
|
|
14
|
+
|
|
15
|
+
# A card transaction associated with a case
|
|
16
|
+
variant -> { Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction }
|
|
17
|
+
|
|
18
|
+
# A payment (ACH) transaction associated with a case
|
|
19
|
+
variant -> { Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction }
|
|
20
|
+
|
|
21
|
+
class CardCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute token
|
|
23
|
+
# Globally unique identifier for the card transaction
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :token, String
|
|
27
|
+
|
|
28
|
+
# @!attribute account_token
|
|
29
|
+
# Token of the account the transaction belongs to
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :account_token, String
|
|
33
|
+
|
|
34
|
+
# @!attribute added_at
|
|
35
|
+
# Date and time at which the transaction was added to the case
|
|
36
|
+
#
|
|
37
|
+
# @return [Time]
|
|
38
|
+
required :added_at, Time
|
|
39
|
+
|
|
40
|
+
# @!attribute card_token
|
|
41
|
+
# Token of the card the transaction was made on
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :card_token, String
|
|
45
|
+
|
|
46
|
+
# @!attribute category
|
|
47
|
+
#
|
|
48
|
+
# @return [Symbol, :CARD]
|
|
49
|
+
required :category, const: :CARD
|
|
50
|
+
|
|
51
|
+
# @!attribute transaction_created_at
|
|
52
|
+
# Date and time at which the transaction was created
|
|
53
|
+
#
|
|
54
|
+
# @return [Time]
|
|
55
|
+
required :transaction_created_at, Time
|
|
56
|
+
|
|
57
|
+
# @!method initialize(token:, account_token:, added_at:, card_token:, transaction_created_at:, category: :CARD)
|
|
58
|
+
# A card transaction associated with a case
|
|
59
|
+
#
|
|
60
|
+
# @param token [String] Globally unique identifier for the card transaction
|
|
61
|
+
#
|
|
62
|
+
# @param account_token [String] Token of the account the transaction belongs to
|
|
63
|
+
#
|
|
64
|
+
# @param added_at [Time] Date and time at which the transaction was added to the case
|
|
65
|
+
#
|
|
66
|
+
# @param card_token [String] Token of the card the transaction was made on
|
|
67
|
+
#
|
|
68
|
+
# @param transaction_created_at [Time] Date and time at which the transaction was created
|
|
69
|
+
#
|
|
70
|
+
# @param category [Symbol, :CARD]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
74
|
+
# @!attribute token
|
|
75
|
+
# Globally unique identifier for the payment transaction
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
required :token, String
|
|
79
|
+
|
|
80
|
+
# @!attribute added_at
|
|
81
|
+
# Date and time at which the transaction was added to the case
|
|
82
|
+
#
|
|
83
|
+
# @return [Time]
|
|
84
|
+
required :added_at, Time
|
|
85
|
+
|
|
86
|
+
# @!attribute category
|
|
87
|
+
#
|
|
88
|
+
# @return [Symbol, :PAYMENT]
|
|
89
|
+
required :category, const: :PAYMENT
|
|
90
|
+
|
|
91
|
+
# @!attribute financial_account_token
|
|
92
|
+
# Token of the financial account the payment belongs to
|
|
93
|
+
#
|
|
94
|
+
# @return [String]
|
|
95
|
+
required :financial_account_token, String
|
|
96
|
+
|
|
97
|
+
# @!attribute transaction_created_at
|
|
98
|
+
# Date and time at which the transaction was created
|
|
99
|
+
#
|
|
100
|
+
# @return [Time]
|
|
101
|
+
required :transaction_created_at, Time
|
|
102
|
+
|
|
103
|
+
# @!attribute account_token
|
|
104
|
+
# Token of the account the payment belongs to, if applicable
|
|
105
|
+
#
|
|
106
|
+
# @return [String, nil]
|
|
107
|
+
optional :account_token, String
|
|
108
|
+
|
|
109
|
+
# @!method initialize(token:, added_at:, financial_account_token:, transaction_created_at:, account_token: nil, category: :PAYMENT)
|
|
110
|
+
# A payment (ACH) transaction associated with a case
|
|
111
|
+
#
|
|
112
|
+
# @param token [String] Globally unique identifier for the payment transaction
|
|
113
|
+
#
|
|
114
|
+
# @param added_at [Time] Date and time at which the transaction was added to the case
|
|
115
|
+
#
|
|
116
|
+
# @param financial_account_token [String] Token of the financial account the payment belongs to
|
|
117
|
+
#
|
|
118
|
+
# @param transaction_created_at [Time] Date and time at which the transaction was created
|
|
119
|
+
#
|
|
120
|
+
# @param account_token [String] Token of the account the payment belongs to, if applicable
|
|
121
|
+
#
|
|
122
|
+
# @param category [Symbol, :PAYMENT]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @!method self.variants
|
|
126
|
+
# @return [Array(Lithic::Models::TransactionMonitoring::CaseTransaction::CardCaseTransaction, Lithic::Models::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction)]
|
|
50
127
|
end
|
|
51
128
|
end
|
|
52
129
|
end
|
|
@@ -178,7 +178,7 @@ module Lithic
|
|
|
178
178
|
#
|
|
179
179
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
180
180
|
#
|
|
181
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::CaseTransaction>]
|
|
181
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::CaseTransaction::CardCaseTransaction, Lithic::Models::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction>]
|
|
182
182
|
#
|
|
183
183
|
# @see Lithic::Models::TransactionMonitoring::CaseListTransactionsParams
|
|
184
184
|
def list_transactions(case_token, params = {})
|
data/lib/lithic/version.rb
CHANGED
|
@@ -59,12 +59,13 @@ module Lithic
|
|
|
59
59
|
sig { returns(String) }
|
|
60
60
|
attr_accessor :cardholder_currency
|
|
61
61
|
|
|
62
|
-
# The
|
|
63
|
-
#
|
|
64
|
-
#
|
|
62
|
+
# The amount of cash requested by the cardholder, in the cardholder billing
|
|
63
|
+
# currency's smallest unit. For purchase-with-cashback transactions this is the
|
|
64
|
+
# cashback portion only; for ATM transactions this is the full amount. This amount
|
|
65
|
+
# includes all acquirer fees.
|
|
65
66
|
#
|
|
66
|
-
# If no cash
|
|
67
|
-
#
|
|
67
|
+
# If no cash was requested, the value of this field will be 0, and the field will
|
|
68
|
+
# always be present.
|
|
68
69
|
sig { returns(Integer) }
|
|
69
70
|
attr_accessor :cash_amount
|
|
70
71
|
|
|
@@ -328,12 +329,13 @@ module Lithic
|
|
|
328
329
|
# Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's
|
|
329
330
|
# billing currency.
|
|
330
331
|
cardholder_currency:,
|
|
331
|
-
# The
|
|
332
|
-
#
|
|
333
|
-
#
|
|
332
|
+
# The amount of cash requested by the cardholder, in the cardholder billing
|
|
333
|
+
# currency's smallest unit. For purchase-with-cashback transactions this is the
|
|
334
|
+
# cashback portion only; for ATM transactions this is the full amount. This amount
|
|
335
|
+
# includes all acquirer fees.
|
|
334
336
|
#
|
|
335
|
-
# If no cash
|
|
336
|
-
#
|
|
337
|
+
# If no cash was requested, the value of this field will be 0, and the field will
|
|
338
|
+
# always be present.
|
|
337
339
|
cash_amount:,
|
|
338
340
|
# Date and time when the transaction first occurred in UTC.
|
|
339
341
|
created:,
|
|
@@ -3,71 +3,176 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
5
|
module TransactionMonitoring
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
# A single transaction associated with a case. The `category` field identifies
|
|
7
|
+
# whether this is a card transaction or a payment transaction.
|
|
8
|
+
module CaseTransaction
|
|
9
|
+
extend Lithic::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
Variants =
|
|
8
12
|
T.type_alias do
|
|
9
13
|
T.any(
|
|
10
|
-
Lithic::TransactionMonitoring::CaseTransaction,
|
|
11
|
-
Lithic::
|
|
14
|
+
Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction,
|
|
15
|
+
Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
|
|
12
16
|
)
|
|
13
17
|
end
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
class CardCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
20
|
+
OrHash =
|
|
21
|
+
T.type_alias do
|
|
22
|
+
T.any(
|
|
23
|
+
Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction,
|
|
24
|
+
Lithic::Internal::AnyHash
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Globally unique identifier for the card transaction
|
|
29
|
+
sig { returns(String) }
|
|
30
|
+
attr_accessor :token
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
# Token of the account the transaction belongs to
|
|
33
|
+
sig { returns(String) }
|
|
34
|
+
attr_accessor :account_token
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
36
|
+
# Date and time at which the transaction was added to the case
|
|
37
|
+
sig { returns(Time) }
|
|
38
|
+
attr_accessor :added_at
|
|
26
39
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
# Token of the card the transaction was made on
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
attr_accessor :card_token
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
attr_accessor :transaction_created_at
|
|
44
|
+
sig { returns(Symbol) }
|
|
45
|
+
attr_accessor :category
|
|
34
46
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
# Date and time at which the transaction was created
|
|
48
|
+
sig { returns(Time) }
|
|
49
|
+
attr_accessor :transaction_created_at
|
|
50
|
+
|
|
51
|
+
# A card transaction associated with a case
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
token: String,
|
|
55
|
+
account_token: String,
|
|
56
|
+
added_at: Time,
|
|
57
|
+
card_token: String,
|
|
58
|
+
transaction_created_at: Time,
|
|
59
|
+
category: Symbol
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# Globally unique identifier for the card transaction
|
|
64
|
+
token:,
|
|
65
|
+
# Token of the account the transaction belongs to
|
|
66
|
+
account_token:,
|
|
67
|
+
# Date and time at which the transaction was added to the case
|
|
68
|
+
added_at:,
|
|
69
|
+
# Token of the card the transaction was made on
|
|
70
|
+
card_token:,
|
|
71
|
+
# Date and time at which the transaction was created
|
|
72
|
+
transaction_created_at:,
|
|
73
|
+
category: :CARD
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
override.returns(
|
|
79
|
+
{
|
|
80
|
+
token: String,
|
|
81
|
+
account_token: String,
|
|
82
|
+
added_at: Time,
|
|
83
|
+
card_token: String,
|
|
84
|
+
category: Symbol,
|
|
85
|
+
transaction_created_at: Time
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
def to_hash
|
|
90
|
+
end
|
|
44
91
|
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
92
|
+
|
|
93
|
+
class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
94
|
+
OrHash =
|
|
95
|
+
T.type_alias do
|
|
96
|
+
T.any(
|
|
97
|
+
Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction,
|
|
98
|
+
Lithic::Internal::AnyHash
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Globally unique identifier for the payment transaction
|
|
103
|
+
sig { returns(String) }
|
|
104
|
+
attr_accessor :token
|
|
105
|
+
|
|
50
106
|
# Date and time at which the transaction was added to the case
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
107
|
+
sig { returns(Time) }
|
|
108
|
+
attr_accessor :added_at
|
|
109
|
+
|
|
110
|
+
sig { returns(Symbol) }
|
|
111
|
+
attr_accessor :category
|
|
112
|
+
|
|
113
|
+
# Token of the financial account the payment belongs to
|
|
114
|
+
sig { returns(String) }
|
|
115
|
+
attr_accessor :financial_account_token
|
|
116
|
+
|
|
54
117
|
# Date and time at which the transaction was created
|
|
55
|
-
|
|
56
|
-
|
|
118
|
+
sig { returns(Time) }
|
|
119
|
+
attr_accessor :transaction_created_at
|
|
120
|
+
|
|
121
|
+
# Token of the account the payment belongs to, if applicable
|
|
122
|
+
sig { returns(T.nilable(String)) }
|
|
123
|
+
attr_reader :account_token
|
|
124
|
+
|
|
125
|
+
sig { params(account_token: String).void }
|
|
126
|
+
attr_writer :account_token
|
|
127
|
+
|
|
128
|
+
# A payment (ACH) transaction associated with a case
|
|
129
|
+
sig do
|
|
130
|
+
params(
|
|
131
|
+
token: String,
|
|
132
|
+
added_at: Time,
|
|
133
|
+
financial_account_token: String,
|
|
134
|
+
transaction_created_at: Time,
|
|
135
|
+
account_token: String,
|
|
136
|
+
category: Symbol
|
|
137
|
+
).returns(T.attached_class)
|
|
138
|
+
end
|
|
139
|
+
def self.new(
|
|
140
|
+
# Globally unique identifier for the payment transaction
|
|
141
|
+
token:,
|
|
142
|
+
# Date and time at which the transaction was added to the case
|
|
143
|
+
added_at:,
|
|
144
|
+
# Token of the financial account the payment belongs to
|
|
145
|
+
financial_account_token:,
|
|
146
|
+
# Date and time at which the transaction was created
|
|
147
|
+
transaction_created_at:,
|
|
148
|
+
# Token of the account the payment belongs to, if applicable
|
|
149
|
+
account_token: nil,
|
|
150
|
+
category: :PAYMENT
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
override.returns(
|
|
156
|
+
{
|
|
157
|
+
token: String,
|
|
158
|
+
added_at: Time,
|
|
159
|
+
category: Symbol,
|
|
160
|
+
financial_account_token: String,
|
|
161
|
+
transaction_created_at: Time,
|
|
162
|
+
account_token: String
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
def to_hash
|
|
167
|
+
end
|
|
57
168
|
end
|
|
58
169
|
|
|
59
170
|
sig do
|
|
60
171
|
override.returns(
|
|
61
|
-
|
|
62
|
-
token: String,
|
|
63
|
-
account_token: String,
|
|
64
|
-
added_at: Time,
|
|
65
|
-
card_token: String,
|
|
66
|
-
transaction_created_at: Time
|
|
67
|
-
}
|
|
172
|
+
T::Array[Lithic::TransactionMonitoring::CaseTransaction::Variants]
|
|
68
173
|
)
|
|
69
174
|
end
|
|
70
|
-
def
|
|
175
|
+
def self.variants
|
|
71
176
|
end
|
|
72
177
|
end
|
|
73
178
|
end
|
|
@@ -2,40 +2,99 @@ module Lithic
|
|
|
2
2
|
module Models
|
|
3
3
|
module TransactionMonitoring
|
|
4
4
|
type case_transaction =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
card_token: String
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
5
|
+
Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction
|
|
6
|
+
| Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
|
|
7
|
+
|
|
8
|
+
module CaseTransaction
|
|
9
|
+
extend Lithic::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
type card_case_transaction =
|
|
12
|
+
{
|
|
13
|
+
token: String,
|
|
14
|
+
account_token: String,
|
|
15
|
+
added_at: Time,
|
|
16
|
+
card_token: String,
|
|
17
|
+
category: :CARD,
|
|
18
|
+
transaction_created_at: Time
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class CardCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor token: String
|
|
23
|
+
|
|
24
|
+
attr_accessor account_token: String
|
|
25
|
+
|
|
26
|
+
attr_accessor added_at: Time
|
|
27
|
+
|
|
28
|
+
attr_accessor card_token: String
|
|
29
|
+
|
|
30
|
+
attr_accessor category: :CARD
|
|
31
|
+
|
|
32
|
+
attr_accessor transaction_created_at: Time
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
token: String,
|
|
36
|
+
account_token: String,
|
|
37
|
+
added_at: Time,
|
|
38
|
+
card_token: String,
|
|
39
|
+
transaction_created_at: Time,
|
|
40
|
+
?category: :CARD
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
token: String,
|
|
45
|
+
account_token: String,
|
|
46
|
+
added_at: Time,
|
|
47
|
+
card_token: String,
|
|
48
|
+
category: :CARD,
|
|
49
|
+
transaction_created_at: Time
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
type payment_case_transaction =
|
|
54
|
+
{
|
|
55
|
+
token: String,
|
|
56
|
+
added_at: Time,
|
|
57
|
+
category: :PAYMENT,
|
|
58
|
+
financial_account_token: String,
|
|
59
|
+
transaction_created_at: Time,
|
|
60
|
+
account_token: String
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor token: String
|
|
65
|
+
|
|
66
|
+
attr_accessor added_at: Time
|
|
67
|
+
|
|
68
|
+
attr_accessor category: :PAYMENT
|
|
69
|
+
|
|
70
|
+
attr_accessor financial_account_token: String
|
|
71
|
+
|
|
72
|
+
attr_accessor transaction_created_at: Time
|
|
73
|
+
|
|
74
|
+
attr_reader account_token: String?
|
|
75
|
+
|
|
76
|
+
def account_token=: (String) -> String
|
|
77
|
+
|
|
78
|
+
def initialize: (
|
|
79
|
+
token: String,
|
|
80
|
+
added_at: Time,
|
|
81
|
+
financial_account_token: String,
|
|
82
|
+
transaction_created_at: Time,
|
|
83
|
+
?account_token: String,
|
|
84
|
+
?category: :PAYMENT
|
|
85
|
+
) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> {
|
|
88
|
+
token: String,
|
|
89
|
+
added_at: Time,
|
|
90
|
+
category: :PAYMENT,
|
|
91
|
+
financial_account_token: String,
|
|
92
|
+
transaction_created_at: Time,
|
|
93
|
+
account_token: String
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def self?.variants: -> ::Array[Lithic::Models::TransactionMonitoring::case_transaction]
|
|
39
98
|
end
|
|
40
99
|
end
|
|
41
100
|
end
|
|
@@ -57,7 +57,7 @@ module Lithic
|
|
|
57
57
|
?page_size: Integer,
|
|
58
58
|
?starting_after: String,
|
|
59
59
|
?request_options: Lithic::request_opts
|
|
60
|
-
) -> Lithic::Internal::CursorPage[Lithic::TransactionMonitoring::
|
|
60
|
+
) -> Lithic::Internal::CursorPage[Lithic::Models::TransactionMonitoring::case_transaction]
|
|
61
61
|
|
|
62
62
|
def retrieve_cards: (
|
|
63
63
|
String case_token,
|
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.18.
|
|
4
|
+
version: 0.18.1
|
|
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-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|