increase 1.116.0 → 1.118.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.
@@ -636,18 +636,40 @@ module Increase
636
636
  end
637
637
  attr_accessor :category
638
638
 
639
+ # Details related to refund authorizations.
640
+ sig do
641
+ returns(
642
+ T.nilable(
643
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
644
+ )
645
+ )
646
+ end
647
+ attr_reader :refund
648
+
649
+ sig do
650
+ params(
651
+ refund:
652
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund::OrHash
653
+ ).void
654
+ end
655
+ attr_writer :refund
656
+
639
657
  # Fields specific to a specific type of authorization, such as Automatic Fuel
640
658
  # Dispensers, Refund Authorizations, or Cash Disbursements.
641
659
  sig do
642
660
  params(
643
661
  category:
644
- Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
662
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol,
663
+ refund:
664
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund::OrHash
645
665
  ).returns(T.attached_class)
646
666
  end
647
667
  def self.new(
648
668
  # The processing category describes the intent behind the authorization, such as
649
669
  # whether it was used for bill payments or an automatic fuel dispenser.
650
- category:
670
+ category:,
671
+ # Details related to refund authorizations.
672
+ refund: nil
651
673
  )
652
674
  end
653
675
 
@@ -655,7 +677,9 @@ module Increase
655
677
  override.returns(
656
678
  {
657
679
  category:
658
- Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
680
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol,
681
+ refund:
682
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
659
683
  }
660
684
  )
661
685
  end
@@ -742,6 +766,37 @@ module Increase
742
766
  def self.values
743
767
  end
744
768
  end
769
+
770
+ class Refund < Increase::Internal::Type::BaseModel
771
+ OrHash =
772
+ T.type_alias do
773
+ T.any(
774
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund,
775
+ Increase::Internal::AnyHash
776
+ )
777
+ end
778
+
779
+ # The card payment to link this refund to.
780
+ sig { returns(T.nilable(String)) }
781
+ attr_reader :original_card_payment_id
782
+
783
+ sig { params(original_card_payment_id: String).void }
784
+ attr_writer :original_card_payment_id
785
+
786
+ # Details related to refund authorizations.
787
+ sig do
788
+ params(original_card_payment_id: String).returns(T.attached_class)
789
+ end
790
+ def self.new(
791
+ # The card payment to link this refund to.
792
+ original_card_payment_id: nil
793
+ )
794
+ end
795
+
796
+ sig { override.returns({ original_card_payment_id: String }) }
797
+ def to_hash
798
+ end
799
+ end
745
800
  end
746
801
  end
747
802
  end