modern_treasury 0.2.0 → 0.4.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 +17 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/child_legal_entity_create.rb +8 -6
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +8 -6
- data/lib/modern_treasury/models/counterparty_create_params.rb +8 -6
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +1 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +45 -1
- data/lib/modern_treasury/models/legal_entity.rb +8 -6
- data/lib/modern_treasury/models/legal_entity_association.rb +8 -6
- data/lib/modern_treasury/models/legal_entity_bank_settings.rb +91 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +8 -6
- data/lib/modern_treasury/models/legal_entity_update_params.rb +8 -6
- data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +312 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/ledger_entries.rb +3 -1
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +2 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +14 -8
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +16 -8
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +16 -8
- data/rbi/modern_treasury/models/ledger_account_settlement_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +82 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +14 -8
- data/rbi/modern_treasury/models/legal_entity_association.rbi +16 -8
- data/rbi/modern_treasury/models/legal_entity_bank_settings.rbi +112 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +14 -8
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +14 -8
- data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +815 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/ledger_entries.rbi +3 -0
- data/rbi/modern_treasury/resources/legal_entities.rbi +10 -4
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +8 -8
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +8 -8
- data/sig/modern_treasury/models/counterparty_create_params.rbs +8 -8
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +2 -1
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +50 -0
- data/sig/modern_treasury/models/legal_entity.rbs +8 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +8 -8
- data/sig/modern_treasury/models/legal_entity_bank_settings.rbs +65 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +8 -8
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +8 -8
- data/sig/modern_treasury/models/legal_entity_wealth_employment_detail.rbs +325 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/ledger_entries.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05ac7706a1bb07918679327a0069e36bce639bdc8fd653a4a1c1296300189f87
|
|
4
|
+
data.tar.gz: 4b857803eca4814bbdb2ef42c7b2adcfa423806ff7e08386c3c5bfa5b71eac71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e47dca680f1182ba83baad771981758610be067aef970688da48ed09ff3c4c9c7e6f249b5f36c986365f38fe8a3f93aeb6b180a7bb13736350293ae6154e7df
|
|
7
|
+
data.tar.gz: fdb8d6691fabb78fb3c3bf4b8e2e1e1c2d111e50b7d9c4290f7b9827e61e2f15df3aee2a17bd854398dab0a01611566448f7eec3977003d54b188ce1777f5f81
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 (2025-08-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.3.0...v0.4.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.3.0...v0.4.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9338696](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9338696991502c9587ac12e99bf438f318ed5dcd))
|
|
10
|
+
* **api:** manual updates ([51fe69c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/51fe69cc3f20b854ae8c9e10488784eea87811d5))
|
|
11
|
+
|
|
12
|
+
## 0.3.0 (2025-08-11)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v0.2.0...v0.3.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.2.0...v0.3.0)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** api update ([a4b71cb](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a4b71cba0ff870577eb70c2d30ca345b0186b322))
|
|
19
|
+
|
|
3
20
|
## 0.2.0 (2025-08-11)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v0.1.0...v0.2.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.1.0...v0.2.0)
|
data/README.md
CHANGED
|
@@ -12,8 +12,8 @@ module ModernTreasury
|
|
|
12
12
|
|
|
13
13
|
# @!attribute bank_settings
|
|
14
14
|
#
|
|
15
|
-
# @return [ModernTreasury::Models::
|
|
16
|
-
optional :bank_settings, -> { ModernTreasury::
|
|
15
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
16
|
+
optional :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
17
17
|
|
|
18
18
|
# @!attribute business_name
|
|
19
19
|
# The business's legal business name.
|
|
@@ -152,8 +152,10 @@ module ModernTreasury
|
|
|
152
152
|
|
|
153
153
|
# @!attribute wealth_and_employment_details
|
|
154
154
|
#
|
|
155
|
-
# @return [ModernTreasury::Models::
|
|
156
|
-
optional :wealth_and_employment_details,
|
|
155
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
156
|
+
optional :wealth_and_employment_details,
|
|
157
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
158
|
+
nil?: true
|
|
157
159
|
|
|
158
160
|
# @!attribute website
|
|
159
161
|
# The entity's primary website URL.
|
|
@@ -167,7 +169,7 @@ module ModernTreasury
|
|
|
167
169
|
#
|
|
168
170
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
169
171
|
#
|
|
170
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
172
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
171
173
|
#
|
|
172
174
|
# @param business_name [String, nil] The business's legal business name.
|
|
173
175
|
#
|
|
@@ -211,7 +213,7 @@ module ModernTreasury
|
|
|
211
213
|
#
|
|
212
214
|
# @param suffix [String, nil] An individual's suffix.
|
|
213
215
|
#
|
|
214
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
216
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
215
217
|
#
|
|
216
218
|
# @param website [String, nil] The entity's primary website URL.
|
|
217
219
|
|
|
@@ -46,8 +46,8 @@ module ModernTreasury
|
|
|
46
46
|
|
|
47
47
|
# @!attribute bank_settings
|
|
48
48
|
#
|
|
49
|
-
# @return [ModernTreasury::Models::
|
|
50
|
-
optional :bank_settings, -> { ModernTreasury::
|
|
49
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
50
|
+
optional :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
51
51
|
|
|
52
52
|
# @!attribute business_name
|
|
53
53
|
# The business's legal business name.
|
|
@@ -197,8 +197,10 @@ module ModernTreasury
|
|
|
197
197
|
|
|
198
198
|
# @!attribute wealth_and_employment_details
|
|
199
199
|
#
|
|
200
|
-
# @return [ModernTreasury::Models::
|
|
201
|
-
optional :wealth_and_employment_details,
|
|
200
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
201
|
+
optional :wealth_and_employment_details,
|
|
202
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
203
|
+
nil?: true
|
|
202
204
|
|
|
203
205
|
# @!attribute website
|
|
204
206
|
# The entity's primary website URL.
|
|
@@ -215,7 +217,7 @@ module ModernTreasury
|
|
|
215
217
|
#
|
|
216
218
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
217
219
|
#
|
|
218
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
220
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
219
221
|
#
|
|
220
222
|
# @param business_name [String, nil] The business's legal business name.
|
|
221
223
|
#
|
|
@@ -261,7 +263,7 @@ module ModernTreasury
|
|
|
261
263
|
#
|
|
262
264
|
# @param suffix [String, nil] An individual's suffix.
|
|
263
265
|
#
|
|
264
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
266
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
265
267
|
#
|
|
266
268
|
# @param website [String, nil] The entity's primary website URL.
|
|
267
269
|
|
|
@@ -454,8 +454,8 @@ module ModernTreasury
|
|
|
454
454
|
|
|
455
455
|
# @!attribute bank_settings
|
|
456
456
|
#
|
|
457
|
-
# @return [ModernTreasury::Models::
|
|
458
|
-
optional :bank_settings, -> { ModernTreasury::
|
|
457
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
458
|
+
optional :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
459
459
|
|
|
460
460
|
# @!attribute business_name
|
|
461
461
|
# The business's legal business name.
|
|
@@ -598,8 +598,10 @@ module ModernTreasury
|
|
|
598
598
|
|
|
599
599
|
# @!attribute wealth_and_employment_details
|
|
600
600
|
#
|
|
601
|
-
# @return [ModernTreasury::Models::
|
|
602
|
-
optional :wealth_and_employment_details,
|
|
601
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
602
|
+
optional :wealth_and_employment_details,
|
|
603
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
604
|
+
nil?: true
|
|
603
605
|
|
|
604
606
|
# @!attribute website
|
|
605
607
|
# The entity's primary website URL.
|
|
@@ -616,7 +618,7 @@ module ModernTreasury
|
|
|
616
618
|
#
|
|
617
619
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
618
620
|
#
|
|
619
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
621
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
620
622
|
#
|
|
621
623
|
# @param business_name [String, nil] The business's legal business name.
|
|
622
624
|
#
|
|
@@ -660,7 +662,7 @@ module ModernTreasury
|
|
|
660
662
|
#
|
|
661
663
|
# @param suffix [String, nil] An individual's suffix.
|
|
662
664
|
#
|
|
663
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
665
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
664
666
|
#
|
|
665
667
|
# @param website [String, nil] The entity's primary website URL.
|
|
666
668
|
|
|
@@ -19,6 +19,12 @@ module ModernTreasury
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :after_cursor, String, nil?: true
|
|
21
21
|
|
|
22
|
+
# @!attribute amount
|
|
23
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
24
|
+
#
|
|
25
|
+
# @return [ModernTreasury::Models::LedgerEntryListParams::Amount, nil]
|
|
26
|
+
optional :amount, -> { ModernTreasury::LedgerEntryListParams::Amount }
|
|
27
|
+
|
|
22
28
|
# @!attribute as_of_lock_version
|
|
23
29
|
# Shows all ledger entries that were present on a ledger account at a particular
|
|
24
30
|
# `lock_version`. You must also specify `ledger_account_id`.
|
|
@@ -145,7 +151,7 @@ module ModernTreasury
|
|
|
145
151
|
# @return [Hash{Symbol=>Time}, nil]
|
|
146
152
|
optional :updated_at, ModernTreasury::Internal::Type::HashOf[Time]
|
|
147
153
|
|
|
148
|
-
# @!method initialize(id: nil, after_cursor: nil, as_of_lock_version: nil, direction: nil, effective_at: nil, effective_date: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_lock_version: nil, ledger_account_payout_id: nil, ledger_account_settlement_id: nil, ledger_account_statement_id: nil, ledger_transaction_id: nil, metadata: nil, order_by: nil, per_page: nil, show_balances: nil, show_deleted: nil, status: nil, updated_at: nil, request_options: {})
|
|
154
|
+
# @!method initialize(id: nil, after_cursor: nil, amount: nil, as_of_lock_version: nil, direction: nil, effective_at: nil, effective_date: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_lock_version: nil, ledger_account_payout_id: nil, ledger_account_settlement_id: nil, ledger_account_statement_id: nil, ledger_transaction_id: nil, metadata: nil, order_by: nil, per_page: nil, show_balances: nil, show_deleted: nil, status: nil, updated_at: nil, request_options: {})
|
|
149
155
|
# Some parameter documentations has been truncated, see
|
|
150
156
|
# {ModernTreasury::Models::LedgerEntryListParams} for more details.
|
|
151
157
|
#
|
|
@@ -153,6 +159,8 @@ module ModernTreasury
|
|
|
153
159
|
#
|
|
154
160
|
# @param after_cursor [String, nil]
|
|
155
161
|
#
|
|
162
|
+
# @param amount [ModernTreasury::Models::LedgerEntryListParams::Amount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
163
|
+
#
|
|
156
164
|
# @param as_of_lock_version [Integer] Shows all ledger entries that were present on a ledger account at a particular `
|
|
157
165
|
#
|
|
158
166
|
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] If true, response will include ledger entries that were deleted. When you update
|
|
@@ -191,6 +199,42 @@ module ModernTreasury
|
|
|
191
199
|
#
|
|
192
200
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
193
201
|
|
|
202
|
+
class Amount < ModernTreasury::Internal::Type::BaseModel
|
|
203
|
+
# @!attribute eq
|
|
204
|
+
#
|
|
205
|
+
# @return [Integer, nil]
|
|
206
|
+
optional :eq, Integer
|
|
207
|
+
|
|
208
|
+
# @!attribute gt
|
|
209
|
+
#
|
|
210
|
+
# @return [Integer, nil]
|
|
211
|
+
optional :gt, Integer
|
|
212
|
+
|
|
213
|
+
# @!attribute gte
|
|
214
|
+
#
|
|
215
|
+
# @return [Integer, nil]
|
|
216
|
+
optional :gte, Integer
|
|
217
|
+
|
|
218
|
+
# @!attribute lt
|
|
219
|
+
#
|
|
220
|
+
# @return [Integer, nil]
|
|
221
|
+
optional :lt, Integer
|
|
222
|
+
|
|
223
|
+
# @!attribute lte
|
|
224
|
+
#
|
|
225
|
+
# @return [Integer, nil]
|
|
226
|
+
optional :lte, Integer
|
|
227
|
+
|
|
228
|
+
# @!method initialize(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil)
|
|
229
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
230
|
+
#
|
|
231
|
+
# @param eq [Integer]
|
|
232
|
+
# @param gt [Integer]
|
|
233
|
+
# @param gte [Integer]
|
|
234
|
+
# @param lt [Integer]
|
|
235
|
+
# @param lte [Integer]
|
|
236
|
+
end
|
|
237
|
+
|
|
194
238
|
class OrderBy < ModernTreasury::Internal::Type::BaseModel
|
|
195
239
|
# @!attribute created_at
|
|
196
240
|
#
|
|
@@ -20,8 +20,8 @@ module ModernTreasury
|
|
|
20
20
|
|
|
21
21
|
# @!attribute bank_settings
|
|
22
22
|
#
|
|
23
|
-
# @return [ModernTreasury::Models::
|
|
24
|
-
required :bank_settings, -> { ModernTreasury::
|
|
23
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
24
|
+
required :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
25
25
|
|
|
26
26
|
# @!attribute business_name
|
|
27
27
|
# The business's legal business name.
|
|
@@ -189,8 +189,10 @@ module ModernTreasury
|
|
|
189
189
|
|
|
190
190
|
# @!attribute wealth_and_employment_details
|
|
191
191
|
#
|
|
192
|
-
# @return [ModernTreasury::Models::
|
|
193
|
-
required :wealth_and_employment_details,
|
|
192
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
193
|
+
required :wealth_and_employment_details,
|
|
194
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
195
|
+
nil?: true
|
|
194
196
|
|
|
195
197
|
# @!attribute website
|
|
196
198
|
# The entity's primary website URL.
|
|
@@ -206,7 +208,7 @@ module ModernTreasury
|
|
|
206
208
|
#
|
|
207
209
|
# @param addresses [Array<ModernTreasury::Models::LegalEntity::Address>] A list of addresses for the entity.
|
|
208
210
|
#
|
|
209
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
211
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
210
212
|
#
|
|
211
213
|
# @param business_name [String, nil] The business's legal business name.
|
|
212
214
|
#
|
|
@@ -262,7 +264,7 @@ module ModernTreasury
|
|
|
262
264
|
#
|
|
263
265
|
# @param updated_at [Time]
|
|
264
266
|
#
|
|
265
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
267
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
266
268
|
#
|
|
267
269
|
# @param website [String, nil] The entity's primary website URL.
|
|
268
270
|
|
|
@@ -113,8 +113,8 @@ module ModernTreasury
|
|
|
113
113
|
|
|
114
114
|
# @!attribute bank_settings
|
|
115
115
|
#
|
|
116
|
-
# @return [ModernTreasury::Models::
|
|
117
|
-
required :bank_settings, -> { ModernTreasury::
|
|
116
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
117
|
+
required :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
118
118
|
|
|
119
119
|
# @!attribute business_name
|
|
120
120
|
# The business's legal business name.
|
|
@@ -283,8 +283,10 @@ module ModernTreasury
|
|
|
283
283
|
|
|
284
284
|
# @!attribute wealth_and_employment_details
|
|
285
285
|
#
|
|
286
|
-
# @return [ModernTreasury::Models::
|
|
287
|
-
required :wealth_and_employment_details,
|
|
286
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
287
|
+
required :wealth_and_employment_details,
|
|
288
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
289
|
+
nil?: true
|
|
288
290
|
|
|
289
291
|
# @!attribute website
|
|
290
292
|
# The entity's primary website URL.
|
|
@@ -303,7 +305,7 @@ module ModernTreasury
|
|
|
303
305
|
#
|
|
304
306
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
|
305
307
|
#
|
|
306
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
308
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
307
309
|
#
|
|
308
310
|
# @param business_name [String, nil] The business's legal business name.
|
|
309
311
|
#
|
|
@@ -357,7 +359,7 @@ module ModernTreasury
|
|
|
357
359
|
#
|
|
358
360
|
# @param updated_at [Time]
|
|
359
361
|
#
|
|
360
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
362
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
361
363
|
#
|
|
362
364
|
# @param website [String, nil] The entity's primary website URL.
|
|
363
365
|
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class LegalEntityBankSettings < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute backup_withholding_percentage
|
|
12
|
+
# The percentage of backup withholding to apply to the legal entity.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
required :backup_withholding_percentage, Integer, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute created_at
|
|
18
|
+
#
|
|
19
|
+
# @return [Time]
|
|
20
|
+
required :created_at, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute discarded_at
|
|
23
|
+
#
|
|
24
|
+
# @return [Time, nil]
|
|
25
|
+
required :discarded_at, Time, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute enable_backup_withholding
|
|
28
|
+
# Whether backup withholding is enabled. See more here -
|
|
29
|
+
# https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
|
|
30
|
+
#
|
|
31
|
+
# @return [Boolean, nil]
|
|
32
|
+
required :enable_backup_withholding, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute live_mode
|
|
35
|
+
# This field will be true if this object exists in the live environment or false
|
|
36
|
+
# if it exists in the test environment.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean]
|
|
39
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
40
|
+
|
|
41
|
+
# @!attribute object
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :object, String
|
|
45
|
+
|
|
46
|
+
# @!attribute privacy_opt_out
|
|
47
|
+
# Cross River Bank specific setting to opt out of privacy policy.
|
|
48
|
+
#
|
|
49
|
+
# @return [Boolean, nil]
|
|
50
|
+
required :privacy_opt_out, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute regulation_o
|
|
53
|
+
# It covers, among other types of insider loans, extensions of credit by a member
|
|
54
|
+
# bank to an executive officer, director, or principal shareholder of the member
|
|
55
|
+
# bank; a bank holding company of which the member bank is a subsidiary; and any
|
|
56
|
+
# other subsidiary of that bank holding company.
|
|
57
|
+
#
|
|
58
|
+
# @return [Boolean, nil]
|
|
59
|
+
required :regulation_o, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
60
|
+
|
|
61
|
+
# @!attribute updated_at
|
|
62
|
+
#
|
|
63
|
+
# @return [Time]
|
|
64
|
+
required :updated_at, Time
|
|
65
|
+
|
|
66
|
+
# @!method initialize(id:, backup_withholding_percentage:, created_at:, discarded_at:, enable_backup_withholding:, live_mode:, object:, privacy_opt_out:, regulation_o:, updated_at:)
|
|
67
|
+
# Some parameter documentations has been truncated, see
|
|
68
|
+
# {ModernTreasury::Models::LegalEntityBankSettings} for more details.
|
|
69
|
+
#
|
|
70
|
+
# @param id [String]
|
|
71
|
+
#
|
|
72
|
+
# @param backup_withholding_percentage [Integer, nil] The percentage of backup withholding to apply to the legal entity.
|
|
73
|
+
#
|
|
74
|
+
# @param created_at [Time]
|
|
75
|
+
#
|
|
76
|
+
# @param discarded_at [Time, nil]
|
|
77
|
+
#
|
|
78
|
+
# @param enable_backup_withholding [Boolean, nil] Whether backup withholding is enabled. See more here - https://www.irs.gov/busin
|
|
79
|
+
#
|
|
80
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
81
|
+
#
|
|
82
|
+
# @param object [String]
|
|
83
|
+
#
|
|
84
|
+
# @param privacy_opt_out [Boolean, nil] Cross River Bank specific setting to opt out of privacy policy.
|
|
85
|
+
#
|
|
86
|
+
# @param regulation_o [Boolean, nil] It covers, among other types of insider loans, extensions of credit by a member
|
|
87
|
+
#
|
|
88
|
+
# @param updated_at [Time]
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -22,8 +22,8 @@ module ModernTreasury
|
|
|
22
22
|
|
|
23
23
|
# @!attribute bank_settings
|
|
24
24
|
#
|
|
25
|
-
# @return [ModernTreasury::Models::
|
|
26
|
-
optional :bank_settings, -> { ModernTreasury::
|
|
25
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
26
|
+
optional :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
27
27
|
|
|
28
28
|
# @!attribute business_name
|
|
29
29
|
# The business's legal business name.
|
|
@@ -164,8 +164,10 @@ module ModernTreasury
|
|
|
164
164
|
|
|
165
165
|
# @!attribute wealth_and_employment_details
|
|
166
166
|
#
|
|
167
|
-
# @return [ModernTreasury::Models::
|
|
168
|
-
optional :wealth_and_employment_details,
|
|
167
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
168
|
+
optional :wealth_and_employment_details,
|
|
169
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
170
|
+
nil?: true
|
|
169
171
|
|
|
170
172
|
# @!attribute website
|
|
171
173
|
# The entity's primary website URL.
|
|
@@ -181,7 +183,7 @@ module ModernTreasury
|
|
|
181
183
|
#
|
|
182
184
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
183
185
|
#
|
|
184
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
186
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
185
187
|
#
|
|
186
188
|
# @param business_name [String, nil] The business's legal business name.
|
|
187
189
|
#
|
|
@@ -225,7 +227,7 @@ module ModernTreasury
|
|
|
225
227
|
#
|
|
226
228
|
# @param suffix [String, nil] An individual's suffix.
|
|
227
229
|
#
|
|
228
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
230
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
229
231
|
#
|
|
230
232
|
# @param website [String, nil] The entity's primary website URL.
|
|
231
233
|
#
|
|
@@ -16,8 +16,8 @@ module ModernTreasury
|
|
|
16
16
|
|
|
17
17
|
# @!attribute bank_settings
|
|
18
18
|
#
|
|
19
|
-
# @return [ModernTreasury::Models::
|
|
20
|
-
optional :bank_settings, -> { ModernTreasury::
|
|
19
|
+
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
20
|
+
optional :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
21
21
|
|
|
22
22
|
# @!attribute business_name
|
|
23
23
|
# The business's legal business name.
|
|
@@ -148,8 +148,10 @@ module ModernTreasury
|
|
|
148
148
|
|
|
149
149
|
# @!attribute wealth_and_employment_details
|
|
150
150
|
#
|
|
151
|
-
# @return [ModernTreasury::Models::
|
|
152
|
-
optional :wealth_and_employment_details,
|
|
151
|
+
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
152
|
+
optional :wealth_and_employment_details,
|
|
153
|
+
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
154
|
+
nil?: true
|
|
153
155
|
|
|
154
156
|
# @!attribute website
|
|
155
157
|
# The entity's primary website URL.
|
|
@@ -163,7 +165,7 @@ module ModernTreasury
|
|
|
163
165
|
#
|
|
164
166
|
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
165
167
|
#
|
|
166
|
-
# @param bank_settings [ModernTreasury::Models::
|
|
168
|
+
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
167
169
|
#
|
|
168
170
|
# @param business_name [String, nil] The business's legal business name.
|
|
169
171
|
#
|
|
@@ -205,7 +207,7 @@ module ModernTreasury
|
|
|
205
207
|
#
|
|
206
208
|
# @param suffix [String, nil] An individual's suffix.
|
|
207
209
|
#
|
|
208
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::
|
|
210
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
209
211
|
#
|
|
210
212
|
# @param website [String, nil] The entity's primary website URL.
|
|
211
213
|
#
|