modern_treasury 0.30.0 → 0.32.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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/account_detail.rb +9 -6
  5. data/lib/modern_treasury/models/account_detail_create_params.rb +9 -6
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +30 -10
  7. data/lib/modern_treasury/models/child_legal_entity.rb +8 -7
  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 +27 -4
  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/expected_payment.rb +3 -4
  15. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  16. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  17. data/lib/modern_treasury/models/external_account_create_params.rb +2 -1
  18. data/lib/modern_treasury/models/identification.rb +109 -0
  19. data/lib/modern_treasury/models/identification_create_params.rb +109 -0
  20. data/lib/modern_treasury/models/identification_create_request.rb +109 -0
  21. data/lib/modern_treasury/models/identification_update_params.rb +109 -0
  22. data/lib/modern_treasury/models/incoming_payment_detail.rb +2 -1
  23. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +3 -14
  24. data/lib/modern_treasury/models/internal_account.rb +10 -1
  25. data/lib/modern_treasury/models/internal_account_create_params.rb +13 -1
  26. data/lib/modern_treasury/models/ledger_account.rb +0 -1
  27. data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
  28. data/lib/modern_treasury/models/legal_entity.rb +8 -7
  29. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
  30. data/lib/modern_treasury/models/legal_entity_create_params.rb +23 -3
  31. data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
  32. data/lib/modern_treasury/models/legal_entity_update_params.rb +25 -3
  33. data/lib/modern_treasury/models/payment_order.rb +12 -2
  34. data/lib/modern_treasury/models/payment_order_create_async_params.rb +13 -2
  35. data/lib/modern_treasury/models/payment_order_create_params.rb +13 -4
  36. data/lib/modern_treasury/models/payment_order_subtype.rb +3 -0
  37. data/lib/modern_treasury/models/payment_order_update_params.rb +13 -2
  38. data/lib/modern_treasury/models/payment_reference.rb +1 -1
  39. data/lib/modern_treasury/models/return_object.rb +1 -1
  40. data/lib/modern_treasury/models/third_party_verification.rb +1 -0
  41. data/lib/modern_treasury/models/virtual_account.rb +9 -1
  42. data/lib/modern_treasury/models/virtual_account_create_params.rb +18 -7
  43. data/lib/modern_treasury/models/virtual_account_list_params.rb +9 -1
  44. data/lib/modern_treasury/resources/account_details.rb +1 -1
  45. data/lib/modern_treasury/resources/documents.rb +1 -1
  46. data/lib/modern_treasury/resources/expected_payments.rb +2 -2
  47. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  48. data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
  49. data/lib/modern_treasury/resources/legal_entities.rb +8 -4
  50. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  51. data/lib/modern_treasury/resources/virtual_accounts.rb +6 -2
  52. data/lib/modern_treasury/version.rb +1 -1
  53. data/rbi/modern_treasury/models/account_detail.rbi +19 -11
  54. data/rbi/modern_treasury/models/account_detail_create_params.rbi +19 -11
  55. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +66 -16
  56. data/rbi/modern_treasury/models/child_legal_entity.rbi +10 -8
  57. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +2 -2
  58. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2 -2
  59. data/rbi/modern_treasury/models/counterparty_create_params.rbi +69 -7
  60. data/rbi/modern_treasury/models/document.rbi +9 -19
  61. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  62. data/rbi/modern_treasury/models/document_list_params.rbi +9 -19
  63. data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
  64. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
  65. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
  66. data/rbi/modern_treasury/models/external_account_create_params.rbi +10 -5
  67. data/rbi/modern_treasury/models/identification.rbi +224 -0
  68. data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
  69. data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
  70. data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
  71. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +10 -5
  72. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +4 -50
  73. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  74. data/rbi/modern_treasury/models/internal_account_create_params.rbi +22 -0
  75. data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
  76. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
  77. data/rbi/modern_treasury/models/legal_entity.rbi +9 -8
  78. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
  79. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +51 -2
  80. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
  81. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +54 -2
  82. data/rbi/modern_treasury/models/payment_order.rbi +17 -5
  83. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +22 -5
  84. data/rbi/modern_treasury/models/payment_order_create_params.rbi +22 -15
  85. data/rbi/modern_treasury/models/payment_order_subtype.rbi +9 -0
  86. data/rbi/modern_treasury/models/payment_order_update_params.rbi +22 -5
  87. data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
  88. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  89. data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
  90. data/rbi/modern_treasury/models/virtual_account.rbi +8 -0
  91. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +27 -11
  92. data/rbi/modern_treasury/models/virtual_account_list_params.rbi +11 -0
  93. data/rbi/modern_treasury/resources/account_details.rbi +3 -2
  94. data/rbi/modern_treasury/resources/documents.rbi +3 -3
  95. data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
  96. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  97. data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
  98. data/rbi/modern_treasury/resources/legal_entities.rbi +11 -2
  99. data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
  100. data/rbi/modern_treasury/resources/virtual_accounts.rbi +6 -0
  101. data/sig/modern_treasury/models/account_detail.rbs +5 -3
  102. data/sig/modern_treasury/models/account_detail_create_params.rbs +5 -3
  103. data/sig/modern_treasury/models/bulk_request_create_params.rbs +36 -14
  104. data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
  105. data/sig/modern_treasury/models/counterparty_create_params.rbs +24 -3
  106. data/sig/modern_treasury/models/document.rbs +0 -4
  107. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  108. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  109. data/sig/modern_treasury/models/expected_payment.rbs +4 -4
  110. data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
  111. data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
  112. data/sig/modern_treasury/models/external_account_create_params.rbs +5 -3
  113. data/sig/modern_treasury/models/identification.rbs +219 -1
  114. data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
  115. data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
  116. data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
  117. data/sig/modern_treasury/models/incoming_payment_detail.rbs +5 -3
  118. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +6 -17
  119. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  120. data/sig/modern_treasury/models/internal_account_create_params.rbs +13 -1
  121. data/sig/modern_treasury/models/ledger_account.rbs +1 -2
  122. data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
  123. data/sig/modern_treasury/models/legal_entity.rbs +2 -1
  124. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
  125. data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
  126. data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
  127. data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
  128. data/sig/modern_treasury/models/payment_order.rbs +7 -2
  129. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +10 -3
  130. data/sig/modern_treasury/models/payment_order_create_params.rbs +10 -7
  131. data/sig/modern_treasury/models/payment_order_subtype.rbs +6 -0
  132. data/sig/modern_treasury/models/payment_order_update_params.rbs +10 -3
  133. data/sig/modern_treasury/models/payment_reference.rbs +2 -2
  134. data/sig/modern_treasury/models/return_object.rbs +2 -2
  135. data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
  136. data/sig/modern_treasury/models/virtual_account.rbs +5 -0
  137. data/sig/modern_treasury/models/virtual_account_create_params.rbs +10 -3
  138. data/sig/modern_treasury/models/virtual_account_list_params.rbs +7 -0
  139. data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
  140. data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
  141. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  142. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  143. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  144. data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
  145. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e754a9b95beb3721de76bb2a77e8c10b2ea522580966ee8cb957f2c92e63ddf1
