increase 1.58.0 → 1.59.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: 7711ba8158ce53f7ef2f28dc0b28d8b1378e536ba09f3266abb7994ae04e383d
4
- data.tar.gz: 5a40a191ea90e2a387d337d26dd60358a65603fe7febc574a32c374538f87e9c
3
+ metadata.gz: 6a21ba7f7a2c4a5940c30d2820d06d5cc480bb6b44a6c35fce9099d9d25f145c
4
+ data.tar.gz: 0b5d6f6edde31e8e63202058a74c1a515d143b2e51759261e09a9de9053e5a2a
5
5
  SHA512:
6
- metadata.gz: 314520399928a617b0e0e4fab7da4079807c3624c496b18b2b7e28da61c9e7d2b294c7893e41959627004d12aecac4ef5f2ed4323c8b1564725333761334e863
7
- data.tar.gz: 47d8b71a75532987827a91b397134b41e934666dcb10a436799a42a447ff7c10053a50dd08f15ce4ce1dad146793ff7b804742431e6fb7abe3557b32be3db23e
6
+ metadata.gz: d107d1e35189805bab9c5d12aa40fec915aa447c645279932f2827c36ac40f9caa6ae66c99bbee1f107335b89dc5d0b13bd2b38068d0eb5ef47c068758bc121a
7
+ data.tar.gz: 9e4c2d0766c0e3a931f58c0f703ba6035740c58633d7776775f0412419bad73cf7c5792dc015e7ed6dd022ee7e5084032ca27c52fa9cc6b5ca1a9fba41f19934
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.59.0 (2025-08-28)
4
+
5
+ Full Changelog: [v1.58.0...v1.59.0](https://github.com/Increase/increase-ruby/compare/v1.58.0...v1.59.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([281534f](https://github.com/Increase/increase-ruby/commit/281534fd972e76bc08d4ef4bfbce7665bfeca852))
10
+
3
11
  ## 1.58.0 (2025-08-28)
4
12
 
5
13
  Full Changelog: [v1.57.0...v1.58.0](https://github.com/Increase/increase-ruby/compare/v1.57.0...v1.58.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.58.0"
18
+ gem "increase", "~> 1.59.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -8,8 +8,38 @@ module Increase
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
- # @!method initialize(request_options: {})
11
+ # @!attribute inbound_funds_hold_behavior
12
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
13
+ # settled. If no behavior is specified, the inbound funds hold will be released
14
+ # immediately in order for the funds to be available for use.
15
+ #
16
+ # @return [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior, nil]
17
+ optional :inbound_funds_hold_behavior,
18
+ enum: -> { Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior }
19
+
20
+ # @!method initialize(inbound_funds_hold_behavior: nil, request_options: {})
21
+ # Some parameter documentations has been truncated, see
22
+ # {Increase::Models::Simulations::ACHTransferSettleParams} for more details.
23
+ #
24
+ # @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is
25
+ #
12
26
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
27
+
28
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
29
+ # settled. If no behavior is specified, the inbound funds hold will be released
30
+ # immediately in order for the funds to be available for use.
31
+ module InboundFundsHoldBehavior
32
+ extend Increase::Internal::Type::Enum
33
+
34
+ # Release the inbound funds hold immediately.
35
+ RELEASE_IMMEDIATELY = :release_immediately
36
+
37
+ # Release the inbound funds hold on the default schedule.
38
+ RELEASE_ON_DEFAULT_SCHEDULE = :release_on_default_schedule
39
+
40
+ # @!method self.values
41
+ # @return [Array<Symbol>]
42
+ end
13
43
  end
14
44
  end
15
45
  end
@@ -89,28 +89,38 @@ module Increase
89
89
  )
90
90
  end
91
91
 
92
+ # Some parameter documentations has been truncated, see
93
+ # {Increase::Models::Simulations::ACHTransferSettleParams} for more details.
94
+ #
92
95
  # Simulates the settlement of an [ACH Transfer](#ach-transfers) by the Federal
93
96
  # Reserve. This transfer must first have a `status` of `pending_submission` or
94
97
  # `submitted`. For convenience, if the transfer is in `status`:
95
98
  # `pending_submission`, the simulation will also submit the transfer. Without this
96
99
  # simulation the transfer will eventually settle on its own following the same
97
- # Federal Reserve timeline as in production.
100
+ # Federal Reserve timeline as in production. Additionally, you can specify the
101
+ # behavior of the inbound funds hold that is created when the ACH Transfer is
102
+ # settled. If no behavior is specified, the inbound funds hold will be released
103
+ # immediately in order for the funds to be available for use.
98
104
  #
99
- # @overload settle(ach_transfer_id, request_options: {})
105
+ # @overload settle(ach_transfer_id, inbound_funds_hold_behavior: nil, request_options: {})
100
106
  #
101
107
  # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to become settled.
102
108
  #
109
+ # @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is
110
+ #
103
111
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
104
112
  #
105
113
  # @return [Increase::Models::ACHTransfer]
106
114
  #
107
115
  # @see Increase::Models::Simulations::ACHTransferSettleParams
108
116
  def settle(ach_transfer_id, params = {})
117
+ parsed, options = Increase::Simulations::ACHTransferSettleParams.dump_request(params)
109
118
  @client.request(
110
119
  method: :post,
111
120
  path: ["simulations/ach_transfers/%1$s/settle", ach_transfer_id],
121
+ body: parsed,
112
122
  model: Increase::ACHTransfer,
113
- options: params[:request_options]
123
+ options: options
114
124
  )
115
125
  end
116
126
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.58.0"
4
+ VERSION = "1.59.0"
5
5
  end
@@ -15,17 +15,93 @@ module Increase
15
15
  )
16
16
  end
17
17
 
18
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
19
+ # settled. If no behavior is specified, the inbound funds hold will be released
20
+ # immediately in order for the funds to be available for use.
18
21
  sig do
19
- params(request_options: Increase::RequestOptions::OrHash).returns(
20
- T.attached_class
22
+ returns(
23
+ T.nilable(
24
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol
25
+ )
21
26
  )
22
27
  end
23
- def self.new(request_options: {})
28
+ attr_reader :inbound_funds_hold_behavior
29
+
30
+ sig do
31
+ params(
32
+ inbound_funds_hold_behavior:
33
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol
34
+ ).void
24
35
  end
36
+ attr_writer :inbound_funds_hold_behavior
25
37
 
26
- sig { override.returns({ request_options: Increase::RequestOptions }) }
38
+ sig do
39
+ params(
40
+ inbound_funds_hold_behavior:
41
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
42
+ request_options: Increase::RequestOptions::OrHash
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
47
+ # settled. If no behavior is specified, the inbound funds hold will be released
48
+ # immediately in order for the funds to be available for use.
49
+ inbound_funds_hold_behavior: nil,
50
+ request_options: {}
51
+ )
52
+ end
53
+
54
+ sig do
55
+ override.returns(
56
+ {
57
+ inbound_funds_hold_behavior:
58
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
59
+ request_options: Increase::RequestOptions
60
+ }
61
+ )
62
+ end
27
63
  def to_hash
28
64
  end
65
+
66
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
67
+ # settled. If no behavior is specified, the inbound funds hold will be released
68
+ # immediately in order for the funds to be available for use.
69
+ module InboundFundsHoldBehavior
70
+ extend Increase::Internal::Type::Enum
71
+
72
+ TaggedSymbol =
73
+ T.type_alias do
74
+ T.all(
75
+ Symbol,
76
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior
77
+ )
78
+ end
79
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
80
+
81
+ # Release the inbound funds hold immediately.
82
+ RELEASE_IMMEDIATELY =
83
+ T.let(
84
+ :release_immediately,
85
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
86
+ )
87
+
88
+ # Release the inbound funds hold on the default schedule.
89
+ RELEASE_ON_DEFAULT_SCHEDULE =
90
+ T.let(
91
+ :release_on_default_schedule,
92
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
93
+ )
94
+
95
+ sig do
96
+ override.returns(
97
+ T::Array[
98
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
99
+ ]
100
+ )
101
+ end
102
+ def self.values
103
+ end
104
+ end
29
105
  end
30
106
  end
31
107
  end
@@ -72,16 +72,25 @@ module Increase
72
72
  # `submitted`. For convenience, if the transfer is in `status`:
73
73
  # `pending_submission`, the simulation will also submit the transfer. Without this
74
74
  # simulation the transfer will eventually settle on its own following the same
75
- # Federal Reserve timeline as in production.
75
+ # Federal Reserve timeline as in production. Additionally, you can specify the
76
+ # behavior of the inbound funds hold that is created when the ACH Transfer is
77
+ # settled. If no behavior is specified, the inbound funds hold will be released
78
+ # immediately in order for the funds to be available for use.
76
79
  sig do
77
80
  params(
78
81
  ach_transfer_id: String,
82
+ inbound_funds_hold_behavior:
83
+ Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
79
84
  request_options: Increase::RequestOptions::OrHash
80
85
  ).returns(Increase::ACHTransfer)
81
86
  end
82
87
  def settle(
83
88
  # The identifier of the ACH Transfer you wish to become settled.
84
89
  ach_transfer_id,
90
+ # The behavior of the inbound funds hold that is created when the ACH Transfer is
91
+ # settled. If no behavior is specified, the inbound funds hold will be released
92
+ # immediately in order for the funds to be available for use.
93
+ inbound_funds_hold_behavior: nil,
85
94
  request_options: {}
86
95
  )
87
96
  end
@@ -2,15 +2,45 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type ach_transfer_settle_params =
5
- { } & Increase::Internal::Type::request_parameters
5
+ {
6
+ inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior
7
+ }
8
+ & Increase::Internal::Type::request_parameters
6
9
 
7
10
  class ACHTransferSettleParams < Increase::Internal::Type::BaseModel
8
11
  extend Increase::Internal::Type::RequestParameters::Converter
9
12
  include Increase::Internal::Type::RequestParameters
10
13
 
11
- def initialize: (?request_options: Increase::request_opts) -> void
14
+ attr_reader inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior?
12
15
 
13
- def to_hash: -> { request_options: Increase::RequestOptions }
16
+ def inbound_funds_hold_behavior=: (
17
+ Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior
18
+ ) -> Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior
19
+
20
+ def initialize: (
21
+ ?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
22
+ ?request_options: Increase::request_opts
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
27
+ request_options: Increase::RequestOptions
28
+ }
29
+
30
+ type inbound_funds_hold_behavior =
31
+ :release_immediately | :release_on_default_schedule
32
+
33
+ module InboundFundsHoldBehavior
34
+ extend Increase::Internal::Type::Enum
35
+
36
+ # Release the inbound funds hold immediately.
37
+ RELEASE_IMMEDIATELY: :release_immediately
38
+
39
+ # Release the inbound funds hold on the default schedule.
40
+ RELEASE_ON_DEFAULT_SCHEDULE: :release_on_default_schedule
41
+
42
+ def self?.values: -> ::Array[Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior]
43
+ end
14
44
  end
15
45
  end
16
46
  end
@@ -22,6 +22,7 @@ module Increase
22
22
 
23
23
  def settle: (
24
24
  String ach_transfer_id,
25
+ ?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
25
26
  ?request_options: Increase::request_opts
26
27
  ) -> Increase::ACHTransfer
27
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.58.0
4
+ version: 1.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase