increase 1.230.0 → 1.231.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: 3c069c49ffaad5a87f57090b0daea50e24512280378abb5d295cbc5158fb23b2
4
- data.tar.gz: 5fe14f953df93c9e39821b77478614c2b0c1a244022de5420f7ec2ed3dc8cb02
3
+ metadata.gz: 58c7627a38937abda046072a88ffcc381eeb26bfba23b2c818c95c6f0087b5b9
4
+ data.tar.gz: 8c96c7d9bc15223b24874ce73d078415e3bd33ab114ee9c9a5b3644ef8374135
5
5
  SHA512:
6
- metadata.gz: '03206181a8662cd554c3fe8792e1797055d3b40506bba0d11c32cf313fe48afd2ea92a30ea178ef86e00d5b7de0bed9624030ba722536f1a922f3eebff2ab188'
7
- data.tar.gz: 5f99e831d718444af4441e23505ddf64bd7f1626947c70d66170a8089a70f457eaef68790b072c0647843e2ee68062e678671d2eb88ca1261e1d46bfcf97d4d9
6
+ metadata.gz: 5ac61d0f56eeec37239e9f59f5eab56a507999ba4307596f077f0d7cdfa0c1217b88d89f0f3f3362e528b8d995b08072de277f0eb3ad9b09a4fee04ff38ce880
7
+ data.tar.gz: 9eb19a7fac468dee2c4362b7e39f8b40959feff8730933f0c0c08808f16f84bd6d6e9b69d746b4834ca7699bfbc25d908595710147798c5c52fd3c7d1f8dd9b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.231.0 (2026-03-05)
4
+
5
+ Full Changelog: [v1.230.0...v1.231.0](https://github.com/Increase/increase-ruby/compare/v1.230.0...v1.231.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([0924a4a](https://github.com/Increase/increase-ruby/commit/0924a4a54f1510a80b4bac5a2a282c36e94e08a4))
10
+
3
11
  ## 1.230.0 (2026-03-05)
4
12
 
5
13
  Full Changelog: [v1.229.0...v1.230.0](https://github.com/Increase/increase-ruby/compare/v1.229.0...v1.230.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.230.0"
18
+ gem "increase", "~> 1.231.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ # @see Increase::Resources::Simulations::InboundCheckDeposits#adjustment
7
+ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ # @!attribute inbound_check_deposit_id
12
+ # The identifier of the Inbound Check Deposit to adjust.
13
+ #
14
+ # @return [String]
15
+ required :inbound_check_deposit_id, String
16
+
17
+ # @!attribute amount
18
+ # The adjustment amount in cents. Defaults to the amount of the Inbound Check
19
+ # Deposit.
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :amount, Integer
23
+
24
+ # @!attribute reason
25
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
26
+ #
27
+ # @return [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason, nil]
28
+ optional :reason, enum: -> { Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason }
29
+
30
+ # @!method initialize(inbound_check_deposit_id:, amount: nil, reason: nil, request_options: {})
31
+ # Some parameter documentations has been truncated, see
32
+ # {Increase::Models::Simulations::InboundCheckDepositAdjustmentParams} for more
33
+ # details.
34
+ #
35
+ # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
36
+ #
37
+ # @param amount [Integer] The adjustment amount in cents. Defaults to the amount of the Inbound Check Depo
38
+ #
39
+ # @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `wrong_payee_credit`.
40
+ #
41
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
42
+
43
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
44
+ module Reason
45
+ extend Increase::Internal::Type::Enum
46
+
47
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
48
+ LATE_RETURN = :late_return
49
+
50
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
51
+ WRONG_PAYEE_CREDIT = :wrong_payee_credit
52
+
53
+ # The check was deposited with a different amount than what was written on the check.
54
+ ADJUSTED_AMOUNT = :adjusted_amount
55
+
56
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
57
+ NON_CONFORMING_ITEM = :non_conforming_item
58
+
59
+ # The check has already been deposited elsewhere and so this is a duplicate.
60
+ PAID = :paid
61
+
62
+ # @!method self.values
63
+ # @return [Array<Symbol>]
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -41,6 +41,37 @@ module Increase
41
41
  )
42
42
  end
43
43
 
44
+ # Some parameter documentations has been truncated, see
45
+ # {Increase::Models::Simulations::InboundCheckDepositAdjustmentParams} for more
46
+ # details.
47
+ #
48
+ # Simulates an adjustment on an Inbound Check Deposit. The Inbound Check Deposit
49
+ # must have a `status` of `accepted`.
50
+ #
51
+ # @overload adjustment(inbound_check_deposit_id, amount: nil, reason: nil, request_options: {})
52
+ #
53
+ # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
54
+ #
55
+ # @param amount [Integer] The adjustment amount in cents. Defaults to the amount of the Inbound Check Depo
56
+ #
57
+ # @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `wrong_payee_credit`.
58
+ #
59
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
60
+ #
61
+ # @return [Increase::Models::InboundCheckDeposit]
62
+ #
63
+ # @see Increase::Models::Simulations::InboundCheckDepositAdjustmentParams
64
+ def adjustment(inbound_check_deposit_id, params = {})
65
+ parsed, options = Increase::Simulations::InboundCheckDepositAdjustmentParams.dump_request(params)
66
+ @client.request(
67
+ method: :post,
68
+ path: ["simulations/inbound_check_deposits/%1$s/adjustment", inbound_check_deposit_id],
69
+ body: parsed,
70
+ model: Increase::InboundCheckDeposit,
71
+ options: options
72
+ )
73
+ end
74
+
44
75
  # @api private
45
76
  #
46
77
  # @param client [Increase::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.230.0"
4
+ VERSION = "1.231.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -313,6 +313,7 @@ require_relative "increase/models/simulations/digital_wallet_token_request_creat
313
313
  require_relative "increase/models/simulations/digital_wallet_token_request_create_response"
314
314
  require_relative "increase/models/simulations/export_create_params"
315
315
  require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
316
+ require_relative "increase/models/simulations/inbound_check_deposit_adjustment_params"
316
317
  require_relative "increase/models/simulations/inbound_check_deposit_create_params"
317
318
  require_relative "increase/models/simulations/inbound_fednow_transfer_create_params"
318
319
  require_relative "increase/models/simulations/inbound_mail_item_create_params"
@@ -0,0 +1,144 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Increase::Simulations::InboundCheckDepositAdjustmentParams,
14
+ Increase::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # The identifier of the Inbound Check Deposit to adjust.
19
+ sig { returns(String) }
20
+ attr_accessor :inbound_check_deposit_id
21
+
22
+ # The adjustment amount in cents. Defaults to the amount of the Inbound Check
23
+ # Deposit.
24
+ sig { returns(T.nilable(Integer)) }
25
+ attr_reader :amount
26
+
27
+ sig { params(amount: Integer).void }
28
+ attr_writer :amount
29
+
30
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
31
+ sig do
32
+ returns(
33
+ T.nilable(
34
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::OrSymbol
35
+ )
36
+ )
37
+ end
38
+ attr_reader :reason
39
+
40
+ sig do
41
+ params(
42
+ reason:
43
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::OrSymbol
44
+ ).void
45
+ end
46
+ attr_writer :reason
47
+
48
+ sig do
49
+ params(
50
+ inbound_check_deposit_id: String,
51
+ amount: Integer,
52
+ reason:
53
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::OrSymbol,
54
+ request_options: Increase::RequestOptions::OrHash
55
+ ).returns(T.attached_class)
56
+ end
57
+ def self.new(
58
+ # The identifier of the Inbound Check Deposit to adjust.
59
+ inbound_check_deposit_id:,
60
+ # The adjustment amount in cents. Defaults to the amount of the Inbound Check
61
+ # Deposit.
62
+ amount: nil,
63
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
64
+ reason: nil,
65
+ request_options: {}
66
+ )
67
+ end
68
+
69
+ sig do
70
+ override.returns(
71
+ {
72
+ inbound_check_deposit_id: String,
73
+ amount: Integer,
74
+ reason:
75
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::OrSymbol,
76
+ request_options: Increase::RequestOptions
77
+ }
78
+ )
79
+ end
80
+ def to_hash
81
+ end
82
+
83
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
84
+ module Reason
85
+ extend Increase::Internal::Type::Enum
86
+
87
+ TaggedSymbol =
88
+ T.type_alias do
89
+ T.all(
90
+ Symbol,
91
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason
92
+ )
93
+ end
94
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
95
+
96
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
97
+ LATE_RETURN =
98
+ T.let(
99
+ :late_return,
100
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
101
+ )
102
+
103
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
104
+ WRONG_PAYEE_CREDIT =
105
+ T.let(
106
+ :wrong_payee_credit,
107
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
108
+ )
109
+
110
+ # The check was deposited with a different amount than what was written on the check.
111
+ ADJUSTED_AMOUNT =
112
+ T.let(
113
+ :adjusted_amount,
114
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
115
+ )
116
+
117
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
118
+ NON_CONFORMING_ITEM =
119
+ T.let(
120
+ :non_conforming_item,
121
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
122
+ )
123
+
124
+ # The check has already been deposited elsewhere and so this is a duplicate.
125
+ PAID =
126
+ T.let(
127
+ :paid,
128
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
129
+ )
130
+
131
+ sig do
132
+ override.returns(
133
+ T::Array[
134
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
135
+ ]
136
+ )
137
+ end
138
+ def self.values
139
+ end
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -35,6 +35,29 @@ module Increase
35
35
  )
36
36
  end
37
37
 
38
+ # Simulates an adjustment on an Inbound Check Deposit. The Inbound Check Deposit
39
+ # must have a `status` of `accepted`.
40
+ sig do
41
+ params(
42
+ inbound_check_deposit_id: String,
43
+ amount: Integer,
44
+ reason:
45
+ Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::OrSymbol,
46
+ request_options: Increase::RequestOptions::OrHash
47
+ ).returns(Increase::InboundCheckDeposit)
48
+ end
49
+ def adjustment(
50
+ # The identifier of the Inbound Check Deposit to adjust.
51
+ inbound_check_deposit_id,
52
+ # The adjustment amount in cents. Defaults to the amount of the Inbound Check
53
+ # Deposit.
54
+ amount: nil,
55
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
56
+ reason: nil,
57
+ request_options: {}
58
+ )
59
+ end
60
+
38
61
  # @api private
39
62
  sig { params(client: Increase::Client).returns(T.attached_class) }
40
63
  def self.new(client:)
@@ -0,0 +1,72 @@
1
+ module Increase
2
+ module Models
3
+ module Simulations
4
+ type inbound_check_deposit_adjustment_params =
5
+ {
6
+ inbound_check_deposit_id: String,
7
+ amount: Integer,
8
+ reason: Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason
9
+ }
10
+ & Increase::Internal::Type::request_parameters
11
+
12
+ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
13
+ extend Increase::Internal::Type::RequestParameters::Converter
14
+ include Increase::Internal::Type::RequestParameters
15
+
16
+ attr_accessor inbound_check_deposit_id: String
17
+
18
+ attr_reader amount: Integer?
19
+
20
+ def amount=: (Integer) -> Integer
21
+
22
+ attr_reader reason: Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason?
23
+
24
+ def reason=: (
25
+ Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason
26
+ ) -> Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason
27
+
28
+ def initialize: (
29
+ inbound_check_deposit_id: String,
30
+ ?amount: Integer,
31
+ ?reason: Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason,
32
+ ?request_options: Increase::request_opts
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ inbound_check_deposit_id: String,
37
+ amount: Integer,
38
+ reason: Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason,
39
+ request_options: Increase::RequestOptions
40
+ }
41
+
42
+ type reason =
43
+ :late_return
44
+ | :wrong_payee_credit
45
+ | :adjusted_amount
46
+ | :non_conforming_item
47
+ | :paid
48
+
49
+ module Reason
50
+ extend Increase::Internal::Type::Enum
51
+
52
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
53
+ LATE_RETURN: :late_return
54
+
55
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
56
+ WRONG_PAYEE_CREDIT: :wrong_payee_credit
57
+
58
+ # The check was deposited with a different amount than what was written on the check.
59
+ ADJUSTED_AMOUNT: :adjusted_amount
60
+
61
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
62
+ NON_CONFORMING_ITEM: :non_conforming_item
63
+
64
+ # The check has already been deposited elsewhere and so this is a duplicate.
65
+ PAID: :paid
66
+
67
+ def self?.values: -> ::Array[Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason]
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -10,6 +10,13 @@ module Increase
10
10
  ?request_options: Increase::request_opts
11
11
  ) -> Increase::InboundCheckDeposit
12
12
 
13
+ def adjustment: (
14
+ String inbound_check_deposit_id,
15
+ ?amount: Integer,
16
+ ?reason: Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::reason,
17
+ ?request_options: Increase::request_opts
18
+ ) -> Increase::InboundCheckDeposit
19
+
13
20
  def initialize: (client: Increase::Client) -> void
14
21
  end
15
22
  end
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.230.0
4
+ version: 1.231.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
@@ -330,6 +330,7 @@ files:
330
330
  - lib/increase/models/simulations/digital_wallet_token_request_create_response.rb
331
331
  - lib/increase/models/simulations/export_create_params.rb
332
332
  - lib/increase/models/simulations/inbound_ach_transfer_create_params.rb
333
+ - lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb
333
334
  - lib/increase/models/simulations/inbound_check_deposit_create_params.rb
334
335
  - lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb
335
336
  - lib/increase/models/simulations/inbound_mail_item_create_params.rb
@@ -740,6 +741,7 @@ files:
740
741
  - rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi
741
742
  - rbi/increase/models/simulations/export_create_params.rbi
742
743
  - rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi
744
+ - rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi
743
745
  - rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi
744
746
  - rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi
745
747
  - rbi/increase/models/simulations/inbound_mail_item_create_params.rbi
@@ -1149,6 +1151,7 @@ files:
1149
1151
  - sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs
1150
1152
  - sig/increase/models/simulations/export_create_params.rbs
1151
1153
  - sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs
1154
+ - sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs
1152
1155
  - sig/increase/models/simulations/inbound_check_deposit_create_params.rbs
1153
1156
  - sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs
1154
1157
  - sig/increase/models/simulations/inbound_mail_item_create_params.rbs