4
- data.tar.gz: 9375d75878db29242336ed4c19db9399b1f31e4ffb8ffd9397a5d7a9f2345971
3
+ metadata.gz: 718b202f35241e6b6597c6271f19a9b72ef2ce729bb7a988a5c4455bb46c5927
4
+ data.tar.gz: cc147cf1a52ba271d9d2903d7ac5a827c060b274f8218872f6ad97134dd81994
5
5
  SHA512:
6
- metadata.gz: 221d2370a277d4a081c508da5075839b4d5bf1faa393303cded19efa12e2946765dd78e41d2e4cf482f967c80798b8bb9108d75528458e85c8ad0d810bace073
7
- data.tar.gz: 96b7e18b808731973a7d55009b4f612a284335901e5bff3b846eca731cca7b0a18130d43a83b78e475911c9dc476644e514970aa6111c21cf991fed92cbc9c59
6
+ metadata.gz: 788c59d67b7c3bd3a1f229ad391790c21422baddb64cb134555d3a075c7b8d771eeb3e79cc00254b0fece68b8ce0468cb35daa7fcb55155806914d26a5fc5ba2
7
+ data.tar.gz: 771e6281c35b8993dbba4c30d2588ad6eaaa2d81cfdf04317bafc38fdb7ddff0f5d6fd5428284eae7fb982f0bbfb1c36221082a5cbed25cc8575019f910a71a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.32.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.31.0...v0.32.0) (2026-10-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * regenerate SDKs from 52f12ac32d661a9fcb2cc802c4b4df0c2fb927df ([dc2927e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/dc2927e540c7e208b52d16ce62d7b18af781e547))
9
+ * regenerate SDKs from 7f0f2bc668891f1ff1a806ec37defc0b2c91c96f ([b20d02f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b20d02f615ee8bebac93e87969d81702066f9d58))
10
+ * regenerate SDKs from 84e46b0491510bc7bb53c0c58a56482251dd8c6e ([74eb9db](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/74eb9db463ed19e3c31b50b945b7d532bb72473b))
11
+ * regenerate SDKs from 85396a152c205b47025b65ea2806ee35d84827b1 ([ed2cc12](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/ed2cc12d0a6bb77994cd5a5d8c152edf6cfb6e88))
12
+ * regenerate SDKs from 8d63b5c9fde8b1cc9922b990c0cd1d11813d4518 ([c51a54d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/c51a54de717a4158c399645a2b9d8846f3b07f62))
13
+ * regenerate SDKs from 92077db38aa4d7cacc57fab390413f70b8a3eccb ([db5269a](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/db5269ae35fb94cd65f49f4ec75f9c37a6927181))
14
+ * regenerate SDKs from 974a3ae31b9d10297db1f07f8acf12c428a11c86 ([36b98e9](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/36b98e939c788ba3320746d86c0c79c939260e30))
15
+ * regenerate SDKs from a85262b8f48c87b39b9ae308e80198676cb6fd56 ([e796c36](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/e796c367479787239aaf88045872a97dd3e195e9))
16
+ * regenerate SDKs from b1a47c4f84408ea5e59b15aa2e4432fa582c9d42 ([981a15f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/981a15f8ddc560f237fd372bd3466bc8f981241e))
17
+ * regenerate SDKs from c6cfd2d2fa21a30c5c927c7139de52323c8e9683 ([d67bd8e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d67bd8e0708f46526234ee7fda8040f85b6da69f))
18
+ * regenerate SDKs from d25a03399a8d06cbab4c617e3d350e668e27eab2 ([65c898b](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/65c898ba0f0e0bf2d6d8337c51f88e4b7db7b141))
19
+ * regenerate SDKs from d52a8ec911668bb70039bb619c917970d84214fc ([68ceed5](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/68ceed5614000eb62deadca8b1826ffb1d934dc0))
20
+ * regenerate SDKs from d9d327fe5d66895e0666a46a390debd1863e4715 ([34fb397](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/34fb39781b4e1c16c6d3701a151490843b37773b))
21
+ * regenerate SDKs from dce45d7d1b53a0593162bc6e13c95cef75d0d2cb ([d060586](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d060586fa7e463a1132319fd0078d2335012d2de))
22
+ * regenerate SDKs from f81715470042da9dddb6facc7e09b37a7b73a2a8 ([16fa749](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/16fa74969f8071ef6d286d2228951c368d5398bb))
23
+ * regenerate SDKs from fae7a60b3c11a8cb9ea437f19846c4df2b9840ef ([5a67e3f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5a67e3fb43abac194f4b75d998abe0525d588b62))
24
+
25
+ ## [0.31.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.30.0...v0.31.0) (2026-09-17)
26
+
27
+
28
+ ### Features
29
+
30
+ * regenerate SDKs from 08af7fedc870e2d9a7f697517623eebdb45d86cc ([7d59741](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7d5974180a1b4a40b69af93d41cf2049021e81cc))
31
+ * regenerate SDKs from 0cc6cb1cdd4beed4781658a511f3a03ddf277d94 ([7806a09](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7806a09ac54b22a9b96865b834d08d1f641e6f67))
32
+ * regenerate SDKs from 0ed3f0cdda7032e8a95afe0e230eb52d004afa91 ([4657991](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/465799155b209173034dee8b9982e20f157beb26))
33
+ * regenerate SDKs from 256e67f3902acc2a01de6f9ebf5a5a59f434d332 ([d2c4766](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d2c476601988a4e8c8986514135360b1f7cc8223))
34
+ * regenerate SDKs from 378be293d156cc28dc8ce9c1853c6d9d013b0a02 ([5f11bc7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5f11bc76e2b5a7f87a50f387f338e7a3e3e996ff))
35
+ * regenerate SDKs from 47be8347adfd69e1a713c50b9ac72d9b28708d72 ([94950ee](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/94950ee787da7763e0d67882ab139c64c6dbd785))
36
+ * regenerate SDKs from 6f84b3ee98f7c58add7e7b9c27ad77e30890d095 ([6b047c9](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/6b047c906614042cb2f12e951afcd6f8d095fffd))
37
+
3
38
  ## [0.30.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.3...v0.30.0) (2026-09-04)
4
39
 
5
40
 
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.30.0"
27
+ gem "modern_treasury", "~> 0.32.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -16,8 +16,9 @@ module ModernTreasury
16
16
  required :account_number_safe, String
17
17
 
18
18
  # @!attribute account_number_type
19
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
20
- # account number is in a generic format.
19
+ # The type of the account number. For wallet addresses, use the chain-specific
20
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
21
+ # generic format.
21
22
  #
22
23
  # @return [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType]
23
24
  required :account_number_type, enum: -> { ModernTreasury::AccountDetail::AccountNumberType }
@@ -63,7 +64,7 @@ module ModernTreasury
63
64
  #
64
65
  # @param account_number_safe [String] The last 4 digits of the account_number.
65
66
  #
66
- # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
67
+ # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
67
68
  #
68
69
  # @param created_at [Time]
69
70
  #
@@ -77,14 +78,17 @@ module ModernTreasury
77
78
  #
78
79
  # @param account_number [String] The account number for the bank account.
79
80
 
80
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
81
- # account number is in a generic format.
81
+ # The type of the account number. For wallet addresses, use the chain-specific
82
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
83
+ # generic format.
82
84
  #
83
85
  # @see ModernTreasury::Models::AccountDetail#account_number_type
84
86
  module AccountNumberType
85
87
  extend ModernTreasury::Internal::Type::Enum
86
88
 
89
+ ARBITRUM_ADDRESS = :arbitrum_address
87
90
  AU_NUMBER = :au_number
91
+ AVALANCHE_ADDRESS = :avalanche_address
88
92
  BASE_ADDRESS = :base_address
89
93
  CARD_TOKEN = :card_token
90
94
  CLABE = :clabe
@@ -98,7 +102,6 @@ module ModernTreasury
98
102
  POLYGON_ADDRESS = :polygon_address
99
103
  SG_NUMBER = :sg_number
100
104
  SOLANA_ADDRESS = :solana_address
101
- WALLET_ADDRESS = :wallet_address
102
105
 
103
106
  # @!method self.values
104
107
  # @return [Array<Symbol>]
@@ -24,8 +24,9 @@ module ModernTreasury
24
24
  required :account_number, String
25
25
 
26
26
  # @!attribute account_number_type
27
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
28
- # account number is in a generic format.
27
+ # The type of the account number. For wallet addresses, use the chain-specific
28
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
29
+ # generic format.
29
30
  #
30
31
  # @return [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType, nil]
31
32
  optional :account_number_type, enum: -> { ModernTreasury::AccountDetailCreateParams::AccountNumberType }
@@ -40,7 +41,7 @@ module ModernTreasury
40
41
  #
41
42
  # @param account_number [String] The account number for the bank account.
42
43
  #
43
- # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
44
+ # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
44
45
  #
45
46
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
46
47
 
@@ -53,12 +54,15 @@ module ModernTreasury
53
54
  # @return [Array<Symbol>]
54
55
  end
55
56
 
56
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
57
- # account number is in a generic format.
57
+ # The type of the account number. For wallet addresses, use the chain-specific
58
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
59
+ # generic format.
58
60
  module AccountNumberType
59
61
  extend ModernTreasury::Internal::Type::Enum
60
62
 
63
+ ARBITRUM_ADDRESS = :arbitrum_address
61
64
  AU_NUMBER = :au_number
65
+ AVALANCHE_ADDRESS = :avalanche_address
62
66
  BASE_ADDRESS = :base_address
63
67
  CARD_TOKEN = :card_token
64
68
  CLABE = :clabe
@@ -72,7 +76,6 @@ module ModernTreasury
72
76
  POLYGON_ADDRESS = :polygon_address
73
77
  SG_NUMBER = :sg_number
74
78
  SOLANA_ADDRESS = :solana_address
75
- WALLET_ADDRESS = :wallet_address
76
79
 
77
80
  # @!method self.values
78
81
  # @return [Array<Symbol>]
@@ -289,6 +289,14 @@ module ModernTreasury
289
289
  # @return [String, nil]
290
290
  optional :originating_party_name, String, nil?: true
291
291
 
292
+ # @!attribute originating_secondary_party_name
293
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
294
+ # check signatures where the originating party wishes to retain their company's
295
+ # display name but use an employee's name for the signature.
296
+ #
297
+ # @return [String, nil]
298
+ optional :originating_secondary_party_name, String, nil?: true
299
+
292
300
  # @!attribute priority
293
301
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
294
302
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -433,7 +441,7 @@ module ModernTreasury
433
441
  optional :vendor_attributes,
434
442
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
435
443
 
436
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
444
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
437
445
  # Some parameter documentations has been truncated, see
438
446
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
439
447
  # for more details.
@@ -484,6 +492,8 @@ module ModernTreasury
484
492
  #
485
493
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
486
494
  #
495
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
496
+ #
487
497
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
488
498
  #
489
499
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -883,7 +893,9 @@ module ModernTreasury
883
893
  module AccountNumberType
884
894
  extend ModernTreasury::Internal::Type::Enum
885
895
 
896
+ ARBITRUM_ADDRESS = :arbitrum_address
886
897
  AU_NUMBER = :au_number
898
+ AVALANCHE_ADDRESS = :avalanche_address
887
899
  BASE_ADDRESS = :base_address
888
900
  CARD_TOKEN = :card_token
889
901
  CLABE = :clabe
@@ -897,7 +909,6 @@ module ModernTreasury
897
909
  POLYGON_ADDRESS = :polygon_address
898
910
  SG_NUMBER = :sg_number
899
911
  SOLANA_ADDRESS = :solana_address
900
- WALLET_ADDRESS = :wallet_address
901
912
 
902
913
  # @!method self.values
903
914
  # @return [Array<Symbol>]
@@ -1230,8 +1241,7 @@ module ModernTreasury
1230
1241
  #
1231
1242
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
1232
1243
  optional :reconciliation_rule_variables,
1233
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
1234
- nil?: true
1244
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] }
1235
1245
 
1236
1246
  # @!attribute remittance_information
1237
1247
  # For `ach`, this field will be passed through on an addenda record. For `wire`
@@ -1301,7 +1311,7 @@ module ModernTreasury
1301
1311
  #
1302
1312
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
1303
1313
  #
1304
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
1314
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
1305
1315
  #
1306
1316
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
1307
1317
  #
@@ -1733,6 +1743,14 @@ module ModernTreasury
1733
1743
  # @return [String, nil]
1734
1744
  optional :originating_party_name, String, nil?: true
1735
1745
 
1746
+ # @!attribute originating_secondary_party_name
1747
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
1748
+ # check signatures where the originating party wishes to retain their company's
1749
+ # display name but use an employee's name for the signature.
1750
+ #
1751
+ # @return [String, nil]
1752
+ optional :originating_secondary_party_name, String, nil?: true
1753
+
1736
1754
  # @!attribute priority
1737
1755
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
1738
1756
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -1867,7 +1885,7 @@ module ModernTreasury
1867
1885
  # @return [String, nil]
1868
1886
  optional :ultimate_receiving_party_name, String, nil?: true
1869
1887
 
1870
- # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1888
+ # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1871
1889
  # Some parameter documentations has been truncated, see
1872
1890
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID}
1873
1891
  # for more details.
@@ -1916,6 +1934,8 @@ module ModernTreasury
1916
1934
  #
1917
1935
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
1918
1936
  #
1937
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
1938
+ #
1919
1939
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
1920
1940
  #
1921
1941
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -2311,7 +2331,9 @@ module ModernTreasury
2311
2331
  module AccountNumberType
2312
2332
  extend ModernTreasury::Internal::Type::Enum
2313
2333
 
2334
+ ARBITRUM_ADDRESS = :arbitrum_address
2314
2335
  AU_NUMBER = :au_number
2336
+ AVALANCHE_ADDRESS = :avalanche_address
2315
2337
  BASE_ADDRESS = :base_address
2316
2338
  CARD_TOKEN = :card_token
2317
2339
  CLABE = :clabe
@@ -2325,7 +2347,6 @@ module ModernTreasury
2325
2347
  POLYGON_ADDRESS = :polygon_address
2326
2348
  SG_NUMBER = :sg_number
2327
2349
  SOLANA_ADDRESS = :solana_address
2328
- WALLET_ADDRESS = :wallet_address
2329
2350
 
2330
2351
  # @!method self.values
2331
2352
  # @return [Array<Symbol>]
@@ -2607,8 +2628,7 @@ module ModernTreasury
2607
2628
  #
2608
2629
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
2609
2630
  optional :reconciliation_rule_variables,
2610
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
2611
- nil?: true
2631
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] }
2612
2632
 
2613
2633
  # @!attribute remittance_information
2614
2634
  # For `ach`, this field will be passed through on an addenda record. For `wire`
@@ -2685,7 +2705,7 @@ module ModernTreasury
2685
2705
  #
2686
2706
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
2687
2707
  #
2688
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
2708
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
2689
2709
  #
2690
2710
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
2691
2711
  #
@@ -223,7 +223,7 @@ module ModernTreasury
223
223
  required :prefix, String, nil?: true
224
224
 
225
225
  # @!attribute primary_social_media_sites
226
- # A list of primary social media URLs for the business.
226
+ # A list of the entity's primary social media URLs.
227
227
  #
228
228
  # @return [Array<String>]
229
229
  required :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -249,8 +249,8 @@ module ModernTreasury
249
249
  required :service_provider_legal_entity_id, String, nil?: true
250
250
 
251
251
  # @!attribute status
252
- # The activation status of the legal entity. One of pending, active, suspended, or
253
- # denied.
252
+ # The activation status of the legal entity. One of draft, pending, active,
253
+ # suspended, or denied.
254
254
  #
255
255
  # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::Status, nil]
256
256
  required :status, enum: -> { ModernTreasury::ChildLegalEntity::Status }, nil?: true
@@ -382,7 +382,7 @@ module ModernTreasury
382
382
  #
383
383
  # @param prefix [String, nil] An individual's prefix.
384
384
  #
385
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
385
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
386
386
  #
387
387
  # @param regulators [Array<ModernTreasury::Models::ChildLegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
388
388
  #
@@ -390,7 +390,7 @@ module ModernTreasury
390
390
  #
391
391
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
392
392
  #
393
- # @param status [Symbol, ModernTreasury::Models::ChildLegalEntity::Status, nil] The activation status of the legal entity. One of pending, active, suspended, or
393
+ # @param status [Symbol, ModernTreasury::Models::ChildLegalEntity::Status, nil] The activation status of the legal entity. One of draft, pending, active, suspen
394
394
  #
395
395
  # @param suffix [String, nil] An individual's suffix.
396
396
  #
@@ -645,8 +645,8 @@ module ModernTreasury
645
645
  # @return [Array<Symbol>]
646
646
  end
647
647
 
648
- # The activation status of the legal entity. One of pending, active, suspended, or
649
- # denied.
648
+ # The activation status of the legal entity. One of draft, pending, active,
649
+ # suspended, or denied.
650
650
  #
651
651
  # @see ModernTreasury::Models::ChildLegalEntity#status
652
652
  module Status
@@ -654,6 +654,7 @@ module ModernTreasury
654
654
 
655
655
  ACTIVE = :active
656
656
  DENIED = :denied
657
+ DRAFT = :draft
657
658
  PENDING = :pending
658
659
  SUSPENDED = :suspended
659
660
 
@@ -216,7 +216,7 @@ module ModernTreasury
216
216
  optional :prefix, String, nil?: true
217
217
 
218
218
  # @!attribute primary_social_media_sites
219
- # A list of primary social media URLs for the business.
219
+ # A list of the entity's primary social media URLs.
220
220
  #
221
221
  # @return [Array<String>, nil]
222
222
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -357,7 +357,7 @@ module ModernTreasury
357
357
  #
358
358
  # @param prefix [String, nil] An individual's prefix.
359
359
  #
360
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
360
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
361
361
  #
362
362
  # @param regulators [Array<ModernTreasury::Models::ChildLegalEntityCreate::Regulator>, nil] Array of regulatory bodies overseeing this institution.
363
363
  #
@@ -249,7 +249,7 @@ module ModernTreasury
249
249
  optional :prefix, String, nil?: true
250
250
 
251
251
  # @!attribute primary_social_media_sites
252
- # A list of primary social media URLs for the business.
252
+ # A list of the entity's primary social media URLs.
253
253
  #
254
254
  # @return [Array<String>, nil]
255
255
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -397,7 +397,7 @@ module ModernTreasury
397
397
  #
398
398
  # @param prefix [String, nil] An individual's prefix.
399
399
  #
400
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
400
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
401
401
  #
402
402
  # @param regulators [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
403
403
  #
@@ -283,7 +283,9 @@ module ModernTreasury
283
283
  module AccountNumberType
284
284
  extend ModernTreasury::Internal::Type::Enum
285
285
 
286
+ ARBITRUM_ADDRESS = :arbitrum_address
286
287
  AU_NUMBER = :au_number
288
+ AVALANCHE_ADDRESS = :avalanche_address
287
289
  BASE_ADDRESS = :base_address
288
290
  CARD_TOKEN = :card_token
