increase 1.167.0 → 1.168.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +0 -4
  5. data/lib/increase/models.rb +0 -8
  6. data/lib/increase/resources/simulations.rb +0 -4
  7. data/lib/increase/version.rb +1 -1
  8. data/lib/increase.rb +0 -7
  9. data/rbi/increase/client.rbi +0 -3
  10. data/rbi/increase/models.rbi +0 -8
  11. data/rbi/increase/resources/simulations.rbi +0 -3
  12. data/sig/increase/client.rbs +0 -2
  13. data/sig/increase/models.rbs +0 -8
  14. data/sig/increase/resources/simulations.rbs +0 -2
  15. metadata +1 -22
  16. data/lib/increase/models/document.rb +0 -160
  17. data/lib/increase/models/document_create_params.rb +0 -93
  18. data/lib/increase/models/document_list_params.rb +0 -152
  19. data/lib/increase/models/document_retrieve_params.rb +0 -14
  20. data/lib/increase/models/simulations/document_create_params.rb +0 -24
  21. data/lib/increase/resources/documents.rb +0 -99
  22. data/lib/increase/resources/simulations/documents.rb +0 -38
  23. data/rbi/increase/models/document.rbi +0 -249
  24. data/rbi/increase/models/document_create_params.rbi +0 -191
  25. data/rbi/increase/models/document_list_params.rbi +0 -296
  26. data/rbi/increase/models/document_retrieve_params.rbi +0 -27
  27. data/rbi/increase/models/simulations/document_create_params.rbi +0 -45
  28. data/rbi/increase/resources/documents.rbi +0 -81
  29. data/rbi/increase/resources/simulations/documents.rbi +0 -28
  30. data/sig/increase/models/document.rbs +0 -122
  31. data/sig/increase/models/document_create_params.rbs +0 -83
  32. data/sig/increase/models/document_list_params.rbs +0 -153
  33. data/sig/increase/models/document_retrieve_params.rbs +0 -15
  34. data/sig/increase/models/simulations/document_create_params.rbs +0 -25
  35. data/sig/increase/resources/documents.rbs +0 -29
  36. data/sig/increase/resources/simulations/documents.rbs +0 -14
