modern_treasury 0.30.0 → 0.31.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/account_detail.rb +8 -6
  5. data/lib/modern_treasury/models/account_detail_create_params.rb +8 -6
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +2 -2
  7. data/lib/modern_treasury/models/child_legal_entity.rb +2 -2
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -2
  9. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +2 -2
  10. data/lib/modern_treasury/models/counterparty_create_params.rb +3 -3
  11. data/lib/modern_treasury/models/document.rb +7 -9
  12. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  13. data/lib/modern_treasury/models/document_list_params.rb +7 -9
  14. data/lib/modern_treasury/models/external_account_create_params.rb +1 -1
  15. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -1
  16. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +3 -14
  17. data/lib/modern_treasury/models/internal_account_create_params.rb +1 -0
  18. data/lib/modern_treasury/models/legal_entity.rb +2 -2
  19. data/lib/modern_treasury/models/legal_entity_create_params.rb +2 -2
  20. data/lib/modern_treasury/models/legal_entity_update_params.rb +2 -2
  21. data/lib/modern_treasury/models/payment_order_create_async_params.rb +1 -1
  22. data/lib/modern_treasury/models/payment_order_create_params.rb +1 -3
  23. data/lib/modern_treasury/models/payment_order_subtype.rb +1 -0
  24. data/lib/modern_treasury/models/payment_order_update_params.rb +1 -1
  25. data/lib/modern_treasury/models/virtual_account.rb +9 -1
  26. data/lib/modern_treasury/models/virtual_account_create_params.rb +17 -7
  27. data/lib/modern_treasury/models/virtual_account_list_params.rb +9 -1
  28. data/lib/modern_treasury/resources/account_details.rb +1 -1
  29. data/lib/modern_treasury/resources/documents.rb +1 -1
  30. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  31. data/lib/modern_treasury/resources/legal_entities.rb +2 -2
  32. data/lib/modern_treasury/resources/virtual_accounts.rb +6 -2
  33. data/lib/modern_treasury/version.rb +1 -1
  34. data/rbi/modern_treasury/models/account_detail.rbi +14 -11
  35. data/rbi/modern_treasury/models/account_detail_create_params.rbi +14 -11
  36. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +10 -10
  37. data/rbi/modern_treasury/models/child_legal_entity.rbi +2 -2
  38. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +2 -2
  39. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2 -2
  40. data/rbi/modern_treasury/models/counterparty_create_params.rbi +7 -7
  41. data/rbi/modern_treasury/models/document.rbi +9 -19
  42. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  43. data/rbi/modern_treasury/models/document_list_params.rbi +9 -19
  44. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -5
  45. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -5
  46. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +4 -50
  47. data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
  48. data/rbi/modern_treasury/models/legal_entity.rbi +2 -2
  49. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +2 -2
  50. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +2 -2
  51. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -5
  52. data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -15
  53. data/rbi/modern_treasury/models/payment_order_subtype.rbi +2 -0
  54. data/rbi/modern_treasury/models/payment_order_update_params.rbi +5 -5
  55. data/rbi/modern_treasury/models/virtual_account.rbi +8 -0
  56. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +22 -11
  57. data/rbi/modern_treasury/models/virtual_account_list_params.rbi +11 -0
  58. data/rbi/modern_treasury/resources/account_details.rbi +3 -2
  59. data/rbi/modern_treasury/resources/documents.rbi +3 -3
  60. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  61. data/rbi/modern_treasury/resources/legal_entities.rbi +2 -2
  62. data/rbi/modern_treasury/resources/virtual_accounts.rbi +6 -0
  63. data/sig/modern_treasury/models/account_detail.rbs +3 -3
  64. data/sig/modern_treasury/models/account_detail_create_params.rbs +3 -3
  65. data/sig/modern_treasury/models/bulk_request_create_params.rbs +6 -6
  66. data/sig/modern_treasury/models/counterparty_create_params.rbs +3 -3
  67. data/sig/modern_treasury/models/document.rbs +0 -4
  68. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  69. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  70. data/sig/modern_treasury/models/external_account_create_params.rbs +3 -3
  71. data/sig/modern_treasury/models/incoming_payment_detail.rbs +3 -3
  72. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +6 -17
  73. data/sig/modern_treasury/models/internal_account_create_params.rbs +6 -1
  74. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +3 -3
  75. data/sig/modern_treasury/models/payment_order_create_params.rbs +3 -7
  76. data/sig/modern_treasury/models/payment_order_subtype.rbs +2 -0
  77. data/sig/modern_treasury/models/payment_order_update_params.rbs +3 -3
  78. data/sig/modern_treasury/models/virtual_account.rbs +5 -0
  79. data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -3
  80. data/sig/modern_treasury/models/virtual_account_list_params.rbs +7 -0
  81. data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
  82. data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
  83. metadata +2 -2
@@ -54,6 +54,12 @@ module ModernTreasury
54
54
  # @return [String, nil]
55
55
  optional :description, String
56
56
 
57
+ # @!attribute external_id
58
+ # A user-defined identifier for the virtual account.
59
+ #
60
+ # @return [String, nil]
61
+ optional :external_id, String, nil?: true
62
+
57
63
  # @!attribute ledger_account
58
64
  # Specifies a ledger account object that will be created with the virtual account.
59
65
  # The resulting ledger account is linked to the virtual account for auto-ledgering
@@ -88,7 +94,7 @@ module ModernTreasury
88
94
  # @return [String, nil]
89
95
  optional :virtual_account_setting_id, String
90
96
 
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: {})
97
+ # @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, external_id: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
92
98
  # Some parameter documentations has been truncated, see
93
99
  # {ModernTreasury::Models::VirtualAccountCreateParams} for more details.
94
100
  #
@@ -106,6 +112,8 @@ module ModernTreasury
106
112
  #
107
113
  # @param description [String] An optional description for internal use.
108
114
  #
115
+ # @param external_id [String, nil] A user-defined identifier for the virtual account.
116
+ #
109
117
  # @param ledger_account [ModernTreasury::Models::LedgerAccountCreateRequest] Specifies a ledger account object that will be created with the virtual account.
110
118
  #
111
119
  # @param ledger_account_id [String] The ledger account that you'd like to link to the virtual account.
@@ -126,8 +134,9 @@ module ModernTreasury
126
134
  required :account_number, String
127
135
 
128
136
  # @!attribute account_number_type
129
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
130
- # account number is in a generic format.
137
+ # The type of the account number. For wallet addresses, use the chain-specific
138
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
139
+ # generic format.
131
140
  #
132
141
  # @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType, nil]
133
142
  optional :account_number_type,
@@ -140,15 +149,17 @@ module ModernTreasury
140
149
  #
141
150
  # @param account_number [String] The account number for the bank account.
142
151
  #
143
- # @param account_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
152
+ # @param account_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
144
153
 
145
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
146
- # account number is in a generic format.
154
+ # The type of the account number. For wallet addresses, use the chain-specific
155
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
156
+ # generic format.
147
157
  #
148
158
  # @see ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail#account_number_type
149
159
  module AccountNumberType
150
160
  extend ModernTreasury::Internal::Type::Enum
151
161
 
162
+ ARBITRUM_ADDRESS = :arbitrum_address
152
163
  AU_NUMBER = :au_number
153
164
  BASE_ADDRESS = :base_address
154
165
  CARD_TOKEN = :card_token
@@ -163,7 +174,6 @@ module ModernTreasury
163
174
  POLYGON_ADDRESS = :polygon_address
164
175
  SG_NUMBER = :sg_number
165
176
  SOLANA_ADDRESS = :solana_address
166
- WALLET_ADDRESS = :wallet_address
167
177
 
168
178
  # @!method self.values
169
179
  # @return [Array<Symbol>]
@@ -17,6 +17,12 @@ module ModernTreasury
17
17
  # @return [String, nil]
18
18
  optional :counterparty_id, String
19
19
 
20
+ # @!attribute external_id
21
+ # Only return virtual accounts with this external ID.
22
+ #
23
+ # @return [String, nil]
24
+ optional :external_id, String
25
+
20
26
  # @!attribute internal_account_id
21
27
  #
22
28
  # @return [String, nil]
@@ -35,7 +41,7 @@ module ModernTreasury
35
41
  # @return [Integer, nil]
36
42
  optional :per_page, Integer
37
43
 
38
- # @!method initialize(after_cursor: nil, counterparty_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
44
+ # @!method initialize(after_cursor: nil, counterparty_id: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
39
45
  # Some parameter documentations has been truncated, see
40
46
  # {ModernTreasury::Models::VirtualAccountListParams} for more details.
41
47
  #
@@ -43,6 +49,8 @@ module ModernTreasury
43
49
  #
44
50
  # @param counterparty_id [String]
45
51
  #
52
+ # @param external_id [String] Only return virtual accounts with this external ID.
53
+ #
46
54
  # @param internal_account_id [String]
47
55
  #
48
56
  # @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
@@ -16,7 +16,7 @@ module ModernTreasury
16
16
  #
17
17
  # @param account_number [String] Body param: The account number for the bank account.
18
18
  #
19
- # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] Body param: One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if
19
+ # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] Body param: The type of the account number. For wallet addresses, use the chain-
20
20
  #
21
21
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
22
22
  #
@@ -63,7 +63,7 @@ module ModernTreasury
63
63
  #
64
64
  # @param documentable_id [String] The unique identifier for the associated object.
65
65
  #
66
- # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
66
+ # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `connection`, `counte
67
67
  #
68
68
  # @param per_page [Integer]
69
69
  #
@@ -113,7 +113,7 @@ module ModernTreasury
113
113
  #
114
114
  # @param description [String, nil] Defaults to a random description.
115
115
  #
116
- # @param direction [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Direction] One of `credit`, `debit`.
116
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`.
117
117
  #
118
118
  # @param internal_account_id [String] The ID of one of your internal accounts.
119
119
  #
@@ -74,7 +74,7 @@ module ModernTreasury
74
74
  #
75
75
  # @param prefix [String, nil] An individual's prefix.
76
76
  #
77
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
77
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
78
78
  #
79
79
  # @param regulators [Array<ModernTreasury::Models::LegalEntityCreateParams::Regulator>, nil] Array of regulatory bodies overseeing this institution.
80
80
  #
@@ -195,7 +195,7 @@ module ModernTreasury
195
195
  #
196
196
  # @param prefix [String, nil] An individual's prefix.
197
197
  #
198
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
198
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
199
199
  #
200
200
  # @param regulators [Array<ModernTreasury::Models::LegalEntityUpdateParams::Regulator>, nil] Array of regulatory bodies overseeing this institution.
201
201
  #
@@ -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, ledger_account_id: 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, external_id: 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
  #
@@ -24,6 +24,8 @@ module ModernTreasury
24
24
  #
25
25
  # @param description [String] An optional description for internal use.
26
26
  #
27
+ # @param external_id [String, nil] A user-defined identifier for the virtual account.
28
+ #
27
29
  # @param ledger_account [ModernTreasury::Models::LedgerAccountCreateRequest] Specifies a ledger account object that will be created with the virtual account.
28
30
  #
29
31
  # @param ledger_account_id [String] The ledger account that you'd like to link to the virtual account.
@@ -105,12 +107,14 @@ module ModernTreasury
105
107
  #
106
108
  # Get a list of virtual accounts.
107
109
  #
108
- # @overload list(after_cursor: nil, counterparty_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
110
+ # @overload list(after_cursor: nil, counterparty_id: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
109
111
  #
110
112
  # @param after_cursor [String, nil]
111
113
  #
112
114
  # @param counterparty_id [String]
113
115
  #
116
+ # @param external_id [String] Only return virtual accounts with this external ID.
117
+ #
114
118
  # @param internal_account_id [String]
115
119
  #
116
120
  # @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModernTreasury
4
- VERSION = "0.30.0"
4
+ VERSION = "0.31.0"
5
5
  end
@@ -18,8 +18,9 @@ module ModernTreasury
18
18
  sig { returns(String) }
19
19
  attr_accessor :account_number_safe
20
20
 
21
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
22
- # account number is in a generic format.
21
+ # The type of the account number. For wallet addresses, use the chain-specific
22
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
23
+ # generic format.
23
24
  sig do
24
25
  returns(ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol)
25
26
  end
@@ -67,8 +68,9 @@ module ModernTreasury
67
68
  id:,
68
69
  # The last 4 digits of the account_number.
69
70
  account_number_safe:,
70
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
71
- # account number is in a generic format.
71
+ # The type of the account number. For wallet addresses, use the chain-specific
72
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
73
+ # generic format.
72
74
  account_number_type:,
73
75
  created_at:,
74
76
  discarded_at:,
@@ -101,8 +103,9 @@ module ModernTreasury
101
103
  def to_hash
102
104
  end
103
105
 
104
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
105
- # account number is in a generic format.
106
+ # The type of the account number. For wallet addresses, use the chain-specific
107
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
108
+ # generic format.
106
109
  module AccountNumberType
107
110
  extend ModernTreasury::Internal::Type::Enum
108
111
 
@@ -112,6 +115,11 @@ module ModernTreasury
112
115
  end
113
116
  OrSymbol = T.type_alias { T.any(Symbol, String) }
114
117
 
118
+ ARBITRUM_ADDRESS =
119
+ T.let(
120
+ :arbitrum_address,
121
+ ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol
122
+ )
115
123
  AU_NUMBER =
116
124
  T.let(
117
125
  :au_number,
@@ -182,11 +190,6 @@ module ModernTreasury
182
190
  :solana_address,
183
191
  ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol
184
192
  )
185
- WALLET_ADDRESS =
186
- T.let(
187
- :wallet_address,
188
- ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol
189
- )
190
193
 
191
194
  sig do
192
195
  override.returns(
@@ -28,8 +28,9 @@ module ModernTreasury
28
28
  sig { returns(String) }
29
29
  attr_accessor :account_number
30
30
 
31
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
32
- # account number is in a generic format.
31
+ # The type of the account number. For wallet addresses, use the chain-specific
32
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
33
+ # generic format.
33
34
  sig do
34
35
  returns(
35
36
  T.nilable(
@@ -63,8 +64,9 @@ module ModernTreasury
63
64
  account_id:,
64
65
  # The account number for the bank account.
65
66
  account_number:,
66
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
67
- # account number is in a generic format.
67
+ # The type of the account number. For wallet addresses, use the chain-specific
68
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
69
+ # generic format.
68
70
  account_number_type: nil,
69
71
  request_options: {}
70
72
  )
@@ -115,8 +117,9 @@ module ModernTreasury
115
117
  end
116
118
  end
117
119
 
118
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
119
- # account number is in a generic format.
120
+ # The type of the account number. For wallet addresses, use the chain-specific
121
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
122
+ # generic format.
120
123
  module AccountNumberType
121
124
  extend ModernTreasury::Internal::Type::Enum
122
125
 
@@ -129,6 +132,11 @@ module ModernTreasury
129
132
  end
130
133
  OrSymbol = T.type_alias { T.any(Symbol, String) }
131
134
 
135
+ ARBITRUM_ADDRESS =
136
+ T.let(
137
+ :arbitrum_address,
138
+ ModernTreasury::AccountDetailCreateParams::AccountNumberType::TaggedSymbol
139
+ )
132
140
  AU_NUMBER =
133
141
  T.let(
134
142
  :au_number,
@@ -199,11 +207,6 @@ module ModernTreasury
199
207
  :solana_address,
200
208
  ModernTreasury::AccountDetailCreateParams::AccountNumberType::TaggedSymbol
201
209
  )
202
- WALLET_ADDRESS =
203
- T.let(
204
- :wallet_address,
205
- ModernTreasury::AccountDetailCreateParams::AccountNumberType::TaggedSymbol
206
- )
207
210
 
208
211
  sig do
209
212
  override.returns(
@@ -1609,6 +1609,11 @@ module ModernTreasury
1609
1609
  end
1610
1610
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1611
1611
 
1612
+ ARBITRUM_ADDRESS =
1613
+ T.let(
1614
+ :arbitrum_address,
1615
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1616
+ )
1612
1617
  AU_NUMBER =
1613
1618
  T.let(
1614
1619
  :au_number,
@@ -1679,11 +1684,6 @@ module ModernTreasury
1679
1684
  :solana_address,
1680
1685
  ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1681
1686
  )
1682
- WALLET_ADDRESS =
1683
- T.let(
1684
- :wallet_address,
1685
- ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1686
- )
1687
1687
 
1688
1688
  sig do
1689
1689
  override.returns(
@@ -4407,6 +4407,11 @@ module ModernTreasury
4407
4407
  end
4408
4408
  OrSymbol = T.type_alias { T.any(Symbol, String) }
4409
4409
 
4410
+ ARBITRUM_ADDRESS =
4411
+ T.let(
4412
+ :arbitrum_address,
4413
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
4414
+ )
4410
4415
  AU_NUMBER =
4411
4416
  T.let(
4412
4417
  :au_number,
@@ -4477,11 +4482,6 @@ module ModernTreasury
4477
4482
  :solana_address,
4478
4483
  ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
4479
4484
  )
4480
- WALLET_ADDRESS =
4481
- T.let(
4482
- :wallet_address,
4483
- ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
4484
- )
4485
4485
 
4486
4486
  sig do
4487
4487
  override.returns(
@@ -176,7 +176,7 @@ module ModernTreasury
176
176
  sig { returns(T.nilable(String)) }
177
177
  attr_accessor :prefix
178
178
 
179
- # A list of primary social media URLs for the business.
179
+ # A list of the entity's primary social media URLs.
180
180
  sig { returns(T::Array[String]) }
181
181
  attr_accessor :primary_social_media_sites
182
182
 
@@ -408,7 +408,7 @@ module ModernTreasury
408
408
  preferred_name:,
409
409
  # An individual's prefix.
410
410
  prefix:,
411
- # A list of primary social media URLs for the business.
411
+ # A list of the entity's primary social media URLs.
412
412
  primary_social_media_sites:,
413
413
  # Array of regulatory bodies overseeing this institution.
414
414
  regulators:,
@@ -256,7 +256,7 @@ module ModernTreasury
256
256
  sig { returns(T.nilable(String)) }
257
257
  attr_accessor :prefix
258
258
 
259
- # A list of primary social media URLs for the business.
259
+ # A list of the entity's primary social media URLs.
260
260
  sig { returns(T.nilable(T::Array[String])) }
261
261
  attr_reader :primary_social_media_sites
262
262
 
@@ -502,7 +502,7 @@ module ModernTreasury
502
502
  preferred_name: nil,
503
503
  # An individual's prefix.
504
504
  prefix: nil,
505
- # A list of primary social media URLs for the business.
505
+ # A list of the entity's primary social media URLs.
506
506
  primary_social_media_sites: nil,
507
507
  # Array of regulatory bodies overseeing this institution.
508
508
  regulators: nil,
@@ -343,7 +343,7 @@ module ModernTreasury
343
343
  sig { returns(T.nilable(String)) }
344
344
  attr_accessor :prefix
345
345
 
346
- # A list of primary social media URLs for the business.
346
+ # A list of the entity's primary social media URLs.
347
347
  sig { returns(T.nilable(T::Array[String])) }
348
348
  attr_reader :primary_social_media_sites
349
349
 
@@ -606,7 +606,7 @@ module ModernTreasury
606
606
  preferred_name: nil,
607
607
  # An individual's prefix.
608
608
  prefix: nil,
609
- # A list of primary social media URLs for the business.
609
+ # A list of the entity's primary social media URLs.
610
610
  primary_social_media_sites: nil,
611
611
  # Array of regulatory bodies overseeing this institution.
612
612
  regulators: nil,
@@ -593,6 +593,11 @@ module ModernTreasury
593
593
  end
594
594
  OrSymbol = T.type_alias { T.any(Symbol, String) }
595
595
 
596
+ ARBITRUM_ADDRESS =
597
+ T.let(
598
+ :arbitrum_address,
599
+ ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
600
+ )
596
601
  AU_NUMBER =
597
602
  T.let(
598
603
  :au_number,
@@ -663,11 +668,6 @@ module ModernTreasury
663
668
  :solana_address,
664
669
  ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
665
670
  )
666
- WALLET_ADDRESS =
667
- T.let(
668
- :wallet_address,
669
- ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
670
- )
671
671
 
672
672
  sig do
673
673
  override.returns(
@@ -1342,7 +1342,7 @@ module ModernTreasury
1342
1342
  sig { returns(T.nilable(String)) }
1343
1343
  attr_accessor :prefix
1344
1344
 
1345
- # A list of primary social media URLs for the business.
1345
+ # A list of the entity's primary social media URLs.
1346
1346
  sig { returns(T.nilable(T::Array[String])) }
1347
1347
  attr_reader :primary_social_media_sites
1348
1348
 
@@ -1604,7 +1604,7 @@ module ModernTreasury
1604
1604
  preferred_name: nil,
1605
1605
  # An individual's prefix.
1606
1606
  prefix: nil,
1607
- # A list of primary social media URLs for the business.
1607
+ # A list of the entity's primary social media URLs.
1608
1608
  primary_social_media_sites: nil,
1609
1609
  # Array of regulatory bodies overseeing this institution.
1610
1610
  regulators: nil,
@@ -25,9 +25,9 @@ module ModernTreasury
25
25
  sig { returns(T.nilable(String)) }
26
26
  attr_accessor :documentable_id
27
27
 
28
- # The type of the associated object. Currently can be one of `payment_order`,
29
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
30
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
28
+ # The type of the associated object. Currently can be one of `connection`,
29
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
30
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
31
31
  sig do
32
32
  returns(
33
33
  T.nilable(ModernTreasury::Document::DocumentableType::TaggedSymbol)
@@ -80,9 +80,9 @@ module ModernTreasury
80
80
  document_type:,
81
81
  # The unique identifier for the associated object.
82
82
  documentable_id:,
83
- # The type of the associated object. Currently can be one of `payment_order`,
84
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
85
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
83
+ # The type of the associated object. Currently can be one of `connection`,
84
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
85
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
86
86
  documentable_type:,
87
87
  file:,
88
88
  # This field will be true if this object exists in the live environment or false
@@ -118,9 +118,9 @@ module ModernTreasury
118
118
  def to_hash
119
119
  end
120
120
 
121
- # The type of the associated object. Currently can be one of `payment_order`,
122
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
123
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
121
+ # The type of the associated object. Currently can be one of `connection`,
122
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
123
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
124
124
  module DocumentableType
125
125
  extend ModernTreasury::Internal::Type::Enum
126
126
 
@@ -145,11 +145,6 @@ module ModernTreasury
145
145
  :expected_payment,
146
146
  ModernTreasury::Document::DocumentableType::TaggedSymbol
147
147
  )
148
- EXTERNAL_ACCOUNT =
149
- T.let(
150
- :external_account,
151
- ModernTreasury::Document::DocumentableType::TaggedSymbol
152
- )
153
148
  IDENTIFICATION =
154
149
  T.let(
155
150
  :identification,
@@ -170,11 +165,6 @@ module ModernTreasury
170
165
  :legal_entity,
171
166
  ModernTreasury::Document::DocumentableType::TaggedSymbol
172
167
  )
173
- ORGANIZATION =
174
- T.let(
175
- :organization,
176
- ModernTreasury::Document::DocumentableType::TaggedSymbol
177
- )
178
168
  PAYMENT_ORDER =
179
169
  T.let(
180
170
  :payment_order,
@@ -111,11 +111,6 @@ module ModernTreasury
111
111
  :expected_payment,
112
112
  ModernTreasury::DocumentCreateParams::DocumentableType::TaggedSymbol
113
113
  )
114
- EXTERNAL_ACCOUNT =
115
- T.let(
116
- :external_account,
117
- ModernTreasury::DocumentCreateParams::DocumentableType::TaggedSymbol
118
- )
119
114
  IDENTIFICATION =
120
115
  T.let(
121
116
  :identification,
@@ -136,11 +131,6 @@ module ModernTreasury
136
131
  :legal_entity,
137
132
  ModernTreasury::DocumentCreateParams::DocumentableType::TaggedSymbol
138
133
  )
139
- ORGANIZATION =
140
- T.let(
141
- :organization,
142
- ModernTreasury::DocumentCreateParams::DocumentableType::TaggedSymbol
143
- )
144
134
  PAYMENT_ORDER =
145
135
  T.let(
146
136
  :payment_order,
@@ -24,9 +24,9 @@ module ModernTreasury
24
24
  sig { params(documentable_id: String).void }
25
25
  attr_writer :documentable_id
26
26
 
27
- # The type of the associated object. Currently can be one of `payment_order`,
28
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
29
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
27
+ # The type of the associated object. Currently can be one of `connection`,
28
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
29
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
30
30
  sig do
31
31
  returns(
32
32
  T.nilable(
@@ -64,9 +64,9 @@ module ModernTreasury
64
64
  after_cursor: nil,
65
65
  # The unique identifier for the associated object.
66
66
  documentable_id: nil,
67
- # The type of the associated object. Currently can be one of `payment_order`,
68
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
69
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
67
+ # The type of the associated object. Currently can be one of `connection`,
68
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
69
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
70
70
  documentable_type: nil,
71
71
  per_page: nil,
72
72
  request_options: {}
@@ -88,9 +88,9 @@ module ModernTreasury
88
88
  def to_hash
89
89
  end
90
90
 
91
- # The type of the associated object. Currently can be one of `payment_order`,
92
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
93
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
91
+ # The type of the associated object. Currently can be one of `connection`,
92
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
93
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
94
94
  module DocumentableType
95
95
  extend ModernTreasury::Internal::Type::Enum
96
96
 
@@ -115,11 +115,6 @@ module ModernTreasury
115
115
  :expected_payment,
116
116
  ModernTreasury::DocumentListParams::DocumentableType::TaggedSymbol
117
117
  )
118
- EXTERNAL_ACCOUNT =
119
- T.let(
120
- :external_account,
121
- ModernTreasury::DocumentListParams::DocumentableType::TaggedSymbol
122
- )
123
118
  IDENTIFICATION =
124
119
  T.let(
125
120
  :identification,
@@ -140,11 +135,6 @@ module ModernTreasury
140
135
  :legal_entity,
141
136
  ModernTreasury::DocumentListParams::DocumentableType::TaggedSymbol
142
137
  )
143
- ORGANIZATION =
144
- T.let(
145
- :organization,
146
- ModernTreasury::DocumentListParams::DocumentableType::TaggedSymbol
147
- )
148
138
  PAYMENT_ORDER =
149
139
  T.let(
150
140
  :payment_order,
@@ -308,6 +308,11 @@ module ModernTreasury
308
308
  end
309
309
  OrSymbol = T.type_alias { T.any(Symbol, String) }
310
310
 
311
+ ARBITRUM_ADDRESS =
312
+ T.let(
313
+ :arbitrum_address,
314
+ ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType::TaggedSymbol
315
+ )
311
316
  AU_NUMBER =
312
317
  T.let(
313
318
  :au_number,
@@ -378,11 +383,6 @@ module ModernTreasury
378
383
  :solana_address,
379
384
  ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType::TaggedSymbol
380
385
  )
381
- WALLET_ADDRESS =
382
- T.let(
383
- :wallet_address,
384
- ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType::TaggedSymbol
385
- )
386
386
 
387
387
  sig do
388
388
  override.returns(
@@ -363,6 +363,11 @@ module ModernTreasury
363
363
  end
364
364
  OrSymbol = T.type_alias { T.any(Symbol, String) }
365
365
 
366
+ ARBITRUM_ADDRESS =
367
+ T.let(
368
+ :arbitrum_address,
369
+ ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType::TaggedSymbol
370
+ )
366
371
  AU_NUMBER =
367
372
  T.let(
368
373
  :au_number,
@@ -433,11 +438,6 @@ module ModernTreasury
433
438
  :solana_address,
434
439
  ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType::TaggedSymbol
435
440
  )
436
- WALLET_ADDRESS =
437
- T.let(
438
- :wallet_address,
439
- ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType::TaggedSymbol
440
- )
441
441
 
442
442
  sig do
443
443
  override.returns(