increase 1.147.0 → 1.148.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/real_time_decision.rb +31 -3
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/real_time_decision.rbi +85 -3
- data/sig/increase/models/real_time_decision.rbs +43 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c41e4dd48a1bc48968ea62c5a717aca4594f54bf1eca203bdb945c4c8f2d5a5
|
|
4
|
+
data.tar.gz: af00b5e55da301a90beabc86cb4ac7e1e52b11fe0c75d5ac29f21947af6d746d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b69f640821a9fffb58a3e6f45336401a4ad4f7732be2e1f12a4fa379191f9a2cdf3447bfcc00cbdd7473378b3c8a16fcec6964abb8b21b99fc4e30c97975bb6c
|
|
7
|
+
data.tar.gz: 428f4b38018118df51a438149ca96d28b44d27b2c7840aa1e178ac7c9fc9905f5a6c60a7d6e0216442d0771133406f5922c9a011565cd291eefe2ae530eaf53a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.148.0 (2025-11-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.147.0...v1.148.0](https://github.com/Increase/increase-ruby/compare/v1.147.0...v1.148.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([70549b5](https://github.com/Increase/increase-ruby/commit/70549b5f5c04bd68309c448849df43ced96e48c8))
|
|
10
|
+
|
|
3
11
|
## 1.147.0 (2025-11-21)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.146.0...v1.147.0](https://github.com/Increase/increase-ruby/compare/v1.146.0...v1.147.0)
|
data/README.md
CHANGED
|
@@ -907,14 +907,42 @@ module Increase
|
|
|
907
907
|
# @!attribute reason
|
|
908
908
|
# The reason the authorization was declined.
|
|
909
909
|
#
|
|
910
|
-
# @return [
|
|
911
|
-
required :reason,
|
|
910
|
+
# @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Decline::Reason]
|
|
911
|
+
required :reason, enum: -> { Increase::RealTimeDecision::CardAuthorization::Decline::Reason }
|
|
912
912
|
|
|
913
913
|
# @!method initialize(reason:)
|
|
914
914
|
# Present if and only if `decision` is `decline`. Contains information related to
|
|
915
915
|
# the reason the authorization was declined.
|
|
916
916
|
#
|
|
917
|
-
# @param reason [
|
|
917
|
+
# @param reason [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Decline::Reason] The reason the authorization was declined.
|
|
918
|
+
|
|
919
|
+
# The reason the authorization was declined.
|
|
920
|
+
#
|
|
921
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::Decline#reason
|
|
922
|
+
module Reason
|
|
923
|
+
extend Increase::Internal::Type::Enum
|
|
924
|
+
|
|
925
|
+
# The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
|
|
926
|
+
INSUFFICIENT_FUNDS = :insufficient_funds
|
|
927
|
+
|
|
928
|
+
# This type of transaction is not allowed for this card. This transaction should not be retried.
|
|
929
|
+
TRANSACTION_NEVER_ALLOWED = :transaction_never_allowed
|
|
930
|
+
|
|
931
|
+
# The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
|
|
932
|
+
EXCEEDS_APPROVAL_LIMIT = :exceeds_approval_limit
|
|
933
|
+
|
|
934
|
+
# The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
|
|
935
|
+
CARD_TEMPORARILY_DISABLED = :card_temporarily_disabled
|
|
936
|
+
|
|
937
|
+
# The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
|
|
938
|
+
SUSPECTED_FRAUD = :suspected_fraud
|
|
939
|
+
|
|
940
|
+
# The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
|
|
941
|
+
OTHER = :other
|
|
942
|
+
|
|
943
|
+
# @!method self.values
|
|
944
|
+
# @return [Array<Symbol>]
|
|
945
|
+
end
|
|
918
946
|
end
|
|
919
947
|
|
|
920
948
|
# The direction describes the direction the funds will move, either from the
|
data/lib/increase/version.rb
CHANGED
|
@@ -1619,21 +1619,103 @@ module Increase
|
|
|
1619
1619
|
end
|
|
1620
1620
|
|
|
1621
1621
|
# The reason the authorization was declined.
|
|
1622
|
-
sig
|
|
1622
|
+
sig do
|
|
1623
|
+
returns(
|
|
1624
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1625
|
+
)
|
|
1626
|
+
end
|
|
1623
1627
|
attr_accessor :reason
|
|
1624
1628
|
|
|
1625
1629
|
# Present if and only if `decision` is `decline`. Contains information related to
|
|
1626
1630
|
# the reason the authorization was declined.
|
|
1627
|
-
sig
|
|
1631
|
+
sig do
|
|
1632
|
+
params(
|
|
1633
|
+
reason:
|
|
1634
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::OrSymbol
|
|
1635
|
+
).returns(T.attached_class)
|
|
1636
|
+
end
|
|
1628
1637
|
def self.new(
|
|
1629
1638
|
# The reason the authorization was declined.
|
|
1630
1639
|
reason:
|
|
1631
1640
|
)
|
|
1632
1641
|
end
|
|
1633
1642
|
|
|
1634
|
-
sig
|
|
1643
|
+
sig do
|
|
1644
|
+
override.returns(
|
|
1645
|
+
{
|
|
1646
|
+
reason:
|
|
1647
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1648
|
+
}
|
|
1649
|
+
)
|
|
1650
|
+
end
|
|
1635
1651
|
def to_hash
|
|
1636
1652
|
end
|
|
1653
|
+
|
|
1654
|
+
# The reason the authorization was declined.
|
|
1655
|
+
module Reason
|
|
1656
|
+
extend Increase::Internal::Type::Enum
|
|
1657
|
+
|
|
1658
|
+
TaggedSymbol =
|
|
1659
|
+
T.type_alias do
|
|
1660
|
+
T.all(
|
|
1661
|
+
Symbol,
|
|
1662
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason
|
|
1663
|
+
)
|
|
1664
|
+
end
|
|
1665
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1666
|
+
|
|
1667
|
+
# The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
|
|
1668
|
+
INSUFFICIENT_FUNDS =
|
|
1669
|
+
T.let(
|
|
1670
|
+
:insufficient_funds,
|
|
1671
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1672
|
+
)
|
|
1673
|
+
|
|
1674
|
+
# This type of transaction is not allowed for this card. This transaction should not be retried.
|
|
1675
|
+
TRANSACTION_NEVER_ALLOWED =
|
|
1676
|
+
T.let(
|
|
1677
|
+
:transaction_never_allowed,
|
|
1678
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
# The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
|
|
1682
|
+
EXCEEDS_APPROVAL_LIMIT =
|
|
1683
|
+
T.let(
|
|
1684
|
+
:exceeds_approval_limit,
|
|
1685
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1686
|
+
)
|
|
1687
|
+
|
|
1688
|
+
# The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
|
|
1689
|
+
CARD_TEMPORARILY_DISABLED =
|
|
1690
|
+
T.let(
|
|
1691
|
+
:card_temporarily_disabled,
|
|
1692
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1693
|
+
)
|
|
1694
|
+
|
|
1695
|
+
# The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
|
|
1696
|
+
SUSPECTED_FRAUD =
|
|
1697
|
+
T.let(
|
|
1698
|
+
:suspected_fraud,
|
|
1699
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1700
|
+
)
|
|
1701
|
+
|
|
1702
|
+
# The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
|
|
1703
|
+
OTHER =
|
|
1704
|
+
T.let(
|
|
1705
|
+
:other,
|
|
1706
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1707
|
+
)
|
|
1708
|
+
|
|
1709
|
+
sig do
|
|
1710
|
+
override.returns(
|
|
1711
|
+
T::Array[
|
|
1712
|
+
Increase::RealTimeDecision::CardAuthorization::Decline::Reason::TaggedSymbol
|
|
1713
|
+
]
|
|
1714
|
+
)
|
|
1715
|
+
end
|
|
1716
|
+
def self.values
|
|
1717
|
+
end
|
|
1718
|
+
end
|
|
1637
1719
|
end
|
|
1638
1720
|
|
|
1639
1721
|
# The direction describes the direction the funds will move, either from the
|
|
@@ -508,14 +508,53 @@ module Increase
|
|
|
508
508
|
def self?.values: -> ::Array[Increase::Models::RealTimeDecision::CardAuthorization::decision]
|
|
509
509
|
end
|
|
510
510
|
|
|
511
|
-
type decline =
|
|
511
|
+
type decline =
|
|
512
|
+
{
|
|
513
|
+
reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
|
|
514
|
+
}
|
|
512
515
|
|
|
513
516
|
class Decline < Increase::Internal::Type::BaseModel
|
|
514
|
-
attr_accessor reason:
|
|
517
|
+
attr_accessor reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
|
|
515
518
|
|
|
516
|
-
def initialize: (
|
|
519
|
+
def initialize: (
|
|
520
|
+
reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
|
|
521
|
+
) -> void
|
|
517
522
|
|
|
518
|
-
def to_hash: -> {
|
|
523
|
+
def to_hash: -> {
|
|
524
|
+
reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
type reason =
|
|
528
|
+
:insufficient_funds
|
|
529
|
+
| :transaction_never_allowed
|
|
530
|
+
| :exceeds_approval_limit
|
|
531
|
+
| :card_temporarily_disabled
|
|
532
|
+
| :suspected_fraud
|
|
533
|
+
| :other
|
|
534
|
+
|
|
535
|
+
module Reason
|
|
536
|
+
extend Increase::Internal::Type::Enum
|
|
537
|
+
|
|
538
|
+
# The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.
|
|
539
|
+
INSUFFICIENT_FUNDS: :insufficient_funds
|
|
540
|
+
|
|
541
|
+
# This type of transaction is not allowed for this card. This transaction should not be retried.
|
|
542
|
+
TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed
|
|
543
|
+
|
|
544
|
+
# The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.
|
|
545
|
+
EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit
|
|
546
|
+
|
|
547
|
+
# The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.
|
|
548
|
+
CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled
|
|
549
|
+
|
|
550
|
+
# The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.
|
|
551
|
+
SUSPECTED_FRAUD: :suspected_fraud
|
|
552
|
+
|
|
553
|
+
# The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.
|
|
554
|
+
OTHER: :other
|
|
555
|
+
|
|
556
|
+
def self?.values: -> ::Array[Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason]
|
|
557
|
+
end
|
|
519
558
|
end
|
|
520
559
|
|
|
521
560
|
type direction = :settlement | :refund
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.148.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|