289
291
  CLABE = :clabe
@@ -297,7 +299,6 @@ module ModernTreasury
297
299
  POLYGON_ADDRESS = :polygon_address
298
300
  SG_NUMBER = :sg_number
299
301
  SOLANA_ADDRESS = :solana_address
300
- WALLET_ADDRESS = :wallet_address
301
302
 
302
303
  # @!method self.values
303
304
  # @return [Array<Symbol>]
@@ -632,7 +633,7 @@ module ModernTreasury
632
633
  optional :prefix, String, nil?: true
633
634
 
634
635
  # @!attribute primary_social_media_sites
635
- # A list of primary social media URLs for the business.
636
+ # A list of the entity's primary social media URLs.
636
637
  #
637
638
  # @return [Array<String>, nil]
638
639
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -661,6 +662,13 @@ module ModernTreasury
661
662
  # @return [String, nil]
662
663
  optional :service_provider_legal_entity_id, String, nil?: true
663
664
 
665
+ # @!attribute status
666
+ # Set to draft to create the legal entity as a draft. Omit to create it as
667
+ # pending. Inline child legal entities take the parent's status.
668
+ #
669
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Status, nil]
670
+ optional :status, enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::Status }
671
+
664
672
  # @!attribute suffix
665
673
  # An individual's suffix.
666
674
  #
@@ -709,7 +717,7 @@ module ModernTreasury
709
717
  # @return [String, nil]
710
718
  optional :website, String, nil?: true
711
719
 
712
- # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
720
+ # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, status: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
713
721
  # Some parameter documentations has been truncated, see
714
722
  # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity} for more
715
723
  # details.
@@ -778,7 +786,7 @@ module ModernTreasury
778
786
  #
779
787
  # @param prefix [String, nil] An individual's prefix.
780
788
  #
781
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
789
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
782
790
  #
783
791
  # @param regulators [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
784
792
  #
@@ -786,6 +794,8 @@ module ModernTreasury
786
794
  #
787
795
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
788
796
  #
797
+ # @param status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Status] Set to draft to create the legal entity as a draft. Omit to create it as pending
798
+ #
789
799
  # @param suffix [String, nil] An individual's suffix.
790
800
  #
791
801
  # @param terms_of_use [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
@@ -954,6 +964,19 @@ module ModernTreasury
954
964
  # @return [Array<Symbol>]
955
965
  end
956
966
 
967
+ # Set to draft to create the legal entity as a draft. Omit to create it as
968
+ # pending. Inline child legal entities take the parent's status.
969
+ #
970
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#status
971
+ module Status
972
+ extend ModernTreasury::Internal::Type::Enum
973
+
974
+ DRAFT = :draft
975
+
976
+ # @!method self.values
977
+ # @return [Array<Symbol>]
978
+ end
979
+
957
980
  # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#terms_of_use
958
981
  class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
959
982
  # @!attribute accepted_at
@@ -32,9 +32,9 @@ module ModernTreasury
32
32
  required :documentable_id, String, nil?: true
33
33
 
34
34
  # @!attribute documentable_type
35
- # The type of the associated object. Currently can be one of `payment_order`,
36
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
37
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
35
+ # The type of the associated object. Currently can be one of `connection`,
36
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
37
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
38
38
  #
39
39
  # @return [Symbol, ModernTreasury::Models::Document::DocumentableType, nil]
40
40
  required :documentable_type, enum: -> { ModernTreasury::Document::DocumentableType }, nil?: true
@@ -81,7 +81,7 @@ module ModernTreasury
81
81
  #
82
82
  # @param documentable_id [String, nil] The unique identifier for the associated object.
83
83
  #
84
- # @param documentable_type [Symbol, ModernTreasury::Models::Document::DocumentableType, nil] The type of the associated object. Currently can be one of `payment_order`, `tra
84
+ # @param documentable_type [Symbol, ModernTreasury::Models::Document::DocumentableType, nil] The type of the associated object. Currently can be one of `connection`, `counte
85
85
  #
86
86
  # @param file [ModernTreasury::Models::Document::File]
87
87
  #
@@ -93,9 +93,9 @@ module ModernTreasury
93
93
  #
94
94
  # @param updated_at [Time]
95
95
 
96
- # The type of the associated object. Currently can be one of `payment_order`,
97
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
98
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
96
+ # The type of the associated object. Currently can be one of `connection`,
97
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
98
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
99
99
  #
100
100
  # @see ModernTreasury::Models::Document#documentable_type
