increase 1.139.0 → 1.140.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: f17193032c6fcda732d2a41326d889d2e1c285919a9f7d52977ce57459c7aad7
4
- data.tar.gz: 973f3990be3e29f96b400ee3f286d53dca986e3d1d1a8a3e4a981f160feb4815
3
+ metadata.gz: 9e755a0881b738341982dc434e6ac9efb9f059b216d5548ddd9e27469a203eb3
4
+ data.tar.gz: d10900bb08ebffaf19e964673d00a200e09673b59844a6172dc7572659fec125
5
5
  SHA512:
6
- metadata.gz: 8593d80ed65498790779aec47112e443f9af71893d0ac8ef3af1742ffa41f5beb875d67fc87074d8248e6617623d031e2d98d3e092d1ce5d9bae032dde0707b0
7
- data.tar.gz: 43df0991d8580a5ed7f3547947f90f15b05d27bd44e437d78da259875edb3727a9084e4b5e1fa8813ae9116ac7d6699e968d3c6e60601004d4af2c089d374275
6
+ metadata.gz: d54faf7b49c19cc898c637e8f094b6b00c2c5f208dcbd70fe2a5a1d77276887ff2f9bd3aaa772bddc2b543a178b68eb810a501489ae4e36414813cc5e42e2621
7
+ data.tar.gz: a18eb11df8254b186e2b33d93d1e477a34c05c67e6566492e15122f95c1e4bfc8696f26d29d09fa113e1bbf8468975275b44b2d97d636d240b01fc6bde3492aa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.140.0 (2025-11-12)
4
+
5
+ Full Changelog: [v1.139.0...v1.140.0](https://github.com/Increase/increase-ruby/compare/v1.139.0...v1.140.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([ec8f079](https://github.com/Increase/increase-ruby/commit/ec8f0799545f42cf6c1ab2281669744f469514a8))
10
+
3
11
  ## 1.139.0 (2025-11-10)
4
12
 
5
13
  Full Changelog: [v1.138.0...v1.139.0](https://github.com/Increase/increase-ruby/compare/v1.138.0...v1.139.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.139.0"
18
+ gem "increase", "~> 1.140.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::InboundMailItems#action
6
+ class InboundMailItemActionParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute checks
11
+ # The actions to perform on the Inbound Mail Item.
12
+ #
13
+ # @return [Array<Increase::Models::InboundMailItemActionParams::Check>]
14
+ required :checks, -> { Increase::Internal::Type::ArrayOf[Increase::InboundMailItemActionParams::Check] }
15
+
16
+ # @!method initialize(checks:, request_options: {})
17
+ # @param checks [Array<Increase::Models::InboundMailItemActionParams::Check>] The actions to perform on the Inbound Mail Item.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+
21
+ class Check < Increase::Internal::Type::BaseModel
22
+ # @!attribute action
23
+ # The action to perform on the Inbound Mail Item.
24
+ #
25
+ # @return [Symbol, Increase::Models::InboundMailItemActionParams::Check::Action]
26
+ required :action, enum: -> { Increase::InboundMailItemActionParams::Check::Action }
27
+
28
+ # @!attribute account
29
+ # The identifier of the Account to deposit the check into. If not provided, the
30
+ # check will be deposited into the Account associated with the Lockbox.
31
+ #
32
+ # @return [String, nil]
33
+ optional :account, String
34
+
35
+ # @!method initialize(action:, account: nil)
36
+ # Some parameter documentations has been truncated, see
37
+ # {Increase::Models::InboundMailItemActionParams::Check} for more details.
38
+ #
39
+ # @param action [Symbol, Increase::Models::InboundMailItemActionParams::Check::Action] The action to perform on the Inbound Mail Item.
40
+ #
41
+ # @param account [String] The identifier of the Account to deposit the check into. If not provided, the ch
42
+
43
+ # The action to perform on the Inbound Mail Item.
44
+ #
45
+ # @see Increase::Models::InboundMailItemActionParams::Check#action
46
+ module Action
47
+ extend Increase::Internal::Type::Enum
48
+
49
+ # The check will be deposited.
50
+ DEPOSIT = :deposit
51
+
52
+ # The check will be ignored.
53
+ IGNORE = :ignore
54
+
55
+ # @!method self.values
56
+ # @return [Array<Symbol>]
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -161,6 +161,9 @@ module Increase
161
161
  # Checks mailed to this Lockbox will not be deposited.
162
162
  DISABLED = :disabled
163
163
 
164
+ # Checks mailed to this Lockbox will be pending until actioned.
165
+ PEND_FOR_PROCESSING = :pend_for_processing
166
+
164
167
  # @!method self.values
165
168
  # @return [Array<Symbol>]
166
169
  end
@@ -44,6 +44,9 @@ module Increase
44
44
  # Checks mailed to this Lockbox will not be deposited.
45
45
  DISABLED = :disabled
46
46
 
47
+ # Checks mailed to this Lockbox will be pending until actioned.
48
+ PEND_FOR_PROCESSING = :pend_for_processing
49
+
47
50
  # @!method self.values
48
51
  # @return [Array<Symbol>]
49
52
  end
@@ -376,6 +376,8 @@ module Increase
376
376
 
377
377
  InboundMailItem = Increase::Models::InboundMailItem
378
378
 
379
+ InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams
380
+
379
381
  InboundMailItemListParams = Increase::Models::InboundMailItemListParams
380
382
 
381
383
  InboundMailItemRetrieveParams = Increase::Models::InboundMailItemRetrieveParams
@@ -55,6 +55,30 @@ module Increase
55
55
  )
56
56
  end
57
57
 
58
+ # Action a Inbound Mail Item
59
+ #
60
+ # @overload action(inbound_mail_item_id, checks:, request_options: {})
61
+ #
62
+ # @param inbound_mail_item_id [String] The identifier of the Inbound Mail Item to action.
63
+ #
64
+ # @param checks [Array<Increase::Models::InboundMailItemActionParams::Check>] The actions to perform on the Inbound Mail Item.
65
+ #
66
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
67
+ #
68
+ # @return [Increase::Models::InboundMailItem]
69
+ #
70
+ # @see Increase::Models::InboundMailItemActionParams
71
+ def action(inbound_mail_item_id, params)
72
+ parsed, options = Increase::InboundMailItemActionParams.dump_request(params)
73
+ @client.request(
74
+ method: :post,
75
+ path: ["inbound_mail_items/%1$s/action", inbound_mail_item_id],
76
+ body: parsed,
77
+ model: Increase::InboundMailItem,
78
+ options: options
79
+ )
80
+ end
81
+
58
82
  # @api private
59
83
  #
60
84
  # @param client [Increase::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.139.0"
4
+ VERSION = "1.140.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -220,6 +220,7 @@ require_relative "increase/models/inbound_fednow_transfer"
220
220
  require_relative "increase/models/inbound_fednow_transfer_list_params"
221
221
  require_relative "increase/models/inbound_fednow_transfer_retrieve_params"
222
222
  require_relative "increase/models/inbound_mail_item"
223
+ require_relative "increase/models/inbound_mail_item_action_params"
223
224
  require_relative "increase/models/inbound_mail_item_list_params"
224
225
  require_relative "increase/models/inbound_mail_item_retrieve_params"
225
226
  require_relative "increase/models/inbound_real_time_payments_transfer"
@@ -0,0 +1,139 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class InboundMailItemActionParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::InboundMailItemActionParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The actions to perform on the Inbound Mail Item.
18
+ sig { returns(T::Array[Increase::InboundMailItemActionParams::Check]) }
19
+ attr_accessor :checks
20
+
21
+ sig do
22
+ params(
23
+ checks:
24
+ T::Array[Increase::InboundMailItemActionParams::Check::OrHash],
25
+ request_options: Increase::RequestOptions::OrHash
26
+ ).returns(T.attached_class)
27
+ end
28
+ def self.new(
29
+ # The actions to perform on the Inbound Mail Item.
30
+ checks:,
31
+ request_options: {}
32
+ )
33
+ end
34
+
35
+ sig do
36
+ override.returns(
37
+ {
38
+ checks: T::Array[Increase::InboundMailItemActionParams::Check],
39
+ request_options: Increase::RequestOptions
40
+ }
41
+ )
42
+ end
43
+ def to_hash
44
+ end
45
+
46
+ class Check < Increase::Internal::Type::BaseModel
47
+ OrHash =
48
+ T.type_alias do
49
+ T.any(
50
+ Increase::InboundMailItemActionParams::Check,
51
+ Increase::Internal::AnyHash
52
+ )
53
+ end
54
+
55
+ # The action to perform on the Inbound Mail Item.
56
+ sig do
57
+ returns(
58
+ Increase::InboundMailItemActionParams::Check::Action::OrSymbol
59
+ )
60
+ end
61
+ attr_accessor :action
62
+
63
+ # The identifier of the Account to deposit the check into. If not provided, the
64
+ # check will be deposited into the Account associated with the Lockbox.
65
+ sig { returns(T.nilable(String)) }
66
+ attr_reader :account
67
+
68
+ sig { params(account: String).void }
69
+ attr_writer :account
70
+
71
+ sig do
72
+ params(
73
+ action:
74
+ Increase::InboundMailItemActionParams::Check::Action::OrSymbol,
75
+ account: String
76
+ ).returns(T.attached_class)
77
+ end
78
+ def self.new(
79
+ # The action to perform on the Inbound Mail Item.
80
+ action:,
81
+ # The identifier of the Account to deposit the check into. If not provided, the
82
+ # check will be deposited into the Account associated with the Lockbox.
83
+ account: nil
84
+ )
85
+ end
86
+
87
+ sig do
88
+ override.returns(
89
+ {
90
+ action:
91
+ Increase::InboundMailItemActionParams::Check::Action::OrSymbol,
92
+ account: String
93
+ }
94
+ )
95
+ end
96
+ def to_hash
97
+ end
98
+
99
+ # The action to perform on the Inbound Mail Item.
100
+ module Action
101
+ extend Increase::Internal::Type::Enum
102
+
103
+ TaggedSymbol =
104
+ T.type_alias do
105
+ T.all(
106
+ Symbol,
107
+ Increase::InboundMailItemActionParams::Check::Action
108
+ )
109
+ end
110
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
111
+
112
+ # The check will be deposited.
113
+ DEPOSIT =
114
+ T.let(
115
+ :deposit,
116
+ Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
117
+ )
118
+
119
+ # The check will be ignored.
120
+ IGNORE =
121
+ T.let(
122
+ :ignore,
123
+ Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
124
+ )
125
+
126
+ sig do
127
+ override.returns(
128
+ T::Array[
129
+ Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
130
+ ]
131
+ )
132
+ end
133
+ def self.values
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
@@ -214,6 +214,13 @@ module Increase
214
214
  Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
215
215
  )
