modern_treasury 0.31.0 → 0.32.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 +22 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/account_detail.rb +1 -0
- data/lib/modern_treasury/models/account_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +28 -8
- data/lib/modern_treasury/models/child_legal_entity.rb +6 -5
- data/lib/modern_treasury/models/counterparty_create_params.rb +24 -1
- data/lib/modern_treasury/models/expected_payment.rb +3 -4
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
- data/lib/modern_treasury/models/identification.rb +109 -0
- data/lib/modern_treasury/models/identification_create_params.rb +109 -0
- data/lib/modern_treasury/models/identification_create_request.rb +109 -0
- data/lib/modern_treasury/models/identification_update_params.rb +109 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_create_params.rb +12 -1
- data/lib/modern_treasury/models/ledger_account.rb +0 -1
- data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
- data/lib/modern_treasury/models/legal_entity.rb +6 -5
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
- data/lib/modern_treasury/models/legal_entity_create_params.rb +21 -1
- data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +23 -1
- data/lib/modern_treasury/models/payment_order.rb +12 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +12 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +12 -1
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +12 -1
- data/lib/modern_treasury/models/payment_reference.rb +1 -1
- data/lib/modern_treasury/models/return_object.rb +1 -1
- data/lib/modern_treasury/models/third_party_verification.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
- data/lib/modern_treasury/resources/expected_payments.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
- data/lib/modern_treasury/resources/legal_entities.rb +6 -2
- data/lib/modern_treasury/resources/payment_orders.rb +9 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/account_detail.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +56 -6
- data/rbi/modern_treasury/models/child_legal_entity.rbi +8 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +62 -0
- data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/identification.rbi +224 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +17 -0
- data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
- data/rbi/modern_treasury/models/legal_entity.rbi +7 -6
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +49 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +52 -0
- data/rbi/modern_treasury/models/payment_order.rbi +17 -5
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
- data/rbi/modern_treasury/models/return_object.rbi +5 -5
- data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
- data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
- data/sig/modern_treasury/models/account_detail.rbs +2 -0
- data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +30 -8
- data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -0
- data/sig/modern_treasury/models/expected_payment.rbs +4 -4
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/identification.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
- data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account.rbs +1 -2
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
- data/sig/modern_treasury/models/legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
- data/sig/modern_treasury/models/payment_order.rbs +7 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_reference.rbs +2 -2
- data/sig/modern_treasury/models/return_object.rbs +2 -2
- data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
- metadata +2 -2
|
@@ -373,6 +373,11 @@ module ModernTreasury
|
|
|
373
373
|
:au_number,
|
|
374
374
|
ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType::TaggedSymbol
|
|
375
375
|
)
|
|
376
|
+
AVALANCHE_ADDRESS =
|
|
377
|
+
T.let(
|
|
378
|
+
:avalanche_address,
|
|
379
|
+
ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType::TaggedSymbol
|
|
380
|
+
)
|
|
376
381
|
BASE_ADDRESS =
|
|
377
382
|
T.let(
|
|
378
383
|
:base_address,
|
|
@@ -130,6 +130,11 @@ module ModernTreasury
|
|
|
130
130
|
end
|
|
131
131
|
attr_accessor :status
|
|
132
132
|
|
|
133
|
+
# The account title at the financial institution, used in place of the party name.
|
|
134
|
+
# Only applicable to accounts created under supported connections.
|
|
135
|
+
sig { returns(T.nilable(String)) }
|
|
136
|
+
attr_accessor :title
|
|
137
|
+
|
|
133
138
|
sig { returns(Time) }
|
|
134
139
|
attr_accessor :updated_at
|
|
135
140
|
|
|
@@ -167,6 +172,7 @@ module ModernTreasury
|
|
|
167
172
|
T.nilable(ModernTreasury::InternalAccount::PartyType::OrSymbol),
|
|
168
173
|
routing_details: T::Array[ModernTreasury::RoutingDetail::OrHash],
|
|
169
174
|
status: T.nilable(ModernTreasury::InternalAccount::Status::OrSymbol),
|
|
175
|
+
title: T.nilable(String),
|
|
170
176
|
updated_at: Time,
|
|
171
177
|
vendor_id: T.nilable(String)
|
|
172
178
|
).returns(T.attached_class)
|
|
@@ -223,6 +229,9 @@ module ModernTreasury
|
|
|
223
229
|
routing_details:,
|
|
224
230
|
# The internal account status.
|
|
225
231
|
status:,
|
|
232
|
+
# The account title at the financial institution, used in place of the party name.
|
|
233
|
+
# Only applicable to accounts created under supported connections.
|
|
234
|
+
title:,
|
|
226
235
|
updated_at:,
|
|
227
236
|
# The vendor ID associated with this account.
|
|
228
237
|
vendor_id:
|
|
@@ -263,6 +272,7 @@ module ModernTreasury
|
|
|
263
272
|
routing_details: T::Array[ModernTreasury::RoutingDetail],
|
|
264
273
|
status:
|
|
265
274
|
T.nilable(ModernTreasury::InternalAccount::Status::TaggedSymbol),
|
|
275
|
+
title: T.nilable(String),
|
|
266
276
|
updated_at: Time,
|
|
267
277
|
vendor_id: T.nilable(String)
|
|
268
278
|
}
|
|
@@ -157,6 +157,12 @@ module ModernTreasury
|
|
|
157
157
|
end
|
|
158
158
|
attr_writer :requested_account_number_types
|
|
159
159
|
|
|
160
|
+
# The account title at the financial institution, used in place of the party name.
|
|
161
|
+
# Only applicable to accounts created under supported connections. Please reach
|
|
162
|
+
# out to your customer success manager to enable this capability for your program.
|
|
163
|
+
sig { returns(T.nilable(String)) }
|
|
164
|
+
attr_accessor :title
|
|
165
|
+
|
|
160
166
|
# A hash of vendor specific attributes that will be used when creating the account
|
|
161
167
|
# at the vendor specified by the given connection.
|
|
162
168
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -190,6 +196,7 @@ module ModernTreasury
|
|
|
190
196
|
T::Array[
|
|
191
197
|
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
192
198
|
],
|
|
199
|
+
title: T.nilable(String),
|
|
193
200
|
vendor_attributes: T::Hash[Symbol, String],
|
|
194
201
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
195
202
|
).returns(T.attached_class)
|
|
@@ -231,6 +238,10 @@ module ModernTreasury
|
|
|
231
238
|
party_name: nil,
|
|
232
239
|
# An array of account number types requested for provisioning.
|
|
233
240
|
requested_account_number_types: nil,
|
|
241
|
+
# The account title at the financial institution, used in place of the party name.
|
|
242
|
+
# Only applicable to accounts created under supported connections. Please reach
|
|
243
|
+
# out to your customer success manager to enable this capability for your program.
|
|
244
|
+
title: nil,
|
|
234
245
|
# A hash of vendor specific attributes that will be used when creating the account
|
|
235
246
|
# at the vendor specified by the given connection.
|
|
236
247
|
vendor_attributes: nil,
|
|
@@ -264,6 +275,7 @@ module ModernTreasury
|
|
|
264
275
|
T::Array[
|
|
265
276
|
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
266
277
|
],
|
|
278
|
+
title: T.nilable(String),
|
|
267
279
|
vendor_attributes: T::Hash[Symbol, String],
|
|
268
280
|
request_options: ModernTreasury::RequestOptions
|
|
269
281
|
}
|
|
@@ -765,6 +777,11 @@ module ModernTreasury
|
|
|
765
777
|
:arbitrum_address,
|
|
766
778
|
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
767
779
|
)
|
|
780
|
+
AVALANCHE_ADDRESS =
|
|
781
|
+
T.let(
|
|
782
|
+
:avalanche_address,
|
|
783
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
784
|
+
)
|
|
768
785
|
BASE_ADDRESS =
|
|
769
786
|
T.let(
|
|
770
787
|
:base_address,
|
|
@@ -286,11 +286,6 @@ module ModernTreasury
|
|
|
286
286
|
end
|
|
287
287
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
288
288
|
|
|
289
|
-
COUNTERPARTY =
|
|
290
|
-
T.let(
|
|
291
|
-
:counterparty,
|
|
292
|
-
ModernTreasury::LedgerAccount::LedgerableType::TaggedSymbol
|
|
293
|
-
)
|
|
294
289
|
EXTERNAL_ACCOUNT =
|
|
295
290
|
T.let(
|
|
296
291
|
:external_account,
|
|
@@ -166,11 +166,6 @@ module ModernTreasury
|
|
|
166
166
|
end
|
|
167
167
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
168
168
|
|
|
169
|
-
COUNTERPARTY =
|
|
170
|
-
T.let(
|
|
171
|
-
:counterparty,
|
|
172
|
-
ModernTreasury::LedgerAccountCreateRequest::LedgerableType::TaggedSymbol
|
|
173
|
-
)
|
|
174
169
|
EXTERNAL_ACCOUNT =
|
|
175
170
|
T.let(
|
|
176
171
|
:external_account,
|
|
@@ -187,8 +187,8 @@ module ModernTreasury
|
|
|
187
187
|
sig { returns(T.nilable(String)) }
|
|
188
188
|
attr_accessor :service_provider_legal_entity_id
|
|
189
189
|
|
|
190
|
-
# The activation status of the legal entity. One of pending, active,
|
|
191
|
-
# denied.
|
|
190
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
191
|
+
# suspended, or denied.
|
|
192
192
|
sig do
|
|
193
193
|
returns(T.nilable(ModernTreasury::LegalEntity::Status::TaggedSymbol))
|
|
194
194
|
end
|
|
@@ -400,8 +400,8 @@ module ModernTreasury
|
|
|
400
400
|
risk_rating:,
|
|
401
401
|
# The UUID of the parent legal entity in the service provider tree.
|
|
402
402
|
service_provider_legal_entity_id:,
|
|
403
|
-
# The activation status of the legal entity. One of pending, active,
|
|
404
|
-
# denied.
|
|
403
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
404
|
+
# suspended, or denied.
|
|
405
405
|
status:,
|
|
406
406
|
# An individual's suffix.
|
|
407
407
|
suffix:,
|
|
@@ -912,8 +912,8 @@ module ModernTreasury
|
|
|
912
912
|
end
|
|
913
913
|
end
|
|
914
914
|
|
|
915
|
-
# The activation status of the legal entity. One of pending, active,
|
|
916
|
-
# denied.
|
|
915
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
916
|
+
# suspended, or denied.
|
|
917
917
|
module Status
|
|
918
918
|
extend ModernTreasury::Internal::Type::Enum
|
|
919
919
|
|
|
@@ -925,6 +925,7 @@ module ModernTreasury
|
|
|
925
925
|
T.let(:active, ModernTreasury::LegalEntity::Status::TaggedSymbol)
|
|
926
926
|
DENIED =
|
|
927
927
|
T.let(:denied, ModernTreasury::LegalEntity::Status::TaggedSymbol)
|
|
928
|
+
DRAFT = T.let(:draft, ModernTreasury::LegalEntity::Status::TaggedSymbol)
|
|
928
929
|
PENDING =
|
|
929
930
|
T.let(:pending, ModernTreasury::LegalEntity::Status::TaggedSymbol)
|
|
930
931
|
SUSPENDED =
|
|
@@ -23,15 +23,6 @@ module ModernTreasury
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :locality
|
|
25
25
|
|
|
26
|
-
# The postal code of the address.
|
|
27
|
-
sig { returns(T.nilable(String)) }
|
|
28
|
-
attr_accessor :postal_code
|
|
29
|
-
|
|
30
|
-
# Region or State. This field is free-form; for US states, we recommend a
|
|
31
|
-
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_accessor :region
|
|
34
|
-
|
|
35
26
|
# The types of this address.
|
|
36
27
|
sig do
|
|
37
28
|
returns(
|
|
@@ -57,24 +48,33 @@ module ModernTreasury
|
|
|
57
48
|
sig { returns(T.nilable(String)) }
|
|
58
49
|
attr_accessor :line2
|
|
59
50
|
|
|
51
|
+
# The postal code of the address.
|
|
52
|
+
sig { returns(T.nilable(String)) }
|
|
53
|
+
attr_accessor :postal_code
|
|
54
|
+
|
|
60
55
|
# Whether this address is the primary address for the legal entity. Optional; when
|
|
61
56
|
# omitted it is inferred from the address types.
|
|
62
57
|
sig { returns(T.nilable(T::Boolean)) }
|
|
63
58
|
attr_accessor :primary
|
|
64
59
|
|
|
60
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
61
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
62
|
+
sig { returns(T.nilable(String)) }
|
|
63
|
+
attr_accessor :region
|
|
64
|
+
|
|
65
65
|
sig do
|
|
66
66
|
params(
|
|
67
67
|
country: T.nilable(String),
|
|
68
68
|
line1: T.nilable(String),
|
|
69
69
|
locality: T.nilable(String),
|
|
70
|
-
postal_code: T.nilable(String),
|
|
71
|
-
region: T.nilable(String),
|
|
72
70
|
address_types:
|
|
73
71
|
T::Array[
|
|
74
72
|
ModernTreasury::LegalEntityAddressCreateRequest::AddressType::OrSymbol
|
|
75
73
|
],
|
|
76
74
|
line2: T.nilable(String),
|
|
77
|
-
|
|
75
|
+
postal_code: T.nilable(String),
|
|
76
|
+
primary: T.nilable(T::Boolean),
|
|
77
|
+
region: T.nilable(String)
|
|
78
78
|
).returns(T.attached_class)
|
|
79
79
|
end
|
|
80
80
|
def self.new(
|
|
@@ -84,17 +84,17 @@ module ModernTreasury
|
|
|
84
84
|
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
85
85
|
# Francisco).
|
|
86
86
|
locality:,
|
|
87
|
-
# The postal code of the address.
|
|
88
|
-
postal_code:,
|
|
89
|
-
# Region or State. This field is free-form; for US states, we recommend a
|
|
90
|
-
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
91
|
-
region:,
|
|
92
87
|
# The types of this address.
|
|
93
88
|
address_types: nil,
|
|
94
89
|
line2: nil,
|
|
90
|
+
# The postal code of the address.
|
|
91
|
+
postal_code: nil,
|
|
95
92
|
# Whether this address is the primary address for the legal entity. Optional; when
|
|
96
93
|
# omitted it is inferred from the address types.
|
|
97
|
-
primary: nil
|
|
94
|
+
primary: nil,
|
|
95
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
96
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
97
|
+
region: nil
|
|
98
98
|
)
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -104,14 +104,14 @@ module ModernTreasury
|
|
|
104
104
|
country: T.nilable(String),
|
|
105
105
|
line1: T.nilable(String),
|
|
106
106
|
locality: T.nilable(String),
|
|
107
|
-
postal_code: T.nilable(String),
|
|
108
|
-
region: T.nilable(String),
|
|
109
107
|
address_types:
|
|
110
108
|
T::Array[
|
|
111
109
|
ModernTreasury::LegalEntityAddressCreateRequest::AddressType::OrSymbol
|
|
112
110
|
],
|
|
113
111
|
line2: T.nilable(String),
|
|
114
|
-
|
|
112
|
+
postal_code: T.nilable(String),
|
|
113
|
+
primary: T.nilable(T::Boolean),
|
|
114
|
+
region: T.nilable(String)
|
|
115
115
|
}
|
|
116
116
|
)
|
|
117
117
|
end
|
|
@@ -280,6 +280,22 @@ module ModernTreasury
|
|
|
280
280
|
sig { returns(T.nilable(String)) }
|
|
281
281
|
attr_accessor :service_provider_legal_entity_id
|
|
282
282
|
|
|
283
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
284
|
+
# pending. Inline child legal entities take the parent's status.
|
|
285
|
+
sig do
|
|
286
|
+
returns(
|
|
287
|
+
T.nilable(ModernTreasury::LegalEntityCreateParams::Status::OrSymbol)
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
attr_reader :status
|
|
291
|
+
|
|
292
|
+
sig do
|
|
293
|
+
params(
|
|
294
|
+
status: ModernTreasury::LegalEntityCreateParams::Status::OrSymbol
|
|
295
|
+
).void
|
|
296
|
+
end
|
|
297
|
+
attr_writer :status
|
|
298
|
+
|
|
283
299
|
# An individual's suffix.
|
|
284
300
|
sig { returns(T.nilable(String)) }
|
|
285
301
|
attr_accessor :suffix
|
|
@@ -413,6 +429,7 @@ module ModernTreasury
|
|
|
413
429
|
ModernTreasury::LegalEntityCreateParams::RiskRating::OrSymbol
|
|
414
430
|
),
|
|
415
431
|
service_provider_legal_entity_id: T.nilable(String),
|
|
432
|
+
status: ModernTreasury::LegalEntityCreateParams::Status::OrSymbol,
|
|
416
433
|
suffix: T.nilable(String),
|
|
417
434
|
terms_of_use:
|
|
418
435
|
T.nilable(
|
|
@@ -508,6 +525,9 @@ module ModernTreasury
|
|
|
508
525
|
risk_rating: nil,
|
|
509
526
|
# The UUID of the parent legal entity in the service provider tree.
|
|
510
527
|
service_provider_legal_entity_id: nil,
|
|
528
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
529
|
+
# pending. Inline child legal entities take the parent's status.
|
|
530
|
+
status: nil,
|
|
511
531
|
# An individual's suffix.
|
|
512
532
|
suffix: nil,
|
|
513
533
|
# Acceptance of terms of use by the legal entity.
|
|
@@ -585,6 +605,7 @@ module ModernTreasury
|
|
|
585
605
|
ModernTreasury::LegalEntityCreateParams::RiskRating::OrSymbol
|
|
586
606
|
),
|
|
587
607
|
service_provider_legal_entity_id: T.nilable(String),
|
|
608
|
+
status: ModernTreasury::LegalEntityCreateParams::Status::OrSymbol,
|
|
588
609
|
suffix: T.nilable(String),
|
|
589
610
|
terms_of_use:
|
|
590
611
|
T.nilable(ModernTreasury::LegalEntityCreateParams::TermsOfUse),
|
|
@@ -967,6 +988,34 @@ module ModernTreasury
|
|
|
967
988
|
end
|
|
968
989
|
end
|
|
969
990
|
|
|
991
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
992
|
+
# pending. Inline child legal entities take the parent's status.
|
|
993
|
+
module Status
|
|
994
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
995
|
+
|
|
996
|
+
TaggedSymbol =
|
|
997
|
+
T.type_alias do
|
|
998
|
+
T.all(Symbol, ModernTreasury::LegalEntityCreateParams::Status)
|
|
999
|
+
end
|
|
1000
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1001
|
+
|
|
1002
|
+
DRAFT =
|
|
1003
|
+
T.let(
|
|
1004
|
+
:draft,
|
|
1005
|
+
ModernTreasury::LegalEntityCreateParams::Status::TaggedSymbol
|
|
1006
|
+
)
|
|
1007
|
+
|
|
1008
|
+
sig do
|
|
1009
|
+
override.returns(
|
|
1010
|
+
T::Array[
|
|
1011
|
+
ModernTreasury::LegalEntityCreateParams::Status::TaggedSymbol
|
|
1012
|
+
]
|
|
1013
|
+
)
|
|
1014
|
+
end
|
|
1015
|
+
def self.values
|
|
1016
|
+
end
|
|
1017
|
+
end
|
|
1018
|
+
|
|
970
1019
|
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
971
1020
|
OrHash =
|
|
972
1021
|
T.type_alias do
|
|
@@ -171,6 +171,11 @@ module ModernTreasury
|
|
|
171
171
|
:pending,
|
|
172
172
|
ModernTreasury::LegalEntityListParams::Status::TaggedSymbol
|
|
173
173
|
)
|
|
174
|
+
DRAFT =
|
|
175
|
+
T.let(
|
|
176
|
+
:draft,
|
|
177
|
+
ModernTreasury::LegalEntityListParams::Status::TaggedSymbol
|
|
178
|
+
)
|
|
174
179
|
ACTIVE =
|
|
175
180
|
T.let(
|
|
176
181
|
:active,
|
|
@@ -237,6 +237,23 @@ module ModernTreasury
|
|
|
237
237
|
sig { returns(T.nilable(String)) }
|
|
238
238
|
attr_accessor :service_provider_legal_entity_id
|
|
239
239
|
|
|
240
|
+
# Set to pending to submit a draft legal entity for processing. Only valid while
|
|
241
|
+
# the legal entity is draft, and must be the only attribute in the request. Draft
|
|
242
|
+
# child legal entities are submitted with it.
|
|
243
|
+
sig do
|
|
244
|
+
returns(
|
|
245
|
+
T.nilable(ModernTreasury::LegalEntityUpdateParams::Status::OrSymbol)
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
attr_reader :status
|
|
249
|
+
|
|
250
|
+
sig do
|
|
251
|
+
params(
|
|
252
|
+
status: ModernTreasury::LegalEntityUpdateParams::Status::OrSymbol
|
|
253
|
+
).void
|
|
254
|
+
end
|
|
255
|
+
attr_writer :status
|
|
256
|
+
|
|
240
257
|
# An individual's suffix.
|
|
241
258
|
sig { returns(T.nilable(String)) }
|
|
242
259
|
attr_accessor :suffix
|
|
@@ -359,6 +376,7 @@ module ModernTreasury
|
|
|
359
376
|
ModernTreasury::LegalEntityUpdateParams::RiskRating::OrSymbol
|
|
360
377
|
),
|
|
361
378
|
service_provider_legal_entity_id: T.nilable(String),
|
|
379
|
+
status: ModernTreasury::LegalEntityUpdateParams::Status::OrSymbol,
|
|
362
380
|
suffix: T.nilable(String),
|
|
363
381
|
terms_of_use:
|
|
364
382
|
T.nilable(
|
|
@@ -441,6 +459,10 @@ module ModernTreasury
|
|
|
441
459
|
risk_rating: nil,
|
|
442
460
|
# The UUID of the parent legal entity in the service provider tree.
|
|
443
461
|
service_provider_legal_entity_id: nil,
|
|
462
|
+
# Set to pending to submit a draft legal entity for processing. Only valid while
|
|
463
|
+
# the legal entity is draft, and must be the only attribute in the request. Draft
|
|
464
|
+
# child legal entities are submitted with it.
|
|
465
|
+
status: nil,
|
|
444
466
|
# An individual's suffix.
|
|
445
467
|
suffix: nil,
|
|
446
468
|
# Acceptance of terms of use by the legal entity.
|
|
@@ -509,6 +531,7 @@ module ModernTreasury
|
|
|
509
531
|
ModernTreasury::LegalEntityUpdateParams::RiskRating::OrSymbol
|
|
510
532
|
),
|
|
511
533
|
service_provider_legal_entity_id: T.nilable(String),
|
|
534
|
+
status: ModernTreasury::LegalEntityUpdateParams::Status::OrSymbol,
|
|
512
535
|
suffix: T.nilable(String),
|
|
513
536
|
terms_of_use:
|
|
514
537
|
T.nilable(ModernTreasury::LegalEntityUpdateParams::TermsOfUse),
|
|
@@ -736,6 +759,35 @@ module ModernTreasury
|
|
|
736
759
|
end
|
|
737
760
|
end
|
|
738
761
|
|
|
762
|
+
# Set to pending to submit a draft legal entity for processing. Only valid while
|
|
763
|
+
# the legal entity is draft, and must be the only attribute in the request. Draft
|
|
764
|
+
# child legal entities are submitted with it.
|
|
765
|
+
module Status
|
|
766
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
767
|
+
|
|
768
|
+
TaggedSymbol =
|
|
769
|
+
T.type_alias do
|
|
770
|
+
T.all(Symbol, ModernTreasury::LegalEntityUpdateParams::Status)
|
|
771
|
+
end
|
|
772
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
773
|
+
|
|
774
|
+
PENDING =
|
|
775
|
+
T.let(
|
|
776
|
+
:pending,
|
|
777
|
+
ModernTreasury::LegalEntityUpdateParams::Status::TaggedSymbol
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
sig do
|
|
781
|
+
override.returns(
|
|
782
|
+
T::Array[
|
|
783
|
+
ModernTreasury::LegalEntityUpdateParams::Status::TaggedSymbol
|
|
784
|
+
]
|
|
785
|
+
)
|
|
786
|
+
end
|
|
787
|
+
def self.values
|
|
788
|
+
end
|
|
789
|
+
end
|
|
790
|
+
|
|
739
791
|
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
740
792
|
OrHash =
|
|
741
793
|
T.type_alias do
|
|
@@ -201,6 +201,12 @@ module ModernTreasury
|
|
|
201
201
|
sig { returns(T.nilable(String)) }
|
|
202
202
|
attr_accessor :originating_party_name
|
|
203
203
|
|
|
204
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
205
|
+
# check signatures where the originating party wishes to retain their company's
|
|
206
|
+
# display name but use an employee's name for the signature.
|
|
207
|
+
sig { returns(T.nilable(String)) }
|
|
208
|
+
attr_accessor :originating_secondary_party_name
|
|
209
|
+
|
|
204
210
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
205
211
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
206
212
|
# an overnight check rather than standard mail.
|
|
@@ -381,6 +387,7 @@ module ModernTreasury
|
|
|
381
387
|
ModernTreasury::PaymentOrder::OriginatingPartyAddress::OrHash
|
|
382
388
|
),
|
|
383
389
|
originating_party_name: T.nilable(String),
|
|
390
|
+
originating_secondary_party_name: T.nilable(String),
|
|
384
391
|
priority: ModernTreasury::PaymentOrder::Priority::OrSymbol,
|
|
385
392
|
process_after: T.nilable(Time),
|
|
386
393
|
purpose: T.nilable(String),
|
|
@@ -497,6 +504,10 @@ module ModernTreasury
|
|
|
497
504
|
# the first 16 characters of this string will be used. Any additional characters
|
|
498
505
|
# will be truncated.
|
|
499
506
|
originating_party_name:,
|
|
507
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
508
|
+
# check signatures where the originating party wishes to retain their company's
|
|
509
|
+
# display name but use an employee's name for the signature.
|
|
510
|
+
originating_secondary_party_name:,
|
|
500
511
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
501
512
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
502
513
|
# an overnight check rather than standard mail.
|
|
@@ -610,6 +621,7 @@ module ModernTreasury
|
|
|
610
621
|
originating_party_address:
|
|
611
622
|
T.nilable(ModernTreasury::PaymentOrder::OriginatingPartyAddress),
|
|
612
623
|
originating_party_name: T.nilable(String),
|
|
624
|
+
originating_secondary_party_name: T.nilable(String),
|
|
613
625
|
priority: ModernTreasury::PaymentOrder::Priority::TaggedSymbol,
|
|
614
626
|
process_after: T.nilable(Time),
|
|
615
627
|
purpose: T.nilable(String),
|
|
@@ -1416,6 +1428,11 @@ module ModernTreasury
|
|
|
1416
1428
|
:column_transfer_id,
|
|
1417
1429
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1418
1430
|
)
|
|
1431
|
+
CROSS_RIVER_CARD_NETWORK =
|
|
1432
|
+
T.let(
|
|
1433
|
+
:cross_river_card_network,
|
|
1434
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1435
|
+
)
|
|
1419
1436
|
CROSS_RIVER_CARD_TRACE_NUMBER =
|
|
1420
1437
|
T.let(
|
|
1421
1438
|
:cross_river_card_trace_number,
|
|
@@ -1761,11 +1778,6 @@ module ModernTreasury
|
|
|
1761
1778
|
:western_alliance_wire_confirmation_number,
|
|
1762
1779
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1763
1780
|
)
|
|
1764
|
-
WISE_TRANSFER_ID =
|
|
1765
|
-
T.let(
|
|
1766
|
-
:wise_transfer_id,
|
|
1767
|
-
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1768
|
-
)
|
|
1769
1781
|
|
|
1770
1782
|
sig do
|
|
1771
1783
|
override.returns(
|
|
@@ -230,6 +230,12 @@ module ModernTreasury
|
|
|
230
230
|
sig { returns(T.nilable(String)) }
|
|
231
231
|
attr_accessor :originating_party_name
|
|
232
232
|
|
|
233
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
234
|
+
# check signatures where the originating party wishes to retain their company's
|
|
235
|
+
# display name but use an employee's name for the signature.
|
|
236
|
+
sig { returns(T.nilable(String)) }
|
|
237
|
+
attr_accessor :originating_secondary_party_name
|
|
238
|
+
|
|
233
239
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
234
240
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
235
241
|
# an overnight check rather than standard mail.
|
|
@@ -439,6 +445,7 @@ module ModernTreasury
|
|
|
439
445
|
ModernTreasury::PaymentOrderCreateAsyncParams::OriginatingPartyAddress::OrHash
|
|
440
446
|
),
|
|
441
447
|
originating_party_name: T.nilable(String),
|
|
448
|
+
originating_secondary_party_name: T.nilable(String),
|
|
442
449
|
priority:
|
|
443
450
|
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
|
|
444
451
|
process_after: T.nilable(Time),
|
|
@@ -540,6 +547,10 @@ module ModernTreasury
|
|
|
540
547
|
# the first 16 characters of this string will be used. Any additional characters
|
|
541
548
|
# will be truncated.
|
|
542
549
|
originating_party_name: nil,
|
|
550
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
551
|
+
# check signatures where the originating party wishes to retain their company's
|
|
552
|
+
# display name but use an employee's name for the signature.
|
|
553
|
+
originating_secondary_party_name: nil,
|
|
543
554
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
544
555
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
545
556
|
# an overnight check rather than standard mail.
|
|
@@ -645,6 +656,7 @@ module ModernTreasury
|
|
|
645
656
|
ModernTreasury::PaymentOrderCreateAsyncParams::OriginatingPartyAddress
|
|
646
657
|
),
|
|
647
658
|
originating_party_name: T.nilable(String),
|
|
659
|
+
originating_secondary_party_name: T.nilable(String),
|
|
648
660
|
priority:
|
|
649
661
|
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
|
|
650
662
|
process_after: T.nilable(Time),
|
|
@@ -1372,6 +1384,11 @@ module ModernTreasury
|
|
|
1372
1384
|
:au_number,
|
|
1373
1385
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1374
1386
|
)
|
|
1387
|
+
AVALANCHE_ADDRESS =
|
|
1388
|
+
T.let(
|
|
1389
|
+
:avalanche_address,
|
|
1390
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1391
|
+
)
|
|
1375
1392
|
BASE_ADDRESS =
|
|
1376
1393
|
T.let(
|
|
1377
1394
|
:base_address,
|
|
@@ -243,6 +243,12 @@ module ModernTreasury
|
|
|
243
243
|
sig { returns(T.nilable(String)) }
|
|
244
244
|
attr_accessor :originating_party_name
|
|
245
245
|
|
|
246
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
247
|
+
# check signatures where the originating party wishes to retain their company's
|
|
248
|
+
# display name but use an employee's name for the signature.
|
|
249
|
+
sig { returns(T.nilable(String)) }
|
|
250
|
+
attr_accessor :originating_secondary_party_name
|
|
251
|
+
|
|
246
252
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
247
253
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
248
254
|
# an overnight check rather than standard mail.
|
|
@@ -453,6 +459,7 @@ module ModernTreasury
|
|
|
453
459
|
ModernTreasury::PaymentOrderCreateParams::OriginatingPartyAddress::OrHash
|
|
454
460
|
),
|
|
455
461
|
originating_party_name: T.nilable(String),
|
|
462
|
+
originating_secondary_party_name: T.nilable(String),
|
|
456
463
|
priority:
|
|
457
464
|
ModernTreasury::PaymentOrderCreateParams::Priority::OrSymbol,
|
|
458
465
|
process_after: T.nilable(Time),
|
|
@@ -557,6 +564,10 @@ module ModernTreasury
|
|
|
557
564
|
# the first 16 characters of this string will be used. Any additional characters
|
|
558
565
|
# will be truncated.
|
|
559
566
|
originating_party_name: nil,
|
|
567
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
568
|
+
# check signatures where the originating party wishes to retain their company's
|
|
569
|
+
# display name but use an employee's name for the signature.
|
|
570
|
+
originating_secondary_party_name: nil,
|
|
560
571
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
561
572
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
562
573
|
# an overnight check rather than standard mail.
|
|
@@ -663,6 +674,7 @@ module ModernTreasury
|
|
|
663
674
|
ModernTreasury::PaymentOrderCreateParams::OriginatingPartyAddress
|
|
664
675
|
),
|
|
665
676
|
originating_party_name: T.nilable(String),
|
|
677
|
+
originating_secondary_party_name: T.nilable(String),
|
|
666
678
|
priority:
|
|
667
679
|
ModernTreasury::PaymentOrderCreateParams::Priority::OrSymbol,
|
|
668
680
|
process_after: T.nilable(Time),
|
|
@@ -1535,6 +1547,11 @@ module ModernTreasury
|
|
|
1535
1547
|
:au_number,
|
|
1536
1548
|
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1537
1549
|
)
|
|
1550
|
+
AVALANCHE_ADDRESS =
|
|
1551
|
+
T.let(
|
|
1552
|
+
:avalanche_address,
|
|
1553
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1554
|
+
)
|
|
1538
1555
|
BASE_ADDRESS =
|
|
1539
1556
|
T.let(
|
|
1540
1557
|
:base_address,
|
|
@@ -30,6 +30,8 @@ module ModernTreasury
|
|
|
30
30
|
T.let(:arbitrum, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
31
31
|
AU_BECS =
|
|
32
32
|
T.let(:au_becs, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
33
|
+
AVALANCHE =
|
|
34
|
+
T.let(:avalanche, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
33
35
|
BACS = T.let(:bacs, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
34
36
|
BASE = T.let(:base, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
35
37
|
CHATS = T.let(:chats, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
@@ -52,6 +54,11 @@ module ModernTreasury
|
|
|
52
54
|
POLYGON =
|
|
53
55
|
T.let(:polygon, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
54
56
|
PRINT = T.let(:print, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
57
|
+
REMOTE_DEPOSIT =
|
|
58
|
+
T.let(
|
|
59
|
+
:remote_deposit,
|
|
60
|
+
ModernTreasury::PaymentOrderSubtype::TaggedSymbol
|
|
61
|
+
)
|
|
55
62
|
SE_BANKGIROT =
|
|
56
63
|
T.let(:se_bankgirot, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|
|
57
64
|
SEPA = T.let(:sepa, ModernTreasury::PaymentOrderSubtype::TaggedSymbol)
|