modern_treasury 0.27.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 +63 -0
- data/README.md +6 -6
- data/lib/modern_treasury/client.rb +14 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
- 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 +104 -64
- data/lib/modern_treasury/models/child_legal_entity.rb +142 -14
- data/lib/modern_treasury/models/child_legal_entity_create.rb +48 -8
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +52 -8
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +52 -17
- data/lib/modern_treasury/models/currency.rb +0 -2
- data/lib/modern_treasury/models/document.rb +1 -73
- data/lib/modern_treasury/models/document_create_params.rb +11 -11
- data/lib/modern_treasury/models/document_list_params.rb +11 -11
- data/lib/modern_treasury/models/expected_payment.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
- data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
- data/lib/modern_treasury/models/hold_list_params.rb +8 -11
- data/lib/modern_treasury/models/identification_create_request.rb +77 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
- data/lib/modern_treasury/models/internal_account.rb +12 -8
- data/lib/modern_treasury/models/internal_account_create_params.rb +66 -34
- data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +21 -10
- data/lib/modern_treasury/models/invoice.rb +33 -18
- data/lib/modern_treasury/models/invoice_create_params.rb +32 -16
- data/lib/modern_treasury/models/invoice_update_params.rb +32 -16
- data/lib/modern_treasury/models/ledger_balance.rb +22 -1
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +20 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +70 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +142 -14
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +20 -5
- data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
- data/lib/modern_treasury/models/payment_order.rb +6 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +18 -21
- data/lib/modern_treasury/models/payment_order_create_params.rb +29 -32
- data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
- data/lib/modern_treasury/models/payment_order_type.rb +2 -10
- data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
- data/lib/modern_treasury/models/payment_reference.rb +2 -4
- data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
- data/lib/modern_treasury/models/return_object.rb +8 -7
- data/lib/modern_treasury/models/routing_detail.rb +0 -9
- data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction.rb +17 -15
- data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
- data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +3 -3
- data/lib/modern_treasury/resources/holds.rb +3 -3
- data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +10 -6
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/legal_entities.rb +11 -7
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/transactions.rb +5 -3
- data/lib/modern_treasury/version.rb +1 -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 +147 -178
- data/rbi/modern_treasury/models/child_legal_entity.rbi +487 -18
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +85 -9
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +91 -9
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +91 -54
- data/rbi/modern_treasury/models/currency.rbi +0 -2
- data/rbi/modern_treasury/models/document.rbi +0 -87
- data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
- data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
- data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
- data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
- data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
- data/rbi/modern_treasury/models/identification_create_request.rbi +385 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
- data/rbi/modern_treasury/models/internal_account.rbi +14 -35
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +131 -63
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +32 -15
- data/rbi/modern_treasury/models/invoice.rbi +30 -18
- data/rbi/modern_treasury/models/invoice_create_params.rbi +28 -18
- data/rbi/modern_treasury/models/invoice_update_params.rbi +28 -18
- data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +27 -10
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +90 -13
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +486 -18
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +26 -7
- data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
- data/rbi/modern_treasury/models/payment_order.rbi +16 -28
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +18 -61
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +40 -83
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
- data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
- data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
- data/rbi/modern_treasury/models/return_object.rbi +19 -25
- data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction.rbi +24 -24
- data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
- data/rbi/modern_treasury/resources/holds.rbi +3 -5
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +21 -8
- data/rbi/modern_treasury/resources/invoices.rbi +4 -6
- data/rbi/modern_treasury/resources/legal_entities.rbi +21 -9
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -14
- data/rbi/modern_treasury/resources/transactions.rbi +11 -7
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +63 -60
- data/sig/modern_treasury/models/child_legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
- data/sig/modern_treasury/models/currency.rbs +0 -4
- data/sig/modern_treasury/models/document.rbs +0 -57
- data/sig/modern_treasury/models/document_create_params.rbs +22 -22
- data/sig/modern_treasury/models/document_list_params.rbs +22 -22
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
- data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
- data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
- data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
- data/sig/modern_treasury/models/identification_create_request.rbs +154 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
- data/sig/modern_treasury/models/internal_account.rbs +5 -14
- data/sig/modern_treasury/models/internal_account_create_params.rbs +43 -26
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
- data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
- data/sig/modern_treasury/models/payment_order.rbs +4 -8
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -23
- data/sig/modern_treasury/models/payment_order_create_params.rbs +27 -45
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
- data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
- data/sig/modern_treasury/models/payment_reference.rbs +4 -8
- data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
- data/sig/modern_treasury/models/return_object.rbs +12 -10
- data/sig/modern_treasury/models/routing_detail.rbs +0 -18
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
- data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
- data/sig/modern_treasury/models/transaction.rbs +7 -16
- data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts.rbs +4 -2
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
- data/sig/modern_treasury/resources/transactions.rbs +2 -1
- metadata +2 -2
|
@@ -60,13 +60,6 @@ module ModernTreasury
|
|
|
60
60
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
61
61
|
|
|
62
62
|
class PostedLedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
|
63
|
-
# @!attribute amount
|
|
64
|
-
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
65
|
-
# as 1000. Can be any integer up to 36 digits.
|
|
66
|
-
#
|
|
67
|
-
# @return [Integer]
|
|
68
|
-
required :amount, Integer
|
|
69
|
-
|
|
70
63
|
# @!attribute direction
|
|
71
64
|
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
72
65
|
# transaction. A `credit` moves money from your account to someone else's. A
|
|
@@ -83,6 +76,37 @@ module ModernTreasury
|
|
|
83
76
|
# @return [String]
|
|
84
77
|
required :ledger_account_id, String
|
|
85
78
|
|
|
79
|
+
# @!attribute amount
|
|
80
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
81
|
+
# as 1000. Can be any integer up to 36 digits.
|
|
82
|
+
#
|
|
83
|
+
# @return [Integer, nil]
|
|
84
|
+
optional :amount, Integer
|
|
85
|
+
|
|
86
|
+
# @!attribute amount_string
|
|
87
|
+
# The amount of the ledger entry as a string, preserving full precision for values
|
|
88
|
+
# that may exceed safe integer limits in some languages.
|
|
89
|
+
#
|
|
90
|
+
# @return [String, nil]
|
|
91
|
+
optional :amount_string, String
|
|
92
|
+
|
|
93
|
+
# @!attribute available_balance_amount
|
|
94
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
95
|
+
# account’s available balance. If any of these conditions would be false after the
|
|
96
|
+
# transaction is created, the entire call will fail with error code 422.
|
|
97
|
+
#
|
|
98
|
+
# @return [Hash{Symbol=>Integer}, nil]
|
|
99
|
+
optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute lock_version
|
|
102
|
+
# Lock version of the ledger account. This can be passed when creating a ledger
|
|
103
|
+
# transaction to only succeed if no ledger transactions have posted since the
|
|
104
|
+
# given version. See our post about Designing the Ledgers API with Optimistic
|
|
105
|
+
# Locking for more details.
|
|
106
|
+
#
|
|
107
|
+
# @return [Integer, nil]
|
|
108
|
+
optional :lock_version, Integer, nil?: true
|
|
109
|
+
|
|
86
110
|
# @!attribute metadata
|
|
87
111
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
88
112
|
# strings.
|
|
@@ -90,18 +114,55 @@ module ModernTreasury
|
|
|
90
114
|
# @return [Hash{Symbol=>String}, nil]
|
|
91
115
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
92
116
|
|
|
93
|
-
# @!
|
|
117
|
+
# @!attribute pending_balance_amount
|
|
118
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
119
|
+
# account’s pending balance. If any of these conditions would be false after the
|
|
120
|
+
# transaction is created, the entire call will fail with error code 422.
|
|
121
|
+
#
|
|
122
|
+
# @return [Hash{Symbol=>Integer}, nil]
|
|
123
|
+
optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
124
|
+
|
|
125
|
+
# @!attribute posted_balance_amount
|
|
126
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
127
|
+
# account’s posted balance. If any of these conditions would be false after the
|
|
128
|
+
# transaction is created, the entire call will fail with error code 422.
|
|
129
|
+
#
|
|
130
|
+
# @return [Hash{Symbol=>Integer}, nil]
|
|
131
|
+
optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
132
|
+
|
|
133
|
+
# @!attribute show_resulting_ledger_account_balances
|
|
134
|
+
# If true, response will include the balance of the associated ledger account for
|
|
135
|
+
# the entry.
|
|
136
|
+
#
|
|
137
|
+
# @return [Boolean, nil]
|
|
138
|
+
optional :show_resulting_ledger_account_balances, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
139
|
+
|
|
140
|
+
# @!method initialize(direction:, ledger_account_id:, amount: nil, amount_string: nil, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
|
|
94
141
|
# Some parameter documentations has been truncated, see
|
|
95
142
|
# {ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry}
|
|
96
143
|
# for more details.
|
|
97
144
|
#
|
|
98
|
-
#
|
|
145
|
+
# At least one of "amount" or "amount_string" is required.
|
|
99
146
|
#
|
|
100
147
|
# @param direction [Symbol, ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
|
101
148
|
#
|
|
102
149
|
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
|
103
150
|
#
|
|
151
|
+
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
152
|
+
#
|
|
153
|
+
# @param amount_string [String] The amount of the ledger entry as a string, preserving full precision for values
|
|
154
|
+
#
|
|
155
|
+
# @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
156
|
+
#
|
|
157
|
+
# @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
|
|
158
|
+
#
|
|
104
159
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
160
|
+
#
|
|
161
|
+
# @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
162
|
+
#
|
|
163
|
+
# @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
164
|
+
#
|
|
165
|
+
# @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
|
|
105
166
|
|
|
106
167
|
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
107
168
|
# transaction. A `credit` moves money from your account to someone else's. A
|
|
@@ -204,6 +204,13 @@ module ModernTreasury
|
|
|
204
204
|
# @return [Integer]
|
|
205
205
|
required :amount, Integer
|
|
206
206
|
|
|
207
|
+
# @!attribute amount_string
|
|
208
|
+
# The amount of the ledger entry as a string, preserving full precision for values
|
|
209
|
+
# that may exceed safe integer limits in some languages.
|
|
210
|
+
#
|
|
211
|
+
# @return [String]
|
|
212
|
+
required :amount_string, String
|
|
213
|
+
|
|
207
214
|
# @!attribute created_at
|
|
208
215
|
#
|
|
209
216
|
# @return [Time]
|
|
@@ -297,7 +304,7 @@ module ModernTreasury
|
|
|
297
304
|
required :status,
|
|
298
305
|
enum: -> { ModernTreasury::LedgerTransactions::LedgerTransactionVersion::LedgerEntry::Status }
|
|
299
306
|
|
|
300
|
-
# @!method initialize(id:, amount:, created_at:, direction:, effective_at:, ledger_account_currency:, ledger_account_currency_exponent:, ledger_account_id:, ledger_account_lock_version:, ledger_transaction_id:, live_mode:, metadata:, object:, resulting_ledger_account_balances:, status:)
|
|
307
|
+
# @!method initialize(id:, amount:, amount_string:, created_at:, direction:, effective_at:, ledger_account_currency:, ledger_account_currency_exponent:, ledger_account_id:, ledger_account_lock_version:, ledger_transaction_id:, live_mode:, metadata:, object:, resulting_ledger_account_balances:, status:)
|
|
301
308
|
# Some parameter documentations has been truncated, see
|
|
302
309
|
# {ModernTreasury::Models::LedgerTransactions::LedgerTransactionVersion::LedgerEntry}
|
|
303
310
|
# for more details.
|
|
@@ -306,6 +313,8 @@ module ModernTreasury
|
|
|
306
313
|
#
|
|
307
314
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
308
315
|
#
|
|
316
|
+
# @param amount_string [String] The amount of the ledger entry as a string, preserving full precision for values
|
|
317
|
+
#
|
|
309
318
|
# @param created_at [Time]
|
|
310
319
|
#
|
|
311
320
|
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
|
@@ -45,8 +45,8 @@ module ModernTreasury
|
|
|
45
45
|
required :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
46
46
|
|
|
47
47
|
# @!attribute country_of_incorporation
|
|
48
|
-
# The country
|
|
49
|
-
#
|
|
48
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
49
|
+
# code (e.g. US).
|
|
50
50
|
#
|
|
51
51
|
# @return [String, nil]
|
|
52
52
|
required :country_of_incorporation, String, nil?: true
|
|
@@ -177,8 +177,8 @@ module ModernTreasury
|
|
|
177
177
|
required :object, String
|
|
178
178
|
|
|
179
179
|
# @!attribute operating_jurisdictions
|
|
180
|
-
# A list of countries where the business operates
|
|
181
|
-
# codes).
|
|
180
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
181
|
+
# codes (e.g. ["US", "CA"]).
|
|
182
182
|
#
|
|
183
183
|
# @return [Array<String>]
|
|
184
184
|
required :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
@@ -246,6 +246,12 @@ module ModernTreasury
|
|
|
246
246
|
# @return [String, nil]
|
|
247
247
|
required :suffix, String, nil?: true
|
|
248
248
|
|
|
249
|
+
# @!attribute terms_of_use
|
|
250
|
+
# Acceptance of terms of use by the legal entity.
|
|
251
|
+
#
|
|
252
|
+
# @return [ModernTreasury::Models::LegalEntity::TermsOfUse, nil]
|
|
253
|
+
required :terms_of_use, -> { ModernTreasury::LegalEntity::TermsOfUse }, nil?: true
|
|
254
|
+
|
|
249
255
|
# @!attribute third_party_verification
|
|
250
256
|
# @deprecated
|
|
251
257
|
#
|
|
@@ -293,7 +299,7 @@ module ModernTreasury
|
|
|
293
299
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
|
|
294
300
|
nil?: true
|
|
295
301
|
|
|
296
|
-
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:, legal_entity_associations: nil)
|
|
302
|
+
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, terms_of_use:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:, legal_entity_associations: nil)
|
|
297
303
|
# Some parameter documentations has been truncated, see
|
|
298
304
|
# {ModernTreasury::Models::LegalEntity} for more details.
|
|
299
305
|
#
|
|
@@ -311,7 +317,7 @@ module ModernTreasury
|
|
|
311
317
|
#
|
|
312
318
|
# @param compliance_details [Object, nil]
|
|
313
319
|
#
|
|
314
|
-
# @param country_of_incorporation [String, nil] The country
|
|
320
|
+
# @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
315
321
|
#
|
|
316
322
|
# @param created_at [Time]
|
|
317
323
|
#
|
|
@@ -355,7 +361,7 @@ module ModernTreasury
|
|
|
355
361
|
#
|
|
356
362
|
# @param object [String]
|
|
357
363
|
#
|
|
358
|
-
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates
|
|
364
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
|
|
359
365
|
#
|
|
360
366
|
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntity::PhoneNumber>]
|
|
361
367
|
#
|
|
@@ -377,6 +383,8 @@ module ModernTreasury
|
|
|
377
383
|
#
|
|
378
384
|
# @param suffix [String, nil] An individual's suffix.
|
|
379
385
|
#
|
|
386
|
+
# @param terms_of_use [ModernTreasury::Models::LegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
387
|
+
#
|
|
380
388
|
# @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
|
|
381
389
|
#
|
|
382
390
|
# @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
|
|
@@ -438,7 +446,8 @@ module ModernTreasury
|
|
|
438
446
|
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
439
447
|
|
|
440
448
|
# @!attribute locality
|
|
441
|
-
# Locality or City.
|
|
449
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
450
|
+
# Francisco).
|
|
442
451
|
#
|
|
443
452
|
# @return [String, nil]
|
|
444
453
|
required :locality, String, nil?: true
|
|
@@ -454,8 +463,16 @@ module ModernTreasury
|
|
|
454
463
|
# @return [String, nil]
|
|
455
464
|
required :postal_code, String, nil?: true
|
|
456
465
|
|
|
466
|
+
# @!attribute primary
|
|
467
|
+
# Whether this address is the primary address for the legal entity. Optional; when
|
|
468
|
+
# omitted it is inferred from the address types.
|
|
469
|
+
#
|
|
470
|
+
# @return [Boolean, nil]
|
|
471
|
+
required :primary, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
472
|
+
|
|
457
473
|
# @!attribute region
|
|
458
|
-
# Region or State.
|
|
474
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
475
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
459
476
|
#
|
|
460
477
|
# @return [String, nil]
|
|
461
478
|
required :region, String, nil?: true
|
|
@@ -465,7 +482,7 @@ module ModernTreasury
|
|
|
465
482
|
# @return [Time]
|
|
466
483
|
required :updated_at, Time
|
|
467
484
|
|
|
468
|
-
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
|
485
|
+
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, primary:, region:, updated_at:)
|
|
469
486
|
# Some parameter documentations has been truncated, see
|
|
470
487
|
# {ModernTreasury::Models::LegalEntity::Address} for more details.
|
|
471
488
|
#
|
|
@@ -485,13 +502,15 @@ module ModernTreasury
|
|
|
485
502
|
#
|
|
486
503
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
487
504
|
#
|
|
488
|
-
# @param locality [String, nil] Locality or City.
|
|
505
|
+
# @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
|
|
489
506
|
#
|
|
490
507
|
# @param object [String]
|
|
491
508
|
#
|
|
492
509
|
# @param postal_code [String, nil] The postal code of the address.
|
|
493
510
|
#
|
|
494
|
-
# @param
|
|
511
|
+
# @param primary [Boolean, nil] Whether this address is the primary address for the legal entity. Optional; when
|
|
512
|
+
#
|
|
513
|
+
# @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
|
|
495
514
|
#
|
|
496
515
|
# @param updated_at [Time]
|
|
497
516
|
|
|
@@ -499,6 +518,7 @@ module ModernTreasury
|
|
|
499
518
|
extend ModernTreasury::Internal::Type::Enum
|
|
500
519
|
|
|
501
520
|
BUSINESS = :business
|
|
521
|
+
BUSINESS_PHYSICAL = :business_physical
|
|
502
522
|
BUSINESS_REGISTERED = :business_registered
|
|
503
523
|
MAILING = :mailing
|
|
504
524
|
OTHER = :other
|
|
@@ -608,27 +628,104 @@ module ModernTreasury
|
|
|
608
628
|
|
|
609
629
|
AR_CUIL = :ar_cuil
|
|
610
630
|
AR_CUIT = :ar_cuit
|
|
631
|
+
AT_ATIN = :at_atin
|
|
632
|
+
AT_VAT = :at_vat
|
|
633
|
+
AU_ABN = :au_abn
|
|
634
|
+
AU_TFN = :au_tfn
|
|
635
|
+
BE_ENT = :be_ent
|
|
636
|
+
BE_NRN = :be_nrn
|
|
611
637
|
BR_CNPJ = :br_cnpj
|
|
612
638
|
BR_CPF = :br_cpf
|
|
639
|
+
CA_BN = :ca_bn
|
|
613
640
|
CA_SIN = :ca_sin
|
|
641
|
+
CH_AHV = :ch_ahv
|
|
642
|
+
CH_UID = :ch_uid
|
|
614
643
|
CL_RUN = :cl_run
|
|
615
644
|
CL_RUT = :cl_rut
|
|
616
645
|
CO_CEDULAS = :co_cedulas
|
|
617
646
|
CO_NIT = :co_nit
|
|
647
|
+
CY_TIN = :cy_tin
|
|
648
|
+
CZ_ICO = :cz_ico
|
|
649
|
+
CZ_RC = :cz_rc
|
|
650
|
+
DE_STID = :de_stid
|
|
651
|
+
DE_STNR = :de_stnr
|
|
652
|
+
DE_VAT = :de_vat
|
|
653
|
+
DK_CPR = :dk_cpr
|
|
654
|
+
DK_CVR = :dk_cvr
|
|
618
655
|
DRIVERS_LICENSE = :drivers_license
|
|
656
|
+
EE_IK = :ee_ik
|
|
657
|
+
EE_RK = :ee_rk
|
|
658
|
+
ES_NIE = :es_nie
|
|
659
|
+
ES_NIF = :es_nif
|
|
660
|
+
FI_HETU = :fi_hetu
|
|
661
|
+
FI_YTJ = :fi_ytj
|
|
662
|
+
FR_NIF = :fr_nif
|
|
663
|
+
FR_SIREN = :fr_siren
|
|
664
|
+
FR_VAT = :fr_vat
|
|
665
|
+
GB_NINO = :gb_nino
|
|
666
|
+
GB_UTR = :gb_utr
|
|
667
|
+
GB_VAT = :gb_vat
|
|
668
|
+
GENERIC_INTERNATIONAL = :generic_international
|
|
669
|
+
GR_VAT = :gr_vat
|
|
670
|
+
HK_BRN = :hk_brn
|
|
671
|
+
HK_HKID = :hk_hkid
|
|
619
672
|
HN_ID = :hn_id
|
|
620
673
|
HN_RTN = :hn_rtn
|
|
674
|
+
HR_OIB = :hr_oib
|
|
675
|
+
HU_ADJ = :hu_adj
|
|
676
|
+
HU_ANUM = :hu_anum
|
|
621
677
|
IE_PPS = :ie_pps
|
|
678
|
+
IE_TRN = :ie_trn
|
|
622
679
|
IN_LEI = :in_lei
|
|
680
|
+
IS_KNT = :is_knt
|
|
681
|
+
IT_CF = :it_cf
|
|
682
|
+
IT_PIVA = :it_piva
|
|
683
|
+
JP_HB = :jp_hb
|
|
684
|
+
JP_MN = :jp_mn
|
|
623
685
|
KR_BRN = :kr_brn
|
|
624
686
|
KR_CRN = :kr_crn
|
|
625
687
|
KR_RRN = :kr_rrn
|
|
688
|
+
LI_PEID = :li_peid
|
|
689
|
+
LT_AK = :lt_ak
|
|
690
|
+
LT_JAK = :lt_jak
|
|
691
|
+
LU_MTC = :lu_mtc
|
|
692
|
+
LU_VAT = :lu_vat
|
|
693
|
+
LV_PK = :lv_pk
|
|
694
|
+
LV_RN = :lv_rn
|
|
695
|
+
MT_TIN = :mt_tin
|
|
696
|
+
MT_VAT = :mt_vat
|
|
697
|
+
MX_CURP = :mx_curp
|
|
698
|
+
MX_INE = :mx_ine
|
|
699
|
+
MX_RFC = :mx_rfc
|
|
700
|
+
NATIONAL_ID = :national_id
|
|
701
|
+
NL_BSN = :nl_bsn
|
|
702
|
+
NL_BTW = :nl_btw
|
|
703
|
+
NL_RSIN = :nl_rsin
|
|
704
|
+
NO_FDN = :no_fdn
|
|
705
|
+
NO_MVA = :no_mva
|
|
706
|
+
NO_ORGNR = :no_orgnr
|
|
707
|
+
NZ_IRD = :nz_ird
|
|
626
708
|
PASSPORT = :passport
|
|
709
|
+
PL_NIP = :pl_nip
|
|
710
|
+
PL_PESEL = :pl_pesel
|
|
711
|
+
PT_NIF = :pt_nif
|
|
712
|
+
RO_CNP = :ro_cnp
|
|
713
|
+
RO_CUI = :ro_cui
|
|
627
714
|
SA_TIN = :sa_tin
|
|
628
715
|
SA_VAT = :sa_vat
|
|
716
|
+
SE_ORGNR = :se_orgnr
|
|
717
|
+
SE_PNMR = :se_pnmr
|
|
718
|
+
SG_FIN = :sg_fin
|
|
719
|
+
SG_NRIC = :sg_nric
|
|
720
|
+
SG_UEN = :sg_uen
|
|
721
|
+
SI_DAV = :si_dav
|
|
722
|
+
SI_TIN = :si_tin
|
|
723
|
+
SK_ICO = :sk_ico
|
|
724
|
+
SK_RC = :sk_rc
|
|
629
725
|
US_EIN = :us_ein
|
|
630
726
|
US_ITIN = :us_itin
|
|
631
727
|
US_SSN = :us_ssn
|
|
728
|
+
UY_RUT = :uy_rut
|
|
632
729
|
VN_TIN = :vn_tin
|
|
633
730
|
|
|
634
731
|
# @!method self.values
|
|
@@ -644,7 +741,6 @@ module ModernTreasury
|
|
|
644
741
|
|
|
645
742
|
BUSINESS = :business
|
|
646
743
|
INDIVIDUAL = :individual
|
|
647
|
-
JOINT = :joint
|
|
648
744
|
|
|
649
745
|
# @!method self.values
|
|
650
746
|
# @return [Array<Symbol>]
|
|
@@ -669,14 +765,20 @@ module ModernTreasury
|
|
|
669
765
|
|
|
670
766
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
671
767
|
# @!attribute phone_number
|
|
768
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
769
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
770
|
+
# +12025551234.
|
|
672
771
|
#
|
|
673
772
|
# @return [String, nil]
|
|
674
773
|
optional :phone_number, String
|
|
675
774
|
|
|
676
775
|
# @!method initialize(phone_number: nil)
|
|
776
|
+
# Some parameter documentations has been truncated, see
|
|
777
|
+
# {ModernTreasury::Models::LegalEntity::PhoneNumber} for more details.
|
|
778
|
+
#
|
|
677
779
|
# A list of phone numbers in E.164 format.
|
|
678
780
|
#
|
|
679
|
-
# @param phone_number [String]
|
|
781
|
+
# @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
|
|
680
782
|
end
|
|
681
783
|
|
|
682
784
|
class Regulator < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -739,6 +841,32 @@ module ModernTreasury
|
|
|
739
841
|
# @!method self.values
|
|
740
842
|
# @return [Array<Symbol>]
|
|
741
843
|
end
|
|
844
|
+
|
|
845
|
+
# @see ModernTreasury::Models::LegalEntity#terms_of_use
|
|
846
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
847
|
+
# @!attribute accepted_at
|
|
848
|
+
# The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
849
|
+
#
|
|
850
|
+
# @return [Time, nil]
|
|
851
|
+
optional :accepted_at, Time
|
|
852
|
+
|
|
853
|
+
# @!attribute ip_address
|
|
854
|
+
# The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
855
|
+
# IPv6 formats.
|
|
856
|
+
#
|
|
857
|
+
# @return [String, nil]
|
|
858
|
+
optional :ip_address, String
|
|
859
|
+
|
|
860
|
+
# @!method initialize(accepted_at: nil, ip_address: nil)
|
|
861
|
+
# Some parameter documentations has been truncated, see
|
|
862
|
+
# {ModernTreasury::Models::LegalEntity::TermsOfUse} for more details.
|
|
863
|
+
#
|
|
864
|
+
# Acceptance of terms of use by the legal entity.
|
|
865
|
+
#
|
|
866
|
+
# @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
867
|
+
#
|
|
868
|
+
# @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
869
|
+
end
|
|
742
870
|
end
|
|
743
871
|
end
|
|
744
872
|
end
|
|
@@ -15,7 +15,8 @@ module ModernTreasury
|
|
|
15
15
|
required :line1, String, nil?: true
|
|
16
16
|
|
|
17
17
|
# @!attribute locality
|
|
18
|
-
# Locality or City.
|
|
18
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
19
|
+
# Francisco).
|
|
19
20
|
#
|
|
20
21
|
# @return [String, nil]
|
|
21
22
|
required :locality, String, nil?: true
|
|
@@ -27,7 +28,8 @@ module ModernTreasury
|
|
|
27
28
|
required :postal_code, String, nil?: true
|
|
28
29
|
|
|
29
30
|
# @!attribute region
|
|
30
|
-
# Region or State.
|
|
31
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
32
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
31
33
|
#
|
|
32
34
|
# @return [String, nil]
|
|
33
35
|
required :region, String, nil?: true
|
|
@@ -44,25 +46,38 @@ module ModernTreasury
|
|
|
44
46
|
# @return [String, nil]
|
|
45
47
|
optional :line2, String, nil?: true
|
|
46
48
|
|
|
47
|
-
# @!
|
|
49
|
+
# @!attribute primary
|
|
50
|
+
# Whether this address is the primary address for the legal entity. Optional; when
|
|
51
|
+
# omitted it is inferred from the address types.
|
|
52
|
+
#
|
|
53
|
+
# @return [Boolean, nil]
|
|
54
|
+
optional :primary, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, primary: nil)
|
|
57
|
+
# Some parameter documentations has been truncated, see
|
|
58
|
+
# {ModernTreasury::Models::LegalEntityAddressCreateRequest} for more details.
|
|
59
|
+
#
|
|
48
60
|
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
49
61
|
#
|
|
50
62
|
# @param line1 [String, nil]
|
|
51
63
|
#
|
|
52
|
-
# @param locality [String, nil] Locality or City.
|
|
64
|
+
# @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
|
|
53
65
|
#
|
|
54
66
|
# @param postal_code [String, nil] The postal code of the address.
|
|
55
67
|
#
|
|
56
|
-
# @param region [String, nil] Region or State.
|
|
68
|
+
# @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
|
|
57
69
|
#
|
|
58
70
|
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityAddressCreateRequest::AddressType>] The types of this address.
|
|
59
71
|
#
|
|
60
72
|
# @param line2 [String, nil]
|
|
73
|
+
#
|
|
74
|
+
# @param primary [Boolean, nil] Whether this address is the primary address for the legal entity. Optional; when
|
|
61
75
|
|
|
62
76
|
module AddressType
|
|
63
77
|
extend ModernTreasury::Internal::Type::Enum
|
|
64
78
|
|
|
65
79
|
BUSINESS = :business
|
|
80
|
+
BUSINESS_PHYSICAL = :business_physical
|
|
66
81
|
BUSINESS_REGISTERED = :business_registered
|
|
67
82
|
MAILING = :mailing
|
|
68
83
|
OTHER = :other
|
|
@@ -43,8 +43,7 @@ module ModernTreasury
|
|
|
43
43
|
required :ownership_percentage, Integer, nil?: true
|
|
44
44
|
|
|
45
45
|
# @!attribute parent_legal_entity_id
|
|
46
|
-
# The ID of the parent legal entity. This must be a business
|
|
47
|
-
# entity.
|
|
46
|
+
# The ID of the parent legal entity. This must be a business legal entity.
|
|
48
47
|
#
|
|
49
48
|
# @return [String]
|
|
50
49
|
required :parent_legal_entity_id, String
|
|
@@ -84,7 +83,7 @@ module ModernTreasury
|
|
|
84
83
|
#
|
|
85
84
|
# @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
|
|
86
85
|
#
|
|
87
|
-
# @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business
|
|
86
|
+
# @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business legal entity.
|
|
88
87
|
#
|
|
89
88
|
# @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::RelationshipType>]
|
|
90
89
|
#
|
|
@@ -60,8 +60,8 @@ module ModernTreasury
|
|
|
60
60
|
optional :connection_id, String, nil?: true
|
|
61
61
|
|
|
62
62
|
# @!attribute country_of_incorporation
|
|
63
|
-
# The country
|
|
64
|
-
#
|
|
63
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
64
|
+
# code (e.g. US).
|
|
65
65
|
#
|
|
66
66
|
# @return [String, nil]
|
|
67
67
|
optional :country_of_incorporation, String, nil?: true
|
|
@@ -179,8 +179,8 @@ module ModernTreasury
|
|
|
179
179
|
optional :middle_name, String, nil?: true
|
|
180
180
|
|
|
181
181
|
# @!attribute operating_jurisdictions
|
|
182
|
-
# A list of countries where the business operates
|
|
183
|
-
# codes).
|
|
182
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
183
|
+
# codes (e.g. ["US", "CA"]).
|
|
184
184
|
#
|
|
185
185
|
# @return [Array<String>, nil]
|
|
186
186
|
optional :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
@@ -243,6 +243,12 @@ module ModernTreasury
|
|
|
243
243
|
# @return [String, nil]
|
|
244
244
|
optional :suffix, String, nil?: true
|
|
245
245
|
|
|
246
|
+
# @!attribute terms_of_use
|
|
247
|
+
# Acceptance of terms of use by the legal entity.
|
|
248
|
+
#
|
|
249
|
+
# @return [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil]
|
|
250
|
+
optional :terms_of_use, -> { ModernTreasury::LegalEntityCreateParams::TermsOfUse }, nil?: true
|
|
251
|
+
|
|
246
252
|
# @!attribute third_party_verification
|
|
247
253
|
# @deprecated
|
|
248
254
|
#
|
|
@@ -277,7 +283,7 @@ module ModernTreasury
|
|
|
277
283
|
# @return [String, nil]
|
|
278
284
|
optional :website, String, nil?: true
|
|
279
285
|
|
|
280
|
-
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
286
|
+
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
281
287
|
# Some parameter documentations has been truncated, see
|
|
282
288
|
# {ModernTreasury::Models::LegalEntityCreateParams} for more details.
|
|
283
289
|
#
|
|
@@ -297,7 +303,7 @@ module ModernTreasury
|
|
|
297
303
|
#
|
|
298
304
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
299
305
|
#
|
|
300
|
-
# @param country_of_incorporation [String, nil] The country
|
|
306
|
+
# @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
301
307
|
#
|
|
302
308
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
303
309
|
#
|
|
@@ -333,7 +339,7 @@ module ModernTreasury
|
|
|
333
339
|
#
|
|
334
340
|
# @param middle_name [String, nil] An individual's middle name.
|
|
335
341
|
#
|
|
336
|
-
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates
|
|
342
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
|
|
337
343
|
#
|
|
338
344
|
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>]
|
|
339
345
|
#
|
|
@@ -353,6 +359,8 @@ module ModernTreasury
|
|
|
353
359
|
#
|
|
354
360
|
# @param suffix [String, nil] An individual's suffix.
|
|
355
361
|
#
|
|
362
|
+
# @param terms_of_use [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
363
|
+
#
|
|
356
364
|
# @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
|
|
357
365
|
#
|
|
358
366
|
# @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
|
|
@@ -438,14 +446,20 @@ module ModernTreasury
|
|
|
438
446
|
|
|
439
447
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
440
448
|
# @!attribute phone_number
|
|
449
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
450
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
451
|
+
# +12025551234.
|
|
441
452
|
#
|
|
442
453
|
# @return [String, nil]
|
|
443
454
|
optional :phone_number, String
|
|
444
455
|
|
|
445
456
|
# @!method initialize(phone_number: nil)
|
|
457
|
+
# Some parameter documentations has been truncated, see
|
|
458
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber} for more details.
|
|
459
|
+
#
|
|
446
460
|
# A list of phone numbers in E.164 format.
|
|
447
461
|
#
|
|
448
|
-
# @param phone_number [String]
|
|
462
|
+
# @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
|
|
449
463
|
end
|
|
450
464
|
|
|
451
465
|
class Regulator < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -490,6 +504,31 @@ module ModernTreasury
|
|
|
490
504
|
# @!method self.values
|
|
491
505
|
# @return [Array<Symbol>]
|
|
492
506
|
end
|
|
507
|
+
|
|
508
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
509
|
+
# @!attribute accepted_at
|
|
510
|
+
# The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
511
|
+
#
|
|
512
|
+
# @return [Time, nil]
|
|
513
|
+
optional :accepted_at, Time
|
|
514
|
+
|
|
515
|
+
# @!attribute ip_address
|
|
516
|
+
# The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
517
|
+
# IPv6 formats.
|
|
518
|
+
#
|
|
519
|
+
# @return [String, nil]
|
|
520
|
+
optional :ip_address, String
|
|
521
|
+
|
|
522
|
+
# @!method initialize(accepted_at: nil, ip_address: nil)
|
|
523
|
+
# Some parameter documentations has been truncated, see
|
|
524
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse} for more details.
|
|
525
|
+
#
|
|
526
|
+
# Acceptance of terms of use by the legal entity.
|
|
527
|
+
#
|
|
528
|
+
# @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
529
|
+
#
|
|
530
|
+
# @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
531
|
+
end
|
|
493
532
|
end
|
|
494
533
|
end
|
|
495
534
|
end
|