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
@@ -23,10 +23,12 @@ module Lithic
|
|
23
23
|
sig do
|
24
24
|
params(
|
25
25
|
account_token: String,
|
26
|
+
comment: String,
|
26
27
|
daily_spend_limit: Integer,
|
27
28
|
lifetime_spend_limit: Integer,
|
28
29
|
monthly_spend_limit: Integer,
|
29
30
|
state: Lithic::AccountUpdateParams::State::OrSymbol,
|
31
|
+
substatus: Lithic::AccountUpdateParams::Substatus::OrSymbol,
|
30
32
|
verification_address:
|
31
33
|
Lithic::AccountUpdateParams::VerificationAddress::OrHash,
|
32
34
|
request_options: Lithic::RequestOptions::OrHash
|
@@ -35,6 +37,8 @@ module Lithic
|
|
35
37
|
def update(
|
36
38
|
# Globally unique identifier for account.
|
37
39
|
account_token,
|
40
|
+
# Additional context or information related to the account.
|
41
|
+
comment: nil,
|
38
42
|
# Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
|
39
43
|
# $1,000 limit). By default the daily spend limit is set to $1,250.
|
40
44
|
daily_spend_limit: nil,
|
@@ -51,6 +55,34 @@ module Lithic
|
|
51
55
|
monthly_spend_limit: nil,
|
52
56
|
# Account states.
|
53
57
|
state: nil,
|
58
|
+
# Account state substatus values:
|
59
|
+
#
|
60
|
+
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
|
61
|
+
# with stolen or fabricated identity information, encompassing both true
|
62
|
+
# identity theft and synthetic identities.
|
63
|
+
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
|
64
|
+
# unauthorized access or fraudulent transactions, necessitating further
|
65
|
+
# investigation.
|
66
|
+
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
|
67
|
+
# legitimate account holder. Examples include disputing valid transactions
|
68
|
+
# without cause, falsely claiming non-receipt of goods, or engaging in
|
69
|
+
# intentional bust-out schemes to exploit account services.
|
70
|
+
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
|
71
|
+
# of the account for personal reasons. This encompasses situations such as
|
72
|
+
# bankruptcy, other financial considerations, or the account holder's death.
|
73
|
+
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
|
74
|
+
# business strategy, risk management, inactivity, product changes, regulatory
|
75
|
+
# concerns, or violations of terms and conditions.
|
76
|
+
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
|
77
|
+
# within a specified period. This status applies to accounts that are paused or
|
78
|
+
# closed due to inactivity.
|
79
|
+
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
|
80
|
+
# review. In future implementations, this status may prevent clients from
|
81
|
+
# activating the account via APIs until the review is completed.
|
82
|
+
# - `OTHER` - The reason for the account's current status does not fall into any
|
83
|
+
# of the above categories. A comment should be provided to specify the
|
84
|
+
# particular reason.
|
85
|
+
substatus: nil,
|
54
86
|
# Address used during Address Verification Service (AVS) checks during
|
55
87
|
# transactions if enabled via Auth Rules. This field is deprecated as AVS checks
|
56
88
|
# are no longer supported by Auth Rules. The field will be removed from the schema
|
@@ -27,7 +27,10 @@ module Lithic
|
|
27
27
|
pin: String,
|
28
28
|
product_id: String,
|
29
29
|
replacement_account_token: String,
|
30
|
+
replacement_comment: String,
|
30
31
|
replacement_for: String,
|
32
|
+
replacement_substatus:
|
33
|
+
Lithic::CardCreateParams::ReplacementSubstatus::OrSymbol,
|
31
34
|
shipping_address: Lithic::ShippingAddress::OrHash,
|
32
35
|
shipping_method: Lithic::CardCreateParams::ShippingMethod::OrSymbol,
|
33
36
|
spend_limit: Integer,
|
@@ -94,10 +97,41 @@ module Lithic
|
|
94
97
|
# If `replacement_for` is specified and this field is omitted, the replacement
|
95
98
|
# card's account will be inferred from the card being replaced.
|
96
99
|
replacement_account_token: nil,
|
100
|
+
# Additional context or information related to the card that this card will
|
101
|
+
# replace.
|
102
|
+
replacement_comment: nil,
|
97
103
|
# Globally unique identifier for the card that this card will replace. If the card
|
98
104
|
# type is `PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is
|
99
105
|
# `VIRTUAL` it will be replaced by a `VIRTUAL` card.
|
100
106
|
replacement_for: nil,
|
107
|
+
# Card state substatus values for the card that this card will replace:
|
108
|
+
#
|
109
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
110
|
+
# being lost or never received by the cardholder.
|
111
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
112
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
113
|
+
# data breaches.
|
114
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
115
|
+
# failures or a demagnetized magnetic stripe.
|
116
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
117
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
118
|
+
# or closing the account.
|
119
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
120
|
+
# or damage, such as account inactivity, product or policy changes, or
|
121
|
+
# technology upgrades.
|
122
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
123
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
124
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
125
|
+
# activities that require review. This can involve prompting the cardholder to
|
126
|
+
# confirm legitimate use or report confirmed fraud.
|
127
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
128
|
+
# review.
|
129
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
130
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
131
|
+
# returned.
|
132
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
133
|
+
# categories. A comment should be provided to specify the reason.
|
134
|
+
replacement_substatus: nil,
|
101
135
|
shipping_address: nil,
|
102
136
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
103
137
|
# options besides `STANDARD` require additional permissions.
|
@@ -162,18 +196,23 @@ module Lithic
|
|
162
196
|
sig do
|
163
197
|
params(
|
164
198
|
card_token: String,
|
199
|
+
comment: String,
|
165
200
|
digital_card_art_token: String,
|
166
201
|
memo: String,
|
202
|
+
network_program_token: String,
|
167
203
|
pin: String,
|
168
204
|
pin_status: Lithic::CardUpdateParams::PinStatus::OrSymbol,
|
169
205
|
spend_limit: Integer,
|
170
206
|
spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
|
171
207
|
state: Lithic::CardUpdateParams::State::OrSymbol,
|
208
|
+
substatus: Lithic::CardUpdateParams::Substatus::OrSymbol,
|
172
209
|
request_options: Lithic::RequestOptions::OrHash
|
173
210
|
).returns(Lithic::Card)
|
174
211
|
end
|
175
212
|
def update(
|
176
213
|
card_token,
|
214
|
+
# Additional context or information related to the card.
|
215
|
+
comment: nil,
|
177
216
|
# Specifies the digital card art to be displayed in the user’s digital wallet
|
178
217
|
# after tokenization. This artwork must be approved by Mastercard and configured
|
179
218
|
# by Lithic to use. See
|
@@ -181,6 +220,9 @@ module Lithic
|
|
181
220
|
digital_card_art_token: nil,
|
182
221
|
# Friendly name to identify the card.
|
183
222
|
memo: nil,
|
223
|
+
# Globally unique identifier for the card's network program. Currently applicable
|
224
|
+
# to Visa cards participating in Account Level Management only.
|
225
|
+
network_program_token: nil,
|
184
226
|
# Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
|
185
227
|
# `VIRTUAL`. Changing PIN also resets PIN status to `OK`. See
|
186
228
|
# [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
|
@@ -216,6 +258,34 @@ module Lithic
|
|
216
258
|
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
217
259
|
# time.
|
218
260
|
state: nil,
|
261
|
+
# Card state substatus values:
|
262
|
+
#
|
263
|
+
# - `LOST` - The physical card is no longer in the cardholder's possession due to
|
264
|
+
# being lost or never received by the cardholder.
|
265
|
+
# - `COMPROMISED` - Card information has been exposed, potentially leading to
|
266
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
267
|
+
# data breaches.
|
268
|
+
# - `DAMAGED` - The physical card is not functioning properly, such as having chip
|
269
|
+
# failures or a demagnetized magnetic stripe.
|
270
|
+
# - `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
271
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
272
|
+
# or closing the account.
|
273
|
+
# - `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud
|
274
|
+
# or damage, such as account inactivity, product or policy changes, or
|
275
|
+
# technology upgrades.
|
276
|
+
# - `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified
|
277
|
+
# period, applicable to statuses like `PAUSED` or `CLOSED`.
|
278
|
+
# - `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
|
279
|
+
# activities that require review. This can involve prompting the cardholder to
|
280
|
+
# confirm legitimate use or report confirmed fraud.
|
281
|
+
# - `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
282
|
+
# review.
|
283
|
+
# - `EXPIRED` - The card has expired and has been closed without being reissued.
|
284
|
+
# - `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
|
285
|
+
# returned.
|
286
|
+
# - `OTHER` - The reason for the status does not fall into any of the above
|
287
|
+
# categories. A comment should be provided to specify the reason.
|
288
|
+
substatus: nil,
|
219
289
|
request_options: {}
|
220
290
|
)
|
221
291
|
end
|
@@ -16,6 +16,8 @@ module Lithic
|
|
16
16
|
financial_account_token: String,
|
17
17
|
token: String,
|
18
18
|
memo: String,
|
19
|
+
on_closed_account:
|
20
|
+
Lithic::ManagementOperationCreateParams::OnClosedAccount::OrSymbol,
|
19
21
|
subtype: String,
|
20
22
|
user_defined_id: String,
|
21
23
|
request_options: Lithic::RequestOptions::OrHash
|
@@ -30,6 +32,8 @@ module Lithic
|
|
30
32
|
financial_account_token:,
|
31
33
|
token: nil,
|
32
34
|
memo: nil,
|
35
|
+
# What to do if the financial account is closed when posting an operation
|
36
|
+
on_closed_account: nil,
|
33
37
|
subtype: nil,
|
34
38
|
user_defined_id: nil,
|
35
39
|
request_options: {}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Resources
|
5
|
+
class NetworkPrograms
|
6
|
+
# Get network program.
|
7
|
+
sig do
|
8
|
+
params(
|
9
|
+
network_program_token: String,
|
10
|
+
request_options: Lithic::RequestOptions::OrHash
|
11
|
+
).returns(Lithic::NetworkProgram)
|
12
|
+
end
|
13
|
+
def retrieve(
|
14
|
+
# Globally unique identifier for the network program.
|
15
|
+
network_program_token,
|
16
|
+
request_options: {}
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
# List network programs.
|
21
|
+
sig do
|
22
|
+
params(
|
23
|
+
begin_: Time,
|
24
|
+
end_: Time,
|
25
|
+
page_size: Integer,
|
26
|
+
request_options: Lithic::RequestOptions::OrHash
|
27
|
+
).returns(Lithic::Internal::SinglePage[Lithic::NetworkProgram])
|
28
|
+
end
|
29
|
+
def list(
|
30
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
31
|
+
# will be included. UTC time zone.
|
32
|
+
begin_: nil,
|
33
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
34
|
+
# will be included. UTC time zone.
|
35
|
+
end_: nil,
|
36
|
+
# Page size (for pagination).
|
37
|
+
page_size: nil,
|
38
|
+
request_options: {}
|
39
|
+
)
|
40
|
+
end
|
41
|
+
|
42
|
+
# @api private
|
43
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
44
|
+
def self.new(client:)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/sig/lithic/client.rbs
CHANGED
@@ -9,6 +9,8 @@ module Lithic
|
|
9
9
|
account_holder: Lithic::Account::AccountHolder,
|
10
10
|
auth_rule_tokens: ::Array[String],
|
11
11
|
cardholder_currency: String,
|
12
|
+
comment: String,
|
13
|
+
substatus: Lithic::Models::Account::substatus,
|
12
14
|
verification_address: Lithic::Account::VerificationAddress
|
13
15
|
}
|
14
16
|
|
@@ -35,6 +37,16 @@ module Lithic
|
|
35
37
|
|
36
38
|
def cardholder_currency=: (String) -> String
|
37
39
|
|
40
|
+
attr_reader comment: String?
|
41
|
+
|
42
|
+
def comment=: (String) -> String
|
43
|
+
|
44
|
+
attr_reader substatus: Lithic::Models::Account::substatus?
|
45
|
+
|
46
|
+
def substatus=: (
|
47
|
+
Lithic::Models::Account::substatus
|
48
|
+
) -> Lithic::Models::Account::substatus
|
49
|
+
|
38
50
|
attr_reader verification_address: Lithic::Account::VerificationAddress?
|
39
51
|
|
40
52
|
def verification_address=: (
|
@@ -49,6 +61,8 @@ module Lithic
|
|
49
61
|
?account_holder: Lithic::Account::AccountHolder,
|
50
62
|
?auth_rule_tokens: ::Array[String],
|
51
63
|
?cardholder_currency: String,
|
64
|
+
?comment: String,
|
65
|
+
?substatus: Lithic::Models::Account::substatus,
|
52
66
|
?verification_address: Lithic::Account::VerificationAddress
|
53
67
|
) -> void
|
54
68
|
|
@@ -60,6 +74,8 @@ module Lithic
|
|
60
74
|
account_holder: Lithic::Account::AccountHolder,
|
61
75
|
auth_rule_tokens: ::Array[String],
|
62
76
|
cardholder_currency: String,
|
77
|
+
comment: String,
|
78
|
+
substatus: Lithic::Models::Account::substatus,
|
63
79
|
verification_address: Lithic::Account::VerificationAddress
|
64
80
|
}
|
65
81
|
|
@@ -125,6 +141,31 @@ module Lithic
|
|
125
141
|
}
|
126
142
|
end
|
127
143
|
|
144
|
+
type substatus =
|
145
|
+
:FRAUD_IDENTIFIED
|
146
|
+
| :SUSPICIOUS_ACTIVITY
|
147
|
+
| :RISK_VIOLATION
|
148
|
+
| :END_USER_REQUEST
|
149
|
+
| :ISSUER_REQUEST
|
150
|
+
| :NOT_ACTIVE
|
151
|
+
| :INTERNAL_REVIEW
|
152
|
+
| :OTHER
|
153
|
+
|
154
|
+
module Substatus
|
155
|
+
extend Lithic::Internal::Type::Enum
|
156
|
+
|
157
|
+
FRAUD_IDENTIFIED: :FRAUD_IDENTIFIED
|
158
|
+
SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
|
159
|
+
RISK_VIOLATION: :RISK_VIOLATION
|
160
|
+
END_USER_REQUEST: :END_USER_REQUEST
|
161
|
+
ISSUER_REQUEST: :ISSUER_REQUEST
|
162
|
+
NOT_ACTIVE: :NOT_ACTIVE
|
163
|
+
INTERNAL_REVIEW: :INTERNAL_REVIEW
|
164
|
+
OTHER: :OTHER
|
165
|
+
|
166
|
+
def self?.values: -> ::Array[Lithic::Models::Account::substatus]
|
167
|
+
end
|
168
|
+
|
128
169
|
type verification_address =
|
129
170
|
{
|
130
171
|
:address1 => String,
|
@@ -2,10 +2,12 @@ module Lithic
|
|
2
2
|
module Models
|
3
3
|
type account_update_params =
|
4
4
|
{
|
5
|
+
comment: String,
|
5
6
|
daily_spend_limit: Integer,
|
6
7
|
lifetime_spend_limit: Integer,
|
7
8
|
monthly_spend_limit: Integer,
|
8
9
|
state: Lithic::Models::AccountUpdateParams::state,
|
10
|
+
substatus: Lithic::Models::AccountUpdateParams::substatus,
|
9
11
|
verification_address: Lithic::AccountUpdateParams::VerificationAddress
|
10
12
|
}
|
11
13
|
& Lithic::Internal::Type::request_parameters
|
@@ -14,6 +16,10 @@ module Lithic
|
|
14
16
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
15
17
|
include Lithic::Internal::Type::RequestParameters
|
16
18
|
|
19
|
+
attr_reader comment: String?
|
20
|
+
|
21
|
+
def comment=: (String) -> String
|
22
|
+
|
17
23
|
attr_reader daily_spend_limit: Integer?
|
18
24
|
|
19
25
|
def daily_spend_limit=: (Integer) -> Integer
|
@@ -32,6 +38,12 @@ module Lithic
|
|
32
38
|
Lithic::Models::AccountUpdateParams::state
|
33
39
|
) -> Lithic::Models::AccountUpdateParams::state
|
34
40
|
|
41
|
+
attr_reader substatus: Lithic::Models::AccountUpdateParams::substatus?
|
42
|
+
|
43
|
+
def substatus=: (
|
44
|
+
Lithic::Models::AccountUpdateParams::substatus
|
45
|
+
) -> Lithic::Models::AccountUpdateParams::substatus
|
46
|
+
|
35
47
|
attr_reader verification_address: Lithic::AccountUpdateParams::VerificationAddress?
|
36
48
|
|
37
49
|
def verification_address=: (
|
@@ -39,19 +51,23 @@ module Lithic
|
|
39
51
|
) -> Lithic::AccountUpdateParams::VerificationAddress
|
40
52
|
|
41
53
|
def initialize: (
|
54
|
+
?comment: String,
|
42
55
|
?daily_spend_limit: Integer,
|
43
56
|
?lifetime_spend_limit: Integer,
|
44
57
|
?monthly_spend_limit: Integer,
|
45
58
|
?state: Lithic::Models::AccountUpdateParams::state,
|
59
|
+
?substatus: Lithic::Models::AccountUpdateParams::substatus,
|
46
60
|
?verification_address: Lithic::AccountUpdateParams::VerificationAddress,
|
47
61
|
?request_options: Lithic::request_opts
|
48
62
|
) -> void
|
49
63
|
|
50
64
|
def to_hash: -> {
|
65
|
+
comment: String,
|
51
66
|
daily_spend_limit: Integer,
|
52
67
|
lifetime_spend_limit: Integer,
|
53
68
|
monthly_spend_limit: Integer,
|
54
69
|
state: Lithic::Models::AccountUpdateParams::state,
|
70
|
+
substatus: Lithic::Models::AccountUpdateParams::substatus,
|
55
71
|
verification_address: Lithic::AccountUpdateParams::VerificationAddress,
|
56
72
|
request_options: Lithic::RequestOptions
|
57
73
|
}
|
@@ -68,6 +84,31 @@ module Lithic
|
|
68
84
|
def self?.values: -> ::Array[Lithic::Models::AccountUpdateParams::state]
|
69
85
|
end
|
70
86
|
|
87
|
+
type substatus =
|
88
|
+
:FRAUD_IDENTIFIED
|
89
|
+
| :SUSPICIOUS_ACTIVITY
|
90
|
+
| :RISK_VIOLATION
|
91
|
+
| :END_USER_REQUEST
|
92
|
+
| :ISSUER_REQUEST
|
93
|
+
| :NOT_ACTIVE
|
94
|
+
| :INTERNAL_REVIEW
|
95
|
+
| :OTHER
|
96
|
+
|
97
|
+
module Substatus
|
98
|
+
extend Lithic::Internal::Type::Enum
|
99
|
+
|
100
|
+
FRAUD_IDENTIFIED: :FRAUD_IDENTIFIED
|
101
|
+
SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
|
102
|
+
RISK_VIOLATION: :RISK_VIOLATION
|
103
|
+
END_USER_REQUEST: :END_USER_REQUEST
|
104
|
+
ISSUER_REQUEST: :ISSUER_REQUEST
|
105
|
+
NOT_ACTIVE: :NOT_ACTIVE
|
106
|
+
INTERNAL_REVIEW: :INTERNAL_REVIEW
|
107
|
+
OTHER: :OTHER
|
108
|
+
|
109
|
+
def self?.values: -> ::Array[Lithic::Models::AccountUpdateParams::substatus]
|
110
|
+
end
|
111
|
+
|
71
112
|
type verification_address =
|
72
113
|
{
|
73
114
|
:address1 => String,
|
@@ -61,7 +61,7 @@ module Lithic
|
|
61
61
|
updated: Time
|
62
62
|
}
|
63
63
|
|
64
|
-
type financial_account_type = :ISSUING | :OPERATING | :RESERVE
|
64
|
+
type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
65
65
|
|
66
66
|
module FinancialAccountType
|
67
67
|
extend Lithic::Internal::Type::Enum
|
@@ -69,6 +69,7 @@ module Lithic
|
|
69
69
|
ISSUING: :ISSUING
|
70
70
|
OPERATING: :OPERATING
|
71
71
|
RESERVE: :RESERVE
|
72
|
+
SECURITY: :SECURITY
|
72
73
|
|
73
74
|
def self?.values: -> ::Array[Lithic::Models::AggregateBalance::financial_account_type]
|
74
75
|
end
|
@@ -26,7 +26,7 @@ module Lithic
|
|
26
26
|
request_options: Lithic::RequestOptions
|
27
27
|
}
|
28
28
|
|
29
|
-
type financial_account_type = :ISSUING | :OPERATING | :RESERVE
|
29
|
+
type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
30
30
|
|
31
31
|
module FinancialAccountType
|
32
32
|
extend Lithic::Internal::Type::Enum
|
@@ -34,6 +34,7 @@ module Lithic
|
|
34
34
|
ISSUING: :ISSUING
|
35
35
|
OPERATING: :OPERATING
|
36
36
|
RESERVE: :RESERVE
|
37
|
+
SECURITY: :SECURITY
|
37
38
|
|
38
39
|
def self?.values: -> ::Array[Lithic::Models::AggregateBalanceListParams::financial_account_type]
|
39
40
|
end
|
@@ -4,7 +4,7 @@ module Lithic
|
|
4
4
|
type velocity_limit_params =
|
5
5
|
{
|
6
6
|
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
7
|
-
period: Lithic::Models::AuthRules::
|
7
|
+
period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
|
8
8
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
9
9
|
limit_amount: Integer?,
|
10
10
|
limit_count: Integer?
|
@@ -13,7 +13,7 @@ module Lithic
|
|
13
13
|
class VelocityLimitParams < Lithic::Internal::Type::BaseModel
|
14
14
|
attr_accessor filters: Lithic::AuthRules::VelocityLimitParams::Filters
|
15
15
|
|
16
|
-
attr_accessor period: Lithic::Models::AuthRules::
|
16
|
+
attr_accessor period: Lithic::Models::AuthRules::velocity_limit_params_period_window
|
17
17
|
|
18
18
|
attr_accessor scope: Lithic::Models::AuthRules::VelocityLimitParams::scope
|
19
19
|
|
@@ -23,7 +23,7 @@ module Lithic
|
|
23
23
|
|
24
24
|
def initialize: (
|
25
25
|
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
26
|
-
period: Lithic::Models::AuthRules::
|
26
|
+
period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
|
27
27
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
28
28
|
?limit_amount: Integer?,
|
29
29
|
?limit_count: Integer?
|
@@ -31,7 +31,7 @@ module Lithic
|
|
31
31
|
|
32
32
|
def to_hash: -> {
|
33
33
|
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
34
|
-
period: Lithic::Models::AuthRules::
|
34
|
+
period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
|
35
35
|
scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
|
36
36
|
limit_amount: Integer?,
|
37
37
|
limit_count: Integer?
|
@@ -69,16 +69,6 @@ module Lithic
|
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
72
|
-
type period =
|
73
|
-
Integer
|
74
|
-
| Lithic::Models::AuthRules::velocity_limit_params_period_window
|
75
|
-
|
76
|
-
module Period
|
77
|
-
extend Lithic::Internal::Type::Union
|
78
|
-
|
79
|
-
def self?.variants: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::period]
|
80
|
-
end
|
81
|
-
|
82
72
|
type scope = :CARD | :ACCOUNT
|
83
73
|
|
84
74
|
module Scope
|