increase 1.19.0 → 1.20.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.
@@ -438,6 +438,17 @@ module Increase
438
438
  # @return [Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Actioner]
439
439
  required :actioner, enum: -> { Increase::DeclinedTransaction::Source::CardDecline::Actioner }
440
440
 
441
+ # @!attribute additional_amounts
442
+ # Additional amounts associated with the card authorization, such as ATM
443
+ # surcharges fees. These are usually a subset of the `amount` field and are used
444
+ # to provide more detailed information about the transaction.
445
+ #
446
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts]
447
+ required :additional_amounts,
448
+ -> {
449
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts
450
+ }
451
+
441
452
  # @!attribute amount
442
453
  # The declined amount in the minor unit of the destination account currency. For
443
454
  # dollars, for example, this is cents.
@@ -606,7 +617,7 @@ module Increase
606
617
  # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::Verification]
607
618
  required :verification, -> { Increase::DeclinedTransaction::Source::CardDecline::Verification }
608
619
 
609
- # @!method initialize(id:, actioner:, amount:, card_payment_id:, currency:, declined_transaction_id:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, real_time_decision_id:, real_time_decision_reason:, reason:, terminal_id:, verification:)
620
+ # @!method initialize(id:, actioner:, additional_amounts:, amount:, card_payment_id:, currency:, declined_transaction_id:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, real_time_decision_id:, real_time_decision_reason:, reason:, terminal_id:, verification:)
610
621
  # Some parameter documentations has been truncated, see
611
622
  # {Increase::Models::DeclinedTransaction::Source::CardDecline} for more details.
612
623
  #
@@ -617,6 +628,8 @@ module Increase
617
628
  #
618
629
  # @param actioner [Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Actioner] Whether this authorization was approved by Increase, the card network through st
619
630
  #
631
+ # @param additional_amounts [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts] Additional amounts associated with the card authorization, such as ATM surcharge
632
+ #
620
633
  # @param amount [Integer] The declined amount in the minor unit of the destination account currency. For d
621
634
  #
622
635
  # @param card_payment_id [String] The ID of the Card Payment this transaction belongs to.
@@ -687,6 +700,357 @@ module Increase
687
700
  # @return [Array<Symbol>]
688
701
  end
689
702
 