216
216
 
217
+ # Checks mailed to this Lockbox will be pending until actioned.
218
+ PEND_FOR_PROCESSING =
219
+ T.let(
220
+ :pend_for_processing,
221
+ Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
222
+ )
223
+
217
224
  sig do
218
225
  override.returns(
219
226
  T::Array[Increase::Lockbox::CheckDepositBehavior::TaggedSymbol]
@@ -101,6 +101,13 @@ module Increase
101
101
  Increase::LockboxUpdateParams::CheckDepositBehavior::TaggedSymbol
102
102
  )
103
103
 
104
+ # Checks mailed to this Lockbox will be pending until actioned.
105
+ PEND_FOR_PROCESSING =
106
+ T.let(
107
+ :pend_for_processing,
108
+ Increase::LockboxUpdateParams::CheckDepositBehavior::TaggedSymbol
109
+ )
110
+
104
111
  sig do
105
112
  override.returns(
106
113
  T::Array[
@@ -380,6 +380,8 @@ module Increase
380
380
 
381
381
  InboundMailItem = Increase::Models::InboundMailItem
382
382
 
383
+ InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams
384
+
383
385
  InboundMailItemListParams = Increase::Models::InboundMailItemListParams
384
386
 
385
387
  InboundMailItemRetrieveParams =
@@ -40,6 +40,24 @@ module Increase
40
40
  )
41
41
  end
42
42
 
43
+ # Action a Inbound Mail Item
44
+ sig do
45
+ params(
46
+ inbound_mail_item_id: String,
47
+ checks:
48
+ T::Array[Increase::InboundMailItemActionParams::Check::OrHash],
49
+ request_options: Increase::RequestOptions::OrHash
50
+ ).returns(Increase::InboundMailItem)
51
+ end
52
+ def action(
53
+ # The identifier of the Inbound Mail Item to action.
54
+ inbound_mail_item_id,
55
+ # The actions to perform on the Inbound Mail Item.
56
+ checks:,
57
+ request_options: {}
58
+ )
59
+ end
60
+
43
61
  # @api private
44
62
  sig { params(client: Increase::Client).returns(T.attached_class) }
45
63
  def self.new(client:)
@@ -0,0 +1,62 @@
1
+ module Increase
2
+ module Models
3
+ type inbound_mail_item_action_params =
4
+ { checks: ::Array[Increase::InboundMailItemActionParams::Check] }
5
+ & Increase::Internal::Type::request_parameters
6
+
7
+ class InboundMailItemActionParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ attr_accessor checks: ::Array[Increase::InboundMailItemActionParams::Check]
12
+
13
+ def initialize: (
14
+ checks: ::Array[Increase::InboundMailItemActionParams::Check],
15
+ ?request_options: Increase::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ checks: ::Array[Increase::InboundMailItemActionParams::Check],
20
+ request_options: Increase::RequestOptions
21
+ }
22
+
23
+ type check =
24
+ {
25
+ action: Increase::Models::InboundMailItemActionParams::Check::action,
26
+ account: String
27
+ }
28
+
29
+ class Check < Increase::Internal::Type::BaseModel
30
+ attr_accessor action: Increase::Models::InboundMailItemActionParams::Check::action
31
+
32
+ attr_reader account: String?
33
+
34
+ def account=: (String) -> String
35
+
36
+ def initialize: (
37
+ action: Increase::Models::InboundMailItemActionParams::Check::action,
38
+ ?account: String
39
+ ) -> void
40
+
41
+ def to_hash: -> {
42
+ action: Increase::Models::InboundMailItemActionParams::Check::action,
43
+ account: String
44
+ }
45
+
46
+ type action = :deposit | :ignore
47
+
48
+ module Action
49
+ extend Increase::Internal::Type::Enum
50
+
51
+ # The check will be deposited.
52
+ DEPOSIT: :deposit
53
+
54
+ # The check will be ignored.
55
+ IGNORE: :ignore
56
+
57
+ def self?.values: -> ::Array[Increase::Models::InboundMailItemActionParams::Check::action]
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -98,7 +98,7 @@ module Increase
98
98
  }
