increase 1.343.0 → 1.344.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 +4 -4
- data/README.md +1 -1
- data/lib/increase/internal/transport/base_client.rb +5 -36
- data/lib/increase/models/event.rb +6 -0
- data/lib/increase/models/event_list_params.rb +6 -0
- data/lib/increase/models/event_subscription.rb +6 -0
- data/lib/increase/models/event_subscription_create_params.rb +6 -0
- data/lib/increase/models/file_contents_params.rb +22 -0
- data/lib/increase/models/unwrap_webhook_event.rb +6 -0
- data/lib/increase/models.rb +2 -0
- data/lib/increase/resources/files.rb +28 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -0
- data/rbi/increase/internal/transport/base_client.rbi +2 -10
- data/rbi/increase/models/event.rbi +14 -0
- data/rbi/increase/models/event_list_params.rbi +14 -0
- data/rbi/increase/models/event_subscription.rbi +14 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +14 -0
- data/rbi/increase/models/file_contents_params.rbi +40 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +14 -0
- data/rbi/increase/models.rbi +2 -0
- data/rbi/increase/resources/files.rbi +21 -0
- data/sig/increase/internal/transport/base_client.rbs +1 -4
- data/sig/increase/models/event.rbs +8 -0
- data/sig/increase/models/event_list_params.rbs +8 -0
- data/sig/increase/models/event_subscription.rbs +8 -0
- data/sig/increase/models/event_subscription_create_params.rbs +8 -0
- data/sig/increase/models/file_contents_params.rbs +23 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +8 -0
- data/sig/increase/models.rbs +2 -0
- data/sig/increase/resources/files.rbs +5 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20afab8858e9ec6236c7f8339614d1275aeaacf2a32b442cf881574b380cde2c
|
|
4
|
+
data.tar.gz: 7f9a3de472920bf70178dd94f5c598d5492f115d4959453c2c1011f692725ed2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f6bfaddbe85bec4d9a75716cb7c258e546114abd6984a67ea77ec386febe9fa67ff9620fbb98ffd79776d984fdaaff11af86079316072db26ff30ff38ef381f
|
|
7
|
+
data.tar.gz: a30a20214302342fd852a2d5f4c04970097b09105395c9f7d83872c85c650efd293bee0ec285d35b4c71bd30dace8d0232971d5162da137719c410491af04f5c
|
data/README.md
CHANGED
|
@@ -12,18 +12,6 @@ module Increase
|
|
|
12
12
|
# from whatwg fetch spec
|
|
13
13
|
MAX_REDIRECTS = 20
|
|
14
14
|
|
|
15
|
-
# rubocop:disable Style/MutableConstant
|
|
16
|
-
PLATFORM_HEADERS =
|
|
17
|
-
{
|
|
18
|
-
"x-stainless-arch" => Increase::Internal::Util.arch,
|
|
19
|
-
"x-stainless-lang" => "ruby",
|
|
20
|
-
"x-stainless-os" => Increase::Internal::Util.os,
|
|
21
|
-
"x-stainless-package-version" => Increase::VERSION,
|
|
22
|
-
"x-stainless-runtime" => ::RUBY_ENGINE,
|
|
23
|
-
"x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION
|
|
24
|
-
}
|
|
25
|
-
# rubocop:enable Style/MutableConstant
|
|
26
|
-
|
|
27
15
|
class << self
|
|
28
16
|
# @api private
|
|
29
17
|
#
|
|
@@ -198,7 +186,6 @@ module Increase
|
|
|
198
186
|
)
|
|
199
187
|
@requester = Increase::Internal::Transport::PooledNetRequester.new
|
|
200
188
|
@headers = Increase::Internal::Util.normalized_headers(
|
|
201
|
-
self.class::PLATFORM_HEADERS,
|
|
202
189
|
{
|
|
203
190
|
"accept" => "application/json",
|
|
204
191
|
"content-type" => "application/json",
|
|
@@ -287,14 +274,7 @@ module Increase
|
|
|
287
274
|
headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key }
|
|
288
275
|
end
|
|
289
276
|
|
|
290
|
-
unless headers.key?("x-stainless-retry-count")
|
|
291
|
-
headers["x-stainless-retry-count"] = "0"
|
|
292
|
-
end
|
|
293
|
-
|
|
294
277
|
timeout = opts.fetch(:timeout, @timeout).to_f.clamp(0..)
|
|
295
|
-
unless headers.key?("x-stainless-timeout") || timeout.zero?
|
|
296
|
-
headers["x-stainless-timeout"] = timeout.to_s
|
|
297
|
-
end
|
|
298
278
|
|
|
299
279
|
headers.reject! { |_, v| v.to_s.empty? }
|
|
300
280
|
|
|
@@ -369,18 +349,12 @@ module Increase
|
|
|
369
349
|
#
|
|
370
350
|
# @param retry_count [Integer]
|
|
371
351
|
#
|
|
372
|
-
# @param send_retry_header [Boolean]
|
|
373
|
-
#
|
|
374
352
|
# @raise [Increase::Errors::APIError]
|
|
375
353
|
# @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
|
|
376
|
-
def send_request(request, redirect_count:, retry_count
|
|
377
|
-
url,
|
|
354
|
+
def send_request(request, redirect_count:, retry_count:)
|
|
355
|
+
url, max_retries, timeout = request.fetch_values(:url, :max_retries, :timeout)
|
|
378
356
|
input = {**request.except(:timeout), deadline: Increase::Internal::Util.monotonic_secs + timeout}
|
|
379
357
|
|
|
380
|
-
if send_retry_header
|
|
381
|
-
headers["x-stainless-retry-count"] = retry_count.to_s
|
|
382
|
-
end
|
|
383
|
-
|
|
384
358
|
begin
|
|
385
359
|
status, response, stream = @requester.execute(input)
|
|
386
360
|
rescue Increase::Errors::APIConnectionError => e
|
|
@@ -403,8 +377,7 @@ module Increase
|
|
|
403
377
|
send_request(
|
|
404
378
|
request,
|
|
405
379
|
redirect_count: redirect_count + 1,
|
|
406
|
-
retry_count: retry_count
|
|
407
|
-
send_retry_header: send_retry_header
|
|
380
|
+
retry_count: retry_count
|
|
408
381
|
)
|
|
409
382
|
in Increase::Errors::APIConnectionError if retry_count >= max_retries
|
|
410
383
|
raise status
|
|
@@ -432,8 +405,7 @@ module Increase
|
|
|
432
405
|
send_request(
|
|
433
406
|
request,
|
|
434
407
|
redirect_count: redirect_count,
|
|
435
|
-
retry_count: retry_count + 1
|
|
436
|
-
send_retry_header: send_retry_header
|
|
408
|
+
retry_count: retry_count + 1
|
|
437
409
|
)
|
|
438
410
|
end
|
|
439
411
|
end
|
|
@@ -486,13 +458,10 @@ module Increase
|
|
|
486
458
|
request = build_request(req.except(:options), opts)
|
|
487
459
|
url = request.fetch(:url)
|
|
488
460
|
|
|
489
|
-
# Don't send the current retry count in the headers if the caller modified the header defaults.
|
|
490
|
-
send_retry_header = request.fetch(:headers)["x-stainless-retry-count"] == "0"
|
|
491
461
|
status, response, stream = send_request(
|
|
492
462
|
request,
|
|
493
463
|
redirect_count: 0,
|
|
494
|
-
retry_count: 0
|
|
495
|
-
send_retry_header: send_retry_header
|
|
464
|
+
retry_count: 0
|
|
496
465
|
)
|
|
497
466
|
|
|
498
467
|
headers = Increase::Internal::Util.normalized_headers(response.each_header.to_h)
|
|
@@ -355,6 +355,12 @@ module Increase
|
|
|
355
355
|
# Occurs whenever a Physical Check is updated.
|
|
356
356
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
357
357
|
|
|
358
|
+
# Occurs whenever a Physical Check Book is created.
|
|
359
|
+
PHYSICAL_CHECK_BOOK_CREATED = :"physical_check_book.created"
|
|
360
|
+
|
|
361
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
362
|
+
PHYSICAL_CHECK_BOOK_UPDATED = :"physical_check_book.updated"
|
|
363
|
+
|
|
358
364
|
# Occurs whenever a Program is created.
|
|
359
365
|
PROGRAM_CREATED = :"program.created"
|
|
360
366
|
|
|
@@ -363,6 +363,12 @@ module Increase
|
|
|
363
363
|
# Occurs whenever a Physical Check is updated.
|
|
364
364
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
365
365
|
|
|
366
|
+
# Occurs whenever a Physical Check Book is created.
|
|
367
|
+
PHYSICAL_CHECK_BOOK_CREATED = :"physical_check_book.created"
|
|
368
|
+
|
|
369
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
370
|
+
PHYSICAL_CHECK_BOOK_UPDATED = :"physical_check_book.updated"
|
|
371
|
+
|
|
366
372
|
# Occurs whenever a Program is created.
|
|
367
373
|
PROGRAM_CREATED = :"program.created"
|
|
368
374
|
|
|
@@ -396,6 +396,12 @@ module Increase
|
|
|
396
396
|
# Occurs whenever a Physical Check is updated.
|
|
397
397
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
398
398
|
|
|
399
|
+
# Occurs whenever a Physical Check Book is created.
|
|
400
|
+
PHYSICAL_CHECK_BOOK_CREATED = :"physical_check_book.created"
|
|
401
|
+
|
|
402
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
403
|
+
PHYSICAL_CHECK_BOOK_UPDATED = :"physical_check_book.updated"
|
|
404
|
+
|
|
399
405
|
# Occurs whenever a Program is created.
|
|
400
406
|
PROGRAM_CREATED = :"program.created"
|
|
401
407
|
|
|
@@ -365,6 +365,12 @@ module Increase
|
|
|
365
365
|
# Occurs whenever a Physical Check is updated.
|
|
366
366
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
367
367
|
|
|
368
|
+
# Occurs whenever a Physical Check Book is created.
|
|
369
|
+
PHYSICAL_CHECK_BOOK_CREATED = :"physical_check_book.created"
|
|
370
|
+
|
|
371
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
372
|
+
PHYSICAL_CHECK_BOOK_UPDATED = :"physical_check_book.updated"
|
|
373
|
+
|
|
368
374
|
# Occurs whenever a Program is created.
|
|
369
375
|
PROGRAM_CREATED = :"program.created"
|
|
370
376
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Files#contents
|
|
6
|
+
class FileContentsParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute file_id
|
|
11
|
+
# The identifier of the File.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :file_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(file_id:, request_options: {})
|
|
17
|
+
# @param file_id [String] The identifier of the File.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -354,6 +354,12 @@ module Increase
|
|
|
354
354
|
# Occurs whenever a Physical Check is updated.
|
|
355
355
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
356
356
|
|
|
357
|
+
# Occurs whenever a Physical Check Book is created.
|
|
358
|
+
PHYSICAL_CHECK_BOOK_CREATED = :"physical_check_book.created"
|
|
359
|
+
|
|
360
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
361
|
+
PHYSICAL_CHECK_BOOK_UPDATED = :"physical_check_book.updated"
|
|
362
|
+
|
|
357
363
|
# Occurs whenever a Program is created.
|
|
358
364
|
PROGRAM_CREATED = :"program.created"
|
|
359
365
|
|
data/lib/increase/models.rb
CHANGED
|
@@ -94,6 +94,34 @@ module Increase
|
|
|
94
94
|
)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
# Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
98
|
+
# header points at a short-lived, pre-signed URL. Our
|
|
99
|
+
# [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
100
|
+
# the File's contents; if you call the API directly, follow the redirect to
|
|
101
|
+
# download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
102
|
+
# its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
103
|
+
# in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
104
|
+
# key, create a File Link.
|
|
105
|
+
#
|
|
106
|
+
# @overload contents(file_id, request_options: {})
|
|
107
|
+
#
|
|
108
|
+
# @param file_id [String] The identifier of the File.
|
|
109
|
+
#
|
|
110
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
|
+
#
|
|
112
|
+
# @return [StringIO]
|
|
113
|
+
#
|
|
114
|
+
# @see Increase::Models::FileContentsParams
|
|
115
|
+
def contents(file_id, params = {})
|
|
116
|
+
@client.request(
|
|
117
|
+
method: :get,
|
|
118
|
+
path: ["files/%1$s/contents", file_id],
|
|
119
|
+
headers: {"accept" => "application/octet-stream"},
|
|
120
|
+
model: StringIO,
|
|
121
|
+
options: params[:request_options]
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
|
|
97
125
|
# @api private
|
|
98
126
|
#
|
|
99
127
|
# @param client [Increase::Client]
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -189,6 +189,7 @@ require_relative "increase/models/fednow_transfer_create_params"
|
|
|
189
189
|
require_relative "increase/models/fednow_transfer_list_params"
|
|
190
190
|
require_relative "increase/models/fednow_transfer_retrieve_params"
|
|
191
191
|
require_relative "increase/models/file"
|
|
192
|
+
require_relative "increase/models/file_contents_params"
|
|
192
193
|
require_relative "increase/models/file_create_params"
|
|
193
194
|
require_relative "increase/models/file_link"
|
|
194
195
|
require_relative "increase/models/file_link_create_params"
|
|
@@ -70,8 +70,6 @@ module Increase
|
|
|
70
70
|
# from whatwg fetch spec
|
|
71
71
|
MAX_REDIRECTS = 20
|
|
72
72
|
|
|
73
|
-
PLATFORM_HEADERS = T::Hash[String, String]
|
|
74
|
-
|
|
75
73
|
class << self
|
|
76
74
|
# @api private
|
|
77
75
|
sig do
|
|
@@ -213,16 +211,10 @@ module Increase
|
|
|
213
211
|
params(
|
|
214
212
|
request: Increase::Internal::Transport::BaseClient::RequestInput,
|
|
215
213
|
redirect_count: Integer,
|
|
216
|
-
retry_count: Integer
|
|
217
|
-
send_retry_header: T::Boolean
|
|
214
|
+
retry_count: Integer
|
|
218
215
|
).returns([Integer, Net::HTTPResponse, T::Enumerable[String]])
|
|
219
216
|
end
|
|
220
|
-
def send_request(
|
|
221
|
-
request,
|
|
222
|
-
redirect_count:,
|
|
223
|
-
retry_count:,
|
|
224
|
-
send_retry_header:
|
|
225
|
-
)
|
|
217
|
+
def send_request(request, redirect_count:, retry_count:)
|
|
226
218
|
end
|
|
227
219
|
|
|
228
220
|
# Execute the request specified by `req`. This is the method that all resource
|
|
@@ -700,6 +700,20 @@ module Increase
|
|
|
700
700
|
Increase::Event::Category::TaggedSymbol
|
|
701
701
|
)
|
|
702
702
|
|
|
703
|
+
# Occurs whenever a Physical Check Book is created.
|
|
704
|
+
PHYSICAL_CHECK_BOOK_CREATED =
|
|
705
|
+
T.let(
|
|
706
|
+
:"physical_check_book.created",
|
|
707
|
+
Increase::Event::Category::TaggedSymbol
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
711
|
+
PHYSICAL_CHECK_BOOK_UPDATED =
|
|
712
|
+
T.let(
|
|
713
|
+
:"physical_check_book.updated",
|
|
714
|
+
Increase::Event::Category::TaggedSymbol
|
|
715
|
+
)
|
|
716
|
+
|
|
703
717
|
# Occurs whenever a Program is created.
|
|
704
718
|
PROGRAM_CREATED =
|
|
705
719
|
T.let(:"program.created", Increase::Event::Category::TaggedSymbol)
|
|
@@ -811,6 +811,20 @@ module Increase
|
|
|
811
811
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
812
812
|
)
|
|
813
813
|
|
|
814
|
+
# Occurs whenever a Physical Check Book is created.
|
|
815
|
+
PHYSICAL_CHECK_BOOK_CREATED =
|
|
816
|
+
T.let(
|
|
817
|
+
:"physical_check_book.created",
|
|
818
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
819
|
+
)
|
|
820
|
+
|
|
821
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
822
|
+
PHYSICAL_CHECK_BOOK_UPDATED =
|
|
823
|
+
T.let(
|
|
824
|
+
:"physical_check_book.updated",
|
|
825
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
826
|
+
)
|
|
827
|
+
|
|
814
828
|
# Occurs whenever a Program is created.
|
|
815
829
|
PROGRAM_CREATED =
|
|
816
830
|
T.let(
|
|
@@ -836,6 +836,20 @@ module Increase
|
|
|
836
836
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
837
837
|
)
|
|
838
838
|
|
|
839
|
+
# Occurs whenever a Physical Check Book is created.
|
|
840
|
+
PHYSICAL_CHECK_BOOK_CREATED =
|
|
841
|
+
T.let(
|
|
842
|
+
:"physical_check_book.created",
|
|
843
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
844
|
+
)
|
|
845
|
+
|
|
846
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
847
|
+
PHYSICAL_CHECK_BOOK_UPDATED =
|
|
848
|
+
T.let(
|
|
849
|
+
:"physical_check_book.updated",
|
|
850
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
851
|
+
)
|
|
852
|
+
|
|
839
853
|
# Occurs whenever a Program is created.
|
|
840
854
|
PROGRAM_CREATED =
|
|
841
855
|
T.let(
|
|
@@ -834,6 +834,20 @@ module Increase
|
|
|
834
834
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
835
835
|
)
|
|
836
836
|
|
|
837
|
+
# Occurs whenever a Physical Check Book is created.
|
|
838
|
+
PHYSICAL_CHECK_BOOK_CREATED =
|
|
839
|
+
T.let(
|
|
840
|
+
:"physical_check_book.created",
|
|
841
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
842
|
+
)
|
|
843
|
+
|
|
844
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
845
|
+
PHYSICAL_CHECK_BOOK_UPDATED =
|
|
846
|
+
T.let(
|
|
847
|
+
:"physical_check_book.updated",
|
|
848
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
849
|
+
)
|
|
850
|
+
|
|
837
851
|
# Occurs whenever a Program is created.
|
|
838
852
|
PROGRAM_CREATED =
|
|
839
853
|
T.let(
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class FileContentsParams < 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(Increase::FileContentsParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The identifier of the File.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :file_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
file_id: String,
|
|
21
|
+
request_options: Increase::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
# The identifier of the File.
|
|
26
|
+
file_id:,
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ file_id: String, request_options: Increase::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -748,6 +748,20 @@ module Increase
|
|
|
748
748
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
749
749
|
)
|
|
750
750
|
|
|
751
|
+
# Occurs whenever a Physical Check Book is created.
|
|
752
|
+
PHYSICAL_CHECK_BOOK_CREATED =
|
|
753
|
+
T.let(
|
|
754
|
+
:"physical_check_book.created",
|
|
755
|
+
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
756
|
+
)
|
|
757
|
+
|
|
758
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
759
|
+
PHYSICAL_CHECK_BOOK_UPDATED =
|
|
760
|
+
T.let(
|
|
761
|
+
:"physical_check_book.updated",
|
|
762
|
+
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
763
|
+
)
|
|
764
|
+
|
|
751
765
|
# Occurs whenever a Program is created.
|
|
752
766
|
PROGRAM_CREATED =
|
|
753
767
|
T.let(
|
data/rbi/increase/models.rbi
CHANGED
|
@@ -69,6 +69,27 @@ module Increase
|
|
|
69
69
|
)
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
73
|
+
# header points at a short-lived, pre-signed URL. Our
|
|
74
|
+
# [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
75
|
+
# the File's contents; if you call the API directly, follow the redirect to
|
|
76
|
+
# download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
77
|
+
# its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
78
|
+
# in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
79
|
+
# key, create a File Link.
|
|
80
|
+
sig do
|
|
81
|
+
params(
|
|
82
|
+
file_id: String,
|
|
83
|
+
request_options: Increase::RequestOptions::OrHash
|
|
84
|
+
).returns(StringIO)
|
|
85
|
+
end
|
|
86
|
+
def contents(
|
|
87
|
+
# The identifier of the File.
|
|
88
|
+
file_id,
|
|
89
|
+
request_options: {}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
|
|
72
93
|
# @api private
|
|
73
94
|
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
74
95
|
def self.new(client:)
|
|
@@ -34,8 +34,6 @@ module Increase
|
|
|
34
34
|
|
|
35
35
|
MAX_REDIRECTS: 20
|
|
36
36
|
|
|
37
|
-
PLATFORM_HEADERS: ::Hash[String, String]
|
|
38
|
-
|
|
39
37
|
def self.validate!: (
|
|
40
38
|
Increase::Internal::Transport::BaseClient::request_components req
|
|
41
39
|
) -> void
|
|
@@ -104,8 +102,7 @@ module Increase
|
|
|
104
102
|
def send_request: (
|
|
105
103
|
Increase::Internal::Transport::BaseClient::request_input request,
|
|
106
104
|
redirect_count: Integer,
|
|
107
|
-
retry_count: Integer
|
|
108
|
-
send_retry_header: bool
|
|
105
|
+
retry_count: Integer
|
|
109
106
|
) -> [Integer, top, Enumerable[String]]
|
|
110
107
|
|
|
111
108
|
def request: (
|
|
@@ -136,6 +136,8 @@ module Increase
|
|
|
136
136
|
| :"physical_card_profile.updated"
|
|
137
137
|
| :"physical_check.created"
|
|
138
138
|
| :"physical_check.updated"
|
|
139
|
+
| :"physical_check_book.created"
|
|
140
|
+
| :"physical_check_book.updated"
|
|
139
141
|
| :"program.created"
|
|
140
142
|
| :"program.updated"
|
|
141
143
|
| :"proof_of_authorization_request.created"
|
|
@@ -443,6 +445,12 @@ module Increase
|
|
|
443
445
|
# Occurs whenever a Physical Check is updated.
|
|
444
446
|
PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
|
|
445
447
|
|
|
448
|
+
# Occurs whenever a Physical Check Book is created.
|
|
449
|
+
PHYSICAL_CHECK_BOOK_CREATED: :"physical_check_book.created"
|
|
450
|
+
|
|
451
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
452
|
+
PHYSICAL_CHECK_BOOK_UPDATED: :"physical_check_book.updated"
|
|
453
|
+
|
|
446
454
|
# Occurs whenever a Program is created.
|
|
447
455
|
PROGRAM_CREATED: :"program.created"
|
|
448
456
|
|
|
@@ -178,6 +178,8 @@ module Increase
|
|
|
178
178
|
| :"physical_card_profile.updated"
|
|
179
179
|
| :"physical_check.created"
|
|
180
180
|
| :"physical_check.updated"
|
|
181
|
+
| :"physical_check_book.created"
|
|
182
|
+
| :"physical_check_book.updated"
|
|
181
183
|
| :"program.created"
|
|
182
184
|
| :"program.updated"
|
|
183
185
|
| :"proof_of_authorization_request.created"
|
|
@@ -485,6 +487,12 @@ module Increase
|
|
|
485
487
|
# Occurs whenever a Physical Check is updated.
|
|
486
488
|
PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
|
|
487
489
|
|
|
490
|
+
# Occurs whenever a Physical Check Book is created.
|
|
491
|
+
PHYSICAL_CHECK_BOOK_CREATED: :"physical_check_book.created"
|
|
492
|
+
|
|
493
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
494
|
+
PHYSICAL_CHECK_BOOK_UPDATED: :"physical_check_book.updated"
|
|
495
|
+
|
|
488
496
|
# Occurs whenever a Program is created.
|
|
489
497
|
PROGRAM_CREATED: :"program.created"
|
|
490
498
|
|
|
@@ -162,6 +162,8 @@ module Increase
|
|
|
162
162
|
| :"physical_card_profile.updated"
|
|
163
163
|
| :"physical_check.created"
|
|
164
164
|
| :"physical_check.updated"
|
|
165
|
+
| :"physical_check_book.created"
|
|
166
|
+
| :"physical_check_book.updated"
|
|
165
167
|
| :"program.created"
|
|
166
168
|
| :"program.updated"
|
|
167
169
|
| :"proof_of_authorization_request.created"
|
|
@@ -469,6 +471,12 @@ module Increase
|
|
|
469
471
|
# Occurs whenever a Physical Check is updated.
|
|
470
472
|
PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
|
|
471
473
|
|
|
474
|
+
# Occurs whenever a Physical Check Book is created.
|
|
475
|
+
PHYSICAL_CHECK_BOOK_CREATED: :"physical_check_book.created"
|
|
476
|
+
|
|
477
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
478
|
+
PHYSICAL_CHECK_BOOK_UPDATED: :"physical_check_book.updated"
|
|
479
|
+
|
|
472
480
|
# Occurs whenever a Program is created.
|
|
473
481
|
PROGRAM_CREATED: :"program.created"
|
|
474
482
|
|
|
@@ -165,6 +165,8 @@ module Increase
|
|
|
165
165
|
| :"physical_card_profile.updated"
|
|
166
166
|
| :"physical_check.created"
|
|
167
167
|
| :"physical_check.updated"
|
|
168
|
+
| :"physical_check_book.created"
|
|
169
|
+
| :"physical_check_book.updated"
|
|
168
170
|
| :"program.created"
|
|
169
171
|
| :"program.updated"
|
|
170
172
|
| :"proof_of_authorization_request.created"
|
|
@@ -472,6 +474,12 @@ module Increase
|
|
|
472
474
|
# Occurs whenever a Physical Check is updated.
|
|
473
475
|
PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
|
|
474
476
|
|
|
477
|
+
# Occurs whenever a Physical Check Book is created.
|
|
478
|
+
PHYSICAL_CHECK_BOOK_CREATED: :"physical_check_book.created"
|
|
479
|
+
|
|
480
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
481
|
+
PHYSICAL_CHECK_BOOK_UPDATED: :"physical_check_book.updated"
|
|
482
|
+
|
|
475
483
|
# Occurs whenever a Program is created.
|
|
476
484
|
PROGRAM_CREATED: :"program.created"
|
|
477
485
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type file_contents_params =
|
|
4
|
+
{ file_id: String } & Increase::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class FileContentsParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor file_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
file_id: String,
|
|
14
|
+
?request_options: Increase::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
file_id: String,
|
|
19
|
+
request_options: Increase::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -136,6 +136,8 @@ module Increase
|
|
|
136
136
|
| :"physical_card_profile.updated"
|
|
137
137
|
| :"physical_check.created"
|
|
138
138
|
| :"physical_check.updated"
|
|
139
|
+
| :"physical_check_book.created"
|
|
140
|
+
| :"physical_check_book.updated"
|
|
139
141
|
| :"program.created"
|
|
140
142
|
| :"program.updated"
|
|
141
143
|
| :"proof_of_authorization_request.created"
|
|
@@ -443,6 +445,12 @@ module Increase
|
|
|
443
445
|
# Occurs whenever a Physical Check is updated.
|
|
444
446
|
PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
|
|
445
447
|
|
|
448
|
+
# Occurs whenever a Physical Check Book is created.
|
|
449
|
+
PHYSICAL_CHECK_BOOK_CREATED: :"physical_check_book.created"
|
|
450
|
+
|
|
451
|
+
# Occurs whenever a Physical Check Book is updated.
|
|
452
|
+
PHYSICAL_CHECK_BOOK_UPDATED: :"physical_check_book.updated"
|
|
453
|
+
|
|
446
454
|
# Occurs whenever a Program is created.
|
|
447
455
|
PROGRAM_CREATED: :"program.created"
|
|
448
456
|
|
data/sig/increase/models.rbs
CHANGED
|
@@ -22,6 +22,11 @@ module Increase
|
|
|
22
22
|
?request_options: Increase::request_opts
|
|
23
23
|
) -> Increase::Internal::Page[Increase::File]
|
|
24
24
|
|
|
25
|
+
def contents: (
|
|
26
|
+
String file_id,
|
|
27
|
+
?request_options: Increase::request_opts
|
|
28
|
+
) -> StringIO
|
|
29
|
+
|
|
25
30
|
def initialize: (client: Increase::Client) -> void
|
|
26
31
|
end
|
|
27
32
|
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.
|
|
4
|
+
version: 1.344.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -218,6 +218,7 @@ files:
|
|
|
218
218
|
- lib/increase/models/fednow_transfer_list_params.rb
|
|
219
219
|
- lib/increase/models/fednow_transfer_retrieve_params.rb
|
|
220
220
|
- lib/increase/models/file.rb
|
|
221
|
+
- lib/increase/models/file_contents_params.rb
|
|
221
222
|
- lib/increase/models/file_create_params.rb
|
|
222
223
|
- lib/increase/models/file_link.rb
|
|
223
224
|
- lib/increase/models/file_link_create_params.rb
|
|
@@ -635,6 +636,7 @@ files:
|
|
|
635
636
|
- rbi/increase/models/fednow_transfer_list_params.rbi
|
|
636
637
|
- rbi/increase/models/fednow_transfer_retrieve_params.rbi
|
|
637
638
|
- rbi/increase/models/file.rbi
|
|
639
|
+
- rbi/increase/models/file_contents_params.rbi
|
|
638
640
|
- rbi/increase/models/file_create_params.rbi
|
|
639
641
|
- rbi/increase/models/file_link.rbi
|
|
640
642
|
- rbi/increase/models/file_link_create_params.rbi
|
|
@@ -1051,6 +1053,7 @@ files:
|
|
|
1051
1053
|
- sig/increase/models/fednow_transfer_list_params.rbs
|
|
1052
1054
|
- sig/increase/models/fednow_transfer_retrieve_params.rbs
|
|
1053
1055
|
- sig/increase/models/file.rbs
|
|
1056
|
+
- sig/increase/models/file_contents_params.rbs
|
|
1054
1057
|
- sig/increase/models/file_create_params.rbs
|
|
1055
1058
|
- sig/increase/models/file_link.rbs
|
|
1056
1059
|
- sig/increase/models/file_link_create_params.rbs
|