increase 1.317.0 → 1.319.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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/simulations/{entity_validation_params.rb → entity_update_validation_params.rb} +14 -35
- data/lib/increase/resources/routing_numbers.rb +3 -2
- data/lib/increase/resources/simulations/entities.rb +13 -11
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -1
- data/rbi/increase/models/simulations/{entity_validation_params.rbi → entity_update_validation_params.rbi} +21 -76
- data/rbi/increase/resources/routing_numbers.rbi +3 -2
- data/rbi/increase/resources/simulations/entities.rbi +8 -10
- data/sig/increase/models/simulations/{entity_validation_params.rbs → entity_update_validation_params.rbs} +11 -33
- data/sig/increase/resources/simulations/entities.rbs +2 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 326d68761b5be42888931ea2e369478c2c129b05e1d3bfeb929583a7f5011afb
|
|
4
|
+
data.tar.gz: aae841f048be774fdbc28713a7945abf55867a184a16286934cf8b0a5481c4b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61c1bf46d128fd078ac55160e456a66c99c43bf60431f6e2a58a8ee8ba9171d8e894e3348c2eccbf6939a55212ea7c391f0889a4d637b702c4db23265be0d77d
|
|
7
|
+
data.tar.gz: 229e0987da2dc6cab3c48170632a85942d0f3be72a96a41fd9d59edb92505194f1cf23aabf62b3a06844018df10bb6a031f61d34149d5c9d39a9dc2b9f70167c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.319.0 (2026-05-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.318.0...v1.319.0](https://github.com/Increase/increase-ruby/compare/v1.318.0...v1.319.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([6caa909](https://github.com/Increase/increase-ruby/commit/6caa90905caa7a42a2497fe069ac243c5f7e4540))
|
|
10
|
+
|
|
11
|
+
## 1.318.0 (2026-05-01)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.317.0...v1.318.0](https://github.com/Increase/increase-ruby/compare/v1.317.0...v1.318.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([4f824e2](https://github.com/Increase/increase-ruby/commit/4f824e26437497d7de233c79c612297a64dfc72f))
|
|
18
|
+
|
|
3
19
|
## 1.317.0 (2026-05-01)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.316.0...v1.317.0](https://github.com/Increase/increase-ruby/compare/v1.316.0...v1.317.0)
|
data/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Increase
|
|
4
4
|
module Models
|
|
5
5
|
module Simulations
|
|
6
|
-
# @see Increase::Resources::Simulations::Entities#
|
|
7
|
-
class
|
|
6
|
+
# @see Increase::Resources::Simulations::Entities#update_validation
|
|
7
|
+
class EntityUpdateValidationParams < Increase::Internal::Type::BaseModel
|
|
8
8
|
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Increase::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -15,24 +15,20 @@ module Increase
|
|
|
15
15
|
required :entity_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute issues
|
|
18
|
-
# The validation issues to attach.
|
|
18
|
+
# The validation issues to attach. If no issues are provided, the validation
|
|
19
|
+
# status will be set to `valid`.
|
|
19
20
|
#
|
|
20
|
-
# @return [Array<Increase::Models::Simulations::
|
|
21
|
+
# @return [Array<Increase::Models::Simulations::EntityUpdateValidationParams::Issue>]
|
|
21
22
|
required :issues,
|
|
22
|
-
-> { Increase::Internal::Type::ArrayOf[Increase::Simulations::
|
|
23
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::Simulations::EntityUpdateValidationParams::Issue] }
|
|
23
24
|
|
|
24
|
-
# @!
|
|
25
|
-
#
|
|
25
|
+
# @!method initialize(entity_id:, issues:, request_options: {})
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Increase::Models::Simulations::EntityUpdateValidationParams} for more details.
|
|
26
28
|
#
|
|
27
|
-
# @return [Symbol, Increase::Models::Simulations::EntityValidationParams::Status]
|
|
28
|
-
required :status, enum: -> { Increase::Simulations::EntityValidationParams::Status }
|
|
29
|
-
|
|
30
|
-
# @!method initialize(entity_id:, issues:, status:, request_options: {})
|
|
31
29
|
# @param entity_id [String] The identifier of the Entity whose validation status to update.
|
|
32
30
|
#
|
|
33
|
-
# @param issues [Array<Increase::Models::Simulations::
|
|
34
|
-
#
|
|
35
|
-
# @param status [Symbol, Increase::Models::Simulations::EntityValidationParams::Status] The validation status to set on the Entity.
|
|
31
|
+
# @param issues [Array<Increase::Models::Simulations::EntityUpdateValidationParams::Issue>] The validation issues to attach. If no issues are provided, the validation statu
|
|
36
32
|
#
|
|
37
33
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
38
34
|
|
|
@@ -40,15 +36,15 @@ module Increase
|
|
|
40
36
|
# @!attribute category
|
|
41
37
|
# The type of issue.
|
|
42
38
|
#
|
|
43
|
-
# @return [Symbol, Increase::Models::Simulations::
|
|
44
|
-
required :category, enum: -> { Increase::Simulations::
|
|
39
|
+
# @return [Symbol, Increase::Models::Simulations::EntityUpdateValidationParams::Issue::Category]
|
|
40
|
+
required :category, enum: -> { Increase::Simulations::EntityUpdateValidationParams::Issue::Category }
|
|
45
41
|
|
|
46
42
|
# @!method initialize(category:)
|
|
47
|
-
# @param category [Symbol, Increase::Models::Simulations::
|
|
43
|
+
# @param category [Symbol, Increase::Models::Simulations::EntityUpdateValidationParams::Issue::Category] The type of issue.
|
|
48
44
|
|
|
49
45
|
# The type of issue.
|
|
50
46
|
#
|
|
51
|
-
# @see Increase::Models::Simulations::
|
|
47
|
+
# @see Increase::Models::Simulations::EntityUpdateValidationParams::Issue#category
|
|
52
48
|
module Category
|
|
53
49
|
extend Increase::Internal::Type::Enum
|
|
54
50
|
|
|
@@ -68,23 +64,6 @@ module Increase
|
|
|
68
64
|
# @return [Array<Symbol>]
|
|
69
65
|
end
|
|
70
66
|
end
|
|
71
|
-
|
|
72
|
-
# The validation status to set on the Entity.
|
|
73
|
-
module Status
|
|
74
|
-
extend Increase::Internal::Type::Enum
|
|
75
|
-
|
|
76
|
-
# The submitted data is valid.
|
|
77
|
-
VALID = :valid
|
|
78
|
-
|
|
79
|
-
# Additional information is required to validate the data.
|
|
80
|
-
INVALID = :invalid
|
|
81
|
-
|
|
82
|
-
# The submitted data is being validated.
|
|
83
|
-
PENDING = :pending
|
|
84
|
-
|
|
85
|
-
# @!method self.values
|
|
86
|
-
# @return [Array<Symbol>]
|
|
87
|
-
end
|
|
88
67
|
end
|
|
89
68
|
end
|
|
90
69
|
end
|
|
@@ -8,8 +8,9 @@ module Increase
|
|
|
8
8
|
#
|
|
9
9
|
# You can use this API to confirm if a routing number is valid, such as when a
|
|
10
10
|
# user is providing you with bank account details. Since routing numbers uniquely
|
|
11
|
-
# identify a bank, this will always return 0 or 1 entry. In Sandbox,
|
|
12
|
-
#
|
|
11
|
+
# identify a bank, this will always return 0 or 1 entry. In Sandbox, only a few
|
|
12
|
+
# [routing numbers are valid](/documentation/sandbox-routing-numbers#sandbox-routing-numbers).
|
|
13
|
+
# `110000000` is an example of a Sandbox routing number.
|
|
13
14
|
#
|
|
14
15
|
# @overload list(routing_number:, cursor: nil, limit: nil, request_options: {})
|
|
15
16
|
#
|
|
@@ -4,30 +4,32 @@ module Increase
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Simulations
|
|
6
6
|
class Entities
|
|
7
|
-
#
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Increase::Models::Simulations::EntityUpdateValidationParams} for more details.
|
|
9
|
+
#
|
|
10
|
+
# Simulate updates to an
|
|
8
11
|
# [Entity's validation](/documentation/api/entities#entity-object.validation). In
|
|
9
12
|
# production, Know Your Customer validations
|
|
10
|
-
# [run automatically](/documentation/entity-validation#entity-validation)
|
|
11
|
-
# developing,
|
|
13
|
+
# [run automatically](/documentation/entity-validation#entity-validation) for
|
|
14
|
+
# eligible programs. While developing, use this API to simulate issues with
|
|
15
|
+
# information submissions.
|
|
12
16
|
#
|
|
13
|
-
# @overload
|
|
17
|
+
# @overload update_validation(entity_id, issues:, request_options: {})
|
|
14
18
|
#
|
|
15
19
|
# @param entity_id [String] The identifier of the Entity whose validation status to update.
|
|
16
20
|
#
|
|
17
|
-
# @param issues [Array<Increase::Models::Simulations::
|
|
18
|
-
#
|
|
19
|
-
# @param status [Symbol, Increase::Models::Simulations::EntityValidationParams::Status] The validation status to set on the Entity.
|
|
21
|
+
# @param issues [Array<Increase::Models::Simulations::EntityUpdateValidationParams::Issue>] The validation issues to attach. If no issues are provided, the validation statu
|
|
20
22
|
#
|
|
21
23
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
24
|
#
|
|
23
25
|
# @return [Increase::Models::Entity]
|
|
24
26
|
#
|
|
25
|
-
# @see Increase::Models::Simulations::
|
|
26
|
-
def
|
|
27
|
-
parsed, options = Increase::Simulations::
|
|
27
|
+
# @see Increase::Models::Simulations::EntityUpdateValidationParams
|
|
28
|
+
def update_validation(entity_id, params)
|
|
29
|
+
parsed, options = Increase::Simulations::EntityUpdateValidationParams.dump_request(params)
|
|
28
30
|
@client.request(
|
|
29
31
|
method: :post,
|
|
30
|
-
path: ["simulations/entities/%1$s/
|
|
32
|
+
path: ["simulations/entities/%1$s/update_validation", entity_id],
|
|
31
33
|
body: parsed,
|
|
32
34
|
model: Increase::Entity,
|
|
33
35
|
options: options
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -314,7 +314,7 @@ require_relative "increase/models/simulations/check_transfer_mail_params"
|
|
|
314
314
|
require_relative "increase/models/simulations/digital_wallet_token_request_create_params"
|
|
315
315
|
require_relative "increase/models/simulations/digital_wallet_token_request_create_response"
|
|
316
316
|
require_relative "increase/models/simulations/entity_onboarding_session_submit_params"
|
|
317
|
-
require_relative "increase/models/simulations/
|
|
317
|
+
require_relative "increase/models/simulations/entity_update_validation_params"
|
|
318
318
|
require_relative "increase/models/simulations/export_create_params"
|
|
319
319
|
require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
|
|
320
320
|
require_relative "increase/models/simulations/inbound_check_deposit_adjustment_params"
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Increase
|
|
4
4
|
module Models
|
|
5
5
|
module Simulations
|
|
6
|
-
class
|
|
6
|
+
class EntityUpdateValidationParams < Increase::Internal::Type::BaseModel
|
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Increase::Simulations::
|
|
13
|
+
Increase::Simulations::EntityUpdateValidationParams,
|
|
14
14
|
Increase::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
|
@@ -19,41 +19,31 @@ module Increase
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :entity_id
|
|
21
21
|
|
|
22
|
-
# The validation issues to attach.
|
|
22
|
+
# The validation issues to attach. If no issues are provided, the validation
|
|
23
|
+
# status will be set to `valid`.
|
|
23
24
|
sig do
|
|
24
25
|
returns(
|
|
25
|
-
T::Array[Increase::Simulations::
|
|
26
|
+
T::Array[Increase::Simulations::EntityUpdateValidationParams::Issue]
|
|
26
27
|
)
|
|
27
28
|
end
|
|
28
29
|
attr_accessor :issues
|
|
29
30
|
|
|
30
|
-
# The validation status to set on the Entity.
|
|
31
|
-
sig do
|
|
32
|
-
returns(
|
|
33
|
-
Increase::Simulations::EntityValidationParams::Status::OrSymbol
|
|
34
|
-
)
|
|
35
|
-
end
|
|
36
|
-
attr_accessor :status
|
|
37
|
-
|
|
38
31
|
sig do
|
|
39
32
|
params(
|
|
40
33
|
entity_id: String,
|
|
41
34
|
issues:
|
|
42
35
|
T::Array[
|
|
43
|
-
Increase::Simulations::
|
|
36
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::OrHash
|
|
44
37
|
],
|
|
45
|
-
status:
|
|
46
|
-
Increase::Simulations::EntityValidationParams::Status::OrSymbol,
|
|
47
38
|
request_options: Increase::RequestOptions::OrHash
|
|
48
39
|
).returns(T.attached_class)
|
|
49
40
|
end
|
|
50
41
|
def self.new(
|
|
51
42
|
# The identifier of the Entity whose validation status to update.
|
|
52
43
|
entity_id:,
|
|
53
|
-
# The validation issues to attach.
|
|
44
|
+
# The validation issues to attach. If no issues are provided, the validation
|
|
45
|
+
# status will be set to `valid`.
|
|
54
46
|
issues:,
|
|
55
|
-
# The validation status to set on the Entity.
|
|
56
|
-
status:,
|
|
57
47
|
request_options: {}
|
|
58
48
|
)
|
|
59
49
|
end
|
|
@@ -63,9 +53,9 @@ module Increase
|
|
|
63
53
|
{
|
|
64
54
|
entity_id: String,
|
|
65
55
|
issues:
|
|
66
|
-
T::Array[
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
T::Array[
|
|
57
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue
|
|
58
|
+
],
|
|
69
59
|
request_options: Increase::RequestOptions
|
|
70
60
|
}
|
|
71
61
|
)
|
|
@@ -77,7 +67,7 @@ module Increase
|
|
|
77
67
|
OrHash =
|
|
78
68
|
T.type_alias do
|
|
79
69
|
T.any(
|
|
80
|
-
Increase::Simulations::
|
|
70
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue,
|
|
81
71
|
Increase::Internal::AnyHash
|
|
82
72
|
)
|
|
83
73
|
end
|
|
@@ -85,7 +75,7 @@ module Increase
|
|
|
85
75
|
# The type of issue.
|
|
86
76
|
sig do
|
|
87
77
|
returns(
|
|
88
|
-
Increase::Simulations::
|
|
78
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::OrSymbol
|
|
89
79
|
)
|
|
90
80
|
end
|
|
91
81
|
attr_accessor :category
|
|
@@ -93,7 +83,7 @@ module Increase
|
|
|
93
83
|
sig do
|
|
94
84
|
params(
|
|
95
85
|
category:
|
|
96
|
-
Increase::Simulations::
|
|
86
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::OrSymbol
|
|
97
87
|
).returns(T.attached_class)
|
|
98
88
|
end
|
|
99
89
|
def self.new(
|
|
@@ -106,7 +96,7 @@ module Increase
|
|
|
106
96
|
override.returns(
|
|
107
97
|
{
|
|
108
98
|
category:
|
|
109
|
-
Increase::Simulations::
|
|
99
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::OrSymbol
|
|
110
100
|
}
|
|
111
101
|
)
|
|
112
102
|
end
|
|
@@ -121,7 +111,7 @@ module Increase
|
|
|
121
111
|
T.type_alias do
|
|
122
112
|
T.all(
|
|
123
113
|
Symbol,
|
|
124
|
-
Increase::Simulations::
|
|
114
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category
|
|
125
115
|
)
|
|
126
116
|
end
|
|
127
117
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -130,34 +120,34 @@ module Increase
|
|
|
130
120
|
ENTITY_TAX_IDENTIFIER =
|
|
131
121
|
T.let(
|
|
132
122
|
:entity_tax_identifier,
|
|
133
|
-
Increase::Simulations::
|
|
123
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::TaggedSymbol
|
|
134
124
|
)
|
|
135
125
|
|
|
136
126
|
# The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.address).
|
|
137
127
|
ENTITY_ADDRESS =
|
|
138
128
|
T.let(
|
|
139
129
|
:entity_address,
|
|
140
|
-
Increase::Simulations::
|
|
130
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::TaggedSymbol
|
|
141
131
|
)
|
|
142
132
|
|
|
143
133
|
# A beneficial owner's identity could not be verified. Update the identification with the [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
|
|
144
134
|
BENEFICIAL_OWNER_IDENTITY =
|
|
145
135
|
T.let(
|
|
146
136
|
:beneficial_owner_identity,
|
|
147
|
-
Increase::Simulations::
|
|
137
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::TaggedSymbol
|
|
148
138
|
)
|
|
149
139
|
|
|
150
140
|
# A beneficial owner's address could not be validated. Update the address with the [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
|
|
151
141
|
BENEFICIAL_OWNER_ADDRESS =
|
|
152
142
|
T.let(
|
|
153
143
|
:beneficial_owner_address,
|
|
154
|
-
Increase::Simulations::
|
|
144
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::TaggedSymbol
|
|
155
145
|
)
|
|
156
146
|
|
|
157
147
|
sig do
|
|
158
148
|
override.returns(
|
|
159
149
|
T::Array[
|
|
160
|
-
Increase::Simulations::
|
|
150
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::Category::TaggedSymbol
|
|
161
151
|
]
|
|
162
152
|
)
|
|
163
153
|
end
|
|
@@ -165,51 +155,6 @@ module Increase
|
|
|
165
155
|
end
|
|
166
156
|
end
|
|
167
157
|
end
|
|
168
|
-
|
|
169
|
-
# The validation status to set on the Entity.
|
|
170
|
-
module Status
|
|
171
|
-
extend Increase::Internal::Type::Enum
|
|
172
|
-
|
|
173
|
-
TaggedSymbol =
|
|
174
|
-
T.type_alias do
|
|
175
|
-
T.all(
|
|
176
|
-
Symbol,
|
|
177
|
-
Increase::Simulations::EntityValidationParams::Status
|
|
178
|
-
)
|
|
179
|
-
end
|
|
180
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
181
|
-
|
|
182
|
-
# The submitted data is valid.
|
|
183
|
-
VALID =
|
|
184
|
-
T.let(
|
|
185
|
-
:valid,
|
|
186
|
-
Increase::Simulations::EntityValidationParams::Status::TaggedSymbol
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
# Additional information is required to validate the data.
|
|
190
|
-
INVALID =
|
|
191
|
-
T.let(
|
|
192
|
-
:invalid,
|
|
193
|
-
Increase::Simulations::EntityValidationParams::Status::TaggedSymbol
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
# The submitted data is being validated.
|
|
197
|
-
PENDING =
|
|
198
|
-
T.let(
|
|
199
|
-
:pending,
|
|
200
|
-
Increase::Simulations::EntityValidationParams::Status::TaggedSymbol
|
|
201
|
-
)
|
|
202
|
-
|
|
203
|
-
sig do
|
|
204
|
-
override.returns(
|
|
205
|
-
T::Array[
|
|
206
|
-
Increase::Simulations::EntityValidationParams::Status::TaggedSymbol
|
|
207
|
-
]
|
|
208
|
-
)
|
|
209
|
-
end
|
|
210
|
-
def self.values
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
158
|
end
|
|
214
159
|
end
|
|
215
160
|
end
|
|
@@ -5,8 +5,9 @@ module Increase
|
|
|
5
5
|
class RoutingNumbers
|
|
6
6
|
# You can use this API to confirm if a routing number is valid, such as when a
|
|
7
7
|
# user is providing you with bank account details. Since routing numbers uniquely
|
|
8
|
-
# identify a bank, this will always return 0 or 1 entry. In Sandbox,
|
|
9
|
-
#
|
|
8
|
+
# identify a bank, this will always return 0 or 1 entry. In Sandbox, only a few
|
|
9
|
+
# [routing numbers are valid](/documentation/sandbox-routing-numbers#sandbox-routing-numbers).
|
|
10
|
+
# `110000000` is an example of a Sandbox routing number.
|
|
10
11
|
sig do
|
|
11
12
|
params(
|
|
12
13
|
routing_number: String,
|
|
@@ -4,30 +4,28 @@ module Increase
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Simulations
|
|
6
6
|
class Entities
|
|
7
|
-
#
|
|
7
|
+
# Simulate updates to an
|
|
8
8
|
# [Entity's validation](/documentation/api/entities#entity-object.validation). In
|
|
9
9
|
# production, Know Your Customer validations
|
|
10
|
-
# [run automatically](/documentation/entity-validation#entity-validation)
|
|
11
|
-
# developing,
|
|
10
|
+
# [run automatically](/documentation/entity-validation#entity-validation) for
|
|
11
|
+
# eligible programs. While developing, use this API to simulate issues with
|
|
12
|
+
# information submissions.
|
|
12
13
|
sig do
|
|
13
14
|
params(
|
|
14
15
|
entity_id: String,
|
|
15
16
|
issues:
|
|
16
17
|
T::Array[
|
|
17
|
-
Increase::Simulations::
|
|
18
|
+
Increase::Simulations::EntityUpdateValidationParams::Issue::OrHash
|
|
18
19
|
],
|
|
19
|
-
status:
|
|
20
|
-
Increase::Simulations::EntityValidationParams::Status::OrSymbol,
|
|
21
20
|
request_options: Increase::RequestOptions::OrHash
|
|
22
21
|
).returns(Increase::Entity)
|
|
23
22
|
end
|
|
24
|
-
def
|
|
23
|
+
def update_validation(
|
|
25
24
|
# The identifier of the Entity whose validation status to update.
|
|
26
25
|
entity_id,
|
|
27
|
-
# The validation issues to attach.
|
|
26
|
+
# The validation issues to attach. If no issues are provided, the validation
|
|
27
|
+
# status will be set to `valid`.
|
|
28
28
|
issues:,
|
|
29
|
-
# The validation status to set on the Entity.
|
|
30
|
-
status:,
|
|
31
29
|
request_options: {}
|
|
32
30
|
)
|
|
33
31
|
end
|
|
@@ -1,52 +1,47 @@
|
|
|
1
1
|
module Increase
|
|
2
2
|
module Models
|
|
3
3
|
module Simulations
|
|
4
|
-
type
|
|
4
|
+
type entity_update_validation_params =
|
|
5
5
|
{
|
|
6
6
|
entity_id: String,
|
|
7
|
-
issues: ::Array[Increase::Simulations::
|
|
8
|
-
status: Increase::Models::Simulations::EntityValidationParams::status
|
|
7
|
+
issues: ::Array[Increase::Simulations::EntityUpdateValidationParams::Issue]
|
|
9
8
|
}
|
|
10
9
|
& Increase::Internal::Type::request_parameters
|
|
11
10
|
|
|
12
|
-
class
|
|
11
|
+
class EntityUpdateValidationParams < Increase::Internal::Type::BaseModel
|
|
13
12
|
extend Increase::Internal::Type::RequestParameters::Converter
|
|
14
13
|
include Increase::Internal::Type::RequestParameters
|
|
15
14
|
|
|
16
15
|
attr_accessor entity_id: String
|
|
17
16
|
|
|
18
|
-
attr_accessor issues: ::Array[Increase::Simulations::
|
|
19
|
-
|
|
20
|
-
attr_accessor status: Increase::Models::Simulations::EntityValidationParams::status
|
|
17
|
+
attr_accessor issues: ::Array[Increase::Simulations::EntityUpdateValidationParams::Issue]
|
|
21
18
|
|
|
22
19
|
def initialize: (
|
|
23
20
|
entity_id: String,
|
|
24
|
-
issues: ::Array[Increase::Simulations::
|
|
25
|
-
status: Increase::Models::Simulations::EntityValidationParams::status,
|
|
21
|
+
issues: ::Array[Increase::Simulations::EntityUpdateValidationParams::Issue],
|
|
26
22
|
?request_options: Increase::request_opts
|
|
27
23
|
) -> void
|
|
28
24
|
|
|
29
25
|
def to_hash: -> {
|
|
30
26
|
entity_id: String,
|
|
31
|
-
issues: ::Array[Increase::Simulations::
|
|
32
|
-
status: Increase::Models::Simulations::EntityValidationParams::status,
|
|
27
|
+
issues: ::Array[Increase::Simulations::EntityUpdateValidationParams::Issue],
|
|
33
28
|
request_options: Increase::RequestOptions
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
type issue =
|
|
37
32
|
{
|
|
38
|
-
category: Increase::Models::Simulations::
|
|
33
|
+
category: Increase::Models::Simulations::EntityUpdateValidationParams::Issue::category
|
|
39
34
|
}
|
|
40
35
|
|
|
41
36
|
class Issue < Increase::Internal::Type::BaseModel
|
|
42
|
-
attr_accessor category: Increase::Models::Simulations::
|
|
37
|
+
attr_accessor category: Increase::Models::Simulations::EntityUpdateValidationParams::Issue::category
|
|
43
38
|
|
|
44
39
|
def initialize: (
|
|
45
|
-
category: Increase::Models::Simulations::
|
|
40
|
+
category: Increase::Models::Simulations::EntityUpdateValidationParams::Issue::category
|
|
46
41
|
) -> void
|
|
47
42
|
|
|
48
43
|
def to_hash: -> {
|
|
49
|
-
category: Increase::Models::Simulations::
|
|
44
|
+
category: Increase::Models::Simulations::EntityUpdateValidationParams::Issue::category
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
type category =
|
|
@@ -70,26 +65,9 @@ module Increase
|
|
|
70
65
|
# A beneficial owner's address could not be validated. Update the address with the [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
|
|
71
66
|
BENEFICIAL_OWNER_ADDRESS: :beneficial_owner_address
|
|
72
67
|
|
|
73
|
-
def self?.values: -> ::Array[Increase::Models::Simulations::
|
|
68
|
+
def self?.values: -> ::Array[Increase::Models::Simulations::EntityUpdateValidationParams::Issue::category]
|
|
74
69
|
end
|
|
75
70
|
end
|
|
76
|
-
|
|
77
|
-
type status = :valid | :invalid | :pending
|
|
78
|
-
|
|
79
|
-
module Status
|
|
80
|
-
extend Increase::Internal::Type::Enum
|
|
81
|
-
|
|
82
|
-
# The submitted data is valid.
|
|
83
|
-
VALID: :valid
|
|
84
|
-
|
|
85
|
-
# Additional information is required to validate the data.
|
|
86
|
-
INVALID: :invalid
|
|
87
|
-
|
|
88
|
-
# The submitted data is being validated.
|
|
89
|
-
PENDING: :pending
|
|
90
|
-
|
|
91
|
-
def self?.values: -> ::Array[Increase::Models::Simulations::EntityValidationParams::status]
|
|
92
|
-
end
|
|
93
71
|
end
|
|
94
72
|
end
|
|
95
73
|
end
|
|
@@ -2,10 +2,9 @@ module Increase
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Simulations
|
|
4
4
|
class Entities
|
|
5
|
-
def
|
|
5
|
+
def update_validation: (
|
|
6
6
|
String entity_id,
|
|
7
|
-
issues: ::Array[Increase::Simulations::
|
|
8
|
-
status: Increase::Models::Simulations::EntityValidationParams::status,
|
|
7
|
+
issues: ::Array[Increase::Simulations::EntityUpdateValidationParams::Issue],
|
|
9
8
|
?request_options: Increase::request_opts
|
|
10
9
|
) -> Increase::Entity
|
|
11
10
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.319.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
@@ -344,7 +344,7 @@ files:
|
|
|
344
344
|
- lib/increase/models/simulations/digital_wallet_token_request_create_params.rb
|
|
345
345
|
- lib/increase/models/simulations/digital_wallet_token_request_create_response.rb
|
|
346
346
|
- lib/increase/models/simulations/entity_onboarding_session_submit_params.rb
|
|
347
|
-
- lib/increase/models/simulations/
|
|
347
|
+
- lib/increase/models/simulations/entity_update_validation_params.rb
|
|
348
348
|
- lib/increase/models/simulations/export_create_params.rb
|
|
349
349
|
- lib/increase/models/simulations/inbound_ach_transfer_create_params.rb
|
|
350
350
|
- lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb
|
|
@@ -761,7 +761,7 @@ files:
|
|
|
761
761
|
- rbi/increase/models/simulations/digital_wallet_token_request_create_params.rbi
|
|
762
762
|
- rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi
|
|
763
763
|
- rbi/increase/models/simulations/entity_onboarding_session_submit_params.rbi
|
|
764
|
-
- rbi/increase/models/simulations/
|
|
764
|
+
- rbi/increase/models/simulations/entity_update_validation_params.rbi
|
|
765
765
|
- rbi/increase/models/simulations/export_create_params.rbi
|
|
766
766
|
- rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi
|
|
767
767
|
- rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi
|
|
@@ -1177,7 +1177,7 @@ files:
|
|
|
1177
1177
|
- sig/increase/models/simulations/digital_wallet_token_request_create_params.rbs
|
|
1178
1178
|
- sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs
|
|
1179
1179
|
- sig/increase/models/simulations/entity_onboarding_session_submit_params.rbs
|
|
1180
|
-
- sig/increase/models/simulations/
|
|
1180
|
+
- sig/increase/models/simulations/entity_update_validation_params.rbs
|
|
1181
1181
|
- sig/increase/models/simulations/export_create_params.rbs
|
|
1182
1182
|
- sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs
|
|
1183
1183
|
- sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs
|