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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a80dc483dcaf7f1447621887d20f136a834384e3deaf657b82c4f7c77e8b6d26
4
- data.tar.gz: c70af03570736f72a214cbb4bbeeae2a457f74d940b52fd1deb048c5e6b10203
3
+ metadata.gz: 39c91f51cf5bdeac0ea066eb62ca454e3617be091bf90fbd2dc1a7880341dced
4
+ data.tar.gz: 70b13d4f29b3fe30a7ab75fc1d6a377cc15e557207918dacfe648eb186ec43dc
5
5
  SHA512:
6
- metadata.gz: 7237ea1d42e1688989438721062d117dd676247fee14cbc782589079a83297ac9139914e669e6201124a87d8d0462b730afa46ff534ecf0c9449b761fcacc844
7
- data.tar.gz: 93a8e906edb72f6bf9d1f95b8bb1e355da3383448bc3c1b73ee6f2449172ca864903f5d19f22ac7eb2028ea8d50599a00854ed243edf6836e6422fc03fdaa694
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
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "lithic", "~> 0.18.0"
27
+ gem "lithic", "~> 0.18.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -6,28 +6,14 @@ module Lithic
6
6
  # @api private
7
7
  #
8
8
  # @example
9
- # # `account_activity_list_response` is a `Lithic::Models::AccountActivityListResponse`
10
- # case account_activity_list_response
11
- # when Lithic::Models::AccountActivityListResponse::Internal
12
- # puts(account_activity_list_response.token)
13
- # when Lithic::BookTransferResponse
14
- # puts(account_activity_list_response.category)
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(account_activity_list_response)
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 portion of the transaction requested as cash back by the cardholder, and
72
- # does not include any acquirer fees. The amount field includes the purchase
73
- # amount, the requested cash back amount, and any acquirer fees.
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 back was requested, the value of this field will be 0, and the field
76
- # will always be present.
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 portion of the transaction requested as cash back by the cardholder, and doe
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
- class CaseTransaction < Lithic::Internal::Type::BaseModel
8
- # @!attribute token
9
- # Globally unique identifier for the transaction
10
- #
11
- # @return [String]
12
- required :token, String
13
-
14
- # @!attribute account_token
15
- # Token of the account the transaction belongs to
16
- #
17
- # @return [String]
18
- required :account_token, String
19
-
20
- # @!attribute added_at
21
- # Date and time at which the transaction was added to the case
22
- #
23
- # @return [Time]
24
- required :added_at, Time
25
-
26
- # @!attribute card_token
27
- # Token of the card the transaction was made on
28
- #
29
- # @return [String]
30
- required :card_token, String
31
-
32
- # @!attribute transaction_created_at
33
- # Date and time at which the transaction was created
34
- #
35
- # @return [Time]
36
- required :transaction_created_at, Time
37
-
38
- # @!method initialize(token:, account_token:, added_at:, card_token:, transaction_created_at:)
39
- # A single transaction associated with a case
40
- #
41
- # @param token [String] Globally unique identifier for the transaction
42
- #
43
- # @param account_token [String] Token of the account the transaction belongs to
44
- #
45
- # @param added_at [Time] Date and time at which the transaction was added to the case
46
- #
47
- # @param card_token [String] Token of the card the transaction was made on
48
- #
49
- # @param transaction_created_at [Time] Date and time at which the transaction was created
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 = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.18.0"
4
+ VERSION = "0.18.1"
5
5
  end
@@ -59,12 +59,13 @@ module Lithic
59
59
  sig { returns(String) }
60
60
  attr_accessor :cardholder_currency
61
61
 
62
- # The portion of the transaction requested as cash back by the cardholder, and
63
- # does not include any acquirer fees. The amount field includes the purchase
64
- # amount, the requested cash back amount, and any acquirer fees.
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 back was requested, the value of this field will be 0, and the field
67
- # will always be present.
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 portion of the transaction requested as cash back by the cardholder, and
332
- # does not include any acquirer fees. The amount field includes the purchase
333
- # amount, the requested cash back amount, and any acquirer fees.
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 back was requested, the value of this field will be 0, and the field
336
- # will always be present.
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
- class CaseTransaction < Lithic::Internal::Type::BaseModel
7
- OrHash =
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::Internal::AnyHash
14
+ Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction,
15
+ Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
12
16
  )
13
17
  end
14
18
 
15
- # Globally unique identifier for the transaction
16
- sig { returns(String) }
17
- attr_accessor :token
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
- # Token of the account the transaction belongs to
20
- sig { returns(String) }
21
- attr_accessor :account_token
32
+ # Token of the account the transaction belongs to
33
+ sig { returns(String) }
34
+ attr_accessor :account_token
22
35
 
23
- # Date and time at which the transaction was added to the case
24
- sig { returns(Time) }
25
- attr_accessor :added_at
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
- # Token of the card the transaction was made on
28
- sig { returns(String) }
29
- attr_accessor :card_token
40
+ # Token of the card the transaction was made on
41
+ sig { returns(String) }
42
+ attr_accessor :card_token
30
43
 
31
- # Date and time at which the transaction was created
32
- sig { returns(Time) }
33
- attr_accessor :transaction_created_at
44
+ sig { returns(Symbol) }
45
+ attr_accessor :category
34
46
 
35
- # A single transaction associated with a case
36
- sig do
37
- params(
38
- token: String,
39
- account_token: String,
40
- added_at: Time,
41
- card_token: String,
42
- transaction_created_at: Time
43
- ).returns(T.attached_class)
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
- def self.new(
46
- # Globally unique identifier for the transaction
47
- token:,
48
- # Token of the account the transaction belongs to
49
- account_token:,
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
- added_at:,
52
- # Token of the card the transaction was made on
53
- card_token:,
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
- transaction_created_at:
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 to_hash
175
+ def self.variants
71
176
  end
72
177
  end
73
178
  end
@@ -187,7 +187,7 @@ module Lithic
187
187
  request_options: Lithic::RequestOptions::OrHash
188
188
  ).returns(
189
189
  Lithic::Internal::CursorPage[
190
- Lithic::TransactionMonitoring::CaseTransaction
190
+ Lithic::TransactionMonitoring::CaseTransaction::Variants
191
191
  ]
192
192
  )
193
193
  end
@@ -2,40 +2,99 @@ module Lithic
2
2
  module Models
3
3
  module TransactionMonitoring
4
4
  type case_transaction =
5
- {
6
- token: String,
7
- account_token: String,
8
- added_at: Time,
9
- card_token: String,
10
- transaction_created_at: Time
11
- }
12
-
13
- class CaseTransaction < Lithic::Internal::Type::BaseModel
14
- attr_accessor token: String
15
-
16
- attr_accessor account_token: String
17
-
18
- attr_accessor added_at: Time
19
-
20
- attr_accessor card_token: String
21
-
22
- attr_accessor transaction_created_at: Time
23
-
24
- def initialize: (
25
- token: String,
26
- account_token: String,
27
- added_at: Time,
28
- card_token: String,
29
- transaction_created_at: Time
30
- ) -> void
31
-
32
- def to_hash: -> {
33
- token: String,
34
- account_token: String,
35
- added_at: Time,
36
- card_token: String,
37
- transaction_created_at: Time
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::CaseTransaction]
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.0
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-06-23 00:00:00.000000000 Z
11
+ date: 2026-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi