increase 1.239.0 → 1.241.0
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 +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card_payment.rb +9 -1
- data/lib/increase/models/simulations/card_token_create_params.rb +197 -1
- data/lib/increase/resources/simulations/card_tokens.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_payment.rbi +8 -0
- data/rbi/increase/models/simulations/card_token_create_params.rbi +495 -0
- data/rbi/increase/resources/simulations/card_tokens.rbi +4 -0
- data/sig/increase/models/card_payment.rbs +5 -0
- data/sig/increase/models/simulations/card_token_create_params.rbs +246 -0
- data/sig/increase/resources/simulations/card_tokens.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a04be041eba6a264331c3d2790223aac3bcd162e58d41c948ee77895342f59ed
|
|
4
|
+
data.tar.gz: acbd6d8dbf14a45bd3eca79fce36e3d6fbcd38cbc00fe9d7355133ee1269c7eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 344aec2294c913273b00a4fcc7aba0ac974ced037aebd2048c5e60d482c925778ba7da9c98d909f11c50302022c3f945d9c2c0af4e72aa9f7d334d30d0cb29d2
|
|
7
|
+
data.tar.gz: 73c02285fab40ef9d198665de68036fe6cda8c8a7d47167371497b57d54e2516d41706d8cbcfd699b07845a4cb712b2fa40d8eda8917a03db1d6266d242e8017
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.241.0 (2026-03-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.240.0...v1.241.0](https://github.com/Increase/increase-ruby/compare/v1.240.0...v1.241.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([bb3ea5f](https://github.com/Increase/increase-ruby/commit/bb3ea5f6f2b649f19a38ba32b5f5ffd75e7cc9b0))
|
|
10
|
+
|
|
11
|
+
## 1.240.0 (2026-03-10)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.239.0...v1.240.0](https://github.com/Increase/increase-ruby/compare/v1.239.0...v1.240.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([7d15383](https://github.com/Increase/increase-ruby/commit/7d15383d8ed0da57d18f14e1467eaeb20ff7b5c3))
|
|
18
|
+
|
|
3
19
|
## 1.239.0 (2026-03-10)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.238.0...v1.239.0](https://github.com/Increase/increase-ruby/compare/v1.238.0...v1.239.0)
|
data/README.md
CHANGED
|
@@ -685,6 +685,12 @@ module Increase
|
|
|
685
685
|
# @return [String]
|
|
686
686
|
required :one_time_code, String
|
|
687
687
|
|
|
688
|
+
# @!attribute real_time_decision_id
|
|
689
|
+
# The identifier of the Real-Time Decision used to deliver this challenge.
|
|
690
|
+
#
|
|
691
|
+
# @return [String, nil]
|
|
692
|
+
required :real_time_decision_id, String, nil?: true
|
|
693
|
+
|
|
688
694
|
# @!attribute verification_method
|
|
689
695
|
# The method used to verify the Card Authentication Challenge.
|
|
690
696
|
#
|
|
@@ -699,7 +705,7 @@ module Increase
|
|
|
699
705
|
# @return [String, nil]
|
|
700
706
|
required :verification_value, String, nil?: true
|
|
701
707
|
|
|
702
|
-
# @!method initialize(attempts:, created_at:, one_time_code:, verification_method:, verification_value:)
|
|
708
|
+
# @!method initialize(attempts:, created_at:, one_time_code:, real_time_decision_id:, verification_method:, verification_value:)
|
|
703
709
|
# Some parameter documentations has been truncated, see
|
|
704
710
|
# {Increase::Models::CardPayment::Element::CardAuthentication::Challenge} for more
|
|
705
711
|
# details.
|
|
@@ -712,6 +718,8 @@ module Increase
|
|
|
712
718
|
#
|
|
713
719
|
# @param one_time_code [String] The one-time code used for the Card Authentication Challenge.
|
|
714
720
|
#
|
|
721
|
+
# @param real_time_decision_id [String, nil] The identifier of the Real-Time Decision used to deliver this challenge.
|
|
722
|
+
#
|
|
715
723
|
# @param verification_method [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod] The method used to verify the Card Authentication Challenge.
|
|
716
724
|
#
|
|
717
725
|
# @param verification_value [String, nil] E.g., the email address or phone number used for the Card Authentication Challen
|
|
@@ -27,6 +27,12 @@ module Increase
|
|
|
27
27
|
# @return [String, nil]
|
|
28
28
|
optional :last4, String
|
|
29
29
|
|
|
30
|
+
# @!attribute outcome
|
|
31
|
+
# The outcome to simulate for card push transfers using this token.
|
|
32
|
+
#
|
|
33
|
+
# @return [Increase::Models::Simulations::CardTokenCreateParams::Outcome, nil]
|
|
34
|
+
optional :outcome, -> { Increase::Simulations::CardTokenCreateParams::Outcome }
|
|
35
|
+
|
|
30
36
|
# @!attribute prefix
|
|
31
37
|
# The prefix of the card number, usually the first 8 digits.
|
|
32
38
|
#
|
|
@@ -39,13 +45,15 @@ module Increase
|
|
|
39
45
|
# @return [Integer, nil]
|
|
40
46
|
optional :primary_account_number_length, Integer
|
|
41
47
|
|
|
42
|
-
# @!method initialize(capabilities: nil, expiration: nil, last4: nil, prefix: nil, primary_account_number_length: nil, request_options: {})
|
|
48
|
+
# @!method initialize(capabilities: nil, expiration: nil, last4: nil, outcome: nil, prefix: nil, primary_account_number_length: nil, request_options: {})
|
|
43
49
|
# @param capabilities [Array<Increase::Models::Simulations::CardTokenCreateParams::Capability>] The capabilities of the outbound card token.
|
|
44
50
|
#
|
|
45
51
|
# @param expiration [Date] The expiration date of the card.
|
|
46
52
|
#
|
|
47
53
|
# @param last4 [String] The last 4 digits of the card number.
|
|
48
54
|
#
|
|
55
|
+
# @param outcome [Increase::Models::Simulations::CardTokenCreateParams::Outcome] The outcome to simulate for card push transfers using this token.
|
|
56
|
+
#
|
|
49
57
|
# @param prefix [String] The prefix of the card number, usually the first 8 digits.
|
|
50
58
|
#
|
|
51
59
|
# @param primary_account_number_length [Integer] The total length of the card number, including prefix and last4.
|
|
@@ -128,6 +136,194 @@ module Increase
|
|
|
128
136
|
# @return [Array<Symbol>]
|
|
129
137
|
end
|
|
130
138
|
end
|
|
139
|
+
|
|
140
|
+
class Outcome < Increase::Internal::Type::BaseModel
|
|
141
|
+
# @!attribute result
|
|
142
|
+
# Whether card push transfers or validations will be approved or declined.
|
|
143
|
+
#
|
|
144
|
+
# @return [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Outcome::Result]
|
|
145
|
+
required :result, enum: -> { Increase::Simulations::CardTokenCreateParams::Outcome::Result }
|
|
146
|
+
|
|
147
|
+
# @!attribute decline
|
|
148
|
+
# If the result is declined, the details of the decline.
|
|
149
|
+
#
|
|
150
|
+
# @return [Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline, nil]
|
|
151
|
+
optional :decline, -> { Increase::Simulations::CardTokenCreateParams::Outcome::Decline }
|
|
152
|
+
|
|
153
|
+
# @!method initialize(result:, decline: nil)
|
|
154
|
+
# The outcome to simulate for card push transfers using this token.
|
|
155
|
+
#
|
|
156
|
+
# @param result [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Outcome::Result] Whether card push transfers or validations will be approved or declined.
|
|
157
|
+
#
|
|
158
|
+
# @param decline [Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline] If the result is declined, the details of the decline.
|
|
159
|
+
|
|
160
|
+
# Whether card push transfers or validations will be approved or declined.
|
|
161
|
+
#
|
|
162
|
+
# @see Increase::Models::Simulations::CardTokenCreateParams::Outcome#result
|
|
163
|
+
module Result
|
|
164
|
+
extend Increase::Internal::Type::Enum
|
|
165
|
+
|
|
166
|
+
# Any card push transfers or validations will be approved.
|
|
167
|
+
APPROVE = :approve
|
|
168
|
+
|
|
169
|
+
# Any card push transfers or validations will be declined.
|
|
170
|
+
DECLINE = :decline
|
|
171
|
+
|
|
172
|
+
# @!method self.values
|
|
173
|
+
# @return [Array<Symbol>]
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# @see Increase::Models::Simulations::CardTokenCreateParams::Outcome#decline
|
|
177
|
+
class Decline < Increase::Internal::Type::BaseModel
|
|
178
|
+
# @!attribute reason
|
|
179
|
+
# The reason for the decline.
|
|
180
|
+
#
|
|
181
|
+
# @return [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::Reason, nil]
|
|
182
|
+
optional :reason, enum: -> { Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason }
|
|
183
|
+
|
|
184
|
+
# @!method initialize(reason: nil)
|
|
185
|
+
# If the result is declined, the details of the decline.
|
|
186
|
+
#
|
|
187
|
+
# @param reason [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::Reason] The reason for the decline.
|
|
188
|
+
|
|
189
|
+
# The reason for the decline.
|
|
190
|
+
#
|
|
191
|
+
# @see Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline#reason
|
|
192
|
+
module Reason
|
|
193
|
+
extend Increase::Internal::Type::Enum
|
|
194
|
+
|
|
195
|
+
# The card issuer has declined the transaction without providing a specific reason.
|
|
196
|
+
DO_NOT_HONOR = :do_not_honor
|
|
197
|
+
|
|
198
|
+
# The number of transactions for the card has exceeded the limit set by the issuer.
|
|
199
|
+
ACTIVITY_COUNT_LIMIT_EXCEEDED = :activity_count_limit_exceeded
|
|
200
|
+
|
|
201
|
+
# The card issuer requires the cardholder to contact them for further information regarding the transaction.
|
|
202
|
+
REFER_TO_CARD_ISSUER = :refer_to_card_issuer
|
|
203
|
+
|
|
204
|
+
# The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
|
|
205
|
+
REFER_TO_CARD_ISSUER_SPECIAL_CONDITION = :refer_to_card_issuer_special_condition
|
|
206
|
+
|
|
207
|
+
# The merchant is not valid for this transaction.
|
|
208
|
+
INVALID_MERCHANT = :invalid_merchant
|
|
209
|
+
|
|
210
|
+
# The card should be retained by the terminal.
|
|
211
|
+
PICK_UP_CARD = :pick_up_card
|
|
212
|
+
|
|
213
|
+
# An error occurred during processing of the transaction.
|
|
214
|
+
ERROR = :error
|
|
215
|
+
|
|
216
|
+
# The card should be retained by the terminal due to a special condition.
|
|
217
|
+
PICK_UP_CARD_SPECIAL = :pick_up_card_special
|
|
218
|
+
|
|
219
|
+
# The transaction is invalid and cannot be processed.
|
|
220
|
+
INVALID_TRANSACTION = :invalid_transaction
|
|
221
|
+
|
|
222
|
+
# The amount of the transaction is invalid.
|
|
223
|
+
INVALID_AMOUNT = :invalid_amount
|
|
224
|
+
|
|
225
|
+
# The account number provided is invalid.
|
|
226
|
+
INVALID_ACCOUNT_NUMBER = :invalid_account_number
|
|
227
|
+
|
|
228
|
+
# The issuer of the card could not be found.
|
|
229
|
+
NO_SUCH_ISSUER = :no_such_issuer
|
|
230
|
+
|
|
231
|
+
# The transaction should be re-entered for processing.
|
|
232
|
+
RE_ENTER_TRANSACTION = :re_enter_transaction
|
|
233
|
+
|
|
234
|
+
# There is no credit account associated with the card.
|
|
235
|
+
NO_CREDIT_ACCOUNT = :no_credit_account
|
|
236
|
+
|
|
237
|
+
# The card should be retained by the terminal because it has been reported lost.
|
|
238
|
+
PICK_UP_CARD_LOST = :pick_up_card_lost
|
|
239
|
+
|
|
240
|
+
# The card should be retained by the terminal because it has been reported stolen.
|
|
241
|
+
PICK_UP_CARD_STOLEN = :pick_up_card_stolen
|
|
242
|
+
|
|
243
|
+
# The account associated with the card has been closed.
|
|
244
|
+
CLOSED_ACCOUNT = :closed_account
|
|
245
|
+
|
|
246
|
+
# There are insufficient funds in the account to complete the transaction.
|
|
247
|
+
INSUFFICIENT_FUNDS = :insufficient_funds
|
|
248
|
+
|
|
249
|
+
# There is no checking account associated with the card.
|
|
250
|
+
NO_CHECKING_ACCOUNT = :no_checking_account
|
|
251
|
+
|
|
252
|
+
# There is no savings account associated with the card.
|
|
253
|
+
NO_SAVINGS_ACCOUNT = :no_savings_account
|
|
254
|
+
|
|
255
|
+
# The card has expired and cannot be used for transactions.
|
|
256
|
+
EXPIRED_CARD = :expired_card
|
|
257
|
+
|
|
258
|
+
# The transaction is not permitted for this cardholder.
|
|
259
|
+
TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER = :transaction_not_permitted_to_cardholder
|
|
260
|
+
|
|
261
|
+
# The transaction is not allowed at this terminal.
|
|
262
|
+
TRANSACTION_NOT_ALLOWED_AT_TERMINAL = :transaction_not_allowed_at_terminal
|
|
263
|
+
|
|
264
|
+
# The transaction has been flagged as suspected fraud and cannot be processed.
|
|
265
|
+
SUSPECTED_FRAUD = :suspected_fraud
|
|
266
|
+
|
|
267
|
+
# The amount of activity on the card has exceeded the limit set by the issuer.
|
|
268
|
+
ACTIVITY_AMOUNT_LIMIT_EXCEEDED = :activity_amount_limit_exceeded
|
|
269
|
+
|
|
270
|
+
# The card has restrictions that prevent it from being used for this transaction.
|
|
271
|
+
RESTRICTED_CARD = :restricted_card
|
|
272
|
+
|
|
273
|
+
# A security violation has occurred, preventing the transaction from being processed.
|
|
274
|
+
SECURITY_VIOLATION = :security_violation
|
|
275
|
+
|
|
276
|
+
# The transaction does not meet the anti-money laundering requirements set by the issuer.
|
|
277
|
+
TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT =
|
|
278
|
+
:transaction_does_not_fulfill_anti_money_laundering_requirement
|
|
279
|
+
|
|
280
|
+
# The first use of the card has been blocked by the issuer.
|
|
281
|
+
BLOCKED_FIRST_USE = :blocked_first_use
|
|
282
|
+
|
|
283
|
+
# The credit issuer is currently unavailable to process the transaction.
|
|
284
|
+
CREDIT_ISSUER_UNAVAILABLE = :credit_issuer_unavailable
|
|
285
|
+
|
|
286
|
+
# The card verification value (CVV) results were negative, indicating a potential issue with the card.
|
|
287
|
+
NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS = :negative_card_verification_value_results
|
|
288
|
+
|
|
289
|
+
# The issuer of the card is currently unavailable to process the transaction.
|
|
290
|
+
ISSUER_UNAVAILABLE = :issuer_unavailable
|
|
291
|
+
|
|
292
|
+
# The financial institution associated with the card could not be found.
|
|
293
|
+
FINANCIAL_INSTITUTION_CANNOT_BE_FOUND = :financial_institution_cannot_be_found
|
|
294
|
+
|
|
295
|
+
# The transaction cannot be completed due to an unspecified reason.
|
|
296
|
+
TRANSACTION_CANNOT_BE_COMPLETED = :transaction_cannot_be_completed
|
|
297
|
+
|
|
298
|
+
# The transaction is a duplicate of a previous transaction and cannot be processed again.
|
|
299
|
+
DUPLICATE_TRANSACTION = :duplicate_transaction
|
|
300
|
+
|
|
301
|
+
# A system malfunction occurred, preventing the transaction from being processed.
|
|
302
|
+
SYSTEM_MALFUNCTION = :system_malfunction
|
|
303
|
+
|
|
304
|
+
# Additional customer authentication is required to complete the transaction.
|
|
305
|
+
ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = :additional_customer_authentication_required
|
|
306
|
+
|
|
307
|
+
# The surcharge amount applied to the transaction is not permitted by the issuer.
|
|
308
|
+
SURCHARGE_AMOUNT_NOT_PERMITTED = :surcharge_amount_not_permitted
|
|
309
|
+
|
|
310
|
+
# The transaction was declined due to a failure in verifying the CVV2 code.
|
|
311
|
+
DECLINE_FOR_CVV2_FAILURE = :decline_for_cvv2_failure
|
|
312
|
+
|
|
313
|
+
# A stop payment order has been placed on this transaction.
|
|
314
|
+
STOP_PAYMENT_ORDER = :stop_payment_order
|
|
315
|
+
|
|
316
|
+
# An order has been placed to revoke authorization for this transaction.
|
|
317
|
+
REVOCATION_OF_AUTHORIZATION_ORDER = :revocation_of_authorization_order
|
|
318
|
+
|
|
319
|
+
# An order has been placed to revoke all authorizations for this cardholder.
|
|
320
|
+
REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER = :revocation_of_all_authorizations_order
|
|
321
|
+
|
|
322
|
+
# @!method self.values
|
|
323
|
+
# @return [Array<Symbol>]
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
131
327
|
end
|
|
132
328
|
end
|
|
133
329
|
end
|
|
@@ -6,7 +6,7 @@ module Increase
|
|
|
6
6
|
class CardTokens
|
|
7
7
|
# Simulates tokenizing a card in the sandbox environment.
|
|
8
8
|
#
|
|
9
|
-
# @overload create(capabilities: nil, expiration: nil, last4: nil, prefix: nil, primary_account_number_length: nil, request_options: {})
|
|
9
|
+
# @overload create(capabilities: nil, expiration: nil, last4: nil, outcome: nil, prefix: nil, primary_account_number_length: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param capabilities [Array<Increase::Models::Simulations::CardTokenCreateParams::Capability>] The capabilities of the outbound card token.
|
|
12
12
|
#
|
|
@@ -14,6 +14,8 @@ module Increase
|
|
|
14
14
|
#
|
|
15
15
|
# @param last4 [String] The last 4 digits of the card number.
|
|
16
16
|
#
|
|
17
|
+
# @param outcome [Increase::Models::Simulations::CardTokenCreateParams::Outcome] The outcome to simulate for card push transfers using this token.
|
|
18
|
+
#
|
|
17
19
|
# @param prefix [String] The prefix of the card number, usually the first 8 digits.
|
|
18
20
|
#
|
|
19
21
|
# @param primary_account_number_length [Integer] The total length of the card number, including prefix and last4.
|
data/lib/increase/version.rb
CHANGED
|
@@ -1114,6 +1114,10 @@ module Increase
|
|
|
1114
1114
|
sig { returns(String) }
|
|
1115
1115
|
attr_accessor :one_time_code
|
|
1116
1116
|
|
|
1117
|
+
# The identifier of the Real-Time Decision used to deliver this challenge.
|
|
1118
|
+
sig { returns(T.nilable(String)) }
|
|
1119
|
+
attr_accessor :real_time_decision_id
|
|
1120
|
+
|
|
1117
1121
|
# The method used to verify the Card Authentication Challenge.
|
|
1118
1122
|
sig do
|
|
1119
1123
|
returns(
|
|
@@ -1136,6 +1140,7 @@ module Increase
|
|
|
1136
1140
|
],
|
|
1137
1141
|
created_at: Time,
|
|
1138
1142
|
one_time_code: String,
|
|
1143
|
+
real_time_decision_id: T.nilable(String),
|
|
1139
1144
|
verification_method:
|
|
1140
1145
|
Increase::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod::OrSymbol,
|
|
1141
1146
|
verification_value: T.nilable(String)
|
|
@@ -1149,6 +1154,8 @@ module Increase
|
|
|
1149
1154
|
created_at:,
|
|
1150
1155
|
# The one-time code used for the Card Authentication Challenge.
|
|
1151
1156
|
one_time_code:,
|
|
1157
|
+
# The identifier of the Real-Time Decision used to deliver this challenge.
|
|
1158
|
+
real_time_decision_id:,
|
|
1152
1159
|
# The method used to verify the Card Authentication Challenge.
|
|
1153
1160
|
verification_method:,
|
|
1154
1161
|
# E.g., the email address or phone number used for the Card Authentication
|
|
@@ -1166,6 +1173,7 @@ module Increase
|
|
|
1166
1173
|
],
|
|
1167
1174
|
created_at: Time,
|
|
1168
1175
|
one_time_code: String,
|
|
1176
|
+
real_time_decision_id: T.nilable(String),
|
|
1169
1177
|
verification_method:
|
|
1170
1178
|
Increase::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod::TaggedSymbol,
|
|
1171
1179
|
verification_value: T.nilable(String)
|
|
@@ -49,6 +49,22 @@ module Increase
|
|
|
49
49
|
sig { params(last4: String).void }
|
|
50
50
|
attr_writer :last4
|
|
51
51
|
|
|
52
|
+
# The outcome to simulate for card push transfers using this token.
|
|
53
|
+
sig do
|
|
54
|
+
returns(
|
|
55
|
+
T.nilable(Increase::Simulations::CardTokenCreateParams::Outcome)
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
attr_reader :outcome
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
params(
|
|
62
|
+
outcome:
|
|
63
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::OrHash
|
|
64
|
+
).void
|
|
65
|
+
end
|
|
66
|
+
attr_writer :outcome
|
|
67
|
+
|
|
52
68
|
# The prefix of the card number, usually the first 8 digits.
|
|
53
69
|
sig { returns(T.nilable(String)) }
|
|
54
70
|
attr_reader :prefix
|
|
@@ -71,6 +87,8 @@ module Increase
|
|
|
71
87
|
],
|
|
72
88
|
expiration: Date,
|
|
73
89
|
last4: String,
|
|
90
|
+
outcome:
|
|
91
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::OrHash,
|
|
74
92
|
prefix: String,
|
|
75
93
|
primary_account_number_length: Integer,
|
|
76
94
|
request_options: Increase::RequestOptions::OrHash
|
|
@@ -83,6 +101,8 @@ module Increase
|
|
|
83
101
|
expiration: nil,
|
|
84
102
|
# The last 4 digits of the card number.
|
|
85
103
|
last4: nil,
|
|
104
|
+
# The outcome to simulate for card push transfers using this token.
|
|
105
|
+
outcome: nil,
|
|
86
106
|
# The prefix of the card number, usually the first 8 digits.
|
|
87
107
|
prefix: nil,
|
|
88
108
|
# The total length of the card number, including prefix and last4.
|
|
@@ -100,6 +120,7 @@ module Increase
|
|
|
100
120
|
],
|
|
101
121
|
expiration: Date,
|
|
102
122
|
last4: String,
|
|
123
|
+
outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
103
124
|
prefix: String,
|
|
104
125
|
primary_account_number_length: Integer,
|
|
105
126
|
request_options: Increase::RequestOptions
|
|
@@ -291,6 +312,480 @@ module Increase
|
|
|
291
312
|
end
|
|
292
313
|
end
|
|
293
314
|
end
|
|
315
|
+
|
|
316
|
+
class Outcome < Increase::Internal::Type::BaseModel
|
|
317
|
+
OrHash =
|
|
318
|
+
T.type_alias do
|
|
319
|
+
T.any(
|
|
320
|
+
Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
321
|
+
Increase::Internal::AnyHash
|
|
322
|
+
)
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Whether card push transfers or validations will be approved or declined.
|
|
326
|
+
sig do
|
|
327
|
+
returns(
|
|
328
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol
|
|
329
|
+
)
|
|
330
|
+
end
|
|
331
|
+
attr_accessor :result
|
|
332
|
+
|
|
333
|
+
# If the result is declined, the details of the decline.
|
|
334
|
+
sig do
|
|
335
|
+
returns(
|
|
336
|
+
T.nilable(
|
|
337
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
338
|
+
)
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
attr_reader :decline
|
|
342
|
+
|
|
343
|
+
sig do
|
|
344
|
+
params(
|
|
345
|
+
decline:
|
|
346
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::OrHash
|
|
347
|
+
).void
|
|
348
|
+
end
|
|
349
|
+
attr_writer :decline
|
|
350
|
+
|
|
351
|
+
# The outcome to simulate for card push transfers using this token.
|
|
352
|
+
sig do
|
|
353
|
+
params(
|
|
354
|
+
result:
|
|
355
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol,
|
|
356
|
+
decline:
|
|
357
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::OrHash
|
|
358
|
+
).returns(T.attached_class)
|
|
359
|
+
end
|
|
360
|
+
def self.new(
|
|
361
|
+
# Whether card push transfers or validations will be approved or declined.
|
|
362
|
+
result:,
|
|
363
|
+
# If the result is declined, the details of the decline.
|
|
364
|
+
decline: nil
|
|
365
|
+
)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
sig do
|
|
369
|
+
override.returns(
|
|
370
|
+
{
|
|
371
|
+
result:
|
|
372
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol,
|
|
373
|
+
decline:
|
|
374
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
end
|
|
378
|
+
def to_hash
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Whether card push transfers or validations will be approved or declined.
|
|
382
|
+
module Result
|
|
383
|
+
extend Increase::Internal::Type::Enum
|
|
384
|
+
|
|
385
|
+
TaggedSymbol =
|
|
386
|
+
T.type_alias do
|
|
387
|
+
T.all(
|
|
388
|
+
Symbol,
|
|
389
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result
|
|
390
|
+
)
|
|
391
|
+
end
|
|
392
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
393
|
+
|
|
394
|
+
# Any card push transfers or validations will be approved.
|
|
395
|
+
APPROVE =
|
|
396
|
+
T.let(
|
|
397
|
+
:approve,
|
|
398
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
# Any card push transfers or validations will be declined.
|
|
402
|
+
DECLINE =
|
|
403
|
+
T.let(
|
|
404
|
+
:decline,
|
|
405
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
sig do
|
|
409
|
+
override.returns(
|
|
410
|
+
T::Array[
|
|
411
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
|
|
412
|
+
]
|
|
413
|
+
)
|
|
414
|
+
end
|
|
415
|
+
def self.values
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
class Decline < Increase::Internal::Type::BaseModel
|
|
420
|
+
OrHash =
|
|
421
|
+
T.type_alias do
|
|
422
|
+
T.any(
|
|
423
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline,
|
|
424
|
+
Increase::Internal::AnyHash
|
|
425
|
+
)
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
# The reason for the decline.
|
|
429
|
+
sig do
|
|
430
|
+
returns(
|
|
431
|
+
T.nilable(
|
|
432
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
|
|
433
|
+
)
|
|
434
|
+
)
|
|
435
|
+
end
|
|
436
|
+
attr_reader :reason
|
|
437
|
+
|
|
438
|
+
sig do
|
|
439
|
+
params(
|
|
440
|
+
reason:
|
|
441
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
|
|
442
|
+
).void
|
|
443
|
+
end
|
|
444
|
+
attr_writer :reason
|
|
445
|
+
|
|
446
|
+
# If the result is declined, the details of the decline.
|
|
447
|
+
sig do
|
|
448
|
+
params(
|
|
449
|
+
reason:
|
|
450
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
|
|
451
|
+
).returns(T.attached_class)
|
|
452
|
+
end
|
|
453
|
+
def self.new(
|
|
454
|
+
# The reason for the decline.
|
|
455
|
+
reason: nil
|
|
456
|
+
)
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
sig do
|
|
460
|
+
override.returns(
|
|
461
|
+
{
|
|
462
|
+
reason:
|
|
463
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
end
|
|
467
|
+
def to_hash
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# The reason for the decline.
|
|
471
|
+
module Reason
|
|
472
|
+
extend Increase::Internal::Type::Enum
|
|
473
|
+
|
|
474
|
+
TaggedSymbol =
|
|
475
|
+
T.type_alias do
|
|
476
|
+
T.all(
|
|
477
|
+
Symbol,
|
|
478
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason
|
|
479
|
+
)
|
|
480
|
+
end
|
|
481
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
482
|
+
|
|
483
|
+
# The card issuer has declined the transaction without providing a specific reason.
|
|
484
|
+
DO_NOT_HONOR =
|
|
485
|
+
T.let(
|
|
486
|
+
:do_not_honor,
|
|
487
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
# The number of transactions for the card has exceeded the limit set by the issuer.
|
|
491
|
+
ACTIVITY_COUNT_LIMIT_EXCEEDED =
|
|
492
|
+
T.let(
|
|
493
|
+
:activity_count_limit_exceeded,
|
|
494
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
495
|
+
)
|
|
496
|
+
|
|
497
|
+
# The card issuer requires the cardholder to contact them for further information regarding the transaction.
|
|
498
|
+
REFER_TO_CARD_ISSUER =
|
|
499
|
+
T.let(
|
|
500
|
+
:refer_to_card_issuer,
|
|
501
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
# The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
|
|
505
|
+
REFER_TO_CARD_ISSUER_SPECIAL_CONDITION =
|
|
506
|
+
T.let(
|
|
507
|
+
:refer_to_card_issuer_special_condition,
|
|
508
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
# The merchant is not valid for this transaction.
|
|
512
|
+
INVALID_MERCHANT =
|
|
513
|
+
T.let(
|
|
514
|
+
:invalid_merchant,
|
|
515
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
516
|
+
)
|
|
517
|
+
|
|
518
|
+
# The card should be retained by the terminal.
|
|
519
|
+
PICK_UP_CARD =
|
|
520
|
+
T.let(
|
|
521
|
+
:pick_up_card,
|
|
522
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
# An error occurred during processing of the transaction.
|
|
526
|
+
ERROR =
|
|
527
|
+
T.let(
|
|
528
|
+
:error,
|
|
529
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
530
|
+
)
|
|
531
|
+
|
|
532
|
+
# The card should be retained by the terminal due to a special condition.
|
|
533
|
+
PICK_UP_CARD_SPECIAL =
|
|
534
|
+
T.let(
|
|
535
|
+
:pick_up_card_special,
|
|
536
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
# The transaction is invalid and cannot be processed.
|
|
540
|
+
INVALID_TRANSACTION =
|
|
541
|
+
T.let(
|
|
542
|
+
:invalid_transaction,
|
|
543
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
# The amount of the transaction is invalid.
|
|
547
|
+
INVALID_AMOUNT =
|
|
548
|
+
T.let(
|
|
549
|
+
:invalid_amount,
|
|
550
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
551
|
+
)
|
|
552
|
+
|
|
553
|
+
# The account number provided is invalid.
|
|
554
|
+
INVALID_ACCOUNT_NUMBER =
|
|
555
|
+
T.let(
|
|
556
|
+
:invalid_account_number,
|
|
557
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
# The issuer of the card could not be found.
|
|
561
|
+
NO_SUCH_ISSUER =
|
|
562
|
+
T.let(
|
|
563
|
+
:no_such_issuer,
|
|
564
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
# The transaction should be re-entered for processing.
|
|
568
|
+
RE_ENTER_TRANSACTION =
|
|
569
|
+
T.let(
|
|
570
|
+
:re_enter_transaction,
|
|
571
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
# There is no credit account associated with the card.
|
|
575
|
+
NO_CREDIT_ACCOUNT =
|
|
576
|
+
T.let(
|
|
577
|
+
:no_credit_account,
|
|
578
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
579
|
+
)
|
|
580
|
+
|
|
581
|
+
# The card should be retained by the terminal because it has been reported lost.
|
|
582
|
+
PICK_UP_CARD_LOST =
|
|
583
|
+
T.let(
|
|
584
|
+
:pick_up_card_lost,
|
|
585
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
586
|
+
)
|
|
587
|
+
|
|
588
|
+
# The card should be retained by the terminal because it has been reported stolen.
|
|
589
|
+
PICK_UP_CARD_STOLEN =
|
|
590
|
+
T.let(
|
|
591
|
+
:pick_up_card_stolen,
|
|
592
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
593
|
+
)
|
|
594
|
+
|
|
595
|
+
# The account associated with the card has been closed.
|
|
596
|
+
CLOSED_ACCOUNT =
|
|
597
|
+
T.let(
|
|
598
|
+
:closed_account,
|
|
599
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
# There are insufficient funds in the account to complete the transaction.
|
|
603
|
+
INSUFFICIENT_FUNDS =
|
|
604
|
+
T.let(
|
|
605
|
+
:insufficient_funds,
|
|
606
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
607
|
+
)
|
|
608
|
+
|
|
609
|
+
# There is no checking account associated with the card.
|
|
610
|
+
NO_CHECKING_ACCOUNT =
|
|
611
|
+
T.let(
|
|
612
|
+
:no_checking_account,
|
|
613
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
614
|
+
)
|
|
615
|
+
|
|
616
|
+
# There is no savings account associated with the card.
|
|
617
|
+
NO_SAVINGS_ACCOUNT =
|
|
618
|
+
T.let(
|
|
619
|
+
:no_savings_account,
|
|
620
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
621
|
+
)
|
|
622
|
+
|
|
623
|
+
# The card has expired and cannot be used for transactions.
|
|
624
|
+
EXPIRED_CARD =
|
|
625
|
+
T.let(
|
|
626
|
+
:expired_card,
|
|
627
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
# The transaction is not permitted for this cardholder.
|
|
631
|
+
TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER =
|
|
632
|
+
T.let(
|
|
633
|
+
:transaction_not_permitted_to_cardholder,
|
|
634
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
# The transaction is not allowed at this terminal.
|
|
638
|
+
TRANSACTION_NOT_ALLOWED_AT_TERMINAL =
|
|
639
|
+
T.let(
|
|
640
|
+
:transaction_not_allowed_at_terminal,
|
|
641
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
642
|
+
)
|
|
643
|
+
|
|
644
|
+
# The transaction has been flagged as suspected fraud and cannot be processed.
|
|
645
|
+
SUSPECTED_FRAUD =
|
|
646
|
+
T.let(
|
|
647
|
+
:suspected_fraud,
|
|
648
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
649
|
+
)
|
|
650
|
+
|
|
651
|
+
# The amount of activity on the card has exceeded the limit set by the issuer.
|
|
652
|
+
ACTIVITY_AMOUNT_LIMIT_EXCEEDED =
|
|
653
|
+
T.let(
|
|
654
|
+
:activity_amount_limit_exceeded,
|
|
655
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
# The card has restrictions that prevent it from being used for this transaction.
|
|
659
|
+
RESTRICTED_CARD =
|
|
660
|
+
T.let(
|
|
661
|
+
:restricted_card,
|
|
662
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
# A security violation has occurred, preventing the transaction from being processed.
|
|
666
|
+
SECURITY_VIOLATION =
|
|
667
|
+
T.let(
|
|
668
|
+
:security_violation,
|
|
669
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
670
|
+
)
|
|
671
|
+
|
|
672
|
+
# The transaction does not meet the anti-money laundering requirements set by the issuer.
|
|
673
|
+
TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT =
|
|
674
|
+
T.let(
|
|
675
|
+
:transaction_does_not_fulfill_anti_money_laundering_requirement,
|
|
676
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
677
|
+
)
|
|
678
|
+
|
|
679
|
+
# The first use of the card has been blocked by the issuer.
|
|
680
|
+
BLOCKED_FIRST_USE =
|
|
681
|
+
T.let(
|
|
682
|
+
:blocked_first_use,
|
|
683
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
# The credit issuer is currently unavailable to process the transaction.
|
|
687
|
+
CREDIT_ISSUER_UNAVAILABLE =
|
|
688
|
+
T.let(
|
|
689
|
+
:credit_issuer_unavailable,
|
|
690
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
# The card verification value (CVV) results were negative, indicating a potential issue with the card.
|
|
694
|
+
NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS =
|
|
695
|
+
T.let(
|
|
696
|
+
:negative_card_verification_value_results,
|
|
697
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
# The issuer of the card is currently unavailable to process the transaction.
|
|
701
|
+
ISSUER_UNAVAILABLE =
|
|
702
|
+
T.let(
|
|
703
|
+
:issuer_unavailable,
|
|
704
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
705
|
+
)
|
|
706
|
+
|
|
707
|
+
# The financial institution associated with the card could not be found.
|
|
708
|
+
FINANCIAL_INSTITUTION_CANNOT_BE_FOUND =
|
|
709
|
+
T.let(
|
|
710
|
+
:financial_institution_cannot_be_found,
|
|
711
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
712
|
+
)
|
|
713
|
+
|
|
714
|
+
# The transaction cannot be completed due to an unspecified reason.
|
|
715
|
+
TRANSACTION_CANNOT_BE_COMPLETED =
|
|
716
|
+
T.let(
|
|
717
|
+
:transaction_cannot_be_completed,
|
|
718
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
# The transaction is a duplicate of a previous transaction and cannot be processed again.
|
|
722
|
+
DUPLICATE_TRANSACTION =
|
|
723
|
+
T.let(
|
|
724
|
+
:duplicate_transaction,
|
|
725
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
# A system malfunction occurred, preventing the transaction from being processed.
|
|
729
|
+
SYSTEM_MALFUNCTION =
|
|
730
|
+
T.let(
|
|
731
|
+
:system_malfunction,
|
|
732
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
733
|
+
)
|
|
734
|
+
|
|
735
|
+
# Additional customer authentication is required to complete the transaction.
|
|
736
|
+
ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED =
|
|
737
|
+
T.let(
|
|
738
|
+
:additional_customer_authentication_required,
|
|
739
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
# The surcharge amount applied to the transaction is not permitted by the issuer.
|
|
743
|
+
SURCHARGE_AMOUNT_NOT_PERMITTED =
|
|
744
|
+
T.let(
|
|
745
|
+
:surcharge_amount_not_permitted,
|
|
746
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
747
|
+
)
|
|
748
|
+
|
|
749
|
+
# The transaction was declined due to a failure in verifying the CVV2 code.
|
|
750
|
+
DECLINE_FOR_CVV2_FAILURE =
|
|
751
|
+
T.let(
|
|
752
|
+
:decline_for_cvv2_failure,
|
|
753
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
# A stop payment order has been placed on this transaction.
|
|
757
|
+
STOP_PAYMENT_ORDER =
|
|
758
|
+
T.let(
|
|
759
|
+
:stop_payment_order,
|
|
760
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
761
|
+
)
|
|
762
|
+
|
|
763
|
+
# An order has been placed to revoke authorization for this transaction.
|
|
764
|
+
REVOCATION_OF_AUTHORIZATION_ORDER =
|
|
765
|
+
T.let(
|
|
766
|
+
:revocation_of_authorization_order,
|
|
767
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
768
|
+
)
|
|
769
|
+
|
|
770
|
+
# An order has been placed to revoke all authorizations for this cardholder.
|
|
771
|
+
REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER =
|
|
772
|
+
T.let(
|
|
773
|
+
:revocation_of_all_authorizations_order,
|
|
774
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
775
|
+
)
|
|
776
|
+
|
|
777
|
+
sig do
|
|
778
|
+
override.returns(
|
|
779
|
+
T::Array[
|
|
780
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
|
|
781
|
+
]
|
|
782
|
+
)
|
|
783
|
+
end
|
|
784
|
+
def self.values
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
end
|
|
788
|
+
end
|
|
294
789
|
end
|
|
295
790
|
end
|
|
296
791
|
end
|
|
@@ -13,6 +13,8 @@ module Increase
|
|
|
13
13
|
],
|
|
14
14
|
expiration: Date,
|
|
15
15
|
last4: String,
|
|
16
|
+
outcome:
|
|
17
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::OrHash,
|
|
16
18
|
prefix: String,
|
|
17
19
|
primary_account_number_length: Integer,
|
|
18
20
|
request_options: Increase::RequestOptions::OrHash
|
|
@@ -25,6 +27,8 @@ module Increase
|
|
|
25
27
|
expiration: nil,
|
|
26
28
|
# The last 4 digits of the card number.
|
|
27
29
|
last4: nil,
|
|
30
|
+
# The outcome to simulate for card push transfers using this token.
|
|
31
|
+
outcome: nil,
|
|
28
32
|
# The prefix of the card number, usually the first 8 digits.
|
|
29
33
|
prefix: nil,
|
|
30
34
|
# The total length of the card number, including prefix and last4.
|
|
@@ -418,6 +418,7 @@ module Increase
|
|
|
418
418
|
attempts: ::Array[Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt],
|
|
419
419
|
created_at: Time,
|
|
420
420
|
one_time_code: String,
|
|
421
|
+
real_time_decision_id: String?,
|
|
421
422
|
verification_method: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::verification_method,
|
|
422
423
|
verification_value: String?
|
|
423
424
|
}
|
|
@@ -429,6 +430,8 @@ module Increase
|
|
|
429
430
|
|
|
430
431
|
attr_accessor one_time_code: String
|
|
431
432
|
|
|
433
|
+
attr_accessor real_time_decision_id: String?
|
|
434
|
+
|
|
432
435
|
attr_accessor verification_method: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::verification_method
|
|
433
436
|
|
|
434
437
|
attr_accessor verification_value: String?
|
|
@@ -437,6 +440,7 @@ module Increase
|
|
|
437
440
|
attempts: ::Array[Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt],
|
|
438
441
|
created_at: Time,
|
|
439
442
|
one_time_code: String,
|
|
443
|
+
real_time_decision_id: String?,
|
|
440
444
|
verification_method: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::verification_method,
|
|
441
445
|
verification_value: String?
|
|
442
446
|
) -> void
|
|
@@ -445,6 +449,7 @@ module Increase
|
|
|
445
449
|
attempts: ::Array[Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt],
|
|
446
450
|
created_at: Time,
|
|
447
451
|
one_time_code: String,
|
|
452
|
+
real_time_decision_id: String?,
|
|
448
453
|
verification_method: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::verification_method,
|
|
449
454
|
verification_value: String?
|
|
450
455
|
}
|
|
@@ -6,6 +6,7 @@ module Increase
|
|
|
6
6
|
capabilities: ::Array[Increase::Simulations::CardTokenCreateParams::Capability],
|
|
7
7
|
expiration: Date,
|
|
8
8
|
:last4 => String,
|
|
9
|
+
outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
9
10
|
prefix: String,
|
|
10
11
|
primary_account_number_length: Integer
|
|
11
12
|
}
|
|
@@ -29,6 +30,12 @@ module Increase
|
|
|
29
30
|
|
|
30
31
|
def last4=: (String) -> String
|
|
31
32
|
|
|
33
|
+
attr_reader outcome: Increase::Simulations::CardTokenCreateParams::Outcome?
|
|
34
|
+
|
|
35
|
+
def outcome=: (
|
|
36
|
+
Increase::Simulations::CardTokenCreateParams::Outcome
|
|
37
|
+
) -> Increase::Simulations::CardTokenCreateParams::Outcome
|
|
38
|
+
|
|
32
39
|
attr_reader prefix: String?
|
|
33
40
|
|
|
34
41
|
def prefix=: (String) -> String
|
|
@@ -41,6 +48,7 @@ module Increase
|
|
|
41
48
|
?capabilities: ::Array[Increase::Simulations::CardTokenCreateParams::Capability],
|
|
42
49
|
?expiration: Date,
|
|
43
50
|
?last4: String,
|
|
51
|
+
?outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
44
52
|
?prefix: String,
|
|
45
53
|
?primary_account_number_length: Integer,
|
|
46
54
|
?request_options: Increase::request_opts
|
|
@@ -50,6 +58,7 @@ module Increase
|
|
|
50
58
|
capabilities: ::Array[Increase::Simulations::CardTokenCreateParams::Capability],
|
|
51
59
|
expiration: Date,
|
|
52
60
|
:last4 => String,
|
|
61
|
+
outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
53
62
|
prefix: String,
|
|
54
63
|
primary_account_number_length: Integer,
|
|
55
64
|
request_options: Increase::RequestOptions
|
|
@@ -123,6 +132,243 @@ module Increase
|
|
|
123
132
|
def self?.values: -> ::Array[Increase::Models::Simulations::CardTokenCreateParams::Capability::route]
|
|
124
133
|
end
|
|
125
134
|
end
|
|
135
|
+
|
|
136
|
+
type outcome =
|
|
137
|
+
{
|
|
138
|
+
result: Increase::Models::Simulations::CardTokenCreateParams::Outcome::result,
|
|
139
|
+
decline: Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
class Outcome < Increase::Internal::Type::BaseModel
|
|
143
|
+
attr_accessor result: Increase::Models::Simulations::CardTokenCreateParams::Outcome::result
|
|
144
|
+
|
|
145
|
+
attr_reader decline: Increase::Simulations::CardTokenCreateParams::Outcome::Decline?
|
|
146
|
+
|
|
147
|
+
def decline=: (
|
|
148
|
+
Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
149
|
+
) -> Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
150
|
+
|
|
151
|
+
def initialize: (
|
|
152
|
+
result: Increase::Models::Simulations::CardTokenCreateParams::Outcome::result,
|
|
153
|
+
?decline: Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
154
|
+
) -> void
|
|
155
|
+
|
|
156
|
+
def to_hash: -> {
|
|
157
|
+
result: Increase::Models::Simulations::CardTokenCreateParams::Outcome::result,
|
|
158
|
+
decline: Increase::Simulations::CardTokenCreateParams::Outcome::Decline
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
type result = :approve | :decline
|
|
162
|
+
|
|
163
|
+
module Result
|
|
164
|
+
extend Increase::Internal::Type::Enum
|
|
165
|
+
|
|
166
|
+
# Any card push transfers or validations will be approved.
|
|
167
|
+
APPROVE: :approve
|
|
168
|
+
|
|
169
|
+
# Any card push transfers or validations will be declined.
|
|
170
|
+
DECLINE: :decline
|
|
171
|
+
|
|
172
|
+
def self?.values: -> ::Array[Increase::Models::Simulations::CardTokenCreateParams::Outcome::result]
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
type decline =
|
|
176
|
+
{
|
|
177
|
+
reason: Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
class Decline < Increase::Internal::Type::BaseModel
|
|
181
|
+
attr_reader reason: Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason?
|
|
182
|
+
|
|
183
|
+
def reason=: (
|
|
184
|
+
Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason
|
|
185
|
+
) -> Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason
|
|
186
|
+
|
|
187
|
+
def initialize: (
|
|
188
|
+
?reason: Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
reason: Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
type reason =
|
|
196
|
+
:do_not_honor
|
|
197
|
+
| :activity_count_limit_exceeded
|
|
198
|
+
| :refer_to_card_issuer
|
|
199
|
+
| :refer_to_card_issuer_special_condition
|
|
200
|
+
| :invalid_merchant
|
|
201
|
+
| :pick_up_card
|
|
202
|
+
| :error
|
|
203
|
+
| :pick_up_card_special
|
|
204
|
+
| :invalid_transaction
|
|
205
|
+
| :invalid_amount
|
|
206
|
+
| :invalid_account_number
|
|
207
|
+
| :no_such_issuer
|
|
208
|
+
| :re_enter_transaction
|
|
209
|
+
| :no_credit_account
|
|
210
|
+
| :pick_up_card_lost
|
|
211
|
+
| :pick_up_card_stolen
|
|
212
|
+
| :closed_account
|
|
213
|
+
| :insufficient_funds
|
|
214
|
+
| :no_checking_account
|
|
215
|
+
| :no_savings_account
|
|
216
|
+
| :expired_card
|
|
217
|
+
| :transaction_not_permitted_to_cardholder
|
|
218
|
+
| :transaction_not_allowed_at_terminal
|
|
219
|
+
| :suspected_fraud
|
|
220
|
+
| :activity_amount_limit_exceeded
|
|
221
|
+
| :restricted_card
|
|
222
|
+
| :security_violation
|
|
223
|
+
| :transaction_does_not_fulfill_anti_money_laundering_requirement
|
|
224
|
+
| :blocked_first_use
|
|
225
|
+
| :credit_issuer_unavailable
|
|
226
|
+
| :negative_card_verification_value_results
|
|
227
|
+
| :issuer_unavailable
|
|
228
|
+
| :financial_institution_cannot_be_found
|
|
229
|
+
| :transaction_cannot_be_completed
|
|
230
|
+
| :duplicate_transaction
|
|
231
|
+
| :system_malfunction
|
|
232
|
+
| :additional_customer_authentication_required
|
|
233
|
+
| :surcharge_amount_not_permitted
|
|
234
|
+
| :decline_for_cvv2_failure
|
|
235
|
+
| :stop_payment_order
|
|
236
|
+
| :revocation_of_authorization_order
|
|
237
|
+
| :revocation_of_all_authorizations_order
|
|
238
|
+
|
|
239
|
+
module Reason
|
|
240
|
+
extend Increase::Internal::Type::Enum
|
|
241
|
+
|
|
242
|
+
# The card issuer has declined the transaction without providing a specific reason.
|
|
243
|
+
DO_NOT_HONOR: :do_not_honor
|
|
244
|
+
|
|
245
|
+
# The number of transactions for the card has exceeded the limit set by the issuer.
|
|
246
|
+
ACTIVITY_COUNT_LIMIT_EXCEEDED: :activity_count_limit_exceeded
|
|
247
|
+
|
|
248
|
+
# The card issuer requires the cardholder to contact them for further information regarding the transaction.
|
|
249
|
+
REFER_TO_CARD_ISSUER: :refer_to_card_issuer
|
|
250
|
+
|
|
251
|
+
# The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
|
|
252
|
+
REFER_TO_CARD_ISSUER_SPECIAL_CONDITION: :refer_to_card_issuer_special_condition
|
|
253
|
+
|
|
254
|
+
# The merchant is not valid for this transaction.
|
|
255
|
+
INVALID_MERCHANT: :invalid_merchant
|
|
256
|
+
|
|
257
|
+
# The card should be retained by the terminal.
|
|
258
|
+
PICK_UP_CARD: :pick_up_card
|
|
259
|
+
|
|
260
|
+
# An error occurred during processing of the transaction.
|
|
261
|
+
ERROR: :error
|
|
262
|
+
|
|
263
|
+
# The card should be retained by the terminal due to a special condition.
|
|
264
|
+
PICK_UP_CARD_SPECIAL: :pick_up_card_special
|
|
265
|
+
|
|
266
|
+
# The transaction is invalid and cannot be processed.
|
|
267
|
+
INVALID_TRANSACTION: :invalid_transaction
|
|
268
|
+
|
|
269
|
+
# The amount of the transaction is invalid.
|
|
270
|
+
INVALID_AMOUNT: :invalid_amount
|
|
271
|
+
|
|
272
|
+
# The account number provided is invalid.
|
|
273
|
+
INVALID_ACCOUNT_NUMBER: :invalid_account_number
|
|
274
|
+
|
|
275
|
+
# The issuer of the card could not be found.
|
|
276
|
+
NO_SUCH_ISSUER: :no_such_issuer
|
|
277
|
+
|
|
278
|
+
# The transaction should be re-entered for processing.
|
|
279
|
+
RE_ENTER_TRANSACTION: :re_enter_transaction
|
|
280
|
+
|
|
281
|
+
# There is no credit account associated with the card.
|
|
282
|
+
NO_CREDIT_ACCOUNT: :no_credit_account
|
|
283
|
+
|
|
284
|
+
# The card should be retained by the terminal because it has been reported lost.
|
|
285
|
+
PICK_UP_CARD_LOST: :pick_up_card_lost
|
|
286
|
+
|
|
287
|
+
# The card should be retained by the terminal because it has been reported stolen.
|
|
288
|
+
PICK_UP_CARD_STOLEN: :pick_up_card_stolen
|
|
289
|
+
|
|
290
|
+
# The account associated with the card has been closed.
|
|
291
|
+
CLOSED_ACCOUNT: :closed_account
|
|
292
|
+
|
|
293
|
+
# There are insufficient funds in the account to complete the transaction.
|
|
294
|
+
INSUFFICIENT_FUNDS: :insufficient_funds
|
|
295
|
+
|
|
296
|
+
# There is no checking account associated with the card.
|
|
297
|
+
NO_CHECKING_ACCOUNT: :no_checking_account
|
|
298
|
+
|
|
299
|
+
# There is no savings account associated with the card.
|
|
300
|
+
NO_SAVINGS_ACCOUNT: :no_savings_account
|
|
301
|
+
|
|
302
|
+
# The card has expired and cannot be used for transactions.
|
|
303
|
+
EXPIRED_CARD: :expired_card
|
|
304
|
+
|
|
305
|
+
# The transaction is not permitted for this cardholder.
|
|
306
|
+
TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER: :transaction_not_permitted_to_cardholder
|
|
307
|
+
|
|
308
|
+
# The transaction is not allowed at this terminal.
|
|
309
|
+
TRANSACTION_NOT_ALLOWED_AT_TERMINAL: :transaction_not_allowed_at_terminal
|
|
310
|
+
|
|
311
|
+
# The transaction has been flagged as suspected fraud and cannot be processed.
|
|
312
|
+
SUSPECTED_FRAUD: :suspected_fraud
|
|
313
|
+
|
|
314
|
+
# The amount of activity on the card has exceeded the limit set by the issuer.
|
|
315
|
+
ACTIVITY_AMOUNT_LIMIT_EXCEEDED: :activity_amount_limit_exceeded
|
|
316
|
+
|
|
317
|
+
# The card has restrictions that prevent it from being used for this transaction.
|
|
318
|
+
RESTRICTED_CARD: :restricted_card
|
|
319
|
+
|
|
320
|
+
# A security violation has occurred, preventing the transaction from being processed.
|
|
321
|
+
SECURITY_VIOLATION: :security_violation
|
|
322
|
+
|
|
323
|
+
# The transaction does not meet the anti-money laundering requirements set by the issuer.
|
|
324
|
+
TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT: :transaction_does_not_fulfill_anti_money_laundering_requirement
|
|
325
|
+
|
|
326
|
+
# The first use of the card has been blocked by the issuer.
|
|
327
|
+
BLOCKED_FIRST_USE: :blocked_first_use
|
|
328
|
+
|
|
329
|
+
# The credit issuer is currently unavailable to process the transaction.
|
|
330
|
+
CREDIT_ISSUER_UNAVAILABLE: :credit_issuer_unavailable
|
|
331
|
+
|
|
332
|
+
# The card verification value (CVV) results were negative, indicating a potential issue with the card.
|
|
333
|
+
NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS: :negative_card_verification_value_results
|
|
334
|
+
|
|
335
|
+
# The issuer of the card is currently unavailable to process the transaction.
|
|
336
|
+
ISSUER_UNAVAILABLE: :issuer_unavailable
|
|
337
|
+
|
|
338
|
+
# The financial institution associated with the card could not be found.
|
|
339
|
+
FINANCIAL_INSTITUTION_CANNOT_BE_FOUND: :financial_institution_cannot_be_found
|
|
340
|
+
|
|
341
|
+
# The transaction cannot be completed due to an unspecified reason.
|
|
342
|
+
TRANSACTION_CANNOT_BE_COMPLETED: :transaction_cannot_be_completed
|
|
343
|
+
|
|
344
|
+
# The transaction is a duplicate of a previous transaction and cannot be processed again.
|
|
345
|
+
DUPLICATE_TRANSACTION: :duplicate_transaction
|
|
346
|
+
|
|
347
|
+
# A system malfunction occurred, preventing the transaction from being processed.
|
|
348
|
+
SYSTEM_MALFUNCTION: :system_malfunction
|
|
349
|
+
|
|
350
|
+
# Additional customer authentication is required to complete the transaction.
|
|
351
|
+
ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED: :additional_customer_authentication_required
|
|
352
|
+
|
|
353
|
+
# The surcharge amount applied to the transaction is not permitted by the issuer.
|
|
354
|
+
SURCHARGE_AMOUNT_NOT_PERMITTED: :surcharge_amount_not_permitted
|
|
355
|
+
|
|
356
|
+
# The transaction was declined due to a failure in verifying the CVV2 code.
|
|
357
|
+
DECLINE_FOR_CVV2_FAILURE: :decline_for_cvv2_failure
|
|
358
|
+
|
|
359
|
+
# A stop payment order has been placed on this transaction.
|
|
360
|
+
STOP_PAYMENT_ORDER: :stop_payment_order
|
|
361
|
+
|
|
362
|
+
# An order has been placed to revoke authorization for this transaction.
|
|
363
|
+
REVOCATION_OF_AUTHORIZATION_ORDER: :revocation_of_authorization_order
|
|
364
|
+
|
|
365
|
+
# An order has been placed to revoke all authorizations for this cardholder.
|
|
366
|
+
REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER: :revocation_of_all_authorizations_order
|
|
367
|
+
|
|
368
|
+
def self?.values: -> ::Array[Increase::Models::Simulations::CardTokenCreateParams::Outcome::Decline::reason]
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
end
|
|
126
372
|
end
|
|
127
373
|
end
|
|
128
374
|
end
|
|
@@ -6,6 +6,7 @@ module Increase
|
|
|
6
6
|
?capabilities: ::Array[Increase::Simulations::CardTokenCreateParams::Capability],
|
|
7
7
|
?expiration: Date,
|
|
8
8
|
?last4: String,
|
|
9
|
+
?outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
|
|
9
10
|
?prefix: String,
|
|
10
11
|
?primary_account_number_length: Integer,
|
|
11
12
|
?request_options: Increase::request_opts
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.241.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|