modern_treasury 0.1.0.pre.alpha.22 → 0.1.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 +38 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
- data/lib/modern_treasury/internal/type/base_model.rb +4 -4
- data/lib/modern_treasury/models/accounting.rb +30 -0
- data/lib/modern_treasury/models/address.rb +94 -0
- data/lib/modern_treasury/models/address_request.rb +54 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
- data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
- data/lib/modern_treasury/models/contact_detail.rb +81 -0
- data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
- data/lib/modern_treasury/models/counterparty.rb +24 -177
- data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
- data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
- data/lib/modern_treasury/models/document.rb +4 -6
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +4 -6
- data/lib/modern_treasury/models/expected_payment.rb +9 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
- data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
- data/lib/modern_treasury/models/external_account.rb +15 -177
- data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
- data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
- data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
- data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
- data/lib/modern_treasury/models/identification_create_request.rb +86 -0
- data/lib/modern_treasury/models/internal_account.rb +3 -95
- data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
- data/lib/modern_treasury/models/invoice.rb +3 -81
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
- data/lib/modern_treasury/models/ledger_account.rb +9 -141
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
- data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_balance.rb +45 -0
- data/lib/modern_treasury/models/ledger_balances.rb +38 -0
- data/lib/modern_treasury/models/ledger_entry.rb +3 -183
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
- data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
- data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
- data/lib/modern_treasury/models/line_item.rb +3 -29
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order.rb +13 -102
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
- data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
- data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +7 -3
- data/lib/modern_treasury/models/routing_detail.rb +3 -93
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +5 -73
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
- data/lib/modern_treasury/models.rb +31 -6
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +20 -14
- data/lib/modern_treasury/resources/expected_payments.rb +10 -4
- data/lib/modern_treasury/resources/external_accounts.rb +23 -17
- data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
- data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/returns.rb +1 -1
- data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +16 -6
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/models/accounting.rbi +48 -0
- data/rbi/modern_treasury/models/address.rbi +107 -0
- data/rbi/modern_treasury/models/address_request.rbi +76 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
- data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
- data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
- data/rbi/modern_treasury/models/counterparty.rbi +24 -264
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
- data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/document.rbi +6 -16
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
- data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
- data/rbi/modern_treasury/models/external_account.rbi +15 -244
- data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
- data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
- data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
- data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
- data/rbi/modern_treasury/models/internal_account.rbi +4 -115
- data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
- data/rbi/modern_treasury/models/invoice.rbi +3 -128
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
- data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
- data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
- data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
- data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
- data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
- data/rbi/modern_treasury/models/line_item.rbi +4 -52
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order.rbi +43 -159
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +35 -12
- data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +14 -103
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
- data/rbi/modern_treasury/models.rbi +36 -6
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
- data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
- data/rbi/modern_treasury/resources/documents.rbi +2 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
- data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
- data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
- data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
- data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
- data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
- data/rbi/modern_treasury/resources/returns.rbi +2 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/models/accounting.rbs +15 -0
- data/sig/modern_treasury/models/address.rbs +70 -0
- data/sig/modern_treasury/models/address_request.rbs +45 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/contact_detail.rbs +67 -0
- data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
- data/sig/modern_treasury/models/counterparty.rbs +20 -141
- data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
- data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
- data/sig/modern_treasury/models/document.rbs +0 -4
- data/sig/modern_treasury/models/document_create_params.rbs +0 -4
- data/sig/modern_treasury/models/document_list_params.rbs +0 -4
- data/sig/modern_treasury/models/expected_payment.rbs +5 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account.rbs +13 -139
- data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
- data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
- data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
- data/sig/modern_treasury/models/internal_account.rbs +4 -71
- data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
- data/sig/modern_treasury/models/invoice.rbs +4 -68
- data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
- data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
- data/sig/modern_treasury/models/ledger_account.rbs +12 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
- data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
- data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
- data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
- data/sig/modern_treasury/models/line_item.rbs +4 -16
- data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
- data/sig/modern_treasury/models/payment_order.rbs +22 -69
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
- data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +15 -10
- data/sig/modern_treasury/models/routing_detail.rbs +4 -71
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +8 -53
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
- data/sig/modern_treasury/models.rbs +30 -6
- data/sig/modern_treasury/resources/counterparties.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
- data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
- data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -22
- data/lib/modern_treasury/models/paper_item.rb +0 -178
- data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- data/rbi/modern_treasury/models/paper_item.rbi +0 -204
- data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- data/sig/modern_treasury/models/paper_item.rbs +0 -122
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 581026f5fdefb4ecafbb971dc320b00c833ee17b7e6467437e46e964ec67134d
|
|
4
|
+
data.tar.gz: 4eab42899864540e6ca98a5c5687c3c330da0d45e34bfe463f072aa6035e972e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb4beec913eefc5ee728d8a5cddbc0edd53cc35d928cd4b386cf65a0d3571eff2341d8b6087503c148d45ef3d6ed6b472ecd4fdd8dca3ae04730621496940139
|
|
7
|
+
data.tar.gz: 61dc97956b212b16371044a170acde7ec5433e83fff2d2952ca8a339e27952bce8685853059dfbffc1b64ce7e00a20bf4f25ada55e40efc12f45e4bdc2c5e7f8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 (2025-08-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.22...v0.1.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.1.0-alpha.22...v0.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([bc8de9c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/bc8de9c156d8b75282e5ba888d497deff4b25948))
|
|
10
|
+
* **api:** api update ([95b4873](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/95b48736c2249d8ccc4fe706b3fa526b2f468dc2))
|
|
11
|
+
* **api:** api update ([a62983f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a62983f37beadf31634a2a9a9b05837b6b095f63))
|
|
12
|
+
* **api:** api update ([b70a332](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b70a332777ce561b2fe2f93954aae68cb17b5cf2))
|
|
13
|
+
* **api:** api update ([21fda11](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/21fda11f539d2ea327078312237e2a444b958bfe))
|
|
14
|
+
* **api:** api update ([7d169fa](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7d169fa6917ce333c76f12628fdd7756aed457ce))
|
|
15
|
+
* **api:** api update ([52d87f6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/52d87f65e23cc16e10e52fde4ccc81e16a5555ed))
|
|
16
|
+
* **api:** api update ([d466528](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d46652814f67800f534a702724f406845fd1d416))
|
|
17
|
+
* **api:** api update ([e909ebb](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/e909ebb243d92bc2bd4d23253286e2bdde19eac7))
|
|
18
|
+
* **api:** api update ([f258c75](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f258c75ae2ae55f46b3318a6d668b670b68eabd2))
|
|
19
|
+
* **api:** api update ([0e4f36d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0e4f36dfe47b52ae6eb0738028f4461ef7549051))
|
|
20
|
+
* **api:** manual updates ([12a73dd](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/12a73dd911d167d15d43eb33804f4cda8f3cdd97))
|
|
21
|
+
* **api:** manual updates ([fd4e901](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/fd4e9014ddc3073041f9e5d9b57414f38100f741))
|
|
22
|
+
* **api:** manual updates ([8f250b4](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/8f250b4874e7be94b4823d695bb2a1a93df4afed))
|
|
23
|
+
* **api:** manual updates ([d172b95](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d172b955661a9a12bc3b59479d8a24a05961c992))
|
|
24
|
+
* **api:** manual updates ([27b506d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/27b506d96912a07b4753d1686556bf45cc96f269))
|
|
25
|
+
* **api:** manual updates ([b28aa54](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b28aa54fb130b017a9047236cbfdf4350cb7c72b))
|
|
26
|
+
* **api:** manual updates ([7cfaf73](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7cfaf730ca33e1405eda1a7472f2e0fa76c7e126))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **api:** make Legal Entity change backwards compatibile ([d4be112](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d4be112f8ca0f26e72f47cf12738a336b2d591c2))
|
|
32
|
+
* **client:** unique model names ([b35f861](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b35f86118ac5ca888f11ac7a03c3fc46eeb96540))
|
|
33
|
+
* **internal:** ensure sorbet test always runs serially ([245ad18](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/245ad18fda1d808d934cd93019f1463c9e22132d))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Chores
|
|
37
|
+
|
|
38
|
+
* **internal:** increase visibility of internal helper method ([5ab5275](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5ab5275f39dd4309e6fa034071004c2370ea4d4d))
|
|
39
|
+
* update contribute.md ([503a762](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/503a762153cde391cc8b30c87255517e313e7524))
|
|
40
|
+
|
|
3
41
|
## 0.1.0-alpha.22 (2025-07-07)
|
|
4
42
|
|
|
5
43
|
Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)
|
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
15
15
|
<!-- x-release-please-start-version -->
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
gem "modern_treasury", "~> 0.1.0
|
|
18
|
+
gem "modern_treasury", "~> 0.1.0"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
<!-- x-release-please-end -->
|
|
@@ -60,9 +60,6 @@ module ModernTreasury
|
|
|
60
60
|
# @return [ModernTreasury::Resources::Ledgers]
|
|
61
61
|
attr_reader :ledgers
|
|
62
62
|
|
|
63
|
-
# @return [ModernTreasury::Resources::LedgerableEvents]
|
|
64
|
-
attr_reader :ledgerable_events
|
|
65
|
-
|
|
66
63
|
# @return [ModernTreasury::Resources::LedgerAccountCategories]
|
|
67
64
|
attr_reader :ledger_account_categories
|
|
68
65
|
|
|
@@ -78,9 +75,6 @@ module ModernTreasury
|
|
|
78
75
|
# @return [ModernTreasury::Resources::LedgerEntries]
|
|
79
76
|
attr_reader :ledger_entries
|
|
80
77
|
|
|
81
|
-
# @return [ModernTreasury::Resources::LedgerEventHandlers]
|
|
82
|
-
attr_reader :ledger_event_handlers
|
|
83
|
-
|
|
84
78
|
# @return [ModernTreasury::Resources::LedgerTransactions]
|
|
85
79
|
attr_reader :ledger_transactions
|
|
86
80
|
|
|
@@ -105,9 +99,6 @@ module ModernTreasury
|
|
|
105
99
|
# @return [ModernTreasury::Resources::Validations]
|
|
106
100
|
attr_reader :validations
|
|
107
101
|
|
|
108
|
-
# @return [ModernTreasury::Resources::PaperItems]
|
|
109
|
-
attr_reader :paper_items
|
|
110
|
-
|
|
111
102
|
# @return [ModernTreasury::Resources::VirtualAccounts]
|
|
112
103
|
attr_reader :virtual_accounts
|
|
113
104
|
|
|
@@ -226,14 +217,12 @@ module ModernTreasury
|
|
|
226
217
|
@routing_details = ModernTreasury::Resources::RoutingDetails.new(client: self)
|
|
227
218
|
@internal_accounts = ModernTreasury::Resources::InternalAccounts.new(client: self)
|
|
228
219
|
@ledgers = ModernTreasury::Resources::Ledgers.new(client: self)
|
|
229
|
-
@ledgerable_events = ModernTreasury::Resources::LedgerableEvents.new(client: self)
|
|
230
220
|
@ledger_account_categories = ModernTreasury::Resources::LedgerAccountCategories.new(client: self)
|
|
231
221
|
@ledger_accounts = ModernTreasury::Resources::LedgerAccounts.new(client: self)
|
|
232
222
|
@ledger_account_balance_monitors =
|
|
233
223
|
ModernTreasury::Resources::LedgerAccountBalanceMonitors.new(client: self)
|
|
234
224
|
@ledger_account_statements = ModernTreasury::Resources::LedgerAccountStatements.new(client: self)
|
|
235
225
|
@ledger_entries = ModernTreasury::Resources::LedgerEntries.new(client: self)
|
|
236
|
-
@ledger_event_handlers = ModernTreasury::Resources::LedgerEventHandlers.new(client: self)
|
|
237
226
|
@ledger_transactions = ModernTreasury::Resources::LedgerTransactions.new(client: self)
|
|
238
227
|
@line_items = ModernTreasury::Resources::LineItems.new(client: self)
|
|
239
228
|
@payment_flows = ModernTreasury::Resources::PaymentFlows.new(client: self)
|
|
@@ -242,7 +231,6 @@ module ModernTreasury
|
|
|
242
231
|
@returns = ModernTreasury::Resources::Returns.new(client: self)
|
|
243
232
|
@transactions = ModernTreasury::Resources::Transactions.new(client: self)
|
|
244
233
|
@validations = ModernTreasury::Resources::Validations.new(client: self)
|
|
245
|
-
@paper_items = ModernTreasury::Resources::PaperItems.new(client: self)
|
|
246
234
|
@virtual_accounts = ModernTreasury::Resources::VirtualAccounts.new(client: self)
|
|
247
235
|
@bulk_requests = ModernTreasury::Resources::BulkRequests.new(client: self)
|
|
248
236
|
@bulk_results = ModernTreasury::Resources::BulkResults.new(client: self)
|
|
@@ -365,7 +365,7 @@ module ModernTreasury
|
|
|
365
365
|
#
|
|
366
366
|
# @raise [ModernTreasury::Errors::APIError]
|
|
367
367
|
# @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
|
|
368
|
-
|
|
368
|
+
def send_request(request, redirect_count:, retry_count:, send_retry_header:)
|
|
369
369
|
url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout)
|
|
370
370
|
input = {
|
|
371
371
|
**request.except(:timeout),
|
|
@@ -446,10 +446,10 @@ module ModernTreasury
|
|
|
446
446
|
# @return [Hash{Symbol=>Object}]
|
|
447
447
|
#
|
|
448
448
|
# @example
|
|
449
|
-
# # `
|
|
450
|
-
#
|
|
451
|
-
#
|
|
452
|
-
#
|
|
449
|
+
# # `accounting` is a `ModernTreasury::Accounting`
|
|
450
|
+
# accounting => {
|
|
451
|
+
# account_id: account_id,
|
|
452
|
+
# class_id: class_id
|
|
453
453
|
# }
|
|
454
454
|
def deconstruct_keys(keys)
|
|
455
455
|
(keys || self.class.known_fields.keys)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute account_id
|
|
7
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
8
|
+
# accessible if your accounting system has been connected.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :account_id, String, nil?: true
|
|
12
|
+
|
|
13
|
+
# @!attribute class_id
|
|
14
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
15
|
+
# track segments of your business independent of client or project. Note that
|
|
16
|
+
# these will only be accessible if your accounting system has been connected.
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :class_id, String, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!method initialize(account_id: nil, class_id: nil)
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {ModernTreasury::Models::Accounting} for more details.
|
|
24
|
+
#
|
|
25
|
+
# @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
|
26
|
+
#
|
|
27
|
+
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute country
|
|
12
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
required :country, String, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute created_at
|
|
18
|
+
#
|
|
19
|
+
# @return [Time]
|
|
20
|
+
required :created_at, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute line1
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
required :line1, String, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute line2
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
required :line2, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute live_mode
|
|
33
|
+
# This field will be true if this object exists in the live environment or false
|
|
34
|
+
# if it exists in the test environment.
|
|
35
|
+
#
|
|
36
|
+
# @return [Boolean]
|
|
37
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
38
|
+
|
|
39
|
+
# @!attribute locality
|
|
40
|
+
# Locality or City.
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
required :locality, String, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute object
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
required :object, String
|
|
49
|
+
|
|
50
|
+
# @!attribute postal_code
|
|
51
|
+
# The postal code of the address.
|
|
52
|
+
#
|
|
53
|
+
# @return [String, nil]
|
|
54
|
+
required :postal_code, String, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute region
|
|
57
|
+
# Region or State.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
required :region, String, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute updated_at
|
|
63
|
+
#
|
|
64
|
+
# @return [Time]
|
|
65
|
+
required :updated_at, Time
|
|
66
|
+
|
|
67
|
+
# @!method initialize(id:, country:, created_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {ModernTreasury::Models::Address} for more details.
|
|
70
|
+
#
|
|
71
|
+
# @param id [String]
|
|
72
|
+
#
|
|
73
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
74
|
+
#
|
|
75
|
+
# @param created_at [Time]
|
|
76
|
+
#
|
|
77
|
+
# @param line1 [String, nil]
|
|
78
|
+
#
|
|
79
|
+
# @param line2 [String, nil]
|
|
80
|
+
#
|
|
81
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
82
|
+
#
|
|
83
|
+
# @param locality [String, nil] Locality or City.
|
|
84
|
+
#
|
|
85
|
+
# @param object [String]
|
|
86
|
+
#
|
|
87
|
+
# @param postal_code [String, nil] The postal code of the address.
|
|
88
|
+
#
|
|
89
|
+
# @param region [String, nil] Region or State.
|
|
90
|
+
#
|
|
91
|
+
# @param updated_at [Time]
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class AddressRequest < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute country
|
|
7
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :country, String, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute line1
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :line1, String, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute line2
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :line2, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute locality
|
|
23
|
+
# Locality or City.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :locality, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute postal_code
|
|
29
|
+
# The postal code of the address.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :postal_code, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute region
|
|
35
|
+
# Region or State.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :region, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
|
41
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
42
|
+
#
|
|
43
|
+
# @param line1 [String, nil]
|
|
44
|
+
#
|
|
45
|
+
# @param line2 [String, nil]
|
|
46
|
+
#
|
|
47
|
+
# @param locality [String, nil] Locality or City.
|
|
48
|
+
#
|
|
49
|
+
# @param postal_code [String, nil] The postal code of the address.
|
|
50
|
+
#
|
|
51
|
+
# @param region [String, nil] Region or State.
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|