modern_treasury 0.11.0 → 0.12.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 +31 -0
- data/README.md +10 -1
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +4 -0
- data/lib/modern_treasury/models/payment_reference.rb +4 -0
- data/lib/modern_treasury/models/return_object.rb +5 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +3 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +20 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/return_object.rbi +22 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +8 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -0
- data/sig/modern_treasury/models/return_object.rbs +10 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +8 -2
|
@@ -5,35 +5,41 @@ module ModernTreasury
|
|
|
5
5
|
id: String,
|
|
6
6
|
addresses: ::Array[ModernTreasury::LegalEntity::Address],
|
|
7
7
|
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
8
|
+
business_description: String?,
|
|
8
9
|
business_name: String?,
|
|
9
10
|
citizenship_country: String?,
|
|
10
11
|
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
12
|
+
country_of_incorporation: String?,
|
|
11
13
|
created_at: Time,
|
|
12
14
|
date_formed: Date?,
|
|
13
15
|
date_of_birth: Date?,
|
|
14
16
|
discarded_at: Time?,
|
|
15
17
|
doing_business_as_names: ::Array[String],
|
|
16
18
|
email: String?,
|
|
19
|
+
expected_activity_volume: Integer?,
|
|
17
20
|
first_name: String?,
|
|
18
21
|
identifications: ::Array[ModernTreasury::LegalEntity::Identification],
|
|
19
22
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
23
|
+
intended_use: String?,
|
|
20
24
|
last_name: String?,
|
|
21
|
-
legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?,
|
|
22
25
|
legal_entity_type: ModernTreasury::Models::LegalEntity::legal_entity_type,
|
|
23
26
|
legal_structure: ModernTreasury::Models::LegalEntity::legal_structure?,
|
|
24
27
|
live_mode: bool,
|
|
25
28
|
metadata: ::Hash[Symbol, String],
|
|
26
29
|
middle_name: String?,
|
|
27
30
|
object: String,
|
|
31
|
+
operating_jurisdictions: ::Array[String],
|
|
28
32
|
phone_numbers: ::Array[ModernTreasury::LegalEntity::PhoneNumber],
|
|
29
33
|
politically_exposed_person: bool?,
|
|
30
34
|
preferred_name: String?,
|
|
31
35
|
prefix: String?,
|
|
36
|
+
primary_social_media_sites: ::Array[String],
|
|
32
37
|
risk_rating: ModernTreasury::Models::LegalEntity::risk_rating?,
|
|
33
38
|
suffix: String?,
|
|
34
39
|
updated_at: Time,
|
|
35
40
|
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
36
|
-
website: String
|
|
41
|
+
website: String?,
|
|
42
|
+
legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
class LegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -43,12 +49,16 @@ module ModernTreasury
|
|
|
43
49
|
|
|
44
50
|
attr_accessor bank_settings: ModernTreasury::LegalEntityBankSettings?
|
|
45
51
|
|
|
52
|
+
attr_accessor business_description: String?
|
|
53
|
+
|
|
46
54
|
attr_accessor business_name: String?
|
|
47
55
|
|
|
48
56
|
attr_accessor citizenship_country: String?
|
|
49
57
|
|
|
50
58
|
attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
|
|
51
59
|
|
|
60
|
+
attr_accessor country_of_incorporation: String?
|
|
61
|
+
|
|
52
62
|
attr_accessor created_at: Time
|
|
53
63
|
|
|
54
64
|
attr_accessor date_formed: Date?
|
|
@@ -61,15 +71,17 @@ module ModernTreasury
|
|
|
61
71
|
|
|
62
72
|
attr_accessor email: String?
|
|
63
73
|
|
|
74
|
+
attr_accessor expected_activity_volume: Integer?
|
|
75
|
+
|
|
64
76
|
attr_accessor first_name: String?
|
|
65
77
|
|
|
66
78
|
attr_accessor identifications: ::Array[ModernTreasury::LegalEntity::Identification]
|
|
67
79
|
|
|
68
80
|
attr_accessor industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
69
81
|
|
|
70
|
-
attr_accessor
|
|
82
|
+
attr_accessor intended_use: String?
|
|
71
83
|
|
|
72
|
-
attr_accessor
|
|
84
|
+
attr_accessor last_name: String?
|
|
73
85
|
|
|
74
86
|
attr_accessor legal_entity_type: ModernTreasury::Models::LegalEntity::legal_entity_type
|
|
75
87
|
|
|
@@ -83,6 +95,8 @@ module ModernTreasury
|
|
|
83
95
|
|
|
84
96
|
attr_accessor object: String
|
|
85
97
|
|
|
98
|
+
attr_accessor operating_jurisdictions: ::Array[String]
|
|
99
|
+
|
|
86
100
|
attr_accessor phone_numbers: ::Array[ModernTreasury::LegalEntity::PhoneNumber]
|
|
87
101
|
|
|
88
102
|
attr_accessor politically_exposed_person: bool?
|
|
@@ -91,6 +105,8 @@ module ModernTreasury
|
|
|
91
105
|
|
|
92
106
|
attr_accessor prefix: String?
|
|
93
107
|
|
|
108
|
+
attr_accessor primary_social_media_sites: ::Array[String]
|
|
109
|
+
|
|
94
110
|
attr_accessor risk_rating: ModernTreasury::Models::LegalEntity::risk_rating?
|
|
95
111
|
|
|
96
112
|
attr_accessor suffix: String?
|
|
@@ -101,74 +117,88 @@ module ModernTreasury
|
|
|
101
117
|
|
|
102
118
|
attr_accessor website: String?
|
|
103
119
|
|
|
120
|
+
attr_accessor legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?
|
|
121
|
+
|
|
104
122
|
def initialize: (
|
|
105
123
|
id: String,
|
|
106
124
|
addresses: ::Array[ModernTreasury::LegalEntity::Address],
|
|
107
125
|
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
126
|
+
business_description: String?,
|
|
108
127
|
business_name: String?,
|
|
109
128
|
citizenship_country: String?,
|
|
110
129
|
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
130
|
+
country_of_incorporation: String?,
|
|
111
131
|
created_at: Time,
|
|
112
132
|
date_formed: Date?,
|
|
113
133
|
date_of_birth: Date?,
|
|
114
134
|
discarded_at: Time?,
|
|
115
135
|
doing_business_as_names: ::Array[String],
|
|
116
136
|
email: String?,
|
|
137
|
+
expected_activity_volume: Integer?,
|
|
117
138
|
first_name: String?,
|
|
118
139
|
identifications: ::Array[ModernTreasury::LegalEntity::Identification],
|
|
119
140
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
141
|
+
intended_use: String?,
|
|
120
142
|
last_name: String?,
|
|
121
|
-
legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?,
|
|
122
143
|
legal_entity_type: ModernTreasury::Models::LegalEntity::legal_entity_type,
|
|
123
144
|
legal_structure: ModernTreasury::Models::LegalEntity::legal_structure?,
|
|
124
145
|
live_mode: bool,
|
|
125
146
|
metadata: ::Hash[Symbol, String],
|
|
126
147
|
middle_name: String?,
|
|
127
148
|
object: String,
|
|
149
|
+
operating_jurisdictions: ::Array[String],
|
|
128
150
|
phone_numbers: ::Array[ModernTreasury::LegalEntity::PhoneNumber],
|
|
129
151
|
politically_exposed_person: bool?,
|
|
130
152
|
preferred_name: String?,
|
|
131
153
|
prefix: String?,
|
|
154
|
+
primary_social_media_sites: ::Array[String],
|
|
132
155
|
risk_rating: ModernTreasury::Models::LegalEntity::risk_rating?,
|
|
133
156
|
suffix: String?,
|
|
134
157
|
updated_at: Time,
|
|
135
158
|
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
136
|
-
website: String
|
|
159
|
+
website: String?,
|
|
160
|
+
?legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?
|
|
137
161
|
) -> void
|
|
138
162
|
|
|
139
163
|
def to_hash: -> {
|
|
140
164
|
id: String,
|
|
141
165
|
addresses: ::Array[ModernTreasury::LegalEntity::Address],
|
|
142
166
|
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
167
|
+
business_description: String?,
|
|
143
168
|
business_name: String?,
|
|
144
169
|
citizenship_country: String?,
|
|
145
170
|
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
171
|
+
country_of_incorporation: String?,
|
|
146
172
|
created_at: Time,
|
|
147
173
|
date_formed: Date?,
|
|
148
174
|
date_of_birth: Date?,
|
|
149
175
|
discarded_at: Time?,
|
|
150
176
|
doing_business_as_names: ::Array[String],
|
|
151
177
|
email: String?,
|
|
178
|
+
expected_activity_volume: Integer?,
|
|
152
179
|
first_name: String?,
|
|
153
180
|
identifications: ::Array[ModernTreasury::LegalEntity::Identification],
|
|
154
181
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
182
|
+
intended_use: String?,
|
|
155
183
|
last_name: String?,
|
|
156
|
-
legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?,
|
|
157
184
|
legal_entity_type: ModernTreasury::Models::LegalEntity::legal_entity_type,
|
|
158
185
|
legal_structure: ModernTreasury::Models::LegalEntity::legal_structure?,
|
|
159
186
|
live_mode: bool,
|
|
160
187
|
metadata: ::Hash[Symbol, String],
|
|
161
188
|
middle_name: String?,
|
|
162
189
|
object: String,
|
|
190
|
+
operating_jurisdictions: ::Array[String],
|
|
163
191
|
phone_numbers: ::Array[ModernTreasury::LegalEntity::PhoneNumber],
|
|
164
192
|
politically_exposed_person: bool?,
|
|
165
193
|
preferred_name: String?,
|
|
166
194
|
prefix: String?,
|
|
195
|
+
primary_social_media_sites: ::Array[String],
|
|
167
196
|
risk_rating: ModernTreasury::Models::LegalEntity::risk_rating?,
|
|
168
197
|
suffix: String?,
|
|
169
198
|
updated_at: Time,
|
|
170
199
|
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
171
|
-
website: String
|
|
200
|
+
website: String?,
|
|
201
|
+
legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociation]?
|
|
172
202
|
}
|
|
173
203
|
|
|
174
204
|
type address =
|
|
@@ -3,7 +3,7 @@ module ModernTreasury
|
|
|
3
3
|
type legal_entity_association =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
child_legal_entity: ModernTreasury::
|
|
6
|
+
child_legal_entity: ModernTreasury::ChildLegalEntity,
|
|
7
7
|
created_at: Time,
|
|
8
8
|
discarded_at: Time?,
|
|
9
9
|
live_mode: bool,
|
|
@@ -18,7 +18,7 @@ module ModernTreasury
|
|
|
18
18
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
|
19
19
|
attr_accessor id: String
|
|
20
20
|
|
|
21
|
-
attr_accessor child_legal_entity: ModernTreasury::
|
|
21
|
+
attr_accessor child_legal_entity: ModernTreasury::ChildLegalEntity
|
|
22
22
|
|
|
23
23
|
attr_accessor created_at: Time
|
|
24
24
|
|
|
@@ -40,7 +40,7 @@ module ModernTreasury
|
|
|
40
40
|
|
|
41
41
|
def initialize: (
|
|
42
42
|
id: String,
|
|
43
|
-
child_legal_entity: ModernTreasury::
|
|
43
|
+
child_legal_entity: ModernTreasury::ChildLegalEntity,
|
|
44
44
|
created_at: Time,
|
|
45
45
|
discarded_at: Time?,
|
|
46
46
|
live_mode: bool,
|
|
@@ -54,7 +54,7 @@ module ModernTreasury
|
|
|
54
54
|
|
|
55
55
|
def to_hash: -> {
|
|
56
56
|
id: String,
|
|
57
|
-
child_legal_entity: ModernTreasury::
|
|
57
|
+
child_legal_entity: ModernTreasury::ChildLegalEntity,
|
|
58
58
|
created_at: Time,
|
|
59
59
|
discarded_at: Time?,
|
|
60
60
|
live_mode: bool,
|
|
@@ -66,437 +66,6 @@ module ModernTreasury
|
|
|
66
66
|
updated_at: Time
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
type child_legal_entity =
|
|
70
|
-
{
|
|
71
|
-
id: String,
|
|
72
|
-
addresses: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
73
|
-
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
74
|
-
business_name: String?,
|
|
75
|
-
citizenship_country: String?,
|
|
76
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
77
|
-
created_at: Time,
|
|
78
|
-
date_formed: Date?,
|
|
79
|
-
date_of_birth: Date?,
|
|
80
|
-
discarded_at: Time?,
|
|
81
|
-
doing_business_as_names: ::Array[String],
|
|
82
|
-
email: String?,
|
|
83
|
-
first_name: String?,
|
|
84
|
-
identifications: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
85
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
86
|
-
last_name: String?,
|
|
87
|
-
legal_entity_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
88
|
-
legal_structure: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
89
|
-
live_mode: bool,
|
|
90
|
-
metadata: ::Hash[Symbol, String],
|
|
91
|
-
middle_name: String?,
|
|
92
|
-
object: String,
|
|
93
|
-
phone_numbers: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
94
|
-
politically_exposed_person: bool?,
|
|
95
|
-
preferred_name: String?,
|
|
96
|
-
prefix: String?,
|
|
97
|
-
risk_rating: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
98
|
-
suffix: String?,
|
|
99
|
-
updated_at: Time,
|
|
100
|
-
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
101
|
-
website: String?
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
105
|
-
attr_accessor id: String
|
|
106
|
-
|
|
107
|
-
attr_accessor addresses: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address]
|
|
108
|
-
|
|
109
|
-
attr_accessor bank_settings: ModernTreasury::LegalEntityBankSettings?
|
|
110
|
-
|
|
111
|
-
attr_accessor business_name: String?
|
|
112
|
-
|
|
113
|
-
attr_accessor citizenship_country: String?
|
|
114
|
-
|
|
115
|
-
attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
|
|
116
|
-
|
|
117
|
-
attr_accessor created_at: Time
|
|
118
|
-
|
|
119
|
-
attr_accessor date_formed: Date?
|
|
120
|
-
|
|
121
|
-
attr_accessor date_of_birth: Date?
|
|
122
|
-
|
|
123
|
-
attr_accessor discarded_at: Time?
|
|
124
|
-
|
|
125
|
-
attr_accessor doing_business_as_names: ::Array[String]
|
|
126
|
-
|
|
127
|
-
attr_accessor email: String?
|
|
128
|
-
|
|
129
|
-
attr_accessor first_name: String?
|
|
130
|
-
|
|
131
|
-
attr_accessor identifications: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification]
|
|
132
|
-
|
|
133
|
-
attr_accessor industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
134
|
-
|
|
135
|
-
attr_accessor last_name: String?
|
|
136
|
-
|
|
137
|
-
attr_accessor legal_entity_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
|
|
138
|
-
|
|
139
|
-
attr_accessor legal_structure: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_structure?
|
|
140
|
-
|
|
141
|
-
attr_accessor live_mode: bool
|
|
142
|
-
|
|
143
|
-
attr_accessor metadata: ::Hash[Symbol, String]
|
|
144
|
-
|
|
145
|
-
attr_accessor middle_name: String?
|
|
146
|
-
|
|
147
|
-
attr_accessor object: String
|
|
148
|
-
|
|
149
|
-
attr_accessor phone_numbers: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
|
150
|
-
|
|
151
|
-
attr_accessor politically_exposed_person: bool?
|
|
152
|
-
|
|
153
|
-
attr_accessor preferred_name: String?
|
|
154
|
-
|
|
155
|
-
attr_accessor prefix: String?
|
|
156
|
-
|
|
157
|
-
attr_accessor risk_rating: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::risk_rating?
|
|
158
|
-
|
|
159
|
-
attr_accessor suffix: String?
|
|
160
|
-
|
|
161
|
-
attr_accessor updated_at: Time
|
|
162
|
-
|
|
163
|
-
attr_accessor wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?
|
|
164
|
-
|
|
165
|
-
attr_accessor website: String?
|
|
166
|
-
|
|
167
|
-
def initialize: (
|
|
168
|
-
id: String,
|
|
169
|
-
addresses: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
170
|
-
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
171
|
-
business_name: String?,
|
|
172
|
-
citizenship_country: String?,
|
|
173
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
174
|
-
created_at: Time,
|
|
175
|
-
date_formed: Date?,
|
|
176
|
-
date_of_birth: Date?,
|
|
177
|
-
discarded_at: Time?,
|
|
178
|
-
doing_business_as_names: ::Array[String],
|
|
179
|
-
email: String?,
|
|
180
|
-
first_name: String?,
|
|
181
|
-
identifications: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
182
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
183
|
-
last_name: String?,
|
|
184
|
-
legal_entity_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
185
|
-
legal_structure: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
186
|
-
live_mode: bool,
|
|
187
|
-
metadata: ::Hash[Symbol, String],
|
|
188
|
-
middle_name: String?,
|
|
189
|
-
object: String,
|
|
190
|
-
phone_numbers: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
191
|
-
politically_exposed_person: bool?,
|
|
192
|
-
preferred_name: String?,
|
|
193
|
-
prefix: String?,
|
|
194
|
-
risk_rating: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
195
|
-
suffix: String?,
|
|
196
|
-
updated_at: Time,
|
|
197
|
-
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
198
|
-
website: String?
|
|
199
|
-
) -> void
|
|
200
|
-
|
|
201
|
-
def to_hash: -> {
|
|
202
|
-
id: String,
|
|
203
|
-
addresses: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
204
|
-
bank_settings: ModernTreasury::LegalEntityBankSettings?,
|
|
205
|
-
business_name: String?,
|
|
206
|
-
citizenship_country: String?,
|
|
207
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
208
|
-
created_at: Time,
|
|
209
|
-
date_formed: Date?,
|
|
210
|
-
date_of_birth: Date?,
|
|
211
|
-
discarded_at: Time?,
|
|
212
|
-
doing_business_as_names: ::Array[String],
|
|
213
|
-
email: String?,
|
|
214
|
-
first_name: String?,
|
|
215
|
-
identifications: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
216
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
217
|
-
last_name: String?,
|
|
218
|
-
legal_entity_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
219
|
-
legal_structure: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
220
|
-
live_mode: bool,
|
|
221
|
-
metadata: ::Hash[Symbol, String],
|
|
222
|
-
middle_name: String?,
|
|
223
|
-
object: String,
|
|
224
|
-
phone_numbers: ::Array[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
225
|
-
politically_exposed_person: bool?,
|
|
226
|
-
preferred_name: String?,
|
|
227
|
-
prefix: String?,
|
|
228
|
-
risk_rating: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
229
|
-
suffix: String?,
|
|
230
|
-
updated_at: Time,
|
|
231
|
-
wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
|
|
232
|
-
website: String?
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
type address =
|
|
236
|
-
{
|
|
237
|
-
id: String,
|
|
238
|
-
address_types: ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
239
|
-
country: String?,
|
|
240
|
-
created_at: Time,
|
|
241
|
-
discarded_at: Time?,
|
|
242
|
-
:line1 => String?,
|
|
243
|
-
:line2 => String?,
|
|
244
|
-
live_mode: bool,
|
|
245
|
-
locality: String?,
|
|
246
|
-
object: String,
|
|
247
|
-
postal_code: String?,
|
|
248
|
-
region: String?,
|
|
249
|
-
updated_at: Time
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
253
|
-
attr_accessor id: String
|
|
254
|
-
|
|
255
|
-
attr_accessor address_types: ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
256
|
-
|
|
257
|
-
attr_accessor country: String?
|
|
258
|
-
|
|
259
|
-
attr_accessor created_at: Time
|
|
260
|
-
|
|
261
|
-
attr_accessor discarded_at: Time?
|
|
262
|
-
|
|
263
|
-
attr_accessor line1: String?
|
|
264
|
-
|
|
265
|
-
attr_accessor line2: String?
|
|
266
|
-
|
|
267
|
-
attr_accessor live_mode: bool
|
|
268
|
-
|
|
269
|
-
attr_accessor locality: String?
|
|
270
|
-
|
|
271
|
-
attr_accessor object: String
|
|
272
|
-
|
|
273
|
-
attr_accessor postal_code: String?
|
|
274
|
-
|
|
275
|
-
attr_accessor region: String?
|
|
276
|
-
|
|
277
|
-
attr_accessor updated_at: Time
|
|
278
|
-
|
|
279
|
-
def initialize: (
|
|
280
|
-
id: String,
|
|
281
|
-
address_types: ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
282
|
-
country: String?,
|
|
283
|
-
created_at: Time,
|
|
284
|
-
discarded_at: Time?,
|
|
285
|
-
line1: String?,
|
|
286
|
-
line2: String?,
|
|
287
|
-
live_mode: bool,
|
|
288
|
-
locality: String?,
|
|
289
|
-
object: String,
|
|
290
|
-
postal_code: String?,
|
|
291
|
-
region: String?,
|
|
292
|
-
updated_at: Time
|
|
293
|
-
) -> void
|
|
294
|
-
|
|
295
|
-
def to_hash: -> {
|
|
296
|
-
id: String,
|
|
297
|
-
address_types: ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
298
|
-
country: String?,
|
|
299
|
-
created_at: Time,
|
|
300
|
-
discarded_at: Time?,
|
|
301
|
-
:line1 => String?,
|
|
302
|
-
:line2 => String?,
|
|
303
|
-
live_mode: bool,
|
|
304
|
-
locality: String?,
|
|
305
|
-
object: String,
|
|
306
|
-
postal_code: String?,
|
|
307
|
-
region: String?,
|
|
308
|
-
updated_at: Time
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
type address_type =
|
|
312
|
-
:business | :mailing | :other | :po_box | :residential
|
|
313
|
-
|
|
314
|
-
module AddressType
|
|
315
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
316
|
-
|
|
317
|
-
BUSINESS: :business
|
|
318
|
-
MAILING: :mailing
|
|
319
|
-
OTHER: :other
|
|
320
|
-
PO_BOX: :po_box
|
|
321
|
-
RESIDENTIAL: :residential
|
|
322
|
-
|
|
323
|
-
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
type identification =
|
|
328
|
-
{
|
|
329
|
-
id: String,
|
|
330
|
-
created_at: Time,
|
|
331
|
-
discarded_at: Time?,
|
|
332
|
-
expiration_date: Date?,
|
|
333
|
-
id_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
334
|
-
issuing_country: String?,
|
|
335
|
-
issuing_region: String?,
|
|
336
|
-
live_mode: bool,
|
|
337
|
-
object: String,
|
|
338
|
-
updated_at: Time
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
342
|
-
attr_accessor id: String
|
|
343
|
-
|
|
344
|
-
attr_accessor created_at: Time
|
|
345
|
-
|
|
346
|
-
attr_accessor discarded_at: Time?
|
|
347
|
-
|
|
348
|
-
attr_accessor expiration_date: Date?
|
|
349
|
-
|
|
350
|
-
attr_accessor id_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::id_type
|
|
351
|
-
|
|
352
|
-
attr_accessor issuing_country: String?
|
|
353
|
-
|
|
354
|
-
attr_accessor issuing_region: String?
|
|
355
|
-
|
|
356
|
-
attr_accessor live_mode: bool
|
|
357
|
-
|
|
358
|
-
attr_accessor object: String
|
|
359
|
-
|
|
360
|
-
attr_accessor updated_at: Time
|
|
361
|
-
|
|
362
|
-
def initialize: (
|
|
363
|
-
id: String,
|
|
364
|
-
created_at: Time,
|
|
365
|
-
discarded_at: Time?,
|
|
366
|
-
expiration_date: Date?,
|
|
367
|
-
id_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
368
|
-
issuing_country: String?,
|
|
369
|
-
issuing_region: String?,
|
|
370
|
-
live_mode: bool,
|
|
371
|
-
object: String,
|
|
372
|
-
updated_at: Time
|
|
373
|
-
) -> void
|
|
374
|
-
|
|
375
|
-
def to_hash: -> {
|
|
376
|
-
id: String,
|
|
377
|
-
created_at: Time,
|
|
378
|
-
discarded_at: Time?,
|
|
379
|
-
expiration_date: Date?,
|
|
380
|
-
id_type: ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
381
|
-
issuing_country: String?,
|
|
382
|
-
issuing_region: String?,
|
|
383
|
-
live_mode: bool,
|
|
384
|
-
object: String,
|
|
385
|
-
updated_at: Time
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
type id_type =
|
|
389
|
-
:ar_cuil
|
|
390
|
-
| :ar_cuit
|
|
391
|
-
| :br_cnpj
|
|
392
|
-
| :br_cpf
|
|
393
|
-
| :cl_run
|
|
394
|
-
| :cl_rut
|
|
395
|
-
| :co_cedulas
|
|
396
|
-
| :co_nit
|
|
397
|
-
| :drivers_license
|
|
398
|
-
| :hn_id
|
|
399
|
-
| :hn_rtn
|
|
400
|
-
| :in_lei
|
|
401
|
-
| :kr_brn
|
|
402
|
-
| :kr_crn
|
|
403
|
-
| :kr_rrn
|
|
404
|
-
| :passport
|
|
405
|
-
| :sa_tin
|
|
406
|
-
| :sa_vat
|
|
407
|
-
| :us_ein
|
|
408
|
-
| :us_itin
|
|
409
|
-
| :us_ssn
|
|
410
|
-
| :vn_tin
|
|
411
|
-
|
|
412
|
-
module IDType
|
|
413
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
414
|
-
|
|
415
|
-
AR_CUIL: :ar_cuil
|
|
416
|
-
AR_CUIT: :ar_cuit
|
|
417
|
-
BR_CNPJ: :br_cnpj
|
|
418
|
-
BR_CPF: :br_cpf
|
|
419
|
-
CL_RUN: :cl_run
|
|
420
|
-
CL_RUT: :cl_rut
|
|
421
|
-
CO_CEDULAS: :co_cedulas
|
|
422
|
-
CO_NIT: :co_nit
|
|
423
|
-
DRIVERS_LICENSE: :drivers_license
|
|
424
|
-
HN_ID: :hn_id
|
|
425
|
-
HN_RTN: :hn_rtn
|
|
426
|
-
IN_LEI: :in_lei
|
|
427
|
-
KR_BRN: :kr_brn
|
|
428
|
-
KR_CRN: :kr_crn
|
|
429
|
-
KR_RRN: :kr_rrn
|
|
430
|
-
PASSPORT: :passport
|
|
431
|
-
SA_TIN: :sa_tin
|
|
432
|
-
SA_VAT: :sa_vat
|
|
433
|
-
US_EIN: :us_ein
|
|
434
|
-
US_ITIN: :us_itin
|
|
435
|
-
US_SSN: :us_ssn
|
|
436
|
-
VN_TIN: :vn_tin
|
|
437
|
-
|
|
438
|
-
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::id_type]
|
|
439
|
-
end
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
type legal_entity_type = :business | :individual | :joint
|
|
443
|
-
|
|
444
|
-
module LegalEntityType
|
|
445
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
446
|
-
|
|
447
|
-
BUSINESS: :business
|
|
448
|
-
INDIVIDUAL: :individual
|
|
449
|
-
JOINT: :joint
|
|
450
|
-
|
|
451
|
-
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_entity_type]
|
|
452
|
-
end
|
|
453
|
-
|
|
454
|
-
type legal_structure =
|
|
455
|
-
:corporation
|
|
456
|
-
| :llc
|
|
457
|
-
| :non_profit
|
|
458
|
-
| :partnership
|
|
459
|
-
| :sole_proprietorship
|
|
460
|
-
| :trust
|
|
461
|
-
|
|
462
|
-
module LegalStructure
|
|
463
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
464
|
-
|
|
465
|
-
CORPORATION: :corporation
|
|
466
|
-
LLC: :llc
|
|
467
|
-
NON_PROFIT: :non_profit
|
|
468
|
-
PARTNERSHIP: :partnership
|
|
469
|
-
SOLE_PROPRIETORSHIP: :sole_proprietorship
|
|
470
|
-
TRUST: :trust
|
|
471
|
-
|
|
472
|
-
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::legal_structure]
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
type phone_number = { phone_number: String }
|
|
476
|
-
|
|
477
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
478
|
-
attr_reader phone_number: String?
|
|
479
|
-
|
|
480
|
-
def phone_number=: (String) -> String
|
|
481
|
-
|
|
482
|
-
def initialize: (?phone_number: String) -> void
|
|
483
|
-
|
|
484
|
-
def to_hash: -> { phone_number: String }
|
|
485
|
-
end
|
|
486
|
-
|
|
487
|
-
type risk_rating = :low | :medium | :high
|
|
488
|
-
|
|
489
|
-
module RiskRating
|
|
490
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
491
|
-
|
|
492
|
-
LOW: :low
|
|
493
|
-
MEDIUM: :medium
|
|
494
|
-
HIGH: :high
|
|
495
|
-
|
|
496
|
-
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::risk_rating]
|
|
497
|
-
end
|
|
498
|
-
end
|
|
499
|
-
|
|
500
69
|
type relationship_type =
|
|
501
70
|
:authorized_signer | :beneficial_owner | :control_person
|
|
502
71
|
|