increase 1.146.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae424bdc99e8c214ee5180dffa2884bc46d3e55c0af79e11990d2f65e7d75381
4
- data.tar.gz: a2d2bcf5ce457f02cbe5ff6dc3b90b1a8f2e26a832964eff5a3c4e5cc3aeeaf4
3
+ metadata.gz: 4c41e4dd48a1bc48968ea62c5a717aca4594f54bf1eca203bdb945c4c8f2d5a5
4
+ data.tar.gz: af00b5e55da301a90beabc86cb4ac7e1e52b11fe0c75d5ac29f21947af6d746d
5
5
  SHA512:
6
- metadata.gz: 46b6510e966b40fffd512b49c49e64474ea4943e76216aed204ecefb56fc8c0c3cdb12a9d679e65e9a900de688332be480975327707c27512b44e2da297da7ad
7
- data.tar.gz: 3a1eecfcaac068238666baca473ef2c59b37f2aab0cf8f18f571e059a983770243dafbdc772de6c61282cab5b4024e57731e1811832d5e8e63100e191e68ca3a
6
+ metadata.gz: b69f640821a9fffb58a3e6f45336401a4ad4f7732be2e1f12a4fa379191f9a2cdf3447bfcc00cbdd7473378b3c8a16fcec6964abb8b21b99fc4e30c97975bb6c
7
+ data.tar.gz: 428f4b38018118df51a438149ca96d28b44d27b2c7840aa1e178ac7c9fc9905f5a6c60a7d6e0216442d0771133406f5922c9a011565cd291eefe2ae530eaf53a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 1.147.0 (2025-11-21)
12
+
13
+ Full Changelog: [v1.146.0...v1.147.0](https://github.com/Increase/increase-ruby/compare/v1.146.0...v1.147.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([0a711f3](https://github.com/Increase/increase-ruby/commit/0a711f397e3751e296444459f1a2fe1720ffd1a5))
18
+
3
19
  ## 1.146.0 (2025-11-21)
4
20
 
5
21
  Full Changelog: [v1.145.0...v1.146.0](https://github.com/Increase/increase-ruby/compare/v1.145.0...v1.146.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.146.0"
18
+ gem "increase", "~> 1.148.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -263,9 +263,9 @@ module Increase
263
263
  optional :name, String
264
264
 
265
265
  # @!attribute phone
266
- # The phone number to associate with the check's destination address. Will be
267
- # supplied to FedEx as the contact phone number for the recipient to be used in
268
- # case of delivery issues.
266
+ # The phone number to associate with the check's destination address. Only used if
267
+ # shipping method is `fedex_overnight`. Will be supplied to FedEx as the contact
268
+ # phone number for the recipient to be used in case of delivery issues.
269
269
  #
270
270
  # @return [String, nil]
271
271
  optional :phone, String
@@ -289,7 +289,7 @@ module Increase
289
289
  #
290
290
  # @param name [String] The name component of the check's destination address. Defaults to the provided
291
291
  #
292
- # @param phone [String] The phone number to associate with the check's destination address. Will be supp
292
+ # @param phone [String] The phone number to associate with the check's destination address. Only used if
293
293
  end
294
294
 
295
295
  class Payer < Increase::Internal::Type::BaseModel
@@ -907,14 +907,42 @@ module Increase
907
907
  # @!attribute reason
908
908
  # The reason the authorization was declined.
909
909
  #
910
- # @return [String]
911
- required :reason, String
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 [String] The reason the authorization was declined.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.146.0"
4
+ VERSION = "1.148.0"
5
5
  end
@@ -495,9 +495,9 @@ module Increase
495
495
  sig { params(name: String).void }
496
496
  attr_writer :name
497
497
 
498
- # The phone number to associate with the check's destination address. Will be
499
- # supplied to FedEx as the contact phone number for the recipient to be used in
500
- # case of delivery issues.
498
+ # The phone number to associate with the check's destination address. Only used if
499
+ # shipping method is `fedex_overnight`. Will be supplied to FedEx as the contact
500
+ # phone number for the recipient to be used in case of delivery issues.
501
501
  sig { returns(T.nilable(String)) }
502
502
  attr_reader :phone
503
503
 
@@ -530,9 +530,9 @@ module Increase
530
530
  # The name component of the check's destination address. Defaults to the provided
531
531
  # `recipient_name` parameter if `name` is not provided.
532
532
  name: nil,
533
- # The phone number to associate with the check's destination address. Will be
534
- # supplied to FedEx as the contact phone number for the recipient to be used in
535
- # case of delivery issues.
533
+ # The phone number to associate with the check's destination address. Only used if
534
+ # shipping method is `fedex_overnight`. Will be supplied to FedEx as the contact
535
+ # phone number for the recipient to be used in case of delivery issues.
536
536
  phone: nil
537
537
  )
538
538
  end
@@ -1619,21 +1619,103 @@ module Increase
1619
1619
  end
1620
1620
 
1621
1621
  # The reason the authorization was declined.
1622
- sig { returns(String) }
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 { params(reason: String).returns(T.attached_class) }
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 { override.returns({ reason: String }) }
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 = { reason: String }
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: String
517
+ attr_accessor reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
515
518
 
516
- def initialize: (reason: String) -> void
519
+ def initialize: (
520
+ reason: Increase::Models::RealTimeDecision::CardAuthorization::Decline::reason
521
+ ) -> void
517
522
 
518
- def to_hash: -> { reason: String }
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.146.0
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-21 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool