increase 1.203.0 → 1.205.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/account_transfer.rb +25 -25
  5. data/lib/increase/models/ach_prenotification.rb +8 -8
  6. data/lib/increase/models/ach_transfer.rb +36 -36
  7. data/lib/increase/models/card_dispute.rb +79 -79
  8. data/lib/increase/models/card_payment.rb +82 -82
  9. data/lib/increase/models/card_push_transfer.rb +25 -25
  10. data/lib/increase/models/card_validation.rb +25 -25
  11. data/lib/increase/models/check_transfer.rb +25 -25
  12. data/lib/increase/models/declined_transaction.rb +53 -53
  13. data/lib/increase/models/fednow_transfer.rb +25 -25
  14. data/lib/increase/models/pending_transaction.rb +85 -85
  15. data/lib/increase/models/real_time_payments_transfer.rb +25 -25
  16. data/lib/increase/models/simulations/ach_transfer_return_params.rb +8 -8
  17. data/lib/increase/models/swift_transfer.rb +25 -25
  18. data/lib/increase/models/transaction.rb +181 -181
  19. data/lib/increase/models/wire_transfer.rb +28 -28
  20. data/lib/increase/version.rb +1 -1
  21. data/rbi/increase/models/account_transfer.rbi +40 -40
  22. data/rbi/increase/models/ach_prenotification.rbi +8 -8
  23. data/rbi/increase/models/ach_transfer.rbi +50 -50
  24. data/rbi/increase/models/card_dispute.rbi +141 -141
  25. data/rbi/increase/models/card_payment.rbi +144 -144
  26. data/rbi/increase/models/card_push_transfer.rbi +40 -40
  27. data/rbi/increase/models/card_validation.rbi +40 -40
  28. data/rbi/increase/models/check_transfer.rbi +40 -40
  29. data/rbi/increase/models/declined_transaction.rbi +99 -99
  30. data/rbi/increase/models/fednow_transfer.rbi +40 -40
  31. data/rbi/increase/models/pending_transaction.rbi +163 -163
  32. data/rbi/increase/models/real_time_payments_transfer.rbi +44 -44
  33. data/rbi/increase/models/simulations/ach_transfer_return_params.rbi +8 -8
  34. data/rbi/increase/models/swift_transfer.rbi +40 -40
  35. data/rbi/increase/models/transaction.rbi +542 -542
  36. data/rbi/increase/models/wire_transfer.rbi +42 -42
  37. data/sig/increase/models/account_transfer.rbs +17 -17
  38. data/sig/increase/models/ach_prenotification.rbs +8 -8
  39. data/sig/increase/models/ach_transfer.rbs +27 -27
  40. data/sig/increase/models/card_dispute.rbs +56 -56
  41. data/sig/increase/models/card_payment.rbs +81 -81
  42. data/sig/increase/models/card_push_transfer.rbs +17 -17
  43. data/sig/increase/models/card_validation.rbs +17 -17
  44. data/sig/increase/models/check_transfer.rbs +17 -17
  45. data/sig/increase/models/declined_transaction.rbs +52 -52
  46. data/sig/increase/models/fednow_transfer.rbs +17 -17
  47. data/sig/increase/models/pending_transaction.rbs +92 -92
  48. data/sig/increase/models/real_time_payments_transfer.rbs +17 -17
  49. data/sig/increase/models/simulations/ach_transfer_return_params.rbs +8 -8
  50. data/sig/increase/models/swift_transfer.rbs +17 -17
  51. data/sig/increase/models/transaction.rbs +210 -210
  52. data/sig/increase/models/wire_transfer.rbs +19 -19
  53. metadata +2 -2
@@ -455,6 +455,12 @@ module Increase
455
455
  )
456
456
  end
457
457
 
458
+ # The type of object that created this transfer.
459
+ sig do
460
+ returns(Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol)
461
+ end
462
+ attr_accessor :category
463
+
458
464
  # If present, details about the API key that created the transfer.
459
465
  sig { returns(T.nilable(Increase::CheckTransfer::CreatedBy::APIKey)) }
460
466
  attr_reader :api_key
@@ -467,12 +473,6 @@ module Increase
467
473
  end
468
474
  attr_writer :api_key
469
475
 
470
- # The type of object that created this transfer.
471
- sig do
472
- returns(Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol)
473
- end
474
- attr_accessor :category
475
-
476
476
  # If present, details about the OAuth Application that created the transfer.
477
477
  sig do
