modern_treasury 0.10.0 → 0.12.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 +40 -0
- data/README.md +10 -1
- data/lib/modern_treasury/client.rb +12 -0
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/hold_create_params.rb +74 -0
- data/lib/modern_treasury/models/hold_create_response.rb +143 -0
- data/lib/modern_treasury/models/hold_list_params.rb +89 -0
- data/lib/modern_treasury/models/hold_list_response.rb +143 -0
- data/lib/modern_treasury/models/hold_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/hold_retrieve_response.rb +143 -0
- data/lib/modern_treasury/models/hold_update_params.rb +40 -0
- data/lib/modern_treasury/models/hold_update_response.rb +143 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_request_closure_params.rb +14 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/journal_entry_list_params.rb +38 -0
- data/lib/modern_treasury/models/journal_entry_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_list_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_update_params.rb +26 -0
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +5 -1
- data/lib/modern_treasury/models/payment_order_subtype.rb +0 -1
- data/lib/modern_treasury/models/payment_reference.rb +5 -1
- data/lib/modern_treasury/models/return_object.rb +6 -1
- data/lib/modern_treasury/models/transaction.rb +2 -1
- data/lib/modern_treasury/models.rb +24 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/holds.rb +126 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +23 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/journal_entries.rb +60 -0
- data/lib/modern_treasury/resources/journal_reports.rb +78 -0
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +20 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/client.rbi +9 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/hold_create_params.rbi +125 -0
- data/rbi/modern_treasury/models/hold_create_response.rbi +232 -0
- data/rbi/modern_treasury/models/hold_list_params.rbi +150 -0
- data/rbi/modern_treasury/models/hold_list_response.rbi +225 -0
- data/rbi/modern_treasury/models/hold_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/hold_retrieve_response.rbi +234 -0
- data/rbi/modern_treasury/models/hold_update_params.rbi +79 -0
- data/rbi/modern_treasury/models/hold_update_response.rbi +232 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +32 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/journal_entry_list_params.rbi +68 -0
- data/rbi/modern_treasury/models/journal_entry_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_list_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_update_params.rbi +52 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -2
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +0 -1
- data/rbi/modern_treasury/models/payment_reference.rbi +22 -2
- data/rbi/modern_treasury/models/return_object.rbi +24 -2
- data/rbi/modern_treasury/models/transaction.rbi +7 -2
- data/rbi/modern_treasury/models.rbi +28 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/holds.rbi +108 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +17 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/journal_entries.rbi +46 -0
- data/rbi/modern_treasury/resources/journal_reports.rbi +51 -0
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/client.rbs +6 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/hold_create_params.rbs +66 -0
- data/sig/modern_treasury/models/hold_create_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_list_params.rbs +76 -0
- data/sig/modern_treasury/models/hold_list_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/hold_retrieve_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_update_params.rbs +41 -0
- data/sig/modern_treasury/models/hold_update_response.rbs +108 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +15 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/journal_entry_list_params.rbs +36 -0
- data/sig/modern_treasury/models/journal_entry_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_list_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_update_params.rbs +32 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +10 -2
- data/sig/modern_treasury/models/payment_order_subtype.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference.rbs +10 -2
- data/sig/modern_treasury/models/return_object.rbs +12 -2
- data/sig/modern_treasury/models/transaction.rbs +4 -2
- data/sig/modern_treasury/models.rbs +24 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/holds.rbs +38 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/journal_entries.rbs +19 -0
- data/sig/modern_treasury/resources/journal_reports.rbs +21 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +59 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84f0253ff65fc177215a8600e4d5fac2573bcaf22cd05acaa32fd7f2e9c1da1b
|
|
4
|
+
data.tar.gz: c11e505876b4ac5e650f62326b6fe390ddc7bc2110441abb57ea8b249e1ba887
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 924eaafe7053f6da823c3f36adde93ae64c70c21c402895d89f611be909daafeb55b47a54fb81963ca5d51cc550a84f19f01a00398ba28fac3d42e0357d28b47
|
|
7
|
+
data.tar.gz: 8bf47bc1849668bc6b6fa7e8db348b8393dfe8d3e6d8f8abf91f599c532efa09e7410bf4233df903662844d5e7fb984aa333efef117a67ac60ac0c21d185f575
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 (2026-01-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.11.0...v0.12.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.11.0...v0.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([5d8f688](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5d8f688ebb09543210e85c8b64eeb1e3ecb890e1))
|
|
10
|
+
* **api:** api update ([b681160](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b68116084fb76c8c40312436222f862ee9df7fb2))
|
|
11
|
+
* **api:** api update ([a7eefae](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a7eefae4495c1a097d1a2a839bf7841d0313e0b8))
|
|
12
|
+
* **api:** api update ([d217b47](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d217b47b21f131cce9f90bd6ab204e7ccf10ac8f))
|
|
13
|
+
* **api:** manual updates ([7a97002](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7a970020f9f30692d2716ddf928c1ff8a2d342f5))
|
|
14
|
+
* **api:** manual updates ([d5d5d13](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d5d5d1327c2a336c7f270065918411dc4626bde1))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* calling `break` out of streams should be instantaneous ([8777505](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/8777505f08cb59f5a79fdef15d439d1d8172ee76))
|
|
20
|
+
* issue where json.parse errors when receiving HTTP 204 with nobody ([a060164](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a060164cc48b6ea185caaf6a113b3bc4c7bd0dae))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
|
|
25
|
+
* explicitly require "base64" gem ([85e8321](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/85e83214e464a90c4a68c52a0e6904021551a639))
|
|
26
|
+
* **internal:** codegen related update ([2e9760f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/2e9760f7c08e1b59a82e6a53ccff57cbd863891b))
|
|
27
|
+
* **internal:** use different example values for some enums ([7731b2d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7731b2d093c26878a8c34713c7090332a2e0a51b))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Documentation
|
|
31
|
+
|
|
32
|
+
* prominently feature MCP server setup in root SDK readmes ([e5f57ee](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/e5f57ee9c0905e066caf59fecf1acf3cddca4b4c))
|
|
33
|
+
|
|
34
|
+
## 0.11.0 (2025-11-06)
|
|
35
|
+
|
|
36
|
+
Full Changelog: [v0.10.0...v0.11.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.10.0...v0.11.0)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **api:** api update ([f4da9a6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f4da9a6d0b24404df268a58b2a5e26053c7b82fa))
|
|
41
|
+
* **api:** manual updates ([ae6a6be](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/ae6a6bee005c5c7a84d23fefdd8659d238ca6d70))
|
|
42
|
+
|
|
3
43
|
## 0.10.0 (2025-11-05)
|
|
4
44
|
|
|
5
45
|
Full Changelog: [v0.9.0...v0.10.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.9.0...v0.10.0)
|
data/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
The Modern Treasury Ruby library provides convenient access to the Modern Treasury REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/Modern-Treasury/modern-treasury-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
|
|
4
4
|
|
|
5
|
+
## MCP Server
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
[](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1vZGVybi10cmVhc3VyeS1tY3AiXX0)
|
|
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%7D)
|
|
11
|
+
|
|
12
|
+
> Note: You may need to set environment variables in your MCP client.
|
|
13
|
+
|
|
5
14
|
## Documentation
|
|
6
15
|
|
|
7
16
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/modern_treasury).
|
|
@@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
15
24
|
<!-- x-release-please-start-version -->
|
|
16
25
|
|
|
17
26
|
```ruby
|
|
18
|
-
gem "modern_treasury", "~> 0.
|
|
27
|
+
gem "modern_treasury", "~> 0.12.0"
|
|
19
28
|
```
|
|
20
29
|
|
|
21
30
|
<!-- x-release-please-end -->
|
|
@@ -126,6 +126,15 @@ module ModernTreasury
|
|
|
126
126
|
# @return [ModernTreasury::Resources::PaymentActions]
|
|
127
127
|
attr_reader :payment_actions
|
|
128
128
|
|
|
129
|
+
# @return [ModernTreasury::Resources::JournalEntries]
|
|
130
|
+
attr_reader :journal_entries
|
|
131
|
+
|
|
132
|
+
# @return [ModernTreasury::Resources::JournalReports]
|
|
133
|
+
attr_reader :journal_reports
|
|
134
|
+
|
|
135
|
+
# @return [ModernTreasury::Resources::Holds]
|
|
136
|
+
attr_reader :holds
|
|
137
|
+
|
|
129
138
|
# A test endpoint often used to confirm credentials and headers are being passed
|
|
130
139
|
# in correctly.
|
|
131
140
|
#
|
|
@@ -240,6 +249,9 @@ module ModernTreasury
|
|
|
240
249
|
@legal_entities = ModernTreasury::Resources::LegalEntities.new(client: self)
|
|
241
250
|
@legal_entity_associations = ModernTreasury::Resources::LegalEntityAssociations.new(client: self)
|
|
242
251
|
@payment_actions = ModernTreasury::Resources::PaymentActions.new(client: self)
|
|
252
|
+
@journal_entries = ModernTreasury::Resources::JournalEntries.new(client: self)
|
|
253
|
+
@journal_reports = ModernTreasury::Resources::JournalReports.new(client: self)
|
|
254
|
+
@holds = ModernTreasury::Resources::Holds.new(client: self)
|
|
243
255
|
end
|
|
244
256
|
end
|
|
245
257
|
end
|
|
@@ -153,17 +153,19 @@ module ModernTreasury
|
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
self.class.calibrate_socket_timeout(conn, deadline)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
156
|
+
::Kernel.catch(:jump) do
|
|
157
|
+
conn.request(req) do |rsp|
|
|
158
|
+
y << [req, rsp]
|
|
159
|
+
::Kernel.throw(:jump) if finished
|
|
160
|
+
|
|
161
|
+
rsp.read_body do |bytes|
|
|
162
|
+
y << bytes.force_encoding(Encoding::BINARY)
|
|
163
|
+
::Kernel.throw(:jump) if finished
|
|
164
|
+
|
|
165
|
+
self.class.calibrate_socket_timeout(conn, deadline)
|
|
166
|
+
end
|
|
167
|
+
eof = true
|
|
165
168
|
end
|
|
166
|
-
eof = true
|
|
167
169
|
end
|
|
168
170
|
end
|
|
169
171
|
ensure
|
|
@@ -657,7 +657,8 @@ module ModernTreasury
|
|
|
657
657
|
def decode_content(headers, stream:, suppress_error: false)
|
|
658
658
|
case (content_type = headers["content-type"])
|
|
659
659
|
in ModernTreasury::Internal::Util::JSON_CONTENT
|
|
660
|
-
json = stream.to_a.join
|
|
660
|
+
return nil if (json = stream.to_a.join).empty?
|
|
661
|
+
|
|
661
662
|
begin
|
|
662
663
|
JSON.parse(json, symbolize_names: true)
|
|
663
664
|
rescue JSON::ParserError => e
|
|
@@ -667,7 +668,11 @@ module ModernTreasury
|
|
|
667
668
|
in ModernTreasury::Internal::Util::JSONL_CONTENT
|
|
668
669
|
lines = decode_lines(stream)
|
|
669
670
|
chain_fused(lines) do |y|
|
|
670
|
-
lines.each
|
|
671
|
+
lines.each do
|
|
672
|
+
next if _1.empty?
|
|
673
|
+
|
|
674
|
+
y << JSON.parse(_1, symbolize_names: true)
|
|
675
|
+
end
|
|
671
676
|
end
|
|
672
677
|
in %r{^text/event-stream}
|
|
673
678
|
lines = decode_lines(stream)
|
|
@@ -924,6 +924,42 @@ module ModernTreasury
|
|
|
924
924
|
# @return [Integer, nil]
|
|
925
925
|
optional :amount_lower_bound, Integer, nil?: true
|
|
926
926
|
|
|
927
|
+
# @!attribute amount_reconciled
|
|
928
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
929
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
930
|
+
#
|
|
931
|
+
# @return [Integer, nil]
|
|
932
|
+
optional :amount_reconciled, Integer, nil?: true
|
|
933
|
+
|
|
934
|
+
# @!attribute amount_reconciled_direction
|
|
935
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
936
|
+
# amount.
|
|
937
|
+
#
|
|
938
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection, nil]
|
|
939
|
+
optional :amount_reconciled_direction,
|
|
940
|
+
enum: -> {
|
|
941
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection
|
|
942
|
+
},
|
|
943
|
+
nil?: true
|
|
944
|
+
|
|
945
|
+
# @!attribute amount_unreconciled
|
|
946
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
947
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
948
|
+
#
|
|
949
|
+
# @return [Integer, nil]
|
|
950
|
+
optional :amount_unreconciled, Integer, nil?: true
|
|
951
|
+
|
|
952
|
+
# @!attribute amount_unreconciled_direction
|
|
953
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
954
|
+
# debit amount.
|
|
955
|
+
#
|
|
956
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection, nil]
|
|
957
|
+
optional :amount_unreconciled_direction,
|
|
958
|
+
enum: -> {
|
|
959
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection
|
|
960
|
+
},
|
|
961
|
+
nil?: true
|
|
962
|
+
|
|
927
963
|
# @!attribute amount_upper_bound
|
|
928
964
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
929
965
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
@@ -1059,13 +1095,21 @@ module ModernTreasury
|
|
|
1059
1095
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
|
|
1060
1096
|
optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
|
|
1061
1097
|
|
|
1062
|
-
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil)
|
|
1098
|
+
# @!method initialize(amount_lower_bound: nil, amount_reconciled: nil, amount_reconciled_direction: nil, amount_unreconciled: nil, amount_unreconciled_direction: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil)
|
|
1063
1099
|
# Some parameter documentations has been truncated, see
|
|
1064
1100
|
# {ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest}
|
|
1065
1101
|
# for more details.
|
|
1066
1102
|
#
|
|
1067
1103
|
# @param amount_lower_bound [Integer, nil] The lowest amount this expected payment may be equal to. Value in specified curr
|
|
1068
1104
|
#
|
|
1105
|
+
# @param amount_reconciled [Integer, nil] The amount reconciled for this expected payment. Value in specified currency's s
|
|
1106
|
+
#
|
|
1107
|
+
# @param amount_reconciled_direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection, nil] One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
1108
|
+
#
|
|
1109
|
+
# @param amount_unreconciled [Integer, nil] The amount that remains unreconciled for this expected payment. Value in specifi
|
|
1110
|
+
#
|
|
1111
|
+
# @param amount_unreconciled_direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection, nil] One of credit or debit. Indicates whether amount_unreconciled is a credit or deb
|
|
1112
|
+
#
|
|
1069
1113
|
# @param amount_upper_bound [Integer, nil] The highest amount this expected payment may be equal to. Value in specified cur
|
|
1070
1114
|
#
|
|
1071
1115
|
# @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
|
|
@@ -1104,6 +1148,34 @@ module ModernTreasury
|
|
|
1104
1148
|
#
|
|
1105
1149
|
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
|
1106
1150
|
|
|
1151
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
1152
|
+
# amount.
|
|
1153
|
+
#
|
|
1154
|
+
# @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#amount_reconciled_direction
|
|
1155
|
+
module AmountReconciledDirection
|
|
1156
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
1157
|
+
|
|
1158
|
+
CREDIT = :credit
|
|
1159
|
+
DEBIT = :debit
|
|
1160
|
+
|
|
1161
|
+
# @!method self.values
|
|
1162
|
+
# @return [Array<Symbol>]
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
1166
|
+
# debit amount.
|
|
1167
|
+
#
|
|
1168
|
+
# @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#amount_unreconciled_direction
|
|
1169
|
+
module AmountUnreconciledDirection
|
|
1170
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
1171
|
+
|
|
1172
|
+
CREDIT = :credit
|
|
1173
|
+
DEBIT = :debit
|
|
1174
|
+
|
|
1175
|
+
# @!method self.values
|
|
1176
|
+
# @return [Array<Symbol>]
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1107
1179
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
1108
1180
|
# being charged, use debit.
|
|
1109
1181
|
#
|
|
@@ -2185,6 +2257,42 @@ module ModernTreasury
|
|
|
2185
2257
|
# @return [Integer, nil]
|
|
2186
2258
|
optional :amount_lower_bound, Integer, nil?: true
|
|
2187
2259
|
|
|
2260
|
+
# @!attribute amount_reconciled
|
|
2261
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
2262
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
2263
|
+
#
|
|
2264
|
+
# @return [Integer, nil]
|
|
2265
|
+
optional :amount_reconciled, Integer, nil?: true
|
|
2266
|
+
|
|
2267
|
+
# @!attribute amount_reconciled_direction
|
|
2268
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2269
|
+
# amount.
|
|
2270
|
+
#
|
|
2271
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection, nil]
|
|
2272
|
+
optional :amount_reconciled_direction,
|
|
2273
|
+
enum: -> {
|
|
2274
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection
|
|
2275
|
+
},
|
|
2276
|
+
nil?: true
|
|
2277
|
+
|
|
2278
|
+
# @!attribute amount_unreconciled
|
|
2279
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
2280
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2281
|
+
#
|
|
2282
|
+
# @return [Integer, nil]
|
|
2283
|
+
optional :amount_unreconciled, Integer, nil?: true
|
|
2284
|
+
|
|
2285
|
+
# @!attribute amount_unreconciled_direction
|
|
2286
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
2287
|
+
# debit amount.
|
|
2288
|
+
#
|
|
2289
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection, nil]
|
|
2290
|
+
optional :amount_unreconciled_direction,
|
|
2291
|
+
enum: -> {
|
|
2292
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection
|
|
2293
|
+
},
|
|
2294
|
+
nil?: true
|
|
2295
|
+
|
|
2188
2296
|
# @!attribute amount_upper_bound
|
|
2189
2297
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
2190
2298
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
@@ -2307,7 +2415,7 @@ module ModernTreasury
|
|
|
2307
2415
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
|
|
2308
2416
|
optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
|
|
2309
2417
|
|
|
2310
|
-
# @!method initialize(id: nil, amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil)
|
|
2418
|
+
# @!method initialize(id: nil, amount_lower_bound: nil, amount_reconciled: nil, amount_reconciled_direction: nil, amount_unreconciled: nil, amount_unreconciled_direction: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil)
|
|
2311
2419
|
# Some parameter documentations has been truncated, see
|
|
2312
2420
|
# {ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID}
|
|
2313
2421
|
# for more details.
|
|
@@ -2316,6 +2424,14 @@ module ModernTreasury
|
|
|
2316
2424
|
#
|
|
2317
2425
|
# @param amount_lower_bound [Integer, nil] The lowest amount this expected payment may be equal to. Value in specified curr
|
|
2318
2426
|
#
|
|
2427
|
+
# @param amount_reconciled [Integer, nil] The amount reconciled for this expected payment. Value in specified currency's s
|
|
2428
|
+
#
|
|
2429
|
+
# @param amount_reconciled_direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection, nil] One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2430
|
+
#
|
|
2431
|
+
# @param amount_unreconciled [Integer, nil] The amount that remains unreconciled for this expected payment. Value in specifi
|
|
2432
|
+
#
|
|
2433
|
+
# @param amount_unreconciled_direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection, nil] One of credit or debit. Indicates whether amount_unreconciled is a credit or deb
|
|
2434
|
+
#
|
|
2319
2435
|
# @param amount_upper_bound [Integer, nil] The highest amount this expected payment may be equal to. Value in specified cur
|
|
2320
2436
|
#
|
|
2321
2437
|
# @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
|
|
@@ -2350,6 +2466,34 @@ module ModernTreasury
|
|
|
2350
2466
|
#
|
|
2351
2467
|
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
|
2352
2468
|
|
|
2469
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2470
|
+
# amount.
|
|
2471
|
+
#
|
|
2472
|
+
# @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#amount_reconciled_direction
|
|
2473
|
+
module AmountReconciledDirection
|
|
2474
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
2475
|
+
|
|
2476
|
+
CREDIT = :credit
|
|
2477
|
+
DEBIT = :debit
|
|
2478
|
+
|
|
2479
|
+
# @!method self.values
|
|
2480
|
+
# @return [Array<Symbol>]
|
|
2481
|
+
end
|
|
2482
|
+
|
|
2483
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
2484
|
+
# debit amount.
|
|
2485
|
+
#
|
|
2486
|
+
# @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#amount_unreconciled_direction
|
|
2487
|
+
module AmountUnreconciledDirection
|
|
2488
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
2489
|
+
|
|
2490
|
+
CREDIT = :credit
|
|
2491
|
+
DEBIT = :debit
|
|
2492
|
+
|
|
2493
|
+
# @!method self.values
|
|
2494
|
+
# @return [Array<Symbol>]
|
|
2495
|
+
end
|
|
2496
|
+
|
|
2353
2497
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
2354
2498
|
# being charged, use debit.
|
|
2355
2499
|
#
|