101
101
  module DocumentableType
@@ -104,12 +104,10 @@ module ModernTreasury
104
104
  CONNECTION = :connection
105
105
  COUNTERPARTY = :counterparty
106
106
  EXPECTED_PAYMENT = :expected_payment
107
- EXTERNAL_ACCOUNT = :external_account
108
107
  IDENTIFICATION = :identification
109
108
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
110
109
  INTERNAL_ACCOUNT = :internal_account
111
110
  LEGAL_ENTITY = :legal_entity
112
- ORGANIZATION = :organization
113
111
  PAYMENT_ORDER = :payment_order
114
112
  RETURN = :return
115
113
  TRANSACTION = :transaction
@@ -46,12 +46,10 @@ module ModernTreasury
46
46
  CONNECTION = :connection
47
47
  COUNTERPARTY = :counterparty
48
48
  EXPECTED_PAYMENT = :expected_payment
49
- EXTERNAL_ACCOUNT = :external_account
50
49
  IDENTIFICATION = :identification
51
50
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
52
51
  INTERNAL_ACCOUNT = :internal_account
53
52
  LEGAL_ENTITY = :legal_entity
54
- ORGANIZATION = :organization
55
53
  PAYMENT_ORDER = :payment_order
56
54
  RETURN = :return
57
55
  TRANSACTION = :transaction
@@ -19,9 +19,9 @@ module ModernTreasury
19
19
  optional :documentable_id, String
20
20
 
21
21
  # @!attribute documentable_type
22
- # The type of the associated object. Currently can be one of `payment_order`,
23
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
24
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
22
+ # The type of the associated object. Currently can be one of `connection`,
23
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
24
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
25
25
  #
26
26
  # @return [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType, nil]
27
27
  optional :documentable_type, enum: -> { ModernTreasury::DocumentListParams::DocumentableType }
@@ -39,27 +39,25 @@ module ModernTreasury
39
39
  #
40
40
  # @param documentable_id [String] The unique identifier for the associated object.
41
41
  #
42
- # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
42
+ # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `connection`, `counte
43
43
  #
44
44
  # @param per_page [Integer]
45
45
  #
46
46
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
47
47
 
48
- # The type of the associated object. Currently can be one of `payment_order`,
49
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
50
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
48
+ # The type of the associated object. Currently can be one of `connection`,
49
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
50
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
51
51
  module DocumentableType
52
52
  extend ModernTreasury::Internal::Type::Enum
53
53
 
54
54
  CONNECTION = :connection
55
55
  COUNTERPARTY = :counterparty
56
56
  EXPECTED_PAYMENT = :expected_payment
57
- EXTERNAL_ACCOUNT = :external_account
58
57
  IDENTIFICATION = :identification
59
58
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
60
59
  INTERNAL_ACCOUNT = :internal_account
61
60
  LEGAL_ENTITY = :legal_entity
62
- ORGANIZATION = :organization
63
61
  PAYMENT_ORDER = :payment_order
64
62
  RETURN = :return
65
63
  TRANSACTION = :transaction
@@ -159,10 +159,9 @@ module ModernTreasury
159
159
  # @!attribute reconciliation_rule_variables
160
160
  # An array of reconciliation rule variables for this payment.
161
161
  #
162
- # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
162
+ # @return [Array<ModernTreasury::Models::ReconciliationRule>]
163
163
  required :reconciliation_rule_variables,
164
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
165
- nil?: true
164
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] }
166
165
 
167
166
  # @!attribute remittance_information
168
167
  # For `ach`, this field will be passed through on an addenda record. For `wire`
@@ -260,7 +259,7 @@ module ModernTreasury
260
259
  #
261
260
  # @param reconciliation_method [Symbol, ModernTreasury::Models::ExpectedPayment::ReconciliationMethod, nil] One of manual if this expected payment was manually reconciled in the dashboard,
262
261
  #
263
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
262
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
264
263
  #
265
264
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
266
265
  #
@@ -150,8 +150,7 @@ module ModernTreasury
150
150
  #
151
151
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
152
152
  optional :reconciliation_rule_variables,
153
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
154
- nil?: true
153
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] }
155
154
 
156
155
  # @!attribute remittance_information
157
156
  # For `ach`, this field will be passed through on an addenda record. For `wire`
@@ -220,7 +219,7 @@ module ModernTreasury
220
219
  #
221
220
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
222
221
  #
223
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
222
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
224
223
  #
225
224
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
226
225
  #