lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.40
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 +10 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account.rb +88 -1
- data/lib/lithic/models/account_update_params.rb +86 -1
- data/lib/lithic/models/aggregate_balance.rb +1 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +4 -10
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +238 -16
- data/lib/lithic/models/balance.rb +1 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- data/lib/lithic/models/card_create_params.rb +90 -1
- data/lib/lithic/models/card_program.rb +10 -1
- data/lib/lithic/models/card_update_params.rb +98 -1
- data/lib/lithic/models/cards/balance_list_response.rb +1 -0
- data/lib/lithic/models/external_resource.rb +34 -0
- data/lib/lithic/models/external_resource_type.rb +18 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
- data/lib/lithic/models/management_operation_create_params.rb +30 -1
- data/lib/lithic/models/management_operation_transaction.rb +22 -1
- data/lib/lithic/models/network_program.rb +41 -0
- data/lib/lithic/models/network_program_list_params.rb +43 -0
- data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
- data/lib/lithic/models/non_pci_card.rb +88 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/transaction.rb +31 -20
- data/lib/lithic/models.rb +10 -0
- data/lib/lithic/resources/accounts.rb +5 -1
- data/lib/lithic/resources/cards.rb +12 -2
- data/lib/lithic/resources/management_operations.rb +13 -1
- data/lib/lithic/resources/network_programs.rb +64 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +131 -0
- data/rbi/lithic/models/account_update_params.rbi +159 -0
- data/rbi/lithic/models/aggregate_balance.rbi +5 -0
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +6 -15
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
- data/rbi/lithic/models/balance.rbi +2 -0
- data/rbi/lithic/models/balance_list_params.rbi +5 -0
- data/rbi/lithic/models/card_create_params.rbi +190 -0
- data/rbi/lithic/models/card_program.rbi +13 -0
- data/rbi/lithic/models/card_update_params.rbi +168 -0
- data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/external_resource.rbi +57 -0
- data/rbi/lithic/models/external_resource_type.rbi +26 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +15 -0
- data/rbi/lithic/models/network_program.rbi +61 -0
- data/rbi/lithic/models/network_program_list_params.rbi +72 -0
- data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/non_pci_card.rbi +133 -3
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/transaction.rbi +23 -31
- data/rbi/lithic/models.rbi +10 -0
- data/rbi/lithic/resources/accounts.rbi +32 -0
- data/rbi/lithic/resources/cards.rbi +70 -0
- data/rbi/lithic/resources/management_operations.rbi +4 -0
- data/rbi/lithic/resources/network_programs.rbi +48 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account.rbs +41 -0
- data/sig/lithic/models/account_update_params.rbs +41 -0
- data/sig/lithic/models/aggregate_balance.rbs +2 -1
- data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
- data/sig/lithic/models/balance.rbs +2 -1
- data/sig/lithic/models/balance_list_params.rbs +2 -1
- data/sig/lithic/models/card_create_params.rbs +47 -0
- data/sig/lithic/models/card_program.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +55 -1
- data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
- data/sig/lithic/models/external_resource.rbs +32 -0
- data/sig/lithic/models/external_resource_type.rbs +16 -0
- data/sig/lithic/models/financial_account_list_params.rbs +2 -1
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
- data/sig/lithic/models/management_operation_create_params.rbs +20 -0
- data/sig/lithic/models/management_operation_transaction.rbs +5 -0
- data/sig/lithic/models/network_program.rbs +35 -0
- data/sig/lithic/models/network_program_list_params.rbs +38 -0
- data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
- data/sig/lithic/models/non_pci_card.rbs +55 -3
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +2 -6
- data/sig/lithic/models.rbs +10 -0
- data/sig/lithic/resources/accounts.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/management_operations.rbs +1 -0
- data/sig/lithic/resources/network_programs.rbs +19 -0
- metadata +20 -2
@@ -50,6 +50,24 @@ module Lithic
|
|
50
50
|
sig { params(memo: String).void }
|
51
51
|
attr_writer :memo
|
52
52
|
|
53
|
+
# What to do if the financial account is closed when posting an operation
|
54
|
+
sig do
|
55
|
+
returns(
|
56
|
+
T.nilable(
|
57
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::OrSymbol
|
58
|
+
)
|
59
|
+
)
|
60
|
+
end
|
61
|
+
attr_reader :on_closed_account
|
62
|
+
|
63
|
+
sig do
|
64
|
+
params(
|
65
|
+
on_closed_account:
|
66
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::OrSymbol
|
67
|
+
).void
|
68
|
+
end
|
69
|
+
attr_writer :on_closed_account
|
70
|
+
|
53
71
|
sig { returns(T.nilable(String)) }
|
54
72
|
attr_reader :subtype
|
55
73
|
|
@@ -74,6 +92,8 @@ module Lithic
|
|
74
92
|
financial_account_token: String,
|
75
93
|
token: String,
|
76
94
|
memo: String,
|
95
|
+
on_closed_account:
|
96
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::OrSymbol,
|
77
97
|
subtype: String,
|
78
98
|
user_defined_id: String,
|
79
99
|
request_options: Lithic::RequestOptions::OrHash
|
@@ -88,6 +108,8 @@ module Lithic
|
|
88
108
|
financial_account_token:,
|
89
109
|
token: nil,
|
90
110
|
memo: nil,
|
111
|
+
# What to do if the financial account is closed when posting an operation
|
112
|
+
on_closed_account: nil,
|
91
113
|
subtype: nil,
|
92
114
|
user_defined_id: nil,
|
93
115
|
request_options: {}
|
@@ -108,6 +130,8 @@ module Lithic
|
|
108
130
|
financial_account_token: String,
|
109
131
|
token: String,
|
110
132
|
memo: String,
|
133
|
+
on_closed_account:
|
134
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::OrSymbol,
|
111
135
|
subtype: String,
|
112
136
|
user_defined_id: String,
|
113
137
|
request_options: Lithic::RequestOptions
|
@@ -309,6 +333,41 @@ module Lithic
|
|
309
333
|
def self.values
|
310
334
|
end
|
311
335
|
end
|
336
|
+
|
337
|
+
# What to do if the financial account is closed when posting an operation
|
338
|
+
module OnClosedAccount
|
339
|
+
extend Lithic::Internal::Type::Enum
|
340
|
+
|
341
|
+
TaggedSymbol =
|
342
|
+
T.type_alias do
|
343
|
+
T.all(
|
344
|
+
Symbol,
|
345
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount
|
346
|
+
)
|
347
|
+
end
|
348
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
349
|
+
|
350
|
+
FAIL =
|
351
|
+
T.let(
|
352
|
+
:FAIL,
|
353
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::TaggedSymbol
|
354
|
+
)
|
355
|
+
USE_SUSPENSE =
|
356
|
+
T.let(
|
357
|
+
:USE_SUSPENSE,
|
358
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::TaggedSymbol
|
359
|
+
)
|
360
|
+
|
361
|
+
sig do
|
362
|
+
override.returns(
|
363
|
+
T::Array[
|
364
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::TaggedSymbol
|
365
|
+
]
|
366
|
+
)
|
367
|
+
end
|
368
|
+
def self.values
|
369
|
+
end
|
370
|
+
end
|
312
371
|
end
|
313
372
|
end
|
314
373
|
end
|
@@ -72,6 +72,17 @@ module Lithic
|
|
72
72
|
sig { returns(Time) }
|
73
73
|
attr_accessor :updated
|
74
74
|
|
75
|
+
# External resource associated with the management operation
|
76
|
+
sig { returns(T.nilable(Lithic::ExternalResource)) }
|
77
|
+
attr_reader :external_resource
|
78
|
+
|
79
|
+
sig do
|
80
|
+
params(
|
81
|
+
external_resource: T.nilable(Lithic::ExternalResource::OrHash)
|
82
|
+
).void
|
83
|
+
end
|
84
|
+
attr_writer :external_resource
|
85
|
+
|
75
86
|
sig { returns(T.nilable(String)) }
|
76
87
|
attr_reader :user_defined_id
|
77
88
|
|
@@ -98,6 +109,7 @@ module Lithic
|
|
98
109
|
Lithic::ManagementOperationTransaction::TransactionSeries::OrHash
|
99
110
|
),
|
100
111
|
updated: Time,
|
112
|
+
external_resource: T.nilable(Lithic::ExternalResource::OrHash),
|
101
113
|
user_defined_id: String
|
102
114
|
).returns(T.attached_class)
|
103
115
|
end
|
@@ -115,6 +127,8 @@ module Lithic
|
|
115
127
|
status:,
|
116
128
|
transaction_series:,
|
117
129
|
updated:,
|
130
|
+
# External resource associated with the management operation
|
131
|
+
external_resource: nil,
|
118
132
|
user_defined_id: nil
|
119
133
|
)
|
120
134
|
end
|
@@ -142,6 +156,7 @@ module Lithic
|
|
142
156
|
Lithic::ManagementOperationTransaction::TransactionSeries
|
143
157
|
),
|
144
158
|
updated: Time,
|
159
|
+
external_resource: T.nilable(Lithic::ExternalResource),
|
145
160
|
user_defined_id: String
|
146
161
|
}
|
147
162
|
)
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class NetworkProgram < Lithic::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(Lithic::NetworkProgram, Lithic::Internal::AnyHash)
|
9
|
+
end
|
10
|
+
|
11
|
+
# Lithic-generated unique identifier for the program
|
12
|
+
sig { returns(String) }
|
13
|
+
attr_accessor :token
|
14
|
+
|
15
|
+
# Network product ID associated with this program.
|
16
|
+
sig { returns(String) }
|
17
|
+
attr_accessor :default_product_code
|
18
|
+
|
19
|
+
# The name of the network program.
|
20
|
+
sig { returns(String) }
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# RPIN value assigned by the network.
|
24
|
+
sig { returns(String) }
|
25
|
+
attr_accessor :registered_program_identification_number
|
26
|
+
|
27
|
+
sig do
|
28
|
+
params(
|
29
|
+
token: String,
|
30
|
+
default_product_code: String,
|
31
|
+
name: String,
|
32
|
+
registered_program_identification_number: String
|
33
|
+
).returns(T.attached_class)
|
34
|
+
end
|
35
|
+
def self.new(
|
36
|
+
# Lithic-generated unique identifier for the program
|
37
|
+
token:,
|
38
|
+
# Network product ID associated with this program.
|
39
|
+
default_product_code:,
|
40
|
+
# The name of the network program.
|
41
|
+
name:,
|
42
|
+
# RPIN value assigned by the network.
|
43
|
+
registered_program_identification_number:
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
sig do
|
48
|
+
override.returns(
|
49
|
+
{
|
50
|
+
token: String,
|
51
|
+
default_product_code: String,
|
52
|
+
name: String,
|
53
|
+
registered_program_identification_number: String
|
54
|
+
}
|
55
|
+
)
|
56
|
+
end
|
57
|
+
def to_hash
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class NetworkProgramListParams < Lithic::Internal::Type::BaseModel
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Lithic::NetworkProgramListParams, Lithic::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
15
|
+
# will be included. UTC time zone.
|
16
|
+
sig { returns(T.nilable(Time)) }
|
17
|
+
attr_reader :begin_
|
18
|
+
|
19
|
+
sig { params(begin_: Time).void }
|
20
|
+
attr_writer :begin_
|
21
|
+
|
22
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
23
|
+
# will be included. UTC time zone.
|
24
|
+
sig { returns(T.nilable(Time)) }
|
25
|
+
attr_reader :end_
|
26
|
+
|
27
|
+
sig { params(end_: Time).void }
|
28
|
+
attr_writer :end_
|
29
|
+
|
30
|
+
# Page size (for pagination).
|
31
|
+
sig { returns(T.nilable(Integer)) }
|
32
|
+
attr_reader :page_size
|
33
|
+
|
34
|
+
sig { params(page_size: Integer).void }
|
35
|
+
attr_writer :page_size
|
36
|
+
|
37
|
+
sig do
|
38
|
+
params(
|
39
|
+
begin_: Time,
|
40
|
+
end_: Time,
|
41
|
+
page_size: Integer,
|
42
|
+
request_options: Lithic::RequestOptions::OrHash
|
43
|
+
).returns(T.attached_class)
|
44
|
+
end
|
45
|
+
def self.new(
|
46
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
47
|
+
# will be included. UTC time zone.
|
48
|
+
begin_: nil,
|
49
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
50
|
+
# will be included. UTC time zone.
|
51
|
+
end_: nil,
|
52
|
+
# Page size (for pagination).
|
53
|
+
page_size: nil,
|
54
|
+
request_options: {}
|
55
|
+
)
|
56
|
+
end
|
57
|
+
|
58
|
+
sig do
|
59
|
+
override.returns(
|
60
|
+
{
|
61
|
+
begin_: Time,
|
62
|
+
end_: Time,
|
63
|
+
page_size: Integer,
|
64
|
+
request_options: Lithic::RequestOptions
|
65
|
+
}
|
66
|
+
)
|
67
|
+
end
|
68
|
+
def to_hash
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Lithic::NetworkProgramRetrieveParams, Lithic::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
sig do
|
15
|
+
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
16
|
+
T.attached_class
|
17
|
+
)
|
18
|
+
end
|
19
|
+
def self.new(request_options: {})
|
20
|
+
end
|
21
|
+
|
22
|
+
sig { override.returns({ request_options: Lithic::RequestOptions }) }
|
23
|
+
def to_hash
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -106,6 +106,13 @@ module Lithic
|
|
106
106
|
sig { params(cardholder_currency: String).void }
|
107
107
|
attr_writer :cardholder_currency
|
108
108
|
|
109
|
+
# Additional context or information related to the card.
|
110
|
+
sig { returns(T.nilable(String)) }
|
111
|
+
attr_reader :comment
|
112
|
+
|
113
|
+
sig { params(comment: String).void }
|
114
|
+
attr_writer :comment
|
115
|
+
|
109
116
|
# Specifies the digital card art to be displayed in the user's digital wallet
|
110
117
|
# after tokenization. This artwork must be approved by Mastercard and configured
|
111
118
|
# by Lithic to use.
|
@@ -143,6 +150,12 @@ module Lithic
|
|
143
150
|
sig { params(memo: String).void }
|
144
151
|
attr_writer :memo
|
145
152
|
|
153
|
+
# Globally unique identifier for the card's network program. Null if the card is
|
154
|
+
# not associated with a network program. Currently applicable to Visa cards
|
155
|
+
# participating in Account Level Management only
|
156
|
+
sig { returns(T.nilable(String)) }
|
157
|
+
attr_accessor :network_program_token
|
158
|
+
|
146
159
|
# Indicates if there are offline PIN changes pending card interaction with an
|
147
160
|
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
148
161
|
# only to cards issued in markets supporting offline PINs.
|
@@ -166,6 +179,32 @@ module Lithic
|
|
166
179
|
sig { returns(T.nilable(String)) }
|
167
180
|
attr_accessor :replacement_for
|
168
181
|
|
182
|
+
# Card state substatus values: _ `LOST` - The physical card is no longer in the
|
183
|
+
# cardholder's possession due to being lost or never received by the cardholder. _
|
184
|
+
# `COMPROMISED` - Card information has been exposed, potentially leading to
|
185
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
186
|
+
# data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
|
187
|
+
# as having chip failures or a demagnetized magnetic stripe. _
|
188
|
+
# `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
189
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
190
|
+
# or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
|
191
|
+
# reasons unrelated to fraud or damage, such as account inactivity, product or
|
192
|
+
# policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
|
193
|
+
# transaction activity for a specified period, applicable to statuses like
|
194
|
+
# `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
|
195
|
+
# suspicious transactions or activities that require review. This can involve
|
196
|
+
# prompting the cardholder to confirm legitimate use or report confirmed fraud. _
|
197
|
+
# `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
198
|
+
# review. _ `EXPIRED` - The card has expired and has been closed without being
|
199
|
+
# reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
|
200
|
+
# has been returned. \* `OTHER` - The reason for the status does not fall into any
|
201
|
+
# of the above categories. A comment can be provided to specify the reason.
|
202
|
+
sig { returns(T.nilable(Lithic::NonPCICard::Substatus::TaggedSymbol)) }
|
203
|
+
attr_reader :substatus
|
204
|
+
|
205
|
+
sig { params(substatus: Lithic::NonPCICard::Substatus::OrSymbol).void }
|
206
|
+
attr_writer :substatus
|
207
|
+
|
169
208
|
# Card details without PCI information
|
170
209
|
sig do
|
171
210
|
params(
|
@@ -182,14 +221,17 @@ module Lithic
|
|
182
221
|
type: Lithic::NonPCICard::Type::OrSymbol,
|
183
222
|
auth_rule_tokens: T::Array[String],
|
184
223
|
cardholder_currency: String,
|
224
|
+
comment: String,
|
185
225
|
digital_card_art_token: String,
|
186
226
|
exp_month: String,
|
187
227
|
exp_year: String,
|
188
228
|
hostname: String,
|
189
229
|
memo: String,
|
230
|
+
network_program_token: T.nilable(String),
|
190
231
|
pending_commands: T::Array[String],
|
191
232
|
product_id: String,
|
192
|
-
replacement_for: T.nilable(String)
|
233
|
+
replacement_for: T.nilable(String),
|
234
|
+
substatus: Lithic::NonPCICard::Substatus::OrSymbol
|
193
235
|
).returns(T.attached_class)
|
194
236
|
end
|
195
237
|
def self.new(
|
@@ -258,6 +300,8 @@ module Lithic
|
|
258
300
|
auth_rule_tokens: nil,
|
259
301
|
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
260
302
|
cardholder_currency: nil,
|
303
|
+
# Additional context or information related to the card.
|
304
|
+
comment: nil,
|
261
305
|
# Specifies the digital card art to be displayed in the user's digital wallet
|
262
306
|
# after tokenization. This artwork must be approved by Mastercard and configured
|
263
307
|
# by Lithic to use.
|
@@ -270,6 +314,10 @@ module Lithic
|
|
270
314
|
hostname: nil,
|
271
315
|
# Friendly name to identify the card.
|
272
316
|
memo: nil,
|
317
|
+
# Globally unique identifier for the card's network program. Null if the card is
|
318
|
+
# not associated with a network program. Currently applicable to Visa cards
|
319
|
+
# participating in Account Level Management only
|
320
|
+
network_program_token: nil,
|
273
321
|
# Indicates if there are offline PIN changes pending card interaction with an
|
274
322
|
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
275
323
|
# only to cards issued in markets supporting offline PINs.
|
@@ -280,7 +328,28 @@ module Lithic
|
|
280
328
|
product_id: nil,
|
281
329
|
# If the card is a replacement for another card, the globally unique identifier
|
282
330
|
# for the card that was replaced.
|
283
|
-
replacement_for: nil
|
331
|
+
replacement_for: nil,
|
332
|
+
# Card state substatus values: _ `LOST` - The physical card is no longer in the
|
333
|
+
# cardholder's possession due to being lost or never received by the cardholder. _
|
334
|
+
# `COMPROMISED` - Card information has been exposed, potentially leading to
|
335
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
336
|
+
# data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
|
337
|
+
# as having chip failures or a demagnetized magnetic stripe. _
|
338
|
+
# `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
339
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
340
|
+
# or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
|
341
|
+
# reasons unrelated to fraud or damage, such as account inactivity, product or
|
342
|
+
# policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
|
343
|
+
# transaction activity for a specified period, applicable to statuses like
|
344
|
+
# `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
|
345
|
+
# suspicious transactions or activities that require review. This can involve
|
346
|
+
# prompting the cardholder to confirm legitimate use or report confirmed fraud. _
|
347
|
+
# `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
348
|
+
# review. _ `EXPIRED` - The card has expired and has been closed without being
|
349
|
+
# reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
|
350
|
+
# has been returned. \* `OTHER` - The reason for the status does not fall into any
|
351
|
+
# of the above categories. A comment can be provided to specify the reason.
|
352
|
+
substatus: nil
|
284
353
|
)
|
285
354
|
end
|
286
355
|
|
@@ -300,14 +369,17 @@ module Lithic
|
|
300
369
|
type: Lithic::NonPCICard::Type::TaggedSymbol,
|
301
370
|
auth_rule_tokens: T::Array[String],
|
302
371
|
cardholder_currency: String,
|
372
|
+
comment: String,
|
303
373
|
digital_card_art_token: String,
|
304
374
|
exp_month: String,
|
305
375
|
exp_year: String,
|
306
376
|
hostname: String,
|
307
377
|
memo: String,
|
378
|
+
network_program_token: T.nilable(String),
|
308
379
|
pending_commands: T::Array[String],
|
309
380
|
product_id: String,
|
310
|
-
replacement_for: T.nilable(String)
|
381
|
+
replacement_for: T.nilable(String),
|
382
|
+
substatus: Lithic::NonPCICard::Substatus::TaggedSymbol
|
311
383
|
}
|
312
384
|
)
|
313
385
|
end
|
@@ -558,6 +630,64 @@ module Lithic
|
|
558
630
|
def self.values
|
559
631
|
end
|
560
632
|
end
|
633
|
+
|
634
|
+
# Card state substatus values: _ `LOST` - The physical card is no longer in the
|
635
|
+
# cardholder's possession due to being lost or never received by the cardholder. _
|
636
|
+
# `COMPROMISED` - Card information has been exposed, potentially leading to
|
637
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
638
|
+
# data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
|
639
|
+
# as having chip failures or a demagnetized magnetic stripe. _
|
640
|
+
# `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
641
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
642
|
+
# or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
|
643
|
+
# reasons unrelated to fraud or damage, such as account inactivity, product or
|
644
|
+
# policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
|
645
|
+
# transaction activity for a specified period, applicable to statuses like
|
646
|
+
# `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
|
647
|
+
# suspicious transactions or activities that require review. This can involve
|
648
|
+
# prompting the cardholder to confirm legitimate use or report confirmed fraud. _
|
649
|
+
# `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
650
|
+
# review. _ `EXPIRED` - The card has expired and has been closed without being
|
651
|
+
# reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
|
652
|
+
# has been returned. \* `OTHER` - The reason for the status does not fall into any
|
653
|
+
# of the above categories. A comment can be provided to specify the reason.
|
654
|
+
module Substatus
|
655
|
+
extend Lithic::Internal::Type::Enum
|
656
|
+
|
657
|
+
TaggedSymbol =
|
658
|
+
T.type_alias { T.all(Symbol, Lithic::NonPCICard::Substatus) }
|
659
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
660
|
+
|
661
|
+
LOST = T.let(:LOST, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
662
|
+
COMPROMISED =
|
663
|
+
T.let(:COMPROMISED, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
664
|
+
DAMAGED = T.let(:DAMAGED, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
665
|
+
END_USER_REQUEST =
|
666
|
+
T.let(:END_USER_REQUEST, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
667
|
+
ISSUER_REQUEST =
|
668
|
+
T.let(:ISSUER_REQUEST, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
669
|
+
NOT_ACTIVE =
|
670
|
+
T.let(:NOT_ACTIVE, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
671
|
+
SUSPICIOUS_ACTIVITY =
|
672
|
+
T.let(
|
673
|
+
:SUSPICIOUS_ACTIVITY,
|
674
|
+
Lithic::NonPCICard::Substatus::TaggedSymbol
|
675
|
+
)
|
676
|
+
INTERNAL_REVIEW =
|
677
|
+
T.let(:INTERNAL_REVIEW, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
678
|
+
EXPIRED = T.let(:EXPIRED, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
679
|
+
UNDELIVERABLE =
|
680
|
+
T.let(:UNDELIVERABLE, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
681
|
+
OTHER = T.let(:OTHER, Lithic::NonPCICard::Substatus::TaggedSymbol)
|
682
|
+
|
683
|
+
sig do
|
684
|
+
override.returns(
|
685
|
+
T::Array[Lithic::NonPCICard::Substatus::TaggedSymbol]
|
686
|
+
)
|
687
|
+
end
|
688
|
+
def self.values
|
689
|
+
end
|
690
|
+
end
|
561
691
|
end
|
562
692
|
end
|
563
693
|
end
|
@@ -110,6 +110,11 @@ module Lithic
|
|
110
110
|
:ACH_RECEIPT_SETTLED,
|
111
111
|
Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
|
112
112
|
)
|
113
|
+
ACH_RECEIPT_RELEASED =
|
114
|
+
T.let(
|
115
|
+
:ACH_RECEIPT_RELEASED,
|
116
|
+
Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
|
117
|
+
)
|
113
118
|
ACH_RETURN_INITIATED =
|
114
119
|
T.let(
|
115
120
|
:ACH_RETURN_INITIATED,
|
@@ -523,7 +523,8 @@ module Lithic
|
|
523
523
|
sig { returns(T.nilable(String)) }
|
524
524
|
attr_accessor :three_ds_version
|
525
525
|
|
526
|
-
# Whether an acquirer exemption applied to the transaction.
|
526
|
+
# Whether an acquirer exemption applied to the transaction. Not currently
|
527
|
+
# populated and will be removed in the future.
|
527
528
|
sig do
|
528
529
|
returns(
|
529
530
|
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
@@ -531,7 +532,7 @@ module Lithic
|
|
531
532
|
end
|
532
533
|
attr_accessor :acquirer_exemption
|
533
534
|
|
534
|
-
# Indicates
|
535
|
+
# Indicates the outcome of the 3DS authentication process.
|
535
536
|
sig do
|
536
537
|
returns(
|
537
538
|
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
@@ -550,12 +551,10 @@ module Lithic
|
|
550
551
|
# Indicates whether chargeback liability shift applies to the transaction.
|
551
552
|
# Possible enum values:
|
552
553
|
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
# * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
|
558
|
-
#
|
554
|
+
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
555
|
+
# Secure flow, chargeback liability shift applies.
|
556
|
+
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
557
|
+
# merchant is liable.
|
559
558
|
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
560
559
|
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
561
560
|
# applies.
|
@@ -632,21 +631,20 @@ module Lithic
|
|
632
631
|
def self.new(
|
633
632
|
# The 3DS version used for the authentication
|
634
633
|
three_ds_version:,
|
635
|
-
# Whether an acquirer exemption applied to the transaction.
|
634
|
+
# Whether an acquirer exemption applied to the transaction. Not currently
|
635
|
+
# populated and will be removed in the future.
|
636
636
|
acquirer_exemption:,
|
637
|
-
# Indicates
|
637
|
+
# Indicates the outcome of the 3DS authentication process.
|
638
638
|
authentication_result:,
|
639
639
|
# Indicates which party made the 3DS authentication decision.
|
640
640
|
decision_made_by:,
|
641
641
|
# Indicates whether chargeback liability shift applies to the transaction.
|
642
642
|
# Possible enum values:
|
643
643
|
#
|
644
|
-
#
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
# * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
|
649
|
-
#
|
644
|
+
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
645
|
+
# Secure flow, chargeback liability shift applies.
|
646
|
+
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
647
|
+
# merchant is liable.
|
650
648
|
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
651
649
|
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
652
650
|
# applies.
|
@@ -692,7 +690,8 @@ module Lithic
|
|
692
690
|
def to_hash
|
693
691
|
end
|
694
692
|
|
695
|
-
# Whether an acquirer exemption applied to the transaction.
|
693
|
+
# Whether an acquirer exemption applied to the transaction. Not currently
|
694
|
+
# populated and will be removed in the future.
|
696
695
|
module AcquirerExemption
|
697
696
|
extend Lithic::Internal::Type::Enum
|
698
697
|
|
@@ -757,7 +756,7 @@ module Lithic
|
|
757
756
|
end
|
758
757
|
end
|
759
758
|
|
760
|
-
# Indicates
|
759
|
+
# Indicates the outcome of the 3DS authentication process.
|
761
760
|
module AuthenticationResult
|
762
761
|
extend Lithic::Internal::Type::Enum
|
763
762
|
|
@@ -860,12 +859,10 @@ module Lithic
|
|
860
859
|
# Indicates whether chargeback liability shift applies to the transaction.
|
861
860
|
# Possible enum values:
|
862
861
|
#
|
863
|
-
#
|
864
|
-
#
|
865
|
-
#
|
866
|
-
#
|
867
|
-
# * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
|
868
|
-
#
|
862
|
+
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
863
|
+
# Secure flow, chargeback liability shift applies.
|
864
|
+
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
865
|
+
# merchant is liable.
|
869
866
|
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
870
867
|
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
871
868
|
# applies.
|
@@ -886,9 +883,9 @@ module Lithic
|
|
886
883
|
:"3DS_AUTHENTICATED",
|
887
884
|
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
888
885
|
)
|
889
|
-
|
886
|
+
TOKEN_AUTHENTICATED =
|
890
887
|
T.let(
|
891
|
-
:
|
888
|
+
:TOKEN_AUTHENTICATED,
|
892
889
|
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
893
890
|
)
|
894
891
|
NONE =
|
@@ -896,11 +893,6 @@ module Lithic
|
|
896
893
|
:NONE,
|
897
894
|
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
898
895
|
)
|
899
|
-
TOKEN_AUTHENTICATED =
|
900
|
-
T.let(
|
901
|
-
:TOKEN_AUTHENTICATED,
|
902
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
903
|
-
)
|
904
896
|
|
905
897
|
sig do
|
906
898
|
override.returns(
|
data/rbi/lithic/models.rbi
CHANGED
@@ -199,6 +199,10 @@ module Lithic
|
|
199
199
|
|
200
200
|
ExternalPaymentSettleParams = Lithic::Models::ExternalPaymentSettleParams
|
201
201
|
|
202
|
+
ExternalResource = Lithic::Models::ExternalResource
|
203
|
+
|
204
|
+
ExternalResourceType = Lithic::Models::ExternalResourceType
|
205
|
+
|
202
206
|
FinancialAccount = Lithic::Models::FinancialAccount
|
203
207
|
|
204
208
|
FinancialAccountCreateParams = Lithic::Models::FinancialAccountCreateParams
|
@@ -255,6 +259,12 @@ module Lithic
|
|
255
259
|
|
256
260
|
MessageAttempt = Lithic::Models::MessageAttempt
|
257
261
|
|
262
|
+
NetworkProgram = Lithic::Models::NetworkProgram
|
263
|
+
|
264
|
+
NetworkProgramListParams = Lithic::Models::NetworkProgramListParams
|
265
|
+
|
266
|
+
NetworkProgramRetrieveParams = Lithic::Models::NetworkProgramRetrieveParams
|
267
|
+
|
258
268
|
NonPCICard = Lithic::Models::NonPCICard
|
259
269
|
|
260
270
|
OwnerType = Lithic::Models::OwnerType
|