increase 1.19.0 → 1.21.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.
@@ -471,6 +471,15 @@ module Increase
471
471
  # @return [Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Actioner]
472
472
  required :actioner, enum: -> { Increase::PendingTransaction::Source::CardAuthorization::Actioner }
473
473
 
474
+ # @!attribute additional_amounts
475
+ # Additional amounts associated with the card authorization, such as ATM
476
+ # surcharges fees. These are usually a subset of the `amount` field and are used
477
+ # to provide more detailed information about the transaction.
478
+ #
479
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts]
480
+ required :additional_amounts,
481
+ -> { Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts }
482
+
474
483
  # @!attribute amount
475
484
  # The pending amount in the minor unit of the transaction's currency. For dollars,
476
485
  # for example, this is cents.
@@ -641,7 +650,7 @@ module Increase
641
650
  # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::Verification]
642
651
  required :verification, -> { Increase::PendingTransaction::Source::CardAuthorization::Verification }
643
652
 
644
- # @!method initialize(id:, actioner:, amount:, card_payment_id:, currency:, digital_wallet_token_id:, direction:, expires_at:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, pending_transaction_id:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, real_time_decision_id:, terminal_id:, type:, verification:)
653
+ # @!method initialize(id:, actioner:, additional_amounts:, amount:, card_payment_id:, currency:, digital_wallet_token_id:, direction:, expires_at:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, pending_transaction_id:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, real_time_decision_id:, terminal_id:, type:, verification:)
645
654
  # Some parameter documentations has been truncated, see
646
655
  # {Increase::Models::PendingTransaction::Source::CardAuthorization} for more
647
656
  # details.
@@ -655,6 +664,8 @@ module Increase
655
664
  #
656
665
  # @param actioner [Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Actioner] Whether this authorization was approved by Increase, the card network through st
657
666
  #
667
+ # @param additional_amounts [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts] Additional amounts associated with the card authorization, such as ATM surcharge
668
+ #
658
669
  # @param amount [Integer] The pending amount in the minor unit of the transaction's currency. For dollars,
659
670
  #
660
671
  # @param card_payment_id [String] The ID of the Card Payment this transaction belongs to.
@@ -725,6 +736,369 @@ module Increase
725
736
  # @return [Array<Symbol>]
726
737
  end
727
738
 
739
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization#additional_amounts
740
+ class AdditionalAmounts < Increase::Internal::Type::BaseModel
741
+ # @!attribute clinic
742
+ # The part of this transaction amount that was for clinic-related services.
743
+ #
744
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic, nil]
745
+ required :clinic,
746
+ -> {
747
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic
748
+ },
749
+ nil?: true
750
+
751
+ # @!attribute dental
752
+ # The part of this transaction amount that was for dental-related services.
753
+ #
754
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental, nil]
755
+ required :dental,
756
+ -> {
757
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental
758
+ },
759
+ nil?: true
760
+
761
+ # @!attribute prescription
762
+ # The part of this transaction amount that was for healthcare prescriptions.
763
+ #
764
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription, nil]
765
+ required :prescription,
766
+ -> {
767
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription
768
+ },
769
+ nil?: true
770
+
771
+ # @!attribute surcharge
772
+ # The surcharge amount charged for this transaction by the merchant.
773
+ #
774
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge, nil]
775
+ required :surcharge,
776
+ -> {
777
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge
778
+ },
779
+ nil?: true
780
+
781
+ # @!attribute total_cumulative
782
+ # The total amount of a series of incremental authorizations, optionally provided.
783
+ #
784
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative, nil]
785
+ required :total_cumulative,
786
+ -> {
787
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative
788
+ },
789
+ nil?: true
790
+
791
+ # @!attribute total_healthcare
792
+ # The total amount of healthcare-related additional amounts.
793
+ #
794
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare, nil]
795
+ required :total_healthcare,
796
+ -> {
797
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare
798
+ },
799
+ nil?: true
800
+
801
+ # @!attribute transit
802
+ # The part of this transaction amount that was for transit-related services.
803
+ #
804
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit, nil]
805
+ required :transit,
806
+ -> {
807
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit
808
+ },
809
+ nil?: true
810
+
811
+ # @!attribute unknown
812
+ # An unknown additional amount.
813
+ #
814
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown, nil]
815
+ required :unknown,
816
+ -> {
817
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown
818
+ },
819
+ nil?: true
820
+
821
+ # @!attribute vision
822
+ # The part of this transaction amount that was for vision-related services.
823
+ #
824
+ # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision, nil]
825
+ required :vision,
826
+ -> {
827
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision
828
+ },
829
+ nil?: true
830
+
831
+ # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:)
832
+ # Some parameter documentations has been truncated, see
833
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts}
834
+ # for more details.
835
+ #
836
+ # Additional amounts associated with the card authorization, such as ATM
837
+ # surcharges fees. These are usually a subset of the `amount` field and are used
838
+ # to provide more detailed information about the transaction.
839
+ #
840
+ # @param clinic [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic, nil] The part of this transaction amount that was for clinic-related services.
841
+ #
842
+ # @param dental [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services.
843
+ #
844
+ # @param prescription [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions.
845
+ #
846
+ # @param surcharge [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant.
847
+ #
848
+ # @param total_cumulative [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative, nil] The total amount of a series of incremental authorizations, optionally provided.
849
+ #
850
+ # @param total_healthcare [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare, nil] The total amount of healthcare-related additional amounts.
851
+ #
852
+ # @param transit [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit, nil] The part of this transaction amount that was for transit-related services.
853
+ #
854
+ # @param unknown [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown, nil] An unknown additional amount.
855
+ #
856
+ # @param vision [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision, nil] The part of this transaction amount that was for vision-related services.
857
+
858
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#clinic
859
+ class Clinic < Increase::Internal::Type::BaseModel
860
+ # @!attribute amount
861
+ # The amount in minor units of the `currency` field.
862
+ #
863
+ # @return [Integer]
864
+ required :amount, Integer
865
+
866
+ # @!attribute currency
867
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
868
+ # amount's currency.
869
+ #
870
+ # @return [String]
871
+ required :currency, String
872
+
873
+ # @!method initialize(amount:, currency:)
874
+ # Some parameter documentations has been truncated, see
875
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic}
876
+ # for more details.
877
+ #
878
+ # The part of this transaction amount that was for clinic-related services.
879
+ #
880
+ # @param amount [Integer] The amount in minor units of the `currency` field.
881
+ #
882
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
883
+ end
884
+
885
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#dental
886
+ class Dental < Increase::Internal::Type::BaseModel
887
+ # @!attribute amount
888
+ # The amount in minor units of the `currency` field.
889
+ #
890
+ # @return [Integer]
891
+ required :amount, Integer
892
+
893
+ # @!attribute currency
894
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
895
+ # amount's currency.
896
+ #
897
+ # @return [String]
898
+ required :currency, String
899
+
900
+ # @!method initialize(amount:, currency:)
901
+ # Some parameter documentations has been truncated, see
902
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental}
903
+ # for more details.
904
+ #
905
+ # The part of this transaction amount that was for dental-related services.
906
+ #
907
+ # @param amount [Integer] The amount in minor units of the `currency` field.
908
+ #
909
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
910
+ end
911
+
912
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#prescription
913
+ class Prescription < Increase::Internal::Type::BaseModel
914
+ # @!attribute amount
915
+ # The amount in minor units of the `currency` field.
916
+ #
917
+ # @return [Integer]
918
+ required :amount, Integer
919
+
920
+ # @!attribute currency
921
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
922
+ # amount's currency.
923
+ #
924
+ # @return [String]
925
+ required :currency, String
926
+
927
+ # @!method initialize(amount:, currency:)
928
+ # Some parameter documentations has been truncated, see
929
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription}
930
+ # for more details.
931
+ #
932
+ # The part of this transaction amount that was for healthcare prescriptions.
933
+ #
934
+ # @param amount [Integer] The amount in minor units of the `currency` field.
935
+ #
936
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
937
+ end
938
+
939
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#surcharge
940
+ class Surcharge < Increase::Internal::Type::BaseModel
941
+ # @!attribute amount
942
+ # The amount in minor units of the `currency` field.
943
+ #
944
+ # @return [Integer]
945
+ required :amount, Integer
946
+
947
+ # @!attribute currency
948
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
949
+ # amount's currency.
950
+ #
951
+ # @return [String]
952
+ required :currency, String
953
+
954
+ # @!method initialize(amount:, currency:)
955
+ # Some parameter documentations has been truncated, see
956
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge}
957
+ # for more details.
958
+ #
959
+ # The surcharge amount charged for this transaction by the merchant.
960
+ #
961
+ # @param amount [Integer] The amount in minor units of the `currency` field.
962
+ #
963
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
964
+ end
965
+
966
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#total_cumulative
967
+ class TotalCumulative < Increase::Internal::Type::BaseModel
968
+ # @!attribute amount
969
+ # The amount in minor units of the `currency` field.
970
+ #
971
+ # @return [Integer]
972
+ required :amount, Integer
973
+
974
+ # @!attribute currency
975
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
976
+ # amount's currency.
977
+ #
978
+ # @return [String]
979
+ required :currency, String
980
+
981
+ # @!method initialize(amount:, currency:)
982
+ # Some parameter documentations has been truncated, see
983
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative}
984
+ # for more details.
985
+ #
986
+ # The total amount of a series of incremental authorizations, optionally provided.
987
+ #
988
+ # @param amount [Integer] The amount in minor units of the `currency` field.
989
+ #
990
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
991
+ end
992
+
993
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#total_healthcare
994
+ class TotalHealthcare < Increase::Internal::Type::BaseModel
995
+ # @!attribute amount
996
+ # The amount in minor units of the `currency` field.
997
+ #
998
+ # @return [Integer]
999
+ required :amount, Integer
1000
+
1001
+ # @!attribute currency
1002
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1003
+ # amount's currency.
1004
+ #
1005
+ # @return [String]
1006
+ required :currency, String
1007
+
1008
+ # @!method initialize(amount:, currency:)
1009
+ # Some parameter documentations has been truncated, see
1010
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare}
1011
+ # for more details.
1012
+ #
1013
+ # The total amount of healthcare-related additional amounts.
1014
+ #
1015
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1016
+ #
1017
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1018
+ end
1019
+
1020
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#transit
1021
+ class Transit < Increase::Internal::Type::BaseModel
1022
+ # @!attribute amount
1023
+ # The amount in minor units of the `currency` field.
1024
+ #
1025
+ # @return [Integer]
1026
+ required :amount, Integer
1027
+
1028
+ # @!attribute currency
1029
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1030
+ # amount's currency.
1031
+ #
1032
+ # @return [String]
1033
+ required :currency, String
1034
+
1035
+ # @!method initialize(amount:, currency:)
1036
+ # Some parameter documentations has been truncated, see
1037
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit}
1038
+ # for more details.
1039
+ #
1040
+ # The part of this transaction amount that was for transit-related services.
1041
+ #
1042
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1043
+ #
1044
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1045
+ end
1046
+
1047
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#unknown
1048
+ class Unknown < Increase::Internal::Type::BaseModel
1049
+ # @!attribute amount
1050
+ # The amount in minor units of the `currency` field.
1051
+ #
1052
+ # @return [Integer]
1053
+ required :amount, Integer
1054
+
1055
+ # @!attribute currency
1056
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1057
+ # amount's currency.
1058
+ #
1059
+ # @return [String]
1060
+ required :currency, String
1061
+
1062
+ # @!method initialize(amount:, currency:)
1063
+ # Some parameter documentations has been truncated, see
1064
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown}
1065
+ # for more details.
1066
+ #
1067
+ # An unknown additional amount.
1068
+ #
1069
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1070
+ #
1071
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1072
+ end
1073
+
1074
+ # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#vision
1075
+ class Vision < Increase::Internal::Type::BaseModel
1076
+ # @!attribute amount
1077
+ # The amount in minor units of the `currency` field.
1078
+ #
1079
+ # @return [Integer]
1080
+ required :amount, Integer
1081
+
1082
+ # @!attribute currency
1083
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1084
+ # amount's currency.
1085
+ #
1086
+ # @return [String]
1087
+ required :currency, String
1088
+
1089
+ # @!method initialize(amount:, currency:)
1090
+ # Some parameter documentations has been truncated, see
1091
+ # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision}
1092
+ # for more details.
1093
+ #
1094
+ # The part of this transaction amount that was for vision-related services.
1095
+ #
1096
+ # @param amount [Integer] The amount in minor units of the `currency` field.
1097
+ #
1098
+ # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
1099
+ end
1100
+ end
1101
+
728
1102
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
729
1103
  # transaction's currency.
730
1104
  #