99
99
  end
100
100
 
101
- type check_deposit_behavior = :enabled | :disabled
101
+ type check_deposit_behavior = :enabled | :disabled | :pend_for_processing
102
102
 
103
103
  module CheckDepositBehavior
104
104
  extend Increase::Internal::Type::Enum
@@ -109,6 +109,9 @@ module Increase
109
109
  # Checks mailed to this Lockbox will not be deposited.
110
110
  DISABLED: :disabled
111
111
 
112
+ # Checks mailed to this Lockbox will be pending until actioned.
113
+ PEND_FOR_PROCESSING: :pend_for_processing
114
+
112
115
  def self?.values: -> ::Array[Increase::Models::Lockbox::check_deposit_behavior]
113
116
  end
114
117
 
@@ -40,7 +40,7 @@ module Increase
40
40
  request_options: Increase::RequestOptions
41
41
  }
42
42
 
43
- type check_deposit_behavior = :enabled | :disabled
43
+ type check_deposit_behavior = :enabled | :disabled | :pend_for_processing
44
44
 
45
45
  module CheckDepositBehavior
46
46
  extend Increase::Internal::Type::Enum
@@ -51,6 +51,9 @@ module Increase
51
51
  # Checks mailed to this Lockbox will not be deposited.
52
52
  DISABLED: :disabled
