increase 1.63.0 → 1.65.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/entity.rb +56 -1
- data/lib/increase/models/entity_create_params.rb +55 -1
- data/lib/increase/models/entity_update_params.rb +205 -0
- data/lib/increase/models.rb +2 -0
- data/lib/increase/resources/entities.rb +40 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -0
- data/rbi/increase/models/entity.rbi +89 -0
- data/rbi/increase/models/entity_create_params.rbi +108 -0
- data/rbi/increase/models/entity_update_params.rbi +438 -0
- data/rbi/increase/models.rbi +2 -0
- data/rbi/increase/resources/entities.rbi +40 -0
- data/sig/increase/models/entity.rbs +41 -0
- data/sig/increase/models/entity_create_params.rbs +48 -0
- data/sig/increase/models/entity_update_params.rbs +201 -0
- data/sig/increase/models.rbs +2 -0
- data/sig/increase/resources/entities.rbs +12 -0
- metadata +5 -2
@@ -71,6 +71,18 @@ module Increase
|
|
71
71
|
end
|
72
72
|
attr_writer :natural_person
|
73
73
|
|
74
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
75
|
+
# such as money laundering.
|
76
|
+
sig { returns(T.nilable(Increase::EntityCreateParams::RiskRating)) }
|
77
|
+
attr_reader :risk_rating
|
78
|
+
|
79
|
+
sig do
|
80
|
+
params(
|
81
|
+
risk_rating: Increase::EntityCreateParams::RiskRating::OrHash
|
82
|
+
).void
|
83
|
+
end
|
84
|
+
attr_writer :risk_rating
|
85
|
+
|
74
86
|
# Additional documentation associated with the entity.
|
75
87
|
sig do
|
76
88
|
returns(
|
@@ -121,6 +133,7 @@ module Increase
|
|
121
133
|
Increase::EntityCreateParams::GovernmentAuthority::OrHash,
|
122
134
|
joint: Increase::EntityCreateParams::Joint::OrHash,
|
123
135
|
natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash,
|
136
|
+
risk_rating: Increase::EntityCreateParams::RiskRating::OrHash,
|
124
137
|
supplemental_documents:
|
125
138
|
T::Array[
|
126
139
|
Increase::EntityCreateParams::SupplementalDocument::OrHash
|
@@ -150,6 +163,9 @@ module Increase
|
|
150
163
|
# `social_security_number` or `individual_taxpayer_identification_number`
|
151
164
|
# identification methods.
|
152
165
|
natural_person: nil,
|
166
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
167
|
+
# such as money laundering.
|
168
|
+
risk_rating: nil,
|
153
169
|
# Additional documentation associated with the entity.
|
154
170
|
supplemental_documents: nil,
|
155
171
|
# A reference to data stored in a third-party verification service. Your
|
@@ -172,6 +188,7 @@ module Increase
|
|
172
188
|
Increase::EntityCreateParams::GovernmentAuthority,
|
173
189
|
joint: Increase::EntityCreateParams::Joint,
|
174
190
|
natural_person: Increase::EntityCreateParams::NaturalPerson,
|
191
|
+
risk_rating: Increase::EntityCreateParams::RiskRating,
|
175
192
|
supplemental_documents:
|
176
193
|
T::Array[Increase::EntityCreateParams::SupplementalDocument],
|
177
194
|
third_party_verification:
|
@@ -2630,6 +2647,97 @@ module Increase
|
|
2630
2647
|
end
|
2631
2648
|
end
|
2632
2649
|
|
2650
|
+
class RiskRating < Increase::Internal::Type::BaseModel
|
2651
|
+
OrHash =
|
2652
|
+
T.type_alias do
|
2653
|
+
T.any(
|
2654
|
+
Increase::EntityCreateParams::RiskRating,
|
2655
|
+
Increase::Internal::AnyHash
|
2656
|
+
)
|
2657
|
+
end
|
2658
|
+
|
2659
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
2660
|
+
# rating was performed.
|
2661
|
+
sig { returns(Time) }
|
2662
|
+
attr_accessor :rated_at
|
2663
|
+
|
2664
|
+
# The rating given to this entity.
|
2665
|
+
sig do
|
2666
|
+
returns(Increase::EntityCreateParams::RiskRating::Rating::OrSymbol)
|
2667
|
+
end
|
2668
|
+
attr_accessor :rating
|
2669
|
+
|
2670
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
2671
|
+
# such as money laundering.
|
2672
|
+
sig do
|
2673
|
+
params(
|
2674
|
+
rated_at: Time,
|
2675
|
+
rating: Increase::EntityCreateParams::RiskRating::Rating::OrSymbol
|
2676
|
+
).returns(T.attached_class)
|
2677
|
+
end
|
2678
|
+
def self.new(
|
2679
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
2680
|
+
# rating was performed.
|
2681
|
+
rated_at:,
|
2682
|
+
# The rating given to this entity.
|
2683
|
+
rating:
|
2684
|
+
)
|
2685
|
+
end
|
2686
|
+
|
2687
|
+
sig do
|
2688
|
+
override.returns(
|
2689
|
+
{
|
2690
|
+
rated_at: Time,
|
2691
|
+
rating: Increase::EntityCreateParams::RiskRating::Rating::OrSymbol
|
2692
|
+
}
|
2693
|
+
)
|
2694
|
+
end
|
2695
|
+
def to_hash
|
2696
|
+
end
|
2697
|
+
|
2698
|
+
# The rating given to this entity.
|
2699
|
+
module Rating
|
2700
|
+
extend Increase::Internal::Type::Enum
|
2701
|
+
|
2702
|
+
TaggedSymbol =
|
2703
|
+
T.type_alias do
|
2704
|
+
T.all(Symbol, Increase::EntityCreateParams::RiskRating::Rating)
|
2705
|
+
end
|
2706
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2707
|
+
|
2708
|
+
# Low
|
2709
|
+
LOW =
|
2710
|
+
T.let(
|
2711
|
+
:low,
|
2712
|
+
Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol
|
2713
|
+
)
|
2714
|
+
|
2715
|
+
# Medium
|
2716
|
+
MEDIUM =
|
2717
|
+
T.let(
|
2718
|
+
:medium,
|
2719
|
+
Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol
|
2720
|
+
)
|
2721
|
+
|
2722
|
+
# High
|
2723
|
+
HIGH =
|
2724
|
+
T.let(
|
2725
|
+
:high,
|
2726
|
+
Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol
|
2727
|
+
)
|
2728
|
+
|
2729
|
+
sig do
|
2730
|
+
override.returns(
|
2731
|
+
T::Array[
|
2732
|
+
Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol
|
2733
|
+
]
|
2734
|
+
)
|
2735
|
+
end
|
2736
|
+
def self.values
|
2737
|
+
end
|
2738
|
+
end
|
2739
|
+
end
|
2740
|
+
|
2633
2741
|
class SupplementalDocument < Increase::Internal::Type::BaseModel
|
2634
2742
|
OrHash =
|
2635
2743
|
T.type_alias do
|
@@ -0,0 +1,438 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Increase
|
4
|
+
module Models
|
5
|
+
class EntityUpdateParams < 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::EntityUpdateParams, Increase::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Details of the corporation entity to update.
|
15
|
+
sig { returns(T.nilable(Increase::EntityUpdateParams::Corporation)) }
|
16
|
+
attr_reader :corporation
|
17
|
+
|
18
|
+
sig do
|
19
|
+
params(
|
20
|
+
corporation: Increase::EntityUpdateParams::Corporation::OrHash
|
21
|
+
).void
|
22
|
+
end
|
23
|
+
attr_writer :corporation
|
24
|
+
|
25
|
+
# Details of the government authority entity to update.
|
26
|
+
sig do
|
27
|
+
returns(T.nilable(Increase::EntityUpdateParams::GovernmentAuthority))
|
28
|
+
end
|
29
|
+
attr_reader :government_authority
|
30
|
+
|
31
|
+
sig do
|
32
|
+
params(
|
33
|
+
government_authority:
|
34
|
+
Increase::EntityUpdateParams::GovernmentAuthority::OrHash
|
35
|
+
).void
|
36
|
+
end
|
37
|
+
attr_writer :government_authority
|
38
|
+
|
39
|
+
# Details of the natural person entity to update.
|
40
|
+
sig { returns(T.nilable(Increase::EntityUpdateParams::NaturalPerson)) }
|
41
|
+
attr_reader :natural_person
|
42
|
+
|
43
|
+
sig do
|
44
|
+
params(
|
45
|
+
natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash
|
46
|
+
).void
|
47
|
+
end
|
48
|
+
attr_writer :natural_person
|
49
|
+
|
50
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
51
|
+
# such as money laundering.
|
52
|
+
sig { returns(T.nilable(Increase::EntityUpdateParams::RiskRating)) }
|
53
|
+
attr_reader :risk_rating
|
54
|
+
|
55
|
+
sig do
|
56
|
+
params(
|
57
|
+
risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash
|
58
|
+
).void
|
59
|
+
end
|
60
|
+
attr_writer :risk_rating
|
61
|
+
|
62
|
+
# A reference to data stored in a third-party verification service. Your
|
63
|
+
# integration may or may not use this field.
|
64
|
+
sig do
|
65
|
+
returns(T.nilable(Increase::EntityUpdateParams::ThirdPartyVerification))
|
66
|
+
end
|
67
|
+
attr_reader :third_party_verification
|
68
|
+
|
69
|
+
sig do
|
70
|
+
params(
|
71
|
+
third_party_verification:
|
72
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::OrHash
|
73
|
+
).void
|
74
|
+
end
|
75
|
+
attr_writer :third_party_verification
|
76
|
+
|
77
|
+
# Details of the trust entity to update.
|
78
|
+
sig { returns(T.nilable(Increase::EntityUpdateParams::Trust)) }
|
79
|
+
attr_reader :trust
|
80
|
+
|
81
|
+
sig { params(trust: Increase::EntityUpdateParams::Trust::OrHash).void }
|
82
|
+
attr_writer :trust
|
83
|
+
|
84
|
+
sig do
|
85
|
+
params(
|
86
|
+
corporation: Increase::EntityUpdateParams::Corporation::OrHash,
|
87
|
+
government_authority:
|
88
|
+
Increase::EntityUpdateParams::GovernmentAuthority::OrHash,
|
89
|
+
natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash,
|
90
|
+
risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash,
|
91
|
+
third_party_verification:
|
92
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::OrHash,
|
93
|
+
trust: Increase::EntityUpdateParams::Trust::OrHash,
|
94
|
+
request_options: Increase::RequestOptions::OrHash
|
95
|
+
).returns(T.attached_class)
|
96
|
+
end
|
97
|
+
def self.new(
|
98
|
+
# Details of the corporation entity to update.
|
99
|
+
corporation: nil,
|
100
|
+
# Details of the government authority entity to update.
|
101
|
+
government_authority: nil,
|
102
|
+
# Details of the natural person entity to update.
|
103
|
+
natural_person: nil,
|
104
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
105
|
+
# such as money laundering.
|
106
|
+
risk_rating: nil,
|
107
|
+
# A reference to data stored in a third-party verification service. Your
|
108
|
+
# integration may or may not use this field.
|
109
|
+
third_party_verification: nil,
|
110
|
+
# Details of the trust entity to update.
|
111
|
+
trust: nil,
|
112
|
+
request_options: {}
|
113
|
+
)
|
114
|
+
end
|
115
|
+
|
116
|
+
sig do
|
117
|
+
override.returns(
|
118
|
+
{
|
119
|
+
corporation: Increase::EntityUpdateParams::Corporation,
|
120
|
+
government_authority:
|
121
|
+
Increase::EntityUpdateParams::GovernmentAuthority,
|
122
|
+
natural_person: Increase::EntityUpdateParams::NaturalPerson,
|
123
|
+
risk_rating: Increase::EntityUpdateParams::RiskRating,
|
124
|
+
third_party_verification:
|
125
|
+
Increase::EntityUpdateParams::ThirdPartyVerification,
|
126
|
+
trust: Increase::EntityUpdateParams::Trust,
|
127
|
+
request_options: Increase::RequestOptions
|
128
|
+
}
|
129
|
+
)
|
130
|
+
end
|
131
|
+
def to_hash
|
132
|
+
end
|
133
|
+
|
134
|
+
class Corporation < Increase::Internal::Type::BaseModel
|
135
|
+
OrHash =
|
136
|
+
T.type_alias do
|
137
|
+
T.any(
|
138
|
+
Increase::EntityUpdateParams::Corporation,
|
139
|
+
Increase::Internal::AnyHash
|
140
|
+
)
|
141
|
+
end
|
142
|
+
|
143
|
+
# The legal name of the corporation.
|
144
|
+
sig { returns(T.nilable(String)) }
|
145
|
+
attr_reader :name
|
146
|
+
|
147
|
+
sig { params(name: String).void }
|
148
|
+
attr_writer :name
|
149
|
+
|
150
|
+
# Details of the corporation entity to update.
|
151
|
+
sig { params(name: String).returns(T.attached_class) }
|
152
|
+
def self.new(
|
153
|
+
# The legal name of the corporation.
|
154
|
+
name: nil
|
155
|
+
)
|
156
|
+
end
|
157
|
+
|
158
|
+
sig { override.returns({ name: String }) }
|
159
|
+
def to_hash
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
class GovernmentAuthority < Increase::Internal::Type::BaseModel
|
164
|
+
OrHash =
|
165
|
+
T.type_alias do
|
166
|
+
T.any(
|
167
|
+
Increase::EntityUpdateParams::GovernmentAuthority,
|
168
|
+
Increase::Internal::AnyHash
|
169
|
+
)
|
170
|
+
end
|
171
|
+
|
172
|
+
# The legal name of the government authority.
|
173
|
+
sig { returns(T.nilable(String)) }
|
174
|
+
attr_reader :name
|
175
|
+
|
176
|
+
sig { params(name: String).void }
|
177
|
+
attr_writer :name
|
178
|
+
|
179
|
+
# Details of the government authority entity to update.
|
180
|
+
sig { params(name: String).returns(T.attached_class) }
|
181
|
+
def self.new(
|
182
|
+
# The legal name of the government authority.
|
183
|
+
name: nil
|
184
|
+
)
|
185
|
+
end
|
186
|
+
|
187
|
+
sig { override.returns({ name: String }) }
|
188
|
+
def to_hash
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
class NaturalPerson < Increase::Internal::Type::BaseModel
|
193
|
+
OrHash =
|
194
|
+
T.type_alias do
|
195
|
+
T.any(
|
196
|
+
Increase::EntityUpdateParams::NaturalPerson,
|
197
|
+
Increase::Internal::AnyHash
|
198
|
+
)
|
199
|
+
end
|
200
|
+
|
201
|
+
# The legal name of the natural person.
|
202
|
+
sig { returns(T.nilable(String)) }
|
203
|
+
attr_reader :name
|
204
|
+
|
205
|
+
sig { params(name: String).void }
|
206
|
+
attr_writer :name
|
207
|
+
|
208
|
+
# Details of the natural person entity to update.
|
209
|
+
sig { params(name: String).returns(T.attached_class) }
|
210
|
+
def self.new(
|
211
|
+
# The legal name of the natural person.
|
212
|
+
name: nil
|
213
|
+
)
|
214
|
+
end
|
215
|
+
|
216
|
+
sig { override.returns({ name: String }) }
|
217
|
+
def to_hash
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
class RiskRating < Increase::Internal::Type::BaseModel
|
222
|
+
OrHash =
|
223
|
+
T.type_alias do
|
224
|
+
T.any(
|
225
|
+
Increase::EntityUpdateParams::RiskRating,
|
226
|
+
Increase::Internal::AnyHash
|
227
|
+
)
|
228
|
+
end
|
229
|
+
|
230
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
231
|
+
# rating was performed.
|
232
|
+
sig { returns(Time) }
|
233
|
+
attr_accessor :rated_at
|
234
|
+
|
235
|
+
# The rating given to this entity.
|
236
|
+
sig do
|
237
|
+
returns(Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol)
|
238
|
+
end
|
239
|
+
attr_accessor :rating
|
240
|
+
|
241
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
242
|
+
# such as money laundering.
|
243
|
+
sig do
|
244
|
+
params(
|
245
|
+
rated_at: Time,
|
246
|
+
rating: Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol
|
247
|
+
).returns(T.attached_class)
|
248
|
+
end
|
249
|
+
def self.new(
|
250
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
251
|
+
# rating was performed.
|
252
|
+
rated_at:,
|
253
|
+
# The rating given to this entity.
|
254
|
+
rating:
|
255
|
+
)
|
256
|
+
end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
override.returns(
|
260
|
+
{
|
261
|
+
rated_at: Time,
|
262
|
+
rating: Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol
|
263
|
+
}
|
264
|
+
)
|
265
|
+
end
|
266
|
+
def to_hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# The rating given to this entity.
|
270
|
+
module Rating
|
271
|
+
extend Increase::Internal::Type::Enum
|
272
|
+
|
273
|
+
TaggedSymbol =
|
274
|
+
T.type_alias do
|
275
|
+
T.all(Symbol, Increase::EntityUpdateParams::RiskRating::Rating)
|
276
|
+
end
|
277
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
278
|
+
|
279
|
+
# Low
|
280
|
+
LOW =
|
281
|
+
T.let(
|
282
|
+
:low,
|
283
|
+
Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol
|
284
|
+
)
|
285
|
+
|
286
|
+
# Medium
|
287
|
+
MEDIUM =
|
288
|
+
T.let(
|
289
|
+
:medium,
|
290
|
+
Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol
|
291
|
+
)
|
292
|
+
|
293
|
+
# High
|
294
|
+
HIGH =
|
295
|
+
T.let(
|
296
|
+
:high,
|
297
|
+
Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol
|
298
|
+
)
|
299
|
+
|
300
|
+
sig do
|
301
|
+
override.returns(
|
302
|
+
T::Array[
|
303
|
+
Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol
|
304
|
+
]
|
305
|
+
)
|
306
|
+
end
|
307
|
+
def self.values
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
class ThirdPartyVerification < Increase::Internal::Type::BaseModel
|
313
|
+
OrHash =
|
314
|
+
T.type_alias do
|
315
|
+
T.any(
|
316
|
+
Increase::EntityUpdateParams::ThirdPartyVerification,
|
317
|
+
Increase::Internal::AnyHash
|
318
|
+
)
|
319
|
+
end
|
320
|
+
|
321
|
+
# The reference identifier for the third party verification.
|
322
|
+
sig { returns(String) }
|
323
|
+
attr_accessor :reference
|
324
|
+
|
325
|
+
# The vendor that was used to perform the verification.
|
326
|
+
sig do
|
327
|
+
returns(
|
328
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol
|
329
|
+
)
|
330
|
+
end
|
331
|
+
attr_accessor :vendor
|
332
|
+
|
333
|
+
# A reference to data stored in a third-party verification service. Your
|
334
|
+
# integration may or may not use this field.
|
335
|
+
sig do
|
336
|
+
params(
|
337
|
+
reference: String,
|
338
|
+
vendor:
|
339
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol
|
340
|
+
).returns(T.attached_class)
|
341
|
+
end
|
342
|
+
def self.new(
|
343
|
+
# The reference identifier for the third party verification.
|
344
|
+
reference:,
|
345
|
+
# The vendor that was used to perform the verification.
|
346
|
+
vendor:
|
347
|
+
)
|
348
|
+
end
|
349
|
+
|
350
|
+
sig do
|
351
|
+
override.returns(
|
352
|
+
{
|
353
|
+
reference: String,
|
354
|
+
vendor:
|
355
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol
|
356
|
+
}
|
357
|
+
)
|
358
|
+
end
|
359
|
+
def to_hash
|
360
|
+
end
|
361
|
+
|
362
|
+
# The vendor that was used to perform the verification.
|
363
|
+
module Vendor
|
364
|
+
extend Increase::Internal::Type::Enum
|
365
|
+
|
366
|
+
TaggedSymbol =
|
367
|
+
T.type_alias do
|
368
|
+
T.all(
|
369
|
+
Symbol,
|
370
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor
|
371
|
+
)
|
372
|
+
end
|
373
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
374
|
+
|
375
|
+
# Alloy. See https://alloy.com for more information.
|
376
|
+
ALLOY =
|
377
|
+
T.let(
|
378
|
+
:alloy,
|
379
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol
|
380
|
+
)
|
381
|
+
|
382
|
+
# Middesk. See https://middesk.com for more information.
|
383
|
+
MIDDESK =
|
384
|
+
T.let(
|
385
|
+
:middesk,
|
386
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol
|
387
|
+
)
|
388
|
+
|
389
|
+
# Oscilar. See https://oscilar.com for more information.
|
390
|
+
OSCILAR =
|
391
|
+
T.let(
|
392
|
+
:oscilar,
|
393
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol
|
394
|
+
)
|
395
|
+
|
396
|
+
sig do
|
397
|
+
override.returns(
|
398
|
+
T::Array[
|
399
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol
|
400
|
+
]
|
401
|
+
)
|
402
|
+
end
|
403
|
+
def self.values
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
class Trust < Increase::Internal::Type::BaseModel
|
409
|
+
OrHash =
|
410
|
+
T.type_alias do
|
411
|
+
T.any(
|
412
|
+
Increase::EntityUpdateParams::Trust,
|
413
|
+
Increase::Internal::AnyHash
|
414
|
+
)
|
415
|
+
end
|
416
|
+
|
417
|
+
# The legal name of the trust.
|
418
|
+
sig { returns(T.nilable(String)) }
|
419
|
+
attr_reader :name
|
420
|
+
|
421
|
+
sig { params(name: String).void }
|
422
|
+
attr_writer :name
|
423
|
+
|
424
|
+
# Details of the trust entity to update.
|
425
|
+
sig { params(name: String).returns(T.attached_class) }
|
426
|
+
def self.new(
|
427
|
+
# The legal name of the trust.
|
428
|
+
name: nil
|
429
|
+
)
|
430
|
+
end
|
431
|
+
|
432
|
+
sig { override.returns({ name: String }) }
|
433
|
+
def to_hash
|
434
|
+
end
|
435
|
+
end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
end
|
data/rbi/increase/models.rbi
CHANGED
@@ -265,6 +265,8 @@ module Increase
|
|
265
265
|
EntityUpdateIndustryCodeParams =
|
266
266
|
Increase::Models::EntityUpdateIndustryCodeParams
|
267
267
|
|
268
|
+
EntityUpdateParams = Increase::Models::EntityUpdateParams
|
269
|
+
|
268
270
|
Event = Increase::Models::Event
|
269
271
|
|
270
272
|
EventListParams = Increase::Models::EventListParams
|
@@ -13,6 +13,7 @@ module Increase
|
|
13
13
|
Increase::EntityCreateParams::GovernmentAuthority::OrHash,
|
14
14
|
joint: Increase::EntityCreateParams::Joint::OrHash,
|
15
15
|
natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash,
|
16
|
+
risk_rating: Increase::EntityCreateParams::RiskRating::OrHash,
|
16
17
|
supplemental_documents:
|
17
18
|
T::Array[
|
18
19
|
Increase::EntityCreateParams::SupplementalDocument::OrHash
|
@@ -42,6 +43,9 @@ module Increase
|
|
42
43
|
# `social_security_number` or `individual_taxpayer_identification_number`
|
43
44
|
# identification methods.
|
44
45
|
natural_person: nil,
|
46
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
47
|
+
# such as money laundering.
|
48
|
+
risk_rating: nil,
|
45
49
|
# Additional documentation associated with the entity.
|
46
50
|
supplemental_documents: nil,
|
47
51
|
# A reference to data stored in a third-party verification service. Your
|
@@ -68,6 +72,42 @@ module Increase
|
|
68
72
|
)
|
69
73
|
end
|
70
74
|
|
75
|
+
# Update an Entity
|
76
|
+
sig do
|
77
|
+
params(
|
78
|
+
entity_id: String,
|
79
|
+
corporation: Increase::EntityUpdateParams::Corporation::OrHash,
|
80
|
+
government_authority:
|
81
|
+
Increase::EntityUpdateParams::GovernmentAuthority::OrHash,
|
82
|
+
natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash,
|
83
|
+
risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash,
|
84
|
+
third_party_verification:
|
85
|
+
Increase::EntityUpdateParams::ThirdPartyVerification::OrHash,
|
86
|
+
trust: Increase::EntityUpdateParams::Trust::OrHash,
|
87
|
+
request_options: Increase::RequestOptions::OrHash
|
88
|
+
).returns(Increase::Entity)
|
89
|
+
end
|
90
|
+
def update(
|
91
|
+
# The entity identifier.
|
92
|
+
entity_id,
|
93
|
+
# Details of the corporation entity to update.
|
94
|
+
corporation: nil,
|
95
|
+
# Details of the government authority entity to update.
|
96
|
+
government_authority: nil,
|
97
|
+
# Details of the natural person entity to update.
|
98
|
+
natural_person: nil,
|
99
|
+
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
100
|
+
# such as money laundering.
|
101
|
+
risk_rating: nil,
|
102
|
+
# A reference to data stored in a third-party verification service. Your
|
103
|
+
# integration may or may not use this field.
|
104
|
+
third_party_verification: nil,
|
105
|
+
# Details of the trust entity to update.
|
106
|
+
trust: nil,
|
107
|
+
request_options: {}
|
108
|
+
)
|
109
|
+
end
|
110
|
+
|
71
111
|
# List Entities
|
72
112
|
sig do
|
73
113
|
params(
|