increase 1.229.0 → 1.230.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: bd594db233cdb40ffc077729f606ec67d6e095614065ef355e30e659587e048f
4
- data.tar.gz: 4be85b5ab95cc8cb4f6e4facdc59c32f6b0caae0b8d35143c67296a0a1640a70
3
+ metadata.gz: 3c069c49ffaad5a87f57090b0daea50e24512280378abb5d295cbc5158fb23b2
4
+ data.tar.gz: 5fe14f953df93c9e39821b77478614c2b0c1a244022de5420f7ec2ed3dc8cb02
5
5
  SHA512:
6
- metadata.gz: e6f9fa92612a64174b7715fcb5c5e459dddcda9a9b893b6d7734b0bc5b2bc51a72058b635154407eacc0bd60c52b0e5f0ae2449e3ce1c58c06c4cbc173ed28ed
7
- data.tar.gz: 4520f64e15c90b22dedcb15ec4c77c18e2fafeb37f7dcf37ba6ef186d740015a80390d1123777206cbc489ebda246541cc1f04a76793c8885e8ff4d5d192301e
6
+ metadata.gz: '03206181a8662cd554c3fe8792e1797055d3b40506bba0d11c32cf313fe48afd2ea92a30ea178ef86e00d5b7de0bed9624030ba722536f1a922f3eebff2ab188'
7
+ data.tar.gz: 5f99e831d718444af4441e23505ddf64bd7f1626947c70d66170a8089a70f457eaef68790b072c0647843e2ee68062e678671d2eb88ca1261e1d46bfcf97d4d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.230.0 (2026-03-05)
4
+
5
+ Full Changelog: [v1.229.0...v1.230.0](https://github.com/Increase/increase-ruby/compare/v1.229.0...v1.230.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a02c155](https://github.com/Increase/increase-ruby/commit/a02c155f39f7f44a541ad2151e1dfa14cc21c287))
10
+
3
11
  ## 1.229.0 (2026-03-05)
4
12
 
5
13
  Full Changelog: [v1.228.0...v1.229.0](https://github.com/Increase/increase-ruby/compare/v1.228.0...v1.229.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.229.0"
18
+ gem "increase", "~> 1.230.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ # @see Increase::Resources::Simulations::CheckDeposits#adjustment
7
+ class CheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ # @!attribute check_deposit_id
12
+ # The identifier of the Check Deposit you wish to adjust.
13
+ #
14
+ # @return [String]
15
+ required :check_deposit_id, String
16
+
17
+ # @!attribute amount
18
+ # The adjustment amount in the minor unit of the Check Deposit's currency (e.g.,
19
+ # cents). A negative amount means that the funds are being clawed back by the
20
+ # other bank and is a debit to your account. Defaults to the negative of the Check
21
+ # Deposit amount.
22
+ #
23
+ # @return [Integer, nil]
24
+ optional :amount, Integer
25
+
26
+ # @!attribute reason
27
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
28
+ # used for a low quality image that the recipient wasn't able to handle.
29
+ #
30
+ # @return [Symbol, Increase::Models::Simulations::CheckDepositAdjustmentParams::Reason, nil]
31
+ optional :reason, enum: -> { Increase::Simulations::CheckDepositAdjustmentParams::Reason }
32
+
33
+ # @!method initialize(check_deposit_id:, amount: nil, reason: nil, request_options: {})
34
+ # Some parameter documentations has been truncated, see
35
+ # {Increase::Models::Simulations::CheckDepositAdjustmentParams} for more details.
36
+ #
37
+ # @param check_deposit_id [String] The identifier of the Check Deposit you wish to adjust.
38
+ #
39
+ # @param amount [Integer] The adjustment amount in the minor unit of the Check Deposit's currency (e.g., c
40
+ #
41
+ # @param reason [Symbol, Increase::Models::Simulations::CheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `non_conforming_item`, which is often
42
+ #
43
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
44
+
45
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
46
+ # used for a low quality image that the recipient wasn't able to handle.
47
+ module Reason
48
+ extend Increase::Internal::Type::Enum
49
+
50
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
51
+ LATE_RETURN = :late_return
52
+
53
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
54
+ WRONG_PAYEE_CREDIT = :wrong_payee_credit
55
+
56
+ # The check was deposited with a different amount than what was written on the check.
57
+ ADJUSTED_AMOUNT = :adjusted_amount
58
+
59
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
60
+ NON_CONFORMING_ITEM = :non_conforming_item
61
+
62
+ # The check has already been deposited elsewhere and so this is a duplicate.
63
+ PAID = :paid
64
+
65
+ # @!method self.values
66
+ # @return [Array<Symbol>]
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -4,6 +4,38 @@ module Increase
4
4
  module Resources
5
5
  class Simulations
6
6
  class CheckDeposits
7
+ # Some parameter documentations has been truncated, see
8
+ # {Increase::Models::Simulations::CheckDepositAdjustmentParams} for more details.
9
+ #
10
+ # Simulates the creation of a
11
+ # [Check Deposit Adjustment](#check-deposit-adjustments) on a
12
+ # [Check Deposit](#check-deposits). This Check Deposit must first have a `status`
13
+ # of `submitted`.
14
+ #
15
+ # @overload adjustment(check_deposit_id, amount: nil, reason: nil, request_options: {})
16
+ #
17
+ # @param check_deposit_id [String] The identifier of the Check Deposit you wish to adjust.
18
+ #
19
+ # @param amount [Integer] The adjustment amount in the minor unit of the Check Deposit's currency (e.g., c
20
+ #
21
+ # @param reason [Symbol, Increase::Models::Simulations::CheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `non_conforming_item`, which is often
22
+ #
23
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
24
+ #
25
+ # @return [Increase::Models::CheckDeposit]
26
+ #
27
+ # @see Increase::Models::Simulations::CheckDepositAdjustmentParams
28
+ def adjustment(check_deposit_id, params = {})
29
+ parsed, options = Increase::Simulations::CheckDepositAdjustmentParams.dump_request(params)
30
+ @client.request(
31
+ method: :post,
32
+ path: ["simulations/check_deposits/%1$s/adjustment", check_deposit_id],
33
+ body: parsed,
34
+ model: Increase::CheckDeposit,
35
+ options: options
36
+ )
37
+ end
38
+
7
39
  # Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to
8
40
  # factors like poor image quality. This Check Deposit must first have a `status`
9
41
  # of `pending`.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.229.0"
4
+ VERSION = "1.230.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -304,6 +304,7 @@ require_relative "increase/models/simulations/card_refund_create_params"
304
304
  require_relative "increase/models/simulations/card_reversal_create_params"
305
305
  require_relative "increase/models/simulations/card_settlement_create_params"
306
306
  require_relative "increase/models/simulations/card_token_create_params"
307
+ require_relative "increase/models/simulations/check_deposit_adjustment_params"
307
308
  require_relative "increase/models/simulations/check_deposit_reject_params"
308
309
  require_relative "increase/models/simulations/check_deposit_return_params"
309
310
  require_relative "increase/models/simulations/check_deposit_submit_params"
@@ -0,0 +1,151 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ class CheckDepositAdjustmentParams < 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::CheckDepositAdjustmentParams,
14
+ Increase::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # The identifier of the Check Deposit you wish to adjust.
19
+ sig { returns(String) }
20
+ attr_accessor :check_deposit_id
21
+
22
+ # The adjustment amount in the minor unit of the Check Deposit's currency (e.g.,
23
+ # cents). A negative amount means that the funds are being clawed back by the
24
+ # other bank and is a debit to your account. Defaults to the negative of the Check
25
+ # Deposit amount.
26
+ sig { returns(T.nilable(Integer)) }
27
+ attr_reader :amount
28
+
29
+ sig { params(amount: Integer).void }
30
+ attr_writer :amount
31
+
32
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
33
+ # used for a low quality image that the recipient wasn't able to handle.
34
+ sig do
35
+ returns(
36
+ T.nilable(
37
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::OrSymbol
38
+ )
39
+ )
40
+ end
41
+ attr_reader :reason
42
+
43
+ sig do
44
+ params(
45
+ reason:
46
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::OrSymbol
47
+ ).void
48
+ end
49
+ attr_writer :reason
50
+
51
+ sig do
52
+ params(
53
+ check_deposit_id: String,
54
+ amount: Integer,
55
+ reason:
56
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::OrSymbol,
57
+ request_options: Increase::RequestOptions::OrHash
58
+ ).returns(T.attached_class)
59
+ end
60
+ def self.new(
61
+ # The identifier of the Check Deposit you wish to adjust.
62
+ check_deposit_id:,
63
+ # The adjustment amount in the minor unit of the Check Deposit's currency (e.g.,
64
+ # cents). A negative amount means that the funds are being clawed back by the
65
+ # other bank and is a debit to your account. Defaults to the negative of the Check
66
+ # Deposit amount.
67
+ amount: nil,
68
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
69
+ # used for a low quality image that the recipient wasn't able to handle.
70
+ reason: nil,
71
+ request_options: {}
72
+ )
73
+ end
74
+
75
+ sig do
76
+ override.returns(
77
+ {
78
+ check_deposit_id: String,
79
+ amount: Integer,
80
+ reason:
81
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::OrSymbol,
82
+ request_options: Increase::RequestOptions
83
+ }
84
+ )
85
+ end
86
+ def to_hash
87
+ end
88
+
89
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
90
+ # used for a low quality image that the recipient wasn't able to handle.
91
+ module Reason
92
+ extend Increase::Internal::Type::Enum
93
+
94
+ TaggedSymbol =
95
+ T.type_alias do
96
+ T.all(
97
+ Symbol,
98
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason
99
+ )
100
+ end
101
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
102
+
103
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
104
+ LATE_RETURN =
105
+ T.let(
106
+ :late_return,
107
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
108
+ )
109
+
110
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
111
+ WRONG_PAYEE_CREDIT =
112
+ T.let(
113
+ :wrong_payee_credit,
114
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
115
+ )
116
+
117
+ # The check was deposited with a different amount than what was written on the check.
118
+ ADJUSTED_AMOUNT =
119
+ T.let(
120
+ :adjusted_amount,
121
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
122
+ )
123
+
124
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
125
+ NON_CONFORMING_ITEM =
126
+ T.let(
127
+ :non_conforming_item,
128
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
129
+ )
130
+
131
+ # The check has already been deposited elsewhere and so this is a duplicate.
132
+ PAID =
133
+ T.let(
134
+ :paid,
135
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
136
+ )
137
+
138
+ sig do
139
+ override.returns(
140
+ T::Array[
141
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
142
+ ]
143
+ )
144
+ end
145
+ def self.values
146
+ end
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
@@ -4,6 +4,34 @@ module Increase
4
4
  module Resources
5
5
  class Simulations
6
6
  class CheckDeposits
7
+ # Simulates the creation of a
8
+ # [Check Deposit Adjustment](#check-deposit-adjustments) on a
9
+ # [Check Deposit](#check-deposits). This Check Deposit must first have a `status`
10
+ # of `submitted`.
11
+ sig do
12
+ params(
13
+ check_deposit_id: String,
14
+ amount: Integer,
15
+ reason:
16
+ Increase::Simulations::CheckDepositAdjustmentParams::Reason::OrSymbol,
17
+ request_options: Increase::RequestOptions::OrHash
18
+ ).returns(Increase::CheckDeposit)
19
+ end
20
+ def adjustment(
21
+ # The identifier of the Check Deposit you wish to adjust.
22
+ check_deposit_id,
23
+ # The adjustment amount in the minor unit of the Check Deposit's currency (e.g.,
24
+ # cents). A negative amount means that the funds are being clawed back by the
25
+ # other bank and is a debit to your account. Defaults to the negative of the Check
26
+ # Deposit amount.
27
+ amount: nil,
28
+ # The reason for the adjustment. Defaults to `non_conforming_item`, which is often
29
+ # used for a low quality image that the recipient wasn't able to handle.
30
+ reason: nil,
31
+ request_options: {}
32
+ )
33
+ end
34
+
7
35
  # Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to
8
36
  # factors like poor image quality. This Check Deposit must first have a `status`
9
37
  # of `pending`.
@@ -0,0 +1,72 @@
1
+ module Increase
2
+ module Models
3
+ module Simulations
4
+ type check_deposit_adjustment_params =
5
+ {
6
+ check_deposit_id: String,
7
+ amount: Integer,
8
+ reason: Increase::Models::Simulations::CheckDepositAdjustmentParams::reason
9
+ }
10
+ & Increase::Internal::Type::request_parameters
11
+
12
+ class CheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
13
+ extend Increase::Internal::Type::RequestParameters::Converter
14
+ include Increase::Internal::Type::RequestParameters
15
+
16
+ attr_accessor check_deposit_id: String
17
+
18
+ attr_reader amount: Integer?
19
+
20
+ def amount=: (Integer) -> Integer
21
+
22
+ attr_reader reason: Increase::Models::Simulations::CheckDepositAdjustmentParams::reason?
23
+
24
+ def reason=: (
25
+ Increase::Models::Simulations::CheckDepositAdjustmentParams::reason
26
+ ) -> Increase::Models::Simulations::CheckDepositAdjustmentParams::reason
27
+
28
+ def initialize: (
29
+ check_deposit_id: String,
30
+ ?amount: Integer,
31
+ ?reason: Increase::Models::Simulations::CheckDepositAdjustmentParams::reason,
32
+ ?request_options: Increase::request_opts
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ check_deposit_id: String,
37
+ amount: Integer,
38
+ reason: Increase::Models::Simulations::CheckDepositAdjustmentParams::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::CheckDepositAdjustmentParams::reason]
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -2,6 +2,13 @@ module Increase
2
2
  module Resources
3
3
  class Simulations
4
4
  class CheckDeposits
5
+ def adjustment: (
6
+ String check_deposit_id,
7
+ ?amount: Integer,
8
+ ?reason: Increase::Models::Simulations::CheckDepositAdjustmentParams::reason,
9
+ ?request_options: Increase::request_opts
10
+ ) -> Increase::CheckDeposit
11
+
5
12
  def reject: (
6
13
  String check_deposit_id,
7
14
  ?request_options: Increase::request_opts
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.229.0
4
+ version: 1.230.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
@@ -321,6 +321,7 @@ files:
321
321
  - lib/increase/models/simulations/card_reversal_create_params.rb
322
322
  - lib/increase/models/simulations/card_settlement_create_params.rb
323
323
  - lib/increase/models/simulations/card_token_create_params.rb
324
+ - lib/increase/models/simulations/check_deposit_adjustment_params.rb
324
325
  - lib/increase/models/simulations/check_deposit_reject_params.rb
325
326
  - lib/increase/models/simulations/check_deposit_return_params.rb
326
327
  - lib/increase/models/simulations/check_deposit_submit_params.rb
@@ -730,6 +731,7 @@ files:
730
731
  - rbi/increase/models/simulations/card_reversal_create_params.rbi
731
732
  - rbi/increase/models/simulations/card_settlement_create_params.rbi
732
733
  - rbi/increase/models/simulations/card_token_create_params.rbi
734
+ - rbi/increase/models/simulations/check_deposit_adjustment_params.rbi
733
735
  - rbi/increase/models/simulations/check_deposit_reject_params.rbi
734
736
  - rbi/increase/models/simulations/check_deposit_return_params.rbi
735
737
  - rbi/increase/models/simulations/check_deposit_submit_params.rbi
@@ -1138,6 +1140,7 @@ files:
1138
1140
  - sig/increase/models/simulations/card_reversal_create_params.rbs
1139
1141
  - sig/increase/models/simulations/card_settlement_create_params.rbs
1140
1142
  - sig/increase/models/simulations/card_token_create_params.rbs
1143
+ - sig/increase/models/simulations/check_deposit_adjustment_params.rbs
1141
1144
  - sig/increase/models/simulations/check_deposit_reject_params.rbs
1142
1145
  - sig/increase/models/simulations/check_deposit_return_params.rbs
1143
1146
  - sig/increase/models/simulations/check_deposit_submit_params.rbs