@@ -1,152 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Documents#list
6
- class DocumentListParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!attribute category
11
- #
12
- # @return [Increase::Models::DocumentListParams::Category, nil]
13
- optional :category, -> { Increase::DocumentListParams::Category }
14
-
15
- # @!attribute created_at
16
- #
17
- # @return [Increase::Models::DocumentListParams::CreatedAt, nil]
18
- optional :created_at, -> { Increase::DocumentListParams::CreatedAt }
19
-
20
- # @!attribute cursor
21
- # Return the page of entries after this one.
22
- #
23
- # @return [String, nil]
24
- optional :cursor, String
25
-
26
- # @!attribute entity_id
27
- # Filter Documents to ones belonging to the specified Entity.
28
- #
29
- # @return [String, nil]
30
- optional :entity_id, String
31
-
32
- # @!attribute idempotency_key
33
- # Filter records to the one with the specified `idempotency_key` you chose for
34
- # that object. This value is unique across Increase and is used to ensure that a
35
- # request is only processed once. Learn more about
36
- # [idempotency](https://increase.com/documentation/idempotency-keys).
37
- #
38
- # @return [String, nil]
39
- optional :idempotency_key, String
40
-
41
- # @!attribute limit
42
- # Limit the size of the list that is returned. The default (and maximum) is 100
43
- # objects.
44
- #
45
- # @return [Integer, nil]
46
- optional :limit, Integer
47
-
48
- # @!method initialize(category: nil, created_at: nil, cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {})
49
- # Some parameter documentations has been truncated, see
50
- # {Increase::Models::DocumentListParams} for more details.
51
- #
52
- # @param category [Increase::Models::DocumentListParams::Category]
53
- #
54
- # @param created_at [Increase::Models::DocumentListParams::CreatedAt]
55
- #
56
- # @param cursor [String] Return the page of entries after this one.
57
- #
58
- # @param entity_id [String] Filter Documents to ones belonging to the specified Entity.
59
- #
60
- # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
61
- #
62
- # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
63
- #
64
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
65
-
66
- class Category < Increase::Internal::Type::BaseModel
67
- # @!attribute in_
68
- # Filter Documents for those with the specified category or categories. For GET
69
- # requests, this should be encoded as a comma-delimited string, such as
70
- # `?in=one,two,three`.
71
- #
72
- # @return [Array<Symbol, Increase::Models::DocumentListParams::Category::In>, nil]
73
- optional :in_,
74
- -> { Increase::Internal::Type::ArrayOf[enum: Increase::DocumentListParams::Category::In] },
75
- api_name: :in
76
-
77
- # @!method initialize(in_: nil)
78
- # Some parameter documentations has been truncated, see
79
- # {Increase::Models::DocumentListParams::Category} for more details.
80
- #
81
- # @param in_ [Array<Symbol, Increase::Models::DocumentListParams::Category::In>] Filter Documents for those with the specified category or categories. For GET re
82
-
83
- module In
84
- extend Increase::Internal::Type::Enum
85
-
86
- # Internal Revenue Service Form 1099-INT.
87
- FORM_1099_INT = :form_1099_int
88
-
89
- # Internal Revenue Service Form 1099-MISC.
90
- FORM_1099_MISC = :form_1099_misc
91
-
92
- # A document submitted in response to a proof of authorization request for an ACH transfer.
93
- PROOF_OF_AUTHORIZATION = :proof_of_authorization
94
-
95
- # Company information, such a policies or procedures, typically submitted during our due diligence process.
96
- COMPANY_INFORMATION = :company_information
97
-
98
- # An account verification letter.
99
- ACCOUNT_VERIFICATION_LETTER = :account_verification_letter
100
-
101
- # Funding instructions.
102
- FUNDING_INSTRUCTIONS = :funding_instructions
103
-
104
- # @!method self.values
105
- # @return [Array<Symbol>]
106
- end
107
- end
108
-
109
- class CreatedAt < Increase::Internal::Type::BaseModel
110
- # @!attribute after
111
- # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
112
- # timestamp.
113
- #
114
- # @return [Time, nil]
115
- optional :after, Time
116
-
117
- # @!attribute before
118
- # Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
119
- # timestamp.
120
- #
121
- # @return [Time, nil]
122
- optional :before, Time
123
-
124
- # @!attribute on_or_after
125
- # Return results on or after this
126
- # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
127
- #
128
- # @return [Time, nil]
129
- optional :on_or_after, Time
130
-
131
- # @!attribute on_or_before
132
- # Return results on or before this
133
- # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
134
- #
135
- # @return [Time, nil]
136
- optional :on_or_before, Time
137
-
138
- # @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
139
- # Some parameter documentations has been truncated, see
140
- # {Increase::Models::DocumentListParams::CreatedAt} for more details.
141
- #
142
- # @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
143
- #
144
- # @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
145
- #
146
- # @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
147
- #
148
- # @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
149
- end
150
- end
151
- end
152
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Documents#retrieve
6
- class DocumentRetrieveParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!method initialize(request_options: {})
11
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
12
- end
13
- end
14
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- module Simulations
6
- # @see Increase::Resources::Simulations::Documents#create
7
- class DocumentCreateParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- # @!attribute account_id
12
- # The identifier of the Account the tax document is for.
13
- #
14
- # @return [String]
15
- required :account_id, String
16
-
17
- # @!method initialize(account_id:, request_options: {})
18
- # @param account_id [String] The identifier of the Account the tax document is for.
19
- #
20
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
21
- end
22
- end
23
- end
24
- end
@@ -1,99 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Resources
5
- class Documents
6
- # Some parameter documentations has been truncated, see
7
- # {Increase::Models::DocumentCreateParams} for more details.
8
- #
9
- # Create a Document
10
- #
11
- # @overload create(category:, account_verification_letter: nil, funding_instructions: nil, request_options: {})
12
- #
13
- # @param category [Symbol, Increase::Models::DocumentCreateParams::Category] The type of document to create.
14
- #
15
- # @param account_verification_letter [Increase::Models::DocumentCreateParams::AccountVerificationLetter] An account verification letter. Required if and only if `category` is `account_v
16
- #
17
- # @param funding_instructions [Increase::Models::DocumentCreateParams::FundingInstructions] Funding instructions. Required if and only if `category` is `funding_instruction
18
- #
19
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
20
- #
21
- # @return [Increase::Models::Document]
22
- #
23
- # @see Increase::Models::DocumentCreateParams
24
- def create(params)
25
- parsed, options = Increase::DocumentCreateParams.dump_request(params)
26
- @client.request(
27
- method: :post,
28
- path: "documents",
29
- body: parsed,
30
- model: Increase::Document,
31
- options: options
32
- )
33
- end
34
-
35
- # Retrieve a Document
36
- #
37
- # @overload retrieve(document_id, request_options: {})
38
- #
39
- # @param document_id [String] The identifier of the Document to retrieve.
40
- #
41
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
42
- #
43
- # @return [Increase::Models::Document]
44
- #
45
- # @see Increase::Models::DocumentRetrieveParams
46
- def retrieve(document_id, params = {})
47
- @client.request(
48
- method: :get,
49
- path: ["documents/%1$s", document_id],
50
- model: Increase::Document,
51
- options: params[:request_options]
52
- )
53
- end
54
-
55
- # Some parameter documentations has been truncated, see
56
- # {Increase::Models::DocumentListParams} for more details.
57
- #
58
- # List Documents
59
- #
60
- # @overload list(category: nil, created_at: nil, cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {})
61
- #
62
- # @param category [Increase::Models::DocumentListParams::Category]
63
- #
64
- # @param created_at [Increase::Models::DocumentListParams::CreatedAt]
65
- #
66
- # @param cursor [String] Return the page of entries after this one.
67
- #
68
- # @param entity_id [String] Filter Documents to ones belonging to the specified Entity.
69
- #
70
- # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
71
- #
72
- # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
73
- #
74
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
75
- #
76
- # @return [Increase::Internal::Page<Increase::Models::Document>]
77
- #
78
- # @see Increase::Models::DocumentListParams
79
- def list(params = {})
80
- parsed, options = Increase::DocumentListParams.dump_request(params)
81
- @client.request(
82
- method: :get,
83
- path: "documents",
84
- query: parsed,
85
- page: Increase::Internal::Page,
86
- model: Increase::Document,
87
- options: options
88
- )
89
- end
90
-
91
- # @api private
92
- #
93
- # @param client [Increase::Client]
94
- def initialize(client:)
95
- @client = client
96
- end
97
- end
98
- end
99
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Resources
5
- class Simulations
6
- class Documents
7
- # Simulates an tax document being created for an account.
8
- #
9
- # @overload create(account_id:, request_options: {})
10
- #
11
- # @param account_id [String] The identifier of the Account the tax document is for.
12
- #
13
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
14
- #
15
- # @return [Increase::Models::Document]
16
- #
17
- # @see Increase::Models::Simulations::DocumentCreateParams
18
- def create(params)
19
- parsed, options = Increase::Simulations::DocumentCreateParams.dump_request(params)
20
- @client.request(
21
- method: :post,
22
- path: "simulations/documents",
23
- body: parsed,
24
- model: Increase::Document,
25
- options: options
26
- )
27
- end
28
-
29
- # @api private
30
- #
31
- # @param client [Increase::Client]
32
- def initialize(client:)
33
- @client = client
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,249 +0,0 @@
1
- # typed: strong
2
-
3
- module Increase
4
- module Models
5
- class Document < Increase::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias { T.any(Increase::Document, Increase::Internal::AnyHash) }
8
-
9
- # The Document identifier.
10
- sig { returns(String) }
11
- attr_accessor :id
12
-
13
- # Properties of an account verification letter document.
14
- sig { returns(T.nilable(Increase::Document::AccountVerificationLetter)) }
15
- attr_reader :account_verification_letter
16
-
17
- sig do
18
- params(
19
- account_verification_letter:
20
- T.nilable(Increase::Document::AccountVerificationLetter::OrHash)
21
- ).void
22
- end
23
- attr_writer :account_verification_letter
24
-
25
- # The type of document.
26
- sig { returns(Increase::Document::Category::TaggedSymbol) }
27
- attr_accessor :category
28
-
29
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
30
- # Document was created.
31
- sig { returns(Time) }
32
- attr_accessor :created_at
33
-
34
- # The identifier of the Entity the document was generated for.
35
- sig { returns(T.nilable(String)) }
36
- attr_accessor :entity_id
37
-
38
- # The identifier of the File containing the Document's contents.
39
- sig { returns(String) }
40
- attr_accessor :file_id
41
-
42
- # Properties of a funding instructions document.
43
- sig { returns(T.nilable(Increase::Document::FundingInstructions)) }
44
- attr_reader :funding_instructions
45
-
46
- sig do
47
- params(
48
- funding_instructions:
49
- T.nilable(Increase::Document::FundingInstructions::OrHash)
50
- ).void
51
- end
52
- attr_writer :funding_instructions
53
-
54
- # The idempotency key you chose for this object. This value is unique across
55
- # Increase and is used to ensure that a request is only processed once. Learn more
56
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
57
- sig { returns(T.nilable(String)) }
58
- attr_accessor :idempotency_key
59
-
60
- # A constant representing the object's type. For this resource it will always be
61
- # `document`.
62
- sig { returns(Increase::Document::Type::TaggedSymbol) }
63
- attr_accessor :type
64
-
65
- # Increase generates certain documents / forms automatically for your application;
66
- # they can be listed here.
67
- sig do
68
- params(
69
- id: String,
70
- account_verification_letter:
71
- T.nilable(Increase::Document::AccountVerificationLetter::OrHash),
72
- category: Increase::Document::Category::OrSymbol,
73
- created_at: Time,
74
- entity_id: T.nilable(String),
75
- file_id: String,
76
- funding_instructions:
77
- T.nilable(Increase::Document::FundingInstructions::OrHash),
78
- idempotency_key: T.nilable(String),
79
- type: Increase::Document::Type::OrSymbol
80
- ).returns(T.attached_class)
81
- end
82
- def self.new(
83
- # The Document identifier.
84
- id:,
85
- # Properties of an account verification letter document.
86
- account_verification_letter:,
87
- # The type of document.
88
- category:,
89
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
90
- # Document was created.
91
- created_at:,
92
- # The identifier of the Entity the document was generated for.
93
- entity_id:,
94
- # The identifier of the File containing the Document's contents.
95
- file_id:,
96
- # Properties of a funding instructions document.
97
- funding_instructions:,
98
- # The idempotency key you chose for this object. This value is unique across
99
- # Increase and is used to ensure that a request is only processed once. Learn more
100
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
101
- idempotency_key:,
102
- # A constant representing the object's type. For this resource it will always be
103
- # `document`.
104
- type:
105
- )
106
- end
107
-
108
- sig do
109
- override.returns(
110
- {
111
- id: String,
112
- account_verification_letter:
113
- T.nilable(Increase::Document::AccountVerificationLetter),
114
- category: Increase::Document::Category::TaggedSymbol,
115
- created_at: Time,
116
- entity_id: T.nilable(String),
117
- file_id: String,
118
- funding_instructions:
119
- T.nilable(Increase::Document::FundingInstructions),
120
- idempotency_key: T.nilable(String),
121
- type: Increase::Document::Type::TaggedSymbol
122
- }
123
- )
124
- end
125
- def to_hash
126
- end
127
-
128
- class AccountVerificationLetter < Increase::Internal::Type::BaseModel
129
- OrHash =
130
- T.type_alias do
131
- T.any(
132
- Increase::Document::AccountVerificationLetter,
133
- Increase::Internal::AnyHash
134
- )
135
- end
136
-
137
- # The identifier of the Account Number the document was generated for.
138
- sig { returns(String) }
139
- attr_accessor :account_number_id
140
-
141
- # Properties of an account verification letter document.
142
- sig { params(account_number_id: String).returns(T.attached_class) }
143
- def self.new(
144
- # The identifier of the Account Number the document was generated for.
145
- account_number_id:
146
- )
147
- end
148
-
149
- sig { override.returns({ account_number_id: String }) }
150
- def to_hash
151
- end
152
- end
153
-
154
- # The type of document.
155
- module Category
156
- extend Increase::Internal::Type::Enum
157
-
158
- TaggedSymbol =
159
- T.type_alias { T.all(Symbol, Increase::Document::Category) }
160
- OrSymbol = T.type_alias { T.any(Symbol, String) }
161
-
162
- # Internal Revenue Service Form 1099-INT.
163
- FORM_1099_INT =
164
- T.let(:form_1099_int, Increase::Document::Category::TaggedSymbol)
165
-
166
- # Internal Revenue Service Form 1099-MISC.
167
- FORM_1099_MISC =
168
- T.let(:form_1099_misc, Increase::Document::Category::TaggedSymbol)
169
-
170
- # A document submitted in response to a proof of authorization request for an ACH transfer.
171
- PROOF_OF_AUTHORIZATION =
172
- T.let(
173
- :proof_of_authorization,
174
- Increase::Document::Category::TaggedSymbol
175
- )
176
-
177
- # Company information, such a policies or procedures, typically submitted during our due diligence process.
178
- COMPANY_INFORMATION =
179
- T.let(
180
- :company_information,
181
- Increase::Document::Category::TaggedSymbol
182
- )
183
-
184
- # An account verification letter.
185
- ACCOUNT_VERIFICATION_LETTER =
186
- T.let(
187
- :account_verification_letter,
188
- Increase::Document::Category::TaggedSymbol
189
- )
190
-
191
- # Funding instructions.
192
- FUNDING_INSTRUCTIONS =
193
- T.let(
194
- :funding_instructions,
195
- Increase::Document::Category::TaggedSymbol
196
- )
197
-
198
- sig do
199
- override.returns(T::Array[Increase::Document::Category::TaggedSymbol])
200
- end
201
- def self.values
202
- end
203
- end
204
-
205
- class FundingInstructions < Increase::Internal::Type::BaseModel
206
- OrHash =
207
- T.type_alias do
208
- T.any(
209
- Increase::Document::FundingInstructions,
210
- Increase::Internal::AnyHash
211
- )
212
- end
213
-
214
- # The identifier of the Account Number the document was generated for.
215
- sig { returns(String) }
216
- attr_accessor :account_number_id
217
-
218
- # Properties of a funding instructions document.
219
- sig { params(account_number_id: String).returns(T.attached_class) }
220
- def self.new(
221
- # The identifier of the Account Number the document was generated for.
222
- account_number_id:
223
- )
224
- end
225
-
226
- sig { override.returns({ account_number_id: String }) }
227
- def to_hash
228
- end
229
- end
230
-
231
- # A constant representing the object's type. For this resource it will always be
232
- # `document`.
233
- module Type
234
- extend Increase::Internal::Type::Enum
235
-
236
- TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Document::Type) }
237
- OrSymbol = T.type_alias { T.any(Symbol, String) }
238
-
239
- DOCUMENT = T.let(:document, Increase::Document::Type::TaggedSymbol)
240
-
241
- sig do
242
- override.returns(T::Array[Increase::Document::Type::TaggedSymbol])
243
- end
244
- def self.values
245
- end
246
- end
247
- end
248
- end
249
- end