modern_treasury 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/README.md +6 -6
- data/lib/modern_treasury/client.rb +14 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
- data/lib/modern_treasury/models/address.rb +6 -4
- data/lib/modern_treasury/models/address_request.rb +9 -4
- data/lib/modern_treasury/models/bulk_request_create_params.rb +104 -64
- data/lib/modern_treasury/models/child_legal_entity.rb +142 -14
- data/lib/modern_treasury/models/child_legal_entity_create.rb +48 -8
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +52 -8
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +52 -17
- data/lib/modern_treasury/models/currency.rb +0 -2
- data/lib/modern_treasury/models/document.rb +1 -73
- data/lib/modern_treasury/models/document_create_params.rb +11 -11
- data/lib/modern_treasury/models/document_list_params.rb +11 -11
- data/lib/modern_treasury/models/expected_payment.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
- data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
- data/lib/modern_treasury/models/hold_list_params.rb +8 -11
- data/lib/modern_treasury/models/identification_create_request.rb +77 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
- data/lib/modern_treasury/models/internal_account.rb +12 -8
- data/lib/modern_treasury/models/internal_account_create_params.rb +66 -34
- data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +21 -10
- data/lib/modern_treasury/models/invoice.rb +33 -18
- data/lib/modern_treasury/models/invoice_create_params.rb +32 -16
- data/lib/modern_treasury/models/invoice_update_params.rb +32 -16
- data/lib/modern_treasury/models/ledger_balance.rb +22 -1
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +20 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +70 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +142 -14
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +20 -5
- data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
- data/lib/modern_treasury/models/payment_order.rb +6 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +18 -21
- data/lib/modern_treasury/models/payment_order_create_params.rb +29 -32
- data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
- data/lib/modern_treasury/models/payment_order_type.rb +2 -10
- data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
- data/lib/modern_treasury/models/payment_reference.rb +2 -4
- data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
- data/lib/modern_treasury/models/return_object.rb +8 -7
- data/lib/modern_treasury/models/routing_detail.rb +0 -9
- data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction.rb +17 -15
- data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
- data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +3 -3
- data/lib/modern_treasury/resources/holds.rb +3 -3
- data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +10 -6
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/legal_entities.rb +11 -7
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/transactions.rb +5 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/address.rbi +8 -4
- data/rbi/modern_treasury/models/address_request.rbi +8 -4
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +147 -178
- data/rbi/modern_treasury/models/child_legal_entity.rbi +487 -18
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +85 -9
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +91 -9
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +91 -54
- data/rbi/modern_treasury/models/currency.rbi +0 -2
- data/rbi/modern_treasury/models/document.rbi +0 -87
- data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
- data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
- data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
- data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
- data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
- data/rbi/modern_treasury/models/identification_create_request.rbi +385 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
- data/rbi/modern_treasury/models/internal_account.rbi +14 -35
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +131 -63
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +32 -15
- data/rbi/modern_treasury/models/invoice.rbi +30 -18
- data/rbi/modern_treasury/models/invoice_create_params.rbi +28 -18
- data/rbi/modern_treasury/models/invoice_update_params.rbi +28 -18
- data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +27 -10
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +90 -13
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +486 -18
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +26 -7
- data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
- data/rbi/modern_treasury/models/payment_order.rbi +16 -28
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +18 -61
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +40 -83
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
- data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
- data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
- data/rbi/modern_treasury/models/return_object.rbi +19 -25
- data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction.rbi +24 -24
- data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
- data/rbi/modern_treasury/resources/holds.rbi +3 -5
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +21 -8
- data/rbi/modern_treasury/resources/invoices.rbi +4 -6
- data/rbi/modern_treasury/resources/legal_entities.rbi +21 -9
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -14
- data/rbi/modern_treasury/resources/transactions.rbi +11 -7
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +63 -60
- data/sig/modern_treasury/models/child_legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
- data/sig/modern_treasury/models/currency.rbs +0 -4
- data/sig/modern_treasury/models/document.rbs +0 -57
- data/sig/modern_treasury/models/document_create_params.rbs +22 -22
- data/sig/modern_treasury/models/document_list_params.rbs +22 -22
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
- data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
- data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
- data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
- data/sig/modern_treasury/models/identification_create_request.rbs +154 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
- data/sig/modern_treasury/models/internal_account.rbs +5 -14
- data/sig/modern_treasury/models/internal_account_create_params.rbs +43 -26
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
- data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
- data/sig/modern_treasury/models/payment_order.rbs +4 -8
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -23
- data/sig/modern_treasury/models/payment_order_create_params.rbs +27 -45
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
- data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
- data/sig/modern_treasury/models/payment_reference.rbs +4 -8
- data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
- data/sig/modern_treasury/models/return_object.rbs +12 -10
- data/sig/modern_treasury/models/routing_detail.rbs +0 -18
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
- data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
- data/sig/modern_treasury/models/transaction.rbs +7 -16
- data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts.rbs +4 -2
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
- data/sig/modern_treasury/resources/transactions.rbs +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20d89043eb349b2e59b81d7a59688622b41f42dc3f5714d425990edd3b68a682
|
|
4
|
+
data.tar.gz: f6f31150adcd14edb1d50dd9c03e070a5f363c58672b9e2bbeff61353989c8c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8155a7b01dcd215ee593798427901c177fcbe002c908f6270467f770ea100e884c69593d7edba04509311de06590a75b14c436ebe87b6d42547687c793a21bc
|
|
7
|
+
data.tar.gz: c0f62e35829db036915c3d59bb90460e02db5facd4582259fb9e2aaade391fab72d8c5af8b0df8906b63d81760ea13019ab695d98a6809036303b26dfc7697dc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.29.0 (2026-07-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.28.0...v0.29.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.28.0...v0.29.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([a67fb96](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a67fb96739780ee8800974f64c44dcb865c2a1a6))
|
|
10
|
+
* **api:** api update ([991d181](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/991d1814e2636b6eaf4beb8b02357181741b807b))
|
|
11
|
+
* **api:** api update ([222861e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/222861ea87ee8aefbc4083347da936eea56c634f))
|
|
12
|
+
* **api:** api update ([1b84642](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/1b84642a83c14a49134dac9bc8a30e17b7dcce7e))
|
|
13
|
+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([12a94e4](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/12a94e4c4c91266ce3b7bcc2749b1dbfb534c3ec))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Chores
|
|
17
|
+
|
|
18
|
+
* regenerate SDKs from 24f3dc7dc33d9f75e2d589541d11b7a8bd943451 ([9834fb8](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9834fb8cea0f8729fa96ba1eca12e21f618186dd))
|
|
19
|
+
* regenerate SDKs from e1e0e3ef1458022fd1daec6fcf15bb4695c49a4b ([9bf4ecb](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9bf4ecbfbf48cdbfa95763f017849ee17b4a31d8))
|
|
20
|
+
|
|
21
|
+
## 0.28.0 (2026-07-11)
|
|
22
|
+
|
|
23
|
+
Full Changelog: [v0.27.0...v0.28.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.27.0...v0.28.0)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **api:** add legal entity simulation endpoint ([f06599f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f06599f79f7a0a8fd4ddd2c1aa1ca42d2c8014d0))
|
|
28
|
+
* **api:** api update ([84443ac](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/84443ac5d4987ac39e6d49f67b37ef8f6bf44dc5))
|
|
29
|
+
* **api:** api update ([396ce9e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/396ce9e866a81371ca477a56b07bce1939c5bdcf))
|
|
30
|
+
* **api:** api update ([8da2d50](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/8da2d508c0a120e16891388a2b918c1f0fcfbc4f))
|
|
31
|
+
* **api:** api update ([f2bbb4d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f2bbb4d415509ca803abd0b82fa1bb3d9c487b88))
|
|
32
|
+
* **api:** api update ([5fa6a05](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5fa6a05aa073dda9533c0debb02a61216a6301b7))
|
|
33
|
+
* **api:** api update ([a86eb51](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a86eb514979fa254a18fb9d145a6a637fbd14b78))
|
|
34
|
+
* **api:** api update ([30b7e14](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/30b7e140705f2d133060db6b07b7443a2d298eb3))
|
|
35
|
+
* **api:** api update ([87cdb3c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/87cdb3ce81f897f08d9b8b7492ef4e07142d0c1d))
|
|
36
|
+
* **api:** api update ([d15d28f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d15d28fb2e2f8dfea886245f0462307fe3e2fa1a))
|
|
37
|
+
* **api:** api update ([053da05](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/053da05eed36f2085b92121960d81bc3ef76ea5d))
|
|
38
|
+
* **api:** api update ([e3de743](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/e3de7434657a6df98b858042bd60590393037e52))
|
|
39
|
+
* **api:** api update ([957260c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/957260cf1b6d1343659c4c7b38541cfe12f6a2c7))
|
|
40
|
+
* **api:** api update ([bc65a9d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/bc65a9d99769dce96895bae87fb4bb2a3e87ea1e))
|
|
41
|
+
* **api:** api update ([9dc71ea](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9dc71ea087a80e3d6c19f1b73ee8ed965edc6e1f))
|
|
42
|
+
* **api:** api update ([1fc3cd4](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/1fc3cd4524ced4199b92e6bb096ff92db8e6794f))
|
|
43
|
+
* **api:** api update ([dc38dfd](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/dc38dfde588570c6b5682f735b2b079b93bbc63f))
|
|
44
|
+
* **api:** api update ([dce7143](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/dce7143ecded83393d3993c299f0333249a0b8bb))
|
|
45
|
+
* **api:** api update ([20ccb3e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/20ccb3e5fa768d240a8a5f4bc491099c58e622fc))
|
|
46
|
+
* **api:** api update ([02faafd](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/02faafd674816fd272b5949612ae8b064d21b751))
|
|
47
|
+
* **api:** api update ([76e467d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/76e467d4dc733c1d0104b0f8723283aa3b017ecd))
|
|
48
|
+
* **api:** api update ([07b3cd9](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/07b3cd9a1b72d30c9faef26596a13ee6ad53e1cc))
|
|
49
|
+
* **api:** api update ([bd4feeb](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/bd4feeb8287680a4fb972ffda9f6a4f914391429))
|
|
50
|
+
* **api:** api update ([f896c07](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f896c078608062e7658170a3d2ba0feb56576de2))
|
|
51
|
+
* **api:** api update ([da3b541](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/da3b541fd9148d7e5446ee0d8528277628f67755))
|
|
52
|
+
* **api:** api update ([67a4d13](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/67a4d1338a7993af379fb31f0d119b0e9b3a77a6))
|
|
53
|
+
* support setting headers via env ([6c6c502](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/6c6c50264447960671789dd90eacf781cbd8627f))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* **client:** elide content type header on requests without body ([9ded309](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9ded3091557e2f722de1744989937d2d6f636806))
|
|
59
|
+
* **client:** send content-type header for requests with an omitted optional body ([7f398b0](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7f398b0a4f11ba97bfc5dddbe907d91e5d204be5))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Chores
|
|
63
|
+
|
|
64
|
+
* **internal:** bound formatter parallelism to CPU count ([89f2508](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/89f25083d68b3316c9d2503a2ace14f67fa5618e))
|
|
65
|
+
|
|
3
66
|
## 0.27.0 (2026-04-22)
|
|
4
67
|
|
|
5
68
|
Full Changelog: [v0.26.0...v0.27.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.26.0...v0.27.0)
|
data/README.md
CHANGED
|
@@ -6,8 +6,8 @@ The Modern Treasury Ruby library provides convenient access to the Modern Treasu
|
|
|
6
6
|
|
|
7
7
|
Use the Modern Treasury MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
8
8
|
|
|
9
|
-
[](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=
|
|
10
|
-
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22modern-treasury-mcp%22%2C%
|
|
9
|
+
[](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1vZGVybi10cmVhc3VyeS1tY3AiXSwiZW52Ijp7Ik1PREVSTl9UUkVBU1VSWV9BUElfS0VZIjoiTXkgQVBJIEtleSIsIk1PREVSTl9UUkVBU1VSWV9PUkdBTklaQVRJT05fSUQiOiJteS1vcmdhbml6YXRpb24tSUQiLCJNT0RFUk5fVFJFQVNVUllfV0VCSE9PS19LRVkiOiJNeSBXZWJob29rIEtleSJ9fQ)
|
|
10
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22modern-treasury-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22modern-treasury-mcp%22%5D%2C%22env%22%3A%7B%22MODERN_TREASURY_API_KEY%22%3A%22My%20API%20Key%22%2C%22MODERN_TREASURY_ORGANIZATION_ID%22%3A%22my-organization-ID%22%2C%22MODERN_TREASURY_WEBHOOK_KEY%22%3A%22My%20Webhook%20Key%22%7D%7D)
|
|
11
11
|
|
|
12
12
|
> Note: You may need to set environment variables in your MCP client.
|
|
13
13
|
|
|
@@ -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.
|
|
27
|
+
gem "modern_treasury", "~> 0.29.0"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
<!-- x-release-please-end -->
|
|
@@ -84,14 +84,14 @@ require "pathname"
|
|
|
84
84
|
document = modern_treasury.documents.create(
|
|
85
85
|
file: Pathname("my/file.txt"),
|
|
86
86
|
documentable_id: "24c6b7a3-02...",
|
|
87
|
-
documentable_type: "
|
|
87
|
+
documentable_type: "connection"
|
|
88
88
|
)
|
|
89
89
|
|
|
90
90
|
# Alternatively, pass file contents or a `StringIO` directly:
|
|
91
91
|
document = modern_treasury.documents.create(
|
|
92
92
|
file: File.read("my/file.txt"),
|
|
93
93
|
documentable_id: "24c6b7a3-02...",
|
|
94
|
-
documentable_type: "
|
|
94
|
+
documentable_type: "connection"
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
# Or, to control the filename and/or content type:
|
|
@@ -99,7 +99,7 @@ file = ModernTreasury::FilePart.new(File.read("my/file.txt"), filename: "my/file
|
|
|
99
99
|
document = modern_treasury.documents.create(
|
|
100
100
|
file: file,
|
|
101
101
|
documentable_id: "24c6b7a3-02...",
|
|
102
|
-
documentable_type: "
|
|
102
|
+
documentable_type: "connection"
|
|
103
103
|
)
|
|
104
104
|
|
|
105
105
|
puts(document.id)
|
|
@@ -207,6 +207,19 @@ module ModernTreasury
|
|
|
207
207
|
raise ArgumentError.new("organization_id is required, and can be set via environ: \"MODERN_TREASURY_ORGANIZATION_ID\"")
|
|
208
208
|
end
|
|
209
209
|
|
|
210
|
+
headers = {}
|
|
211
|
+
custom_headers_env = ENV["MODERN_TREASURY_CUSTOM_HEADERS"]
|
|
212
|
+
unless custom_headers_env.nil?
|
|
213
|
+
parsed = {}
|
|
214
|
+
custom_headers_env.split("\n").each do |line|
|
|
215
|
+
colon = line.index(":")
|
|
216
|
+
unless colon.nil?
|
|
217
|
+
parsed[line[0...colon].strip] = line[(colon + 1)..].strip
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
headers = parsed.merge(headers)
|
|
221
|
+
end
|
|
222
|
+
|
|
210
223
|
@api_key = api_key.to_s
|
|
211
224
|
@organization_id = organization_id.to_s
|
|
212
225
|
@webhook_key = webhook_key&.to_s
|
|
@@ -217,6 +230,7 @@ module ModernTreasury
|
|
|
217
230
|
max_retries: max_retries,
|
|
218
231
|
initial_retry_delay: initial_retry_delay,
|
|
219
232
|
max_retry_delay: max_retry_delay,
|
|
233
|
+
headers: headers,
|
|
220
234
|
idempotency_header: idempotency_header
|
|
221
235
|
)
|
|
222
236
|
|
|
@@ -306,6 +306,11 @@ module ModernTreasury
|
|
|
306
306
|
ModernTreasury::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
# Generated methods always pass `req[:body]` for operations that define a
|
|
310
|
+
# request body, so only elide the content-type header when the operation
|
|
311
|
+
# has no body at all, not when an optional body param was omitted.
|
|
312
|
+
headers.delete("content-type") if body.nil? && !req.key?(:body)
|
|
313
|
+
|
|
309
314
|
url = ModernTreasury::Internal::Util.join_parsed_uri(
|
|
310
315
|
@base_url_components,
|
|
311
316
|
{**req, path: path, query: query}
|
|
@@ -37,7 +37,8 @@ module ModernTreasury
|
|
|
37
37
|
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
38
38
|
|
|
39
39
|
# @!attribute locality
|
|
40
|
-
# Locality or City.
|
|
40
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
41
|
+
# Francisco).
|
|
41
42
|
#
|
|
42
43
|
# @return [String, nil]
|
|
43
44
|
required :locality, String, nil?: true
|
|
@@ -54,7 +55,8 @@ module ModernTreasury
|
|
|
54
55
|
required :postal_code, String, nil?: true
|
|
55
56
|
|
|
56
57
|
# @!attribute region
|
|
57
|
-
# Region or State.
|
|
58
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
59
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
58
60
|
#
|
|
59
61
|
# @return [String, nil]
|
|
60
62
|
required :region, String, nil?: true
|
|
@@ -80,13 +82,13 @@ module ModernTreasury
|
|
|
80
82
|
#
|
|
81
83
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
82
84
|
#
|
|
83
|
-
# @param locality [String, nil] Locality or City.
|
|
85
|
+
# @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
|
|
84
86
|
#
|
|
85
87
|
# @param object [String]
|
|
86
88
|
#
|
|
87
89
|
# @param postal_code [String, nil] The postal code of the address.
|
|
88
90
|
#
|
|
89
|
-
# @param region [String, nil] Region or State.
|
|
91
|
+
# @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
|
|
90
92
|
#
|
|
91
93
|
# @param updated_at [Time]
|
|
92
94
|
end
|
|
@@ -20,7 +20,8 @@ module ModernTreasury
|
|
|
20
20
|
optional :line2, String, nil?: true
|
|
21
21
|
|
|
22
22
|
# @!attribute locality
|
|
23
|
-
# Locality or City.
|
|
23
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
24
|
+
# Francisco).
|
|
24
25
|
#
|
|
25
26
|
# @return [String, nil]
|
|
26
27
|
optional :locality, String, nil?: true
|
|
@@ -32,23 +33,27 @@ module ModernTreasury
|
|
|
32
33
|
optional :postal_code, String, nil?: true
|
|
33
34
|
|
|
34
35
|
# @!attribute region
|
|
35
|
-
# Region or State.
|
|
36
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
37
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
36
38
|
#
|
|
37
39
|
# @return [String, nil]
|
|
38
40
|
optional :region, String, nil?: true
|
|
39
41
|
|
|
40
42
|
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
|
43
|
+
# Some parameter documentations has been truncated, see
|
|
44
|
+
# {ModernTreasury::Models::AddressRequest} for more details.
|
|
45
|
+
#
|
|
41
46
|
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
42
47
|
#
|
|
43
48
|
# @param line1 [String, nil]
|
|
44
49
|
#
|
|
45
50
|
# @param line2 [String, nil]
|
|
46
51
|
#
|
|
47
|
-
# @param locality [String, nil] Locality or City.
|
|
52
|
+
# @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
|
|
48
53
|
#
|
|
49
54
|
# @param postal_code [String, nil] The postal code of the address.
|
|
50
55
|
#
|
|
51
|
-
# @param region [String, nil] Region or State.
|
|
56
|
+
# @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
|
|
52
57
|
end
|
|
53
58
|
end
|
|
54
59
|
end
|