53
53
 
54
+ # Checks mailed to this Lockbox will be pending until actioned.
55
+ PEND_FOR_PROCESSING: :pend_for_processing
56
+
54
57
  def self?.values: -> ::Array[Increase::Models::LockboxUpdateParams::check_deposit_behavior]
55
58
  end
56
59
  end
@@ -335,6 +335,8 @@ module Increase
335
335
 
336
336
  class InboundMailItem = Increase::Models::InboundMailItem
337
337
 
338
+ class InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams
339
+
338
340
  class InboundMailItemListParams = Increase::Models::InboundMailItemListParams
339
341
 
340
342
  class InboundMailItemRetrieveParams = Increase::Models::InboundMailItemRetrieveParams
@@ -14,6 +14,12 @@ module Increase
14
14
  ?request_options: Increase::request_opts
15
15
  ) -> Increase::Internal::Page[Increase::InboundMailItem]
16
16
 
17
+ def action: (
18
+ String inbound_mail_item_id,
19
+ checks: ::Array[Increase::InboundMailItemActionParams::Check],
20
+ ?request_options: Increase::request_opts
21
+ ) -> Increase::InboundMailItem
22
+
17
23
  def initialize: (client: Increase::Client) -> void
18
24
  end
19
25
  end
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.139.0
4
+ version: 1.140.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-10 00:00:00.000000000 Z
11
+ date: 2025-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -224,6 +224,7 @@ files:
224
224
  - lib/increase/models/inbound_fednow_transfer_list_params.rb
225
225
  - lib/increase/models/inbound_fednow_transfer_retrieve_params.rb
226
226
  - lib/increase/models/inbound_mail_item.rb
227
+ - lib/increase/models/inbound_mail_item_action_params.rb
227
228
  - lib/increase/models/inbound_mail_item_list_params.rb
228
229
  - lib/increase/models/inbound_mail_item_retrieve_params.rb
229
230
  - lib/increase/models/inbound_real_time_payments_transfer.rb
@@ -625,6 +626,7 @@ files:
625
626
  - rbi/increase/models/inbound_fednow_transfer_list_params.rbi
626
627
  - rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi
627
628
  - rbi/increase/models/inbound_mail_item.rbi
629
+ - rbi/increase/models/inbound_mail_item_action_params.rbi
628
630
  - rbi/increase/models/inbound_mail_item_list_params.rbi
629
631
  - rbi/increase/models/inbound_mail_item_retrieve_params.rbi
630
632
  - rbi/increase/models/inbound_real_time_payments_transfer.rbi
@@ -1025,6 +1027,7 @@ files:
1025
1027
  - sig/increase/models/inbound_fednow_transfer_list_params.rbs
1026
1028
  - sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs
1027
1029
  - sig/increase/models/inbound_mail_item.rbs
1030
+ - sig/increase/models/inbound_mail_item_action_params.rbs
1028
1031
  - sig/increase/models/inbound_mail_item_list_params.rbs
1029
1032
  - sig/increase/models/inbound_mail_item_retrieve_params.rbs
1030
1033
  - sig/increase/models/inbound_real_time_payments_transfer.rbs