modern_treasury 0.31.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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/account_detail.rb +1 -0
  5. data/lib/modern_treasury/models/account_detail_create_params.rb +1 -0
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +28 -8
  7. data/lib/modern_treasury/models/child_legal_entity.rb +6 -5
  8. data/lib/modern_treasury/models/counterparty_create_params.rb +24 -1
  9. data/lib/modern_treasury/models/expected_payment.rb +3 -4
  10. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  11. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  12. data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
  13. data/lib/modern_treasury/models/identification.rb +109 -0
  14. data/lib/modern_treasury/models/identification_create_params.rb +109 -0
  15. data/lib/modern_treasury/models/identification_create_request.rb +109 -0
  16. data/lib/modern_treasury/models/identification_update_params.rb +109 -0
  17. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
  18. data/lib/modern_treasury/models/internal_account.rb +10 -1
  19. data/lib/modern_treasury/models/internal_account_create_params.rb +12 -1
  20. data/lib/modern_treasury/models/ledger_account.rb +0 -1
  21. data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
  22. data/lib/modern_treasury/models/legal_entity.rb +6 -5
  23. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
  24. data/lib/modern_treasury/models/legal_entity_create_params.rb +21 -1
  25. data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
  26. data/lib/modern_treasury/models/legal_entity_update_params.rb +23 -1
  27. data/lib/modern_treasury/models/payment_order.rb +12 -2
  28. data/lib/modern_treasury/models/payment_order_create_async_params.rb +12 -1
  29. data/lib/modern_treasury/models/payment_order_create_params.rb +12 -1
  30. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
  31. data/lib/modern_treasury/models/payment_order_update_params.rb +12 -1
  32. data/lib/modern_treasury/models/payment_reference.rb +1 -1
  33. data/lib/modern_treasury/models/return_object.rb +1 -1
  34. data/lib/modern_treasury/models/third_party_verification.rb +1 -0
  35. data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
  36. data/lib/modern_treasury/resources/expected_payments.rb +2 -2
  37. data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
  38. data/lib/modern_treasury/resources/legal_entities.rb +6 -2
  39. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  40. data/lib/modern_treasury/version.rb +1 -1
  41. data/rbi/modern_treasury/models/account_detail.rbi +5 -0
  42. data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -0
  43. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +56 -6
  44. data/rbi/modern_treasury/models/child_legal_entity.rbi +8 -6
  45. data/rbi/modern_treasury/models/counterparty_create_params.rbi +62 -0
  46. data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
  47. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
  48. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
  49. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  50. data/rbi/modern_treasury/models/identification.rbi +224 -0
  51. data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
  52. data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
  53. data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
  54. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
  55. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  56. data/rbi/modern_treasury/models/internal_account_create_params.rbi +17 -0
  57. data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
  58. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
  59. data/rbi/modern_treasury/models/legal_entity.rbi +7 -6
  60. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
  61. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +49 -0
  62. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
  63. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +52 -0
  64. data/rbi/modern_treasury/models/payment_order.rbi +17 -5
  65. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +17 -0
  66. data/rbi/modern_treasury/models/payment_order_create_params.rbi +17 -0
  67. data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
  68. data/rbi/modern_treasury/models/payment_order_update_params.rbi +17 -0
  69. data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
  70. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  71. data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
  72. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  73. data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
  74. data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
  75. data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
  76. data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
  77. data/sig/modern_treasury/models/account_detail.rbs +2 -0
  78. data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -0
  79. data/sig/modern_treasury/models/bulk_request_create_params.rbs +30 -8
  80. data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
  81. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -0
  82. data/sig/modern_treasury/models/expected_payment.rbs +4 -4
  83. data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
  84. data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
  85. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  86. data/sig/modern_treasury/models/identification.rbs +219 -1
  87. data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
  88. data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
  89. data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
  90. data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
  91. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  92. data/sig/modern_treasury/models/internal_account_create_params.rbs +7 -0
  93. data/sig/modern_treasury/models/ledger_account.rbs +1 -2
  94. data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
  95. data/sig/modern_treasury/models/legal_entity.rbs +2 -1
  96. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
  97. data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
  98. data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
  99. data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
  100. data/sig/modern_treasury/models/payment_order.rbs +7 -2
  101. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +7 -0
  102. data/sig/modern_treasury/models/payment_order_create_params.rbs +7 -0
  103. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
  104. data/sig/modern_treasury/models/payment_order_update_params.rbs +7 -0
  105. data/sig/modern_treasury/models/payment_reference.rbs +2 -2
  106. data/sig/modern_treasury/models/return_object.rbs +2 -2
  107. data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
  108. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  109. data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
  110. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  111. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  112. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  113. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac919882403746bb539adee28504278b23265825dc7be6f13f25443883adc3b1
4
- data.tar.gz: 331c58f6ba8d087b98bb576c563c4e2728ccd82e2fc397dc3570465426dced12
3
+ metadata.gz: 718b202f35241e6b6597c6271f19a9b72ef2ce729bb7a988a5c4455bb46c5927
4
+ data.tar.gz: cc147cf1a52ba271d9d2903d7ac5a827c060b274f8218872f6ad97134dd81994
5
5
  SHA512:
6
- metadata.gz: cb930cc0bc55f491c9981c1231f3b889255ea308b33186225b7d101804e733a4309f56bd69075382ac9fb717afedb6c6d635b33b04010461342982ce22e2c691
7
- data.tar.gz: d343d7af1182b9a057d362d5ba53586b0315c07f5b566a9e927873e12bb1e0e3d5b0ebd709fd530a06df784ad0a8efa464ca0b28181608b176b3de3fb19671b3
6
+ metadata.gz: 788c59d67b7c3bd3a1f229ad391790c21422baddb64cb134555d3a075c7b8d771eeb3e79cc00254b0fece68b8ce0468cb35daa7fcb55155806914d26a5fc5ba2
7
+ data.tar.gz: 771e6281c35b8993dbba4c30d2588ad6eaaa2d81cfdf04317bafc38fdb7ddff0f5d6fd5428284eae7fb982f0bbfb1c36221082a5cbed25cc8575019f910a71a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
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
+
3
25
  ## [0.31.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.30.0...v0.31.0) (2026-09-17)
4
26
 
5
27
 
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.31.0"
27
+ gem "modern_treasury", "~> 0.32.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -88,6 +88,7 @@ module ModernTreasury
88
88
 
89
89
  ARBITRUM_ADDRESS = :arbitrum_address
90
90
  AU_NUMBER = :au_number
91
+ AVALANCHE_ADDRESS = :avalanche_address
91
92
  BASE_ADDRESS = :base_address
92
93
  CARD_TOKEN = :card_token
93
94
  CLABE = :clabe
@@ -62,6 +62,7 @@ module ModernTreasury
62
62
 
63
63
  ARBITRUM_ADDRESS = :arbitrum_address
64
64
  AU_NUMBER = :au_number
65
+ AVALANCHE_ADDRESS = :avalanche_address
65
66
  BASE_ADDRESS = :base_address
66
67
  CARD_TOKEN = :card_token
67
68
  CLABE = :clabe
@@ -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.
@@ -885,6 +895,7 @@ module ModernTreasury
885
895
 
886
896
  ARBITRUM_ADDRESS = :arbitrum_address
887
897
  AU_NUMBER = :au_number
898
+ AVALANCHE_ADDRESS = :avalanche_address
888
899
  BASE_ADDRESS = :base_address
889
900
  CARD_TOKEN = :card_token
890
901
  CLABE = :clabe
@@ -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.
@@ -2313,6 +2333,7 @@ module ModernTreasury
2313
2333
 
2314
2334
  ARBITRUM_ADDRESS = :arbitrum_address
