increase 1.28.0 → 1.29.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: fd793f88bc4f5866c7507f8385c92ad33a0f3b2036e908179bbc38b388e199e5
4
- data.tar.gz: a09bc3cb79458b89a94510c88f6541b6475fefdc8c9247e3a21ec5f768eb78c8
3
+ metadata.gz: 72eef8a42bcf42de257bc514af9b0b69149064c17e6a7fe04b0a547d1243bd65
4
+ data.tar.gz: 453e4e366655928b7cac0631f1bd38781de21ba1a094b00a07e3c65a71173e40
5
5
  SHA512:
6
- metadata.gz: 1ceb76137128dbae249f47779434768271ad67fc38b8a4a8f4a0d78a40cb96117e0748a19809532f269d9615822e8b9b40aff24b1ea807b1ca1f8f8b4851c883
7
- data.tar.gz: d3dbbbbcb53d24e2b392aca73226f1c991c311e0a39d84ccf8542403fdbf089854a3c23a68080279a512c9ca10d75a87f475044e7b3b64853292b65068604bee
6
+ metadata.gz: bc7c40d4fa13c233b630026a58b7da093dc8924a92be91aff201a35924fb67b5b35fe856d09f7745d543dd543a25349e597134b413f089f5902ab28845a3152a
7
+ data.tar.gz: 7907d088a22a577166f8bb34083d75d57efab0c73c4aafe8466d8dda23957c21ea34702b22c68a181d49e399a504f67848390125a587bdabf9bd5f59eda29c82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.29.0 (2025-08-11)
4
+
5
+ Full Changelog: [v1.28.0...v1.29.0](https://github.com/Increase/increase-ruby/compare/v1.28.0...v1.29.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8067d85](https://github.com/Increase/increase-ruby/commit/8067d8591d4f0a2f5a33b796a3f50fe6b5fb6c48))
10
+
11
+
12
+ ### Chores
13
+
14
+ * collect metadata from type DSL ([175f631](https://github.com/Increase/increase-ruby/commit/175f6319788a5ddb8576871ce2e7db5f87474c57))
15
+ * **internal:** update comment in script ([a4ab2aa](https://github.com/Increase/increase-ruby/commit/a4ab2aa028a24748cde9280d83e4457e966b6aac))
16
+ * update @stainless-api/prism-cli to v5.15.0 ([663a03e](https://github.com/Increase/increase-ruby/commit/663a03e20f29203afbb2b8ff06aa63a0391b3afc))
17
+
3
18
  ## 1.28.0 (2025-08-07)
4
19
 
5
20
  Full Changelog: [v1.27.0...v1.28.0](https://github.com/Increase/increase-ruby/compare/v1.27.0...v1.28.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.28.0"
18
+ gem "increase", "~> 1.29.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -148,6 +148,7 @@ module Increase
148
148
  # @option spec [Boolean] :"nil?"
149
149
  def initialize(type_info, spec = {})
150
150
  @item_type_fn = Increase::Internal::Type::Converter.type_info(type_info || spec)
151
+ @meta = Increase::Internal::Type::Converter.meta_info(type_info, spec)
151
152
  @nilable = spec.fetch(:nil?, false)
152
153
  end
153
154
 
@@ -52,6 +52,7 @@ module Increase
52
52
  #
53
53
  # @option spec [Boolean] :"nil?"
54
54
  private def add_field(name_sym, required:, type_info:, spec:)
55
+ meta = Increase::Internal::Type::Converter.meta_info(type_info, spec)
55
56
  type_fn, info =
56
57
  case type_info
57
58
  in Proc | Increase::Internal::Type::Converter | Class
@@ -81,7 +82,8 @@ module Increase
81
82
  required: required,
82
83
  nilable: nilable,
83
84
  const: const,
84
- type_fn: type_fn
85
+ type_fn: type_fn,
86
+ meta: meta
85
87
  }
86
88
 
87
89
  define_method(setter) do |value|
@@ -98,6 +98,33 @@ module Increase
98
98
  end
99
99
  end
100
100
 
101
+ # @api private
102
+ #
103
+ # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] .
104
+ #
105
+ # @option type_info [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const
106
+ #
107
+ # @option type_info [Proc] :enum
108
+ #
109
+ # @option type_info [Proc] :union
110
+ #
111
+ # @option type_info [Boolean] :"nil?"
112
+ #
113
+ # @param spec [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] .
114
+ #
115
+ # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const
116
+ #
117
+ # @option spec [Proc] :enum
118
+ #
119
+ # @option spec [Proc] :union
120
+ #
121
+ # @option spec [Boolean] :"nil?"
122
+ #
123
+ # @return [Hash{Symbol=>Object}]
124
+ def meta_info(type_info, spec)
125
+ [spec, type_info].grep(Hash).first.to_h.except(:const, :enum, :union, :nil?)
126
+ end
127
+
101
128
  # @api private
102
129
  #
103
130
  # @param translate_names [Boolean]
@@ -168,6 +168,7 @@ module Increase
168
168
  # @option spec [Boolean] :"nil?"
169
169
  def initialize(type_info, spec = {})
170
170
  @item_type_fn = Increase::Internal::Type::Converter.type_info(type_info || spec)
171
+ @meta = Increase::Internal::Type::Converter.meta_info(type_info, spec)
171
172
  @nilable = spec.fetch(:nil?, false)
172
173
  end
173
174
 
@@ -12,20 +12,20 @@ module Increase
12
12
  #
13
13
  # All of the specified variant info for this union.
14
14
  #
15
- # @return [Array<Array(Symbol, Proc)>]
15
+ # @return [Array<Array(Symbol, Proc, Hash{Symbol=>Object})>]
16
16
  private def known_variants = (@known_variants ||= [])
17
17
 
18
18
  # @api private
19
19
  #
20
- # @return [Array<Array(Symbol, Object)>]
20
+ # @return [Array<Array(Symbol, Object, Hash{Symbol=>Object})>]
21
21
  protected def derefed_variants
22
- known_variants.map { |key, variant_fn| [key, variant_fn.call] }
22
+ known_variants.map { |key, variant_fn, meta| [key, variant_fn.call, meta] }
23
23
  end
24
24
 
25
25
  # All of the specified variants for this union.
26
26
  #
27
27
  # @return [Array<Object>]
28
- def variants = derefed_variants.map(&:last)
28
+ def variants = derefed_variants.map { _2 }
29
29
 
30
30
  # @api private
31
31
  #
@@ -51,12 +51,13 @@ module Increase
51
51
  #
52
52
  # @option spec [Boolean] :"nil?"
53
53
  private def variant(key, spec = nil)
54
+ meta = Increase::Internal::Type::Converter.meta_info(nil, spec)
54
55
  variant_info =
55
56
  case key
56
57
  in Symbol
57
- [key, Increase::Internal::Type::Converter.type_info(spec)]
58
+ [key, Increase::Internal::Type::Converter.type_info(spec), meta]
58
59
  in Proc | Increase::Internal::Type::Converter | Class | Hash
59
- [nil, Increase::Internal::Type::Converter.type_info(key)]
60
+ [nil, Increase::Internal::Type::Converter.type_info(key), meta]
60
61
  end
61
62
 
62
63
  known_variants << variant_info
@@ -79,7 +80,8 @@ module Increase
79
80
  return nil if key == Increase::Internal::OMIT
80
81
 
81
82
  key = key.to_sym if key.is_a?(String)
82
- known_variants.find { |k,| k == key }&.last&.call
83
+ _, found = known_variants.find { |k,| k == key }
84
+ found&.call
83
85
  else
84
86
  nil
85
87
  end
@@ -166,7 +166,13 @@ module Increase
166
166
  # @return [Symbol, Increase::Models::InboundWireTransfer::Type]
167
167
  required :type, enum: -> { Increase::InboundWireTransfer::Type }
168
168
 
169
- # @!method initialize(id:, account_id:, account_number_id:, amount:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, beneficiary_reference:, created_at:, description:, input_message_accountability_data:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, originator_routing_number:, originator_to_beneficiary_information:, originator_to_beneficiary_information_line1:, originator_to_beneficiary_information_line2:, originator_to_beneficiary_information_line3:, originator_to_beneficiary_information_line4:, reversal:, sender_reference:, status:, type:)
169
+ # @!attribute wire_drawdown_request_id
170
+ # The wire drawdown request the inbound wire transfer is fulfilling.
171
+ #
172
+ # @return [String, nil]
173
+ required :wire_drawdown_request_id, String, nil?: true
174
+
175
+ # @!method initialize(id:, account_id:, account_number_id:, amount:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, beneficiary_reference:, created_at:, description:, input_message_accountability_data:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, originator_routing_number:, originator_to_beneficiary_information:, originator_to_beneficiary_information_line1:, originator_to_beneficiary_information_line2:, originator_to_beneficiary_information_line3:, originator_to_beneficiary_information_line4:, reversal:, sender_reference:, status:, type:, wire_drawdown_request_id:)
170
176
  # Some parameter documentations has been truncated, see
171
177
  # {Increase::Models::InboundWireTransfer} for more details.
172
178
  #
@@ -224,6 +230,8 @@ module Increase
224
230
  # @param status [Symbol, Increase::Models::InboundWireTransfer::Status] The status of the transfer.
225
231
  #
226
232
  # @param type [Symbol, Increase::Models::InboundWireTransfer::Type] A constant representing the object's type. For this resource it will always be `
233
+ #
234
+ # @param wire_drawdown_request_id [String, nil] The wire drawdown request the inbound wire transfer is fulfilling.
227
235
 
228
236
  # @see Increase::Models::InboundWireTransfer#reversal
229
237
  class Reversal < Increase::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.28.0"
4
+ VERSION = "1.29.0"
5
5
  end
@@ -90,6 +90,60 @@ module Increase
90
90
  def self.type_info(spec)
91
91
  end
92
92
 
93
+ # @api private
94
+ sig do
95
+ params(
96
+ type_info:
97
+ T.any(
98
+ {
99
+ const:
100
+ T.nilable(
101
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
102
+ ),
103
+ enum:
104
+ T.nilable(
105
+ T.proc.returns(
106
+ Increase::Internal::Type::Converter::Input
107
+ )
108
+ ),
109
+ union:
110
+ T.nilable(
111
+ T.proc.returns(
112
+ Increase::Internal::Type::Converter::Input
113
+ )
114
+ )
115
+ },
116
+ T.proc.returns(Increase::Internal::Type::Converter::Input),
117
+ Increase::Internal::Type::Converter::Input
118
+ ),
119
+ spec:
120
+ T.any(
121
+ {
122
+ const:
123
+ T.nilable(
124
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
125
+ ),
126
+ enum:
127
+ T.nilable(
128
+ T.proc.returns(
129
+ Increase::Internal::Type::Converter::Input
130
+ )
131
+ ),
132
+ union:
133
+ T.nilable(
134
+ T.proc.returns(
135
+ Increase::Internal::Type::Converter::Input
136
+ )
137
+ )
138
+ },
139
+ T.proc.returns(Increase::Internal::Type::Converter::Input),
140
+ Increase::Internal::Type::Converter::Input
141
+ )
142
+ ).returns(Increase::Internal::AnyHash)
143
+ end
144
+ def self.meta_info(type_info, spec)
145
+ end
146
+
93
147
  # @api private
94
148
  sig do
95
149
  params(translate_names: T::Boolean).returns(
@@ -16,7 +16,8 @@ module Increase
16
16
  T::Array[
17
17
  [
18
18
  T.nilable(Symbol),
19
- T.proc.returns(Increase::Internal::Type::Converter::Input)
19
+ T.proc.returns(Increase::Internal::Type::Converter::Input),
20
+ Increase::Internal::AnyHash
20
21
  ]
21
22
  ]
22
23
  )
@@ -25,7 +26,13 @@ module Increase
25
26
  end
26
27
 
27
28
  # @api private
28
- sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) }
29
+ sig do
30
+ returns(
31
+ T::Array[
32
+ [T.nilable(Symbol), T.anything, Increase::Internal::AnyHash]
33
+ ]
34
+ )
35
+ end
29
36
  protected def derefed_variants
30
37
  end
31
38
 
@@ -125,6 +125,10 @@ module Increase
125
125
  sig { returns(Increase::InboundWireTransfer::Type::TaggedSymbol) }
126
126
  attr_accessor :type
127
127
 
128
+ # The wire drawdown request the inbound wire transfer is fulfilling.
129
+ sig { returns(T.nilable(String)) }
130
+ attr_accessor :wire_drawdown_request_id
131
+
128
132
  # An Inbound Wire Transfer is a wire transfer initiated outside of Increase to
129
133
  # your account.
130
134
  sig do
@@ -154,7 +158,8 @@ module Increase
154
158
  reversal: T.nilable(Increase::InboundWireTransfer::Reversal::OrHash),
155
159
  sender_reference: T.nilable(String),
156
160
  status: Increase::InboundWireTransfer::Status::OrSymbol,
157
- type: Increase::InboundWireTransfer::Type::OrSymbol
161
+ type: Increase::InboundWireTransfer::Type::OrSymbol,
162
+ wire_drawdown_request_id: T.nilable(String)
158
163
  ).returns(T.attached_class)
159
164
  end
160
165
  def self.new(
@@ -215,7 +220,9 @@ module Increase
215
220
  status:,
216
221
  # A constant representing the object's type. For this resource it will always be
217
222
  # `inbound_wire_transfer`.
218
- type:
223
+ type:,
224
+ # The wire drawdown request the inbound wire transfer is fulfilling.
225
+ wire_drawdown_request_id:
219
226
  )
220
227
  end
221
228
 
@@ -247,7 +254,8 @@ module Increase
247
254
  reversal: T.nilable(Increase::InboundWireTransfer::Reversal),
248
255
  sender_reference: T.nilable(String),
249
256
  status: Increase::InboundWireTransfer::Status::TaggedSymbol,
250
- type: Increase::InboundWireTransfer::Type::TaggedSymbol
257
+ type: Increase::InboundWireTransfer::Type::TaggedSymbol,
258
+ wire_drawdown_request_id: T.nilable(String)
251
259
  }
252
260
  )
253
261
  end
@@ -39,6 +39,23 @@ module Increase
39
39
  | Increase::Internal::Type::Converter::input spec
40
40
  ) -> (^-> top)
41
41
 
42
+ def self.meta_info: (
43
+ {
44
+ const: (nil | bool | Integer | Float | Symbol)?,
45
+ enum: ^-> Increase::Internal::Type::Converter::input?,
46
+ union: ^-> Increase::Internal::Type::Converter::input?
47
+ }
48
+ | ^-> Increase::Internal::Type::Converter::input
49
+ | Increase::Internal::Type::Converter::input type_info,
50
+ {
51
+ const: (nil | bool | Integer | Float | Symbol)?,
52
+ enum: ^-> Increase::Internal::Type::Converter::input?,
53
+ union: ^-> Increase::Internal::Type::Converter::input?
54
+ }
55
+ | ^-> Increase::Internal::Type::Converter::input
56
+ | Increase::Internal::Type::Converter::input spec
57
+ ) -> ::Hash[Symbol, top]
58
+
42
59
  def self.new_coerce_state: (
43
60
  ?translate_names: bool
44
61
  ) -> Increase::Internal::Type::Converter::coerce_state
@@ -5,9 +5,9 @@ module Increase
5
5
  include Increase::Internal::Type::Converter
6
6
  include Increase::Internal::Util::SorbetRuntimeSupport
7
7
 
8
- private def self.known_variants: -> ::Array[[Symbol?, (^-> Increase::Internal::Type::Converter::input)]]
8
+ private def self.known_variants: -> ::Array[[Symbol?, (^-> Increase::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
9
9
 
10
- def self.derefed_variants: -> ::Array[[Symbol?, top]]
10
+ def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
11
11
 
12
12
  def self.variants: -> ::Array[top]
13
13
 
@@ -27,7 +27,8 @@ module Increase
27
27
  reversal: Increase::InboundWireTransfer::Reversal?,
28
28
  sender_reference: String?,
29
29
  status: Increase::Models::InboundWireTransfer::status,
30
- type: Increase::Models::InboundWireTransfer::type_
30
+ type: Increase::Models::InboundWireTransfer::type_,
31
+ wire_drawdown_request_id: String?
31
32
  }
32
33
 
33
34
  class InboundWireTransfer < Increase::Internal::Type::BaseModel
@@ -83,6 +84,8 @@ module Increase
83
84
 
84
85
  attr_accessor type: Increase::Models::InboundWireTransfer::type_
85
86
 
87
+ attr_accessor wire_drawdown_request_id: String?
88
+
86
89
  def initialize: (
87
90
  id: String,
88
91
  account_id: String,
@@ -109,7 +112,8 @@ module Increase
109
112
  reversal: Increase::InboundWireTransfer::Reversal?,
110
113
  sender_reference: String?,
111
114
  status: Increase::Models::InboundWireTransfer::status,
112
- type: Increase::Models::InboundWireTransfer::type_
115
+ type: Increase::Models::InboundWireTransfer::type_,
116
+ wire_drawdown_request_id: String?
113
117
  ) -> void
114
118
 
115
119
  def to_hash: -> {
@@ -138,7 +142,8 @@ module Increase
138
142
  reversal: Increase::InboundWireTransfer::Reversal?,
139
143
  sender_reference: String?,
140
144
  status: Increase::Models::InboundWireTransfer::status,
141
- type: Increase::Models::InboundWireTransfer::type_
145
+ type: Increase::Models::InboundWireTransfer::type_,
146
+ wire_drawdown_request_id: String?
142
147
  }
143
148
 
144
149
  type reversal =
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.28.0
4
+ version: 1.29.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-08-07 00:00:00.000000000 Z
11
+ date: 2025-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool