modern_treasury 0.29.2 → 0.29.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46b2441700e535f851edbac2b36c8a153280d70259e84a4e7a301c2cb1bb7bac
4
- data.tar.gz: 9b1eb96b2db9521580a52338b23217d66ea01ea26946b6fe73e423225b20662c
3
+ metadata.gz: ca13f298d19c5423d5cc4b24721225bc51a917d11e3859adbc30283c08fedad0
4
+ data.tar.gz: 70998cdf7d1a5cf4a05c9635ae156556b61a56e82d846594b1407cad3edaef3c
5
5
  SHA512:
6
- metadata.gz: '07019ea09b12064b9222114808b762ef0b8d41356e9601f4cd2c05575a42b40f71099b6c6b63558a4f53f8115529e5fe625b436d9b652a7abc72a4a1332ec1e3'
7
- data.tar.gz: a63e6ad8fd20afcfdc45cabb062d61b95c8fc796ccc74168743fae7ebefa163011c45a75d3d73217b9471d33184ba1b39c517625db8f7f8d95e5a501bf4631aa
6
+ metadata.gz: cc47dcd3c68747d3e47206e2cba66422ed1eebd206dc453b5d1f51b136f0415a2914b88f2ffd40beb5335a2970cbf32db5aa24e58ffbb6a47189af0c880728c5
7
+ data.tar.gz: d21187e3eb61f0124545351f322958c1690d1412a9c1ad5f7cf3e002e56601c19bcaa7e37043cc324598b22e829e02fc89a566d7df4d3c6a790f56a8a1216743
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.29.3](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.2...v0.29.3) (2026-09-04)
4
+
5
+
6
+ ### Chores
7
+
8
+ * regenerate SDKs from 079bb35aed14217b22f7df256b76d32f76de364a ([8dd301d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/8dd301d6dc6bb3a0b6cac3e2c8bd298b493f4c1c))
9
+ * regenerate SDKs from 1ba62719665dfac3a01da68fa4d0f68fe50b8574 ([3aa0e4d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/3aa0e4dc6293c86ecf3f48b038de5dddbac96678))
10
+ * regenerate SDKs from 343d886c636954e7e0870418b38898fc39de2698 ([0d2876a](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0d2876a60c4fb733b574ee5eaf83efff1cd791d0))
11
+ * regenerate SDKs from 5b92822da54c5ed47a5ec70624eae07754e34457 ([1031e52](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/1031e522e23ef02bfe9f09774b108d7e9d92b629))
12
+ * regenerate SDKs from 76bfe6ef7bf238af0c68f1ff514b7c6d29042662 ([4af6ebf](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/4af6ebf4a004d6e6c60ae6fa5fa7a5cff0f6ac8c))
13
+ * regenerate SDKs from b51aa69627e6aafc44c4609a7574b9068a894b7c ([94e14e3](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/94e14e3e43b69c6645143eff10b2bf099eeed91d))
14
+ * regenerate SDKs from d52e6f7cb7821cecbe9ad9e02712f9b8c190d80d ([b09cc35](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b09cc357b65cbf6c82970f3b03fa02f49fad9a4f))
15
+
3
16
  ## [0.29.2](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.1...v0.29.2) (2026-08-31)
4
17
 
5
18
 
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "modern_treasury", "~> 0.29.2"
27
+ gem "modern_treasury", "~> 0.29.3"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -55,6 +55,15 @@ module ModernTreasury
55
55
  # @return [String, nil]
56
56
  optional :parent_account_id, String
57
57
 
58
+ # @!attribute party_address
59
+ # The address associated with the owner of the internal account. Updating this
60
+ # value does not guarantee that the new address matches the address on record with
61
+ # the account's bank; you are responsible for verifying that the address is
62
+ # accurate.
63
+ #
64
+ # @return [ModernTreasury::Models::AddressRequest, nil]
65
+ optional :party_address, -> { ModernTreasury::AddressRequest }
66
+
58
67
  # @!attribute status
59
68
  # Requests closure of the internal account. The resulting status may be `closed`
60
69
  # for vendors that close synchronously.
@@ -62,7 +71,7 @@ module ModernTreasury
62
71
  # @return [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status, nil]
63
72
  optional :status, enum: -> { ModernTreasury::InternalAccountUpdateParams::Status }
64
73
 
65
- # @!method initialize(id:, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, status: nil, request_options: {})
74
+ # @!method initialize(id:, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, party_address: nil, status: nil, request_options: {})
66
75
  # Some parameter documentations has been truncated, see
67
76
  # {ModernTreasury::Models::InternalAccountUpdateParams} for more details.
68
77
  #
@@ -82,6 +91,8 @@ module ModernTreasury
82
91
  #
83
92
  # @param parent_account_id [String] The parent internal account for this account.
84
93
  #
94
+ # @param party_address [ModernTreasury::Models::AddressRequest] The address associated with the owner of the internal account. Updating this val
95
+ #
85
96
  # @param status [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status] Requests closure of the internal account. The resulting status may be `closed` f
86
97
  #
87
98
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
@@ -7,12 +7,6 @@ module ModernTreasury
7
7
  extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
8
  include ModernTreasury::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute child_legal_entity_id
11
- # The ID of the child legal entity.
12
- #
13
- # @return [String]
14
- required :child_legal_entity_id, String
15
-
16
10
  # @!attribute parent_legal_entity_id
17
11
  # The ID of the parent legal entity. This must be a business legal entity.
18
12
  #
@@ -25,6 +19,18 @@ module ModernTreasury
25
19
  required :relationship_types,
26
20
  -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType] }
27
21
 
22
+ # @!attribute child_legal_entity
23
+ # The child legal entity.
24
+ #
25
+ # @return [ModernTreasury::Models::ChildLegalEntityCreate, nil]
26
+ optional :child_legal_entity, -> { ModernTreasury::ChildLegalEntityCreate }
27
+
28
+ # @!attribute child_legal_entity_id
29
+ # The ID of the child legal entity.
30
+ #
31
+ # @return [String, nil]
32
+ optional :child_legal_entity_id, String
33
+
28
34
  # @!attribute ownership_percentage
29
35
  # The child entity's ownership percentage iff they are a beneficial owner.
30
36
  #
@@ -37,13 +43,15 @@ module ModernTreasury
37
43
  # @return [String, nil]
38
44
  optional :title, String, nil?: true
39
45
 
40
- # @!method initialize(child_legal_entity_id:, parent_legal_entity_id:, relationship_types:, ownership_percentage: nil, title: nil, request_options: {})
41
- # @param child_legal_entity_id [String] The ID of the child legal entity.
42
- #
46
+ # @!method initialize(parent_legal_entity_id:, relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil, request_options: {})
43
47
  # @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business legal entity.
44
48
  #
45
49
  # @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationCreateParams::RelationshipType>]
46
50
  #
51
+ # @param child_legal_entity [ModernTreasury::Models::ChildLegalEntityCreate] The child legal entity.
52
+ #
53
+ # @param child_legal_entity_id [String] The ID of the child legal entity.
54
+ #
47
55
  # @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
48
56
  #
49
57
  # @param title [String, nil] The job title of the child entity at the parent entity.
@@ -62,6 +62,12 @@ module ModernTreasury
62
62
  # @return [ModernTreasury::Models::LedgerAccountCreateRequest, nil]
63
63
  optional :ledger_account, -> { ModernTreasury::LedgerAccountCreateRequest }
64
64
 
65
+ # @!attribute ledger_account_id
66
+ # The ledger account that you'd like to link to the virtual account.
67
+ #
68
+ # @return [String, nil]
69
+ optional :ledger_account_id, String
70
+
65
71
  # @!attribute metadata
66
72
  # Additional data represented as key-value pairs. Both the key and value must be
67
73
  # strings.
@@ -82,7 +88,7 @@ module ModernTreasury
82
88
  # @return [String, nil]
83
89
  optional :virtual_account_setting_id, String
84
90
 
85
- # @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
91
+ # @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
86
92
  # Some parameter documentations has been truncated, see
87
93
  # {ModernTreasury::Models::VirtualAccountCreateParams} for more details.
88
94
  #
@@ -102,6 +108,8 @@ module ModernTreasury
102
108
  #
103
109
  # @param ledger_account [ModernTreasury::Models::LedgerAccountCreateRequest] Specifies a ledger account object that will be created with the virtual account.
104
110
  #
111
+ # @param ledger_account_id [String] The ledger account that you'd like to link to the virtual account.
112
+ #
105
113
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
106
114
  #
107
115
  # @param routing_details [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>] An array of routing detail objects.
@@ -84,7 +84,7 @@ module ModernTreasury
84
84
  #
85
85
  # update internal account
86
86
  #
87
- # @overload update(id, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, status: nil, request_options: {})
87
+ # @overload update(id, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, party_address: nil, status: nil, request_options: {})
88
88
  #
89
89
  # @param id [String] Unique identifier for the account.
90
90
  #
@@ -102,6 +102,8 @@ module ModernTreasury
102
102
  #
103
103
  # @param parent_account_id [String] The parent internal account for this account.
104
104
  #
105
+ # @param party_address [ModernTreasury::Models::AddressRequest] The address associated with the owner of the internal account. Updating this val
106
+ #
105
107
  # @param status [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status] Requests closure of the internal account. The resulting status may be `closed` f
106
108
  #
107
109
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -5,14 +5,16 @@ module ModernTreasury
5
5
  class LegalEntityAssociations
6
6
  # Add an associated legal entity to a business legal entity.
7
7
  #
8
- # @overload create(child_legal_entity_id:, parent_legal_entity_id:, relationship_types:, ownership_percentage: nil, title: nil, request_options: {})
9
- #
10
- # @param child_legal_entity_id [String] The ID of the child legal entity.
8
+ # @overload create(parent_legal_entity_id:, relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil, request_options: {})
11
9
  #
12
10
  # @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business legal entity.
13
11
  #
14
12
  # @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationCreateParams::RelationshipType>]
15
13
  #
14
+ # @param child_legal_entity [ModernTreasury::Models::ChildLegalEntityCreate] The child legal entity.
15
+ #
16
+ # @param child_legal_entity_id [String] The ID of the child legal entity.
17
+ #
16
18
  # @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
17
19
  #
18
20
  # @param title [String, nil] The job title of the child entity at the parent entity.
@@ -8,7 +8,7 @@ module ModernTreasury
8
8
  #
9
9
  # create virtual_account
10
10
  #
11
- # @overload create(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
11
+ # @overload create(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
12
12
  #
13
13
  # @param internal_account_id [String] The ID of the internal account that this virtual account is associated with.
14
14
  #
@@ -26,6 +26,8 @@ module ModernTreasury
26
26
  #
27
27
  # @param ledger_account [ModernTreasury::Models::LedgerAccountCreateRequest] Specifies a ledger account object that will be created with the virtual account.
28
28
  #
29
+ # @param ledger_account_id [String] The ledger account that you'd like to link to the virtual account.
30
+ #
29
31
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
30
32
  #
31
33
  # @param routing_details [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>] An array of routing detail objects.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModernTreasury
4
- VERSION = "0.29.2"
4
+ VERSION = "0.29.3"
5
5
  end
@@ -64,6 +64,16 @@ module ModernTreasury
64
64
  sig { params(parent_account_id: String).void }
65
65
  attr_writer :parent_account_id
66
66
 
67
+ # The address associated with the owner of the internal account. Updating this
68
+ # value does not guarantee that the new address matches the address on record with
69
+ # the account's bank; you are responsible for verifying that the address is
70
+ # accurate.
71
+ sig { returns(T.nilable(ModernTreasury::AddressRequest)) }
72
+ attr_reader :party_address
73
+
74
+ sig { params(party_address: ModernTreasury::AddressRequest::OrHash).void }
75
+ attr_writer :party_address
76
+
67
77
  # Requests closure of the internal account. The resulting status may be `closed`
68
78
  # for vendors that close synchronously.
69
79
  sig do
@@ -92,6 +102,7 @@ module ModernTreasury
92
102
  metadata: T::Hash[Symbol, String],
93
103
  name: String,
94
104
  parent_account_id: String,
105
+ party_address: ModernTreasury::AddressRequest::OrHash,
95
106
  status: ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
96
107
  request_options: ModernTreasury::RequestOptions::OrHash
97
108
  ).returns(T.attached_class)
@@ -113,6 +124,11 @@ module ModernTreasury
113
124
  name: nil,
114
125
  # The parent internal account for this account.
115
126
  parent_account_id: nil,
127
+ # The address associated with the owner of the internal account. Updating this
128
+ # value does not guarantee that the new address matches the address on record with
129
+ # the account's bank; you are responsible for verifying that the address is
130
+ # accurate.
131
+ party_address: nil,
116
132
  # Requests closure of the internal account. The resulting status may be `closed`
117
133
  # for vendors that close synchronously.
118
134
  status: nil,
@@ -131,6 +147,7 @@ module ModernTreasury
131
147
  metadata: T::Hash[Symbol, String],
132
148
  name: String,
133
149
  parent_account_id: String,
150
+ party_address: ModernTreasury::AddressRequest,
134
151
  status:
135
152
  ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
136
153
  request_options: ModernTreasury::RequestOptions
@@ -14,10 +14,6 @@ module ModernTreasury
14
14
  )
15
15
  end
16
16
 
17
- # The ID of the child legal entity.
18
- sig { returns(String) }
19
- attr_accessor :child_legal_entity_id
20
-
21
17
  # The ID of the parent legal entity. This must be a business legal entity.
22
18
  sig { returns(String) }
23
19
  attr_accessor :parent_legal_entity_id
@@ -31,6 +27,24 @@ module ModernTreasury
31
27
  end
32
28
  attr_accessor :relationship_types
33
29
 
30
+ # The child legal entity.
31
+ sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
32
+ attr_reader :child_legal_entity
33
+
34
+ sig do
35
+ params(
36
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
37
+ ).void
38
+ end
39
+ attr_writer :child_legal_entity
40
+
41
+ # The ID of the child legal entity.
42
+ sig { returns(T.nilable(String)) }
43
+ attr_reader :child_legal_entity_id
44
+
45
+ sig { params(child_legal_entity_id: String).void }
46
+ attr_writer :child_legal_entity_id
47
+
34
48
  # The child entity's ownership percentage iff they are a beneficial owner.
35
49
  sig { returns(T.nilable(Integer)) }
36
50
  attr_accessor :ownership_percentage
@@ -41,23 +55,26 @@ module ModernTreasury
41
55
 
42
56
  sig do
43
57
  params(
44
- child_legal_entity_id: String,
45
58
  parent_legal_entity_id: String,
46
59
  relationship_types:
47
60
  T::Array[
48
61
  ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
49
62
  ],
63
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
64
+ child_legal_entity_id: String,
50
65
  ownership_percentage: T.nilable(Integer),
51
66
  title: T.nilable(String),
52
67
  request_options: ModernTreasury::RequestOptions::OrHash
53
68
  ).returns(T.attached_class)
54
69
  end
55
70
  def self.new(
56
- # The ID of the child legal entity.
57
- child_legal_entity_id:,
58
71
  # The ID of the parent legal entity. This must be a business legal entity.
59
72
  parent_legal_entity_id:,
60
73
  relationship_types:,
74
+ # The child legal entity.
75
+ child_legal_entity: nil,
76
+ # The ID of the child legal entity.
77
+ child_legal_entity_id: nil,
61
78
  # The child entity's ownership percentage iff they are a beneficial owner.
62
79
  ownership_percentage: nil,
63
80
  # The job title of the child entity at the parent entity.
@@ -69,12 +86,13 @@ module ModernTreasury
69
86
  sig do
70
87
  override.returns(
71
88
  {
72
- child_legal_entity_id: String,
73
89
  parent_legal_entity_id: String,
74
90
  relationship_types:
75
91
  T::Array[
76
92
  ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
77
93
  ],
94
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
95
+ child_legal_entity_id: String,
78
96
  ownership_percentage: T.nilable(Integer),
79
97
  title: T.nilable(String),
80
98
  request_options: ModernTreasury::RequestOptions
@@ -87,6 +87,13 @@ module ModernTreasury
87
87
  end
88
88
  attr_writer :ledger_account
89
89
 
90
+ # The ledger account that you'd like to link to the virtual account.
91
+ sig { returns(T.nilable(String)) }
92
+ attr_reader :ledger_account_id
93
+
94
+ sig { params(ledger_account_id: String).void }
95
+ attr_writer :ledger_account_id
96
+
90
97
  # Additional data represented as key-value pairs. Both the key and value must be
91
98
  # strings.
92
99
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
@@ -135,6 +142,7 @@ module ModernTreasury
135
142
  debit_ledger_account_id: String,
136
143
  description: String,
137
144
  ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
145
+ ledger_account_id: String,
138
146
  metadata: T::Hash[Symbol, String],
139
147
  routing_details:
140
148
  T::Array[
@@ -167,6 +175,8 @@ module ModernTreasury
167
175
  # The resulting ledger account is linked to the virtual account for auto-ledgering
168
176
  # IPDs.
169
177
  ledger_account: nil,
178
+ # The ledger account that you'd like to link to the virtual account.
179
+ ledger_account_id: nil,
170
180
  # Additional data represented as key-value pairs. Both the key and value must be
171
181
  # strings.
172
182
  metadata: nil,
@@ -192,6 +202,7 @@ module ModernTreasury
192
202
  debit_ledger_account_id: String,
193
203
  description: String,
194
204
  ledger_account: ModernTreasury::LedgerAccountCreateRequest,
205
+ ledger_account_id: String,
195
206
  metadata: T::Hash[Symbol, String],
196
207
  routing_details:
197
208
  T::Array[
@@ -107,6 +107,7 @@ module ModernTreasury
107
107
  metadata: T::Hash[Symbol, String],
108
108
  name: String,
109
109
  parent_account_id: String,
110
+ party_address: ModernTreasury::AddressRequest::OrHash,
110
111
  status: ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
111
112
  request_options: ModernTreasury::RequestOptions::OrHash
112
113
  ).returns(ModernTreasury::InternalAccount)
@@ -129,6 +130,11 @@ module ModernTreasury
129
130
  name: nil,
130
131
  # The parent internal account for this account.
131
132
  parent_account_id: nil,
133
+ # The address associated with the owner of the internal account. Updating this
134
+ # value does not guarantee that the new address matches the address on record with
135
+ # the account's bank; you are responsible for verifying that the address is
136
+ # accurate.
137
+ party_address: nil,
132
138
  # Requests closure of the internal account. The resulting status may be `closed`
133
139
  # for vendors that close synchronously.
134
140
  status: nil,
@@ -6,23 +6,26 @@ module ModernTreasury
6
6
  # Add an associated legal entity to a business legal entity.
7
7
  sig do
8
8
  params(
9
- child_legal_entity_id: String,
10
9
  parent_legal_entity_id: String,
11
10
  relationship_types:
12
11
  T::Array[
13
12
  ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
14
13
  ],
14
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
15
+ child_legal_entity_id: String,
15
16
  ownership_percentage: T.nilable(Integer),
16
17
  title: T.nilable(String),
17
18
  request_options: ModernTreasury::RequestOptions::OrHash
18
19
  ).returns(ModernTreasury::LegalEntityAssociation)
19
20
  end
20
21
  def create(
21
- # The ID of the child legal entity.
22
- child_legal_entity_id:,
23
22
  # The ID of the parent legal entity. This must be a business legal entity.
24
23
  parent_legal_entity_id:,
25
24
  relationship_types:,
25
+ # The child legal entity.
26
+ child_legal_entity: nil,
27
+ # The ID of the child legal entity.
28
+ child_legal_entity_id: nil,
26
29
  # The child entity's ownership percentage iff they are a beneficial owner.
27
30
  ownership_percentage: nil,
28
31
  # The job title of the child entity at the parent entity.
@@ -17,6 +17,7 @@ module ModernTreasury
17
17
  debit_ledger_account_id: String,
18
18
  description: String,
19
19
  ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
20
+ ledger_account_id: String,
20
21
  metadata: T::Hash[Symbol, String],
21
22
  routing_details:
22
23
  T::Array[
@@ -49,6 +50,8 @@ module ModernTreasury
49
50
  # The resulting ledger account is linked to the virtual account for auto-ledgering
50
51
  # IPDs.
51
52
  ledger_account: nil,
53
+ # The ledger account that you'd like to link to the virtual account.
54
+ ledger_account_id: nil,
52
55
  # Additional data represented as key-value pairs. Both the key and value must be
53
56
  # strings.
54
57
  metadata: nil,
@@ -10,6 +10,7 @@ module ModernTreasury
10
10
  metadata: ::Hash[Symbol, String],
11
11
  name: String,
12
12
  parent_account_id: String,
13
+ party_address: ModernTreasury::AddressRequest,
13
14
  status: ModernTreasury::Models::InternalAccountUpdateParams::status
14
15
  }
15
16
  & ModernTreasury::Internal::Type::request_parameters
@@ -46,6 +47,12 @@ module ModernTreasury
46
47
 
47
48
  def parent_account_id=: (String) -> String
48
49
 
50
+ attr_reader party_address: ModernTreasury::AddressRequest?
51
+
52
+ def party_address=: (
53
+ ModernTreasury::AddressRequest
54
+ ) -> ModernTreasury::AddressRequest
55
+
49
56
  attr_reader status: ModernTreasury::Models::InternalAccountUpdateParams::status?
50
57
 
51
58
  def status=: (
@@ -61,6 +68,7 @@ module ModernTreasury
61
68
  ?metadata: ::Hash[Symbol, String],
62
69
  ?name: String,
63
70
  ?parent_account_id: String,
71
+ ?party_address: ModernTreasury::AddressRequest,
64
72
  ?status: ModernTreasury::Models::InternalAccountUpdateParams::status,
65
73
  ?request_options: ModernTreasury::request_opts
66
74
  ) -> void
@@ -74,6 +82,7 @@ module ModernTreasury
74
82
  metadata: ::Hash[Symbol, String],
75
83
  name: String,
76
84
  parent_account_id: String,
85
+ party_address: ModernTreasury::AddressRequest,
77
86
  status: ModernTreasury::Models::InternalAccountUpdateParams::status,
78
87
  request_options: ModernTreasury::RequestOptions
79
88
  }
@@ -2,9 +2,10 @@ module ModernTreasury
2
2
  module Models
3
3
  type legal_entity_association_create_params =
4
4
  {
5
- child_legal_entity_id: String,
6
5
  parent_legal_entity_id: String,
7
6
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityAssociationCreateParams::relationship_type],
7
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
8
+ child_legal_entity_id: String,
8
9
  ownership_percentage: Integer?,
9
10
  title: String?
10
11
  }
@@ -14,29 +15,39 @@ module ModernTreasury
14
15
  extend ModernTreasury::Internal::Type::RequestParameters::Converter
15
16
  include ModernTreasury::Internal::Type::RequestParameters
16
17
 
17
- attr_accessor child_legal_entity_id: String
18
-
19
18
  attr_accessor parent_legal_entity_id: String
20
19
 
21
20
  attr_accessor relationship_types: ::Array[ModernTreasury::Models::LegalEntityAssociationCreateParams::relationship_type]
22
21
 
22
+ attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
23
+
24
+ def child_legal_entity=: (
25
+ ModernTreasury::ChildLegalEntityCreate
26
+ ) -> ModernTreasury::ChildLegalEntityCreate
27
+
28
+ attr_reader child_legal_entity_id: String?
29
+
30
+ def child_legal_entity_id=: (String) -> String
31
+
23
32
  attr_accessor ownership_percentage: Integer?
24
33
 
25
34
  attr_accessor title: String?
26
35
 
27
36
  def initialize: (
28
- child_legal_entity_id: String,
29
37
  parent_legal_entity_id: String,
30
38
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityAssociationCreateParams::relationship_type],
39
+ ?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
40
+ ?child_legal_entity_id: String,
31
41
  ?ownership_percentage: Integer?,
32
42
  ?title: String?,
33
43
  ?request_options: ModernTreasury::request_opts
34
44
  ) -> void
35
45
 
36
46
  def to_hash: -> {
37
- child_legal_entity_id: String,
38
47
  parent_legal_entity_id: String,
39
48
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityAssociationCreateParams::relationship_type],
49
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
50
+ child_legal_entity_id: String,
40
51
  ownership_percentage: Integer?,
41
52
  title: String?,
42
53
  request_options: ModernTreasury::RequestOptions
@@ -10,6 +10,7 @@ module ModernTreasury
10
10
  debit_ledger_account_id: String,
11
11
  description: String,
12
12
  ledger_account: ModernTreasury::LedgerAccountCreateRequest,
13
+ ledger_account_id: String,
13
14
  metadata: ::Hash[Symbol, String],
14
15
  routing_details: ::Array[ModernTreasury::VirtualAccountCreateParams::RoutingDetail],
15
16
  virtual_account_setting_id: String
@@ -52,6 +53,10 @@ module ModernTreasury
52
53
  ModernTreasury::LedgerAccountCreateRequest
53
54
  ) -> ModernTreasury::LedgerAccountCreateRequest
54
55
 
56
+ attr_reader ledger_account_id: String?
57
+
58
+ def ledger_account_id=: (String) -> String
59
+
55
60
  attr_reader metadata: ::Hash[Symbol, String]?
56
61
 
57
62
  def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
@@ -75,6 +80,7 @@ module ModernTreasury
75
80
  ?debit_ledger_account_id: String,
76
81
  ?description: String,
77
82
  ?ledger_account: ModernTreasury::LedgerAccountCreateRequest,
83
+ ?ledger_account_id: String,
78
84
  ?metadata: ::Hash[Symbol, String],
79
85
  ?routing_details: ::Array[ModernTreasury::VirtualAccountCreateParams::RoutingDetail],
80
86
  ?virtual_account_setting_id: String,
@@ -90,6 +96,7 @@ module ModernTreasury
90
96
  debit_ledger_account_id: String,
91
97
  description: String,
92
98
  ledger_account: ModernTreasury::LedgerAccountCreateRequest,
99
+ ledger_account_id: String,
93
100
  metadata: ::Hash[Symbol, String],
94
101
  routing_details: ::Array[ModernTreasury::VirtualAccountCreateParams::RoutingDetail],
95
102
  virtual_account_setting_id: String,
@@ -36,6 +36,7 @@ module ModernTreasury
36
36
  ?metadata: ::Hash[Symbol, String],
37
37
  ?name: String,
38
38
  ?parent_account_id: String,
39
+ ?party_address: ModernTreasury::AddressRequest,
39
40
  ?status: ModernTreasury::Models::InternalAccountUpdateParams::status,
40
41
  ?request_options: ModernTreasury::request_opts
41
42
  ) -> ModernTreasury::InternalAccount
@@ -2,9 +2,10 @@ module ModernTreasury
2
2
  module Resources
3
3
  class LegalEntityAssociations
4
4
  def create: (
5
- child_legal_entity_id: String,
6
5
  parent_legal_entity_id: String,
7
6
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityAssociationCreateParams::relationship_type],
7
+ ?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
8
+ ?child_legal_entity_id: String,
8
9
  ?ownership_percentage: Integer?,
9
10
  ?title: String?,
10
11
  ?request_options: ModernTreasury::request_opts
@@ -10,6 +10,7 @@ module ModernTreasury
10
10
  ?debit_ledger_account_id: String,
11
11
  ?description: String,
12
12
  ?ledger_account: ModernTreasury::LedgerAccountCreateRequest,
13
+ ?ledger_account_id: String,
13
14
  ?metadata: ::Hash[Symbol, String],
14
15
  ?routing_details: ::Array[ModernTreasury::VirtualAccountCreateParams::RoutingDetail],
15
16
  ?virtual_account_setting_id: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modern_treasury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.2
4
+ version: 0.29.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Modern Treasury
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-31 00:00:00.000000000 Z
11
+ date: 2026-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi