increase 1.203.0 → 1.204.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/account_transfer.rb +25 -25
  5. data/lib/increase/models/ach_transfer.rb +28 -28
  6. data/lib/increase/models/card_dispute.rb +79 -79
  7. data/lib/increase/models/card_payment.rb +82 -82
  8. data/lib/increase/models/card_push_transfer.rb +25 -25
  9. data/lib/increase/models/card_validation.rb +25 -25
  10. data/lib/increase/models/check_transfer.rb +25 -25
  11. data/lib/increase/models/declined_transaction.rb +53 -53
  12. data/lib/increase/models/fednow_transfer.rb +25 -25
  13. data/lib/increase/models/pending_transaction.rb +85 -85
  14. data/lib/increase/models/real_time_payments_transfer.rb +25 -25
  15. data/lib/increase/models/swift_transfer.rb +25 -25
  16. data/lib/increase/models/transaction.rb +173 -173
  17. data/lib/increase/models/wire_transfer.rb +28 -28
  18. data/lib/increase/version.rb +1 -1
  19. data/rbi/increase/models/account_transfer.rbi +40 -40
  20. data/rbi/increase/models/ach_transfer.rbi +42 -42
  21. data/rbi/increase/models/card_dispute.rbi +141 -141
  22. data/rbi/increase/models/card_payment.rbi +144 -144
  23. data/rbi/increase/models/card_push_transfer.rbi +40 -40
  24. data/rbi/increase/models/card_validation.rbi +40 -40
  25. data/rbi/increase/models/check_transfer.rbi +40 -40
  26. data/rbi/increase/models/declined_transaction.rbi +99 -99
  27. data/rbi/increase/models/fednow_transfer.rbi +40 -40
  28. data/rbi/increase/models/pending_transaction.rbi +163 -163
  29. data/rbi/increase/models/real_time_payments_transfer.rbi +44 -44
  30. data/rbi/increase/models/swift_transfer.rbi +40 -40
  31. data/rbi/increase/models/transaction.rbi +534 -534
  32. data/rbi/increase/models/wire_transfer.rbi +42 -42
  33. data/sig/increase/models/account_transfer.rbs +17 -17
  34. data/sig/increase/models/ach_transfer.rbs +19 -19
  35. data/sig/increase/models/card_dispute.rbs +56 -56
  36. data/sig/increase/models/card_payment.rbs +81 -81
  37. data/sig/increase/models/card_push_transfer.rbs +17 -17
  38. data/sig/increase/models/card_validation.rbs +17 -17
  39. data/sig/increase/models/check_transfer.rbs +17 -17
  40. data/sig/increase/models/declined_transaction.rbs +52 -52
  41. data/sig/increase/models/fednow_transfer.rbs +17 -17
  42. data/sig/increase/models/pending_transaction.rbs +92 -92
  43. data/sig/increase/models/real_time_payments_transfer.rbs +17 -17
  44. data/sig/increase/models/swift_transfer.rbs +17 -17
  45. data/sig/increase/models/transaction.rbs +202 -202
  46. data/sig/increase/models/wire_transfer.rbs +19 -19
  47. metadata +2 -2
@@ -235,6 +235,13 @@ module Increase
235
235
  )
236
236
  end
237
237
 
238
+ # The type of the resource. We may add additional possible values for this enum
239
+ # over time; your application should be able to handle such additions gracefully.
240
+ sig do
241
+ returns(Increase::PendingTransaction::Source::Category::TaggedSymbol)
242
+ end
243
+ attr_accessor :category
244
+
238
245
  # An Account Transfer Instruction object. This field will be present in the JSON
239
246
  # response if and only if `category` is equal to `account_transfer_instruction`.
240
247
  sig do
@@ -363,13 +370,6 @@ module Increase
363
370
  end
364
371
  attr_writer :card_push_transfer_instruction
365
372
 
366
- # The type of the resource. We may add additional possible values for this enum
367
- # over time; your application should be able to handle such additions gracefully.
368
- sig do
369
- returns(Increase::PendingTransaction::Source::Category::TaggedSymbol)
370
- end
371
- attr_accessor :category
372
-
373
373
  # A Check Deposit Instruction object. This field will be present in the JSON
374
374
  # response if and only if `category` is equal to `check_deposit_instruction`.
375
375
  sig do
@@ -565,6 +565,7 @@ module Increase
565
565
  # merchant's industry and location.
566
566
  sig do
567
567
  params(
568
+ category: Increase::PendingTransaction::Source::Category::OrSymbol,
568
569
  account_transfer_instruction:
569
570
  T.nilable(
570
571
  Increase::PendingTransaction::Source::AccountTransferInstruction::OrHash
@@ -589,7 +590,6 @@ module Increase
589
590
  T.nilable(
590
591
  Increase::PendingTransaction::Source::CardPushTransferInstruction::OrHash
591
592
  ),
592
- category: Increase::PendingTransaction::Source::Category::OrSymbol,
593
593
  check_deposit_instruction:
594
594
  T.nilable(
595
595
  Increase::PendingTransaction::Source::CheckDepositInstruction::OrHash
@@ -628,73 +628,75 @@ module Increase
628
628
  ).returns(T.attached_class)
629
629
  end
630
630
  def self.new(
631
+ # The type of the resource. We may add additional possible values for this enum
632
+ # over time; your application should be able to handle such additions gracefully.
633
+ category:,
631
634
  # An Account Transfer Instruction object. This field will be present in the JSON
632
635
  # response if and only if `category` is equal to `account_transfer_instruction`.
633
- account_transfer_instruction:,
636
+ account_transfer_instruction: nil,
634
637
  # An ACH Transfer Instruction object. This field will be present in the JSON
635
638
  # response if and only if `category` is equal to `ach_transfer_instruction`.
636
- ach_transfer_instruction:,
639
+ ach_transfer_instruction: nil,
637
640
  # A Blockchain Off-Ramp Transfer Instruction object. This field will be present in
638
641
  # the JSON response if and only if `category` is equal to
639
642
  # `blockchain_offramp_transfer_instruction`.
640
- blockchain_offramp_transfer_instruction:,
643
+ blockchain_offramp_transfer_instruction: nil,
641
644
  # A Blockchain On-Ramp Transfer Instruction object. This field will be present in
642
645
  # the JSON response if and only if `category` is equal to
643
646
  # `blockchain_onramp_transfer_instruction`.
644
- blockchain_onramp_transfer_instruction:,
647
+ blockchain_onramp_transfer_instruction: nil,
645
648
  # A Card Authorization object. This field will be present in the JSON response if
646
649
  # and only if `category` is equal to `card_authorization`. Card Authorizations are
647
650
  # temporary holds placed on a customers funds with the intent to later clear a
648
651
  # transaction.
649
- card_authorization:,
652
+ card_authorization: nil,
650
653
  # A Card Push Transfer Instruction object. This field will be present in the JSON
651
654
  # response if and only if `category` is equal to `card_push_transfer_instruction`.
652
- card_push_transfer_instruction:,
653
- # The type of the resource. We may add additional possible values for this enum
654
- # over time; your application should be able to handle such additions gracefully.
655
- category:,
655
+ card_push_transfer_instruction: nil,
656
656
  # A Check Deposit Instruction object. This field will be present in the JSON
657
657
  # response if and only if `category` is equal to `check_deposit_instruction`.
658
- check_deposit_instruction:,
658
+ check_deposit_instruction: nil,
659
659
  # A Check Transfer Instruction object. This field will be present in the JSON
660
660
  # response if and only if `category` is equal to `check_transfer_instruction`.
661
- check_transfer_instruction:,
661
+ check_transfer_instruction: nil,
662
662
  # A FedNow Transfer Instruction object. This field will be present in the JSON
663
663
  # response if and only if `category` is equal to `fednow_transfer_instruction`.
664
- fednow_transfer_instruction:,
664
+ fednow_transfer_instruction: nil,
665
665
  # An Inbound Funds Hold object. This field will be present in the JSON response if
666
666
  # and only if `category` is equal to `inbound_funds_hold`. We hold funds for
667
667
  # certain transaction types to account for return windows where funds might still
668
668
  # be clawed back by the sending institution.
669
- inbound_funds_hold:,
669
+ inbound_funds_hold: nil,
670
670
  # An Inbound Wire Transfer Reversal object. This field will be present in the JSON
671
671
  # response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
672
672
  # An Inbound Wire Transfer Reversal is created when Increase has received a wire
673
673
  # and the User requests that it be reversed.
674
- inbound_wire_transfer_reversal:,
674
+ inbound_wire_transfer_reversal: nil,
675
675
  # If the category of this Transaction source is equal to `other`, this field will
676
676
  # contain an empty object, otherwise it will contain null.
677
- other:,
677
+ other: nil,
678
678
  # A Real-Time Payments Transfer Instruction object. This field will be present in
679
679
  # the JSON response if and only if `category` is equal to
680
680
  # `real_time_payments_transfer_instruction`.
681
- real_time_payments_transfer_instruction:,
681
+ real_time_payments_transfer_instruction: nil,
682
682
  # A Swift Transfer Instruction object. This field will be present in the JSON
683
683
  # response if and only if `category` is equal to `swift_transfer_instruction`.
684
- swift_transfer_instruction:,
684
+ swift_transfer_instruction: nil,
685
685
  # An User Initiated Hold object. This field will be present in the JSON response
686
686
  # if and only if `category` is equal to `user_initiated_hold`. Created when a user
687
687
  # initiates a hold on funds in their account.
688
- user_initiated_hold:,
688
+ user_initiated_hold: nil,
689
689
  # A Wire Transfer Instruction object. This field will be present in the JSON
690
690
  # response if and only if `category` is equal to `wire_transfer_instruction`.
691
- wire_transfer_instruction:
691
+ wire_transfer_instruction: nil
692
692
  )
693
693
  end
694
694
 
695
695
  sig do
696
696
  override.returns(
697
697
  {
698
+ category:
699
+ Increase::PendingTransaction::Source::Category::TaggedSymbol,
698
700
  account_transfer_instruction:
699
701
  T.nilable(
700
702
  Increase::PendingTransaction::Source::AccountTransferInstruction
@@ -719,8 +721,6 @@ module Increase
719
721
  T.nilable(
720
722
  Increase::PendingTransaction::Source::CardPushTransferInstruction
721
723
  ),
722
- category:
723
- Increase::PendingTransaction::Source::Category::TaggedSymbol,
724
724
  check_deposit_instruction:
725
725
  T.nilable(
726
726
  Increase::PendingTransaction::Source::CheckDepositInstruction
@@ -761,6 +761,140 @@ module Increase
761
761
  def to_hash
762
762
  end
763
763
 
764
+ # The type of the resource. We may add additional possible values for this enum
765
+ # over time; your application should be able to handle such additions gracefully.
766
+ module Category
767
+ extend Increase::Internal::Type::Enum
768
+
769
+ TaggedSymbol =
770
+ T.type_alias do
771
+ T.all(Symbol, Increase::PendingTransaction::Source::Category)
772
+ end
773
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
774
+
775
+ # Account Transfer Instruction: details will be under the `account_transfer_instruction` object.
776
+ ACCOUNT_TRANSFER_INSTRUCTION =
777
+ T.let(
778
+ :account_transfer_instruction,
779
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
780
+ )
781
+
782
+ # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object.
783
+ ACH_TRANSFER_INSTRUCTION =
784
+ T.let(
785
+ :ach_transfer_instruction,
786
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
787
+ )
788
+
789
+ # Card Authorization: details will be under the `card_authorization` object.
790
+ CARD_AUTHORIZATION =
791
+ T.let(
792
+ :card_authorization,
793
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
794
+ )
795
+
796
+ # Check Deposit Instruction: details will be under the `check_deposit_instruction` object.
797
+ CHECK_DEPOSIT_INSTRUCTION =
798
+ T.let(
799
+ :check_deposit_instruction,
800
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
801
+ )
802
+
803
+ # Check Transfer Instruction: details will be under the `check_transfer_instruction` object.
804
+ CHECK_TRANSFER_INSTRUCTION =
805
+ T.let(
806
+ :check_transfer_instruction,
807
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
808
+ )
809
+
810
+ # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
811
+ FEDNOW_TRANSFER_INSTRUCTION =
812
+ T.let(
813
+ :fednow_transfer_instruction,
814
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
815
+ )
816
+
817
+ # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
818
+ INBOUND_FUNDS_HOLD =
819
+ T.let(
820
+ :inbound_funds_hold,
821
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
822
+ )
823
+
824
+ # User Initiated Hold: details will be under the `user_initiated_hold` object.
825
+ USER_INITIATED_HOLD =
826
+ T.let(
827
+ :user_initiated_hold,
828
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
829
+ )
830
+
831
+ # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object.
832
+ REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION =
833
+ T.let(
834
+ :real_time_payments_transfer_instruction,
835
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
836
+ )
837
+
838
+ # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object.
839
+ WIRE_TRANSFER_INSTRUCTION =
840
+ T.let(
841
+ :wire_transfer_instruction,
842
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
843
+ )
844
+
845
+ # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object.
846
+ INBOUND_WIRE_TRANSFER_REVERSAL =
847
+ T.let(
848
+ :inbound_wire_transfer_reversal,
849
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
850
+ )
851
+
852
+ # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object.
853
+ SWIFT_TRANSFER_INSTRUCTION =
854
+ T.let(
855
+ :swift_transfer_instruction,
856
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
857
+ )
858
+
859
+ # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object.
860
+ CARD_PUSH_TRANSFER_INSTRUCTION =
861
+ T.let(
862
+ :card_push_transfer_instruction,
863
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
864
+ )
865
+
866
+ # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object.
867
+ BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION =
868
+ T.let(
869
+ :blockchain_onramp_transfer_instruction,
870
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
871
+ )
872
+
873
+ # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object.
874
+ BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION =
875
+ T.let(
876
+ :blockchain_offramp_transfer_instruction,
877
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
878
+ )
879
+
880
+ # The Pending Transaction was made for an undocumented or deprecated reason.
881
+ OTHER =
882
+ T.let(
883
+ :other,
884
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
885
+ )
886
+
887
+ sig do
888
+ override.returns(
889
+ T::Array[
890
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
891
+ ]
892
+ )
893
+ end
894
+ def self.values
895
+ end
896
+ end
897
+
764
898
  class AccountTransferInstruction < Increase::Internal::Type::BaseModel
765
899
  OrHash =
766
900
  T.type_alias do
@@ -3366,140 +3500,6 @@ module Increase
3366
3500
  end
3367
3501
  end
3368
3502
 
3369
- # The type of the resource. We may add additional possible values for this enum
3370
- # over time; your application should be able to handle such additions gracefully.
3371
- module Category
3372
- extend Increase::Internal::Type::Enum
3373
-
3374
- TaggedSymbol =
3375
- T.type_alias do
3376
- T.all(Symbol, Increase::PendingTransaction::Source::Category)
3377
- end
3378
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3379
-
3380
- # Account Transfer Instruction: details will be under the `account_transfer_instruction` object.
3381
- ACCOUNT_TRANSFER_INSTRUCTION =
3382
- T.let(
3383
- :account_transfer_instruction,
3384
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3385
- )
3386
-
3387
- # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object.
3388
- ACH_TRANSFER_INSTRUCTION =
3389
- T.let(
3390
- :ach_transfer_instruction,
3391
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3392
- )
3393
-
3394
- # Card Authorization: details will be under the `card_authorization` object.
3395
- CARD_AUTHORIZATION =
3396
- T.let(
3397
- :card_authorization,
3398
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3399
- )
3400
-
3401
- # Check Deposit Instruction: details will be under the `check_deposit_instruction` object.
3402
- CHECK_DEPOSIT_INSTRUCTION =
3403
- T.let(
3404
- :check_deposit_instruction,
3405
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3406
- )
3407
-
3408
- # Check Transfer Instruction: details will be under the `check_transfer_instruction` object.
3409
- CHECK_TRANSFER_INSTRUCTION =
3410
- T.let(
3411
- :check_transfer_instruction,
3412
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3413
- )
3414
-
3415
- # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
3416
- FEDNOW_TRANSFER_INSTRUCTION =
3417
- T.let(
3418
- :fednow_transfer_instruction,
3419
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3420
- )
3421
-
3422
- # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
3423
- INBOUND_FUNDS_HOLD =
3424
- T.let(
3425
- :inbound_funds_hold,
3426
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3427
- )
3428
-
3429
- # User Initiated Hold: details will be under the `user_initiated_hold` object.
3430
- USER_INITIATED_HOLD =
3431
- T.let(
3432
- :user_initiated_hold,
3433
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3434
- )
3435
-
3436
- # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object.
3437
- REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION =
3438
- T.let(
3439
- :real_time_payments_transfer_instruction,
3440
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3441
- )
3442
-
3443
- # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object.
3444
- WIRE_TRANSFER_INSTRUCTION =
3445
- T.let(
3446
- :wire_transfer_instruction,
3447
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3448
- )
3449
-
3450
- # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object.
3451
- INBOUND_WIRE_TRANSFER_REVERSAL =
3452
- T.let(
3453
- :inbound_wire_transfer_reversal,
3454
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3455
- )
3456
-
3457
- # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object.
3458
- SWIFT_TRANSFER_INSTRUCTION =
3459
- T.let(
3460
- :swift_transfer_instruction,
3461
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3462
- )
3463
-
3464
- # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object.
3465
- CARD_PUSH_TRANSFER_INSTRUCTION =
3466
- T.let(
3467
- :card_push_transfer_instruction,
3468
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3469
- )
3470
-
3471
- # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object.
3472
- BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION =
3473
- T.let(
3474
- :blockchain_onramp_transfer_instruction,
3475
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3476
- )
3477
-
3478
- # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object.
3479
- BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION =
3480
- T.let(
3481
- :blockchain_offramp_transfer_instruction,
3482
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3483
- )
3484
-
3485
- # The Pending Transaction was made for an undocumented or deprecated reason.
3486
- OTHER =
3487
- T.let(
3488
- :other,
3489
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3490
- )
3491
-
3492
- sig do
3493
- override.returns(
3494
- T::Array[
3495
- Increase::PendingTransaction::Source::Category::TaggedSymbol
3496
- ]
3497
- )
3498
- end
3499
- def self.values
3500
- end
3501
- end
3502
-
3503
3503
  class CheckDepositInstruction < Increase::Internal::Type::BaseModel
3504
3504
  OrHash =
3505
3505
  T.type_alias do
@@ -458,6 +458,14 @@ module Increase
458
458
  )
459
459
  end
460
460
 
461
+ # The type of object that created this transfer.
462
+ sig do
463
+ returns(
464
+ Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol
465
+ )
466
+ end
467
+ attr_accessor :category
468
+
461
469
  # If present, details about the API key that created the transfer.
462
470
  sig do
463
471
  returns(
@@ -476,14 +484,6 @@ module Increase
476
484
  end
477
485
  attr_writer :api_key
478
486
 
479
- # The type of object that created this transfer.
480
- sig do
481
- returns(
482
- Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol
483
- )
484
- end
485
- attr_accessor :category
486
-
487
487
  # If present, details about the OAuth Application that created the transfer.
488
488
  sig do
489
489
  returns(
@@ -525,12 +525,12 @@ module Increase
525
525
  # What object created the transfer, either via the API or the dashboard.
526
526
  sig do
527
527
  params(
528
+ category:
529
+ Increase::RealTimePaymentsTransfer::CreatedBy::Category::OrSymbol,
528
530
  api_key:
529
531
  T.nilable(
530
532
  Increase::RealTimePaymentsTransfer::CreatedBy::APIKey::OrHash
531
533
  ),
532
- category:
533
- Increase::RealTimePaymentsTransfer::CreatedBy::Category::OrSymbol,
534
534
  oauth_application:
535
535
  T.nilable(
536
536
  Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication::OrHash
@@ -542,26 +542,26 @@ module Increase
542
542
  ).returns(T.attached_class)
543
543
  end
544
544
  def self.new(
545
- # If present, details about the API key that created the transfer.
546
- api_key:,
547
545
  # The type of object that created this transfer.
548
546
  category:,
547
+ # If present, details about the API key that created the transfer.
548
+ api_key: nil,
549
549
  # If present, details about the OAuth Application that created the transfer.
550
- oauth_application:,
550
+ oauth_application: nil,
551
551
  # If present, details about the User that created the transfer.
552
- user:
552
+ user: nil
553
553
  )
554
554
  end
555
555
 
556
556
  sig do
557
557
  override.returns(
558
558
  {
559
+ category:
560
+ Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol,
559
561
  api_key:
560
562
  T.nilable(
561
563
  Increase::RealTimePaymentsTransfer::CreatedBy::APIKey
562
564
  ),
563
- category:
564
- Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol,
565
565
  oauth_application:
566
566
  T.nilable(
567
567
  Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication
@@ -574,34 +574,6 @@ module Increase
574
574
  def to_hash
575
575
  end
576
576
 
577
- class APIKey < Increase::Internal::Type::BaseModel
578
- OrHash =
579
- T.type_alias do
580
- T.any(
581
- Increase::RealTimePaymentsTransfer::CreatedBy::APIKey,
582
- Increase::Internal::AnyHash
583
- )
584
- end
585
-
586
- # The description set for the API key when it was created.
587
- sig { returns(T.nilable(String)) }
588
- attr_accessor :description
589
-
590
- # If present, details about the API key that created the transfer.
591
- sig do
592
- params(description: T.nilable(String)).returns(T.attached_class)
593
- end
594
- def self.new(
595
- # The description set for the API key when it was created.
596
- description:
597
- )
598
- end
599
-
600
- sig { override.returns({ description: T.nilable(String) }) }
601
- def to_hash
602
- end
603
- end
604
-
605
577
  # The type of object that created this transfer.
606
578
  module Category
607
579
  extend Increase::Internal::Type::Enum
@@ -647,6 +619,34 @@ module Increase
647
619
  end
648
620
  end
649
621
 
622
+ class APIKey < Increase::Internal::Type::BaseModel
623
+ OrHash =
624
+ T.type_alias do
625
+ T.any(
626
+ Increase::RealTimePaymentsTransfer::CreatedBy::APIKey,
627
+ Increase::Internal::AnyHash
628
+ )
629
+ end
630
+
631
+ # The description set for the API key when it was created.
632
+ sig { returns(T.nilable(String)) }
633
+ attr_accessor :description
634
+
635
+ # If present, details about the API key that created the transfer.
636
+ sig do
637
+ params(description: T.nilable(String)).returns(T.attached_class)
638
+ end
639
+ def self.new(
640
+ # The description set for the API key when it was created.
641
+ description:
642
+ )
643
+ end
644
+
645
+ sig { override.returns({ description: T.nilable(String) }) }
646
+ def to_hash
647
+ end
648
+ end
649
+
650
650
  class OAuthApplication < Increase::Internal::Type::BaseModel
651
651
  OrHash =
652
652
  T.type_alias do