modern_treasury 0.11.0 → 0.13.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 +50 -0
- data/README.md +16 -7
- 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/document.rb +8 -7
- data/lib/modern_treasury/models/document_create_params.rb +16 -15
- data/lib/modern_treasury/models/document_list_params.rb +2 -1
- 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_order_create_params.rb +17 -16
- data/lib/modern_treasury/models/payment_reference.rb +4 -0
- data/lib/modern_treasury/models/return_object.rb +6 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/account_details.rb +4 -4
- data/lib/modern_treasury/resources/documents.rb +5 -5
- 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/resources/line_items.rb +2 -2
- data/lib/modern_treasury/resources/routing_details.rb +4 -4
- 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/document.rbi +22 -11
- data/rbi/modern_treasury/models/document_create_params.rbi +41 -23
- data/rbi/modern_treasury/models/document_list_params.rbi +10 -5
- 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_order_create_params.rbi +44 -26
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/return_object.rbi +24 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/account_details.rbi +4 -4
- data/rbi/modern_treasury/resources/documents.rbi +5 -5
- 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/rbi/modern_treasury/resources/line_items.rbi +2 -2
- data/rbi/modern_treasury/resources/routing_details.rbi +4 -4
- 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/document.rbs +13 -11
- data/sig/modern_treasury/models/document_create_params.rbs +22 -14
- data/sig/modern_treasury/models/document_list_params.rbs +5 -3
- 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_order_create_params.rbs +24 -16
- data/sig/modern_treasury/models/payment_reference.rbs +8 -0
- data/sig/modern_treasury/models/return_object.rbs +18 -1
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/documents.rbs +2 -2
- 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 +22 -2
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute addresses
|
|
12
|
+
# A list of addresses for the entity.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<ModernTreasury::Models::ChildLegalEntity::Address>]
|
|
15
|
+
required :addresses,
|
|
16
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::Address] }
|
|
17
|
+
|
|
18
|
+
# @!attribute bank_settings
|
|
19
|
+
#
|
|
20
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
21
|
+
required :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute business_description
|
|
24
|
+
# A description of the business.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
required :business_description, String, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute business_name
|
|
30
|
+
# The business's legal business name.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
required :business_name, String, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!attribute citizenship_country
|
|
36
|
+
# The country of citizenship for an individual.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
required :citizenship_country, String, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute compliance_details
|
|
42
|
+
#
|
|
43
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
44
|
+
required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute country_of_incorporation
|
|
47
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
48
|
+
# alpha-3 formats.
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
required :country_of_incorporation, String, nil?: true
|
|
52
|
+
|
|
53
|
+
# @!attribute created_at
|
|
54
|
+
#
|
|
55
|
+
# @return [Time]
|
|
56
|
+
required :created_at, Time
|
|
57
|
+
|
|
58
|
+
# @!attribute date_formed
|
|
59
|
+
# A business's formation date (YYYY-MM-DD).
|
|
60
|
+
#
|
|
61
|
+
# @return [Date, nil]
|
|
62
|
+
required :date_formed, Date, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute date_of_birth
|
|
65
|
+
# An individual's date of birth (YYYY-MM-DD).
|
|
66
|
+
#
|
|
67
|
+
# @return [Date, nil]
|
|
68
|
+
required :date_of_birth, Date, nil?: true
|
|
69
|
+
|
|
70
|
+
# @!attribute discarded_at
|
|
71
|
+
#
|
|
72
|
+
# @return [Time, nil]
|
|
73
|
+
required :discarded_at, Time, nil?: true
|
|
74
|
+
|
|
75
|
+
# @!attribute doing_business_as_names
|
|
76
|
+
#
|
|
77
|
+
# @return [Array<String>]
|
|
78
|
+
required :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
79
|
+
|
|
80
|
+
# @!attribute email
|
|
81
|
+
# The entity's primary email.
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
required :email, String, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute expected_activity_volume
|
|
87
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
88
|
+
#
|
|
89
|
+
# @return [Integer, nil]
|
|
90
|
+
required :expected_activity_volume, Integer, nil?: true
|
|
91
|
+
|
|
92
|
+
# @!attribute first_name
|
|
93
|
+
# An individual's first name.
|
|
94
|
+
#
|
|
95
|
+
# @return [String, nil]
|
|
96
|
+
required :first_name, String, nil?: true
|
|
97
|
+
|
|
98
|
+
# @!attribute identifications
|
|
99
|
+
# A list of identifications for the legal entity.
|
|
100
|
+
#
|
|
101
|
+
# @return [Array<ModernTreasury::Models::ChildLegalEntity::Identification>]
|
|
102
|
+
required :identifications,
|
|
103
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::Identification] }
|
|
104
|
+
|
|
105
|
+
# @!attribute industry_classifications
|
|
106
|
+
# A list of industry classifications for the legal entity.
|
|
107
|
+
#
|
|
108
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
|
109
|
+
required :industry_classifications,
|
|
110
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification] }
|
|
111
|
+
|
|
112
|
+
# @!attribute intended_use
|
|
113
|
+
# A description of the intended use of the legal entity.
|
|
114
|
+
#
|
|
115
|
+
# @return [String, nil]
|
|
116
|
+
required :intended_use, String, nil?: true
|
|
117
|
+
|
|
118
|
+
# @!attribute last_name
|
|
119
|
+
# An individual's last name.
|
|
120
|
+
#
|
|
121
|
+
# @return [String, nil]
|
|
122
|
+
required :last_name, String, nil?: true
|
|
123
|
+
|
|
124
|
+
# @!attribute legal_entity_associations
|
|
125
|
+
# The legal entity associations and its child legal entities.
|
|
126
|
+
#
|
|
127
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation>, nil]
|
|
128
|
+
required :legal_entity_associations,
|
|
129
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
|
|
130
|
+
nil?: true
|
|
131
|
+
|
|
132
|
+
# @!attribute legal_entity_type
|
|
133
|
+
# The type of legal entity.
|
|
134
|
+
#
|
|
135
|
+
# @return [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalEntityType]
|
|
136
|
+
required :legal_entity_type, enum: -> { ModernTreasury::ChildLegalEntity::LegalEntityType }
|
|
137
|
+
|
|
138
|
+
# @!attribute legal_structure
|
|
139
|
+
# The business's legal structure.
|
|
140
|
+
#
|
|
141
|
+
# @return [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalStructure, nil]
|
|
142
|
+
required :legal_structure, enum: -> { ModernTreasury::ChildLegalEntity::LegalStructure }, nil?: true
|
|
143
|
+
|
|
144
|
+
# @!attribute live_mode
|
|
145
|
+
# This field will be true if this object exists in the live environment or false
|
|
146
|
+
# if it exists in the test environment.
|
|
147
|
+
#
|
|
148
|
+
# @return [Boolean]
|
|
149
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
150
|
+
|
|
151
|
+
# @!attribute metadata
|
|
152
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
|
153
|
+
# strings.
|
|
154
|
+
#
|
|
155
|
+
# @return [Hash{Symbol=>String}]
|
|
156
|
+
required :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
157
|
+
|
|
158
|
+
# @!attribute middle_name
|
|
159
|
+
# An individual's middle name.
|
|
160
|
+
#
|
|
161
|
+
# @return [String, nil]
|
|
162
|
+
required :middle_name, String, nil?: true
|
|
163
|
+
|
|
164
|
+
# @!attribute object
|
|
165
|
+
#
|
|
166
|
+
# @return [String]
|
|
167
|
+
required :object, String
|
|
168
|
+
|
|
169
|
+
# @!attribute operating_jurisdictions
|
|
170
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
171
|
+
# codes).
|
|
172
|
+
#
|
|
173
|
+
# @return [Array<String>]
|
|
174
|
+
required :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
175
|
+
|
|
176
|
+
# @!attribute phone_numbers
|
|
177
|
+
#
|
|
178
|
+
# @return [Array<ModernTreasury::Models::ChildLegalEntity::PhoneNumber>]
|
|
179
|
+
required :phone_numbers,
|
|
180
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::PhoneNumber] }
|
|
181
|
+
|
|
182
|
+
# @!attribute politically_exposed_person
|
|
183
|
+
# Whether the individual is a politically exposed person.
|
|
184
|
+
#
|
|
185
|
+
# @return [Boolean, nil]
|
|
186
|
+
required :politically_exposed_person, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
187
|
+
|
|
188
|
+
# @!attribute preferred_name
|
|
189
|
+
# An individual's preferred name.
|
|
190
|
+
#
|
|
191
|
+
# @return [String, nil]
|
|
192
|
+
required :preferred_name, String, nil?: true
|
|
193
|
+
|
|
194
|
+
# @!attribute prefix
|
|
195
|
+
# An individual's prefix.
|
|
196
|
+
#
|
|
197
|
+
# @return [String, nil]
|
|
198
|
+
required :prefix, String, nil?: true
|
|
199
|
+
|
|
200
|
+
# @!attribute primary_social_media_sites
|
|
201
|
+
# A list of primary social media URLs for the business.
|
|
202
|
+
#
|
|
203
|
+
# @return [Array<String>]
|
|
204
|
+
required :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
205
|
+
|
|
206
|
+
# @!attribute risk_rating
|
|
207
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
|
208
|
+
#
|
|
209
|
+
# @return [Symbol, ModernTreasury::Models::ChildLegalEntity::RiskRating, nil]
|
|
210
|
+
required :risk_rating, enum: -> { ModernTreasury::ChildLegalEntity::RiskRating }, nil?: true
|
|
211
|
+
|
|
212
|
+
# @!attribute suffix
|
|
213
|
+
# An individual's suffix.
|
|
214
|
+
#
|
|
215
|
+
# @return [String, nil]
|
|
216
|
+
required :suffix, String, nil?: true
|
|
217
|
+
|
|
218
|
+
# @!attribute updated_at
|
|
219
|
+
#
|
|
220
|
+
# @return [Time]
|
|
221
|
+
required :updated_at, Time
|
|
222
|
+
|
|
223
|
+
# @!attribute wealth_and_employment_details
|
|
224
|
+
#
|
|
225
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
226
|
+
required :wealth_and_employment_details,
|
|
227
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
228
|
+
nil?: true
|
|
229
|
+
|
|
230
|
+
# @!attribute website
|
|
231
|
+
# The entity's primary website URL.
|
|
232
|
+
#
|
|
233
|
+
# @return [String, nil]
|
|
234
|
+
required :website, String, nil?: true
|
|
235
|
+
|
|
236
|
+
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, expected_activity_volume:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:)
|
|
237
|
+
# Some parameter documentations has been truncated, see
|
|
238
|
+
# {ModernTreasury::Models::ChildLegalEntity} for more details.
|
|
239
|
+
#
|
|
240
|
+
# @param id [String]
|
|
241
|
+
#
|
|
242
|
+
# @param addresses [Array<ModernTreasury::Models::ChildLegalEntity::Address>] A list of addresses for the entity.
|
|
243
|
+
#
|
|
244
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
245
|
+
#
|
|
246
|
+
# @param business_description [String, nil] A description of the business.
|
|
247
|
+
#
|
|
248
|
+
# @param business_name [String, nil] The business's legal business name.
|
|
249
|
+
#
|
|
250
|
+
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
251
|
+
#
|
|
252
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
253
|
+
#
|
|
254
|
+
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
255
|
+
#
|
|
256
|
+
# @param created_at [Time]
|
|
257
|
+
#
|
|
258
|
+
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
259
|
+
#
|
|
260
|
+
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
|
261
|
+
#
|
|
262
|
+
# @param discarded_at [Time, nil]
|
|
263
|
+
#
|
|
264
|
+
# @param doing_business_as_names [Array<String>]
|
|
265
|
+
#
|
|
266
|
+
# @param email [String, nil] The entity's primary email.
|
|
267
|
+
#
|
|
268
|
+
# @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
|
|
269
|
+
#
|
|
270
|
+
# @param first_name [String, nil] An individual's first name.
|
|
271
|
+
#
|
|
272
|
+
# @param identifications [Array<ModernTreasury::Models::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
|
273
|
+
#
|
|
274
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
|
275
|
+
#
|
|
276
|
+
# @param intended_use [String, nil] A description of the intended use of the legal entity.
|
|
277
|
+
#
|
|
278
|
+
# @param last_name [String, nil] An individual's last name.
|
|
279
|
+
#
|
|
280
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
|
281
|
+
#
|
|
282
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
|
283
|
+
#
|
|
284
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
|
285
|
+
#
|
|
286
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
287
|
+
#
|
|
288
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
289
|
+
#
|
|
290
|
+
# @param middle_name [String, nil] An individual's middle name.
|
|
291
|
+
#
|
|
292
|
+
# @param object [String]
|
|
293
|
+
#
|
|
294
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
|
|
295
|
+
#
|
|
296
|
+
# @param phone_numbers [Array<ModernTreasury::Models::ChildLegalEntity::PhoneNumber>]
|
|
297
|
+
#
|
|
298
|
+
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
|
299
|
+
#
|
|
300
|
+
# @param preferred_name [String, nil] An individual's preferred name.
|
|
301
|
+
#
|
|
302
|
+
# @param prefix [String, nil] An individual's prefix.
|
|
303
|
+
#
|
|
304
|
+
# @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
|
|
305
|
+
#
|
|
306
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
|
307
|
+
#
|
|
308
|
+
# @param suffix [String, nil] An individual's suffix.
|
|
309
|
+
#
|
|
310
|
+
# @param updated_at [Time]
|
|
311
|
+
#
|
|
312
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
313
|
+
#
|
|
314
|
+
# @param website [String, nil] The entity's primary website URL.
|
|
315
|
+
|
|
316
|
+
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
317
|
+
# @!attribute id
|
|
318
|
+
#
|
|
319
|
+
# @return [String]
|
|
320
|
+
required :id, String
|
|
321
|
+
|
|
322
|
+
# @!attribute address_types
|
|
323
|
+
# The types of this address.
|
|
324
|
+
#
|
|
325
|
+
# @return [Array<Symbol, ModernTreasury::Models::ChildLegalEntity::Address::AddressType>]
|
|
326
|
+
required :address_types,
|
|
327
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::ChildLegalEntity::Address::AddressType] }
|
|
328
|
+
|
|
329
|
+
# @!attribute country
|
|
330
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
331
|
+
#
|
|
332
|
+
# @return [String, nil]
|
|
333
|
+
required :country, String, nil?: true
|
|
334
|
+
|
|
335
|
+
# @!attribute created_at
|
|
336
|
+
#
|
|
337
|
+
# @return [Time]
|
|
338
|
+
required :created_at, Time
|
|
339
|
+
|
|
340
|
+
# @!attribute discarded_at
|
|
341
|
+
#
|
|
342
|
+
# @return [Time, nil]
|
|
343
|
+
required :discarded_at, Time, nil?: true
|
|
344
|
+
|
|
345
|
+
# @!attribute line1
|
|
346
|
+
#
|
|
347
|
+
# @return [String, nil]
|
|
348
|
+
required :line1, String, nil?: true
|
|
349
|
+
|
|
350
|
+
# @!attribute line2
|
|
351
|
+
#
|
|
352
|
+
# @return [String, nil]
|
|
353
|
+
required :line2, String, nil?: true
|
|
354
|
+
|
|
355
|
+
# @!attribute live_mode
|
|
356
|
+
# This field will be true if this object exists in the live environment or false
|
|
357
|
+
# if it exists in the test environment.
|
|
358
|
+
#
|
|
359
|
+
# @return [Boolean]
|
|
360
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
361
|
+
|
|
362
|
+
# @!attribute locality
|
|
363
|
+
# Locality or City.
|
|
364
|
+
#
|
|
365
|
+
# @return [String, nil]
|
|
366
|
+
required :locality, String, nil?: true
|
|
367
|
+
|
|
368
|
+
# @!attribute object
|
|
369
|
+
#
|
|
370
|
+
# @return [String]
|
|
371
|
+
required :object, String
|
|
372
|
+
|
|
373
|
+
# @!attribute postal_code
|
|
374
|
+
# The postal code of the address.
|
|
375
|
+
#
|
|
376
|
+
# @return [String, nil]
|
|
377
|
+
required :postal_code, String, nil?: true
|
|
378
|
+
|
|
379
|
+
# @!attribute region
|
|
380
|
+
# Region or State.
|
|
381
|
+
#
|
|
382
|
+
# @return [String, nil]
|
|
383
|
+
required :region, String, nil?: true
|
|
384
|
+
|
|
385
|
+
# @!attribute updated_at
|
|
386
|
+
#
|
|
387
|
+
# @return [Time]
|
|
388
|
+
required :updated_at, Time
|
|
389
|
+
|
|
390
|
+
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
|
391
|
+
# Some parameter documentations has been truncated, see
|
|
392
|
+
# {ModernTreasury::Models::ChildLegalEntity::Address} for more details.
|
|
393
|
+
#
|
|
394
|
+
# @param id [String]
|
|
395
|
+
#
|
|
396
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::ChildLegalEntity::Address::AddressType>] The types of this address.
|
|
397
|
+
#
|
|
398
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
399
|
+
#
|
|
400
|
+
# @param created_at [Time]
|
|
401
|
+
#
|
|
402
|
+
# @param discarded_at [Time, nil]
|
|
403
|
+
#
|
|
404
|
+
# @param line1 [String, nil]
|
|
405
|
+
#
|
|
406
|
+
# @param line2 [String, nil]
|
|
407
|
+
#
|
|
408
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
409
|
+
#
|
|
410
|
+
# @param locality [String, nil] Locality or City.
|
|
411
|
+
#
|
|
412
|
+
# @param object [String]
|
|
413
|
+
#
|
|
414
|
+
# @param postal_code [String, nil] The postal code of the address.
|
|
415
|
+
#
|
|
416
|
+
# @param region [String, nil] Region or State.
|
|
417
|
+
#
|
|
418
|
+
# @param updated_at [Time]
|
|
419
|
+
|
|
420
|
+
module AddressType
|
|
421
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
422
|
+
|
|
423
|
+
BUSINESS = :business
|
|
424
|
+
MAILING = :mailing
|
|
425
|
+
OTHER = :other
|
|
426
|
+
PO_BOX = :po_box
|
|
427
|
+
RESIDENTIAL = :residential
|
|
428
|
+
|
|
429
|
+
# @!method self.values
|
|
430
|
+
# @return [Array<Symbol>]
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
435
|
+
# @!attribute id
|
|
436
|
+
#
|
|
437
|
+
# @return [String]
|
|
438
|
+
required :id, String
|
|
439
|
+
|
|
440
|
+
# @!attribute created_at
|
|
441
|
+
#
|
|
442
|
+
# @return [Time]
|
|
443
|
+
required :created_at, Time
|
|
444
|
+
|
|
445
|
+
# @!attribute discarded_at
|
|
446
|
+
#
|
|
447
|
+
# @return [Time, nil]
|
|
448
|
+
required :discarded_at, Time, nil?: true
|
|
449
|
+
|
|
450
|
+
# @!attribute expiration_date
|
|
451
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
452
|
+
# authority.
|
|
453
|
+
#
|
|
454
|
+
# @return [Date, nil]
|
|
455
|
+
required :expiration_date, Date, nil?: true
|
|
456
|
+
|
|
457
|
+
# @!attribute id_type
|
|
458
|
+
# The type of ID number.
|
|
459
|
+
#
|
|
460
|
+
# @return [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType]
|
|
461
|
+
required :id_type, enum: -> { ModernTreasury::ChildLegalEntity::Identification::IDType }
|
|
462
|
+
|
|
463
|
+
# @!attribute issuing_country
|
|
464
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
465
|
+
# identification
|
|
466
|
+
#
|
|
467
|
+
# @return [String, nil]
|
|
468
|
+
required :issuing_country, String, nil?: true
|
|
469
|
+
|
|
470
|
+
# @!attribute issuing_region
|
|
471
|
+
# The region in which the identifcation was issued.
|
|
472
|
+
#
|
|
473
|
+
# @return [String, nil]
|
|
474
|
+
required :issuing_region, String, nil?: true
|
|
475
|
+
|
|
476
|
+
# @!attribute live_mode
|
|
477
|
+
# This field will be true if this object exists in the live environment or false
|
|
478
|
+
# if it exists in the test environment.
|
|
479
|
+
#
|
|
480
|
+
# @return [Boolean]
|
|
481
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
482
|
+
|
|
483
|
+
# @!attribute object
|
|
484
|
+
#
|
|
485
|
+
# @return [String]
|
|
486
|
+
required :object, String
|
|
487
|
+
|
|
488
|
+
# @!attribute updated_at
|
|
489
|
+
#
|
|
490
|
+
# @return [Time]
|
|
491
|
+
required :updated_at, Time
|
|
492
|
+
|
|
493
|
+
# @!method initialize(id:, created_at:, discarded_at:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
|
|
494
|
+
# Some parameter documentations has been truncated, see
|
|
495
|
+
# {ModernTreasury::Models::ChildLegalEntity::Identification} for more details.
|
|
496
|
+
#
|
|
497
|
+
# @param id [String]
|
|
498
|
+
#
|
|
499
|
+
# @param created_at [Time]
|
|
500
|
+
#
|
|
501
|
+
# @param discarded_at [Time, nil]
|
|
502
|
+
#
|
|
503
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
|
504
|
+
#
|
|
505
|
+
# @param id_type [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType] The type of ID number.
|
|
506
|
+
#
|
|
507
|
+
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
|
508
|
+
#
|
|
509
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
|
510
|
+
#
|
|
511
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
512
|
+
#
|
|
513
|
+
# @param object [String]
|
|
514
|
+
#
|
|
515
|
+
# @param updated_at [Time]
|
|
516
|
+
|
|
517
|
+
# The type of ID number.
|
|
518
|
+
#
|
|
519
|
+
# @see ModernTreasury::Models::ChildLegalEntity::Identification#id_type
|
|
520
|
+
module IDType
|
|
521
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
522
|
+
|
|
523
|
+
AR_CUIL = :ar_cuil
|
|
524
|
+
AR_CUIT = :ar_cuit
|
|
525
|
+
BR_CNPJ = :br_cnpj
|
|
526
|
+
BR_CPF = :br_cpf
|
|
527
|
+
CL_RUN = :cl_run
|
|
528
|
+
CL_RUT = :cl_rut
|
|
529
|
+
CO_CEDULAS = :co_cedulas
|
|
530
|
+
CO_NIT = :co_nit
|
|
531
|
+
DRIVERS_LICENSE = :drivers_license
|
|
532
|
+
HN_ID = :hn_id
|
|
533
|
+
HN_RTN = :hn_rtn
|
|
534
|
+
IN_LEI = :in_lei
|
|
535
|
+
KR_BRN = :kr_brn
|
|
536
|
+
KR_CRN = :kr_crn
|
|
537
|
+
KR_RRN = :kr_rrn
|
|
538
|
+
PASSPORT = :passport
|
|
539
|
+
SA_TIN = :sa_tin
|
|
540
|
+
SA_VAT = :sa_vat
|
|
541
|
+
US_EIN = :us_ein
|
|
542
|
+
US_ITIN = :us_itin
|
|
543
|
+
US_SSN = :us_ssn
|
|
544
|
+
VN_TIN = :vn_tin
|
|
545
|
+
|
|
546
|
+
# @!method self.values
|
|
547
|
+
# @return [Array<Symbol>]
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
# The type of legal entity.
|
|
552
|
+
#
|
|
553
|
+
# @see ModernTreasury::Models::ChildLegalEntity#legal_entity_type
|
|
554
|
+
module LegalEntityType
|
|
555
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
556
|
+
|
|
557
|
+
BUSINESS = :business
|
|
558
|
+
INDIVIDUAL = :individual
|
|
559
|
+
JOINT = :joint
|
|
560
|
+
|
|
561
|
+
# @!method self.values
|
|
562
|
+
# @return [Array<Symbol>]
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# The business's legal structure.
|
|
566
|
+
#
|
|
567
|
+
# @see ModernTreasury::Models::ChildLegalEntity#legal_structure
|
|
568
|
+
module LegalStructure
|
|
569
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
570
|
+
|
|
571
|
+
CORPORATION = :corporation
|
|
572
|
+
LLC = :llc
|
|
573
|
+
NON_PROFIT = :non_profit
|
|
574
|
+
PARTNERSHIP = :partnership
|
|
575
|
+
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
|
576
|
+
TRUST = :trust
|
|
577
|
+
|
|
578
|
+
# @!method self.values
|
|
579
|
+
# @return [Array<Symbol>]
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
583
|
+
# @!attribute phone_number
|
|
584
|
+
#
|
|
585
|
+
# @return [String, nil]
|
|
586
|
+
optional :phone_number, String
|
|
587
|
+
|
|
588
|
+
# @!method initialize(phone_number: nil)
|
|
589
|
+
# A list of phone numbers in E.164 format.
|
|
590
|
+
#
|
|
591
|
+
# @param phone_number [String]
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
|
595
|
+
#
|
|
596
|
+
# @see ModernTreasury::Models::ChildLegalEntity#risk_rating
|
|
597
|
+
module RiskRating
|
|
598
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
599
|
+
|
|
600
|
+
LOW = :low
|
|
601
|
+
MEDIUM = :medium
|
|
602
|
+
HIGH = :high
|
|
603
|
+
|
|
604
|
+
# @!method self.values
|
|
605
|
+
# @return [Array<Symbol>]
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
end
|
|
609
|
+
end
|