increase 1.72.0 → 1.74.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card_payment.rb +18 -18
- data/lib/increase/models/declined_transaction.rb +6 -6
- data/lib/increase/models/pending_transaction.rb +6 -6
- data/lib/increase/models/real_time_decision.rb +31 -7
- data/lib/increase/models/real_time_decision_action_params.rb +166 -29
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_payment.rbi +30 -30
- data/rbi/increase/models/declined_transaction.rbi +10 -10
- data/rbi/increase/models/pending_transaction.rbi +10 -10
- data/rbi/increase/models/real_time_decision.rbi +67 -10
- data/rbi/increase/models/real_time_decision_action_params.rbi +358 -60
- data/sig/increase/models/card_payment.rbs +21 -21
- data/sig/increase/models/declined_transaction.rbs +7 -7
- data/sig/increase/models/pending_transaction.rbs +7 -7
- data/sig/increase/models/real_time_decision.rbs +22 -7
- data/sig/increase/models/real_time_decision_action_params.rbs +126 -29
- metadata +2 -2
@@ -3221,28 +3221,21 @@ module Increase
|
|
3221
3221
|
end
|
3222
3222
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3223
3223
|
|
3224
|
-
# No address was provided in the authorization request.
|
3224
|
+
# No address information was provided in the authorization request.
|
3225
3225
|
NOT_CHECKED =
|
3226
3226
|
T.let(
|
3227
3227
|
:not_checked,
|
3228
3228
|
Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
3229
3229
|
)
|
3230
3230
|
|
3231
|
-
# Postal code matches, but the street address was not
|
3232
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
3233
|
-
T.let(
|
3234
|
-
:postal_code_match_address_not_checked,
|
3235
|
-
Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
3236
|
-
)
|
3237
|
-
|
3238
|
-
# Postal code matches, but the street address does not match.
|
3231
|
+
# Postal code matches, but the street address does not match or was not provided.
|
3239
3232
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
3240
3233
|
T.let(
|
3241
3234
|
:postal_code_match_address_no_match,
|
3242
3235
|
Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
3243
3236
|
)
|
3244
3237
|
|
3245
|
-
# Postal code does not match, but the street address matches.
|
3238
|
+
# Postal code does not match, but the street address matches or was not provided.
|
3246
3239
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
3247
3240
|
T.let(
|
3248
3241
|
:postal_code_no_match_address_match,
|
@@ -3263,6 +3256,13 @@ module Increase
|
|
3263
3256
|
Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
3264
3257
|
)
|
3265
3258
|
|
3259
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
3260
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
3261
|
+
T.let(
|
3262
|
+
:postal_code_match_address_not_checked,
|
3263
|
+
Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
3264
|
+
)
|
3265
|
+
|
3266
3266
|
sig do
|
3267
3267
|
override.returns(
|
3268
3268
|
T::Array[
|
@@ -5774,28 +5774,21 @@ module Increase
|
|
5774
5774
|
end
|
5775
5775
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5776
5776
|
|
5777
|
-
# No address was provided in the authorization request.
|
5777
|
+
# No address information was provided in the authorization request.
|
5778
5778
|
NOT_CHECKED =
|
5779
5779
|
T.let(
|
5780
5780
|
:not_checked,
|
5781
5781
|
Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
5782
5782
|
)
|
5783
5783
|
|
5784
|
-
# Postal code matches, but the street address was not
|
5785
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
5786
|
-
T.let(
|
5787
|
-
:postal_code_match_address_not_checked,
|
5788
|
-
Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
5789
|
-
)
|
5790
|
-
|
5791
|
-
# Postal code matches, but the street address does not match.
|
5784
|
+
# Postal code matches, but the street address does not match or was not provided.
|
5792
5785
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
5793
5786
|
T.let(
|
5794
5787
|
:postal_code_match_address_no_match,
|
5795
5788
|
Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
5796
5789
|
)
|
5797
5790
|
|
5798
|
-
# Postal code does not match, but the street address matches.
|
5791
|
+
# Postal code does not match, but the street address matches or was not provided.
|
5799
5792
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
5800
5793
|
T.let(
|
5801
5794
|
:postal_code_no_match_address_match,
|
@@ -5816,6 +5809,13 @@ module Increase
|
|
5816
5809
|
Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
5817
5810
|
)
|
5818
5811
|
|
5812
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
5813
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
5814
|
+
T.let(
|
5815
|
+
:postal_code_match_address_not_checked,
|
5816
|
+
Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
5817
|
+
)
|
5818
|
+
|
5819
5819
|
sig do
|
5820
5820
|
override.returns(
|
5821
5821
|
T::Array[
|
@@ -14523,28 +14523,21 @@ module Increase
|
|
14523
14523
|
end
|
14524
14524
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
14525
14525
|
|
14526
|
-
# No address was provided in the authorization request.
|
14526
|
+
# No address information was provided in the authorization request.
|
14527
14527
|
NOT_CHECKED =
|
14528
14528
|
T.let(
|
14529
14529
|
:not_checked,
|
14530
14530
|
Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result::TaggedSymbol
|
14531
14531
|
)
|
14532
14532
|
|
14533
|
-
# Postal code matches, but the street address was not
|
14534
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
14535
|
-
T.let(
|
14536
|
-
:postal_code_match_address_not_checked,
|
14537
|
-
Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result::TaggedSymbol
|
14538
|
-
)
|
14539
|
-
|
14540
|
-
# Postal code matches, but the street address does not match.
|
14533
|
+
# Postal code matches, but the street address does not match or was not provided.
|
14541
14534
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
14542
14535
|
T.let(
|
14543
14536
|
:postal_code_match_address_no_match,
|
14544
14537
|
Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result::TaggedSymbol
|
14545
14538
|
)
|
14546
14539
|
|
14547
|
-
# Postal code does not match, but the street address matches.
|
14540
|
+
# Postal code does not match, but the street address matches or was not provided.
|
14548
14541
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
14549
14542
|
T.let(
|
14550
14543
|
:postal_code_no_match_address_match,
|
@@ -14565,6 +14558,13 @@ module Increase
|
|
14565
14558
|
Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result::TaggedSymbol
|
14566
14559
|
)
|
14567
14560
|
|
14561
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
14562
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
14563
|
+
T.let(
|
14564
|
+
:postal_code_match_address_not_checked,
|
14565
|
+
Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result::TaggedSymbol
|
14566
|
+
)
|
14567
|
+
|
14568
14568
|
sig do
|
14569
14569
|
override.returns(
|
14570
14570
|
T::Array[
|
@@ -3021,28 +3021,21 @@ module Increase
|
|
3021
3021
|
end
|
3022
3022
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3023
3023
|
|
3024
|
-
# No address was provided in the authorization request.
|
3024
|
+
# No address information was provided in the authorization request.
|
3025
3025
|
NOT_CHECKED =
|
3026
3026
|
T.let(
|
3027
3027
|
:not_checked,
|
3028
3028
|
Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
3029
3029
|
)
|
3030
3030
|
|
3031
|
-
# Postal code matches, but the street address was not
|
3032
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
3033
|
-
T.let(
|
3034
|
-
:postal_code_match_address_not_checked,
|
3035
|
-
Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
3036
|
-
)
|
3037
|
-
|
3038
|
-
# Postal code matches, but the street address does not match.
|
3031
|
+
# Postal code matches, but the street address does not match or was not provided.
|
3039
3032
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
3040
3033
|
T.let(
|
3041
3034
|
:postal_code_match_address_no_match,
|
3042
3035
|
Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
3043
3036
|
)
|
3044
3037
|
|
3045
|
-
# Postal code does not match, but the street address matches.
|
3038
|
+
# Postal code does not match, but the street address matches or was not provided.
|
3046
3039
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
3047
3040
|
T.let(
|
3048
3041
|
:postal_code_no_match_address_match,
|
@@ -3063,6 +3056,13 @@ module Increase
|
|
3063
3056
|
Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
3064
3057
|
)
|
3065
3058
|
|
3059
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
3060
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
3061
|
+
T.let(
|
3062
|
+
:postal_code_match_address_not_checked,
|
3063
|
+
Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result::TaggedSymbol
|
3064
|
+
)
|
3065
|
+
|
3066
3066
|
sig do
|
3067
3067
|
override.returns(
|
3068
3068
|
T::Array[
|
@@ -2918,28 +2918,21 @@ module Increase
|
|
2918
2918
|
end
|
2919
2919
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2920
2920
|
|
2921
|
-
# No address was provided in the authorization request.
|
2921
|
+
# No address information was provided in the authorization request.
|
2922
2922
|
NOT_CHECKED =
|
2923
2923
|
T.let(
|
2924
2924
|
:not_checked,
|
2925
2925
|
Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2926
2926
|
)
|
2927
2927
|
|
2928
|
-
# Postal code matches, but the street address was not
|
2929
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
2930
|
-
T.let(
|
2931
|
-
:postal_code_match_address_not_checked,
|
2932
|
-
Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2933
|
-
)
|
2934
|
-
|
2935
|
-
# Postal code matches, but the street address does not match.
|
2928
|
+
# Postal code matches, but the street address does not match or was not provided.
|
2936
2929
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
2937
2930
|
T.let(
|
2938
2931
|
:postal_code_match_address_no_match,
|
2939
2932
|
Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2940
2933
|
)
|
2941
2934
|
|
2942
|
-
# Postal code does not match, but the street address matches.
|
2935
|
+
# Postal code does not match, but the street address matches or was not provided.
|
2943
2936
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
2944
2937
|
T.let(
|
2945
2938
|
:postal_code_no_match_address_match,
|
@@ -2960,6 +2953,13 @@ module Increase
|
|
2960
2953
|
Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2961
2954
|
)
|
2962
2955
|
|
2956
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
2957
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
2958
|
+
T.let(
|
2959
|
+
:postal_code_match_address_not_checked,
|
2960
|
+
Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2961
|
+
)
|
2962
|
+
|
2963
2963
|
sig do
|
2964
2964
|
override.returns(
|
2965
2965
|
T::Array[
|
@@ -477,6 +477,25 @@ module Increase
|
|
477
477
|
end
|
478
478
|
attr_accessor :decision
|
479
479
|
|
480
|
+
# Present if and only if `decision` is `decline`. Contains information related to
|
481
|
+
# the reason the authorization was declined.
|
482
|
+
sig do
|
483
|
+
returns(
|
484
|
+
T.nilable(Increase::RealTimeDecision::CardAuthorization::Decline)
|
485
|
+
)
|
486
|
+
end
|
487
|
+
attr_reader :decline
|
488
|
+
|
489
|
+
sig do
|
490
|
+
params(
|
491
|
+
decline:
|
492
|
+
T.nilable(
|
493
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::OrHash
|
494
|
+
)
|
495
|
+
).void
|
496
|
+
end
|
497
|
+
attr_writer :decline
|
498
|
+
|
480
499
|
# If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
481
500
|
# purchase), the identifier of the token that was used.
|
482
501
|
sig { returns(T.nilable(String)) }
|
@@ -641,6 +660,10 @@ module Increase
|
|
641
660
|
T.nilable(
|
642
661
|
Increase::RealTimeDecision::CardAuthorization::Decision::OrSymbol
|
643
662
|
),
|
663
|
+
decline:
|
664
|
+
T.nilable(
|
665
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::OrHash
|
666
|
+
),
|
644
667
|
digital_wallet_token_id: T.nilable(String),
|
645
668
|
direction:
|
646
669
|
Increase::RealTimeDecision::CardAuthorization::Direction::OrSymbol,
|
@@ -682,6 +705,9 @@ module Increase
|
|
682
705
|
card_id:,
|
683
706
|
# Whether or not the authorization was approved.
|
684
707
|
decision:,
|
708
|
+
# Present if and only if `decision` is `decline`. Contains information related to
|
709
|
+
# the reason the authorization was declined.
|
710
|
+
decline:,
|
685
711
|
# If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
686
712
|
# purchase), the identifier of the token that was used.
|
687
713
|
digital_wallet_token_id:,
|
@@ -755,6 +781,10 @@ module Increase
|
|
755
781
|
T.nilable(
|
756
782
|
Increase::RealTimeDecision::CardAuthorization::Decision::TaggedSymbol
|
757
783
|
),
|
784
|
+
decline:
|
785
|
+
T.nilable(
|
786
|
+
Increase::RealTimeDecision::CardAuthorization::Decline
|
787
|
+
),
|
758
788
|
digital_wallet_token_id: T.nilable(String),
|
759
789
|
direction:
|
760
790
|
Increase::RealTimeDecision::CardAuthorization::Direction::TaggedSymbol,
|
@@ -1469,6 +1499,33 @@ module Increase
|
|
1469
1499
|
end
|
1470
1500
|
end
|
1471
1501
|
|
1502
|
+
class Decline < Increase::Internal::Type::BaseModel
|
1503
|
+
OrHash =
|
1504
|
+
T.type_alias do
|
1505
|
+
T.any(
|
1506
|
+
Increase::RealTimeDecision::CardAuthorization::Decline,
|
1507
|
+
Increase::Internal::AnyHash
|
1508
|
+
)
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
# The reason the authorization was declined.
|
1512
|
+
sig { returns(String) }
|
1513
|
+
attr_accessor :reason
|
1514
|
+
|
1515
|
+
# Present if and only if `decision` is `decline`. Contains information related to
|
1516
|
+
# the reason the authorization was declined.
|
1517
|
+
sig { params(reason: String).returns(T.attached_class) }
|
1518
|
+
def self.new(
|
1519
|
+
# The reason the authorization was declined.
|
1520
|
+
reason:
|
1521
|
+
)
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
sig { override.returns({ reason: String }) }
|
1525
|
+
def to_hash
|
1526
|
+
end
|
1527
|
+
end
|
1528
|
+
|
1472
1529
|
# The direction describes the direction the funds will move, either from the
|
1473
1530
|
# cardholder to the merchant or from the merchant to the cardholder.
|
1474
1531
|
module Direction
|
@@ -2525,28 +2582,21 @@ module Increase
|
|
2525
2582
|
end
|
2526
2583
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2527
2584
|
|
2528
|
-
# No address was provided in the authorization request.
|
2585
|
+
# No address information was provided in the authorization request.
|
2529
2586
|
NOT_CHECKED =
|
2530
2587
|
T.let(
|
2531
2588
|
:not_checked,
|
2532
2589
|
Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2533
2590
|
)
|
2534
2591
|
|
2535
|
-
# Postal code matches, but the street address was not
|
2536
|
-
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
2537
|
-
T.let(
|
2538
|
-
:postal_code_match_address_not_checked,
|
2539
|
-
Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2540
|
-
)
|
2541
|
-
|
2542
|
-
# Postal code matches, but the street address does not match.
|
2592
|
+
# Postal code matches, but the street address does not match or was not provided.
|
2543
2593
|
POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
|
2544
2594
|
T.let(
|
2545
2595
|
:postal_code_match_address_no_match,
|
2546
2596
|
Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2547
2597
|
)
|
2548
2598
|
|
2549
|
-
# Postal code does not match, but the street address matches.
|
2599
|
+
# Postal code does not match, but the street address matches or was not provided.
|
2550
2600
|
POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
|
2551
2601
|
T.let(
|
2552
2602
|
:postal_code_no_match_address_match,
|
@@ -2567,6 +2617,13 @@ module Increase
|
|
2567
2617
|
Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2568
2618
|
)
|
2569
2619
|
|
2620
|
+
# Postal code matches, but the street address was not verified. (deprecated)
|
2621
|
+
POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
|
2622
|
+
T.let(
|
2623
|
+
:postal_code_match_address_not_checked,
|
2624
|
+
Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result::TaggedSymbol
|
2625
|
+
)
|
2626
|
+
|
2570
2627
|
sig do
|
2571
2628
|
override.returns(
|
2572
2629
|
T::Array[
|