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
|
@@ -136,8 +136,8 @@ module ModernTreasury
|
|
|
136
136
|
sig { returns(T.nilable(String)) }
|
|
137
137
|
attr_accessor :connection_id
|
|
138
138
|
|
|
139
|
-
# The country
|
|
140
|
-
#
|
|
139
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
140
|
+
# code (e.g. US).
|
|
141
141
|
sig { returns(T.nilable(String)) }
|
|
142
142
|
attr_accessor :country_of_incorporation
|
|
143
143
|
|
|
@@ -292,8 +292,8 @@ module ModernTreasury
|
|
|
292
292
|
sig { returns(T.nilable(String)) }
|
|
293
293
|
attr_accessor :middle_name
|
|
294
294
|
|
|
295
|
-
# A list of countries where the business operates
|
|
296
|
-
# codes).
|
|
295
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
296
|
+
# codes (e.g. ["US", "CA"]).
|
|
297
297
|
sig { returns(T.nilable(T::Array[String])) }
|
|
298
298
|
attr_reader :operating_jurisdictions
|
|
299
299
|
|
|
@@ -540,8 +540,8 @@ module ModernTreasury
|
|
|
540
540
|
# in a value of null to prevent the connection from being associated with the
|
|
541
541
|
# legal entity.
|
|
542
542
|
connection_id: nil,
|
|
543
|
-
# The country
|
|
544
|
-
#
|
|
543
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
544
|
+
# code (e.g. US).
|
|
545
545
|
country_of_incorporation: nil,
|
|
546
546
|
# A business's formation date (YYYY-MM-DD).
|
|
547
547
|
date_formed: nil,
|
|
@@ -580,8 +580,8 @@ module ModernTreasury
|
|
|
580
580
|
metadata: nil,
|
|
581
581
|
# An individual's middle name.
|
|
582
582
|
middle_name: nil,
|
|
583
|
-
# A list of countries where the business operates
|
|
584
|
-
# codes).
|
|
583
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
584
|
+
# codes (e.g. ["US", "CA"]).
|
|
585
585
|
operating_jurisdictions: nil,
|
|
586
586
|
phone_numbers: nil,
|
|
587
587
|
# Whether the individual is a politically exposed person.
|
|
@@ -914,6 +914,9 @@ module ModernTreasury
|
|
|
914
914
|
)
|
|
915
915
|
end
|
|
916
916
|
|
|
917
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
918
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
919
|
+
# +12025551234.
|
|
917
920
|
sig { returns(T.nilable(String)) }
|
|
918
921
|
attr_reader :phone_number
|
|
919
922
|
|
|
@@ -922,7 +925,12 @@ module ModernTreasury
|
|
|
922
925
|
|
|
923
926
|
# A list of phone numbers in E.164 format.
|
|
924
927
|
sig { params(phone_number: String).returns(T.attached_class) }
|
|
925
|
-
def self.new(
|
|
928
|
+
def self.new(
|
|
929
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
930
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
931
|
+
# +12025551234.
|
|
932
|
+
phone_number: nil
|
|
933
|
+
)
|
|
926
934
|
end
|
|
927
935
|
|
|
928
936
|
sig { override.returns({ phone_number: String }) }
|
|
@@ -1153,8 +1153,8 @@ module ModernTreasury
|
|
|
1153
1153
|
sig { returns(T.nilable(String)) }
|
|
1154
1154
|
attr_accessor :connection_id
|
|
1155
1155
|
|
|
1156
|
-
# The country
|
|
1157
|
-
#
|
|
1156
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
1157
|
+
# code (e.g. US).
|
|
1158
1158
|
sig { returns(T.nilable(String)) }
|
|
1159
1159
|
attr_accessor :country_of_incorporation
|
|
1160
1160
|
|
|
@@ -1291,8 +1291,8 @@ module ModernTreasury
|
|
|
1291
1291
|
sig { returns(T.nilable(String)) }
|
|
1292
1292
|
attr_accessor :middle_name
|
|
1293
1293
|
|
|
1294
|
-
# A list of countries where the business operates
|
|
1295
|
-
# codes).
|
|
1294
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
1295
|
+
# codes (e.g. ["US", "CA"]).
|
|
1296
1296
|
sig { returns(T.nilable(T::Array[String])) }
|
|
1297
1297
|
attr_reader :operating_jurisdictions
|
|
1298
1298
|
|
|
@@ -1540,8 +1540,8 @@ module ModernTreasury
|
|
|
1540
1540
|
# in a value of null to prevent the connection from being associated with the
|
|
1541
1541
|
# legal entity.
|
|
1542
1542
|
connection_id: nil,
|
|
1543
|
-
# The country
|
|
1544
|
-
#
|
|
1543
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
1544
|
+
# code (e.g. US).
|
|
1545
1545
|
country_of_incorporation: nil,
|
|
1546
1546
|
# A business's formation date (YYYY-MM-DD).
|
|
1547
1547
|
date_formed: nil,
|
|
@@ -1578,8 +1578,8 @@ module ModernTreasury
|
|
|
1578
1578
|
metadata: nil,
|
|
1579
1579
|
# An individual's middle name.
|
|
1580
1580
|
middle_name: nil,
|
|
1581
|
-
# A list of countries where the business operates
|
|
1582
|
-
# codes).
|
|
1581
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
1582
|
+
# codes (e.g. ["US", "CA"]).
|
|
1583
1583
|
operating_jurisdictions: nil,
|
|
1584
1584
|
phone_numbers: nil,
|
|
1585
1585
|
# Whether the individual is a politically exposed person.
|
|
@@ -1912,6 +1912,9 @@ module ModernTreasury
|
|
|
1912
1912
|
)
|
|
1913
1913
|
end
|
|
1914
1914
|
|
|
1915
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
1916
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
1917
|
+
# +12025551234.
|
|
1915
1918
|
sig { returns(T.nilable(String)) }
|
|
1916
1919
|
attr_reader :phone_number
|
|
1917
1920
|
|
|
@@ -1920,7 +1923,12 @@ module ModernTreasury
|
|
|
1920
1923
|
|
|
1921
1924
|
# A list of phone numbers in E.164 format.
|
|
1922
1925
|
sig { params(phone_number: String).returns(T.attached_class) }
|
|
1923
|
-
def self.new(
|
|
1926
|
+
def self.new(
|
|
1927
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
1928
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
1929
|
+
# +12025551234.
|
|
1930
|
+
phone_number: nil
|
|
1931
|
+
)
|
|
1924
1932
|
end
|
|
1925
1933
|
|
|
1926
1934
|
sig { override.returns({ phone_number: String }) }
|
|
@@ -319,6 +319,16 @@ module ModernTreasury
|
|
|
319
319
|
:gr_vat,
|
|
320
320
|
ModernTreasury::IdentificationCreateRequest::IDType::TaggedSymbol
|
|
321
321
|
)
|
|
322
|
+
HK_BRN =
|
|
323
|
+
T.let(
|
|
324
|
+
:hk_brn,
|
|
325
|
+
ModernTreasury::IdentificationCreateRequest::IDType::TaggedSymbol
|
|
326
|
+
)
|
|
327
|
+
HK_HKID =
|
|
328
|
+
T.let(
|
|
329
|
+
:hk_hkid,
|
|
330
|
+
ModernTreasury::IdentificationCreateRequest::IDType::TaggedSymbol
|
|
331
|
+
)
|
|
322
332
|
HN_ID =
|
|
323
333
|
T.let(
|
|
324
334
|
:hn_id,
|
|
@@ -135,6 +135,28 @@ module ModernTreasury
|
|
|
135
135
|
sig { returns(T.nilable(String)) }
|
|
136
136
|
attr_accessor :party_name
|
|
137
137
|
|
|
138
|
+
# An array of account number types requested for provisioning.
|
|
139
|
+
sig do
|
|
140
|
+
returns(
|
|
141
|
+
T.nilable(
|
|
142
|
+
T::Array[
|
|
143
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
144
|
+
]
|
|
145
|
+
)
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
attr_reader :requested_account_number_types
|
|
149
|
+
|
|
150
|
+
sig do
|
|
151
|
+
params(
|
|
152
|
+
requested_account_number_types:
|
|
153
|
+
T::Array[
|
|
154
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
155
|
+
]
|
|
156
|
+
).void
|
|
157
|
+
end
|
|
158
|
+
attr_writer :requested_account_number_types
|
|
159
|
+
|
|
138
160
|
# A hash of vendor specific attributes that will be used when creating the account
|
|
139
161
|
# at the vendor specified by the given connection.
|
|
140
162
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -164,6 +186,10 @@ module ModernTreasury
|
|
|
164
186
|
party_address:
|
|
165
187
|
ModernTreasury::InternalAccountCreateParams::PartyAddress::OrHash,
|
|
166
188
|
party_name: T.nilable(String),
|
|
189
|
+
requested_account_number_types:
|
|
190
|
+
T::Array[
|
|
191
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
192
|
+
],
|
|
167
193
|
vendor_attributes: T::Hash[Symbol, String],
|
|
168
194
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
169
195
|
).returns(T.attached_class)
|
|
@@ -203,6 +229,8 @@ module ModernTreasury
|
|
|
203
229
|
party_address: nil,
|
|
204
230
|
# The legal name of the entity which owns the account.
|
|
205
231
|
party_name: nil,
|
|
232
|
+
# An array of account number types requested for provisioning.
|
|
233
|
+
requested_account_number_types: nil,
|
|
206
234
|
# A hash of vendor specific attributes that will be used when creating the account
|
|
207
235
|
# at the vendor specified by the given connection.
|
|
208
236
|
vendor_attributes: nil,
|
|
@@ -232,6 +260,10 @@ module ModernTreasury
|
|
|
232
260
|
party_address:
|
|
233
261
|
ModernTreasury::InternalAccountCreateParams::PartyAddress,
|
|
234
262
|
party_name: T.nilable(String),
|
|
263
|
+
requested_account_number_types:
|
|
264
|
+
T::Array[
|
|
265
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::OrSymbol
|
|
266
|
+
],
|
|
235
267
|
vendor_attributes: T::Hash[Symbol, String],
|
|
236
268
|
request_options: ModernTreasury::RequestOptions
|
|
237
269
|
}
|
|
@@ -653,7 +685,8 @@ module ModernTreasury
|
|
|
653
685
|
sig { returns(String) }
|
|
654
686
|
attr_accessor :line1
|
|
655
687
|
|
|
656
|
-
# Locality or City.
|
|
688
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
689
|
+
# Francisco).
|
|
657
690
|
sig { returns(String) }
|
|
658
691
|
attr_accessor :locality
|
|
659
692
|
|
|
@@ -661,7 +694,8 @@ module ModernTreasury
|
|
|
661
694
|
sig { returns(String) }
|
|
662
695
|
attr_accessor :postal_code
|
|
663
696
|
|
|
664
|
-
# Region or State.
|
|
697
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
698
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
665
699
|
sig { returns(String) }
|
|
666
700
|
attr_accessor :region
|
|
667
701
|
|
|
@@ -686,11 +720,13 @@ module ModernTreasury
|
|
|
686
720
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
687
721
|
country:,
|
|
688
722
|
line1:,
|
|
689
|
-
# Locality or City.
|
|
723
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
724
|
+
# Francisco).
|
|
690
725
|
locality:,
|
|
691
726
|
# The postal code of the address.
|
|
692
727
|
postal_code:,
|
|
693
|
-
# Region or State.
|
|
728
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
729
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
694
730
|
region:,
|
|
695
731
|
line2: nil
|
|
696
732
|
)
|
|
@@ -711,6 +747,50 @@ module ModernTreasury
|
|
|
711
747
|
def to_hash
|
|
712
748
|
end
|
|
713
749
|
end
|
|
750
|
+
|
|
751
|
+
module RequestedAccountNumberType
|
|
752
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
753
|
+
|
|
754
|
+
TaggedSymbol =
|
|
755
|
+
T.type_alias do
|
|
756
|
+
T.all(
|
|
757
|
+
Symbol,
|
|
758
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType
|
|
759
|
+
)
|
|
760
|
+
end
|
|
761
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
762
|
+
|
|
763
|
+
ETHEREUM_ADDRESS =
|
|
764
|
+
T.let(
|
|
765
|
+
:ethereum_address,
|
|
766
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
767
|
+
)
|
|
768
|
+
SOLANA_ADDRESS =
|
|
769
|
+
T.let(
|
|
770
|
+
:solana_address,
|
|
771
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
772
|
+
)
|
|
773
|
+
POLYGON_ADDRESS =
|
|
774
|
+
T.let(
|
|
775
|
+
:polygon_address,
|
|
776
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
777
|
+
)
|
|
778
|
+
BASE_ADDRESS =
|
|
779
|
+
T.let(
|
|
780
|
+
:base_address,
|
|
781
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
782
|
+
)
|
|
783
|
+
|
|
784
|
+
sig do
|
|
785
|
+
override.returns(
|
|
786
|
+
T::Array[
|
|
787
|
+
ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType::TaggedSymbol
|
|
788
|
+
]
|
|
789
|
+
)
|
|
790
|
+
end
|
|
791
|
+
def self.values
|
|
792
|
+
end
|
|
793
|
+
end
|
|
714
794
|
end
|
|
715
795
|
end
|
|
716
796
|
end
|
|
@@ -445,7 +445,8 @@ module ModernTreasury
|
|
|
445
445
|
sig { returns(String) }
|
|
446
446
|
attr_accessor :line1
|
|
447
447
|
|
|
448
|
-
# Locality or City.
|
|
448
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
449
|
+
# Francisco).
|
|
449
450
|
sig { returns(String) }
|
|
450
451
|
attr_accessor :locality
|
|
451
452
|
|
|
@@ -453,7 +454,8 @@ module ModernTreasury
|
|
|
453
454
|
sig { returns(String) }
|
|
454
455
|
attr_accessor :postal_code
|
|
455
456
|
|
|
456
|
-
# Region or State.
|
|
457
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
458
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
457
459
|
sig { returns(String) }
|
|
458
460
|
attr_accessor :region
|
|
459
461
|
|
|
@@ -478,11 +480,13 @@ module ModernTreasury
|
|
|
478
480
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
479
481
|
country:,
|
|
480
482
|
line1:,
|
|
481
|
-
# Locality or City.
|
|
483
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
484
|
+
# Francisco).
|
|
482
485
|
locality:,
|
|
483
486
|
# The postal code of the address.
|
|
484
487
|
postal_code:,
|
|
485
|
-
# Region or State.
|
|
488
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
489
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
486
490
|
region:,
|
|
487
491
|
line2: nil
|
|
488
492
|
)
|
|
@@ -520,7 +524,8 @@ module ModernTreasury
|
|
|
520
524
|
sig { returns(String) }
|
|
521
525
|
attr_accessor :line1
|
|
522
526
|
|
|
523
|
-
# Locality or City.
|
|
527
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
528
|
+
# Francisco).
|
|
524
529
|
sig { returns(String) }
|
|
525
530
|
attr_accessor :locality
|
|
526
531
|
|
|
@@ -528,7 +533,8 @@ module ModernTreasury
|
|
|
528
533
|
sig { returns(String) }
|
|
529
534
|
attr_accessor :postal_code
|
|
530
535
|
|
|
531
|
-
# Region or State.
|
|
536
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
537
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
532
538
|
sig { returns(String) }
|
|
533
539
|
attr_accessor :region
|
|
534
540
|
|
|
@@ -553,11 +559,13 @@ module ModernTreasury
|
|
|
553
559
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
554
560
|
country:,
|
|
555
561
|
line1:,
|
|
556
|
-
# Locality or City.
|
|
562
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
563
|
+
# Francisco).
|
|
557
564
|
locality:,
|
|
558
565
|
# The postal code of the address.
|
|
559
566
|
postal_code:,
|
|
560
|
-
# Region or State.
|
|
567
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
568
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
561
569
|
region:,
|
|
562
570
|
line2: nil
|
|
563
571
|
)
|
|
@@ -595,7 +603,8 @@ module ModernTreasury
|
|
|
595
603
|
sig { returns(String) }
|
|
596
604
|
attr_accessor :line1
|
|
597
605
|
|
|
598
|
-
# Locality or City.
|
|
606
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
607
|
+
# Francisco).
|
|
599
608
|
sig { returns(String) }
|
|
600
609
|
attr_accessor :locality
|
|
601
610
|
|
|
@@ -603,7 +612,8 @@ module ModernTreasury
|
|
|
603
612
|
sig { returns(String) }
|
|
604
613
|
attr_accessor :postal_code
|
|
605
614
|
|
|
606
|
-
# Region or State.
|
|
615
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
616
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
607
617
|
sig { returns(String) }
|
|
608
618
|
attr_accessor :region
|
|
609
619
|
|
|
@@ -628,11 +638,13 @@ module ModernTreasury
|
|
|
628
638
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
629
639
|
country:,
|
|
630
640
|
line1:,
|
|
631
|
-
# Locality or City.
|
|
641
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
642
|
+
# Francisco).
|
|
632
643
|
locality:,
|
|
633
644
|
# The postal code of the address.
|
|
634
645
|
postal_code:,
|
|
635
|
-
# Region or State.
|
|
646
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
647
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
636
648
|
region:,
|
|
637
649
|
line2: nil
|
|
638
650
|
)
|
|
@@ -401,7 +401,8 @@ module ModernTreasury
|
|
|
401
401
|
sig { returns(String) }
|
|
402
402
|
attr_accessor :line1
|
|
403
403
|
|
|
404
|
-
# Locality or City.
|
|
404
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
405
|
+
# Francisco).
|
|
405
406
|
sig { returns(String) }
|
|
406
407
|
attr_accessor :locality
|
|
407
408
|
|
|
@@ -409,7 +410,8 @@ module ModernTreasury
|
|
|
409
410
|
sig { returns(String) }
|
|
410
411
|
attr_accessor :postal_code
|
|
411
412
|
|
|
412
|
-
# Region or State.
|
|
413
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
414
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
413
415
|
sig { returns(String) }
|
|
414
416
|
attr_accessor :region
|
|
415
417
|
|
|
@@ -434,11 +436,13 @@ module ModernTreasury
|
|
|
434
436
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
435
437
|
country:,
|
|
436
438
|
line1:,
|
|
437
|
-
# Locality or City.
|
|
439
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
440
|
+
# Francisco).
|
|
438
441
|
locality:,
|
|
439
442
|
# The postal code of the address.
|
|
440
443
|
postal_code:,
|
|
441
|
-
# Region or State.
|
|
444
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
445
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
442
446
|
region:,
|
|
443
447
|
line2: nil
|
|
444
448
|
)
|
|
@@ -476,7 +480,8 @@ module ModernTreasury
|
|
|
476
480
|
sig { returns(String) }
|
|
477
481
|
attr_accessor :line1
|
|
478
482
|
|
|
479
|
-
# Locality or City.
|
|
483
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
484
|
+
# Francisco).
|
|
480
485
|
sig { returns(String) }
|
|
481
486
|
attr_accessor :locality
|
|
482
487
|
|
|
@@ -484,7 +489,8 @@ module ModernTreasury
|
|
|
484
489
|
sig { returns(String) }
|
|
485
490
|
attr_accessor :postal_code
|
|
486
491
|
|
|
487
|
-
# Region or State.
|
|
492
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
493
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
488
494
|
sig { returns(String) }
|
|
489
495
|
attr_accessor :region
|
|
490
496
|
|
|
@@ -509,11 +515,13 @@ module ModernTreasury
|
|
|
509
515
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
510
516
|
country:,
|
|
511
517
|
line1:,
|
|
512
|
-
# Locality or City.
|
|
518
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
519
|
+
# Francisco).
|
|
513
520
|
locality:,
|
|
514
521
|
# The postal code of the address.
|
|
515
522
|
postal_code:,
|
|
516
|
-
# Region or State.
|
|
523
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
524
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
517
525
|
region:,
|
|
518
526
|
line2: nil
|
|
519
527
|
)
|
|
@@ -663,7 +671,8 @@ module ModernTreasury
|
|
|
663
671
|
sig { returns(String) }
|
|
664
672
|
attr_accessor :line1
|
|
665
673
|
|
|
666
|
-
# Locality or City.
|
|
674
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
675
|
+
# Francisco).
|
|
667
676
|
sig { returns(String) }
|
|
668
677
|
attr_accessor :locality
|
|
669
678
|
|
|
@@ -671,7 +680,8 @@ module ModernTreasury
|
|
|
671
680
|
sig { returns(String) }
|
|
672
681
|
attr_accessor :postal_code
|
|
673
682
|
|
|
674
|
-
# Region or State.
|
|
683
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
684
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
675
685
|
sig { returns(String) }
|
|
676
686
|
attr_accessor :region
|
|
677
687
|
|
|
@@ -696,11 +706,13 @@ module ModernTreasury
|
|
|
696
706
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
697
707
|
country:,
|
|
698
708
|
line1:,
|
|
699
|
-
# Locality or City.
|
|
709
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
710
|
+
# Francisco).
|
|
700
711
|
locality:,
|
|
701
712
|
# The postal code of the address.
|
|
702
713
|
postal_code:,
|
|
703
|
-
# Region or State.
|
|
714
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
715
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
704
716
|
region:,
|
|
705
717
|
line2: nil
|
|
706
718
|
)
|
|
@@ -419,7 +419,8 @@ module ModernTreasury
|
|
|
419
419
|
sig { returns(String) }
|
|
420
420
|
attr_accessor :line1
|
|
421
421
|
|
|
422
|
-
# Locality or City.
|
|
422
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
423
|
+
# Francisco).
|
|
423
424
|
sig { returns(String) }
|
|
424
425
|
attr_accessor :locality
|
|
425
426
|
|
|
@@ -427,7 +428,8 @@ module ModernTreasury
|
|
|
427
428
|
sig { returns(String) }
|
|
428
429
|
attr_accessor :postal_code
|
|
429
430
|
|
|
430
|
-
# Region or State.
|
|
431
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
432
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
431
433
|
sig { returns(String) }
|
|
432
434
|
attr_accessor :region
|
|
433
435
|
|
|
@@ -452,11 +454,13 @@ module ModernTreasury
|
|
|
452
454
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
453
455
|
country:,
|
|
454
456
|
line1:,
|
|
455
|
-
# Locality or City.
|
|
457
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
458
|
+
# Francisco).
|
|
456
459
|
locality:,
|
|
457
460
|
# The postal code of the address.
|
|
458
461
|
postal_code:,
|
|
459
|
-
# Region or State.
|
|
462
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
463
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
460
464
|
region:,
|
|
461
465
|
line2: nil
|
|
462
466
|
)
|
|
@@ -494,7 +498,8 @@ module ModernTreasury
|
|
|
494
498
|
sig { returns(String) }
|
|
495
499
|
attr_accessor :line1
|
|
496
500
|
|
|
497
|
-
# Locality or City.
|
|
501
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
502
|
+
# Francisco).
|
|
498
503
|
sig { returns(String) }
|
|
499
504
|
attr_accessor :locality
|
|
500
505
|
|
|
@@ -502,7 +507,8 @@ module ModernTreasury
|
|
|
502
507
|
sig { returns(String) }
|
|
503
508
|
attr_accessor :postal_code
|
|
504
509
|
|
|
505
|
-
# Region or State.
|
|
510
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
511
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
506
512
|
sig { returns(String) }
|
|
507
513
|
attr_accessor :region
|
|
508
514
|
|
|
@@ -527,11 +533,13 @@ module ModernTreasury
|
|
|
527
533
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
528
534
|
country:,
|
|
529
535
|
line1:,
|
|
530
|
-
# Locality or City.
|
|
536
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
537
|
+
# Francisco).
|
|
531
538
|
locality:,
|
|
532
539
|
# The postal code of the address.
|
|
533
540
|
postal_code:,
|
|
534
|
-
# Region or State.
|
|
541
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
542
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
535
543
|
region:,
|
|
536
544
|
line2: nil
|
|
537
545
|
)
|
|
@@ -681,7 +689,8 @@ module ModernTreasury
|
|
|
681
689
|
sig { returns(String) }
|
|
682
690
|
attr_accessor :line1
|
|
683
691
|
|
|
684
|
-
# Locality or City.
|
|
692
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
693
|
+
# Francisco).
|
|
685
694
|
sig { returns(String) }
|
|
686
695
|
attr_accessor :locality
|
|
687
696
|
|
|
@@ -689,7 +698,8 @@ module ModernTreasury
|
|
|
689
698
|
sig { returns(String) }
|
|
690
699
|
attr_accessor :postal_code
|
|
691
700
|
|
|
692
|
-
# Region or State.
|
|
701
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
702
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
693
703
|
sig { returns(String) }
|
|
694
704
|
attr_accessor :region
|
|
695
705
|
|
|
@@ -714,11 +724,13 @@ module ModernTreasury
|
|
|
714
724
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
715
725
|
country:,
|
|
716
726
|
line1:,
|
|
717
|
-
# Locality or City.
|
|
727
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
728
|
+
# Francisco).
|
|
718
729
|
locality:,
|
|
719
730
|
# The postal code of the address.
|
|
720
731
|
postal_code:,
|
|
721
|
-
# Region or State.
|
|
732
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
733
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
722
734
|
region:,
|
|
723
735
|
line2: nil
|
|
724
736
|
)
|
|
@@ -84,6 +84,7 @@ module ModernTreasury
|
|
|
84
84
|
sig { returns(T.nilable(T::Boolean)) }
|
|
85
85
|
attr_accessor :show_resulting_ledger_account_balances
|
|
86
86
|
|
|
87
|
+
# At least one of "amount" or "amount_string" is required.
|
|
87
88
|
sig do
|
|
88
89
|
params(
|
|
89
90
|
direction: ModernTreasury::TransactionDirection::OrSymbol,
|