2315
2335
  AU_NUMBER = :au_number
2336
+ AVALANCHE_ADDRESS = :avalanche_address
2316
2337
  BASE_ADDRESS = :base_address
2317
2338
  CARD_TOKEN = :card_token
2318
2339
  CLABE = :clabe
@@ -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
  #
@@ -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
@@ -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
 
@@ -285,6 +285,7 @@ module ModernTreasury
285
285
 
286
286
  ARBITRUM_ADDRESS = :arbitrum_address
287
287
  AU_NUMBER = :au_number
288
+ AVALANCHE_ADDRESS = :avalanche_address
288
289
  BASE_ADDRESS = :base_address
289
290
  CARD_TOKEN = :card_token
290
291
  CLABE = :clabe
@@ -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.
@@ -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
@@ -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
  #
@@ -131,8 +131,7 @@ module ModernTreasury
131
131
  #
132
132
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
133
133
  optional :reconciliation_rule_variables,
134
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
135
- nil?: true
134
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] }
136
135
 
137
136
  # @!attribute remittance_information
138
137
  # For `ach`, this field will be passed through on an addenda record. For `wire`
@@ -204,7 +203,7 @@ module ModernTreasury
204
203
  #
205
204
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
206
205
  #
207
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
206
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
208
207
  #
209
208
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
210
209
  #
@@ -152,6 +152,7 @@ module ModernTreasury
152
152
 
153
153
  ARBITRUM_ADDRESS = :arbitrum_address
154
154
  AU_NUMBER = :au_number
155
+ AVALANCHE_ADDRESS = :avalanche_address
155
156
  BASE_ADDRESS = :base_address
156
157
  CARD_TOKEN = :card_token
157
158
  CLABE = :clabe
@@ -99,24 +99,51 @@ module ModernTreasury
99
99
  module IDType
100
100
  extend ModernTreasury::Internal::Type::Enum
101
101
 
102
+ AD_NRT = :ad_nrt
103
+ AE_EID = :ae_eid
104
+ AE_TRN = :ae_trn
105
+ AG_TIN = :ag_tin
106
+ AI_TIN = :ai_tin
107
+ AL_NID = :al_nid
108
+ AL_NIPT = :al_nipt
109
+ AM_TIN = :am_tin
110
+ AO_NIF = :ao_nif
102
111
  AR_CUIL = :ar_cuil
103
112
  AR_CUIT = :ar_cuit
104
113
  AT_ATIN = :at_atin
105
114
  AT_VAT = :at_vat
106
115
  AU_ABN = :au_abn
107
116
  AU_TFN = :au_tfn
117
+ AW_TIN = :aw_tin
118
+ AZ_PIN = :az_pin
119
+ BB_TIN = :bb_tin
120
+ BD_TIN = :bd_tin
108
121
  BE_ENT = :be_ent
109
122
  BE_NRN = :be_nrn
123
+ BF_IFU = :bf_ifu
124
+ BG_EGN = :bg_egn
125
+ BH_CPR = :bh_cpr
126
+ BH_VAT = :bh_vat
127
+ BJ_IFU = :bj_ifu
128
+ BO_NIT = :bo_nit
110
129
  BR_CNPJ = :br_cnpj
111
130
  BR_CPF = :br_cpf
131
+ BS_TIN = :bs_tin
132
+ BT_BIN = :bt_bin
133
+ BW_TIN = :bw_tin
134
+ BZ_TIN = :bz_tin
112
135
  CA_BN = :ca_bn
113
136
  CA_SIN = :ca_sin
114
137
  CH_AHV = :ch_ahv
115
138
  CH_UID = :ch_uid
139
+ CI_NCC = :ci_ncc
116
140
  CL_RUN = :cl_run
117
141
  CL_RUT = :cl_rut
142
+ CM_NIU = :cm_niu
118
143
  CO_CEDULAS = :co_cedulas
119
144
  CO_NIT = :co_nit
145
+ CR_CPF = :cr_cpf
146
+ CW_CRIB = :cw_crib
120
147
  CY_TIN = :cy_tin
121
148
  CZ_ICO = :cz_ico
122
149
  CZ_RC = :cz_rc
@@ -125,21 +152,39 @@ module ModernTreasury
125
152
  DE_VAT = :de_vat
126
153
  DK_CPR = :dk_cpr
127
154
  DK_CVR = :dk_cvr
155
+ DM_TIN = :dm_tin
156
+ DO_CEDULA = :do_cedula
157
+ DO_RNC = :do_rnc
128
158
  DRIVERS_LICENSE = :drivers_license
159
+ EC_RUC = :ec_ruc
129
160
  EE_IK = :ee_ik
130
161
  EE_RK = :ee_rk
131
162
  ES_NIE = :es_nie
132
163
  ES_NIF = :es_nif
133
164
  FI_HETU = :fi_hetu
134
165
  FI_YTJ = :fi_ytj
166
+ FJ_TIN = :fj_tin
167
+ FO_PTAL = :fo_ptal
135
168
  FR_NIF = :fr_nif
136
169
  FR_SIREN = :fr_siren
137
170
  FR_VAT = :fr_vat
138
171
  GB_NINO = :gb_nino
139
172
  GB_UTR = :gb_utr
140
173
  GB_VAT = :gb_vat
174
+ GD_TIN = :gd_tin
175
+ GE_IC = :ge_ic
176
+ GE_PN = :ge_pn
177
+ GE_TIN = :ge_tin
141
178
  GENERIC_INTERNATIONAL = :generic_international
179
+ GG_SIN = :gg_sin
180
+ GH_PIN = :gh_pin
181
+ GH_TIN = :gh_tin
182
+ GI_TRN = :gi_trn
183
+ GL_CPR = :gl_cpr
184
+ GL_GER = :gl_ger
185
+ GM_TIN = :gm_tin
142
186
  GR_VAT = :gr_vat
187
+ GT_NIT = :gt_nit
143
188
  HK_BRN = :hk_brn
144
189
  HK_HKID = :hk_hkid
145
190
  HN_ID = :hn_id
@@ -147,29 +192,64 @@ module ModernTreasury
147
192
  HR_OIB = :hr_oib
148
193
  HU_ADJ = :hu_adj
149
194
  HU_ANUM = :hu_anum
195
+ ID_NIK = :id_nik
196
+ ID_NPWP = :id_npwp
150
197
  IE_PPS = :ie_pps
151
198
  IE_TRN = :ie_trn
199
+ IL_CN = :il_cn
200
+ IL_PIN = :il_pin
201
+ IM_TRN = :im_trn
152
202
  IN_LEI = :in_lei
153
203
  IS_KNT = :is_knt
154
204
  IT_CF = :it_cf
155
205
  IT_PIVA = :it_piva
206
+ JE_SSN = :je_ssn
207
+ JE_TIN = :je_tin
208
+ JM_TRN = :jm_trn
209
+ JO_TIN = :jo_tin
156
210
  JP_HB = :jp_hb
157
211
  JP_MN = :jp_mn
212
+ KE_PIN = :ke_pin
213
+ KG_PIN = :kg_pin
214
+ KN_TIN = :kn_tin
158
215
  KR_BRN = :kr_brn
159
216
  KR_CRN = :kr_crn
160
217
  KR_RRN = :kr_rrn
218
+ KW_CID = :kw_cid
219
+ KZ_BIN = :kz_bin
220
+ KZ_IIN = :kz_iin
221
+ LA_TIN = :la_tin
222
+ LC_TIN = :lc_tin
161
223
  LI_PEID = :li_peid
224
+ LK_TIN = :lk_tin
225
+ LS_TIN = :ls_tin
162
226
  LT_AK = :lt_ak
163
227
  LT_JAK = :lt_jak
