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
@@ -112,6 +112,16 @@ module Increase
112
112
  T.any(Increase::CardPayment::Element, Increase::Internal::AnyHash)
113
113
  end
114
114
 
115
+ # The type of the resource. We may add additional possible values for this enum
116
+ # over time; your application should be able to handle such additions gracefully.
117
+ sig { returns(Increase::CardPayment::Element::Category::TaggedSymbol) }
118
+ attr_accessor :category
119
+
120
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
121
+ # the card payment element was created.
122
+ sig { returns(Time) }
123
+ attr_accessor :created_at
124
+
115
125
  # A Card Authentication object. This field will be present in the JSON response if
116
126
  # and only if `category` is equal to `card_authentication`. Card Authentications
117
127
  # are attempts to authenticate a transaction or a card with 3DS.
@@ -323,16 +333,6 @@ module Increase
323
333
  end
324
334
  attr_writer :card_validation
325
335
 
326
- # The type of the resource. We may add additional possible values for this enum
327
- # over time; your application should be able to handle such additions gracefully.
328
- sig { returns(Increase::CardPayment::Element::Category::TaggedSymbol) }
329
- attr_accessor :category
330
-
331
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
332
- # the card payment element was created.
333
- sig { returns(Time) }
334
- attr_accessor :created_at
335
-
336
336
  # If the category of this Transaction source is equal to `other`, this field will
337
337
  # contain an empty object, otherwise it will contain null.
338
338
  sig { returns(T.nilable(Increase::CardPayment::Element::Other)) }
@@ -347,6 +347,8 @@ module Increase
347
347
 
348
348
  sig do
349
349
  params(
350
+ category: Increase::CardPayment::Element::Category::OrSymbol,
351
+ created_at: Time,
350
352
  card_authentication:
351
353
  T.nilable(
352
354
  Increase::CardPayment::Element::CardAuthentication::OrHash
@@ -381,84 +383,84 @@ module Increase
381
383
  T.nilable(Increase::CardPayment::Element::CardSettlement::OrHash),
382
384
  card_validation:
383
385
  T.nilable(Increase::CardPayment::Element::CardValidation::OrHash),
384
- category: Increase::CardPayment::Element::Category::OrSymbol,
385
- created_at: Time,
386
386
  other: T.nilable(Increase::CardPayment::Element::Other::OrHash)
387
387
  ).returns(T.attached_class)
388
388
  end
389
389
  def self.new(
390
+ # The type of the resource. We may add additional possible values for this enum
391
+ # over time; your application should be able to handle such additions gracefully.
392
+ category:,
393
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
394
+ # the card payment element was created.
395
+ created_at:,
390
396
  # A Card Authentication object. This field will be present in the JSON response if
391
397
  # and only if `category` is equal to `card_authentication`. Card Authentications
392
398
  # are attempts to authenticate a transaction or a card with 3DS.
393
- card_authentication:,
399
+ card_authentication: nil,
394
400
  # A Card Authorization object. This field will be present in the JSON response if
395
401
  # and only if `category` is equal to `card_authorization`. Card Authorizations are
396
402
  # temporary holds placed on a customers funds with the intent to later clear a
397
403
  # transaction.
398
- card_authorization:,
404
+ card_authorization: nil,
399
405
  # A Card Authorization Expiration object. This field will be present in the JSON
400
406
  # response if and only if `category` is equal to `card_authorization_expiration`.
401
407
  # Card Authorization Expirations are cancellations of authorizations that were
402
408
  # never settled by the acquirer.
403
- card_authorization_expiration:,
409
+ card_authorization_expiration: nil,
404
410
  # A Card Balance Inquiry object. This field will be present in the JSON response
405
411
  # if and only if `category` is equal to `card_balance_inquiry`. Card Balance
406
412
  # Inquiries are transactions that allow merchants to check the available balance
407
413
  # on a card without placing a hold on funds, commonly used when a customer
408
414
  # requests their balance at an ATM.
409
- card_balance_inquiry:,
415
+ card_balance_inquiry: nil,
410
416
  # A Card Decline object. This field will be present in the JSON response if and
411
417
  # only if `category` is equal to `card_decline`.
412
- card_decline:,
418
+ card_decline: nil,
413
419
  # A Card Financial object. This field will be present in the JSON response if and
414
420
  # only if `category` is equal to `card_financial`. Card Financials are temporary
415
421
  # holds placed on a customers funds with the intent to later clear a transaction.
416
- card_financial:,
422
+ card_financial: nil,
417
423
  # A Card Fuel Confirmation object. This field will be present in the JSON response
418
424
  # if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel
419
425
  # Confirmations update the amount of a Card Authorization after a fuel pump
420
426
  # transaction is completed.
421
- card_fuel_confirmation:,
427
+ card_fuel_confirmation: nil,
422
428
  # A Card Increment object. This field will be present in the JSON response if and
423
429
  # only if `category` is equal to `card_increment`. Card Increments increase the
424
430
  # pending amount of an authorized transaction.
425
- card_increment:,
431
+ card_increment: nil,
426
432
  # A Card Refund object. This field will be present in the JSON response if and
427
433
  # only if `category` is equal to `card_refund`. Card Refunds move money back to
428
434
  # the cardholder. While they are usually connected to a Card Settlement an
429
435
  # acquirer can also refund money directly to a card without relation to a
430
436
  # transaction.
431
- card_refund:,
437
+ card_refund: nil,
432
438
  # A Card Reversal object. This field will be present in the JSON response if and
433
439
  # only if `category` is equal to `card_reversal`. Card Reversals cancel parts of
434
440
  # or the entirety of an existing Card Authorization.
435
- card_reversal:,
441
+ card_reversal: nil,
436
442
  # A Card Settlement object. This field will be present in the JSON response if and
437
443
  # only if `category` is equal to `card_settlement`. Card Settlements are card
438
444
  # transactions that have cleared and settled. While a settlement is usually
439
445
  # preceded by an authorization, an acquirer can also directly clear a transaction
440
446
  # without first authorizing it.
441
- card_settlement:,
447
+ card_settlement: nil,
442
448
  # An Inbound Card Validation object. This field will be present in the JSON
443
449
  # response if and only if `category` is equal to `card_validation`. Inbound Card
444
450
  # Validations are requests from a merchant to verify that a card number and
445
451
  # optionally its address and/or Card Verification Value are valid.
446
- card_validation:,
447
- # The type of the resource. We may add additional possible values for this enum
448
- # over time; your application should be able to handle such additions gracefully.
449
- category:,
450
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
451
- # the card payment element was created.
452
- created_at:,
452
+ card_validation: nil,
453
453
  # If the category of this Transaction source is equal to `other`, this field will
454
454
  # contain an empty object, otherwise it will contain null.
455
- other:
455
+ other: nil
456
456
  )
457
457
  end
458
458
 
459
459
  sig do
460
460
  override.returns(
461
461
  {
462
+ category: Increase::CardPayment::Element::Category::TaggedSymbol,
463
+ created_at: Time,
462
464
  card_authentication:
463
465
  T.nilable(Increase::CardPayment::Element::CardAuthentication),
464
466
  card_authorization:
@@ -485,8 +487,6 @@ module Increase
485
487
  T.nilable(Increase::CardPayment::Element::CardSettlement),
486
488
  card_validation:
487
489
  T.nilable(Increase::CardPayment::Element::CardValidation),
488
- category: Increase::CardPayment::Element::Category::TaggedSymbol,
489
- created_at: Time,
490
490
  other: T.nilable(Increase::CardPayment::Element::Other)
491
491
  }
492
492
  )
@@ -494,6 +494,117 @@ module Increase
494
494
  def to_hash
495
495
  end
496
496
 
497
+ # The type of the resource. We may add additional possible values for this enum
498
+ # over time; your application should be able to handle such additions gracefully.
499
+ module Category
500
+ extend Increase::Internal::Type::Enum
501
+
502
+ TaggedSymbol =
503
+ T.type_alias do
504
+ T.all(Symbol, Increase::CardPayment::Element::Category)
505
+ end
506
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
507
+
508
+ # Card Authorization: details will be under the `card_authorization` object.
509
+ CARD_AUTHORIZATION =
510
+ T.let(
511
+ :card_authorization,
512
+ Increase::CardPayment::Element::Category::TaggedSymbol
513
+ )
514
+
515
+ # Card Authentication: details will be under the `card_authentication` object.
516
+ CARD_AUTHENTICATION =
517
+ T.let(
518
+ :card_authentication,
519
+ Increase::CardPayment::Element::Category::TaggedSymbol
520
+ )
521
+
522
+ # Card Balance Inquiry: details will be under the `card_balance_inquiry` object.
523
+ CARD_BALANCE_INQUIRY =
524
+ T.let(
525
+ :card_balance_inquiry,
526
+ Increase::CardPayment::Element::Category::TaggedSymbol
527
+ )
528
+
529
+ # Inbound Card Validation: details will be under the `card_validation` object.
530
+ CARD_VALIDATION =
531
+ T.let(
532
+ :card_validation,
533
+ Increase::CardPayment::Element::Category::TaggedSymbol
534
+ )
535
+
536
+ # Card Decline: details will be under the `card_decline` object.
537
+ CARD_DECLINE =
538
+ T.let(
539
+ :card_decline,
540
+ Increase::CardPayment::Element::Category::TaggedSymbol
541
+ )
542
+
543
+ # Card Reversal: details will be under the `card_reversal` object.
544
+ CARD_REVERSAL =
545
+ T.let(
546
+ :card_reversal,
547
+ Increase::CardPayment::Element::Category::TaggedSymbol
548
+ )
549
+
550
+ # Card Authorization Expiration: details will be under the `card_authorization_expiration` object.
551
+ CARD_AUTHORIZATION_EXPIRATION =
552
+ T.let(
553
+ :card_authorization_expiration,
554
+ Increase::CardPayment::Element::Category::TaggedSymbol
555
+ )
556
+
557
+ # Card Increment: details will be under the `card_increment` object.
558
+ CARD_INCREMENT =
559
+ T.let(
560
+ :card_increment,
561
+ Increase::CardPayment::Element::Category::TaggedSymbol
562
+ )
563
+
564
+ # Card Settlement: details will be under the `card_settlement` object.
565
+ CARD_SETTLEMENT =
566
+ T.let(
567
+ :card_settlement,
568
+ Increase::CardPayment::Element::Category::TaggedSymbol
569
+ )
570
+
571
+ # Card Refund: details will be under the `card_refund` object.
572
+ CARD_REFUND =
573
+ T.let(
574
+ :card_refund,
575
+ Increase::CardPayment::Element::Category::TaggedSymbol
576
+ )
577
+
578
+ # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object.
579
+ CARD_FUEL_CONFIRMATION =
580
+ T.let(
581
+ :card_fuel_confirmation,
582
+ Increase::CardPayment::Element::Category::TaggedSymbol
583
+ )
584
+
585
+ # Card Financial: details will be under the `card_financial` object.
586
+ CARD_FINANCIAL =
587
+ T.let(
588
+ :card_financial,
589
+ Increase::CardPayment::Element::Category::TaggedSymbol
590
+ )
591
+
592
+ # Unknown card payment element.
593
+ OTHER =
594
+ T.let(
595
+ :other,
596
+ Increase::CardPayment::Element::Category::TaggedSymbol
597
+ )
598
+
599
+ sig do
600
+ override.returns(
601
+ T::Array[Increase::CardPayment::Element::Category::TaggedSymbol]
602
+ )
603
+ end
604
+ def self.values
605
+ end
606
+ end
607
+
497
608
  class CardAuthentication < Increase::Internal::Type::BaseModel
498
609
  OrHash =
499
610
  T.type_alias do
@@ -19642,117 +19753,6 @@ module Increase
19642
19753
  end
19643
19754
  end
19644
19755
 
19645
- # The type of the resource. We may add additional possible values for this enum
19646
- # over time; your application should be able to handle such additions gracefully.
19647
- module Category
19648
- extend Increase::Internal::Type::Enum
19649
-
19650
- TaggedSymbol =
19651
- T.type_alias do
19652
- T.all(Symbol, Increase::CardPayment::Element::Category)
19653
- end
19654
- OrSymbol = T.type_alias { T.any(Symbol, String) }
19655
-
19656
- # Card Authorization: details will be under the `card_authorization` object.
19657
- CARD_AUTHORIZATION =
19658
- T.let(
19659
- :card_authorization,
19660
- Increase::CardPayment::Element::Category::TaggedSymbol
19661
- )
19662
-
19663
- # Card Authentication: details will be under the `card_authentication` object.
19664
- CARD_AUTHENTICATION =
19665
- T.let(
19666
- :card_authentication,
19667
- Increase::CardPayment::Element::Category::TaggedSymbol
19668
- )
19669
-
19670
- # Card Balance Inquiry: details will be under the `card_balance_inquiry` object.
19671
- CARD_BALANCE_INQUIRY =
19672
- T.let(
19673
- :card_balance_inquiry,
19674
- Increase::CardPayment::Element::Category::TaggedSymbol
19675
- )
19676
-
19677
- # Inbound Card Validation: details will be under the `card_validation` object.
19678
- CARD_VALIDATION =
19679
- T.let(
19680
- :card_validation,
19681
- Increase::CardPayment::Element::Category::TaggedSymbol
19682
- )
19683
-
19684
- # Card Decline: details will be under the `card_decline` object.
19685
- CARD_DECLINE =
19686
- T.let(
19687
- :card_decline,
19688
- Increase::CardPayment::Element::Category::TaggedSymbol
19689
- )
19690
-
19691
- # Card Reversal: details will be under the `card_reversal` object.
19692
- CARD_REVERSAL =
19693
- T.let(
19694
- :card_reversal,
19695
- Increase::CardPayment::Element::Category::TaggedSymbol
19696
- )
19697
-
19698
- # Card Authorization Expiration: details will be under the `card_authorization_expiration` object.
19699
- CARD_AUTHORIZATION_EXPIRATION =
19700
- T.let(
19701
- :card_authorization_expiration,
19702
- Increase::CardPayment::Element::Category::TaggedSymbol
19703
- )
19704
-
19705
- # Card Increment: details will be under the `card_increment` object.
19706
- CARD_INCREMENT =
19707
- T.let(
19708
- :card_increment,
19709
- Increase::CardPayment::Element::Category::TaggedSymbol
19710
- )
19711
-
19712
- # Card Settlement: details will be under the `card_settlement` object.
19713
- CARD_SETTLEMENT =
19714
- T.let(
19715
- :card_settlement,
19716
- Increase::CardPayment::Element::Category::TaggedSymbol
19717
- )
19718
-
19719
- # Card Refund: details will be under the `card_refund` object.
19720
- CARD_REFUND =
19721
- T.let(
19722
- :card_refund,
19723
- Increase::CardPayment::Element::Category::TaggedSymbol
19724
- )
19725
-
19726
- # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object.
19727
- CARD_FUEL_CONFIRMATION =
19728
- T.let(
19729
- :card_fuel_confirmation,
19730
- Increase::CardPayment::Element::Category::TaggedSymbol
19731
- )
19732
-
19733
- # Card Financial: details will be under the `card_financial` object.
19734
- CARD_FINANCIAL =
19735
- T.let(
19736
- :card_financial,
19737
- Increase::CardPayment::Element::Category::TaggedSymbol
19738
- )
19739
-
19740
- # Unknown card payment element.
19741
- OTHER =
19742
- T.let(
19743
- :other,
19744
- Increase::CardPayment::Element::Category::TaggedSymbol
19745
- )
19746
-
19747
- sig do
19748
- override.returns(
19749
- T::Array[Increase::CardPayment::Element::Category::TaggedSymbol]
19750
- )
19751
- end
19752
- def self.values
19753
- end
19754
- end
19755
-
19756
19756
  class Other < Increase::Internal::Type::BaseModel
19757
19757
  OrHash =
19758
19758
  T.type_alias do
@@ -683,6 +683,12 @@ module Increase
683
683
  )
684
684
  end
685
685
 
686
+ # The type of object that created this transfer.
687
+ sig do
688
+ returns(Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol)
689
+ end
690
+ attr_accessor :category
691
+
686
692
  # If present, details about the API key that created the transfer.
687
693
  sig do
688
694
  returns(T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey))
@@ -697,12 +703,6 @@ module Increase
697
703
  end
698
704
  attr_writer :api_key
699
705
 
700
- # The type of object that created this transfer.
701
- sig do
702
- returns(Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol)
703
- end
704
- attr_accessor :category
705
-
706
706
  # If present, details about the OAuth Application that created the transfer.
707
707
  sig do
708
708
  returns(
@@ -735,9 +735,9 @@ module Increase
735
735
  # What object created the transfer, either via the API or the dashboard.
736
736
  sig do
737
737
  params(
738
+ category: Increase::CardPushTransfer::CreatedBy::Category::OrSymbol,
738
739
  api_key:
739
740
  T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey::OrHash),
740
- category: Increase::CardPushTransfer::CreatedBy::Category::OrSymbol,
741
741
  oauth_application:
742
742
  T.nilable(
743
743
  Increase::CardPushTransfer::CreatedBy::OAuthApplication::OrHash
@@ -746,23 +746,23 @@ module Increase
746
746
  ).returns(T.attached_class)
747
747
  end
748
748
  def self.new(
749
- # If present, details about the API key that created the transfer.
750
- api_key:,
751
749
  # The type of object that created this transfer.
752
750
  category:,
751
+ # If present, details about the API key that created the transfer.
752
+ api_key: nil,
753
753
  # If present, details about the OAuth Application that created the transfer.
754
- oauth_application:,
754
+ oauth_application: nil,
755
755
  # If present, details about the User that created the transfer.
756
- user:
756
+ user: nil
757
757
  )
758
758
  end
759
759
 
760
760
  sig do
761
761
  override.returns(
762
762
  {
763
- api_key: T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey),
764
763
  category:
765
764
  Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol,
765
+ api_key: T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey),
766
766
  oauth_application:
767
767
  T.nilable(
768
768
  Increase::CardPushTransfer::CreatedBy::OAuthApplication
@@ -774,34 +774,6 @@ module Increase
774
774
  def to_hash
775
775
  end
776
776
 
777
- class APIKey < Increase::Internal::Type::BaseModel
778
- OrHash =
779
- T.type_alias do
780
- T.any(
781
- Increase::CardPushTransfer::CreatedBy::APIKey,
782
- Increase::Internal::AnyHash
783
- )
784
- end
785
-
786
- # The description set for the API key when it was created.
787
- sig { returns(T.nilable(String)) }
788
- attr_accessor :description
789
-
790
- # If present, details about the API key that created the transfer.
791
- sig do
792
- params(description: T.nilable(String)).returns(T.attached_class)
793
- end
794
- def self.new(
795
- # The description set for the API key when it was created.
796
- description:
797
- )
798
- end
799
-
800
- sig { override.returns({ description: T.nilable(String) }) }
801
- def to_hash
802
- end
803
- end
804
-
805
777
  # The type of object that created this transfer.
806
778
  module Category
807
779
  extend Increase::Internal::Type::Enum
@@ -844,6 +816,34 @@ module Increase
844
816
  end
845
817
  end
846
818
 
819
+ class APIKey < Increase::Internal::Type::BaseModel
820
+ OrHash =
821
+ T.type_alias do
822
+ T.any(
823
+ Increase::CardPushTransfer::CreatedBy::APIKey,
824
+ Increase::Internal::AnyHash
825
+ )
826
+ end
827
+
828
+ # The description set for the API key when it was created.
829
+ sig { returns(T.nilable(String)) }
830
+ attr_accessor :description
831
+
832
+ # If present, details about the API key that created the transfer.
833
+ sig do
834
+ params(description: T.nilable(String)).returns(T.attached_class)
835
+ end
836
+ def self.new(
837
+ # The description set for the API key when it was created.
838
+ description:
839
+ )
840
+ end
841
+
842
+ sig { override.returns({ description: T.nilable(String) }) }
843
+ def to_hash
844
+ end
845
+ end
846
+
847
847
  class OAuthApplication < Increase::Internal::Type::BaseModel
848
848
  OrHash =
849
849
  T.type_alias do
@@ -739,6 +739,12 @@ module Increase
739
739
  )
740
740
  end
741
741
 
742
+ # The type of object that created this transfer.
743
+ sig do
744
+ returns(Increase::CardValidation::CreatedBy::Category::TaggedSymbol)
745
+ end
746
+ attr_accessor :category
747
+
742
748
  # If present, details about the API key that created the transfer.
743
749
  sig { returns(T.nilable(Increase::CardValidation::CreatedBy::APIKey)) }
744
750
  attr_reader :api_key
@@ -751,12 +757,6 @@ module Increase
751
757
  end
752
758
  attr_writer :api_key
753
759
 
754
- # The type of object that created this transfer.
755
- sig do
756
- returns(Increase::CardValidation::CreatedBy::Category::TaggedSymbol)
757
- end
758
- attr_accessor :category
759
-
760
760
  # If present, details about the OAuth Application that created the transfer.
761
761
  sig do
762
762
  returns(
@@ -789,9 +789,9 @@ module Increase
789
789
  # What object created the validation, either via the API or the dashboard.
790
790
  sig do
791
791
  params(
792
+ category: Increase::CardValidation::CreatedBy::Category::OrSymbol,
792
793
  api_key:
793
794
  T.nilable(Increase::CardValidation::CreatedBy::APIKey::OrHash),
794
- category: Increase::CardValidation::CreatedBy::Category::OrSymbol,
795
795
  oauth_application:
796
796
  T.nilable(
797
797
  Increase::CardValidation::CreatedBy::OAuthApplication::OrHash
@@ -800,23 +800,23 @@ module Increase
800
800
  ).returns(T.attached_class)
801
801
  end
802
802
  def self.new(
803
- # If present, details about the API key that created the transfer.
804
- api_key:,
805
803
  # The type of object that created this transfer.
806
804
  category:,
805
+ # If present, details about the API key that created the transfer.
806
+ api_key: nil,
807
807
  # If present, details about the OAuth Application that created the transfer.
808
- oauth_application:,
808
+ oauth_application: nil,
809
809
  # If present, details about the User that created the transfer.
810
- user:
810
+ user: nil
811
811
  )
812
812
  end
813
813
 
814
814
  sig do
815
815
  override.returns(
816
816
  {
817
- api_key: T.nilable(Increase::CardValidation::CreatedBy::APIKey),
818
817
  category:
819
818
  Increase::CardValidation::CreatedBy::Category::TaggedSymbol,
819
+ api_key: T.nilable(Increase::CardValidation::CreatedBy::APIKey),
820
820
  oauth_application:
821
821
  T.nilable(
822
822
  Increase::CardValidation::CreatedBy::OAuthApplication
@@ -828,34 +828,6 @@ module Increase
828
828
  def to_hash
829
829
  end
830
830
 
831
- class APIKey < Increase::Internal::Type::BaseModel
832
- OrHash =
833
- T.type_alias do
834
- T.any(
835
- Increase::CardValidation::CreatedBy::APIKey,
836
- Increase::Internal::AnyHash
837
- )
838
- end
839
-
840
- # The description set for the API key when it was created.
841
- sig { returns(T.nilable(String)) }
842
- attr_accessor :description
843
-
844
- # If present, details about the API key that created the transfer.
845
- sig do
846
- params(description: T.nilable(String)).returns(T.attached_class)
847
- end
848
- def self.new(
849
- # The description set for the API key when it was created.
850
- description:
851
- )
852
- end
853
-
854
- sig { override.returns({ description: T.nilable(String) }) }
855
- def to_hash
856
- end
857
- end
858
-
859
831
  # The type of object that created this transfer.
860
832
  module Category
861
833
  extend Increase::Internal::Type::Enum
@@ -898,6 +870,34 @@ module Increase
898
870
  end
899
871
  end
900
872
 
873
+ class APIKey < Increase::Internal::Type::BaseModel
874
+ OrHash =
875
+ T.type_alias do
876
+ T.any(
877
+ Increase::CardValidation::CreatedBy::APIKey,
878
+ Increase::Internal::AnyHash
879
+ )
880
+ end
881
+
882
+ # The description set for the API key when it was created.
883
+ sig { returns(T.nilable(String)) }
884
+ attr_accessor :description
885
+
886
+ # If present, details about the API key that created the transfer.
887
+ sig do
888
+ params(description: T.nilable(String)).returns(T.attached_class)
889
+ end
890
+ def self.new(
891
+ # The description set for the API key when it was created.
892
+ description:
893
+ )
894
+ end
895
+
896
+ sig { override.returns({ description: T.nilable(String) }) }
897
+ def to_hash
898
+ end
899
+ end
900
+
901
901
  class OAuthApplication < Increase::Internal::Type::BaseModel
902
902
  OrHash =
903
903
  T.type_alias do