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
@@ -108,6 +108,13 @@ module Lithic
|
|
108
108
|
# @return [String, nil]
|
109
109
|
optional :replacement_account_token, String
|
110
110
|
|
111
|
+
# @!attribute replacement_comment
|
112
|
+
# Additional context or information related to the card that this card will
|
113
|
+
# replace.
|
114
|
+
#
|
115
|
+
# @return [String, nil]
|
116
|
+
optional :replacement_comment, String
|
117
|
+
|
111
118
|
# @!attribute replacement_for
|
112
119
|
# Globally unique identifier for the card that this card will replace. If the card
|
113
120
|
# type is `PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is
|
@@ -116,6 +123,38 @@ module Lithic
|
|
116
123
|
# @return [String, nil]
|
117
124
|
optional :replacement_for, String
|
118
125
|
|
126
|
+
# @!attribute replacement_substatus
|
127
|
+
# Card state substatus values for the card that this card will replace:
|
128
|
+
#
|
129
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
130
|
+
# being lost or never received by the cardholder.
|
131
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
132
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
133
|
+
# data breaches.
|
134
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
135
|
+
# failures or a demagnetized magnetic stripe.
|
136
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
137
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
138
|
+
# or closing the account.
|
139
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
140
|
+
# or damage, such as account inactivity, product or policy changes, or
|
141
|
+
# technology upgrades.
|
142
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
143
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
144
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
145
|
+
# activities that require review. This can involve prompting the cardholder to
|
146
|
+
# confirm legitimate use or report confirmed fraud.
|
147
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
148
|
+
# review.
|
149
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
150
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
151
|
+
# returned.
|
152
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
153
|
+
# categories. A comment should be provided to specify the reason.
|
154
|
+
#
|
155
|
+
# @return [Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus, nil]
|
156
|
+
optional :replacement_substatus, enum: -> { Lithic::CardCreateParams::ReplacementSubstatus }
|
157
|
+
|
119
158
|
# @!attribute shipping_address
|
120
159
|
#
|
121
160
|
# @return [Lithic::Models::ShippingAddress, nil]
|
@@ -178,7 +217,7 @@ module Lithic
|
|
178
217
|
# @return [Symbol, Lithic::Models::CardCreateParams::State, nil]
|
179
218
|
optional :state, enum: -> { Lithic::CardCreateParams::State }
|
180
219
|
|
181
|
-
# @!method initialize(type:, account_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_for: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
220
|
+
# @!method initialize(type:, account_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
182
221
|
# Some parameter documentations has been truncated, see
|
183
222
|
# {Lithic::Models::CardCreateParams} for more details.
|
184
223
|
#
|
@@ -204,8 +243,12 @@ module Lithic
|
|
204
243
|
#
|
205
244
|
# @param replacement_account_token [String] Restricted field limited to select use cases. Lithic will reach out directly if
|
206
245
|
#
|
246
|
+
# @param replacement_comment [String] Additional context or information related to the card that this card will replac
|
247
|
+
#
|
207
248
|
# @param replacement_for [String] Globally unique identifier for the card that this card will replace. If the card
|
208
249
|
#
|
250
|
+
# @param replacement_substatus [Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus] Card state substatus values for the card that this card will replace:
|
251
|
+
#
|
209
252
|
# @param shipping_address [Lithic::Models::ShippingAddress]
|
210
253
|
#
|
211
254
|
# @param shipping_method [Symbol, Lithic::Models::CardCreateParams::ShippingMethod] Shipping method for the card. Only applies to cards of type PHYSICAL.
|
@@ -248,6 +291,52 @@ module Lithic
|
|
248
291
|
# @return [Array<Symbol>]
|
249
292
|
end
|
250
293
|
|
294
|
+
# Card state substatus values for the card that this card will replace:
|
295
|
+
#
|
296
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
297
|
+
# being lost or never received by the cardholder.
|
298
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
299
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
300
|
+
# data breaches.
|
301
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
302
|
+
# failures or a demagnetized magnetic stripe.
|
303
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
304
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
305
|
+
# or closing the account.
|
306
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
307
|
+
# or damage, such as account inactivity, product or policy changes, or
|
308
|
+
# technology upgrades.
|
309
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
310
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
311
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
312
|
+
# activities that require review. This can involve prompting the cardholder to
|
313
|
+
# confirm legitimate use or report confirmed fraud.
|
314
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
315
|
+
# review.
|
316
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
317
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
318
|
+
# returned.
|
319
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
320
|
+
# categories. A comment should be provided to specify the reason.
|
321
|
+
module ReplacementSubstatus
|
322
|
+
extend Lithic::Internal::Type::Enum
|
323
|
+
|
324
|
+
LOST = :LOST
|
325
|
+
COMPROMISED = :COMPROMISED
|
326
|
+
DAMAGED = :DAMAGED
|
327
|
+
END_USER_REQUEST = :END_USER_REQUEST
|
328
|
+
ISSUER_REQUEST = :ISSUER_REQUEST
|
329
|
+
NOT_ACTIVE = :NOT_ACTIVE
|
330
|
+
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
|
331
|
+
INTERNAL_REVIEW = :INTERNAL_REVIEW
|
332
|
+
EXPIRED = :EXPIRED
|
333
|
+
UNDELIVERABLE = :UNDELIVERABLE
|
334
|
+
OTHER = :OTHER
|
335
|
+
|
336
|
+
# @!method self.values
|
337
|
+
# @return [Array<Symbol>]
|
338
|
+
end
|
339
|
+
|
251
340
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
252
341
|
# options besides `STANDARD` require additional permissions.
|
253
342
|
#
|
@@ -34,6 +34,13 @@ module Lithic
|
|
34
34
|
# @return [String]
|
35
35
|
required :pan_range_start, String
|
36
36
|
|
37
|
+
# @!attribute account_level_management_enabled
|
38
|
+
# Whether the card program is participating in Account Level Management. Currently
|
39
|
+
# applicable to Visa card programs only.
|
40
|
+
#
|
41
|
+
# @return [Boolean, nil]
|
42
|
+
optional :account_level_management_enabled, Lithic::Internal::Type::Boolean
|
43
|
+
|
37
44
|
# @!attribute cardholder_currency
|
38
45
|
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
39
46
|
#
|
@@ -47,7 +54,7 @@ module Lithic
|
|
47
54
|
# @return [Array<String>, nil]
|
48
55
|
optional :settlement_currencies, Lithic::Internal::Type::ArrayOf[String]
|
49
56
|
|
50
|
-
# @!method initialize(token:, created:, name:, pan_range_end:, pan_range_start:, cardholder_currency: nil, settlement_currencies: nil)
|
57
|
+
# @!method initialize(token:, created:, name:, pan_range_end:, pan_range_start:, account_level_management_enabled: nil, cardholder_currency: nil, settlement_currencies: nil)
|
51
58
|
# Some parameter documentations has been truncated, see
|
52
59
|
# {Lithic::Models::CardProgram} for more details.
|
53
60
|
#
|
@@ -61,6 +68,8 @@ module Lithic
|
|
61
68
|
#
|
62
69
|
# @param pan_range_start [String] The first digits of the card number that this card program starts with.
|
63
70
|
#
|
71
|
+
# @param account_level_management_enabled [Boolean] Whether the card program is participating in Account Level Management. Currently
|
72
|
+
#
|
64
73
|
# @param cardholder_currency [String] 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
65
74
|
#
|
66
75
|
# @param settlement_currencies [Array<String>] List of 3-character alphabetic ISO 4217 codes for the currencies that the card p
|
@@ -7,6 +7,12 @@ module Lithic
|
|
7
7
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
8
|
include Lithic::Internal::Type::RequestParameters
|
9
9
|
|
10
|
+
# @!attribute comment
|
11
|
+
# Additional context or information related to the card.
|
12
|
+
#
|
13
|
+
# @return [String, nil]
|
14
|
+
optional :comment, String
|
15
|
+
|
10
16
|
# @!attribute digital_card_art_token
|
11
17
|
# Specifies the digital card art to be displayed in the user’s digital wallet
|
12
18
|
# after tokenization. This artwork must be approved by Mastercard and configured
|
@@ -22,6 +28,13 @@ module Lithic
|
|
22
28
|
# @return [String, nil]
|
23
29
|
optional :memo, String
|
24
30
|
|
31
|
+
# @!attribute network_program_token
|
32
|
+
# Globally unique identifier for the card's network program. Currently applicable
|
33
|
+
# to Visa cards participating in Account Level Management only.
|
34
|
+
#
|
35
|
+
# @return [String, nil]
|
36
|
+
optional :network_program_token, String
|
37
|
+
|
25
38
|
# @!attribute pin
|
26
39
|
# Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
|
27
40
|
# `VIRTUAL`. Changing PIN also resets PIN status to `OK`. See
|
@@ -77,14 +90,50 @@ module Lithic
|
|
77
90
|
# @return [Symbol, Lithic::Models::CardUpdateParams::State, nil]
|
78
91
|
optional :state, enum: -> { Lithic::CardUpdateParams::State }
|
79
92
|
|
80
|
-
# @!
|
93
|
+
# @!attribute substatus
|
94
|
+
# Card state substatus values:
|
95
|
+
#
|
96
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
97
|
+
# being lost or never received by the cardholder.
|
98
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
99
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
100
|
+
# data breaches.
|
101
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
102
|
+
# failures or a demagnetized magnetic stripe.
|
103
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
104
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
105
|
+
# or closing the account.
|
106
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
107
|
+
# or damage, such as account inactivity, product or policy changes, or
|
108
|
+
# technology upgrades.
|
109
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
110
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
111
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
112
|
+
# activities that require review. This can involve prompting the cardholder to
|
113
|
+
# confirm legitimate use or report confirmed fraud.
|
114
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
115
|
+
# review.
|
116
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
117
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
118
|
+
# returned.
|
119
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
120
|
+
# categories. A comment should be provided to specify the reason.
|
121
|
+
#
|
122
|
+
# @return [Symbol, Lithic::Models::CardUpdateParams::Substatus, nil]
|
123
|
+
optional :substatus, enum: -> { Lithic::CardUpdateParams::Substatus }
|
124
|
+
|
125
|
+
# @!method initialize(comment: nil, digital_card_art_token: nil, memo: nil, network_program_token: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, substatus: nil, request_options: {})
|
81
126
|
# Some parameter documentations has been truncated, see
|
82
127
|
# {Lithic::Models::CardUpdateParams} for more details.
|
83
128
|
#
|
129
|
+
# @param comment [String] Additional context or information related to the card.
|
130
|
+
#
|
84
131
|
# @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user’s digital wallet afte
|
85
132
|
#
|
86
133
|
# @param memo [String] Friendly name to identify the card.
|
87
134
|
#
|
135
|
+
# @param network_program_token [String] Globally unique identifier for the card's network program. Currently applicable
|
136
|
+
#
|
88
137
|
# @param pin [String] Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and `V
|
89
138
|
#
|
90
139
|
# @param pin_status [Symbol, Lithic::Models::CardUpdateParams::PinStatus] Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
@@ -95,6 +144,8 @@ module Lithic
|
|
95
144
|
#
|
96
145
|
# @param state [Symbol, Lithic::Models::CardUpdateParams::State] Card state values:
|
97
146
|
#
|
147
|
+
# @param substatus [Symbol, Lithic::Models::CardUpdateParams::Substatus] Card state substatus values:
|
148
|
+
#
|
98
149
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
99
150
|
|
100
151
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
@@ -126,6 +177,52 @@ module Lithic
|
|
126
177
|
# @!method self.values
|
127
178
|
# @return [Array<Symbol>]
|
128
179
|
end
|
180
|
+
|
181
|
+
# Card state substatus values:
|
182
|
+
#
|
183
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
184
|
+
# being lost or never received by the cardholder.
|
185
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
186
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
187
|
+
# data breaches.
|
188
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
189
|
+
# failures or a demagnetized magnetic stripe.
|
190
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
191
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
192
|
+
# or closing the account.
|
193
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
194
|
+
# or damage, such as account inactivity, product or policy changes, or
|
195
|
+
# technology upgrades.
|
196
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
197
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
198
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
199
|
+
# activities that require review. This can involve prompting the cardholder to
|
200
|
+
# confirm legitimate use or report confirmed fraud.
|
201
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
202
|
+
# review.
|
203
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
204
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
205
|
+
# returned.
|
206
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
207
|
+
# categories. A comment should be provided to specify the reason.
|
208
|
+
module Substatus
|
209
|
+
extend Lithic::Internal::Type::Enum
|
210
|
+
|
211
|
+
LOST = :LOST
|
212
|
+
COMPROMISED = :COMPROMISED
|
213
|
+
DAMAGED = :DAMAGED
|
214
|
+
END_USER_REQUEST = :END_USER_REQUEST
|
215
|
+
ISSUER_REQUEST = :ISSUER_REQUEST
|
216
|
+
NOT_ACTIVE = :NOT_ACTIVE
|
217
|
+
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
|
218
|
+
INTERNAL_REVIEW = :INTERNAL_REVIEW
|
219
|
+
EXPIRED = :EXPIRED
|
220
|
+
UNDELIVERABLE = :UNDELIVERABLE
|
221
|
+
OTHER = :OTHER
|
222
|
+
|
223
|
+
# @!method self.values
|
224
|
+
# @return [Array<Symbol>]
|
225
|
+
end
|
129
226
|
end
|
130
227
|
end
|
131
228
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class ExternalResource < Lithic::Internal::Type::BaseModel
|
6
|
+
# @!attribute external_resource_token
|
7
|
+
# Token identifying the external resource
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :external_resource_token, String
|
11
|
+
|
12
|
+
# @!attribute external_resource_type
|
13
|
+
# Type of external resource associated with the management operation
|
14
|
+
#
|
15
|
+
# @return [Symbol, Lithic::Models::ExternalResourceType]
|
16
|
+
required :external_resource_type, enum: -> { Lithic::ExternalResourceType }
|
17
|
+
|
18
|
+
# @!attribute external_resource_sub_token
|
19
|
+
# Token identifying the external resource sub-resource
|
20
|
+
#
|
21
|
+
# @return [String, nil]
|
22
|
+
optional :external_resource_sub_token, String
|
23
|
+
|
24
|
+
# @!method initialize(external_resource_token:, external_resource_type:, external_resource_sub_token: nil)
|
25
|
+
# External resource associated with the management operation
|
26
|
+
#
|
27
|
+
# @param external_resource_token [String] Token identifying the external resource
|
28
|
+
#
|
29
|
+
# @param external_resource_type [Symbol, Lithic::Models::ExternalResourceType] Type of external resource associated with the management operation
|
30
|
+
#
|
31
|
+
# @param external_resource_sub_token [String] Token identifying the external resource sub-resource
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# Type of external resource associated with the management operation
|
6
|
+
module ExternalResourceType
|
7
|
+
extend Lithic::Internal::Type::Enum
|
8
|
+
|
9
|
+
STATEMENT = :STATEMENT
|
10
|
+
COLLECTION = :COLLECTION
|
11
|
+
DISPUTE = :DISPUTE
|
12
|
+
UNKNOWN = :UNKNOWN
|
13
|
+
|
14
|
+
# @!method self.values
|
15
|
+
# @return [Array<Symbol>]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -47,6 +47,12 @@ module Lithic
|
|
47
47
|
# @return [String, nil]
|
48
48
|
optional :memo, String
|
49
49
|
|
50
|
+
# @!attribute on_closed_account
|
51
|
+
# What to do if the financial account is closed when posting an operation
|
52
|
+
#
|
53
|
+
# @return [Symbol, Lithic::Models::ManagementOperationCreateParams::OnClosedAccount, nil]
|
54
|
+
optional :on_closed_account, enum: -> { Lithic::ManagementOperationCreateParams::OnClosedAccount }
|
55
|
+
|
50
56
|
# @!attribute subtype
|
51
57
|
#
|
52
58
|
# @return [String, nil]
|
@@ -57,17 +63,29 @@ module Lithic
|
|
57
63
|
# @return [String, nil]
|
58
64
|
optional :user_defined_id, String
|
59
65
|
|
60
|
-
# @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
66
|
+
# @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
61
67
|
# @param amount [Integer]
|
68
|
+
#
|
62
69
|
# @param category [Symbol, Lithic::Models::ManagementOperationCreateParams::Category]
|
70
|
+
#
|
63
71
|
# @param direction [Symbol, Lithic::Models::ManagementOperationCreateParams::Direction]
|
72
|
+
#
|
64
73
|
# @param effective_date [Date]
|
74
|
+
#
|
65
75
|
# @param event_type [Symbol, Lithic::Models::ManagementOperationCreateParams::EventType]
|
76
|
+
#
|
66
77
|
# @param financial_account_token [String]
|
78
|
+
#
|
67
79
|
# @param token [String]
|
80
|
+
#
|
68
81
|
# @param memo [String]
|
82
|
+
#
|
83
|
+
# @param on_closed_account [Symbol, Lithic::Models::ManagementOperationCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
|
84
|
+
#
|
69
85
|
# @param subtype [String]
|
86
|
+
#
|
70
87
|
# @param user_defined_id [String]
|
88
|
+
#
|
71
89
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
72
90
|
|
73
91
|
module Category
|
@@ -119,6 +137,17 @@ module Lithic
|
|
119
137
|
# @!method self.values
|
120
138
|
# @return [Array<Symbol>]
|
121
139
|
end
|
140
|
+
|
141
|
+
# What to do if the financial account is closed when posting an operation
|
142
|
+
module OnClosedAccount
|
143
|
+
extend Lithic::Internal::Type::Enum
|
144
|
+
|
145
|
+
FAIL = :FAIL
|
146
|
+
USE_SUSPENSE = :USE_SUSPENSE
|
147
|
+
|
148
|
+
# @!method self.values
|
149
|
+
# @return [Array<Symbol>]
|
150
|
+
end
|
122
151
|
end
|
123
152
|
end
|
124
153
|
end
|
@@ -73,25 +73,46 @@ module Lithic
|
|
73
73
|
# @return [Time]
|
74
74
|
required :updated, Time
|
75
75
|
|
76
|
+
# @!attribute external_resource
|
77
|
+
# External resource associated with the management operation
|
78
|
+
#
|
79
|
+
# @return [Lithic::Models::ExternalResource, nil]
|
80
|
+
optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
|
81
|
+
|
76
82
|
# @!attribute user_defined_id
|
77
83
|
#
|
78
84
|
# @return [String, nil]
|
79
85
|
optional :user_defined_id, String
|
80
86
|
|
81
|
-
# @!method initialize(token:, category:, created:, currency:, direction:, events:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, transaction_series:, updated:, user_defined_id: nil)
|
87
|
+
# @!method initialize(token:, category:, created:, currency:, direction:, events:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, transaction_series:, updated:, external_resource: nil, user_defined_id: nil)
|
82
88
|
# @param token [String]
|
89
|
+
#
|
83
90
|
# @param category [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
|
91
|
+
#
|
84
92
|
# @param created [Time]
|
93
|
+
#
|
85
94
|
# @param currency [String]
|
95
|
+
#
|
86
96
|
# @param direction [Symbol, Lithic::Models::ManagementOperationTransaction::Direction]
|
97
|
+
#
|
87
98
|
# @param events [Array<Lithic::Models::ManagementOperationTransaction::Event>]
|
99
|
+
#
|
88
100
|
# @param financial_account_token [String]
|
101
|
+
#
|
89
102
|
# @param pending_amount [Integer]
|
103
|
+
#
|
90
104
|
# @param result [Symbol, Lithic::Models::ManagementOperationTransaction::Result]
|
105
|
+
#
|
91
106
|
# @param settled_amount [Integer]
|
107
|
+
#
|
92
108
|
# @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
109
|
+
#
|
93
110
|
# @param transaction_series [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
|
111
|
+
#
|
94
112
|
# @param updated [Time]
|
113
|
+
#
|
114
|
+
# @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
|
115
|
+
#
|
95
116
|
# @param user_defined_id [String]
|
96
117
|
|
97
118
|
# @see Lithic::Models::ManagementOperationTransaction#category
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#retrieve
|
6
|
+
class NetworkProgram < Lithic::Internal::Type::BaseModel
|
7
|
+
# @!attribute token
|
8
|
+
# Lithic-generated unique identifier for the program
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
required :token, String
|
12
|
+
|
13
|
+
# @!attribute default_product_code
|
14
|
+
# Network product ID associated with this program.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
required :default_product_code, String
|
18
|
+
|
19
|
+
# @!attribute name
|
20
|
+
# The name of the network program.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
required :name, String
|
24
|
+
|
25
|
+
# @!attribute registered_program_identification_number
|
26
|
+
# RPIN value assigned by the network.
|
27
|
+
#
|
28
|
+
# @return [String]
|
29
|
+
required :registered_program_identification_number, String
|
30
|
+
|
31
|
+
# @!method initialize(token:, default_product_code:, name:, registered_program_identification_number:)
|
32
|
+
# @param token [String] Lithic-generated unique identifier for the program
|
33
|
+
#
|
34
|
+
# @param default_product_code [String] Network product ID associated with this program.
|
35
|
+
#
|
36
|
+
# @param name [String] The name of the network program.
|
37
|
+
#
|
38
|
+
# @param registered_program_identification_number [String] RPIN value assigned by the network.
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#list
|
6
|
+
class NetworkProgramListParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute begin_
|
11
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
12
|
+
# will be included. UTC time zone.
|
13
|
+
#
|
14
|
+
# @return [Time, nil]
|
15
|
+
optional :begin_, Time
|
16
|
+
|
17
|
+
# @!attribute end_
|
18
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
19
|
+
# will be included. UTC time zone.
|
20
|
+
#
|
21
|
+
# @return [Time, nil]
|
22
|
+
optional :end_, Time
|
23
|
+
|
24
|
+
# @!attribute page_size
|
25
|
+
# Page size (for pagination).
|
26
|
+
#
|
27
|
+
# @return [Integer, nil]
|
28
|
+
optional :page_size, Integer
|
29
|
+
|
30
|
+
# @!method initialize(begin_: nil, end_: nil, page_size: nil, request_options: {})
|
31
|
+
# Some parameter documentations has been truncated, see
|
32
|
+
# {Lithic::Models::NetworkProgramListParams} for more details.
|
33
|
+
#
|
34
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
35
|
+
#
|
36
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
37
|
+
#
|
38
|
+
# @param page_size [Integer] Page size (for pagination).
|
39
|
+
#
|
40
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#retrieve
|
6
|
+
class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|