finch-api 0.1.0.pre.alpha.36 → 0.1.0.pre.alpha.37

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: 7b1123f76013d8df32bff8cd3a6a3638af2a38ce653465da9293fe232e94a685
4
- data.tar.gz: cd7c902e81cddd119af77d7f20b46043e653c9be23244bf8867cee42fd6cb526
3
+ metadata.gz: c373b41d8ec9162cf4f4a50d8ffb8cbdb2739e81bf4e6d18f3cd50465002d363
4
+ data.tar.gz: b06a4865378ccf104f73235380afac0ac5c2e16bc2126c2bd1d256d7519f4e4d
5
5
  SHA512:
6
- metadata.gz: ca4aeba0ce1ea0e7a410644d82b1f9de08d233d8c73a40060b42662d8488a188feab1f8ffa310f6e5d04354cac5eb79263350d924112de995acfb65badd8e172
7
- data.tar.gz: 98d6111a9d3eab330d22ef417776d6aeff31021f932742fc99e664890ee682c0878facc71fc65218e57dab4bf861c50204f32b65159e05dcc824b234f3402e77
6
+ metadata.gz: 643c7e5f63688fefcf77457038d98fcae7ed1131059107b097cba2c47ceed4ed29be2362888c6f38c020effe071b19645816a4d7303a64b13d919e1cbf9f7817
7
+ data.tar.gz: e0ef99cd6d99d60507ae5b270e61b7c1bc0229b8950789f9aaa0d6b4d90f2b81c9b02cff0867bfe28adf3490bedc4bbac6e777bd27a40a4f134acc2a48fd0f0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.37 (2025-12-01)
4
+
5
+ Full Changelog: [v0.1.0-alpha.36...v0.1.0-alpha.37](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.36...v0.1.0-alpha.37)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([4ada9ae](https://github.com/Finch-API/finch-api-ruby/commit/4ada9aea1a5477c50ad4c2d1158edc4056b9bcce))
10
+
3
11
  ## 0.1.0-alpha.36 (2025-11-20)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.35...v0.1.0-alpha.36](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.35...v0.1.0-alpha.36)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "finch-api", "~> 0.1.0.pre.alpha.36"
20
+ gem "finch-api", "~> 0.1.0.pre.alpha.37"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -29,26 +29,26 @@ module FinchAPI
29
29
  # @return [String, nil]
30
30
  optional :data, String, nil?: true
31
31
 
32
- # @!attribute headers
33
- # The HTTP headers to include on the forwarded request. This value must be
34
- # specified as an object of key-value pairs. Example:
35
- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
32
+ # @!attribute params
33
+ # The query parameters for the forwarded request. This value must be specified as
34
+ # a valid JSON object rather than a query string.
36
35
  #
37
36
  # @return [Hash{Symbol=>Object, nil}, nil]
38
- optional :headers,
37
+ optional :params,
39
38
  FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true],
40
39
  nil?: true
41
40
 
42
- # @!attribute params
43
- # The query parameters for the forwarded request. This value must be specified as
44
- # a valid JSON object rather than a query string.
41
+ # @!attribute request_headers
42
+ # The HTTP headers to include on the forwarded request. This value must be
43
+ # specified as an object of key-value pairs. Example:
44
+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
45
45
  #
46
46
  # @return [Hash{Symbol=>Object, nil}, nil]
47
- optional :params,
47
+ optional :request_headers,
48
48
  FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true],
49
49
  nil?: true
50
50
 
51
- # @!method initialize(method_:, route:, data: nil, headers: nil, params: nil, request_options: {})
51
+ # @!method initialize(method_:, route:, data: nil, params: nil, request_headers: nil, request_options: {})
52
52
  # Some parameter documentations has been truncated, see
53
53
  # {FinchAPI::Models::RequestForwardingForwardParams} for more details.
54
54
  #
@@ -58,10 +58,10 @@ module FinchAPI
58
58
  #
59
59
  # @param data [String, nil] The body for the forwarded request. This value must be specified as either a str
60
60
  #
61
- # @param headers [Hash{Symbol=>Object, nil}, nil] The HTTP headers to include on the forwarded request. This value must be specifi
62
- #
63
61
  # @param params [Hash{Symbol=>Object, nil}, nil] The query parameters for the forwarded request. This value must be specified as
64
62
  #
63
+ # @param request_headers [Hash{Symbol=>Object, nil}, nil] The HTTP headers to include on the forwarded request. This value must be specifi
64
+ #
65
65
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
66
66
  end
67
67
  end
@@ -160,6 +160,7 @@ module FinchAPI
160
160
  optional :amount, Integer
161
161
 
162
162
  # @!attribute name
163
+ # The deduction name. Required when type is specified.
163
164
  #
164
165
  # @return [String, nil]
165
166
  optional :name, String
@@ -176,8 +177,11 @@ module FinchAPI
176
177
 
