modern_treasury 0.28.0 → 0.29.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 +18 -0
- data/README.md +3 -3
- data/lib/modern_treasury/models/address.rb +6 -4
- data/lib/modern_treasury/models/address_request.rb +9 -4
- data/lib/modern_treasury/models/bulk_request_create_params.rb +176 -11
- data/lib/modern_treasury/models/child_legal_entity.rb +21 -11
- data/lib/modern_treasury/models/child_legal_entity_create.rb +13 -7
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +14 -7
- data/lib/modern_treasury/models/counterparty_create_params.rb +14 -7
- data/lib/modern_treasury/models/identification_create_request.rb +2 -0
- data/lib/modern_treasury/models/internal_account_create_params.rb +32 -5
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -0
- data/lib/modern_treasury/models/invoice.rb +27 -12
- data/lib/modern_treasury/models/invoice_create_params.rb +29 -12
- data/lib/modern_treasury/models/invoice_update_params.rb +29 -12
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +2 -0
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -0
- data/lib/modern_treasury/models/legal_entity.rb +21 -11
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +6 -4
- data/lib/modern_treasury/models/legal_entity_create_params.rb +13 -7
- data/lib/modern_treasury/models/legal_entity_update_params.rb +13 -7
- data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +14 -7
- data/lib/modern_treasury/models/payment_order_create_params.rb +14 -7
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
- data/lib/modern_treasury/models.rb +0 -2
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/legal_entities.rb +5 -32
- data/lib/modern_treasury/resources/payment_orders.rb +2 -2
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +0 -1
- data/rbi/modern_treasury/models/address.rbi +8 -4
- data/rbi/modern_treasury/models/address_request.rbi +8 -4
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +339 -12
- data/rbi/modern_treasury/models/child_legal_entity.rbi +35 -13
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +17 -9
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -9
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +17 -9
- data/rbi/modern_treasury/models/identification_create_request.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +84 -4
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +1 -0
- data/rbi/modern_treasury/models/invoice.rbi +24 -12
- data/rbi/modern_treasury/models/invoice_create_params.rbi +24 -12
- data/rbi/modern_treasury/models/invoice_update_params.rbi +24 -12
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +1 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +1 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +35 -13
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +8 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -9
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +17 -9
- data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +12 -8
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +12 -8
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
- data/rbi/modern_treasury/models.rbi +0 -3
- data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -1
- data/rbi/modern_treasury/resources/internal_accounts.rbi +6 -0
- data/rbi/modern_treasury/resources/legal_entities.rbi +9 -28
- data/rbi/modern_treasury/resources/payment_orders.rbi +2 -2
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +147 -6
- data/sig/modern_treasury/models/child_legal_entity.rbs +4 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +4 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +23 -0
- data/sig/modern_treasury/models/legal_entity.rbs +4 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -5
- data/sig/modern_treasury/models/payment_order_create_params.rbs +5 -5
- data/sig/modern_treasury/models.rbs +0 -2
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +0 -6
- data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
- metadata +2 -5
- data/lib/modern_treasury/models/legal_entity_update_status_params.rb +0 -46
- data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +0 -96
- data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +0 -43
|
@@ -41,8 +41,8 @@ module ModernTreasury
|
|
|
41
41
|
sig { returns(T.nilable(T.anything)) }
|
|
42
42
|
attr_accessor :compliance_details
|
|
43
43
|
|
|
44
|
-
# The country
|
|
45
|
-
#
|
|
44
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
45
|
+
# code (e.g. US).
|
|
46
46
|
sig { returns(T.nilable(String)) }
|
|
47
47
|
attr_accessor :country_of_incorporation
|
|
48
48
|
|
|
@@ -135,8 +135,8 @@ module ModernTreasury
|
|
|
135
135
|
sig { returns(String) }
|
|
136
136
|
attr_accessor :object
|
|
137
137
|
|
|
138
|
-
# A list of countries where the business operates
|
|
139
|
-
# codes).
|
|
138
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
139
|
+
# codes (e.g. ["US", "CA"]).
|
|
140
140
|
sig { returns(T::Array[String]) }
|
|
141
141
|
attr_accessor :operating_jurisdictions
|
|
142
142
|
|
|
@@ -325,8 +325,8 @@ module ModernTreasury
|
|
|
325
325
|
# The country of citizenship for an individual.
|
|
326
326
|
citizenship_country:,
|
|
327
327
|
compliance_details:,
|
|
328
|
-
# The country
|
|
329
|
-
#
|
|
328
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
329
|
+
# code (e.g. US).
|
|
330
330
|
country_of_incorporation:,
|
|
331
331
|
created_at:,
|
|
332
332
|
# A business's formation date (YYYY-MM-DD).
|
|
@@ -367,8 +367,8 @@ module ModernTreasury
|
|
|
367
367
|
# An individual's middle name.
|
|
368
368
|
middle_name:,
|
|
369
369
|
object:,
|
|
370
|
-
# A list of countries where the business operates
|
|
371
|
-
# codes).
|
|
370
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
371
|
+
# codes (e.g. ["US", "CA"]).
|
|
372
372
|
operating_jurisdictions:,
|
|
373
373
|
phone_numbers:,
|
|
374
374
|
# Whether the individual is a politically exposed person.
|
|
@@ -520,7 +520,8 @@ module ModernTreasury
|
|
|
520
520
|
sig { returns(T::Boolean) }
|
|
521
521
|
attr_accessor :live_mode
|
|
522
522
|
|
|
523
|
-
# Locality or City.
|
|
523
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
524
|
+
# Francisco).
|
|
524
525
|
sig { returns(T.nilable(String)) }
|
|
525
526
|
attr_accessor :locality
|
|
526
527
|
|
|
@@ -536,7 +537,8 @@ module ModernTreasury
|
|
|
536
537
|
sig { returns(T.nilable(T::Boolean)) }
|
|
537
538
|
attr_accessor :primary
|
|
538
539
|
|
|
539
|
-
# Region or State.
|
|
540
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
541
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
540
542
|
sig { returns(T.nilable(String)) }
|
|
541
543
|
attr_accessor :region
|
|
542
544
|
|
|
@@ -577,7 +579,8 @@ module ModernTreasury
|
|
|
577
579
|
# This field will be true if this object exists in the live environment or false
|
|
578
580
|
# if it exists in the test environment.
|
|
579
581
|
live_mode:,
|
|
580
|
-
# Locality or City.
|
|
582
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
583
|
+
# Francisco).
|
|
581
584
|
locality:,
|
|
582
585
|
object:,
|
|
583
586
|
# The postal code of the address.
|
|
@@ -585,7 +588,8 @@ module ModernTreasury
|
|
|
585
588
|
# Whether this address is the primary address for the legal entity. Optional; when
|
|
586
589
|
# omitted it is inferred from the address types.
|
|
587
590
|
primary:,
|
|
588
|
-
# Region or State.
|
|
591
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
592
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
589
593
|
region:,
|
|
590
594
|
updated_at:
|
|
591
595
|
)
|
|
@@ -1003,6 +1007,16 @@ module ModernTreasury
|
|
|
1003
1007
|
:gr_vat,
|
|
1004
1008
|
ModernTreasury::LegalEntity::Identification::IDType::TaggedSymbol
|
|
1005
1009
|
)
|
|
1010
|
+
HK_BRN =
|
|
1011
|
+
T.let(
|
|
1012
|
+
:hk_brn,
|
|
1013
|
+
ModernTreasury::LegalEntity::Identification::IDType::TaggedSymbol
|
|
1014
|
+
)
|
|
1015
|
+
HK_HKID =
|
|
1016
|
+
T.let(
|
|
1017
|
+
:hk_hkid,
|
|
1018
|
+
ModernTreasury::LegalEntity::Identification::IDType::TaggedSymbol
|
|
1019
|
+
)
|
|
1006
1020
|
HN_ID =
|
|
1007
1021
|
T.let(
|
|
1008
1022
|
:hn_id,
|
|
@@ -1392,6 +1406,9 @@ module ModernTreasury
|
|
|
1392
1406
|
)
|
|
1393
1407
|
end
|
|
1394
1408
|
|
|
1409
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
1410
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
1411
|
+
# +12025551234.
|
|
1395
1412
|
sig { returns(T.nilable(String)) }
|
|
1396
1413
|
attr_reader :phone_number
|
|
1397
1414
|
|
|
@@ -1400,7 +1417,12 @@ module ModernTreasury
|
|
|
1400
1417
|
|
|
1401
1418
|
# A list of phone numbers in E.164 format.
|
|
1402
1419
|
sig { params(phone_number: String).returns(T.attached_class) }
|
|
1403
|
-
def self.new(
|
|
1420
|
+
def self.new(
|
|
1421
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
1422
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
1423
|
+
# +12025551234.
|
|
1424
|
+
phone_number: nil
|
|
1425
|
+
)
|
|
1404
1426
|
end
|
|
1405
1427
|
|
|
1406
1428
|
sig { override.returns({ phone_number: String }) }
|
|
@@ -18,7 +18,8 @@ module ModernTreasury
|
|
|
18
18
|
sig { returns(T.nilable(String)) }
|
|
19
19
|
attr_accessor :line1
|
|
20
20
|
|
|
21
|
-
# Locality or City.
|
|
21
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
22
|
+
# Francisco).
|
|
22
23
|
sig { returns(T.nilable(String)) }
|
|
23
24
|
attr_accessor :locality
|
|
24
25
|
|
|
@@ -26,7 +27,8 @@ module ModernTreasury
|
|
|
26
27
|
sig { returns(T.nilable(String)) }
|
|
27
28
|
attr_accessor :postal_code
|
|
28
29
|
|
|
29
|
-
# Region or State.
|
|
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.
|
|
30
32
|
sig { returns(T.nilable(String)) }
|
|
31
33
|
attr_accessor :region
|
|
32
34
|
|
|
@@ -79,11 +81,13 @@ module ModernTreasury
|
|
|
79
81
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
80
82
|
country:,
|
|
81
83
|
line1:,
|
|
82
|
-
# Locality or City.
|
|
84
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
85
|
+
# Francisco).
|
|
83
86
|
locality:,
|
|
84
87
|
# The postal code of the address.
|
|
85
88
|
postal_code:,
|
|
86
|
-
# Region or State.
|
|
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.
|
|
87
91
|
region:,
|
|
88
92
|
# The types of this address.
|
|
89
93
|
address_types: nil,
|
|
@@ -72,8 +72,8 @@ module ModernTreasury
|
|
|
72
72
|
sig { returns(T.nilable(String)) }
|
|
73
73
|
attr_accessor :connection_id
|
|
74
74
|
|
|
75
|
-
# The country
|
|
76
|
-
#
|
|
75
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
76
|
+
# code (e.g. US).
|
|
77
77
|
sig { returns(T.nilable(String)) }
|
|
78
78
|
attr_accessor :country_of_incorporation
|
|
79
79
|
|
|
@@ -200,8 +200,8 @@ module ModernTreasury
|
|
|
200
200
|
sig { returns(T.nilable(String)) }
|
|
201
201
|
attr_accessor :middle_name
|
|
202
202
|
|
|
203
|
-
# A list of countries where the business operates
|
|
204
|
-
# codes).
|
|
203
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
204
|
+
# codes (e.g. ["US", "CA"]).
|
|
205
205
|
sig { returns(T.nilable(T::Array[String])) }
|
|
206
206
|
attr_reader :operating_jurisdictions
|
|
207
207
|
|
|
@@ -436,8 +436,8 @@ module ModernTreasury
|
|
|
436
436
|
# in a value of null to prevent the connection from being associated with the
|
|
437
437
|
# legal entity.
|
|
438
438
|
connection_id: nil,
|
|
439
|
-
# The country
|
|
440
|
-
#
|
|
439
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
440
|
+
# code (e.g. US).
|
|
441
441
|
country_of_incorporation: nil,
|
|
442
442
|
# A business's formation date (YYYY-MM-DD).
|
|
443
443
|
date_formed: nil,
|
|
@@ -474,8 +474,8 @@ module ModernTreasury
|
|
|
474
474
|
metadata: nil,
|
|
475
475
|
# An individual's middle name.
|
|
476
476
|
middle_name: nil,
|
|
477
|
-
# A list of countries where the business operates
|
|
478
|
-
# codes).
|
|
477
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
478
|
+
# codes (e.g. ["US", "CA"]).
|
|
479
479
|
operating_jurisdictions: nil,
|
|
480
480
|
phone_numbers: nil,
|
|
481
481
|
# Whether the individual is a politically exposed person.
|
|
@@ -802,6 +802,9 @@ module ModernTreasury
|
|
|
802
802
|
)
|
|
803
803
|
end
|
|
804
804
|
|
|
805
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
806
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
807
|
+
# +12025551234.
|
|
805
808
|
sig { returns(T.nilable(String)) }
|
|
806
809
|
attr_reader :phone_number
|
|
807
810
|
|
|
@@ -810,7 +813,12 @@ module ModernTreasury
|
|
|
810
813
|
|
|
811
814
|
# A list of phone numbers in E.164 format.
|
|
812
815
|
sig { params(phone_number: String).returns(T.attached_class) }
|
|
813
|
-
def self.new(
|
|
816
|
+
def self.new(
|
|
817
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
818
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
819
|
+
# +12025551234.
|
|
820
|
+
phone_number: nil
|
|
821
|
+
)
|
|
814
822
|
end
|
|
815
823
|
|
|
816
824
|
sig { override.returns({ phone_number: String }) }
|
|
@@ -56,8 +56,8 @@ module ModernTreasury
|
|
|
56
56
|
sig { returns(T.nilable(String)) }
|
|
57
57
|
attr_accessor :citizenship_country
|
|
58
58
|
|
|
59
|
-
# The country
|
|
60
|
-
#
|
|
59
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
60
|
+
# code (e.g. US).
|
|
61
61
|
sig { returns(T.nilable(String)) }
|
|
62
62
|
attr_accessor :country_of_incorporation
|
|
63
63
|
|
|
@@ -157,8 +157,8 @@ module ModernTreasury
|
|
|
157
157
|
sig { returns(T.nilable(String)) }
|
|
158
158
|
attr_accessor :middle_name
|
|
159
159
|
|
|
160
|
-
# A list of countries where the business operates
|
|
161
|
-
# codes).
|
|
160
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
161
|
+
# codes (e.g. ["US", "CA"]).
|
|
162
162
|
sig { returns(T.nilable(T::Array[String])) }
|
|
163
163
|
attr_reader :operating_jurisdictions
|
|
164
164
|
|
|
@@ -374,8 +374,8 @@ module ModernTreasury
|
|
|
374
374
|
business_name: nil,
|
|
375
375
|
# The country of citizenship for an individual.
|
|
376
376
|
citizenship_country: nil,
|
|
377
|
-
# The country
|
|
378
|
-
#
|
|
377
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
378
|
+
# code (e.g. US).
|
|
379
379
|
country_of_incorporation: nil,
|
|
380
380
|
# A business's formation date (YYYY-MM-DD).
|
|
381
381
|
date_formed: nil,
|
|
@@ -407,8 +407,8 @@ module ModernTreasury
|
|
|
407
407
|
metadata: nil,
|
|
408
408
|
# An individual's middle name.
|
|
409
409
|
middle_name: nil,
|
|
410
|
-
# A list of countries where the business operates
|
|
411
|
-
# codes).
|
|
410
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
411
|
+
# codes (e.g. ["US", "CA"]).
|
|
412
412
|
operating_jurisdictions: nil,
|
|
413
413
|
phone_numbers: nil,
|
|
414
414
|
# Whether the individual is a politically exposed person.
|
|
@@ -571,6 +571,9 @@ module ModernTreasury
|
|
|
571
571
|
)
|
|
572
572
|
end
|
|
573
573
|
|
|
574
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
575
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
576
|
+
# +12025551234.
|
|
574
577
|
sig { returns(T.nilable(String)) }
|
|
575
578
|
attr_reader :phone_number
|
|
576
579
|
|
|
@@ -579,7 +582,12 @@ module ModernTreasury
|
|
|
579
582
|
|
|
580
583
|
# A list of phone numbers in E.164 format.
|
|
581
584
|
sig { params(phone_number: String).returns(T.attached_class) }
|
|
582
|
-
def self.new(
|
|
585
|
+
def self.new(
|
|
586
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
587
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
588
|
+
# +12025551234.
|
|
589
|
+
phone_number: nil
|
|
590
|
+
)
|
|
583
591
|
end
|
|
584
592
|
|
|
585
593
|
sig { override.returns({ phone_number: String }) }
|
|
@@ -32,7 +32,8 @@ module ModernTreasury
|
|
|
32
32
|
sig { returns(T.nilable(String)) }
|
|
33
33
|
attr_accessor :employer_name
|
|
34
34
|
|
|
35
|
-
# The state in which the employer is located.
|
|
35
|
+
# The state in which the employer is located. This field is free-form text; for US
|
|
36
|
+
# states, we recommend a two-letter abbreviation (e.g. CA).
|
|
36
37
|
sig { returns(T.nilable(String)) }
|
|
37
38
|
attr_accessor :employer_state
|
|
38
39
|
|
|
@@ -165,7 +166,8 @@ module ModernTreasury
|
|
|
165
166
|
employer_country:,
|
|
166
167
|
# The name of the employer.
|
|
167
168
|
employer_name:,
|
|
168
|
-
# The state in which the employer is located.
|
|
169
|
+
# The state in which the employer is located. This field is free-form text; for US
|
|
170
|
+
# states, we recommend a two-letter abbreviation (e.g. CA).
|
|
169
171
|
employer_state:,
|
|
170
172
|
# The employment status of the individual.
|
|
171
173
|
employment_status:,
|
|
@@ -371,10 +371,10 @@ module ModernTreasury
|
|
|
371
371
|
|
|
372
372
|
# Additional vendor specific fields for this payment. Data must be represented as
|
|
373
373
|
# key-value pairs.
|
|
374
|
-
sig { returns(T.nilable(T.anything)) }
|
|
374
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
375
375
|
attr_reader :vendor_attributes
|
|
376
376
|
|
|
377
|
-
sig { params(vendor_attributes: T.anything).void }
|
|
377
|
+
sig { params(vendor_attributes: T::Hash[Symbol, T.anything]).void }
|
|
378
378
|
attr_writer :vendor_attributes
|
|
379
379
|
|
|
380
380
|
sig do
|
|
@@ -437,7 +437,7 @@ module ModernTreasury
|
|
|
437
437
|
ultimate_originating_party_name: T.nilable(String),
|
|
438
438
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
439
439
|
ultimate_receiving_party_name: T.nilable(String),
|
|
440
|
-
vendor_attributes: T.anything,
|
|
440
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
441
441
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
442
442
|
).returns(T.attached_class)
|
|
443
443
|
end
|
|
@@ -636,7 +636,7 @@ module ModernTreasury
|
|
|
636
636
|
ultimate_originating_party_name: T.nilable(String),
|
|
637
637
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
638
638
|
ultimate_receiving_party_name: T.nilable(String),
|
|
639
|
-
vendor_attributes: T.anything,
|
|
639
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
640
640
|
request_options: ModernTreasury::RequestOptions
|
|
641
641
|
}
|
|
642
642
|
)
|
|
@@ -1781,7 +1781,8 @@ module ModernTreasury
|
|
|
1781
1781
|
sig { params(line2: String).void }
|
|
1782
1782
|
attr_writer :line2
|
|
1783
1783
|
|
|
1784
|
-
# Locality or City.
|
|
1784
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
1785
|
+
# Francisco).
|
|
1785
1786
|
sig { returns(T.nilable(String)) }
|
|
1786
1787
|
attr_reader :locality
|
|
1787
1788
|
|
|
@@ -1795,7 +1796,8 @@ module ModernTreasury
|
|
|
1795
1796
|
sig { params(postal_code: String).void }
|
|
1796
1797
|
attr_writer :postal_code
|
|
1797
1798
|
|
|
1798
|
-
# Region or State.
|
|
1799
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
1800
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
1799
1801
|
sig { returns(T.nilable(String)) }
|
|
1800
1802
|
attr_reader :region
|
|
1801
1803
|
|
|
@@ -1818,11 +1820,13 @@ module ModernTreasury
|
|
|
1818
1820
|
country: nil,
|
|
1819
1821
|
line1: nil,
|
|
1820
1822
|
line2: nil,
|
|
1821
|
-
# Locality or City.
|
|
1823
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
1824
|
+
# Francisco).
|
|
1822
1825
|
locality: nil,
|
|
1823
1826
|
# The postal code of the address.
|
|
1824
1827
|
postal_code: nil,
|
|
1825
|
-
# Region or State.
|
|
1828
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
1829
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
1826
1830
|
region: nil
|
|
1827
1831
|
)
|
|
1828
1832
|
end
|
|
@@ -381,10 +381,10 @@ module ModernTreasury
|
|
|
381
381
|
|
|
382
382
|
# Additional vendor specific fields for this payment. Data must be represented as
|
|
383
383
|
# key-value pairs.
|
|
384
|
-
sig { returns(T.nilable(T.anything)) }
|
|
384
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
385
385
|
attr_reader :vendor_attributes
|
|
386
386
|
|
|
387
|
-
sig { params(vendor_attributes: T.anything).void }
|
|
387
|
+
sig { params(vendor_attributes: T::Hash[Symbol, T.anything]).void }
|
|
388
388
|
attr_writer :vendor_attributes
|
|
389
389
|
|
|
390
390
|
sig do
|
|
@@ -451,7 +451,7 @@ module ModernTreasury
|
|
|
451
451
|
ultimate_originating_party_name: T.nilable(String),
|
|
452
452
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
453
453
|
ultimate_receiving_party_name: T.nilable(String),
|
|
454
|
-
vendor_attributes: T.anything,
|
|
454
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
455
455
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
456
456
|
).returns(T.attached_class)
|
|
457
457
|
end
|
|
@@ -654,7 +654,7 @@ module ModernTreasury
|
|
|
654
654
|
ultimate_originating_party_name: T.nilable(String),
|
|
655
655
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
656
656
|
ultimate_receiving_party_name: T.nilable(String),
|
|
657
|
-
vendor_attributes: T.anything,
|
|
657
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
658
658
|
request_options: ModernTreasury::RequestOptions
|
|
659
659
|
}
|
|
660
660
|
)
|
|
@@ -1949,7 +1949,8 @@ module ModernTreasury
|
|
|
1949
1949
|
sig { params(line2: String).void }
|
|
1950
1950
|
attr_writer :line2
|
|
1951
1951
|
|
|
1952
|
-
# Locality or City.
|
|
1952
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
1953
|
+
# Francisco).
|
|
1953
1954
|
sig { returns(T.nilable(String)) }
|
|
1954
1955
|
attr_reader :locality
|
|
1955
1956
|
|
|
@@ -1963,7 +1964,8 @@ module ModernTreasury
|
|
|
1963
1964
|
sig { params(postal_code: String).void }
|
|
1964
1965
|
attr_writer :postal_code
|
|
1965
1966
|
|
|
1966
|
-
# Region or State.
|
|
1967
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
1968
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
1967
1969
|
sig { returns(T.nilable(String)) }
|
|
1968
1970
|
attr_reader :region
|
|
1969
1971
|
|
|
@@ -1986,11 +1988,13 @@ module ModernTreasury
|
|
|
1986
1988
|
country: nil,
|
|
1987
1989
|
line1: nil,
|
|
1988
1990
|
line2: nil,
|
|
1989
|
-
# Locality or City.
|
|
1991
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
1992
|
+
# Francisco).
|
|
1990
1993
|
locality: nil,
|
|
1991
1994
|
# The postal code of the address.
|
|
1992
1995
|
postal_code: nil,
|
|
1993
|
-
# Region or State.
|
|
1996
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
1997
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
1994
1998
|
region: nil
|
|
1995
1999
|
)
|
|
1996
2000
|
end
|
|
@@ -32,7 +32,8 @@ module ModernTreasury
|
|
|
32
32
|
sig { returns(T.nilable(String)) }
|
|
33
33
|
attr_accessor :employer_name
|
|
34
34
|
|
|
35
|
-
# The state in which the employer is located.
|
|
35
|
+
# The state in which the employer is located. This field is free-form text; for US
|
|
36
|
+
# states, we recommend a two-letter abbreviation (e.g. CA).
|
|
36
37
|
sig { returns(T.nilable(String)) }
|
|
37
38
|
attr_accessor :employer_state
|
|
38
39
|
|
|
@@ -165,7 +166,8 @@ module ModernTreasury
|
|
|
165
166
|
employer_country:,
|
|
166
167
|
# The name of the employer.
|
|
167
168
|
employer_name:,
|
|
168
|
-
# The state in which the employer is located.
|
|
169
|
+
# The state in which the employer is located. This field is free-form text; for US
|
|
170
|
+
# states, we recommend a two-letter abbreviation (e.g. CA).
|
|
169
171
|
employer_state:,
|
|
170
172
|
# The employment status of the individual.
|
|
171
173
|
employment_status:,
|
|
@@ -401,9 +401,6 @@ module ModernTreasury
|
|
|
401
401
|
|
|
402
402
|
LegalEntityUpdateParams = ModernTreasury::Models::LegalEntityUpdateParams
|
|
403
403
|
|
|
404
|
-
LegalEntityUpdateStatusParams =
|
|
405
|
-
ModernTreasury::Models::LegalEntityUpdateStatusParams
|
|
406
|
-
|
|
407
404
|
LegalEntityWealthEmploymentDetail =
|
|
408
405
|
ModernTreasury::Models::LegalEntityWealthEmploymentDetail
|
|
409
406
|
|
|
@@ -17,7 +17,7 @@ module ModernTreasury
|
|
|
17
17
|
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::OrHash,
|
|
18
18
|
ModernTreasury::LedgerTransactionCreateRequest::OrHash,
|
|
19
19
|
ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
20
|
-
|
|
20
|
+
ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::OrHash,
|
|
21
21
|
ModernTreasury::BulkRequestCreateParams::Resource::ID::OrHash,
|
|
22
22
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OrHash,
|
|
23
23
|
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::OrHash,
|
|
@@ -30,6 +30,10 @@ module ModernTreasury
|
|
|
30
30
|
party_address:
|
|
31
31
|
ModernTreasury::InternalAccountCreateParams::PartyAddress::OrHash,
|
|
32
32
|
party_name: T.nilable(String),
|
|
33
|
+
requested_account_number_types:
|
|
34
|
+
T::Array[
|
|
35
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
36
|
+
],
|
|
33
37
|
vendor_attributes: T::Hash[Symbol, String],
|
|
34
38
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
35
39
|
).returns(ModernTreasury::InternalAccount)
|
|
@@ -69,6 +73,8 @@ module ModernTreasury
|
|
|
69
73
|
party_address: nil,
|
|
70
74
|
# The legal name of the entity which owns the account.
|
|
71
75
|
party_name: nil,
|
|
76
|
+
# An array of account number types requested for provisioning.
|
|
77
|
+
requested_account_number_types: nil,
|
|
72
78
|
# A hash of vendor specific attributes that will be used when creating the account
|
|
73
79
|
# at the vendor specified by the given connection.
|
|
74
80
|
vendor_attributes: nil,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module ModernTreasury
|
|
4
4
|
module Resources
|
|
5
5
|
class LegalEntities
|
|
6
|
-
#
|
|
6
|
+
# Create a legal entity. All country fields use ISO 3166-1 alpha-2 (e.g. US).
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
legal_entity_type:
|
|
@@ -103,8 +103,8 @@ module ModernTreasury
|
|
|
103
103
|
# in a value of null to prevent the connection from being associated with the
|
|
104
104
|
# legal entity.
|
|
105
105
|
connection_id: nil,
|
|
106
|
-
# The country
|
|
107
|
-
#
|
|
106
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
107
|
+
# code (e.g. US).
|
|
108
108
|
country_of_incorporation: nil,
|
|
109
109
|
# A business's formation date (YYYY-MM-DD).
|
|
110
110
|
date_formed: nil,
|
|
@@ -141,8 +141,8 @@ module ModernTreasury
|
|
|
141
141
|
metadata: nil,
|
|
142
142
|
# An individual's middle name.
|
|
143
143
|
middle_name: nil,
|
|
144
|
-
# A list of countries where the business operates
|
|
145
|
-
# codes).
|
|
144
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
145
|
+
# codes (e.g. ["US", "CA"]).
|
|
146
146
|
operating_jurisdictions: nil,
|
|
147
147
|
phone_numbers: nil,
|
|
148
148
|
# Whether the individual is a politically exposed person.
|
|
@@ -272,8 +272,8 @@ module ModernTreasury
|
|
|
272
272
|
business_name: nil,
|
|
273
273
|
# The country of citizenship for an individual.
|
|
274
274
|
citizenship_country: nil,
|
|
275
|
-
# The country
|
|
276
|
-
#
|
|
275
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
276
|
+
# code (e.g. US).
|
|
277
277
|
country_of_incorporation: nil,
|
|
278
278
|
# A business's formation date (YYYY-MM-DD).
|
|
279
279
|
date_formed: nil,
|
|
@@ -305,8 +305,8 @@ module ModernTreasury
|
|
|
305
305
|
metadata: nil,
|
|
306
306
|
# An individual's middle name.
|
|
307
307
|
middle_name: nil,
|
|
308
|
-
# A list of countries where the business operates
|
|
309
|
-
# codes).
|
|
308
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
309
|
+
# codes (e.g. ["US", "CA"]).
|
|
310
310
|
operating_jurisdictions: nil,
|
|
311
311
|
phone_numbers: nil,
|
|
312
312
|
# Whether the individual is a politically exposed person.
|
|
@@ -370,25 +370,6 @@ module ModernTreasury
|
|
|
370
370
|
)
|
|
371
371
|
end
|
|
372
372
|
|
|
373
|
-
# Update Legal Entity Status (sandbox only)
|
|
374
|
-
sig do
|
|
375
|
-
params(
|
|
376
|
-
id: String,
|
|
377
|
-
status:
|
|
378
|
-
ModernTreasury::LegalEntityUpdateStatusParams::Status::OrSymbol,
|
|
379
|
-
request_options: ModernTreasury::RequestOptions::OrHash
|
|
380
|
-
).returns(ModernTreasury::LegalEntity)
|
|
381
|
-
end
|
|
382
|
-
def update_status(
|
|
383
|
-
# Legal entity ID
|
|
384
|
-
id,
|
|
385
|
-
# The target status for the legal entity. One of `active`, `suspended`, or
|
|
386
|
-
# `denied`. Valid transitions depend on the current status.
|
|
387
|
-
status:,
|
|
388
|
-
request_options: {}
|
|
389
|
-
)
|
|
390
|
-
end
|
|
391
|
-
|
|
392
373
|
# @api private
|
|
393
374
|
sig { params(client: ModernTreasury::Client).returns(T.attached_class) }
|
|
394
375
|
def self.new(client:)
|
|
@@ -71,7 +71,7 @@ module ModernTreasury
|
|
|
71
71
|
ultimate_originating_party_name: T.nilable(String),
|
|
72
72
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
73
73
|
ultimate_receiving_party_name: T.nilable(String),
|
|
74
|
-
vendor_attributes: T.anything,
|
|
74
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
75
75
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
76
76
|
).returns(ModernTreasury::PaymentOrder)
|
|
77
77
|
end
|
|
@@ -536,7 +536,7 @@ module ModernTreasury
|
|
|
536
536
|
ultimate_originating_party_name: T.nilable(String),
|
|
537
537
|
ultimate_receiving_party_identifier: T.nilable(String),
|
|
538
538
|
ultimate_receiving_party_name: T.nilable(String),
|
|
539
|
-
vendor_attributes: T.anything,
|
|
539
|
+
vendor_attributes: T::Hash[Symbol, T.anything],
|
|
540
540
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
541
541
|
).returns(ModernTreasury::AsyncResponse)
|
|
542
542
|
end
|