increase 1.57.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: ffaa39abe499976f82aeb26564ec7af83ab51f4757133fb362df8cc7e57c903c
4
- data.tar.gz: e13a4f3bba209d22c924f4a2792d1e3d97635f8eb2ab6715d39762230f8572be
3
+ metadata.gz: 6a21ba7f7a2c4a5940c30d2820d06d5cc480bb6b44a6c35fce9099d9d25f145c
4
+ data.tar.gz: 0b5d6f6edde31e8e63202058a74c1a515d143b2e51759261e09a9de9053e5a2a
5
5
  SHA512:
6
- metadata.gz: a494a5c081450c9bfbdf3be37eebae76176bec574ebb84f9f2fce6667713e07a4cc5bfc33d6a5c5305f0a036ba2e9276a7facf4c79191e753d0072cffd491f57
7
- data.tar.gz: 1105d48b5233b5d378dc9e618416b71903607c9abb31869b82487774e5e62160779dc4e03e63494e66396a77d78b52cb60eb517120f1af500df781e7740e40e6
6
+ metadata.gz: d107d1e35189805bab9c5d12aa40fec915aa447c645279932f2827c36ac40f9caa6ae66c99bbee1f107335b89dc5d0b13bd2b38068d0eb5ef47c068758bc121a
7
+ data.tar.gz: 9e4c2d0766c0e3a931f58c0f703ba6035740c58633d7776775f0412419bad73cf7c5792dc015e7ed6dd022ee7e5084032ca27c52fa9cc6b5ca1a9fba41f19934
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 1.58.0 (2025-08-28)
12
+
13
+ Full Changelog: [v1.57.0...v1.58.0](https://github.com/Increase/increase-ruby/compare/v1.57.0...v1.58.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([3a6c7be](https://github.com/Increase/increase-ruby/commit/3a6c7bef748bcdbb6e9f97503887754bc980d7b4))
18
+
3
19
  ## 1.57.0 (2025-08-28)
4
20
 
5
21
  Full Changelog: [v1.56.0...v1.57.0](https://github.com/Increase/increase-ruby/compare/v1.56.0...v1.57.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.57.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
@@ -156,7 +156,7 @@ module Increase
156
156
  class Source < Increase::Internal::Type::BaseModel
157
157
  # @!attribute account_revenue_payment
158
158
  # An Account Revenue Payment object. This field will be present in the JSON
159
- # response if and only if `category` is equal to `account_revenue_payment`. A
159
+ # response if and only if `category` is equal to `account_revenue_payment`. An
160
160
  # Account Revenue Payment represents a payment made to an account from the bank.
161
161
  # Account revenue is a type of non-interest income.
162
162
  #
@@ -606,7 +606,7 @@ module Increase
606
606
 
607
607
  # @!method initialize(accrued_on_account_id:, period_end:, period_start:)
608
608
  # An Account Revenue Payment object. This field will be present in the JSON
609
- # response if and only if `category` is equal to `account_revenue_payment`. A
609
+ # response if and only if `category` is equal to `account_revenue_payment`. An
610
610
  # Account Revenue Payment represents a payment made to an account from the bank.
611
611
  # Account revenue is a type of non-interest income.
612
612
  #
@@ -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.57.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
@@ -206,7 +206,7 @@ module Increase
206
206
  end
207
207
 
208
208
  # An Account Revenue Payment object. This field will be present in the JSON
209
- # response if and only if `category` is equal to `account_revenue_payment`. A
209
+ # response if and only if `category` is equal to `account_revenue_payment`. An
210
210
  # Account Revenue Payment represents a payment made to an account from the bank.
211
211
  # Account revenue is a type of non-interest income.
212
212
  sig do
@@ -972,7 +972,7 @@ module Increase
972
972
  end
973
973
  def self.new(
974
974
  # An Account Revenue Payment object. This field will be present in the JSON
975
- # response if and only if `category` is equal to `account_revenue_payment`. A
975
+ # response if and only if `category` is equal to `account_revenue_payment`. An
976
976
  # Account Revenue Payment represents a payment made to an account from the bank.
977
977
  # Account revenue is a type of non-interest income.
978
978
  account_revenue_payment:,
@@ -1258,7 +1258,7 @@ module Increase
1258
1258
  attr_accessor :period_start
1259
1259
 
1260
1260
  # An Account Revenue Payment object. This field will be present in the JSON
1261
- # response if and only if `category` is equal to `account_revenue_payment`. A
1261
+ # response if and only if `category` is equal to `account_revenue_payment`. An
1262
1262
  # Account Revenue Payment represents a payment made to an account from the bank.
1263
1263
  # Account revenue is a type of non-interest income.
1264
1264
  sig do
@@ -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.57.0
4
+ version: 1.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase