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,759 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::CardValidations#create
6
+ class CardValidation < Increase::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The Card Validation's identifier.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute acceptance
14
+ # If the validation is accepted by the recipient bank, this will contain
15
+ # supplemental details.
16
+ #
17
+ # @return [Increase::Models::CardValidation::Acceptance, nil]
18
+ required :acceptance, -> { Increase::CardValidation::Acceptance }, nil?: true
19
+
20
+ # @!attribute account_id
21
+ # The identifier of the Account from which to send the validation.
22
+ #
23
+ # @return [String]
24
+ required :account_id, String
25
+
26
+ # @!attribute cardholder_first_name
27
+ # The cardholder's first name.
28
+ #
29
+ # @return [String, nil]
30
+ required :cardholder_first_name, String, nil?: true
31
+
32
+ # @!attribute cardholder_last_name
33
+ # The cardholder's last name.
34
+ #
35
+ # @return [String, nil]
36
+ required :cardholder_last_name, String, nil?: true
37
+
38
+ # @!attribute cardholder_middle_name
39
+ # The cardholder's middle name.
40
+ #
41
+ # @return [String, nil]
42
+ required :cardholder_middle_name, String, nil?: true
43
+
44
+ # @!attribute cardholder_postal_code
45
+ # The postal code of the cardholder's address.
46
+ #
47
+ # @return [String, nil]
48
+ required :cardholder_postal_code, String, nil?: true
49
+
50
+ # @!attribute cardholder_street_address
51
+ # The cardholder's street address.
52
+ #
53
+ # @return [String, nil]
54
+ required :cardholder_street_address, String, nil?: true
55
+
56
+ # @!attribute created_at
57
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
58
+ # the validation was created.
59
+ #
60
+ # @return [Time]
61
+ required :created_at, Time
62
+
63
+ # @!attribute created_by
64
+ # What object created the validation, either via the API or the dashboard.
65
+ #
66
+ # @return [Increase::Models::CardValidation::CreatedBy, nil]
67
+ required :created_by, -> { Increase::CardValidation::CreatedBy }, nil?: true
68
+
69
+ # @!attribute decline
70
+ # If the validation is rejected by the card network or the destination financial
71
+ # institution, this will contain supplemental details.
72
+ #
73
+ # @return [Increase::Models::CardValidation::Decline, nil]
74
+ required :decline, -> { Increase::CardValidation::Decline }, nil?: true
75
+
76
+ # @!attribute idempotency_key
77
+ # The idempotency key you chose for this object. This value is unique across
78
+ # Increase and is used to ensure that a request is only processed once. Learn more
79
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
80
+ #
81
+ # @return [String, nil]
82
+ required :idempotency_key, String, nil?: true
83
+
84
+ # @!attribute merchant_category_code
85
+ # A four-digit code (MCC) identifying the type of business or service provided by
86
+ # the merchant.
87
+ #
88
+ # @return [String]
89
+ required :merchant_category_code, String
90
+
91
+ # @!attribute merchant_city_name
92
+ # The city where the merchant (typically your business) is located.
93
+ #
94
+ # @return [String]
95
+ required :merchant_city_name, String
96
+
97
+ # @!attribute merchant_name
98
+ # The merchant name that will appear in the cardholder’s statement descriptor.
99
+ # Typically your business name.
100
+ #
101
+ # @return [String]
102
+ required :merchant_name, String
103
+
104
+ # @!attribute merchant_postal_code
105
+ # The postal code for the merchant’s (typically your business’s) location.
106
+ #
107
+ # @return [String]
108
+ required :merchant_postal_code, String
109
+
110
+ # @!attribute merchant_state
111
+ # The U.S. state where the merchant (typically your business) is located.
112
+ #
113
+ # @return [String]
114
+ required :merchant_state, String
115
+
116
+ # @!attribute status
117
+ # The lifecycle status of the validation.
118
+ #
119
+ # @return [Symbol, Increase::Models::CardValidation::Status]
120
+ required :status, enum: -> { Increase::CardValidation::Status }
121
+
122
+ # @!attribute submission
123
+ # After the validation is submitted to the card network, this will contain
124
+ # supplemental details.
125
+ #
126
+ # @return [Increase::Models::CardValidation::Submission, nil]
127
+ required :submission, -> { Increase::CardValidation::Submission }, nil?: true
128
+
129
+ # @!attribute type
130
+ # A constant representing the object's type. For this resource it will always be
131
+ # `card_validation`.
132
+ #
133
+ # @return [Symbol, Increase::Models::CardValidation::Type]
134
+ required :type, enum: -> { Increase::CardValidation::Type }
135
+
136
+ # @!method initialize(id:, acceptance:, account_id:, cardholder_first_name:, cardholder_last_name:, cardholder_middle_name:, cardholder_postal_code:, cardholder_street_address:, created_at:, created_by:, decline:, idempotency_key:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_postal_code:, merchant_state:, status:, submission:, type:)
137
+ # Some parameter documentations has been truncated, see
138
+ # {Increase::Models::CardValidation} for more details.
139
+ #
140
+ # Card Validations are used to validate a card and its cardholder before sending
141
+ # funds to or pulling funds from a card.
142
+ #
143
+ # @param id [String] The Card Validation's identifier.
144
+ #
145
+ # @param acceptance [Increase::Models::CardValidation::Acceptance, nil] If the validation is accepted by the recipient bank, this will contain supplemen
146
+ #
147
+ # @param account_id [String] The identifier of the Account from which to send the validation.
148
+ #
149
+ # @param cardholder_first_name [String, nil] The cardholder's first name.
150
+ #
151
+ # @param cardholder_last_name [String, nil] The cardholder's last name.
152
+ #
153
+ # @param cardholder_middle_name [String, nil] The cardholder's middle name.
154
+ #
155
+ # @param cardholder_postal_code [String, nil] The postal code of the cardholder's address.
156
+ #
157
+ # @param cardholder_street_address [String, nil] The cardholder's street address.
158
+ #
159
+ # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
160
+ #
161
+ # @param created_by [Increase::Models::CardValidation::CreatedBy, nil] What object created the validation, either via the API or the dashboard.
162
+ #
163
+ # @param decline [Increase::Models::CardValidation::Decline, nil] If the validation is rejected by the card network or the destination financial i
164
+ #
165
+ # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
166
+ #
167
+ # @param merchant_category_code [String] A four-digit code (MCC) identifying the type of business or service provided by
168
+ #
169
+ # @param merchant_city_name [String] The city where the merchant (typically your business) is located.
170
+ #
171
+ # @param merchant_name [String] The merchant name that will appear in the cardholder’s statement descriptor. Typ
172
+ #
173
+ # @param merchant_postal_code [String] The postal code for the merchant’s (typically your business’s) location.
174
+ #
175
+ # @param merchant_state [String] The U.S. state where the merchant (typically your business) is located.
176
+ #
177
+ # @param status [Symbol, Increase::Models::CardValidation::Status] The lifecycle status of the validation.
178
+ #
179
+ # @param submission [Increase::Models::CardValidation::Submission, nil] After the validation is submitted to the card network, this will contain supplem
180
+ #
181
+ # @param type [Symbol, Increase::Models::CardValidation::Type] A constant representing the object's type. For this resource it will always be `
182
+
183
+ # @see Increase::Models::CardValidation#acceptance
184
+ class Acceptance < Increase::Internal::Type::BaseModel
185
+ # @!attribute accepted_at
186
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
187
+ # the validation was accepted by the issuing bank.
188
+ #
189
+ # @return [Time]
190
+ required :accepted_at, Time
191
+
192
+ # @!attribute authorization_identification_response
193
+ # The authorization identification response from the issuing bank.
194
+ #
195
+ # @return [String]
196
+ required :authorization_identification_response, String
197
+
198
+ # @!attribute card_verification_value2_result
199
+ # The result of the Card Verification Value 2 match.
200
+ #
201
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardVerificationValue2Result, nil]
202
+ required :card_verification_value2_result,
203
+ enum: -> { Increase::CardValidation::Acceptance::CardVerificationValue2Result },
204
+ nil?: true
205
+
206
+ # @!attribute cardholder_first_name_result
207
+ # The result of the cardholder first name match.
208
+ #
209
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderFirstNameResult, nil]
210
+ required :cardholder_first_name_result,
211
+ enum: -> { Increase::CardValidation::Acceptance::CardholderFirstNameResult },
212
+ nil?: true
213
+
214
+ # @!attribute cardholder_full_name_result
215
+ # The result of the cardholder full name match.
216
+ #
217
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderFullNameResult, nil]
218
+ required :cardholder_full_name_result,
219
+ enum: -> { Increase::CardValidation::Acceptance::CardholderFullNameResult },
220
+ nil?: true
221
+
222
+ # @!attribute cardholder_last_name_result
223
+ # The result of the cardholder last name match.
224
+ #
225
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderLastNameResult, nil]
226
+ required :cardholder_last_name_result,
227
+ enum: -> { Increase::CardValidation::Acceptance::CardholderLastNameResult },
228
+ nil?: true
229
+
230
+ # @!attribute cardholder_middle_name_result
231
+ # The result of the cardholder middle name match.
232
+ #
233
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderMiddleNameResult, nil]
234
+ required :cardholder_middle_name_result,
235
+ enum: -> { Increase::CardValidation::Acceptance::CardholderMiddleNameResult },
236
+ nil?: true
237
+
238
+ # @!attribute cardholder_postal_code_result
239
+ # The result of the cardholder postal code match.
240
+ #
241
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderPostalCodeResult, nil]
242
+ required :cardholder_postal_code_result,
243
+ enum: -> { Increase::CardValidation::Acceptance::CardholderPostalCodeResult },
244
+ nil?: true
245
+
246
+ # @!attribute cardholder_street_address_result
247
+ # The result of the cardholder street address match.
248
+ #
249
+ # @return [Symbol, Increase::Models::CardValidation::Acceptance::CardholderStreetAddressResult, nil]
250
+ required :cardholder_street_address_result,
251
+ enum: -> { Increase::CardValidation::Acceptance::CardholderStreetAddressResult },
252
+ nil?: true
253
+
254
+ # @!attribute network_transaction_identifier
255
+ # A unique identifier for the transaction on the card network.
256
+ #
257
+ # @return [String, nil]
258
+ required :network_transaction_identifier, String, nil?: true
259
+
260
+ # @!method initialize(accepted_at:, authorization_identification_response:, card_verification_value2_result:, cardholder_first_name_result:, cardholder_full_name_result:, cardholder_last_name_result:, cardholder_middle_name_result:, cardholder_postal_code_result:, cardholder_street_address_result:, network_transaction_identifier:)
261
+ # Some parameter documentations has been truncated, see
262
+ # {Increase::Models::CardValidation::Acceptance} for more details.
263
+ #
264
+ # If the validation is accepted by the recipient bank, this will contain
265
+ # supplemental details.
266
+ #
267
+ # @param accepted_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
268
+ #
269
+ # @param authorization_identification_response [String] The authorization identification response from the issuing bank.
270
+ #
271
+ # @param card_verification_value2_result [Symbol, Increase::Models::CardValidation::Acceptance::CardVerificationValue2Result, nil] The result of the Card Verification Value 2 match.
272
+ #
273
+ # @param cardholder_first_name_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderFirstNameResult, nil] The result of the cardholder first name match.
274
+ #
275
+ # @param cardholder_full_name_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderFullNameResult, nil] The result of the cardholder full name match.
276
+ #
277
+ # @param cardholder_last_name_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderLastNameResult, nil] The result of the cardholder last name match.
278
+ #
279
+ # @param cardholder_middle_name_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderMiddleNameResult, nil] The result of the cardholder middle name match.
280
+ #
281
+ # @param cardholder_postal_code_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderPostalCodeResult, nil] The result of the cardholder postal code match.
282
+ #
283
+ # @param cardholder_street_address_result [Symbol, Increase::Models::CardValidation::Acceptance::CardholderStreetAddressResult, nil] The result of the cardholder street address match.
284
+ #
285
+ # @param network_transaction_identifier [String, nil] A unique identifier for the transaction on the card network.
286
+
287
+ # The result of the Card Verification Value 2 match.
288
+ #
289
+ # @see Increase::Models::CardValidation::Acceptance#card_verification_value2_result
290
+ module CardVerificationValue2Result
291
+ extend Increase::Internal::Type::Enum
292
+
293
+ # The Card Verification Value 2 (CVV2) matches the expected value.
294
+ MATCH = :match
295
+
296
+ # The Card Verification Value 2 (CVV2) does not match the expected value.
297
+ NO_MATCH = :no_match
298
+
299
+ # @!method self.values
300
+ # @return [Array<Symbol>]
301
+ end
302
+
303
+ # The result of the cardholder first name match.
304
+ #
305
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_first_name_result
306
+ module CardholderFirstNameResult
307
+ extend Increase::Internal::Type::Enum
308
+
309
+ # The cardholder name component matches the expected value.
310
+ MATCH = :match
311
+
312
+ # The cardholder name component does not match the expected value.
313
+ NO_MATCH = :no_match
314
+
315
+ # The cardholder name component partially matches the expected value.
316
+ PARTIAL_MATCH = :partial_match
317
+
318
+ # @!method self.values
319
+ # @return [Array<Symbol>]
320
+ end
321
+
322
+ # The result of the cardholder full name match.
323
+ #
324
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_full_name_result
325
+ module CardholderFullNameResult
326
+ extend Increase::Internal::Type::Enum
327
+
328
+ # The cardholder name component matches the expected value.
329
+ MATCH = :match
330
+
331
+ # The cardholder name component does not match the expected value.
332
+ NO_MATCH = :no_match
333
+
334
+ # The cardholder name component partially matches the expected value.
335
+ PARTIAL_MATCH = :partial_match
336
+
337
+ # @!method self.values
338
+ # @return [Array<Symbol>]
339
+ end
340
+
341
+ # The result of the cardholder last name match.
342
+ #
343
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_last_name_result
344
+ module CardholderLastNameResult
345
+ extend Increase::Internal::Type::Enum
346
+
347
+ # The cardholder name component matches the expected value.
348
+ MATCH = :match
349
+
350
+ # The cardholder name component does not match the expected value.
351
+ NO_MATCH = :no_match
352
+
353
+ # The cardholder name component partially matches the expected value.
354
+ PARTIAL_MATCH = :partial_match
355
+
356
+ # @!method self.values
357
+ # @return [Array<Symbol>]
358
+ end
359
+
360
+ # The result of the cardholder middle name match.
361
+ #
362
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_middle_name_result
363
+ module CardholderMiddleNameResult
364
+ extend Increase::Internal::Type::Enum
365
+
366
+ # The cardholder name component matches the expected value.
367
+ MATCH = :match
368
+
369
+ # The cardholder name component does not match the expected value.
370
+ NO_MATCH = :no_match
371
+
372
+ # The cardholder name component partially matches the expected value.
373
+ PARTIAL_MATCH = :partial_match
374
+
375
+ # @!method self.values
376
+ # @return [Array<Symbol>]
377
+ end
378
+
379
+ # The result of the cardholder postal code match.
380
+ #
381
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_postal_code_result
382
+ module CardholderPostalCodeResult
383
+ extend Increase::Internal::Type::Enum
384
+
385
+ # The cardholder address component matches the expected value.
386
+ MATCH = :match
387
+
388
+ # The cardholder address component does not match the expected value.
389
+ NO_MATCH = :no_match
390
+
391
+ # @!method self.values
392
+ # @return [Array<Symbol>]
393
+ end
394
+
395
+ # The result of the cardholder street address match.
396
+ #
397
+ # @see Increase::Models::CardValidation::Acceptance#cardholder_street_address_result
398
+ module CardholderStreetAddressResult
399
+ extend Increase::Internal::Type::Enum
400
+
401
+ # The cardholder address component matches the expected value.
402
+ MATCH = :match
403
+
404
+ # The cardholder address component does not match the expected value.
405
+ NO_MATCH = :no_match
406
+
407
+ # @!method self.values
408
+ # @return [Array<Symbol>]
409
+ end
410
+ end
411
+
412
+ # @see Increase::Models::CardValidation#created_by
413
+ class CreatedBy < Increase::Internal::Type::BaseModel
414
+ # @!attribute api_key
415
+ # If present, details about the API key that created the transfer.
416
+ #
417
+ # @return [Increase::Models::CardValidation::CreatedBy::APIKey, nil]
418
+ required :api_key, -> { Increase::CardValidation::CreatedBy::APIKey }, nil?: true
419
+
420
+ # @!attribute category
421
+ # The type of object that created this transfer.
422
+ #
423
+ # @return [Symbol, Increase::Models::CardValidation::CreatedBy::Category]
424
+ required :category, enum: -> { Increase::CardValidation::CreatedBy::Category }
425
+
426
+ # @!attribute oauth_application
427
+ # If present, details about the OAuth Application that created the transfer.
428
+ #
429
+ # @return [Increase::Models::CardValidation::CreatedBy::OAuthApplication, nil]
430
+ required :oauth_application, -> { Increase::CardValidation::CreatedBy::OAuthApplication }, nil?: true
431
+
432
+ # @!attribute user
433
+ # If present, details about the User that created the transfer.
434
+ #
435
+ # @return [Increase::Models::CardValidation::CreatedBy::User, nil]
436
+ required :user, -> { Increase::CardValidation::CreatedBy::User }, nil?: true
437
+
438
+ # @!method initialize(api_key:, category:, oauth_application:, user:)
439
+ # What object created the validation, either via the API or the dashboard.
440
+ #
441
+ # @param api_key [Increase::Models::CardValidation::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer.
442
+ #
443
+ # @param category [Symbol, Increase::Models::CardValidation::CreatedBy::Category] The type of object that created this transfer.
444
+ #
445
+ # @param oauth_application [Increase::Models::CardValidation::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer.
446
+ #
447
+ # @param user [Increase::Models::CardValidation::CreatedBy::User, nil] If present, details about the User that created the transfer.
448
+
449
+ # @see Increase::Models::CardValidation::CreatedBy#api_key
450
+ class APIKey < Increase::Internal::Type::BaseModel
451
+ # @!attribute description
452
+ # The description set for the API key when it was created.
453
+ #
454
+ # @return [String, nil]
455
+ required :description, String, nil?: true
456
+
457
+ # @!method initialize(description:)
458
+ # If present, details about the API key that created the transfer.
459
+ #
460
+ # @param description [String, nil] The description set for the API key when it was created.
461
+ end
462
+
463
+ # The type of object that created this transfer.
464
+ #
465
+ # @see Increase::Models::CardValidation::CreatedBy#category
466
+ module Category
467
+ extend Increase::Internal::Type::Enum
468
+
469
+ # An API key. Details will be under the `api_key` object.
470
+ API_KEY = :api_key
471
+
472
+ # An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
473
+ OAUTH_APPLICATION = :oauth_application
474
+
475
+ # A User in the Increase dashboard. Details will be under the `user` object.
476
+ USER = :user
477
+
478
+ # @!method self.values
479
+ # @return [Array<Symbol>]
480
+ end
481
+
482
+ # @see Increase::Models::CardValidation::CreatedBy#oauth_application
483
+ class OAuthApplication < Increase::Internal::Type::BaseModel
484
+ # @!attribute name
485
+ # The name of the OAuth Application.
486
+ #
487
+ # @return [String]
488
+ required :name, String
489
+
490
+ # @!method initialize(name:)
491
+ # If present, details about the OAuth Application that created the transfer.
492
+ #
493
+ # @param name [String] The name of the OAuth Application.
494
+ end
495
+
496
+ # @see Increase::Models::CardValidation::CreatedBy#user
497
+ class User < Increase::Internal::Type::BaseModel
498
+ # @!attribute email
499
+ # The email address of the User.
500
+ #
501
+ # @return [String]
502
+ required :email, String
503
+
504
+ # @!method initialize(email:)
505
+ # If present, details about the User that created the transfer.
506
+ #
507
+ # @param email [String] The email address of the User.
508
+ end
509
+ end
510
+
511
+ # @see Increase::Models::CardValidation#decline
512
+ class Decline < Increase::Internal::Type::BaseModel
513
+ # @!attribute declined_at
514
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
515
+ # the validation was declined.
516
+ #
517
+ # @return [Time]
518
+ required :declined_at, Time
519
+
520
+ # @!attribute network_transaction_identifier
521
+ # A unique identifier for the transaction on the card network.
522
+ #
523
+ # @return [String, nil]
524
+ required :network_transaction_identifier, String, nil?: true
525
+
526
+ # @!attribute reason
527
+ # The reason why the validation was declined.
528
+ #
529
+ # @return [Symbol, Increase::Models::CardValidation::Decline::Reason]
530
+ required :reason, enum: -> { Increase::CardValidation::Decline::Reason }
531
+
532
+ # @!method initialize(declined_at:, network_transaction_identifier:, reason:)
533
+ # Some parameter documentations has been truncated, see
534
+ # {Increase::Models::CardValidation::Decline} for more details.
535
+ #
536
+ # If the validation is rejected by the card network or the destination financial
537
+ # institution, this will contain supplemental details.
538
+ #
539
+ # @param declined_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
540
+ #
541
+ # @param network_transaction_identifier [String, nil] A unique identifier for the transaction on the card network.
542
+ #
543
+ # @param reason [Symbol, Increase::Models::CardValidation::Decline::Reason] The reason why the validation was declined.
544
+
545
+ # The reason why the validation was declined.
546
+ #
547
+ # @see Increase::Models::CardValidation::Decline#reason
548
+ module Reason
549
+ extend Increase::Internal::Type::Enum
550
+
551
+ # The card issuer has declined the transaction without providing a specific reason.
552
+ DO_NOT_HONOR = :do_not_honor
553
+
554
+ # The number of transactions for the card has exceeded the limit set by the issuer.
555
+ ACTIVITY_COUNT_LIMIT_EXCEEDED = :activity_count_limit_exceeded
556
+
557
+ # The card issuer requires the cardholder to contact them for further information regarding the transaction.
558
+ REFER_TO_CARD_ISSUER = :refer_to_card_issuer
559
+
560
+ # The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
561
+ REFER_TO_CARD_ISSUER_SPECIAL_CONDITION = :refer_to_card_issuer_special_condition
562
+
563
+ # The merchant is not valid for this transaction.
564
+ INVALID_MERCHANT = :invalid_merchant
565
+
566
+ # The card should be retained by the terminal.
567
+ PICK_UP_CARD = :pick_up_card
568
+
569
+ # An error occurred during processing of the transaction.
570
+ ERROR = :error
571
+
572
+ # The card should be retained by the terminal due to a special condition.
573
+ PICK_UP_CARD_SPECIAL = :pick_up_card_special
574
+
575
+ # The transaction is invalid and cannot be processed.
576
+ INVALID_TRANSACTION = :invalid_transaction
577
+
578
+ # The amount of the transaction is invalid.
579
+ INVALID_AMOUNT = :invalid_amount
580
+
581
+ # The account number provided is invalid.
582
+ INVALID_ACCOUNT_NUMBER = :invalid_account_number
583
+
584
+ # The issuer of the card could not be found.
585
+ NO_SUCH_ISSUER = :no_such_issuer
586
+
587
+ # The transaction should be re-entered for processing.
588
+ RE_ENTER_TRANSACTION = :re_enter_transaction
589
+
590
+ # There is no credit account associated with the card.
591
+ NO_CREDIT_ACCOUNT = :no_credit_account
592
+
593
+ # The card should be retained by the terminal because it has been reported lost.
594
+ PICK_UP_CARD_LOST = :pick_up_card_lost
595
+
596
+ # The card should be retained by the terminal because it has been reported stolen.
597
+ PICK_UP_CARD_STOLEN = :pick_up_card_stolen
598
+
599
+ # The account associated with the card has been closed.
600
+ CLOSED_ACCOUNT = :closed_account
601
+
602
+ # There are insufficient funds in the account to complete the transaction.
603
+ INSUFFICIENT_FUNDS = :insufficient_funds
604
+
605
+ # There is no checking account associated with the card.
606
+ NO_CHECKING_ACCOUNT = :no_checking_account
607
+
608
+ # There is no savings account associated with the card.
609
+ NO_SAVINGS_ACCOUNT = :no_savings_account
610
+
611
+ # The card has expired and cannot be used for transactions.
612
+ EXPIRED_CARD = :expired_card
613
+
614
+ # The transaction is not permitted for this cardholder.
615
+ TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER = :transaction_not_permitted_to_cardholder
616
+
617
+ # The transaction is not allowed at this terminal.
618
+ TRANSACTION_NOT_ALLOWED_AT_TERMINAL = :transaction_not_allowed_at_terminal
619
+
620
+ # The transaction has been flagged as suspected fraud and cannot be processed.
621
+ SUSPECTED_FRAUD = :suspected_fraud
622
+
623
+ # The amount of activity on the card has exceeded the limit set by the issuer.
624
+ ACTIVITY_AMOUNT_LIMIT_EXCEEDED = :activity_amount_limit_exceeded
625
+
626
+ # The card has restrictions that prevent it from being used for this transaction.
627
+ RESTRICTED_CARD = :restricted_card
628
+
629
+ # A security violation has occurred, preventing the transaction from being processed.
630
+ SECURITY_VIOLATION = :security_violation
631
+
632
+ # The transaction does not meet the anti-money laundering requirements set by the issuer.
633
+ TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT =
634
+ :transaction_does_not_fulfill_anti_money_laundering_requirement
635
+
636
+ # The first use of the card has been blocked by the issuer.
637
+ BLOCKED_FIRST_USE = :blocked_first_use
638
+
639
+ # The credit issuer is currently unavailable to process the transaction.
640
+ CREDIT_ISSUER_UNAVAILABLE = :credit_issuer_unavailable
641
+
642
+ # The card verification value (CVV) results were negative, indicating a potential issue with the card.
643
+ NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS = :negative_card_verification_value_results
644
+
645
+ # The issuer of the card is currently unavailable to process the transaction.
646
+ ISSUER_UNAVAILABLE = :issuer_unavailable
647
+
648
+ # The financial institution associated with the card could not be found.
649
+ FINANCIAL_INSTITUTION_CANNOT_BE_FOUND = :financial_institution_cannot_be_found
650
+
651
+ # The transaction cannot be completed due to an unspecified reason.
652
+ TRANSACTION_CANNOT_BE_COMPLETED = :transaction_cannot_be_completed
653
+
654
+ # The transaction is a duplicate of a previous transaction and cannot be processed again.
655
+ DUPLICATE_TRANSACTION = :duplicate_transaction
656
+
657
+ # A system malfunction occurred, preventing the transaction from being processed.
658
+ SYSTEM_MALFUNCTION = :system_malfunction
659
+
660
+ # Additional customer authentication is required to complete the transaction.
661
+ ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = :additional_customer_authentication_required
662
+
663
+ # The surcharge amount applied to the transaction is not permitted by the issuer.
664
+ SURCHARGE_AMOUNT_NOT_PERMITTED = :surcharge_amount_not_permitted
665
+
666
+ # The transaction was declined due to a failure in verifying the CVV2 code.
667
+ DECLINE_FOR_CVV2_FAILURE = :decline_for_cvv2_failure
668
+
669
+ # A stop payment order has been placed on this transaction.
670
+ STOP_PAYMENT_ORDER = :stop_payment_order
671
+
672
+ # An order has been placed to revoke authorization for this transaction.
673
+ REVOCATION_OF_AUTHORIZATION_ORDER = :revocation_of_authorization_order
674
+
675
+ # An order has been placed to revoke all authorizations for this cardholder.
676
+ REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER = :revocation_of_all_authorizations_order
677
+
678
+ # @!method self.values
679
+ # @return [Array<Symbol>]
680
+ end
681
+ end
682
+
683
+ # The lifecycle status of the validation.
684
+ #
685
+ # @see Increase::Models::CardValidation#status
686
+ module Status
687
+ extend Increase::Internal::Type::Enum
688
+
689
+ # The validation requires attention from an Increase operator.
690
+ REQUIRES_ATTENTION = :requires_attention
691
+
692
+ # The validation is queued to be submitted to the card network.
693
+ PENDING_SUBMISSION = :pending_submission
694
+
695
+ # The validation has been submitted and is pending a response from the card network.
696
+ SUBMITTED = :submitted
697
+
698
+ # The validation has been sent successfully and is complete.
699
+ COMPLETE = :complete
700
+
701
+ # The validation was declined by the network or the recipient's bank.
702
+ DECLINED = :declined
703
+
704
+ # @!method self.values
705
+ # @return [Array<Symbol>]
706
+ end
707
+
708
+ # @see Increase::Models::CardValidation#submission
709
+ class Submission < Increase::Internal::Type::BaseModel
710
+ # @!attribute retrieval_reference_number
711
+ # A 12-digit retrieval reference number that identifies the validation. Usually a
712
+ # combination of a timestamp and the trace number.
713
+ #
714
+ # @return [String]
715
+ required :retrieval_reference_number, String
716
+
717
+ # @!attribute submitted_at
718
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
719
+ # the validation was submitted to the card network.
720
+ #
721
+ # @return [Time]
722
+ required :submitted_at, Time
723
+
724
+ # @!attribute trace_number
725
+ # A 6-digit trace number that identifies the validation within a short time
726
+ # window.
727
+ #
728
+ # @return [String]
729
+ required :trace_number, String
730
+
731
+ # @!method initialize(retrieval_reference_number:, submitted_at:, trace_number:)
732
+ # Some parameter documentations has been truncated, see
733
+ # {Increase::Models::CardValidation::Submission} for more details.
734
+ #
735
+ # After the validation is submitted to the card network, this will contain
736
+ # supplemental details.
737
+ #
738
+ # @param retrieval_reference_number [String] A 12-digit retrieval reference number that identifies the validation. Usually a
739
+ #
740
+ # @param submitted_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
741
+ #
742
+ # @param trace_number [String] A 6-digit trace number that identifies the validation within a short time window
743
+ end
744
+
745
+ # A constant representing the object's type. For this resource it will always be
746
+ # `card_validation`.
747
+ #
748
+ # @see Increase::Models::CardValidation#type
749
+ module Type
750
+ extend Increase::Internal::Type::Enum
751
+
752
+ CARD_VALIDATION = :card_validation
753
+
754
+ # @!method self.values
755
+ # @return [Array<Symbol>]
756
+ end
757
+ end
758
+ end
759
+ end