703
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline#additional_amounts
704
+ class AdditionalAmounts < Increase::Internal::Type::BaseModel
705
+ # @!attribute clinic
706
+ # The part of this transaction amount that was for clinic-related services.
707
+ #
708
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic, nil]
709
+ required :clinic,
710
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic },
711
+ nil?: true
712
+
713
+ # @!attribute dental
714
+ # The part of this transaction amount that was for dental-related services.
715
+ #
716
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental, nil]
717
+ required :dental,
718
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental },
719
+ nil?: true
720
+
721
+ # @!attribute prescription
722
+ # The part of this transaction amount that was for healthcare prescriptions.
723
+ #
724
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription, nil]
725
+ required :prescription,
726
+ -> {
727
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription
728
+ },
729
+ nil?: true
730
+
731
+ # @!attribute surcharge
732
+ # The surcharge amount charged for this transaction by the merchant.
733
+ #
734
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge, nil]
735
+ required :surcharge,
736
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge },
737
+ nil?: true
738
+
739
+ # @!attribute total_cumulative
740
+ # The total amount of a series of incremental authorizations, optionally provided.
741
+ #
742
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative, nil]
743
+ required :total_cumulative,
744
+ -> {
745
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative
746
+ },
747
+ nil?: true
748
+
749
+ # @!attribute total_healthcare
750
+ # The total amount of healthcare-related additional amounts.
751
+ #
752
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare, nil]
753
+ required :total_healthcare,
754
+ -> {
755
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare
756
+ },
757
+ nil?: true
758
+
759
+ # @!attribute transit
760
+ # The part of this transaction amount that was for transit-related services.
761
+ #
762
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit, nil]
763
+ required :transit,
764
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit },
765
+ nil?: true
766
+
767
+ # @!attribute unknown
768
+ # An unknown additional amount.
769
+ #
770
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown, nil]
771
+ required :unknown,
772
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown },
773
+ nil?: true
774
+
775
+ # @!attribute vision
776
+ # The part of this transaction amount that was for vision-related services.
777
+ #
778
+ # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision, nil]
779
+ required :vision,
780
+ -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision },
781
+ nil?: true
782
+
783
+ # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:)
784
+ # Some parameter documentations has been truncated, see
785
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts}
786
+ # for more details.
787
+ #
788
+ # Additional amounts associated with the card authorization, such as ATM
789
+ # surcharges fees. These are usually a subset of the `amount` field and are used
790
+ # to provide more detailed information about the transaction.
791
+ #
792
+ # @param clinic [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic, nil] The part of this transaction amount that was for clinic-related services.
793
+ #
794
+ # @param dental [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services.
795
+ #
796
+ # @param prescription [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions.
797
+ #
798
+ # @param surcharge [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant.
799
+ #
800
+ # @param total_cumulative [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative, nil] The total amount of a series of incremental authorizations, optionally provided.
801
+ #
802
+ # @param total_healthcare [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare, nil] The total amount of healthcare-related additional amounts.
803
+ #
804
+ # @param transit [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit, nil] The part of this transaction amount that was for transit-related services.
805
+ #
806
+ # @param unknown [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown, nil] An unknown additional amount.
807
+ #
808
+ # @param vision [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision, nil] The part of this transaction amount that was for vision-related services.
809
+
810
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#clinic
811
+ class Clinic < Increase::Internal::Type::BaseModel
812
+ # @!attribute amount
813
+ # The amount in minor units of the `currency` field.
814
+ #
815
+ # @return [Integer]
816
+ required :amount, Integer
817
+
818
+ # @!attribute currency
819
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
820
+ # amount's currency.
821
+ #
822
+ # @return [String]
823
+ required :currency, String
824
+
825
+ # @!method initialize(amount:, currency:)
826
+ # Some parameter documentations has been truncated, see
827
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic}
828
+ # for more details.
829
+ #
830
+ # The part of this transaction amount that was for clinic-related services.
831
+ #
832
+ # @param amount [Integer] The amount in minor units of the `currency` field.
833
+ #
834
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
835
+ end
836
+
837
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#dental
838
+ class Dental < Increase::Internal::Type::BaseModel
839
+ # @!attribute amount
840
+ # The amount in minor units of the `currency` field.
841
+ #
842
+ # @return [Integer]
843
+ required :amount, Integer
844
+
845
+ # @!attribute currency
846
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
847
+ # amount's currency.
848
+ #
849
+ # @return [String]
850
+ required :currency, String
851
+
852
+ # @!method initialize(amount:, currency:)
853
+ # Some parameter documentations has been truncated, see
854
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental}
855
+ # for more details.
856
+ #
857
+ # The part of this transaction amount that was for dental-related services.
858
+ #
859
+ # @param amount [Integer] The amount in minor units of the `currency` field.
860
+ #
861
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
862
+ end
863
+
864
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#prescription
865
+ class Prescription < Increase::Internal::Type::BaseModel
866
+ # @!attribute amount
867
+ # The amount in minor units of the `currency` field.
868
+ #
869
+ # @return [Integer]
870
+ required :amount, Integer
871
+
872
+ # @!attribute currency
873
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
874
+ # amount's currency.
875
+ #
876
+ # @return [String]
877
+ required :currency, String
878
+
879
+ # @!method initialize(amount:, currency:)
880
+ # Some parameter documentations has been truncated, see
881
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription}
882
+ # for more details.
883
+ #
884
+ # The part of this transaction amount that was for healthcare prescriptions.
885
+ #
886
+ # @param amount [Integer] The amount in minor units of the `currency` field.
887
+ #
888
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
889
+ end
890
+
891
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#surcharge
892
+ class Surcharge < Increase::Internal::Type::BaseModel
893
+ # @!attribute amount
894
+ # The amount in minor units of the `currency` field.
895
+ #
896
+ # @return [Integer]
897
+ required :amount, Integer
898
+
899
+ # @!attribute currency
900
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
901
+ # amount's currency.
902
+ #
903
+ # @return [String]
904
+ required :currency, String
905
+
906
+ # @!method initialize(amount:, currency:)
907
+ # Some parameter documentations has been truncated, see
908
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge}
909
+ # for more details.
910
+ #
911
+ # The surcharge amount charged for this transaction by the merchant.
912
+ #
913
+ # @param amount [Integer] The amount in minor units of the `currency` field.
914
+ #
915
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
916
+ end
917
+
918
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#total_cumulative
919
+ class TotalCumulative < Increase::Internal::Type::BaseModel
920
+ # @!attribute amount
921
+ # The amount in minor units of the `currency` field.
922
+ #
923
+ # @return [Integer]
924
+ required :amount, Integer
925
+
926
+ # @!attribute currency
927
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
928
+ # amount's currency.
929
+ #
930
+ # @return [String]
931
+ required :currency, String
932
+
933
+ # @!method initialize(amount:, currency:)
934
+ # Some parameter documentations has been truncated, see
935
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative}
936
+ # for more details.
937
+ #
938
+ # The total amount of a series of incremental authorizations, optionally provided.
939
+ #
940
+ # @param amount [Integer] The amount in minor units of the `currency` field.
941
+ #
942
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
943
+ end
944
+
945
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#total_healthcare
946
+ class TotalHealthcare < Increase::Internal::Type::BaseModel
947
+ # @!attribute amount
948
+ # The amount in minor units of the `currency` field.
949
+ #
950
+ # @return [Integer]
951
+ required :amount, Integer
952
+
953
+ # @!attribute currency
954
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
955
+ # amount's currency.
956
+ #
957
+ # @return [String]
958
+ required :currency, String
959
+
960
+ # @!method initialize(amount:, currency:)
961
+ # Some parameter documentations has been truncated, see
962
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare}
963
+ # for more details.
964
+ #
965
+ # The total amount of healthcare-related additional amounts.
966
+ #
967
+ # @param amount [Integer] The amount in minor units of the `currency` field.
968
+ #
969
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
970
+ end
971
+
972
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#transit
973
+ class Transit < Increase::Internal::Type::BaseModel
974
+ # @!attribute amount
975
+ # The amount in minor units of the `currency` field.
976
+ #
977
+ # @return [Integer]
978
+ required :amount, Integer
979
+
980
+ # @!attribute currency
981
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
982
+ # amount's currency.
983
+ #
984
+ # @return [String]
985
+ required :currency, String
986
+
987
+ # @!method initialize(amount:, currency:)
988
+ # Some parameter documentations has been truncated, see
989
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit}
990
+ # for more details.
991
+ #
992
+ # The part of this transaction amount that was for transit-related services.
993
+ #
994
+ # @param amount [Integer] The amount in minor units of the `currency` field.
995
+ #
996
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
997
+ end
998
+
999
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#unknown
1000
+ class Unknown < Increase::Internal::Type::BaseModel
1001
+ # @!attribute amount
1002
+ # The amount in minor units of the `currency` field.
1003
+ #
1004
+ # @return [Integer]
1005
+ required :amount, Integer
1006
+
1007
+ # @!attribute currency
1008
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1009
+ # amount's currency.
1010
+ #
1011
+ # @return [String]
1012
+ required :currency, String
1013
+
1014
+ # @!method initialize(amount:, currency:)
1015
+ # Some parameter documentations has been truncated, see
1016
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown}
1017
+ # for more details.
1018
+ #
1019
+ # An unknown additional amount.
1020
+ #
1021
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1022
+ #
1023
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1024
+ end
1025
+
1026
+ # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#vision
1027
+ class Vision < Increase::Internal::Type::BaseModel
1028
+ # @!attribute amount
1029
+ # The amount in minor units of the `currency` field.
1030
+ #
1031
+ # @return [Integer]
1032
+ required :amount, Integer
1033
+
1034
+ # @!attribute currency
1035
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1036
+ # amount's currency.
1037
+ #
1038
+ # @return [String]
1039
+ required :currency, String
1040
+
1041
+ # @!method initialize(amount:, currency:)
1042
+ # Some parameter documentations has been truncated, see
1043
+ # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision}
1044
+ # for more details.
1045
+ #
1046
+ # The part of this transaction amount that was for vision-related services.
1047
+ #
1048
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1049
+ #
1050
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1051
+ end
1052
+ end
1053
+
690
1054
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
691
1055
  # account currency.
692
1056
  #