increase 1.168.0 → 1.169.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: e74750d65eacbe23b0115fa5f47d3f6615b53b81b8f48b410c14b29348cfc5eb
4
- data.tar.gz: b3d07a59de5dc3e93619b356d07c8dd0203bbfe6ce66d261af2f139fe0524aba
3
+ metadata.gz: a6604e67c072bd29bdaebb03b8e9390a6d471a6324d70b0f13c9b3ba6cbe9359
4
+ data.tar.gz: 16e4cac1007e05f8ad4a6e87ad630df81d9c81f8baf59802c6f375a692c399cd
5
5
  SHA512:
6
- metadata.gz: b7694fa2206a3cbcbd0440c378105ed3209a103b2ff3c07664bebda2cdadd1e2c4aaad081f544ae5017e9b18ad107fcb1fefa1d155524478c9ea9a02e7edc794
7
- data.tar.gz: b3131f1a74d2ba3f669ee430f97e03a5c7b48eb1210a602a775c1980bb919e33a812bcf3a10b4b23dd77dd4eaa8586be80372b92ce138a92fcd7a8f758bee223
6
+ metadata.gz: 801a4a597c991755697cfafba47e6a033b8754ce9d702511637ef8b6709fdc1393eca9441a1b3ba991ac17fffc4ac84712033c88e399af81fdbc88bf0325d10f
7
+ data.tar.gz: ed7c27cc0112e9e0cde72b3cf412025df6c9298886278e41190018c128ddc7b6ea32fe0c7ca1a3556ad0b2e59202d1942c6d94658fb41655a055e863166208ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.169.0 (2025-12-19)
4
+
5
+ Full Changelog: [v1.168.0...v1.169.0](https://github.com/Increase/increase-ruby/compare/v1.168.0...v1.169.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b5d3038](https://github.com/Increase/increase-ruby/commit/b5d30383dc3af990034904caf966da33ea3ddb9a))
10
+
3
11
  ## 1.168.0 (2025-12-18)
4
12
 
5
13
  Full Changelog: [v1.167.0...v1.168.0](https://github.com/Increase/increase-ruby/compare/v1.167.0...v1.168.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.168.0"
18
+ gem "increase", "~> 1.169.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -8,16 +8,53 @@ module Increase
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
- # @!attribute account_id
12
- # The identifier of the Account the tax document is for.
11
+ # @!attribute category
12
+ # The type of Export to create.
13
13
  #
14
- # @return [String]
15
- required :account_id, String
14
+ # @return [Symbol, Increase::Models::Simulations::ExportCreateParams::Category]
15
+ required :category, enum: -> { Increase::Simulations::ExportCreateParams::Category }
16
16
 
17
- # @!method initialize(account_id:, request_options: {})
18
- # @param account_id [String] The identifier of the Account the tax document is for.
17
+ # @!attribute form_1099_int
18
+ # Options for the created export. Required if `category` is equal to
19
+ # `form_1099_int`.
20
+ #
21
+ # @return [Increase::Models::Simulations::ExportCreateParams::Form1099Int, nil]
22
+ optional :form_1099_int, -> { Increase::Simulations::ExportCreateParams::Form1099Int }
23
+
24
+ # @!method initialize(category:, form_1099_int: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {Increase::Models::Simulations::ExportCreateParams} for more details.
27
+ #
28
+ # @param category [Symbol, Increase::Models::Simulations::ExportCreateParams::Category] The type of Export to create.
29
+ #
30
+ # @param form_1099_int [Increase::Models::Simulations::ExportCreateParams::Form1099Int] Options for the created export. Required if `category` is equal to `form_1099_in
19
31
  #
20
32
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
33
+
34
+ # The type of Export to create.
35
+ module Category
36
+ extend Increase::Internal::Type::Enum
37
+
38
+ # A PDF of an Internal Revenue Service Form 1099-INT.
39
+ FORM_1099_INT = :form_1099_int
40
+
41
+ # @!method self.values
42
+ # @return [Array<Symbol>]
43
+ end
44
+
45
+ class Form1099Int < Increase::Internal::Type::BaseModel
46
+ # @!attribute account_id
47
+ # The identifier of the Account the tax document is for.
48
+ #
49
+ # @return [String]
50
+ required :account_id, String
51
+
52
+ # @!method initialize(account_id:)
53
+ # Options for the created export. Required if `category` is equal to
54
+ # `form_1099_int`.
55
+ #
56
+ # @param account_id [String] The identifier of the Account the tax document is for.
57
+ end
21
58
  end
22
59
  end
23
60
  end
@@ -4,11 +4,19 @@ module Increase
4
4
  module Resources
5
5
  class Simulations
6
6
  class Exports
7
- # Simulates a tax form export being generated.
7
+ # Some parameter documentations has been truncated, see
8
+ # {Increase::Models::Simulations::ExportCreateParams} for more details.
8
9
  #
9
- # @overload create(account_id:, request_options: {})
10
+ # Many exports are created by you via POST /exports or in the Dashboard. Some
11
+ # exports are created automatically by Increase. For example, tax documents are
12
+ # published once a year. In sandbox, you can trigger the arrival of an export that
13
+ # would normally only be created automatically via this simulation.
10
14
  #
11
- # @param account_id [String] The identifier of the Account the tax document is for.
15
+ # @overload create(category:, form_1099_int: nil, request_options: {})
16
+ #
17
+ # @param category [Symbol, Increase::Models::Simulations::ExportCreateParams::Category] The type of Export to create.
18
+ #
19
+ # @param form_1099_int [Increase::Models::Simulations::ExportCreateParams::Form1099Int] Options for the created export. Required if `category` is equal to `form_1099_in
12
20
  #
13
21
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
14
22
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.168.0"
4
+ VERSION = "1.169.0"
5
5
  end
@@ -15,30 +15,116 @@ module Increase
15
15
  )
16
16
  end
17
17
 
18
- # The identifier of the Account the tax document is for.
19
- sig { returns(String) }
20
- attr_accessor :account_id
18
+ # The type of Export to create.
19
+ sig do
20
+ returns(Increase::Simulations::ExportCreateParams::Category::OrSymbol)
21
+ end
22
+ attr_accessor :category
23
+
24
+ # Options for the created export. Required if `category` is equal to
25
+ # `form_1099_int`.
26
+ sig do
27
+ returns(
28
+ T.nilable(Increase::Simulations::ExportCreateParams::Form1099Int)
29
+ )
30
+ end
31
+ attr_reader :form_1099_int
21
32
 
22
33
  sig do
23
34
  params(
24
- account_id: String,
35
+ form_1099_int:
36
+ Increase::Simulations::ExportCreateParams::Form1099Int::OrHash
37
+ ).void
38
+ end
39
+ attr_writer :form_1099_int
40
+
41
+ sig do
42
+ params(
43
+ category:
44
+ Increase::Simulations::ExportCreateParams::Category::OrSymbol,
45
+ form_1099_int:
46
+ Increase::Simulations::ExportCreateParams::Form1099Int::OrHash,
25
47
  request_options: Increase::RequestOptions::OrHash
26
48
  ).returns(T.attached_class)
27
49
  end
28
50
  def self.new(
29
- # The identifier of the Account the tax document is for.
30
- account_id:,
51
+ # The type of Export to create.
52
+ category:,
53
+ # Options for the created export. Required if `category` is equal to
54
+ # `form_1099_int`.
55
+ form_1099_int: nil,
31
56
  request_options: {}
32
57
  )
33
58
  end
34
59
 
35
60
  sig do
36
61
  override.returns(
37
- { account_id: String, request_options: Increase::RequestOptions }
62
+ {
63
+ category:
64
+ Increase::Simulations::ExportCreateParams::Category::OrSymbol,
65
+ form_1099_int:
66
+ Increase::Simulations::ExportCreateParams::Form1099Int,
67
+ request_options: Increase::RequestOptions
68
+ }
38
69
  )
39
70
  end
40
71
  def to_hash
41
72
  end
73
+
74
+ # The type of Export to create.
75
+ module Category
76
+ extend Increase::Internal::Type::Enum
77
+
78
+ TaggedSymbol =
79
+ T.type_alias do
80
+ T.all(Symbol, Increase::Simulations::ExportCreateParams::Category)
81
+ end
82
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
83
+
84
+ # A PDF of an Internal Revenue Service Form 1099-INT.
85
+ FORM_1099_INT =
86
+ T.let(
87
+ :form_1099_int,
88
+ Increase::Simulations::ExportCreateParams::Category::TaggedSymbol
89
+ )
90
+
91
+ sig do
92
+ override.returns(
93
+ T::Array[
94
+ Increase::Simulations::ExportCreateParams::Category::TaggedSymbol
95
+ ]
96
+ )
97
+ end
98
+ def self.values
99
+ end
100
+ end
101
+
102
+ class Form1099Int < Increase::Internal::Type::BaseModel
103
+ OrHash =
104
+ T.type_alias do
105
+ T.any(
106
+ Increase::Simulations::ExportCreateParams::Form1099Int,
107
+ Increase::Internal::AnyHash
108
+ )
109
+ end
110
+
111
+ # The identifier of the Account the tax document is for.
112
+ sig { returns(String) }
113
+ attr_accessor :account_id
114
+
115
+ # Options for the created export. Required if `category` is equal to
116
+ # `form_1099_int`.
117
+ sig { params(account_id: String).returns(T.attached_class) }
118
+ def self.new(
119
+ # The identifier of the Account the tax document is for.
120
+ account_id:
121
+ )
122
+ end
123
+
124
+ sig { override.returns({ account_id: String }) }
125
+ def to_hash
126
+ end
127
+ end
42
128
  end
43
129
  end
44
130
  end
@@ -4,16 +4,25 @@ module Increase
4
4
  module Resources
5
5
  class Simulations
6
6
  class Exports
7
- # Simulates a tax form export being generated.
7
+ # Many exports are created by you via POST /exports or in the Dashboard. Some
8
+ # exports are created automatically by Increase. For example, tax documents are
9
+ # published once a year. In sandbox, you can trigger the arrival of an export that
10
+ # would normally only be created automatically via this simulation.
8
11
  sig do
9
12
  params(
10
- account_id: String,
13
+ category:
14
+ Increase::Simulations::ExportCreateParams::Category::OrSymbol,
15
+ form_1099_int:
16
+ Increase::Simulations::ExportCreateParams::Form1099Int::OrHash,
11
17
  request_options: Increase::RequestOptions::OrHash
12
18
  ).returns(Increase::Export)
13
19
  end
14
20
  def create(
15
- # The identifier of the Account the tax document is for.
16
- account_id:,
21
+ # The type of Export to create.
22
+ category:,
23
+ # Options for the created export. Required if `category` is equal to
24
+ # `form_1099_int`.
25
+ form_1099_int: nil,
17
26
  request_options: {}
18
27
  )
19
28
  end
@@ -2,23 +2,56 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type export_create_params =
5
- { account_id: String } & Increase::Internal::Type::request_parameters
5
+ {
6
+ category: Increase::Models::Simulations::ExportCreateParams::category,
7
+ :form_1099_int => Increase::Simulations::ExportCreateParams::Form1099Int
8
+ }
9
+ & Increase::Internal::Type::request_parameters
6
10
 
7
11
  class ExportCreateParams < Increase::Internal::Type::BaseModel
8
12
  extend Increase::Internal::Type::RequestParameters::Converter
9
13
  include Increase::Internal::Type::RequestParameters
10
14
 
11
- attr_accessor account_id: String
15
+ attr_accessor category: Increase::Models::Simulations::ExportCreateParams::category
16
+
17
+ attr_reader form_1099_int: Increase::Simulations::ExportCreateParams::Form1099Int?
18
+
19
+ def form_1099_int=: (
20
+ Increase::Simulations::ExportCreateParams::Form1099Int
21
+ ) -> Increase::Simulations::ExportCreateParams::Form1099Int
12
22
 
13
23
  def initialize: (
14
- account_id: String,
24
+ category: Increase::Models::Simulations::ExportCreateParams::category,
25
+ ?form_1099_int: Increase::Simulations::ExportCreateParams::Form1099Int,
15
26
  ?request_options: Increase::request_opts
16
27
  ) -> void
17
28
 
18
29
  def to_hash: -> {
19
- account_id: String,
30
+ category: Increase::Models::Simulations::ExportCreateParams::category,
31
+ :form_1099_int => Increase::Simulations::ExportCreateParams::Form1099Int,
20
32
  request_options: Increase::RequestOptions
21
33
  }
34
+
35
+ type category = :form_1099_int
36
+
37
+ module Category
38
+ extend Increase::Internal::Type::Enum
39
+
40
+ # A PDF of an Internal Revenue Service Form 1099-INT.
41
+ FORM_1099_INT: :form_1099_int
42
+
43
+ def self?.values: -> ::Array[Increase::Models::Simulations::ExportCreateParams::category]
44
+ end
45
+
46
+ type form1099_int = { account_id: String }
47
+
48
+ class Form1099Int < Increase::Internal::Type::BaseModel
49
+ attr_accessor account_id: String
50
+
51
+ def initialize: (account_id: String) -> void
52
+
53
+ def to_hash: -> { account_id: String }
54
+ end
22
55
  end
23
56
  end
24
57
  end
@@ -3,7 +3,8 @@ module Increase
3
3
  class Simulations
4
4
  class Exports
5
5
  def create: (
6
- account_id: String,
6
+ category: Increase::Models::Simulations::ExportCreateParams::category,
7
+ ?form_1099_int: Increase::Simulations::ExportCreateParams::Form1099Int,
7
8
  ?request_options: Increase::request_opts
8
9
  ) -> Increase::Export
9
10
 
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.168.0
4
+ version: 1.169.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-12-18 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool