increase 1.254.0 → 1.255.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/entity.rb +215 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/entity.rbi +498 -4
- data/sig/increase/models/entity.rbs +187 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 683352ad52d099065ff04b06cf99b1218e208be33fd0d826e1613a1c4a7e8f1c
|
|
4
|
+
data.tar.gz: 5ddcc6b136e2b6b46c46957ef5f512094ae462b76cc26f4f55a25569f83b5723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a980a16528107b988dfb151d1db89dfbe7af0ff8b65cdba2a2976c7cd355e27f6fda619ee46f26d2785cac96f1f98ee10f2949163bb2b7890629682e2a995741
|
|
7
|
+
data.tar.gz: d6015813d1ad39971b7b8338092f2c10665aedcf3012a66b3518b0b8229e268e97ba559cd718e96ed76decbbb123e39141c48b45cc8351551b2b5e62f5768d03
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.255.0 (2026-03-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.254.0...v1.255.0](https://github.com/Increase/increase-ruby/compare/v1.254.0...v1.255.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([fb7738c](https://github.com/Increase/increase-ruby/commit/fb7738cf952c59634ae2c60442d3b0060d8c23b8))
|
|
10
|
+
|
|
3
11
|
## 1.254.0 (2026-03-13)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.253.0...v1.254.0](https://github.com/Increase/increase-ruby/compare/v1.253.0...v1.254.0)
|
data/README.md
CHANGED
|
@@ -121,12 +121,19 @@ module Increase
|
|
|
121
121
|
# @return [Symbol, Increase::Models::Entity::Type]
|
|
122
122
|
required :type, enum: -> { Increase::Entity::Type }
|
|
123
123
|
|
|
124
|
-
# @!
|
|
124
|
+
# @!attribute validation
|
|
125
|
+
# The validation results for the entity.
|
|
126
|
+
#
|
|
127
|
+
# @return [Increase::Models::Entity::Validation, nil]
|
|
128
|
+
required :validation, -> { Increase::Entity::Validation }, nil?: true
|
|
129
|
+
|
|
130
|
+
# @!method initialize(id:, corporation:, created_at:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
|
|
125
131
|
# Some parameter documentations has been truncated, see {Increase::Models::Entity}
|
|
126
132
|
# for more details.
|
|
127
133
|
#
|
|
128
134
|
# Entities are the legal entities that own accounts. They can be people,
|
|
129
|
-
# corporations, partnerships, government authorities, or trusts.
|
|
135
|
+
# corporations, partnerships, government authorities, or trusts. To learn more,
|
|
136
|
+
# see [Entities](/documentation/entities).
|
|
130
137
|
#
|
|
131
138
|
# @param id [String] The entity's identifier.
|
|
132
139
|
#
|
|
@@ -161,6 +168,8 @@ module Increase
|
|
|
161
168
|
# @param trust [Increase::Models::Entity::Trust, nil] Details of the trust entity. Will be present if `structure` is equal to `trust`.
|
|
162
169
|
#
|
|
163
170
|
# @param type [Symbol, Increase::Models::Entity::Type] A constant representing the object's type. For this resource it will always be `
|
|
171
|
+
#
|
|
172
|
+
# @param validation [Increase::Models::Entity::Validation, nil] The validation results for the entity.
|
|
164
173
|
|
|
165
174
|
# @see Increase::Models::Entity#corporation
|
|
166
175
|
class Corporation < Increase::Internal::Type::BaseModel
|
|
@@ -1586,6 +1595,210 @@ module Increase
|
|
|
1586
1595
|
# @!method self.values
|
|
1587
1596
|
# @return [Array<Symbol>]
|
|
1588
1597
|
end
|
|
1598
|
+
|
|
1599
|
+
# @see Increase::Models::Entity#validation
|
|
1600
|
+
class Validation < Increase::Internal::Type::BaseModel
|
|
1601
|
+
# @!attribute issues
|
|
1602
|
+
# The list of issues that need to be addressed.
|
|
1603
|
+
#
|
|
1604
|
+
# @return [Array<Increase::Models::Entity::Validation::Issue>]
|
|
1605
|
+
required :issues, -> { Increase::Internal::Type::ArrayOf[Increase::Entity::Validation::Issue] }
|
|
1606
|
+
|
|
1607
|
+
# @!attribute status
|
|
1608
|
+
# The validation status for the entity. If the status is `invalid`, the `issues`
|
|
1609
|
+
# array will be populated.
|
|
1610
|
+
#
|
|
1611
|
+
# @return [Symbol, Increase::Models::Entity::Validation::Status]
|
|
1612
|
+
required :status, enum: -> { Increase::Entity::Validation::Status }
|
|
1613
|
+
|
|
1614
|
+
# @!method initialize(issues:, status:)
|
|
1615
|
+
# Some parameter documentations has been truncated, see
|
|
1616
|
+
# {Increase::Models::Entity::Validation} for more details.
|
|
1617
|
+
#
|
|
1618
|
+
# The validation results for the entity.
|
|
1619
|
+
#
|
|
1620
|
+
# @param issues [Array<Increase::Models::Entity::Validation::Issue>] The list of issues that need to be addressed.
|
|
1621
|
+
#
|
|
1622
|
+
# @param status [Symbol, Increase::Models::Entity::Validation::Status] The validation status for the entity. If the status is `invalid`, the `issues` a
|
|
1623
|
+
|
|
1624
|
+
class Issue < Increase::Internal::Type::BaseModel
|
|
1625
|
+
# @!attribute beneficial_owner_address
|
|
1626
|
+
# Details when the issue is with a beneficial owner's address.
|
|
1627
|
+
#
|
|
1628
|
+
# @return [Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress, nil]
|
|
1629
|
+
required :beneficial_owner_address,
|
|
1630
|
+
-> { Increase::Entity::Validation::Issue::BeneficialOwnerAddress },
|
|
1631
|
+
nil?: true
|
|
1632
|
+
|
|
1633
|
+
# @!attribute beneficial_owner_identity
|
|
1634
|
+
# Details when the issue is with a beneficial owner's identity verification.
|
|
1635
|
+
#
|
|
1636
|
+
# @return [Increase::Models::Entity::Validation::Issue::BeneficialOwnerIdentity, nil]
|
|
1637
|
+
required :beneficial_owner_identity,
|
|
1638
|
+
-> { Increase::Entity::Validation::Issue::BeneficialOwnerIdentity },
|
|
1639
|
+
nil?: true
|
|
1640
|
+
|
|
1641
|
+
# @!attribute category
|
|
1642
|
+
# The type of issue. We may add additional possible values for this enum over
|
|
1643
|
+
# time; your application should be able to handle such additions gracefully.
|
|
1644
|
+
#
|
|
1645
|
+
# @return [Symbol, Increase::Models::Entity::Validation::Issue::Category]
|
|
1646
|
+
required :category, enum: -> { Increase::Entity::Validation::Issue::Category }
|
|
1647
|
+
|
|
1648
|
+
# @!attribute entity_address
|
|
1649
|
+
# Details when the issue is with the entity's address.
|
|
1650
|
+
#
|
|
1651
|
+
# @return [Increase::Models::Entity::Validation::Issue::EntityAddress, nil]
|
|
1652
|
+
required :entity_address, -> { Increase::Entity::Validation::Issue::EntityAddress }, nil?: true
|
|
1653
|
+
|
|
1654
|
+
# @!attribute entity_tax_identifier
|
|
1655
|
+
# Details when the issue is with the entity's tax ID.
|
|
1656
|
+
#
|
|
1657
|
+
# @return [Increase::Models::Entity::Validation::Issue::EntityTaxIdentifier, nil]
|
|
1658
|
+
required :entity_tax_identifier,
|
|
1659
|
+
-> { Increase::Entity::Validation::Issue::EntityTaxIdentifier },
|
|
1660
|
+
nil?: true
|
|
1661
|
+
|
|
1662
|
+
# @!method initialize(beneficial_owner_address:, beneficial_owner_identity:, category:, entity_address:, entity_tax_identifier:)
|
|
1663
|
+
# Some parameter documentations has been truncated, see
|
|
1664
|
+
# {Increase::Models::Entity::Validation::Issue} for more details.
|
|
1665
|
+
#
|
|
1666
|
+
# @param beneficial_owner_address [Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress, nil] Details when the issue is with a beneficial owner's address.
|
|
1667
|
+
#
|
|
1668
|
+
# @param beneficial_owner_identity [Increase::Models::Entity::Validation::Issue::BeneficialOwnerIdentity, nil] Details when the issue is with a beneficial owner's identity verification.
|
|
1669
|
+
#
|
|
1670
|
+
# @param category [Symbol, Increase::Models::Entity::Validation::Issue::Category] The type of issue. We may add additional possible values for this enum over time
|
|
1671
|
+
#
|
|
1672
|
+
# @param entity_address [Increase::Models::Entity::Validation::Issue::EntityAddress, nil] Details when the issue is with the entity's address.
|
|
1673
|
+
#
|
|
1674
|
+
# @param entity_tax_identifier [Increase::Models::Entity::Validation::Issue::EntityTaxIdentifier, nil] Details when the issue is with the entity's tax ID.
|
|
1675
|
+
|
|
1676
|
+
# @see Increase::Models::Entity::Validation::Issue#beneficial_owner_address
|
|
1677
|
+
class BeneficialOwnerAddress < Increase::Internal::Type::BaseModel
|
|
1678
|
+
# @!attribute beneficial_owner_id
|
|
1679
|
+
# The ID of the beneficial owner.
|
|
1680
|
+
#
|
|
1681
|
+
# @return [String]
|
|
1682
|
+
required :beneficial_owner_id, String
|
|
1683
|
+
|
|
1684
|
+
# @!attribute reason
|
|
1685
|
+
# The reason the address is invalid.
|
|
1686
|
+
#
|
|
1687
|
+
# @return [Symbol, Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::Reason]
|
|
1688
|
+
required :reason, enum: -> { Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason }
|
|
1689
|
+
|
|
1690
|
+
# @!method initialize(beneficial_owner_id:, reason:)
|
|
1691
|
+
# Details when the issue is with a beneficial owner's address.
|
|
1692
|
+
#
|
|
1693
|
+
# @param beneficial_owner_id [String] The ID of the beneficial owner.
|
|
1694
|
+
#
|
|
1695
|
+
# @param reason [Symbol, Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::Reason] The reason the address is invalid.
|
|
1696
|
+
|
|
1697
|
+
# The reason the address is invalid.
|
|
1698
|
+
#
|
|
1699
|
+
# @see Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress#reason
|
|
1700
|
+
module Reason
|
|
1701
|
+
extend Increase::Internal::Type::Enum
|
|
1702
|
+
|
|
1703
|
+
# The address is a mailbox or other non-physical address.
|
|
1704
|
+
MAILBOX_ADDRESS = :mailbox_address
|
|
1705
|
+
|
|
1706
|
+
# @!method self.values
|
|
1707
|
+
# @return [Array<Symbol>]
|
|
1708
|
+
end
|
|
1709
|
+
end
|
|
1710
|
+
|
|
1711
|
+
# @see Increase::Models::Entity::Validation::Issue#beneficial_owner_identity
|
|
1712
|
+
class BeneficialOwnerIdentity < Increase::Internal::Type::BaseModel
|
|
1713
|
+
# @!attribute beneficial_owner_id
|
|
1714
|
+
# The ID of the beneficial owner.
|
|
1715
|
+
#
|
|
1716
|
+
# @return [String]
|
|
1717
|
+
required :beneficial_owner_id, String
|
|
1718
|
+
|
|
1719
|
+
# @!method initialize(beneficial_owner_id:)
|
|
1720
|
+
# Details when the issue is with a beneficial owner's identity verification.
|
|
1721
|
+
#
|
|
1722
|
+
# @param beneficial_owner_id [String] The ID of the beneficial owner.
|
|
1723
|
+
end
|
|
1724
|
+
|
|
1725
|
+
# The type of issue. We may add additional possible values for this enum over
|
|
1726
|
+
# time; your application should be able to handle such additions gracefully.
|
|
1727
|
+
#
|
|
1728
|
+
# @see Increase::Models::Entity::Validation::Issue#category
|
|
1729
|
+
module Category
|
|
1730
|
+
extend Increase::Internal::Type::Enum
|
|
1731
|
+
|
|
1732
|
+
# The entity's tax identifier could not be validated. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
|
|
1733
|
+
ENTITY_TAX_IDENTIFIER = :entity_tax_identifier
|
|
1734
|
+
|
|
1735
|
+
# 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).
|
|
1736
|
+
ENTITY_ADDRESS = :entity_address
|
|
1737
|
+
|
|
1738
|
+
# 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).
|
|
1739
|
+
BENEFICIAL_OWNER_IDENTITY = :beneficial_owner_identity
|
|
1740
|
+
|
|
1741
|
+
# 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).
|
|
1742
|
+
BENEFICIAL_OWNER_ADDRESS = :beneficial_owner_address
|
|
1743
|
+
|
|
1744
|
+
# @!method self.values
|
|
1745
|
+
# @return [Array<Symbol>]
|
|
1746
|
+
end
|
|
1747
|
+
|
|
1748
|
+
# @see Increase::Models::Entity::Validation::Issue#entity_address
|
|
1749
|
+
class EntityAddress < Increase::Internal::Type::BaseModel
|
|
1750
|
+
# @!attribute reason
|
|
1751
|
+
# The reason the address is invalid.
|
|
1752
|
+
#
|
|
1753
|
+
# @return [Symbol, Increase::Models::Entity::Validation::Issue::EntityAddress::Reason]
|
|
1754
|
+
required :reason, enum: -> { Increase::Entity::Validation::Issue::EntityAddress::Reason }
|
|
1755
|
+
|
|
1756
|
+
# @!method initialize(reason:)
|
|
1757
|
+
# Details when the issue is with the entity's address.
|
|
1758
|
+
#
|
|
1759
|
+
# @param reason [Symbol, Increase::Models::Entity::Validation::Issue::EntityAddress::Reason] The reason the address is invalid.
|
|
1760
|
+
|
|
1761
|
+
# The reason the address is invalid.
|
|
1762
|
+
#
|
|
1763
|
+
# @see Increase::Models::Entity::Validation::Issue::EntityAddress#reason
|
|
1764
|
+
module Reason
|
|
1765
|
+
extend Increase::Internal::Type::Enum
|
|
1766
|
+
|
|
1767
|
+
# The address is a mailbox or other non-physical address.
|
|
1768
|
+
MAILBOX_ADDRESS = :mailbox_address
|
|
1769
|
+
|
|
1770
|
+
# @!method self.values
|
|
1771
|
+
# @return [Array<Symbol>]
|
|
1772
|
+
end
|
|
1773
|
+
end
|
|
1774
|
+
|
|
1775
|
+
# @see Increase::Models::Entity::Validation::Issue#entity_tax_identifier
|
|
1776
|
+
class EntityTaxIdentifier < Increase::Internal::Type::BaseModel
|
|
1777
|
+
# @!method initialize
|
|
1778
|
+
# Details when the issue is with the entity's tax ID.
|
|
1779
|
+
end
|
|
1780
|
+
end
|
|
1781
|
+
|
|
1782
|
+
# The validation status for the entity. If the status is `invalid`, the `issues`
|
|
1783
|
+
# array will be populated.
|
|
1784
|
+
#
|
|
1785
|
+
# @see Increase::Models::Entity::Validation#status
|
|
1786
|
+
module Status
|
|
1787
|
+
extend Increase::Internal::Type::Enum
|
|
1788
|
+
|
|
1789
|
+
# The submitted data is being validated.
|
|
1790
|
+
PENDING = :pending
|
|
1791
|
+
|
|
1792
|
+
# The submitted data is valid.
|
|
1793
|
+
VALID = :valid
|
|
1794
|
+
|
|
1795
|
+
# Additional information is required to validate the data.
|
|
1796
|
+
INVALID = :invalid
|
|
1797
|
+
|
|
1798
|
+
# @!method self.values
|
|
1799
|
+
# @return [Array<Symbol>]
|
|
1800
|
+
end
|
|
1801
|
+
end
|
|
1589
1802
|
end
|
|
1590
1803
|
end
|
|
1591
1804
|
end
|
data/lib/increase/version.rb
CHANGED
|
@@ -131,8 +131,18 @@ module Increase
|
|
|
131
131
|
sig { returns(Increase::Entity::Type::TaggedSymbol) }
|
|
132
132
|
attr_accessor :type
|
|
133
133
|
|
|
134
|
+
# The validation results for the entity.
|
|
135
|
+
sig { returns(T.nilable(Increase::Entity::Validation)) }
|
|
136
|
+
attr_reader :validation
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
params(validation: T.nilable(Increase::Entity::Validation::OrHash)).void
|
|
140
|
+
end
|
|
141
|
+
attr_writer :validation
|
|
142
|
+
|
|
134
143
|
# Entities are the legal entities that own accounts. They can be people,
|
|
135
|
-
# corporations, partnerships, government authorities, or trusts.
|
|
144
|
+
# corporations, partnerships, government authorities, or trusts. To learn more,
|
|
145
|
+
# see [Entities](/documentation/entities).
|
|
136
146
|
sig do
|
|
137
147
|
params(
|
|
138
148
|
id: String,
|
|
@@ -154,7 +164,8 @@ module Increase
|
|
|
154
164
|
third_party_verification:
|
|
155
165
|
T.nilable(Increase::Entity::ThirdPartyVerification::OrHash),
|
|
156
166
|
trust: T.nilable(Increase::Entity::Trust::OrHash),
|
|
157
|
-
type: Increase::Entity::Type::OrSymbol
|
|
167
|
+
type: Increase::Entity::Type::OrSymbol,
|
|
168
|
+
validation: T.nilable(Increase::Entity::Validation::OrHash)
|
|
158
169
|
).returns(T.attached_class)
|
|
159
170
|
end
|
|
160
171
|
def self.new(
|
|
@@ -205,7 +216,9 @@ module Increase
|
|
|
205
216
|
trust:,
|
|
206
217
|
# A constant representing the object's type. For this resource it will always be
|
|
207
218
|
# `entity`.
|
|
208
|
-
type
|
|
219
|
+
type:,
|
|
220
|
+
# The validation results for the entity.
|
|
221
|
+
validation:
|
|
209
222
|
)
|
|
210
223
|
end
|
|
211
224
|
|
|
@@ -231,7 +244,8 @@ module Increase
|
|
|
231
244
|
third_party_verification:
|
|
232
245
|
T.nilable(Increase::Entity::ThirdPartyVerification),
|
|
233
246
|
trust: T.nilable(Increase::Entity::Trust),
|
|
234
|
-
type: Increase::Entity::Type::TaggedSymbol
|
|
247
|
+
type: Increase::Entity::Type::TaggedSymbol,
|
|
248
|
+
validation: T.nilable(Increase::Entity::Validation)
|
|
235
249
|
}
|
|
236
250
|
)
|
|
237
251
|
end
|
|
@@ -2720,6 +2734,486 @@ module Increase
|
|
|
2720
2734
|
def self.values
|
|
2721
2735
|
end
|
|
2722
2736
|
end
|
|
2737
|
+
|
|
2738
|
+
class Validation < Increase::Internal::Type::BaseModel
|
|
2739
|
+
OrHash =
|
|
2740
|
+
T.type_alias do
|
|
2741
|
+
T.any(Increase::Entity::Validation, Increase::Internal::AnyHash)
|
|
2742
|
+
end
|
|
2743
|
+
|
|
2744
|
+
# The list of issues that need to be addressed.
|
|
2745
|
+
sig { returns(T::Array[Increase::Entity::Validation::Issue]) }
|
|
2746
|
+
attr_accessor :issues
|
|
2747
|
+
|
|
2748
|
+
# The validation status for the entity. If the status is `invalid`, the `issues`
|
|
2749
|
+
# array will be populated.
|
|
2750
|
+
sig { returns(Increase::Entity::Validation::Status::TaggedSymbol) }
|
|
2751
|
+
attr_accessor :status
|
|
2752
|
+
|
|
2753
|
+
# The validation results for the entity.
|
|
2754
|
+
sig do
|
|
2755
|
+
params(
|
|
2756
|
+
issues: T::Array[Increase::Entity::Validation::Issue::OrHash],
|
|
2757
|
+
status: Increase::Entity::Validation::Status::OrSymbol
|
|
2758
|
+
).returns(T.attached_class)
|
|
2759
|
+
end
|
|
2760
|
+
def self.new(
|
|
2761
|
+
# The list of issues that need to be addressed.
|
|
2762
|
+
issues:,
|
|
2763
|
+
# The validation status for the entity. If the status is `invalid`, the `issues`
|
|
2764
|
+
# array will be populated.
|
|
2765
|
+
status:
|
|
2766
|
+
)
|
|
2767
|
+
end
|
|
2768
|
+
|
|
2769
|
+
sig do
|
|
2770
|
+
override.returns(
|
|
2771
|
+
{
|
|
2772
|
+
issues: T::Array[Increase::Entity::Validation::Issue],
|
|
2773
|
+
status: Increase::Entity::Validation::Status::TaggedSymbol
|
|
2774
|
+
}
|
|
2775
|
+
)
|
|
2776
|
+
end
|
|
2777
|
+
def to_hash
|
|
2778
|
+
end
|
|
2779
|
+
|
|
2780
|
+
class Issue < Increase::Internal::Type::BaseModel
|
|
2781
|
+
OrHash =
|
|
2782
|
+
T.type_alias do
|
|
2783
|
+
T.any(
|
|
2784
|
+
Increase::Entity::Validation::Issue,
|
|
2785
|
+
Increase::Internal::AnyHash
|
|
2786
|
+
)
|
|
2787
|
+
end
|
|
2788
|
+
|
|
2789
|
+
# Details when the issue is with a beneficial owner's address.
|
|
2790
|
+
sig do
|
|
2791
|
+
returns(
|
|
2792
|
+
T.nilable(
|
|
2793
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress
|
|
2794
|
+
)
|
|
2795
|
+
)
|
|
2796
|
+
end
|
|
2797
|
+
attr_reader :beneficial_owner_address
|
|
2798
|
+
|
|
2799
|
+
sig do
|
|
2800
|
+
params(
|
|
2801
|
+
beneficial_owner_address:
|
|
2802
|
+
T.nilable(
|
|
2803
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::OrHash
|
|
2804
|
+
)
|
|
2805
|
+
).void
|
|
2806
|
+
end
|
|
2807
|
+
attr_writer :beneficial_owner_address
|
|
2808
|
+
|
|
2809
|
+
# Details when the issue is with a beneficial owner's identity verification.
|
|
2810
|
+
sig do
|
|
2811
|
+
returns(
|
|
2812
|
+
T.nilable(
|
|
2813
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerIdentity
|
|
2814
|
+
)
|
|
2815
|
+
)
|
|
2816
|
+
end
|
|
2817
|
+
attr_reader :beneficial_owner_identity
|
|
2818
|
+
|
|
2819
|
+
sig do
|
|
2820
|
+
params(
|
|
2821
|
+
beneficial_owner_identity:
|
|
2822
|
+
T.nilable(
|
|
2823
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerIdentity::OrHash
|
|
2824
|
+
)
|
|
2825
|
+
).void
|
|
2826
|
+
end
|
|
2827
|
+
attr_writer :beneficial_owner_identity
|
|
2828
|
+
|
|
2829
|
+
# The type of issue. We may add additional possible values for this enum over
|
|
2830
|
+
# time; your application should be able to handle such additions gracefully.
|
|
2831
|
+
sig do
|
|
2832
|
+
returns(Increase::Entity::Validation::Issue::Category::TaggedSymbol)
|
|
2833
|
+
end
|
|
2834
|
+
attr_accessor :category
|
|
2835
|
+
|
|
2836
|
+
# Details when the issue is with the entity's address.
|
|
2837
|
+
sig do
|
|
2838
|
+
returns(
|
|
2839
|
+
T.nilable(Increase::Entity::Validation::Issue::EntityAddress)
|
|
2840
|
+
)
|
|
2841
|
+
end
|
|
2842
|
+
attr_reader :entity_address
|
|
2843
|
+
|
|
2844
|
+
sig do
|
|
2845
|
+
params(
|
|
2846
|
+
entity_address:
|
|
2847
|
+
T.nilable(
|
|
2848
|
+
Increase::Entity::Validation::Issue::EntityAddress::OrHash
|
|
2849
|
+
)
|
|
2850
|
+
).void
|
|
2851
|
+
end
|
|
2852
|
+
attr_writer :entity_address
|
|
2853
|
+
|
|
2854
|
+
# Details when the issue is with the entity's tax ID.
|
|
2855
|
+
sig do
|
|
2856
|
+
returns(
|
|
2857
|
+
T.nilable(
|
|
2858
|
+
Increase::Entity::Validation::Issue::EntityTaxIdentifier
|
|
2859
|
+
)
|
|
2860
|
+
)
|
|
2861
|
+
end
|
|
2862
|
+
attr_reader :entity_tax_identifier
|
|
2863
|
+
|
|
2864
|
+
sig do
|
|
2865
|
+
params(
|
|
2866
|
+
entity_tax_identifier:
|
|
2867
|
+
T.nilable(
|
|
2868
|
+
Increase::Entity::Validation::Issue::EntityTaxIdentifier::OrHash
|
|
2869
|
+
)
|
|
2870
|
+
).void
|
|
2871
|
+
end
|
|
2872
|
+
attr_writer :entity_tax_identifier
|
|
2873
|
+
|
|
2874
|
+
sig do
|
|
2875
|
+
params(
|
|
2876
|
+
beneficial_owner_address:
|
|
2877
|
+
T.nilable(
|
|
2878
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::OrHash
|
|
2879
|
+
),
|
|
2880
|
+
beneficial_owner_identity:
|
|
2881
|
+
T.nilable(
|
|
2882
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerIdentity::OrHash
|
|
2883
|
+
),
|
|
2884
|
+
category: Increase::Entity::Validation::Issue::Category::OrSymbol,
|
|
2885
|
+
entity_address:
|
|
2886
|
+
T.nilable(
|
|
2887
|
+
Increase::Entity::Validation::Issue::EntityAddress::OrHash
|
|
2888
|
+
),
|
|
2889
|
+
entity_tax_identifier:
|
|
2890
|
+
T.nilable(
|
|
2891
|
+
Increase::Entity::Validation::Issue::EntityTaxIdentifier::OrHash
|
|
2892
|
+
)
|
|
2893
|
+
).returns(T.attached_class)
|
|
2894
|
+
end
|
|
2895
|
+
def self.new(
|
|
2896
|
+
# Details when the issue is with a beneficial owner's address.
|
|
2897
|
+
beneficial_owner_address:,
|
|
2898
|
+
# Details when the issue is with a beneficial owner's identity verification.
|
|
2899
|
+
beneficial_owner_identity:,
|
|
2900
|
+
# The type of issue. We may add additional possible values for this enum over
|
|
2901
|
+
# time; your application should be able to handle such additions gracefully.
|
|
2902
|
+
category:,
|
|
2903
|
+
# Details when the issue is with the entity's address.
|
|
2904
|
+
entity_address:,
|
|
2905
|
+
# Details when the issue is with the entity's tax ID.
|
|
2906
|
+
entity_tax_identifier:
|
|
2907
|
+
)
|
|
2908
|
+
end
|
|
2909
|
+
|
|
2910
|
+
sig do
|
|
2911
|
+
override.returns(
|
|
2912
|
+
{
|
|
2913
|
+
beneficial_owner_address:
|
|
2914
|
+
T.nilable(
|
|
2915
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress
|
|
2916
|
+
),
|
|
2917
|
+
beneficial_owner_identity:
|
|
2918
|
+
T.nilable(
|
|
2919
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerIdentity
|
|
2920
|
+
),
|
|
2921
|
+
category:
|
|
2922
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol,
|
|
2923
|
+
entity_address:
|
|
2924
|
+
T.nilable(Increase::Entity::Validation::Issue::EntityAddress),
|
|
2925
|
+
entity_tax_identifier:
|
|
2926
|
+
T.nilable(
|
|
2927
|
+
Increase::Entity::Validation::Issue::EntityTaxIdentifier
|
|
2928
|
+
)
|
|
2929
|
+
}
|
|
2930
|
+
)
|
|
2931
|
+
end
|
|
2932
|
+
def to_hash
|
|
2933
|
+
end
|
|
2934
|
+
|
|
2935
|
+
class BeneficialOwnerAddress < Increase::Internal::Type::BaseModel
|
|
2936
|
+
OrHash =
|
|
2937
|
+
T.type_alias do
|
|
2938
|
+
T.any(
|
|
2939
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress,
|
|
2940
|
+
Increase::Internal::AnyHash
|
|
2941
|
+
)
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
# The ID of the beneficial owner.
|
|
2945
|
+
sig { returns(String) }
|
|
2946
|
+
attr_accessor :beneficial_owner_id
|
|
2947
|
+
|
|
2948
|
+
# The reason the address is invalid.
|
|
2949
|
+
sig do
|
|
2950
|
+
returns(
|
|
2951
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason::TaggedSymbol
|
|
2952
|
+
)
|
|
2953
|
+
end
|
|
2954
|
+
attr_accessor :reason
|
|
2955
|
+
|
|
2956
|
+
# Details when the issue is with a beneficial owner's address.
|
|
2957
|
+
sig do
|
|
2958
|
+
params(
|
|
2959
|
+
beneficial_owner_id: String,
|
|
2960
|
+
reason:
|
|
2961
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason::OrSymbol
|
|
2962
|
+
).returns(T.attached_class)
|
|
2963
|
+
end
|
|
2964
|
+
def self.new(
|
|
2965
|
+
# The ID of the beneficial owner.
|
|
2966
|
+
beneficial_owner_id:,
|
|
2967
|
+
# The reason the address is invalid.
|
|
2968
|
+
reason:
|
|
2969
|
+
)
|
|
2970
|
+
end
|
|
2971
|
+
|
|
2972
|
+
sig do
|
|
2973
|
+
override.returns(
|
|
2974
|
+
{
|
|
2975
|
+
beneficial_owner_id: String,
|
|
2976
|
+
reason:
|
|
2977
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason::TaggedSymbol
|
|
2978
|
+
}
|
|
2979
|
+
)
|
|
2980
|
+
end
|
|
2981
|
+
def to_hash
|
|
2982
|
+
end
|
|
2983
|
+
|
|
2984
|
+
# The reason the address is invalid.
|
|
2985
|
+
module Reason
|
|
2986
|
+
extend Increase::Internal::Type::Enum
|
|
2987
|
+
|
|
2988
|
+
TaggedSymbol =
|
|
2989
|
+
T.type_alias do
|
|
2990
|
+
T.all(
|
|
2991
|
+
Symbol,
|
|
2992
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason
|
|
2993
|
+
)
|
|
2994
|
+
end
|
|
2995
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2996
|
+
|
|
2997
|
+
# The address is a mailbox or other non-physical address.
|
|
2998
|
+
MAILBOX_ADDRESS =
|
|
2999
|
+
T.let(
|
|
3000
|
+
:mailbox_address,
|
|
3001
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason::TaggedSymbol
|
|
3002
|
+
)
|
|
3003
|
+
|
|
3004
|
+
sig do
|
|
3005
|
+
override.returns(
|
|
3006
|
+
T::Array[
|
|
3007
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerAddress::Reason::TaggedSymbol
|
|
3008
|
+
]
|
|
3009
|
+
)
|
|
3010
|
+
end
|
|
3011
|
+
def self.values
|
|
3012
|
+
end
|
|
3013
|
+
end
|
|
3014
|
+
end
|
|
3015
|
+
|
|
3016
|
+
class BeneficialOwnerIdentity < Increase::Internal::Type::BaseModel
|
|
3017
|
+
OrHash =
|
|
3018
|
+
T.type_alias do
|
|
3019
|
+
T.any(
|
|
3020
|
+
Increase::Entity::Validation::Issue::BeneficialOwnerIdentity,
|
|
3021
|
+
Increase::Internal::AnyHash
|
|
3022
|
+
)
|
|
3023
|
+
end
|
|
3024
|
+
|
|
3025
|
+
# The ID of the beneficial owner.
|
|
3026
|
+
sig { returns(String) }
|
|
3027
|
+
attr_accessor :beneficial_owner_id
|
|
3028
|
+
|
|
3029
|
+
# Details when the issue is with a beneficial owner's identity verification.
|
|
3030
|
+
sig do
|
|
3031
|
+
params(beneficial_owner_id: String).returns(T.attached_class)
|
|
3032
|
+
end
|
|
3033
|
+
def self.new(
|
|
3034
|
+
# The ID of the beneficial owner.
|
|
3035
|
+
beneficial_owner_id:
|
|
3036
|
+
)
|
|
3037
|
+
end
|
|
3038
|
+
|
|
3039
|
+
sig { override.returns({ beneficial_owner_id: String }) }
|
|
3040
|
+
def to_hash
|
|
3041
|
+
end
|
|
3042
|
+
end
|
|
3043
|
+
|
|
3044
|
+
# The type of issue. We may add additional possible values for this enum over
|
|
3045
|
+
# time; your application should be able to handle such additions gracefully.
|
|
3046
|
+
module Category
|
|
3047
|
+
extend Increase::Internal::Type::Enum
|
|
3048
|
+
|
|
3049
|
+
TaggedSymbol =
|
|
3050
|
+
T.type_alias do
|
|
3051
|
+
T.all(Symbol, Increase::Entity::Validation::Issue::Category)
|
|
3052
|
+
end
|
|
3053
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3054
|
+
|
|
3055
|
+
# The entity's tax identifier could not be validated. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
|
|
3056
|
+
ENTITY_TAX_IDENTIFIER =
|
|
3057
|
+
T.let(
|
|
3058
|
+
:entity_tax_identifier,
|
|
3059
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3060
|
+
)
|
|
3061
|
+
|
|
3062
|
+
# 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).
|
|
3063
|
+
ENTITY_ADDRESS =
|
|
3064
|
+
T.let(
|
|
3065
|
+
:entity_address,
|
|
3066
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3067
|
+
)
|
|
3068
|
+
|
|
3069
|
+
# 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).
|
|
3070
|
+
BENEFICIAL_OWNER_IDENTITY =
|
|
3071
|
+
T.let(
|
|
3072
|
+
:beneficial_owner_identity,
|
|
3073
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3074
|
+
)
|
|
3075
|
+
|
|
3076
|
+
# 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).
|
|
3077
|
+
BENEFICIAL_OWNER_ADDRESS =
|
|
3078
|
+
T.let(
|
|
3079
|
+
:beneficial_owner_address,
|
|
3080
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3081
|
+
)
|
|
3082
|
+
|
|
3083
|
+
sig do
|
|
3084
|
+
override.returns(
|
|
3085
|
+
T::Array[
|
|
3086
|
+
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3087
|
+
]
|
|
3088
|
+
)
|
|
3089
|
+
end
|
|
3090
|
+
def self.values
|
|
3091
|
+
end
|
|
3092
|
+
end
|
|
3093
|
+
|
|
3094
|
+
class EntityAddress < Increase::Internal::Type::BaseModel
|
|
3095
|
+
OrHash =
|
|
3096
|
+
T.type_alias do
|
|
3097
|
+
T.any(
|
|
3098
|
+
Increase::Entity::Validation::Issue::EntityAddress,
|
|
3099
|
+
Increase::Internal::AnyHash
|
|
3100
|
+
)
|
|
3101
|
+
end
|
|
3102
|
+
|
|
3103
|
+
# The reason the address is invalid.
|
|
3104
|
+
sig do
|
|
3105
|
+
returns(
|
|
3106
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason::TaggedSymbol
|
|
3107
|
+
)
|
|
3108
|
+
end
|
|
3109
|
+
attr_accessor :reason
|
|
3110
|
+
|
|
3111
|
+
# Details when the issue is with the entity's address.
|
|
3112
|
+
sig do
|
|
3113
|
+
params(
|
|
3114
|
+
reason:
|
|
3115
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason::OrSymbol
|
|
3116
|
+
).returns(T.attached_class)
|
|
3117
|
+
end
|
|
3118
|
+
def self.new(
|
|
3119
|
+
# The reason the address is invalid.
|
|
3120
|
+
reason:
|
|
3121
|
+
)
|
|
3122
|
+
end
|
|
3123
|
+
|
|
3124
|
+
sig do
|
|
3125
|
+
override.returns(
|
|
3126
|
+
{
|
|
3127
|
+
reason:
|
|
3128
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason::TaggedSymbol
|
|
3129
|
+
}
|
|
3130
|
+
)
|
|
3131
|
+
end
|
|
3132
|
+
def to_hash
|
|
3133
|
+
end
|
|
3134
|
+
|
|
3135
|
+
# The reason the address is invalid.
|
|
3136
|
+
module Reason
|
|
3137
|
+
extend Increase::Internal::Type::Enum
|
|
3138
|
+
|
|
3139
|
+
TaggedSymbol =
|
|
3140
|
+
T.type_alias do
|
|
3141
|
+
T.all(
|
|
3142
|
+
Symbol,
|
|
3143
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason
|
|
3144
|
+
)
|
|
3145
|
+
end
|
|
3146
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3147
|
+
|
|
3148
|
+
# The address is a mailbox or other non-physical address.
|
|
3149
|
+
MAILBOX_ADDRESS =
|
|
3150
|
+
T.let(
|
|
3151
|
+
:mailbox_address,
|
|
3152
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason::TaggedSymbol
|
|
3153
|
+
)
|
|
3154
|
+
|
|
3155
|
+
sig do
|
|
3156
|
+
override.returns(
|
|
3157
|
+
T::Array[
|
|
3158
|
+
Increase::Entity::Validation::Issue::EntityAddress::Reason::TaggedSymbol
|
|
3159
|
+
]
|
|
3160
|
+
)
|
|
3161
|
+
end
|
|
3162
|
+
def self.values
|
|
3163
|
+
end
|
|
3164
|
+
end
|
|
3165
|
+
end
|
|
3166
|
+
|
|
3167
|
+
class EntityTaxIdentifier < Increase::Internal::Type::BaseModel
|
|
3168
|
+
OrHash =
|
|
3169
|
+
T.type_alias do
|
|
3170
|
+
T.any(
|
|
3171
|
+
Increase::Entity::Validation::Issue::EntityTaxIdentifier,
|
|
3172
|
+
Increase::Internal::AnyHash
|
|
3173
|
+
)
|
|
3174
|
+
end
|
|
3175
|
+
|
|
3176
|
+
# Details when the issue is with the entity's tax ID.
|
|
3177
|
+
sig { returns(T.attached_class) }
|
|
3178
|
+
def self.new
|
|
3179
|
+
end
|
|
3180
|
+
|
|
3181
|
+
sig { override.returns({}) }
|
|
3182
|
+
def to_hash
|
|
3183
|
+
end
|
|
3184
|
+
end
|
|
3185
|
+
end
|
|
3186
|
+
|
|
3187
|
+
# The validation status for the entity. If the status is `invalid`, the `issues`
|
|
3188
|
+
# array will be populated.
|
|
3189
|
+
module Status
|
|
3190
|
+
extend Increase::Internal::Type::Enum
|
|
3191
|
+
|
|
3192
|
+
TaggedSymbol =
|
|
3193
|
+
T.type_alias { T.all(Symbol, Increase::Entity::Validation::Status) }
|
|
3194
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3195
|
+
|
|
3196
|
+
# The submitted data is being validated.
|
|
3197
|
+
PENDING =
|
|
3198
|
+
T.let(:pending, Increase::Entity::Validation::Status::TaggedSymbol)
|
|
3199
|
+
|
|
3200
|
+
# The submitted data is valid.
|
|
3201
|
+
VALID =
|
|
3202
|
+
T.let(:valid, Increase::Entity::Validation::Status::TaggedSymbol)
|
|
3203
|
+
|
|
3204
|
+
# Additional information is required to validate the data.
|
|
3205
|
+
INVALID =
|
|
3206
|
+
T.let(:invalid, Increase::Entity::Validation::Status::TaggedSymbol)
|
|
3207
|
+
|
|
3208
|
+
sig do
|
|
3209
|
+
override.returns(
|
|
3210
|
+
T::Array[Increase::Entity::Validation::Status::TaggedSymbol]
|
|
3211
|
+
)
|
|
3212
|
+
end
|
|
3213
|
+
def self.values
|
|
3214
|
+
end
|
|
3215
|
+
end
|
|
3216
|
+
end
|
|
2723
3217
|
end
|
|
2724
3218
|
end
|
|
2725
3219
|
end
|
|
@@ -18,7 +18,8 @@ module Increase
|
|
|
18
18
|
terms_agreements: ::Array[Increase::Entity::TermsAgreement],
|
|
19
19
|
third_party_verification: Increase::Entity::ThirdPartyVerification?,
|
|
20
20
|
trust: Increase::Entity::Trust?,
|
|
21
|
-
type: Increase::Models::Entity::type_
|
|
21
|
+
type: Increase::Models::Entity::type_,
|
|
22
|
+
validation: Increase::Entity::Validation?
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
class Entity < Increase::Internal::Type::BaseModel
|
|
@@ -56,6 +57,8 @@ module Increase
|
|
|
56
57
|
|
|
57
58
|
attr_accessor type: Increase::Models::Entity::type_
|
|
58
59
|
|
|
60
|
+
attr_accessor validation: Increase::Entity::Validation?
|
|
61
|
+
|
|
59
62
|
def initialize: (
|
|
60
63
|
id: String,
|
|
61
64
|
corporation: Increase::Entity::Corporation?,
|
|
@@ -73,7 +76,8 @@ module Increase
|
|
|
73
76
|
terms_agreements: ::Array[Increase::Entity::TermsAgreement],
|
|
74
77
|
third_party_verification: Increase::Entity::ThirdPartyVerification?,
|
|
75
78
|
trust: Increase::Entity::Trust?,
|
|
76
|
-
type: Increase::Models::Entity::type_
|
|
79
|
+
type: Increase::Models::Entity::type_,
|
|
80
|
+
validation: Increase::Entity::Validation?
|
|
77
81
|
) -> void
|
|
78
82
|
|
|
79
83
|
def to_hash: -> {
|
|
@@ -93,7 +97,8 @@ module Increase
|
|
|
93
97
|
terms_agreements: ::Array[Increase::Entity::TermsAgreement],
|
|
94
98
|
third_party_verification: Increase::Entity::ThirdPartyVerification?,
|
|
95
99
|
trust: Increase::Entity::Trust?,
|
|
96
|
-
type: Increase::Models::Entity::type_
|
|
100
|
+
type: Increase::Models::Entity::type_,
|
|
101
|
+
validation: Increase::Entity::Validation?
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
type corporation =
|
|
@@ -1255,6 +1260,185 @@ module Increase
|
|
|
1255
1260
|
|
|
1256
1261
|
def self?.values: -> ::Array[Increase::Models::Entity::type_]
|
|
1257
1262
|
end
|
|
1263
|
+
|
|
1264
|
+
type validation =
|
|
1265
|
+
{
|
|
1266
|
+
issues: ::Array[Increase::Entity::Validation::Issue],
|
|
1267
|
+
status: Increase::Models::Entity::Validation::status
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
class Validation < Increase::Internal::Type::BaseModel
|
|
1271
|
+
attr_accessor issues: ::Array[Increase::Entity::Validation::Issue]
|
|
1272
|
+
|
|
1273
|
+
attr_accessor status: Increase::Models::Entity::Validation::status
|
|
1274
|
+
|
|
1275
|
+
def initialize: (
|
|
1276
|
+
issues: ::Array[Increase::Entity::Validation::Issue],
|
|
1277
|
+
status: Increase::Models::Entity::Validation::status
|
|
1278
|
+
) -> void
|
|
1279
|
+
|
|
1280
|
+
def to_hash: -> {
|
|
1281
|
+
issues: ::Array[Increase::Entity::Validation::Issue],
|
|
1282
|
+
status: Increase::Models::Entity::Validation::status
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
type issue =
|
|
1286
|
+
{
|
|
1287
|
+
beneficial_owner_address: Increase::Entity::Validation::Issue::BeneficialOwnerAddress?,
|
|
1288
|
+
beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
|
|
1289
|
+
category: Increase::Models::Entity::Validation::Issue::category,
|
|
1290
|
+
entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
|
|
1291
|
+
entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
class Issue < Increase::Internal::Type::BaseModel
|
|
1295
|
+
attr_accessor beneficial_owner_address: Increase::Entity::Validation::Issue::BeneficialOwnerAddress?
|
|
1296
|
+
|
|
1297
|
+
attr_accessor beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?
|
|
1298
|
+
|
|
1299
|
+
attr_accessor category: Increase::Models::Entity::Validation::Issue::category
|
|
1300
|
+
|
|
1301
|
+
attr_accessor entity_address: Increase::Entity::Validation::Issue::EntityAddress?
|
|
1302
|
+
|
|
1303
|
+
attr_accessor entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
|
|
1304
|
+
|
|
1305
|
+
def initialize: (
|
|
1306
|
+
beneficial_owner_address: Increase::Entity::Validation::Issue::BeneficialOwnerAddress?,
|
|
1307
|
+
beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
|
|
1308
|
+
category: Increase::Models::Entity::Validation::Issue::category,
|
|
1309
|
+
entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
|
|
1310
|
+
entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
|
|
1311
|
+
) -> void
|
|
1312
|
+
|
|
1313
|
+
def to_hash: -> {
|
|
1314
|
+
beneficial_owner_address: Increase::Entity::Validation::Issue::BeneficialOwnerAddress?,
|
|
1315
|
+
beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
|
|
1316
|
+
category: Increase::Models::Entity::Validation::Issue::category,
|
|
1317
|
+
entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
|
|
1318
|
+
entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
type beneficial_owner_address =
|
|
1322
|
+
{
|
|
1323
|
+
beneficial_owner_id: String,
|
|
1324
|
+
reason: Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::reason
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
class BeneficialOwnerAddress < Increase::Internal::Type::BaseModel
|
|
1328
|
+
attr_accessor beneficial_owner_id: String
|
|
1329
|
+
|
|
1330
|
+
attr_accessor reason: Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::reason
|
|
1331
|
+
|
|
1332
|
+
def initialize: (
|
|
1333
|
+
beneficial_owner_id: String,
|
|
1334
|
+
reason: Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::reason
|
|
1335
|
+
) -> void
|
|
1336
|
+
|
|
1337
|
+
def to_hash: -> {
|
|
1338
|
+
beneficial_owner_id: String,
|
|
1339
|
+
reason: Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::reason
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
type reason = :mailbox_address
|
|
1343
|
+
|
|
1344
|
+
module Reason
|
|
1345
|
+
extend Increase::Internal::Type::Enum
|
|
1346
|
+
|
|
1347
|
+
# The address is a mailbox or other non-physical address.
|
|
1348
|
+
MAILBOX_ADDRESS: :mailbox_address
|
|
1349
|
+
|
|
1350
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Validation::Issue::BeneficialOwnerAddress::reason]
|
|
1351
|
+
end
|
|
1352
|
+
end
|
|
1353
|
+
|
|
1354
|
+
type beneficial_owner_identity = { beneficial_owner_id: String }
|
|
1355
|
+
|
|
1356
|
+
class BeneficialOwnerIdentity < Increase::Internal::Type::BaseModel
|
|
1357
|
+
attr_accessor beneficial_owner_id: String
|
|
1358
|
+
|
|
1359
|
+
def initialize: (beneficial_owner_id: String) -> void
|
|
1360
|
+
|
|
1361
|
+
def to_hash: -> { beneficial_owner_id: String }
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
type category =
|
|
1365
|
+
:entity_tax_identifier
|
|
1366
|
+
| :entity_address
|
|
1367
|
+
| :beneficial_owner_identity
|
|
1368
|
+
| :beneficial_owner_address
|
|
1369
|
+
|
|
1370
|
+
module Category
|
|
1371
|
+
extend Increase::Internal::Type::Enum
|
|
1372
|
+
|
|
1373
|
+
# The entity's tax identifier could not be validated. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
|
|
1374
|
+
ENTITY_TAX_IDENTIFIER: :entity_tax_identifier
|
|
1375
|
+
|
|
1376
|
+
# 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).
|
|
1377
|
+
ENTITY_ADDRESS: :entity_address
|
|
1378
|
+
|
|
1379
|
+
# 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).
|
|
1380
|
+
BENEFICIAL_OWNER_IDENTITY: :beneficial_owner_identity
|
|
1381
|
+
|
|
1382
|
+
# 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).
|
|
1383
|
+
BENEFICIAL_OWNER_ADDRESS: :beneficial_owner_address
|
|
1384
|
+
|
|
1385
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Validation::Issue::category]
|
|
1386
|
+
end
|
|
1387
|
+
|
|
1388
|
+
type entity_address =
|
|
1389
|
+
{
|
|
1390
|
+
reason: Increase::Models::Entity::Validation::Issue::EntityAddress::reason
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
class EntityAddress < Increase::Internal::Type::BaseModel
|
|
1394
|
+
attr_accessor reason: Increase::Models::Entity::Validation::Issue::EntityAddress::reason
|
|
1395
|
+
|
|
1396
|
+
def initialize: (
|
|
1397
|
+
reason: Increase::Models::Entity::Validation::Issue::EntityAddress::reason
|
|
1398
|
+
) -> void
|
|
1399
|
+
|
|
1400
|
+
def to_hash: -> {
|
|
1401
|
+
reason: Increase::Models::Entity::Validation::Issue::EntityAddress::reason
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
type reason = :mailbox_address
|
|
1405
|
+
|
|
1406
|
+
module Reason
|
|
1407
|
+
extend Increase::Internal::Type::Enum
|
|
1408
|
+
|
|
1409
|
+
# The address is a mailbox or other non-physical address.
|
|
1410
|
+
MAILBOX_ADDRESS: :mailbox_address
|
|
1411
|
+
|
|
1412
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Validation::Issue::EntityAddress::reason]
|
|
1413
|
+
end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
type entity_tax_identifier = { }
|
|
1417
|
+
|
|
1418
|
+
class EntityTaxIdentifier < Increase::Internal::Type::BaseModel
|
|
1419
|
+
def initialize: -> void
|
|
1420
|
+
|
|
1421
|
+
def to_hash: -> { }
|
|
1422
|
+
end
|
|
1423
|
+
end
|
|
1424
|
+
|
|
1425
|
+
type status = :pending | :valid | :invalid
|
|
1426
|
+
|
|
1427
|
+
module Status
|
|
1428
|
+
extend Increase::Internal::Type::Enum
|
|
1429
|
+
|
|
1430
|
+
# The submitted data is being validated.
|
|
1431
|
+
PENDING: :pending
|
|
1432
|
+
|
|
1433
|
+
# The submitted data is valid.
|
|
1434
|
+
VALID: :valid
|
|
1435
|
+
|
|
1436
|
+
# Additional information is required to validate the data.
|
|
1437
|
+
INVALID: :invalid
|
|
1438
|
+
|
|
1439
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Validation::status]
|
|
1440
|
+
end
|
|
1441
|
+
end
|
|
1258
1442
|
end
|
|
1259
1443
|
end
|
|
1260
1444
|
end
|