478
478
  returns(
@@ -505,9 +505,9 @@ module Increase
505
505
  # What object created the transfer, either via the API or the dashboard.
506
506
  sig do
507
507
  params(
508
+ category: Increase::CheckTransfer::CreatedBy::Category::OrSymbol,
508
509
  api_key:
509
510
  T.nilable(Increase::CheckTransfer::CreatedBy::APIKey::OrHash),
510
- category: Increase::CheckTransfer::CreatedBy::Category::OrSymbol,
511
511
  oauth_application:
512
512
  T.nilable(
513
513
  Increase::CheckTransfer::CreatedBy::OAuthApplication::OrHash
@@ -516,23 +516,23 @@ module Increase
516
516
  ).returns(T.attached_class)
517
517
  end
518
518
  def self.new(
519
- # If present, details about the API key that created the transfer.
520
- api_key:,
521
519
  # The type of object that created this transfer.
522
520
  category:,
521
+ # If present, details about the API key that created the transfer.
522
+ api_key: nil,
523
523
  # If present, details about the OAuth Application that created the transfer.
524
- oauth_application:,
524
+ oauth_application: nil,
525
525
  # If present, details about the User that created the transfer.
526
- user:
526
+ user: nil
527
527
  )
528
528
  end
529
529
 
530
530
  sig do
531
531
  override.returns(
532
532
  {
533
- api_key: T.nilable(Increase::CheckTransfer::CreatedBy::APIKey),
534
533
  category:
535
534
  Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol,
535
+ api_key: T.nilable(Increase::CheckTransfer::CreatedBy::APIKey),
536
536
  oauth_application:
537
537
  T.nilable(Increase::CheckTransfer::CreatedBy::OAuthApplication),
538
538
  user: T.nilable(Increase::CheckTransfer::CreatedBy::User)
@@ -542,34 +542,6 @@ module Increase
542
542
  def to_hash
543
543
  end
544
544
 
545
- class APIKey < Increase::Internal::Type::BaseModel
546
- OrHash =
547
- T.type_alias do
548
- T.any(
549
- Increase::CheckTransfer::CreatedBy::APIKey,
550
- Increase::Internal::AnyHash
551
- )
552
- end
553
-
554
- # The description set for the API key when it was created.
555
- sig { returns(T.nilable(String)) }
556
- attr_accessor :description
557
-
558
- # If present, details about the API key that created the transfer.
559
- sig do
560
- params(description: T.nilable(String)).returns(T.attached_class)
561
- end
562
- def self.new(
563
- # The description set for the API key when it was created.
564
- description:
565
- )
566
- end
567
-
568
- sig { override.returns({ description: T.nilable(String) }) }
569
- def to_hash
570
- end
571
- end
572
-
573
545
  # The type of object that created this transfer.
574
546
  module Category
575
547
  extend Increase::Internal::Type::Enum
@@ -612,6 +584,34 @@ module Increase
612
584
  end
613
585
  end
614
586
 
587
+ class APIKey < Increase::Internal::Type::BaseModel
588
+ OrHash =
589
+ T.type_alias do
590
+ T.any(
591
+ Increase::CheckTransfer::CreatedBy::APIKey,
592
+ Increase::Internal::AnyHash
593
+ )
594
+ end
595
+
596
+ # The description set for the API key when it was created.
597
+ sig { returns(T.nilable(String)) }
598
+ attr_accessor :description
599
+
600
+ # If present, details about the API key that created the transfer.
601
+ sig do
602
+ params(description: T.nilable(String)).returns(T.attached_class)
603
+ end
604
+ def self.new(
605
+ # The description set for the API key when it was created.
606
+ description:
607
+ )
608
+ end
609
+
610
+ sig { override.returns({ description: T.nilable(String) }) }
611
+ def to_hash
612
+ end
613
+ end
614
+
615
615
  class OAuthApplication < Increase::Internal::Type::BaseModel
616
616
  OrHash =
617
617
  T.type_alias do
@@ -207,6 +207,13 @@ module Increase
207
207
  )
208
208
  end
209
209
 
210
+ # The type of the resource. We may add additional possible values for this enum
211
+ # over time; your application should be able to handle such additions gracefully.
212
+ sig do
213
+ returns(Increase::DeclinedTransaction::Source::Category::TaggedSymbol)
214
+ end
215
+ attr_accessor :category
216
+
210
217
  # An ACH Decline object. This field will be present in the JSON response if and
211
218
  # only if `category` is equal to `ach_decline`.
212
219
  sig do
@@ -241,13 +248,6 @@ module Increase
241
248
  end
242
249
  attr_writer :card_decline
243
250
 
244
- # The type of the resource. We may add additional possible values for this enum
245
- # over time; your application should be able to handle such additions gracefully.
246
- sig do
247
- returns(Increase::DeclinedTransaction::Source::Category::TaggedSymbol)
248
- end
249
- attr_accessor :category
250
-
251
251
  # A Check Decline object. This field will be present in the JSON response if and
252
252
  # only if `category` is equal to `check_decline`.
253
253
  sig do
@@ -369,6 +369,7 @@ module Increase
369
369
  # as deprecated and will be removed in the future.
370
370
  sig do
371
371
  params(
372
+ category: Increase::DeclinedTransaction::Source::Category::OrSymbol,
372
373
  ach_decline:
373
374
  T.nilable(
374
375
  Increase::DeclinedTransaction::Source::ACHDecline::OrHash
@@ -377,7 +378,6 @@ module Increase
377
378
  T.nilable(
378
379
  Increase::DeclinedTransaction::Source::CardDecline::OrHash
379
380
  ),
380
- category: Increase::DeclinedTransaction::Source::Category::OrSymbol,
381
381
  check_decline:
382
382
  T.nilable(
383
383
  Increase::DeclinedTransaction::Source::CheckDecline::OrHash
@@ -403,47 +403,47 @@ module Increase
403
403
  ).returns(T.attached_class)
404
404
  end
405
405
  def self.new(
406
+ # The type of the resource. We may add additional possible values for this enum
407
+ # over time; your application should be able to handle such additions gracefully.
408
+ category:,
406
409
  # An ACH Decline object. This field will be present in the JSON response if and
407
410
  # only if `category` is equal to `ach_decline`.
408
- ach_decline:,
411
+ ach_decline: nil,
409
412
  # A Card Decline object. This field will be present in the JSON response if and
410
413
  # only if `category` is equal to `card_decline`.
411
- card_decline:,
412
- # The type of the resource. We may add additional possible values for this enum
413
- # over time; your application should be able to handle such additions gracefully.
414
- category:,
414
+ card_decline: nil,
415
415
  # A Check Decline object. This field will be present in the JSON response if and
416
416
  # only if `category` is equal to `check_decline`.
417
- check_decline:,
417
+ check_decline: nil,
418
418
  # A Check Deposit Rejection object. This field will be present in the JSON
419
419
  # response if and only if `category` is equal to `check_deposit_rejection`.
420
- check_deposit_rejection:,
420
+ check_deposit_rejection: nil,
421
421
  # An Inbound FedNow Transfer Decline object. This field will be present in the
422
422
  # JSON response if and only if `category` is equal to
423
423
  # `inbound_fednow_transfer_decline`.
424
- inbound_fednow_transfer_decline:,
424
+ inbound_fednow_transfer_decline: nil,
425
425
  # An Inbound Real-Time Payments Transfer Decline object. This field will be
426
426
  # present in the JSON response if and only if `category` is equal to
427
427
  # `inbound_real_time_payments_transfer_decline`.
428
- inbound_real_time_payments_transfer_decline:,
428
+ inbound_real_time_payments_transfer_decline: nil,
429
429
  # If the category of this Transaction source is equal to `other`, this field will
430
430
  # contain an empty object, otherwise it will contain null.
431
- other:,
431
+ other: nil,
432
432
  # A Wire Decline object. This field will be present in the JSON response if and
433
433
  # only if `category` is equal to `wire_decline`.
434
- wire_decline:
434
+ wire_decline: nil
435
435
  )
436
436
  end
437
437
 
438
438
  sig do
439
439
  override.returns(
440
440
  {
441
+ category:
442
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol,
441
443
  ach_decline:
442
444
  T.nilable(Increase::DeclinedTransaction::Source::ACHDecline),
443
445
  card_decline:
444
446
  T.nilable(Increase::DeclinedTransaction::Source::CardDecline),
445
- category:
446
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol,
447
447
  check_decline:
448
448
  T.nilable(Increase::DeclinedTransaction::Source::CheckDecline),
449
449
  check_deposit_rejection:
@@ -467,6 +467,84 @@ module Increase
467
467
  def to_hash
468
468
  end
469
469
 
470
+ # The type of the resource. We may add additional possible values for this enum
471
+ # over time; your application should be able to handle such additions gracefully.
472
+ module Category
473
+ extend Increase::Internal::Type::Enum
474
+
475
+ TaggedSymbol =
476
+ T.type_alias do
477
+ T.all(Symbol, Increase::DeclinedTransaction::Source::Category)
478
+ end
479
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
480
+
481
+ # ACH Decline: details will be under the `ach_decline` object.
482
+ ACH_DECLINE =
483
+ T.let(
484
+ :ach_decline,
485
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
486
+ )
487
+
488
+ # Card Decline: details will be under the `card_decline` object.
489
+ CARD_DECLINE =
490
+ T.let(
491
+ :card_decline,
492
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
493
+ )
494
+
495
+ # Check Decline: details will be under the `check_decline` object.
496
+ CHECK_DECLINE =
497
+ T.let(
498
+ :check_decline,
499
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
500
+ )
501
+
502
+ # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.
503
+ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE =
504
+ T.let(
505
+ :inbound_real_time_payments_transfer_decline,
506
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
507
+ )
508
+
509
+ # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
510
+ INBOUND_FEDNOW_TRANSFER_DECLINE =
511
+ T.let(
512
+ :inbound_fednow_transfer_decline,
513
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
514
+ )
515
+
516
+ # Wire Decline: details will be under the `wire_decline` object.
517
+ WIRE_DECLINE =
518
+ T.let(
519
+ :wire_decline,
520
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
521
+ )
522
+
523
+ # Check Deposit Rejection: details will be under the `check_deposit_rejection` object.
524
+ CHECK_DEPOSIT_REJECTION =
525
+ T.let(
526
+ :check_deposit_rejection,
527
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
528
+ )
529
+
530
+ # The Declined Transaction was made for an undocumented or deprecated reason.
531
+ OTHER =
532
+ T.let(
533
+ :other,
534
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
535
+ )
536
+
537
+ sig do
538
+ override.returns(
539
+ T::Array[
540
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
541
+ ]
542
+ )
543
+ end
544
+ def self.values
545
+ end
546
+ end
547
+
470
548
  class ACHDecline < Increase::Internal::Type::BaseModel
471
549
  OrHash =
472
550
  T.type_alias do
@@ -3335,84 +3413,6 @@ module Increase
3335
3413
  end
3336
3414
  end
3337
3415
 
3338
- # The type of the resource. We may add additional possible values for this enum
3339
- # over time; your application should be able to handle such additions gracefully.
3340
- module Category
3341
- extend Increase::Internal::Type::Enum
3342
-
3343
- TaggedSymbol =
3344
- T.type_alias do
3345
- T.all(Symbol, Increase::DeclinedTransaction::Source::Category)
3346
- end
3347
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3348
-
3349
- # ACH Decline: details will be under the `ach_decline` object.
3350
- ACH_DECLINE =
3351
- T.let(
3352
- :ach_decline,
3353
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3354
- )
3355
-
3356
- # Card Decline: details will be under the `card_decline` object.
3357
- CARD_DECLINE =
3358
- T.let(
3359
- :card_decline,
3360
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3361
- )
3362
-
3363
- # Check Decline: details will be under the `check_decline` object.
3364
- CHECK_DECLINE =
3365
- T.let(
3366
- :check_decline,
3367
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3368
- )
3369
-
3370
- # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.
3371
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE =
3372
- T.let(
3373
- :inbound_real_time_payments_transfer_decline,
3374
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3375
- )
3376
-
3377
- # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
3378
- INBOUND_FEDNOW_TRANSFER_DECLINE =
3379
- T.let(
3380
- :inbound_fednow_transfer_decline,
3381
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3382
- )
3383
-
3384
- # Wire Decline: details will be under the `wire_decline` object.
3385
- WIRE_DECLINE =
3386
- T.let(
3387
- :wire_decline,
3388
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3389
- )
3390
-
3391
- # Check Deposit Rejection: details will be under the `check_deposit_rejection` object.
3392
- CHECK_DEPOSIT_REJECTION =
3393
- T.let(
3394
- :check_deposit_rejection,
3395
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3396
- )
3397
-
3398
- # The Declined Transaction was made for an undocumented or deprecated reason.
3399
- OTHER =
3400
- T.let(
3401
- :other,
3402
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3403
- )
3404
-
3405
- sig do
3406
- override.returns(
3407
- T::Array[
3408
- Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3409
- ]
3410
- )
3411
- end
3412
- def self.values
3413
- end
3414
- end
3415
-
3416
3416
  class CheckDecline < Increase::Internal::Type::BaseModel
3417
3417
  OrHash =
3418
3418
  T.type_alias do
@@ -296,6 +296,12 @@ module Increase
296
296
  )
297
297
  end
298
298
 
299
+ # The type of object that created this transfer.
300
+ sig do
301
+ returns(Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol)
302
+ end
303
+ attr_accessor :category
304
+
299
305
  # If present, details about the API key that created the transfer.
300
306
  sig { returns(T.nilable(Increase::FednowTransfer::CreatedBy::APIKey)) }
301
307
  attr_reader :api_key
@@ -308,12 +314,6 @@ module Increase
308
314
  end
309
315
  attr_writer :api_key
310
316
 
311
- # The type of object that created this transfer.
312
- sig do
313
- returns(Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol)
314
- end
315
- attr_accessor :category
316
-
317
317
  # If present, details about the OAuth Application that created the transfer.
318
318
  sig do
319
319
  returns(
@@ -346,9 +346,9 @@ module Increase
346
346
  # What object created the transfer, either via the API or the dashboard.
347
347
  sig do
348
348
  params(
349
+ category: Increase::FednowTransfer::CreatedBy::Category::OrSymbol,
349
350
  api_key:
350
351
  T.nilable(Increase::FednowTransfer::CreatedBy::APIKey::OrHash),
351
- category: Increase::FednowTransfer::CreatedBy::Category::OrSymbol,
352
352
  oauth_application:
353
353
  T.nilable(
354
354
  Increase::FednowTransfer::CreatedBy::OAuthApplication::OrHash
@@ -357,23 +357,23 @@ module Increase
357
357
  ).returns(T.attached_class)
358
358
  end
359
359
  def self.new(
360
- # If present, details about the API key that created the transfer.
361
- api_key:,
362
360
  # The type of object that created this transfer.
363
361
  category:,
362
+ # If present, details about the API key that created the transfer.
363
+ api_key: nil,
364
364
  # If present, details about the OAuth Application that created the transfer.
365
- oauth_application:,
365
+ oauth_application: nil,
366
366
  # If present, details about the User that created the transfer.
367
- user:
367
+ user: nil
368
368
  )
369
369
  end
370
370
 
371
371
  sig do
372
372
  override.returns(
373
373
  {
374
- api_key: T.nilable(Increase::FednowTransfer::CreatedBy::APIKey),
375
374
  category:
376
375
  Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol,
376
+ api_key: T.nilable(Increase::FednowTransfer::CreatedBy::APIKey),
377
377
  oauth_application:
378
378
  T.nilable(
379
379
  Increase::FednowTransfer::CreatedBy::OAuthApplication
@@ -385,34 +385,6 @@ module Increase
385
385
  def to_hash
386
386
  end
387
387
 
388
- class APIKey < Increase::Internal::Type::BaseModel
389
- OrHash =
390
- T.type_alias do
391
- T.any(
392
- Increase::FednowTransfer::CreatedBy::APIKey,
393
- Increase::Internal::AnyHash
394
- )
395
- end
396
-
397
- # The description set for the API key when it was created.
398
- sig { returns(T.nilable(String)) }
399
- attr_accessor :description
400
-
401
- # If present, details about the API key that created the transfer.
402
- sig do
403
- params(description: T.nilable(String)).returns(T.attached_class)
404
- end
405
- def self.new(
406
- # The description set for the API key when it was created.
407
- description:
408
- )
409
- end
410
-
411
- sig { override.returns({ description: T.nilable(String) }) }
412
- def to_hash
413
- end
414
- end
415
-
416
388
  # The type of object that created this transfer.
417
389
  module Category
418
390
  extend Increase::Internal::Type::Enum
@@ -455,6 +427,34 @@ module Increase
455
427
  end
456
428
  end
457
429
 
430
+ class APIKey < Increase::Internal::Type::BaseModel
431
+ OrHash =
432
+ T.type_alias do
433
+ T.any(
434
+ Increase::FednowTransfer::CreatedBy::APIKey,
435
+ Increase::Internal::AnyHash
436
+ )
437
+ end
438
+
439
+ # The description set for the API key when it was created.
440
+ sig { returns(T.nilable(String)) }
441
+ attr_accessor :description
442
+
443
+ # If present, details about the API key that created the transfer.
444
+ sig do
445
+ params(description: T.nilable(String)).returns(T.attached_class)
446
+ end
447
+ def self.new(
448
+ # The description set for the API key when it was created.
449
+ description:
450
+ )
451
+ end
452
+
453
+ sig { override.returns({ description: T.nilable(String) }) }
454
+ def to_hash
455
+ end
456
+ end
457
+
458
458
  class OAuthApplication < Increase::Internal::Type::BaseModel
459
459
  OrHash =
460
460
  T.type_alias do