177
178
  # @!method initialize(amount: nil, name: nil, pre_tax: nil, type: nil)
178
179
  # @param amount [Integer]
179
- # @param name [String]
180
+ #
181
+ # @param name [String] The deduction name. Required when type is specified.
182
+ #
180
183
  # @param pre_tax [Boolean]
184
+ #
181
185
  # @param type [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Type]
182
186
 
183
187
  # @see FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction#type
@@ -216,6 +220,7 @@ module FinchAPI
216
220
  optional :amount, Integer
217
221
 
218
222
  # @!attribute name
223
+ # The contribution name. Required when type is specified.
219
224
  #
220
225
  # @return [String, nil]
221
226
  optional :name, String
@@ -228,7 +233,9 @@ module FinchAPI
228
233
 
229
234
  # @!method initialize(amount: nil, name: nil, type: nil)
230
235
  # @param amount [Integer]
231
- # @param name [String]
236
+ #
237
+ # @param name [String] The contribution name. Required when type is specified.
238
+ #
232
239
  # @param type [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Type]
233
240
 
234
241
  # @see FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution#type
@@ -11,7 +11,7 @@ module FinchAPI
11
11
  # Forward allows you to push or pull data models directly against an integration's
12
12
  # API.
13
13
  #
14
- # @overload forward(method_:, route:, data: nil, headers: nil, params: nil, request_options: {})
14
+ # @overload forward(method_:, route:, data: nil, params: nil, request_headers: nil, request_options: {})
15
15
  #
16
16
  # @param method_ [String] The HTTP method for the forwarded request. Valid values include: `GET` , `POST`
17
17
  #
@@ -19,10 +19,10 @@ module FinchAPI
19
19
  #
20
20
  # @param data [String, nil] The body for the forwarded request. This value must be specified as either a str
21
21
  #
22
- # @param headers [Hash{Symbol=>Object, nil}, nil] The HTTP headers to include on the forwarded request. This value must be specifi
23
- #
24
22
  # @param params [Hash{Symbol=>Object, nil}, nil] The query parameters for the forwarded request. This value must be specified as
25
23
  #
24
+ # @param request_headers [Hash{Symbol=>Object, nil}, nil] The HTTP headers to include on the forwarded request. This value must be specifi
25
+ #
26
26
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
27
27
  #
28
28
  # @return [FinchAPI::Models::RequestForwardingForwardResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.36"
4
+ VERSION = "0.1.0.pre.alpha.37"
5
5
  end
@@ -30,24 +30,24 @@ module FinchAPI
30
30
  sig { returns(T.nilable(String)) }
31
31
  attr_accessor :data
32
32
 
33
- # The HTTP headers to include on the forwarded request. This value must be
34
- # specified as an object of key-value pairs. Example:
35
- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
36
- sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
37
- attr_accessor :headers
38
-
39
33
  # The query parameters for the forwarded request. This value must be specified as
40
34
  # a valid JSON object rather than a query string.
41
35
  sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
42
36
  attr_accessor :params
43
37
 
38
+ # The HTTP headers to include on the forwarded request. This value must be
39
+ # specified as an object of key-value pairs. Example:
40
+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
41
+ sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
42
+ attr_accessor :request_headers
43
+
44
44
  sig do
45
45
  params(
46
46
  method_: String,
47
47
  route: String,
48
48
  data: T.nilable(String),
49
- headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
50
49
  params: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
50
+ request_headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
51
51
  request_options: FinchAPI::RequestOptions::OrHash
52
52
  ).returns(T.attached_class)
53
53
  end
@@ -62,13 +62,13 @@ module FinchAPI
62
62
  # The body for the forwarded request. This value must be specified as either a
63
63
  # string or a valid JSON object.
64
64
  data: nil,
65
- # The HTTP headers to include on the forwarded request. This value must be
66
- # specified as an object of key-value pairs. Example:
67
- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
68
- headers: nil,
69
65
  # The query parameters for the forwarded request. This value must be specified as
70
66
  # a valid JSON object rather than a query string.
71
67
  params: nil,
68
+ # The HTTP headers to include on the forwarded request. This value must be
69
+ # specified as an object of key-value pairs. Example:
70
+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
71
+ request_headers: nil,
72
72
  request_options: {}
73
73
  )
74
74
  end
@@ -79,8 +79,8 @@ module FinchAPI
79
79
  method_: String,
80
80
  route: String,
81
81
  data: T.nilable(String),
82
- headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
83
82
  params: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
83
+ request_headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
84
84
  request_options: FinchAPI::RequestOptions
85
85
  }
86
86
  )
@@ -471,6 +471,7 @@ module FinchAPI
471
471
  sig { params(amount: Integer).void }
472
472
  attr_writer :amount
473
473
 
474
+ # The deduction name. Required when type is specified.
474
475
  sig { returns(T.nilable(String)) }
475
476
  attr_reader :name
476
477
 
@@ -509,7 +510,13 @@ module FinchAPI
509
510
  FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Type::OrSymbol
510
511
  ).returns(T.attached_class)
511
512
  end
512
- def self.new(amount: nil, name: nil, pre_tax: nil, type: nil)
513
+ def self.new(
514
+ amount: nil,
515
+ # The deduction name. Required when type is specified.
516
+ name: nil,
517
+ pre_tax: nil,
518
+ type: nil
519
+ )
513
520
  end
514
521
 
515
522
  sig do
@@ -661,6 +668,7 @@ module FinchAPI
661
668
  sig { params(amount: Integer).void }
662
669
  attr_writer :amount
663
670
 
671
+ # The contribution name. Required when type is specified.
664
672
  sig { returns(T.nilable(String)) }
665
673
  attr_reader :name
666
674
 
@@ -692,7 +700,12 @@ module FinchAPI
692
700
  FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Type::OrSymbol
693
701
  ).returns(T.attached_class)
694
702
  end
695
- def self.new(amount: nil, name: nil, type: nil)
703
+ def self.new(
704
+ amount: nil,
705
+ # The contribution name. Required when type is specified.
706
+ name: nil,
707
+ type: nil
708
+ )
696
709
  end
697
710
 
698
711
  sig do
@@ -12,8 +12,8 @@ module FinchAPI
12
12
  method_: String,
13
13
  route: String,
14
14
  data: T.nilable(String),
15
- headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
16
15
  params: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
16
+ request_headers: T.nilable(T::Hash[Symbol, T.nilable(T.anything)]),
17
17
  request_options: FinchAPI::RequestOptions::OrHash
18
18
  ).returns(FinchAPI::Models::RequestForwardingForwardResponse)
19
19
  end
@@ -28,13 +28,13 @@ module FinchAPI
28
28
  # The body for the forwarded request. This value must be specified as either a
29
29
  # string or a valid JSON object.
30
30
  data: nil,
31
- # The HTTP headers to include on the forwarded request. This value must be
32
- # specified as an object of key-value pairs. Example:
33
- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
34
- headers: nil,
35
31
  # The query parameters for the forwarded request. This value must be specified as
36
32
  # a valid JSON object rather than a query string.
37
33
  params: nil,
34
+ # The HTTP headers to include on the forwarded request. This value must be
35
+ # specified as an object of key-value pairs. Example:
36
+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
37
+ request_headers: nil,
38
38
  request_options: {}
39
39
  )
40
40
  end
@@ -5,8 +5,8 @@ module FinchAPI
5
5
  method_: String,
6
6
  route: String,
7
7
  data: String?,
8
- headers: ::Hash[Symbol, top?]?,
9
- params: ::Hash[Symbol, top?]?
8
+ params: ::Hash[Symbol, top?]?,
9
+ request_headers: ::Hash[Symbol, top?]?
10
10
  }
11
11
  & FinchAPI::Internal::Type::request_parameters
12
12
 
@@ -20,16 +20,16 @@ module FinchAPI
20
20
 
21
21
  attr_accessor data: String?
22
22
 
23
- attr_accessor headers: ::Hash[Symbol, top?]?
24
-
25
23
  attr_accessor params: ::Hash[Symbol, top?]?
26
24
 
25
+ attr_accessor request_headers: ::Hash[Symbol, top?]?
26
+
27
27
  def initialize: (
28
28
  method_: String,
29
29
  route: String,
30
30
  ?data: String?,
31
- ?headers: ::Hash[Symbol, top?]?,
32
31
  ?params: ::Hash[Symbol, top?]?,
32
+ ?request_headers: ::Hash[Symbol, top?]?,
33
33
  ?request_options: FinchAPI::request_opts
34
34
  ) -> void
35
35
 
@@ -37,8 +37,8 @@ module FinchAPI
37
37
  method_: String,
38
38
  route: String,
39
39
  data: String?,
40
- headers: ::Hash[Symbol, top?]?,
41
40
  params: ::Hash[Symbol, top?]?,
41
+ request_headers: ::Hash[Symbol, top?]?,
42
42
  request_options: FinchAPI::RequestOptions
43
43
  }
44
44
  end
@@ -5,8 +5,8 @@ module FinchAPI
5
5
  method_: String,
6
6
  route: String,
7
7
  ?data: String?,
8
- ?headers: ::Hash[Symbol, top?]?,
9
8
  ?params: ::Hash[Symbol, top?]?,
9
+ ?request_headers: ::Hash[Symbol, top?]?,
10
10
  ?request_options: FinchAPI::request_opts
11
11
  ) -> FinchAPI::Models::RequestForwardingForwardResponse
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.36
4
+ version: 0.1.0.pre.alpha.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-21 00:00:00.000000000 Z
11
+ date: 2025-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool