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