increase 1.33.0 → 1.35.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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +12 -0
  5. data/lib/increase/models/card_push_transfer.rb +824 -0
  6. data/lib/increase/models/card_push_transfer_approve_params.rb +14 -0
  7. data/lib/increase/models/card_push_transfer_cancel_params.rb +14 -0
  8. data/lib/increase/models/card_push_transfer_create_params.rb +215 -0
  9. data/lib/increase/models/card_push_transfer_list_params.rb +159 -0
  10. data/lib/increase/models/card_push_transfer_retrieve_params.rb +14 -0
  11. data/lib/increase/models/card_token.rb +87 -0
  12. data/lib/increase/models/card_token_capabilities.rb +123 -0
  13. data/lib/increase/models/card_token_capabilities_params.rb +14 -0
  14. data/lib/increase/models/card_token_list_params.rb +83 -0
  15. data/lib/increase/models/card_token_retrieve_params.rb +14 -0
  16. data/lib/increase/models/card_validation.rb +759 -0
  17. data/lib/increase/models/card_validation_create_params.rb +116 -0
  18. data/lib/increase/models/card_validation_list_params.rb +150 -0
  19. data/lib/increase/models/card_validation_retrieve_params.rb +14 -0
  20. data/lib/increase/models/external_account.rb +3 -0
  21. data/lib/increase/models/external_account_create_params.rb +3 -0
  22. data/lib/increase/models/external_account_update_params.rb +3 -0
  23. data/lib/increase/models/simulations/card_token_create_params.rb +140 -0
  24. data/lib/increase/models.rb +30 -0
  25. data/lib/increase/resources/card_push_transfers.rb +167 -0
  26. data/lib/increase/resources/card_tokens.rb +86 -0
  27. data/lib/increase/resources/card_validations.rb +117 -0
  28. data/lib/increase/resources/simulations/card_tokens.rb +46 -0
  29. data/lib/increase/resources/simulations.rb +4 -0
  30. data/lib/increase/version.rb +1 -1
  31. data/lib/increase.rb +20 -0
  32. data/rbi/increase/client.rbi +9 -0
  33. data/rbi/increase/models/card_push_transfer.rbi +1450 -0
  34. data/rbi/increase/models/card_push_transfer_approve_params.rbi +30 -0
  35. data/rbi/increase/models/card_push_transfer_cancel_params.rbi +30 -0
  36. data/rbi/increase/models/card_push_transfer_create_params.rbi +325 -0
  37. data/rbi/increase/models/card_push_transfer_list_params.rbi +329 -0
  38. data/rbi/increase/models/card_push_transfer_retrieve_params.rbi +30 -0
  39. data/rbi/increase/models/card_token.rbi +108 -0
  40. data/rbi/increase/models/card_token_capabilities.rbi +250 -0
  41. data/rbi/increase/models/card_token_capabilities_params.rbi +30 -0
  42. data/rbi/increase/models/card_token_list_params.rbi +146 -0
  43. data/rbi/increase/models/card_token_retrieve_params.rbi +27 -0
  44. data/rbi/increase/models/card_validation.rbi +1438 -0
  45. data/rbi/increase/models/card_validation_create_params.rbi +155 -0
  46. data/rbi/increase/models/card_validation_list_params.rbi +295 -0
  47. data/rbi/increase/models/card_validation_retrieve_params.rbi +30 -0
  48. data/rbi/increase/models/external_account.rbi +7 -0
  49. data/rbi/increase/models/external_account_create_params.rbi +7 -0
  50. data/rbi/increase/models/external_account_update_params.rbi +7 -0
  51. data/rbi/increase/models/simulations/card_token_create_params.rbi +297 -0
  52. data/rbi/increase/models.rbi +32 -0
  53. data/rbi/increase/resources/card_push_transfers.rbi +157 -0
  54. data/rbi/increase/resources/card_tokens.rbi +62 -0
  55. data/rbi/increase/resources/card_validations.rbi +107 -0
  56. data/rbi/increase/resources/simulations/card_tokens.rbi +43 -0
  57. data/rbi/increase/resources/simulations.rbi +3 -0
  58. data/sig/increase/client.rbs +6 -0
  59. data/sig/increase/models/card_push_transfer.rbs +679 -0
  60. data/sig/increase/models/card_push_transfer_approve_params.rbs +15 -0
  61. data/sig/increase/models/card_push_transfer_cancel_params.rbs +15 -0
  62. data/sig/increase/models/card_push_transfer_create_params.rbs +172 -0
  63. data/sig/increase/models/card_push_transfer_list_params.rbs +163 -0
  64. data/sig/increase/models/card_push_transfer_retrieve_params.rbs +15 -0
  65. data/sig/increase/models/card_token.rbs +60 -0
  66. data/sig/increase/models/card_token_capabilities.rbs +104 -0
  67. data/sig/increase/models/card_token_capabilities_params.rbs +15 -0
  68. data/sig/increase/models/card_token_list_params.rbs +79 -0
  69. data/sig/increase/models/card_token_retrieve_params.rbs +15 -0
  70. data/sig/increase/models/card_validation.rbs +634 -0
  71. data/sig/increase/models/card_validation_create_params.rbs +91 -0
  72. data/sig/increase/models/card_validation_list_params.rbs +151 -0
  73. data/sig/increase/models/card_validation_retrieve_params.rbs +15 -0
  74. data/sig/increase/models/external_account.rbs +4 -1
  75. data/sig/increase/models/external_account_create_params.rbs +4 -1
  76. data/sig/increase/models/external_account_update_params.rbs +4 -1
  77. data/sig/increase/models/simulations/card_token_create_params.rbs +129 -0
  78. data/sig/increase/models.rbs +30 -0
  79. data/sig/increase/resources/card_push_transfers.rbs +53 -0
  80. data/sig/increase/resources/card_tokens.rbs +24 -0
  81. data/sig/increase/resources/card_validations.rbs +38 -0
  82. data/sig/increase/resources/simulations/card_tokens.rbs +18 -0
  83. data/sig/increase/resources/simulations.rbs +2 -0
  84. metadata +62 -2
@@ -0,0 +1,634 @@
1
+ module Increase
2
+ module Models
3
+ type card_validation =
4
+ {
5
+ id: String,
6
+ acceptance: Increase::CardValidation::Acceptance?,
7
+ account_id: String,
8
+ cardholder_first_name: String?,
9
+ cardholder_last_name: String?,
10
+ cardholder_middle_name: String?,
11
+ cardholder_postal_code: String?,
12
+ cardholder_street_address: String?,
13
+ created_at: Time,
14
+ created_by: Increase::CardValidation::CreatedBy?,
15
+ decline: Increase::CardValidation::Decline?,
16
+ idempotency_key: String?,
17
+ merchant_category_code: String,
18
+ merchant_city_name: String,
19
+ merchant_name: String,
20
+ merchant_postal_code: String,
21
+ merchant_state: String,
22
+ status: Increase::Models::CardValidation::status,
23
+ submission: Increase::CardValidation::Submission?,
24
+ type: Increase::Models::CardValidation::type_
25
+ }
26
+
27
+ class CardValidation < Increase::Internal::Type::BaseModel
28
+ attr_accessor id: String
29
+
30
+ attr_accessor acceptance: Increase::CardValidation::Acceptance?
31
+
32
+ attr_accessor account_id: String
33
+
34
+ attr_accessor cardholder_first_name: String?
35
+
36
+ attr_accessor cardholder_last_name: String?
37
+
38
+ attr_accessor cardholder_middle_name: String?
39
+
40
+ attr_accessor cardholder_postal_code: String?
41
+
42
+ attr_accessor cardholder_street_address: String?
43
+
44
+ attr_accessor created_at: Time
45
+
46
+ attr_accessor created_by: Increase::CardValidation::CreatedBy?
47
+
48
+ attr_accessor decline: Increase::CardValidation::Decline?
49
+
50
+ attr_accessor idempotency_key: String?
51
+
52
+ attr_accessor merchant_category_code: String
53
+
54
+ attr_accessor merchant_city_name: String
55
+
56
+ attr_accessor merchant_name: String
57
+
58
+ attr_accessor merchant_postal_code: String
59
+
60
+ attr_accessor merchant_state: String
61
+
62
+ attr_accessor status: Increase::Models::CardValidation::status
63
+
64
+ attr_accessor submission: Increase::CardValidation::Submission?
65
+
66
+ attr_accessor type: Increase::Models::CardValidation::type_
67
+
68
+ def initialize: (
69
+ id: String,
70
+ acceptance: Increase::CardValidation::Acceptance?,
71
+ account_id: String,
72
+ cardholder_first_name: String?,
73
+ cardholder_last_name: String?,
74
+ cardholder_middle_name: String?,
75
+ cardholder_postal_code: String?,
76
+ cardholder_street_address: String?,
77
+ created_at: Time,
78
+ created_by: Increase::CardValidation::CreatedBy?,
79
+ decline: Increase::CardValidation::Decline?,
80
+ idempotency_key: String?,
81
+ merchant_category_code: String,
82
+ merchant_city_name: String,
83
+ merchant_name: String,
84
+ merchant_postal_code: String,
85
+ merchant_state: String,
86
+ status: Increase::Models::CardValidation::status,
87
+ submission: Increase::CardValidation::Submission?,
88
+ type: Increase::Models::CardValidation::type_
89
+ ) -> void
90
+
91
+ def to_hash: -> {
92
+ id: String,
93
+ acceptance: Increase::CardValidation::Acceptance?,
94
+ account_id: String,
95
+ cardholder_first_name: String?,
96
+ cardholder_last_name: String?,
97
+ cardholder_middle_name: String?,
98
+ cardholder_postal_code: String?,
99
+ cardholder_street_address: String?,
100
+ created_at: Time,
101
+ created_by: Increase::CardValidation::CreatedBy?,
102
+ decline: Increase::CardValidation::Decline?,
103
+ idempotency_key: String?,
104
+ merchant_category_code: String,
105
+ merchant_city_name: String,
106
+ merchant_name: String,
107
+ merchant_postal_code: String,
108
+ merchant_state: String,
109
+ status: Increase::Models::CardValidation::status,
110
+ submission: Increase::CardValidation::Submission?,
111
+ type: Increase::Models::CardValidation::type_
112
+ }
113
+
114
+ type acceptance =
115
+ {
116
+ accepted_at: Time,
117
+ authorization_identification_response: String,
118
+ :card_verification_value2_result => Increase::Models::CardValidation::Acceptance::card_verification_value2_result?,
119
+ cardholder_first_name_result: Increase::Models::CardValidation::Acceptance::cardholder_first_name_result?,
120
+ cardholder_full_name_result: Increase::Models::CardValidation::Acceptance::cardholder_full_name_result?,
121
+ cardholder_last_name_result: Increase::Models::CardValidation::Acceptance::cardholder_last_name_result?,
122
+ cardholder_middle_name_result: Increase::Models::CardValidation::Acceptance::cardholder_middle_name_result?,
123
+ cardholder_postal_code_result: Increase::Models::CardValidation::Acceptance::cardholder_postal_code_result?,
124
+ cardholder_street_address_result: Increase::Models::CardValidation::Acceptance::cardholder_street_address_result?,
125
+ network_transaction_identifier: String?
126
+ }
127
+
128
+ class Acceptance < Increase::Internal::Type::BaseModel
129
+ attr_accessor accepted_at: Time
130
+
131
+ attr_accessor authorization_identification_response: String
132
+
133
+ attr_accessor card_verification_value2_result: Increase::Models::CardValidation::Acceptance::card_verification_value2_result?
134
+
135
+ attr_accessor cardholder_first_name_result: Increase::Models::CardValidation::Acceptance::cardholder_first_name_result?
136
+
137
+ attr_accessor cardholder_full_name_result: Increase::Models::CardValidation::Acceptance::cardholder_full_name_result?
138
+
139
+ attr_accessor cardholder_last_name_result: Increase::Models::CardValidation::Acceptance::cardholder_last_name_result?
140
+
141
+ attr_accessor cardholder_middle_name_result: Increase::Models::CardValidation::Acceptance::cardholder_middle_name_result?
142
+
143
+ attr_accessor cardholder_postal_code_result: Increase::Models::CardValidation::Acceptance::cardholder_postal_code_result?
144
+
145
+ attr_accessor cardholder_street_address_result: Increase::Models::CardValidation::Acceptance::cardholder_street_address_result?
146
+
147
+ attr_accessor network_transaction_identifier: String?
148
+
149
+ def initialize: (
150
+ accepted_at: Time,
151
+ authorization_identification_response: String,
152
+ card_verification_value2_result: Increase::Models::CardValidation::Acceptance::card_verification_value2_result?,
153
+ cardholder_first_name_result: Increase::Models::CardValidation::Acceptance::cardholder_first_name_result?,
154
+ cardholder_full_name_result: Increase::Models::CardValidation::Acceptance::cardholder_full_name_result?,
155
+ cardholder_last_name_result: Increase::Models::CardValidation::Acceptance::cardholder_last_name_result?,
156
+ cardholder_middle_name_result: Increase::Models::CardValidation::Acceptance::cardholder_middle_name_result?,
157
+ cardholder_postal_code_result: Increase::Models::CardValidation::Acceptance::cardholder_postal_code_result?,
158
+ cardholder_street_address_result: Increase::Models::CardValidation::Acceptance::cardholder_street_address_result?,
159
+ network_transaction_identifier: String?
160
+ ) -> void
161
+
162
+ def to_hash: -> {
163
+ accepted_at: Time,
164
+ authorization_identification_response: String,
165
+ :card_verification_value2_result => Increase::Models::CardValidation::Acceptance::card_verification_value2_result?,
166
+ cardholder_first_name_result: Increase::Models::CardValidation::Acceptance::cardholder_first_name_result?,
167
+ cardholder_full_name_result: Increase::Models::CardValidation::Acceptance::cardholder_full_name_result?,
168
+ cardholder_last_name_result: Increase::Models::CardValidation::Acceptance::cardholder_last_name_result?,
169
+ cardholder_middle_name_result: Increase::Models::CardValidation::Acceptance::cardholder_middle_name_result?,
170
+ cardholder_postal_code_result: Increase::Models::CardValidation::Acceptance::cardholder_postal_code_result?,
171
+ cardholder_street_address_result: Increase::Models::CardValidation::Acceptance::cardholder_street_address_result?,
172
+ network_transaction_identifier: String?
173
+ }
174
+
175
+ type card_verification_value2_result = :match | :no_match
176
+
177
+ module CardVerificationValue2Result
178
+ extend Increase::Internal::Type::Enum
179
+
180
+ # The Card Verification Value 2 (CVV2) matches the expected value.
181
+ MATCH: :match
182
+
183
+ # The Card Verification Value 2 (CVV2) does not match the expected value.
184
+ NO_MATCH: :no_match
185
+
186
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::card_verification_value2_result]
187
+ end
188
+
189
+ type cardholder_first_name_result = :match | :no_match | :partial_match
190
+
191
+ module CardholderFirstNameResult
192
+ extend Increase::Internal::Type::Enum
193
+
194
+ # The cardholder name component matches the expected value.
195
+ MATCH: :match
196
+
197
+ # The cardholder name component does not match the expected value.
198
+ NO_MATCH: :no_match
199
+
200
+ # The cardholder name component partially matches the expected value.
201
+ PARTIAL_MATCH: :partial_match
202
+
203
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_first_name_result]
204
+ end
205
+
206
+ type cardholder_full_name_result = :match | :no_match | :partial_match
207
+
208
+ module CardholderFullNameResult
209
+ extend Increase::Internal::Type::Enum
210
+
211
+ # The cardholder name component matches the expected value.
212
+ MATCH: :match
213
+
214
+ # The cardholder name component does not match the expected value.
215
+ NO_MATCH: :no_match
216
+
217
+ # The cardholder name component partially matches the expected value.
218
+ PARTIAL_MATCH: :partial_match
219
+
220
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_full_name_result]
221
+ end
222
+
223
+ type cardholder_last_name_result = :match | :no_match | :partial_match
224
+
225
+ module CardholderLastNameResult
226
+ extend Increase::Internal::Type::Enum
227
+
228
+ # The cardholder name component matches the expected value.
229
+ MATCH: :match
230
+
231
+ # The cardholder name component does not match the expected value.
232
+ NO_MATCH: :no_match
233
+
234
+ # The cardholder name component partially matches the expected value.
235
+ PARTIAL_MATCH: :partial_match
236
+
237
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_last_name_result]
238
+ end
239
+
240
+ type cardholder_middle_name_result = :match | :no_match | :partial_match
241
+
242
+ module CardholderMiddleNameResult
243
+ extend Increase::Internal::Type::Enum
244
+
245
+ # The cardholder name component matches the expected value.
246
+ MATCH: :match
247
+
248
+ # The cardholder name component does not match the expected value.
249
+ NO_MATCH: :no_match
250
+
251
+ # The cardholder name component partially matches the expected value.
252
+ PARTIAL_MATCH: :partial_match
253
+
254
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_middle_name_result]
255
+ end
256
+
257
+ type cardholder_postal_code_result = :match | :no_match
258
+
259
+ module CardholderPostalCodeResult
260
+ extend Increase::Internal::Type::Enum
261
+
262
+ # The cardholder address component matches the expected value.
263
+ MATCH: :match
264
+
265
+ # The cardholder address component does not match the expected value.
266
+ NO_MATCH: :no_match
267
+
268
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_postal_code_result]
269
+ end
270
+
271
+ type cardholder_street_address_result = :match | :no_match
272
+
273
+ module CardholderStreetAddressResult
274
+ extend Increase::Internal::Type::Enum
275
+
276
+ # The cardholder address component matches the expected value.
277
+ MATCH: :match
278
+
279
+ # The cardholder address component does not match the expected value.
280
+ NO_MATCH: :no_match
281
+
282
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Acceptance::cardholder_street_address_result]
283
+ end
284
+ end
285
+
286
+ type created_by =
287
+ {
288
+ api_key: Increase::CardValidation::CreatedBy::APIKey?,
289
+ category: Increase::Models::CardValidation::CreatedBy::category,
290
+ oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?,
291
+ user: Increase::CardValidation::CreatedBy::User?
292
+ }
293
+
294
+ class CreatedBy < Increase::Internal::Type::BaseModel
295
+ attr_accessor api_key: Increase::CardValidation::CreatedBy::APIKey?
296
+
297
+ attr_accessor category: Increase::Models::CardValidation::CreatedBy::category
298
+
299
+ attr_accessor oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?
300
+
301
+ attr_accessor user: Increase::CardValidation::CreatedBy::User?
302
+
303
+ def initialize: (
304
+ api_key: Increase::CardValidation::CreatedBy::APIKey?,
305
+ category: Increase::Models::CardValidation::CreatedBy::category,
306
+ oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?,
307
+ user: Increase::CardValidation::CreatedBy::User?
308
+ ) -> void
309
+
310
+ def to_hash: -> {
311
+ api_key: Increase::CardValidation::CreatedBy::APIKey?,
312
+ category: Increase::Models::CardValidation::CreatedBy::category,
313
+ oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?,
314
+ user: Increase::CardValidation::CreatedBy::User?
315
+ }
316
+
317
+ type api_key = { description: String? }
318
+
319
+ class APIKey < Increase::Internal::Type::BaseModel
320
+ attr_accessor description: String?
321
+
322
+ def initialize: (description: String?) -> void
323
+
324
+ def to_hash: -> { description: String? }
325
+ end
326
+
327
+ type category = :api_key | :oauth_application | :user
328
+
329
+ module Category
330
+ extend Increase::Internal::Type::Enum
331
+
332
+ # An API key. Details will be under the `api_key` object.
333
+ API_KEY: :api_key
334
+
335
+ # An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
336
+ OAUTH_APPLICATION: :oauth_application
337
+
338
+ # A User in the Increase dashboard. Details will be under the `user` object.
339
+ USER: :user
340
+
341
+ def self?.values: -> ::Array[Increase::Models::CardValidation::CreatedBy::category]
342
+ end
343
+
344
+ type oauth_application = { name: String }
345
+
346
+ class OAuthApplication < Increase::Internal::Type::BaseModel
347
+ attr_accessor name: String
348
+
349
+ def initialize: (name: String) -> void
350
+
351
+ def to_hash: -> { name: String }
352
+ end
353
+
354
+ type user = { email: String }
355
+
356
+ class User < Increase::Internal::Type::BaseModel
357
+ attr_accessor email: String
358
+
359
+ def initialize: (email: String) -> void
360
+
361
+ def to_hash: -> { email: String }
362
+ end
363
+ end
364
+
365
+ type decline =
366
+ {
367
+ declined_at: Time,
368
+ network_transaction_identifier: String?,
369
+ reason: Increase::Models::CardValidation::Decline::reason
370
+ }
371
+
372
+ class Decline < Increase::Internal::Type::BaseModel
373
+ attr_accessor declined_at: Time
374
+
375
+ attr_accessor network_transaction_identifier: String?
376
+
377
+ attr_accessor reason: Increase::Models::CardValidation::Decline::reason
378
+
379
+ def initialize: (
380
+ declined_at: Time,
381
+ network_transaction_identifier: String?,
382
+ reason: Increase::Models::CardValidation::Decline::reason
383
+ ) -> void
384
+
385
+ def to_hash: -> {
386
+ declined_at: Time,
387
+ network_transaction_identifier: String?,
388
+ reason: Increase::Models::CardValidation::Decline::reason
389
+ }
390
+
391
+ type reason =
392
+ :do_not_honor
393
+ | :activity_count_limit_exceeded
394
+ | :refer_to_card_issuer
395
+ | :refer_to_card_issuer_special_condition
396
+ | :invalid_merchant
397
+ | :pick_up_card
398
+ | :error
399
+ | :pick_up_card_special
400
+ | :invalid_transaction
401
+ | :invalid_amount
402
+ | :invalid_account_number
403
+ | :no_such_issuer
404
+ | :re_enter_transaction
405
+ | :no_credit_account
406
+ | :pick_up_card_lost
407
+ | :pick_up_card_stolen
408
+ | :closed_account
409
+ | :insufficient_funds
410
+ | :no_checking_account
411
+ | :no_savings_account
412
+ | :expired_card
413
+ | :transaction_not_permitted_to_cardholder
414
+ | :transaction_not_allowed_at_terminal
415
+ | :suspected_fraud
416
+ | :activity_amount_limit_exceeded
417
+ | :restricted_card
418
+ | :security_violation
419
+ | :transaction_does_not_fulfill_anti_money_laundering_requirement
420
+ | :blocked_first_use
421
+ | :credit_issuer_unavailable
422
+ | :negative_card_verification_value_results
423
+ | :issuer_unavailable
424
+ | :financial_institution_cannot_be_found
425
+ | :transaction_cannot_be_completed
426
+ | :duplicate_transaction
427
+ | :system_malfunction
428
+ | :additional_customer_authentication_required
429
+ | :surcharge_amount_not_permitted
430
+ | :decline_for_cvv2_failure
431
+ | :stop_payment_order
432
+ | :revocation_of_authorization_order
433
+ | :revocation_of_all_authorizations_order
434
+
435
+ module Reason
436
+ extend Increase::Internal::Type::Enum
437
+
438
+ # The card issuer has declined the transaction without providing a specific reason.
439
+ DO_NOT_HONOR: :do_not_honor
440
+
441
+ # The number of transactions for the card has exceeded the limit set by the issuer.
442
+ ACTIVITY_COUNT_LIMIT_EXCEEDED: :activity_count_limit_exceeded
443
+
444
+ # The card issuer requires the cardholder to contact them for further information regarding the transaction.
445
+ REFER_TO_CARD_ISSUER: :refer_to_card_issuer
446
+
447
+ # The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
448
+ REFER_TO_CARD_ISSUER_SPECIAL_CONDITION: :refer_to_card_issuer_special_condition
449
+
450
+ # The merchant is not valid for this transaction.
451
+ INVALID_MERCHANT: :invalid_merchant
452
+
453
+ # The card should be retained by the terminal.
454
+ PICK_UP_CARD: :pick_up_card
455
+
456
+ # An error occurred during processing of the transaction.
457
+ ERROR: :error
458
+
459
+ # The card should be retained by the terminal due to a special condition.
460
+ PICK_UP_CARD_SPECIAL: :pick_up_card_special
461
+
462
+ # The transaction is invalid and cannot be processed.
463
+ INVALID_TRANSACTION: :invalid_transaction
464
+
465
+ # The amount of the transaction is invalid.
466
+ INVALID_AMOUNT: :invalid_amount
467
+
468
+ # The account number provided is invalid.
469
+ INVALID_ACCOUNT_NUMBER: :invalid_account_number
470
+
471
+ # The issuer of the card could not be found.
472
+ NO_SUCH_ISSUER: :no_such_issuer
473
+
474
+ # The transaction should be re-entered for processing.
475
+ RE_ENTER_TRANSACTION: :re_enter_transaction
476
+
477
+ # There is no credit account associated with the card.
478
+ NO_CREDIT_ACCOUNT: :no_credit_account
479
+
480
+ # The card should be retained by the terminal because it has been reported lost.
481
+ PICK_UP_CARD_LOST: :pick_up_card_lost
482
+
483
+ # The card should be retained by the terminal because it has been reported stolen.
484
+ PICK_UP_CARD_STOLEN: :pick_up_card_stolen
485
+
486
+ # The account associated with the card has been closed.
487
+ CLOSED_ACCOUNT: :closed_account
488
+
489
+ # There are insufficient funds in the account to complete the transaction.
490
+ INSUFFICIENT_FUNDS: :insufficient_funds
491
+
492
+ # There is no checking account associated with the card.
493
+ NO_CHECKING_ACCOUNT: :no_checking_account
494
+
495
+ # There is no savings account associated with the card.
496
+ NO_SAVINGS_ACCOUNT: :no_savings_account
497
+
498
+ # The card has expired and cannot be used for transactions.
499
+ EXPIRED_CARD: :expired_card
500
+
501
+ # The transaction is not permitted for this cardholder.
502
+ TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER: :transaction_not_permitted_to_cardholder
503
+
504
+ # The transaction is not allowed at this terminal.
505
+ TRANSACTION_NOT_ALLOWED_AT_TERMINAL: :transaction_not_allowed_at_terminal
506
+
507
+ # The transaction has been flagged as suspected fraud and cannot be processed.
508
+ SUSPECTED_FRAUD: :suspected_fraud
509
+
510
+ # The amount of activity on the card has exceeded the limit set by the issuer.
511
+ ACTIVITY_AMOUNT_LIMIT_EXCEEDED: :activity_amount_limit_exceeded
512
+
513
+ # The card has restrictions that prevent it from being used for this transaction.
514
+ RESTRICTED_CARD: :restricted_card
515
+
516
+ # A security violation has occurred, preventing the transaction from being processed.
517
+ SECURITY_VIOLATION: :security_violation
518
+
519
+ # The transaction does not meet the anti-money laundering requirements set by the issuer.
520
+ TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT: :transaction_does_not_fulfill_anti_money_laundering_requirement
521
+
522
+ # The first use of the card has been blocked by the issuer.
523
+ BLOCKED_FIRST_USE: :blocked_first_use
524
+
525
+ # The credit issuer is currently unavailable to process the transaction.
526
+ CREDIT_ISSUER_UNAVAILABLE: :credit_issuer_unavailable
527
+
528
+ # The card verification value (CVV) results were negative, indicating a potential issue with the card.
529
+ NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS: :negative_card_verification_value_results
530
+
531
+ # The issuer of the card is currently unavailable to process the transaction.
532
+ ISSUER_UNAVAILABLE: :issuer_unavailable
533
+
534
+ # The financial institution associated with the card could not be found.
535
+ FINANCIAL_INSTITUTION_CANNOT_BE_FOUND: :financial_institution_cannot_be_found
536
+
537
+ # The transaction cannot be completed due to an unspecified reason.
538
+ TRANSACTION_CANNOT_BE_COMPLETED: :transaction_cannot_be_completed
539
+
540
+ # The transaction is a duplicate of a previous transaction and cannot be processed again.
541
+ DUPLICATE_TRANSACTION: :duplicate_transaction
542
+
543
+ # A system malfunction occurred, preventing the transaction from being processed.
544
+ SYSTEM_MALFUNCTION: :system_malfunction
545
+
546
+ # Additional customer authentication is required to complete the transaction.
547
+ ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED: :additional_customer_authentication_required
548
+
549
+ # The surcharge amount applied to the transaction is not permitted by the issuer.
550
+ SURCHARGE_AMOUNT_NOT_PERMITTED: :surcharge_amount_not_permitted
551
+
552
+ # The transaction was declined due to a failure in verifying the CVV2 code.
553
+ DECLINE_FOR_CVV2_FAILURE: :decline_for_cvv2_failure
554
+
555
+ # A stop payment order has been placed on this transaction.
556
+ STOP_PAYMENT_ORDER: :stop_payment_order
557
+
558
+ # An order has been placed to revoke authorization for this transaction.
559
+ REVOCATION_OF_AUTHORIZATION_ORDER: :revocation_of_authorization_order
560
+
561
+ # An order has been placed to revoke all authorizations for this cardholder.
562
+ REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER: :revocation_of_all_authorizations_order
563
+
564
+ def self?.values: -> ::Array[Increase::Models::CardValidation::Decline::reason]
565
+ end
566
+ end
567
+
568
+ type status =
569
+ :requires_attention
570
+ | :pending_submission
571
+ | :submitted
572
+ | :complete
573
+ | :declined
574
+
575
+ module Status
576
+ extend Increase::Internal::Type::Enum
577
+
578
+ # The validation requires attention from an Increase operator.
579
+ REQUIRES_ATTENTION: :requires_attention
580
+
581
+ # The validation is queued to be submitted to the card network.
582
+ PENDING_SUBMISSION: :pending_submission
583
+
584
+ # The validation has been submitted and is pending a response from the card network.
585
+ SUBMITTED: :submitted
586
+
587
+ # The validation has been sent successfully and is complete.
588
+ COMPLETE: :complete
589
+
590
+ # The validation was declined by the network or the recipient's bank.
591
+ DECLINED: :declined
592
+
593
+ def self?.values: -> ::Array[Increase::Models::CardValidation::status]
594
+ end
595
+
596
+ type submission =
597
+ {
598
+ retrieval_reference_number: String,
599
+ submitted_at: Time,
600
+ trace_number: String
601
+ }
602
+
603
+ class Submission < Increase::Internal::Type::BaseModel
604
+ attr_accessor retrieval_reference_number: String
605
+
606
+ attr_accessor submitted_at: Time
607
+
608
+ attr_accessor trace_number: String
609
+
610
+ def initialize: (
611
+ retrieval_reference_number: String,
612
+ submitted_at: Time,
613
+ trace_number: String
614
+ ) -> void
615
+
616
+ def to_hash: -> {
617
+ retrieval_reference_number: String,
618
+ submitted_at: Time,
619
+ trace_number: String
620
+ }
621
+ end
622
+
623
+ type type_ = :card_validation
624
+
625
+ module Type
626
+ extend Increase::Internal::Type::Enum
627
+
628
+ CARD_VALIDATION: :card_validation
629
+
630
+ def self?.values: -> ::Array[Increase::Models::CardValidation::type_]
631
+ end
632
+ end
633
+ end
634
+ end