modern_treasury 0.29.2 → 0.30.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 +25 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +4 -0
- data/lib/modern_treasury/models/child_legal_entity.rb +3 -207
- data/lib/modern_treasury/models/identification.rb +209 -0
- data/lib/modern_treasury/models/identification_create_params.rb +231 -0
- data/lib/modern_treasury/models/identification_retrieve_params.rb +20 -0
- data/lib/modern_treasury/models/identification_update_params.rb +176 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +12 -1
- data/lib/modern_treasury/models/legal_entity.rb +3 -207
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +17 -9
- data/lib/modern_treasury/models/virtual_account_create_params.rb +9 -1
- data/lib/modern_treasury/models.rb +8 -0
- data/lib/modern_treasury/resources/identifications.rb +106 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/legal_entity_associations.rb +5 -3
- data/lib/modern_treasury/resources/virtual_accounts.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +5 -0
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +3 -652
- data/rbi/modern_treasury/models/identification.rbi +346 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +768 -0
- data/rbi/modern_treasury/models/identification_retrieve_params.rbi +38 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +632 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +17 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +3 -647
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -8
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +11 -0
- data/rbi/modern_treasury/models.rbi +11 -0
- data/rbi/modern_treasury/resources/identifications.rbi +94 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +6 -0
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +6 -3
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +3 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +4 -282
- data/sig/modern_treasury/models/identification.rbs +281 -0
- data/sig/modern_treasury/models/identification_create_params.rbs +323 -0
- data/sig/modern_treasury/models/identification_retrieve_params.rbs +23 -0
- data/sig/modern_treasury/models/identification_update_params.rbs +268 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity.rbs +4 -282
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +16 -5
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +7 -0
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/identifications.rbs +33 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +2 -1
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -0
- metadata +17 -2
|
@@ -14,10 +14,6 @@ module ModernTreasury
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# The ID of the child legal entity.
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :child_legal_entity_id
|
|
20
|
-
|
|
21
17
|
# The ID of the parent legal entity. This must be a business legal entity.
|
|
22
18
|
sig { returns(String) }
|
|
23
19
|
attr_accessor :parent_legal_entity_id
|
|
@@ -31,6 +27,24 @@ module ModernTreasury
|
|
|
31
27
|
end
|
|
32
28
|
attr_accessor :relationship_types
|
|
33
29
|
|
|
30
|
+
# The child legal entity.
|
|
31
|
+
sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
|
|
32
|
+
attr_reader :child_legal_entity
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :child_legal_entity
|
|
40
|
+
|
|
41
|
+
# The ID of the child legal entity.
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_reader :child_legal_entity_id
|
|
44
|
+
|
|
45
|
+
sig { params(child_legal_entity_id: String).void }
|
|
46
|
+
attr_writer :child_legal_entity_id
|
|
47
|
+
|
|
34
48
|
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
35
49
|
sig { returns(T.nilable(Integer)) }
|
|
36
50
|
attr_accessor :ownership_percentage
|
|
@@ -41,23 +55,26 @@ module ModernTreasury
|
|
|
41
55
|
|
|
42
56
|
sig do
|
|
43
57
|
params(
|
|
44
|
-
child_legal_entity_id: String,
|
|
45
58
|
parent_legal_entity_id: String,
|
|
46
59
|
relationship_types:
|
|
47
60
|
T::Array[
|
|
48
61
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
49
62
|
],
|
|
63
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
|
|
64
|
+
child_legal_entity_id: String,
|
|
50
65
|
ownership_percentage: T.nilable(Integer),
|
|
51
66
|
title: T.nilable(String),
|
|
52
67
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
53
68
|
).returns(T.attached_class)
|
|
54
69
|
end
|
|
55
70
|
def self.new(
|
|
56
|
-
# The ID of the child legal entity.
|
|
57
|
-
child_legal_entity_id:,
|
|
58
71
|
# The ID of the parent legal entity. This must be a business legal entity.
|
|
59
72
|
parent_legal_entity_id:,
|
|
60
73
|
relationship_types:,
|
|
74
|
+
# The child legal entity.
|
|
75
|
+
child_legal_entity: nil,
|
|
76
|
+
# The ID of the child legal entity.
|
|
77
|
+
child_legal_entity_id: nil,
|
|
61
78
|
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
62
79
|
ownership_percentage: nil,
|
|
63
80
|
# The job title of the child entity at the parent entity.
|
|
@@ -69,12 +86,13 @@ module ModernTreasury
|
|
|
69
86
|
sig do
|
|
70
87
|
override.returns(
|
|
71
88
|
{
|
|
72
|
-
child_legal_entity_id: String,
|
|
73
89
|
parent_legal_entity_id: String,
|
|
74
90
|
relationship_types:
|
|
75
91
|
T::Array[
|
|
76
92
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
77
93
|
],
|
|
94
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
95
|
+
child_legal_entity_id: String,
|
|
78
96
|
ownership_percentage: T.nilable(Integer),
|
|
79
97
|
title: T.nilable(String),
|
|
80
98
|
request_options: ModernTreasury::RequestOptions
|
|
@@ -87,6 +87,13 @@ module ModernTreasury
|
|
|
87
87
|
end
|
|
88
88
|
attr_writer :ledger_account
|
|
89
89
|
|
|
90
|
+
# The ledger account that you'd like to link to the virtual account.
|
|
91
|
+
sig { returns(T.nilable(String)) }
|
|
92
|
+
attr_reader :ledger_account_id
|
|
93
|
+
|
|
94
|
+
sig { params(ledger_account_id: String).void }
|
|
95
|
+
attr_writer :ledger_account_id
|
|
96
|
+
|
|
90
97
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
91
98
|
# strings.
|
|
92
99
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -135,6 +142,7 @@ module ModernTreasury
|
|
|
135
142
|
debit_ledger_account_id: String,
|
|
136
143
|
description: String,
|
|
137
144
|
ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
145
|
+
ledger_account_id: String,
|
|
138
146
|
metadata: T::Hash[Symbol, String],
|
|
139
147
|
routing_details:
|
|
140
148
|
T::Array[
|
|
@@ -167,6 +175,8 @@ module ModernTreasury
|
|
|
167
175
|
# The resulting ledger account is linked to the virtual account for auto-ledgering
|
|
168
176
|
# IPDs.
|
|
169
177
|
ledger_account: nil,
|
|
178
|
+
# The ledger account that you'd like to link to the virtual account.
|
|
179
|
+
ledger_account_id: nil,
|
|
170
180
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
171
181
|
# strings.
|
|
172
182
|
metadata: nil,
|
|
@@ -192,6 +202,7 @@ module ModernTreasury
|
|
|
192
202
|
debit_ledger_account_id: String,
|
|
193
203
|
description: String,
|
|
194
204
|
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
205
|
+
ledger_account_id: String,
|
|
195
206
|
metadata: T::Hash[Symbol, String],
|
|
196
207
|
routing_details:
|
|
197
208
|
T::Array[
|
|
@@ -183,9 +183,20 @@ module ModernTreasury
|
|
|
183
183
|
|
|
184
184
|
HoldUpdateParams = ModernTreasury::Models::HoldUpdateParams
|
|
185
185
|
|
|
186
|
+
Identification = ModernTreasury::Models::Identification
|
|
187
|
+
|
|
188
|
+
IdentificationCreateParams =
|
|
189
|
+
ModernTreasury::Models::IdentificationCreateParams
|
|
190
|
+
|
|
186
191
|
IdentificationCreateRequest =
|
|
187
192
|
ModernTreasury::Models::IdentificationCreateRequest
|
|
188
193
|
|
|
194
|
+
IdentificationRetrieveParams =
|
|
195
|
+
ModernTreasury::Models::IdentificationRetrieveParams
|
|
196
|
+
|
|
197
|
+
IdentificationUpdateParams =
|
|
198
|
+
ModernTreasury::Models::IdentificationUpdateParams
|
|
199
|
+
|
|
189
200
|
IncomingPaymentDetail = ModernTreasury::Models::IncomingPaymentDetail
|
|
190
201
|
|
|
191
202
|
IncomingPaymentDetailCreateAsyncParams =
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Resources
|
|
5
|
+
class Identifications
|
|
6
|
+
# Create an Identification for a Legal Entity.
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
id_number: String,
|
|
10
|
+
id_type: ModernTreasury::IdentificationCreateParams::IDType::OrSymbol,
|
|
11
|
+
legal_entity_id: String,
|
|
12
|
+
documents:
|
|
13
|
+
T::Array[
|
|
14
|
+
ModernTreasury::IdentificationCreateParams::Document::OrHash
|
|
15
|
+
],
|
|
16
|
+
expiration_date: T.nilable(Date),
|
|
17
|
+
issuing_country: T.nilable(String),
|
|
18
|
+
issuing_region: T.nilable(String),
|
|
19
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
20
|
+
).returns(ModernTreasury::Identification)
|
|
21
|
+
end
|
|
22
|
+
def create(
|
|
23
|
+
# The ID number of identification document.
|
|
24
|
+
id_number:,
|
|
25
|
+
# The type of ID number.
|
|
26
|
+
id_type:,
|
|
27
|
+
# The ID of the Legal Entity the identification belongs to.
|
|
28
|
+
legal_entity_id:,
|
|
29
|
+
# A list of documents to attach to the identification.
|
|
30
|
+
documents: nil,
|
|
31
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
32
|
+
# authority.
|
|
33
|
+
expiration_date: nil,
|
|
34
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
35
|
+
# identification
|
|
36
|
+
issuing_country: nil,
|
|
37
|
+
# The region in which the identifcation was issued.
|
|
38
|
+
issuing_region: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Get an existing Identification.
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
id: String,
|
|
47
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
48
|
+
).returns(ModernTreasury::Identification)
|
|
49
|
+
end
|
|
50
|
+
def retrieve(
|
|
51
|
+
# The id of an existing identification.
|
|
52
|
+
id,
|
|
53
|
+
request_options: {}
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Update an existing Identification.
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
id: String,
|
|
61
|
+
expiration_date: T.nilable(Date),
|
|
62
|
+
id_number: String,
|
|
63
|
+
id_type: ModernTreasury::IdentificationUpdateParams::IDType::OrSymbol,
|
|
64
|
+
issuing_country: T.nilable(String),
|
|
65
|
+
issuing_region: T.nilable(String),
|
|
66
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
67
|
+
).returns(ModernTreasury::Identification)
|
|
68
|
+
end
|
|
69
|
+
def update(
|
|
70
|
+
# The id of an existing identification.
|
|
71
|
+
id,
|
|
72
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
73
|
+
# authority.
|
|
74
|
+
expiration_date: nil,
|
|
75
|
+
# The ID number of identification document.
|
|
76
|
+
id_number: nil,
|
|
77
|
+
# The type of ID number.
|
|
78
|
+
id_type: nil,
|
|
79
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
80
|
+
# identification
|
|
81
|
+
issuing_country: nil,
|
|
82
|
+
# The region in which the identifcation was issued.
|
|
83
|
+
issuing_region: nil,
|
|
84
|
+
request_options: {}
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @api private
|
|
89
|
+
sig { params(client: ModernTreasury::Client).returns(T.attached_class) }
|
|
90
|
+
def self.new(client:)
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -107,6 +107,7 @@ module ModernTreasury
|
|
|
107
107
|
metadata: T::Hash[Symbol, String],
|
|
108
108
|
name: String,
|
|
109
109
|
parent_account_id: String,
|
|
110
|
+
party_address: ModernTreasury::AddressRequest::OrHash,
|
|
110
111
|
status: ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
|
|
111
112
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
112
113
|
).returns(ModernTreasury::InternalAccount)
|
|
@@ -129,6 +130,11 @@ module ModernTreasury
|
|
|
129
130
|
name: nil,
|
|
130
131
|
# The parent internal account for this account.
|
|
131
132
|
parent_account_id: nil,
|
|
133
|
+
# The address associated with the owner of the internal account. Updating this
|
|
134
|
+
# value does not guarantee that the new address matches the address on record with
|
|
135
|
+
# the account's bank; you are responsible for verifying that the address is
|
|
136
|
+
# accurate.
|
|
137
|
+
party_address: nil,
|
|
132
138
|
# Requests closure of the internal account. The resulting status may be `closed`
|
|
133
139
|
# for vendors that close synchronously.
|
|
134
140
|
status: nil,
|
|
@@ -6,23 +6,26 @@ module ModernTreasury
|
|
|
6
6
|
# Add an associated legal entity to a business legal entity.
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
|
-
child_legal_entity_id: String,
|
|
10
9
|
parent_legal_entity_id: String,
|
|
11
10
|
relationship_types:
|
|
12
11
|
T::Array[
|
|
13
12
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
14
13
|
],
|
|
14
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
|
|
15
|
+
child_legal_entity_id: String,
|
|
15
16
|
ownership_percentage: T.nilable(Integer),
|
|
16
17
|
title: T.nilable(String),
|
|
17
18
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
18
19
|
).returns(ModernTreasury::LegalEntityAssociation)
|
|
19
20
|
end
|
|
20
21
|
def create(
|
|
21
|
-
# The ID of the child legal entity.
|
|
22
|
-
child_legal_entity_id:,
|
|
23
22
|
# The ID of the parent legal entity. This must be a business legal entity.
|
|
24
23
|
parent_legal_entity_id:,
|
|
25
24
|
relationship_types:,
|
|
25
|
+
# The child legal entity.
|
|
26
|
+
child_legal_entity: nil,
|
|
27
|
+
# The ID of the child legal entity.
|
|
28
|
+
child_legal_entity_id: nil,
|
|
26
29
|
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
27
30
|
ownership_percentage: nil,
|
|
28
31
|
# The job title of the child entity at the parent entity.
|
|
@@ -17,6 +17,7 @@ module ModernTreasury
|
|
|
17
17
|
debit_ledger_account_id: String,
|
|
18
18
|
description: String,
|
|
19
19
|
ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
20
|
+
ledger_account_id: String,
|
|
20
21
|
metadata: T::Hash[Symbol, String],
|
|
21
22
|
routing_details:
|
|
22
23
|
T::Array[
|
|
@@ -49,6 +50,8 @@ module ModernTreasury
|
|
|
49
50
|
# The resulting ledger account is linked to the virtual account for auto-ledgering
|
|
50
51
|
# IPDs.
|
|
51
52
|
ledger_account: nil,
|
|
53
|
+
# The ledger account that you'd like to link to the virtual account.
|
|
54
|
+
ledger_account_id: nil,
|
|
52
55
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
53
56
|
# strings.
|
|
54
57
|
metadata: nil,
|
|
@@ -96,6 +96,8 @@ module ModernTreasury
|
|
|
96
96
|
|
|
97
97
|
attr_reader virtual_account_settings: ModernTreasury::Resources::VirtualAccountSettings
|
|
98
98
|
|
|
99
|
+
attr_reader identifications: ModernTreasury::Resources::Identifications
|
|
100
|
+
|
|
99
101
|
def ping: (
|
|
100
102
|
?request_options: ModernTreasury::request_opts
|
|
101
103
|
) -> ModernTreasury::PingResponse
|
|
@@ -21,7 +21,7 @@ module ModernTreasury
|
|
|
21
21
|
expected_activity_volume: Integer?,
|
|
22
22
|
external_id: String?,
|
|
23
23
|
first_name: String?,
|
|
24
|
-
identifications: ::Array[ModernTreasury::
|
|
24
|
+
identifications: ::Array[ModernTreasury::Identification],
|
|
25
25
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
26
26
|
intended_use: String?,
|
|
27
27
|
last_name: String?,
|
|
@@ -92,7 +92,7 @@ module ModernTreasury
|
|
|
92
92
|
|
|
93
93
|
attr_accessor first_name: String?
|
|
94
94
|
|
|
95
|
-
attr_accessor identifications: ::Array[ModernTreasury::
|
|
95
|
+
attr_accessor identifications: ::Array[ModernTreasury::Identification]
|
|
96
96
|
|
|
97
97
|
attr_accessor industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
98
98
|
|
|
@@ -172,7 +172,7 @@ module ModernTreasury
|
|
|
172
172
|
expected_activity_volume: Integer?,
|
|
173
173
|
external_id: String?,
|
|
174
174
|
first_name: String?,
|
|
175
|
-
identifications: ::Array[ModernTreasury::
|
|
175
|
+
identifications: ::Array[ModernTreasury::Identification],
|
|
176
176
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
177
177
|
intended_use: String?,
|
|
178
178
|
last_name: String?,
|
|
@@ -224,7 +224,7 @@ module ModernTreasury
|
|
|
224
224
|
expected_activity_volume: Integer?,
|
|
225
225
|
external_id: String?,
|
|
226
226
|
first_name: String?,
|
|
227
|
-
identifications: ::Array[ModernTreasury::
|
|
227
|
+
identifications: ::Array[ModernTreasury::Identification],
|
|
228
228
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
229
229
|
intended_use: String?,
|
|
230
230
|
last_name: String?,
|
|
@@ -373,284 +373,6 @@ module ModernTreasury
|
|
|
373
373
|
def self?.values: -> ::Array[ModernTreasury::Models::ChildLegalEntity::business_designation]
|
|
374
374
|
end
|
|
375
375
|
|
|
376
|
-
type identification =
|
|
377
|
-
{
|
|
378
|
-
id: String,
|
|
379
|
-
created_at: Time,
|
|
380
|
-
discarded_at: Time?,
|
|
381
|
-
documents: ::Array[ModernTreasury::Document],
|
|
382
|
-
expiration_date: Date?,
|
|
383
|
-
id_type: ModernTreasury::Models::ChildLegalEntity::Identification::id_type,
|
|
384
|
-
issuing_country: String?,
|
|
385
|
-
issuing_region: String?,
|
|
386
|
-
live_mode: bool,
|
|
387
|
-
object: String,
|
|
388
|
-
updated_at: Time
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
392
|
-
attr_accessor id: String
|
|
393
|
-
|
|
394
|
-
attr_accessor created_at: Time
|
|
395
|
-
|
|
396
|
-
attr_accessor discarded_at: Time?
|
|
397
|
-
|
|
398
|
-
attr_accessor documents: ::Array[ModernTreasury::Document]
|
|
399
|
-
|
|
400
|
-
attr_accessor expiration_date: Date?
|
|
401
|
-
|
|
402
|
-
attr_accessor id_type: ModernTreasury::Models::ChildLegalEntity::Identification::id_type
|
|
403
|
-
|
|
404
|
-
attr_accessor issuing_country: String?
|
|
405
|
-
|
|
406
|
-
attr_accessor issuing_region: String?
|
|
407
|
-
|
|
408
|
-
attr_accessor live_mode: bool
|
|
409
|
-
|
|
410
|
-
attr_accessor object: String
|
|
411
|
-
|
|
412
|
-
attr_accessor updated_at: Time
|
|
413
|
-
|
|
414
|
-
def initialize: (
|
|
415
|
-
id: String,
|
|
416
|
-
created_at: Time,
|
|
417
|
-
discarded_at: Time?,
|
|
418
|
-
documents: ::Array[ModernTreasury::Document],
|
|
419
|
-
expiration_date: Date?,
|
|
420
|
-
id_type: ModernTreasury::Models::ChildLegalEntity::Identification::id_type,
|
|
421
|
-
issuing_country: String?,
|
|
422
|
-
issuing_region: String?,
|
|
423
|
-
live_mode: bool,
|
|
424
|
-
object: String,
|
|
425
|
-
updated_at: Time
|
|
426
|
-
) -> void
|
|
427
|
-
|
|
428
|
-
def to_hash: -> {
|
|
429
|
-
id: String,
|
|
430
|
-
created_at: Time,
|
|
431
|
-
discarded_at: Time?,
|
|
432
|
-
documents: ::Array[ModernTreasury::Document],
|
|
433
|
-
expiration_date: Date?,
|
|
434
|
-
id_type: ModernTreasury::Models::ChildLegalEntity::Identification::id_type,
|
|
435
|
-
issuing_country: String?,
|
|
436
|
-
issuing_region: String?,
|
|
437
|
-
live_mode: bool,
|
|
438
|
-
object: String,
|
|
439
|
-
updated_at: Time
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
type id_type =
|
|
443
|
-
:ar_cuil
|
|
444
|
-
| :ar_cuit
|
|
445
|
-
| :at_atin
|
|
446
|
-
| :at_vat
|
|
447
|
-
| :au_abn
|
|
448
|
-
| :au_tfn
|
|
449
|
-
| :be_ent
|
|
450
|
-
| :be_nrn
|
|
451
|
-
| :br_cnpj
|
|
452
|
-
| :br_cpf
|
|
453
|
-
| :ca_bn
|
|
454
|
-
| :ca_sin
|
|
455
|
-
| :ch_ahv
|
|
456
|
-
| :ch_uid
|
|
457
|
-
| :cl_run
|
|
458
|
-
| :cl_rut
|
|
459
|
-
| :co_cedulas
|
|
460
|
-
| :co_nit
|
|
461
|
-
| :cy_tin
|
|
462
|
-
| :cz_ico
|
|
463
|
-
| :cz_rc
|
|
464
|
-
| :de_stid
|
|
465
|
-
| :de_stnr
|
|
466
|
-
| :de_vat
|
|
467
|
-
| :dk_cpr
|
|
468
|
-
| :dk_cvr
|
|
469
|
-
| :drivers_license
|
|
470
|
-
| :ee_ik
|
|
471
|
-
| :ee_rk
|
|
472
|
-
| :es_nie
|
|
473
|
-
| :es_nif
|
|
474
|
-
| :fi_hetu
|
|
475
|
-
| :fi_ytj
|
|
476
|
-
| :fr_nif
|
|
477
|
-
| :fr_siren
|
|
478
|
-
| :fr_vat
|
|
479
|
-
| :gb_nino
|
|
480
|
-
| :gb_utr
|
|
481
|
-
| :gb_vat
|
|
482
|
-
| :generic_international
|
|
483
|
-
| :gr_vat
|
|
484
|
-
| :hk_brn
|
|
485
|
-
| :hk_hkid
|
|
486
|
-
| :hn_id
|
|
487
|
-
| :hn_rtn
|
|
488
|
-
| :hr_oib
|
|
489
|
-
| :hu_adj
|
|
490
|
-
| :hu_anum
|
|
491
|
-
| :ie_pps
|
|
492
|
-
| :ie_trn
|
|
493
|
-
| :in_lei
|
|
494
|
-
| :is_knt
|
|
495
|
-
| :it_cf
|
|
496
|
-
| :it_piva
|
|
497
|
-
| :jp_hb
|
|
498
|
-
| :jp_mn
|
|
499
|
-
| :kr_brn
|
|
500
|
-
| :kr_crn
|
|
501
|
-
| :kr_rrn
|
|
502
|
-
| :li_peid
|
|
503
|
-
| :lt_ak
|
|
504
|
-
| :lt_jak
|
|
505
|
-
| :lu_mtc
|
|
506
|
-
| :lu_vat
|
|
507
|
-
| :lv_pk
|
|
508
|
-
| :lv_rn
|
|
509
|
-
| :mt_tin
|
|
510
|
-
| :mt_vat
|
|
511
|
-
| :mx_curp
|
|
512
|
-
| :mx_ine
|
|
513
|
-
| :mx_rfc
|
|
514
|
-
| :national_id
|
|
515
|
-
| :nl_bsn
|
|
516
|
-
| :nl_btw
|
|
517
|
-
| :nl_rsin
|
|
518
|
-
| :no_fdn
|
|
519
|
-
| :no_mva
|
|
520
|
-
| :no_orgnr
|
|
521
|
-
| :nz_ird
|
|
522
|
-
| :passport
|
|
523
|
-
| :pl_nip
|
|
524
|
-
| :pl_pesel
|
|
525
|
-
| :pt_nif
|
|
526
|
-
| :ro_cnp
|
|
527
|
-
| :ro_cui
|
|
528
|
-
| :sa_tin
|
|
529
|
-
| :sa_vat
|
|
530
|
-
| :se_orgnr
|
|
531
|
-
| :se_pnmr
|
|
532
|
-
| :sg_fin
|
|
533
|
-
| :sg_nric
|
|
534
|
-
| :sg_uen
|
|
535
|
-
| :si_dav
|
|
536
|
-
| :si_tin
|
|
537
|
-
| :sk_ico
|
|
538
|
-
| :sk_rc
|
|
539
|
-
| :us_ein
|
|
540
|
-
| :us_itin
|
|
541
|
-
| :us_ssn
|
|
542
|
-
| :uy_rut
|
|
543
|
-
| :vn_tin
|
|
544
|
-
|
|
545
|
-
module IDType
|
|
546
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
547
|
-
|
|
548
|
-
AR_CUIL: :ar_cuil
|
|
549
|
-
AR_CUIT: :ar_cuit
|
|
550
|
-
AT_ATIN: :at_atin
|
|
551
|
-
AT_VAT: :at_vat
|
|
552
|
-
AU_ABN: :au_abn
|
|
553
|
-
AU_TFN: :au_tfn
|
|
554
|
-
BE_ENT: :be_ent
|
|
555
|
-
BE_NRN: :be_nrn
|
|
556
|
-
BR_CNPJ: :br_cnpj
|
|
557
|
-
BR_CPF: :br_cpf
|
|
558
|
-
CA_BN: :ca_bn
|
|
559
|
-
CA_SIN: :ca_sin
|
|
560
|
-
CH_AHV: :ch_ahv
|
|
561
|
-
CH_UID: :ch_uid
|
|
562
|
-
CL_RUN: :cl_run
|
|
563
|
-
CL_RUT: :cl_rut
|
|
564
|
-
CO_CEDULAS: :co_cedulas
|
|
565
|
-
CO_NIT: :co_nit
|
|
566
|
-
CY_TIN: :cy_tin
|
|
567
|
-
CZ_ICO: :cz_ico
|
|
568
|
-
CZ_RC: :cz_rc
|
|
569
|
-
DE_STID: :de_stid
|
|
570
|
-
DE_STNR: :de_stnr
|
|
571
|
-
DE_VAT: :de_vat
|
|
572
|
-
DK_CPR: :dk_cpr
|
|
573
|
-
DK_CVR: :dk_cvr
|
|
574
|
-
DRIVERS_LICENSE: :drivers_license
|
|
575
|
-
EE_IK: :ee_ik
|
|
576
|
-
EE_RK: :ee_rk
|
|
577
|
-
ES_NIE: :es_nie
|
|
578
|
-
ES_NIF: :es_nif
|
|
579
|
-
FI_HETU: :fi_hetu
|
|
580
|
-
FI_YTJ: :fi_ytj
|
|
581
|
-
FR_NIF: :fr_nif
|
|
582
|
-
FR_SIREN: :fr_siren
|
|
583
|
-
FR_VAT: :fr_vat
|
|
584
|
-
GB_NINO: :gb_nino
|
|
585
|
-
GB_UTR: :gb_utr
|
|
586
|
-
GB_VAT: :gb_vat
|
|
587
|
-
GENERIC_INTERNATIONAL: :generic_international
|
|
588
|
-
GR_VAT: :gr_vat
|
|
589
|
-
HK_BRN: :hk_brn
|
|
590
|
-
HK_HKID: :hk_hkid
|
|
591
|
-
HN_ID: :hn_id
|
|
592
|
-
HN_RTN: :hn_rtn
|
|
593
|
-
HR_OIB: :hr_oib
|
|
594
|
-
HU_ADJ: :hu_adj
|
|
595
|
-
HU_ANUM: :hu_anum
|
|
596
|
-
IE_PPS: :ie_pps
|
|
597
|
-
IE_TRN: :ie_trn
|
|
598
|
-
IN_LEI: :in_lei
|
|
599
|
-
IS_KNT: :is_knt
|
|
600
|
-
IT_CF: :it_cf
|
|
601
|
-
IT_PIVA: :it_piva
|
|
602
|
-
JP_HB: :jp_hb
|
|
603
|
-
JP_MN: :jp_mn
|
|
604
|
-
KR_BRN: :kr_brn
|
|
605
|
-
KR_CRN: :kr_crn
|
|
606
|
-
KR_RRN: :kr_rrn
|
|
607
|
-
LI_PEID: :li_peid
|
|
608
|
-
LT_AK: :lt_ak
|
|
609
|
-
LT_JAK: :lt_jak
|
|
610
|
-
LU_MTC: :lu_mtc
|
|
611
|
-
LU_VAT: :lu_vat
|
|
612
|
-
LV_PK: :lv_pk
|
|
613
|
-
LV_RN: :lv_rn
|
|
614
|
-
MT_TIN: :mt_tin
|
|
615
|
-
MT_VAT: :mt_vat
|
|
616
|
-
MX_CURP: :mx_curp
|
|
617
|
-
MX_INE: :mx_ine
|
|
618
|
-
MX_RFC: :mx_rfc
|
|
619
|
-
NATIONAL_ID: :national_id
|
|
620
|
-
NL_BSN: :nl_bsn
|
|
621
|
-
NL_BTW: :nl_btw
|
|
622
|
-
NL_RSIN: :nl_rsin
|
|
623
|
-
NO_FDN: :no_fdn
|
|
624
|
-
NO_MVA: :no_mva
|
|
625
|
-
NO_ORGNR: :no_orgnr
|
|
626
|
-
NZ_IRD: :nz_ird
|
|
627
|
-
PASSPORT: :passport
|
|
628
|
-
PL_NIP: :pl_nip
|
|
629
|
-
PL_PESEL: :pl_pesel
|
|
630
|
-
PT_NIF: :pt_nif
|
|
631
|
-
RO_CNP: :ro_cnp
|
|
632
|
-
RO_CUI: :ro_cui
|
|
633
|
-
SA_TIN: :sa_tin
|
|
634
|
-
SA_VAT: :sa_vat
|
|
635
|
-
SE_ORGNR: :se_orgnr
|
|
636
|
-
SE_PNMR: :se_pnmr
|
|
637
|
-
SG_FIN: :sg_fin
|
|
638
|
-
SG_NRIC: :sg_nric
|
|
639
|
-
SG_UEN: :sg_uen
|
|
640
|
-
SI_DAV: :si_dav
|
|
641
|
-
SI_TIN: :si_tin
|
|
642
|
-
SK_ICO: :sk_ico
|
|
643
|
-
SK_RC: :sk_rc
|
|
644
|
-
US_EIN: :us_ein
|
|
645
|
-
US_ITIN: :us_itin
|
|
646
|
-
US_SSN: :us_ssn
|
|
647
|
-
UY_RUT: :uy_rut
|
|
648
|
-
VN_TIN: :vn_tin
|
|
649
|
-
|
|
650
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ChildLegalEntity::Identification::id_type]
|
|
651
|
-
end
|
|
652
|
-
end
|
|
653
|
-
|
|
654
376
|
type legal_entity_type = :business | :individual
|
|
655
377
|
|
|
656
378
|
module LegalEntityType
|