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