164
228
  LU_MTC = :lu_mtc
165
229
  LU_VAT = :lu_vat
166
230
  LV_PK = :lv_pk
167
231
  LV_RN = :lv_rn
232
+ MD_IDNP = :md_idnp
233
+ ME_JMBG = :me_jmbg
234
+ ME_PIB = :me_pib
235
+ MG_NIF = :mg_nif
236
+ MH_SSN = :mh_ssn
237
+ MO_BIR = :mo_bir
238
+ MO_TIN_B = :mo_tin_b
239
+ MO_TIN_I = :mo_tin_i
240
+ MR_NIF = :mr_nif
168
241
  MT_TIN = :mt_tin
169
242
  MT_VAT = :mt_vat
243
+ MU_TAN = :mu_tan
244
+ MW_TPIN = :mw_tpin
170
245
  MX_CURP = :mx_curp
171
246
  MX_INE = :mx_ine
172
247
  MX_RFC = :mx_rfc
248
+ MY_NPC = :my_npc
249
+ MY_NRIC = :my_nric
250
+ MY_TIN_B = :my_tin_b
251
+ MZ_NUIT = :mz_nuit
252
+ NA_TIN = :na_tin
173
253
  NATIONAL_ID = :national_id
174
254
  NL_BSN = :nl_bsn
175
255
  NL_BTW = :nl_btw
@@ -177,13 +257,24 @@ module ModernTreasury
177
257
  NO_FDN = :no_fdn
178
258
  NO_MVA = :no_mva
179
259
  NO_ORGNR = :no_orgnr
260
+ NR_TIN = :nr_tin
180
261
  NZ_IRD = :nz_ird
262
+ OM_CID = :om_cid
263
+ PA_CEDULA = :pa_cedula
264
+ PA_RUC = :pa_ruc
181
265
  PASSPORT = :passport
266
+ PE_RUC = :pe_ruc
267
+ PG_TIN = :pg_tin
268
+ PH_TIN = :ph_tin
182
269
  PL_NIP = :pl_nip
183
270
  PL_PESEL = :pl_pesel
184
271
  PT_NIF = :pt_nif
272
+ PY_RUC = :py_ruc
273
+ QA_QID = :qa_qid
274
+ QA_TIN = :qa_tin
185
275
  RO_CNP = :ro_cnp
186
276
  RO_CUI = :ro_cui
277
+ RW_TIN = :rw_tin
187
278
  SA_TIN = :sa_tin
188
279
  SA_VAT = :sa_vat
189
280
  SE_ORGNR = :se_orgnr
@@ -195,11 +286,29 @@ module ModernTreasury
195
286
  SI_TIN = :si_tin
196
287
  SK_ICO = :sk_ico
197
288
  SK_RC = :sk_rc
289
+ SL_TIN = :sl_tin
290
+ SM_SSI = :sm_ssi
291
+ SZ_TIN = :sz_tin
292
+ TG_NIF = :tg_nif
293
+ TH_JID = :th_jid
294
+ TH_PIN = :th_pin
295
+ TJ_INN = :tj_inn
296
+ TO_TIN = :to_tin
297
+ TR_TCKN = :tr_tckn
298
+ TT_BIR = :tt_bir
299
+ TW_NRIC = :tw_nric
300
+ TW_UBN = :tw_ubn
301
+ UG_TIN = :ug_tin
198
302
  US_EIN = :us_ein
199
303
  US_ITIN = :us_itin
200
304
  US_SSN = :us_ssn
201
305
  UY_RUT = :uy_rut
306
+ UZ_INN = :uz_inn
307
+ UZ_PIN = :uz_pin
202
308
  VN_TIN = :vn_tin
309
+ ZA_TRN = :za_trn
310
+ ZA_VAT = :za_vat
311
+ ZM_TPIN = :zm_tpin
203
312
 
204
313
  # @!method self.values
205
314
  # @return [Array<Symbol>]