modern_treasury 0.28.0 → 0.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/README.md +3 -3
  4. data/lib/modern_treasury/models/address.rb +6 -4
  5. data/lib/modern_treasury/models/address_request.rb +9 -4
  6. data/lib/modern_treasury/models/bulk_request.rb +0 -1
  7. data/lib/modern_treasury/models/bulk_request_create_params.rb +322 -14
  8. data/lib/modern_treasury/models/bulk_request_list_params.rb +0 -1
  9. data/lib/modern_treasury/models/bulk_result.rb +0 -1
  10. data/lib/modern_treasury/models/bulk_result_list_params.rb +0 -1
  11. data/lib/modern_treasury/models/child_legal_entity.rb +21 -11
  12. data/lib/modern_treasury/models/child_legal_entity_create.rb +13 -7
  13. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +14 -7
  14. data/lib/modern_treasury/models/counterparty.rb +8 -1
  15. data/lib/modern_treasury/models/counterparty_create_params.rb +14 -7
  16. data/lib/modern_treasury/models/document.rb +5 -4
  17. data/lib/modern_treasury/models/document_create_params.rb +1 -0
  18. data/lib/modern_treasury/models/document_list_params.rb +5 -4
  19. data/lib/modern_treasury/models/external_account.rb +8 -1
  20. data/lib/modern_treasury/models/identification_create_request.rb +2 -0
  21. data/lib/modern_treasury/models/internal_account_create_params.rb +32 -5
  22. data/lib/modern_treasury/models/internal_account_update_params.rb +21 -1
  23. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -3
  24. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +4 -3
  25. data/lib/modern_treasury/models/invoice.rb +27 -12
  26. data/lib/modern_treasury/models/invoice_create_params.rb +29 -12
  27. data/lib/modern_treasury/models/invoice_update_params.rb +30 -13
  28. data/lib/modern_treasury/models/ledger_entry_create_request.rb +2 -0
  29. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -0
  30. data/lib/modern_treasury/models/legal_entity.rb +21 -11
  31. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +6 -4
  32. data/lib/modern_treasury/models/legal_entity_create_params.rb +13 -7
  33. data/lib/modern_treasury/models/legal_entity_update_params.rb +13 -7
  34. data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
  35. data/lib/modern_treasury/models/payment_order.rb +90 -2
  36. data/lib/modern_treasury/models/payment_order_create_async_params.rb +84 -8
  37. data/lib/modern_treasury/models/payment_order_create_params.rb +85 -8
  38. data/lib/modern_treasury/models/payment_order_update_params.rb +70 -1
  39. data/lib/modern_treasury/models/payment_reference.rb +3 -1
  40. data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -0
  41. data/lib/modern_treasury/models/return_object.rb +1 -1
  42. data/lib/modern_treasury/models/transaction.rb +6 -7
  43. data/lib/modern_treasury/models/transaction_create_params.rb +3 -3
  44. data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
  45. data/lib/modern_treasury/models.rb +0 -2
  46. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  47. data/lib/modern_treasury/resources/internal_accounts.rb +6 -2
  48. data/lib/modern_treasury/resources/legal_entities.rb +5 -32
  49. data/lib/modern_treasury/resources/payment_orders.rb +11 -5
  50. data/lib/modern_treasury/version.rb +1 -1
  51. data/lib/modern_treasury.rb +0 -1
  52. data/rbi/modern_treasury/models/address.rbi +8 -4
  53. data/rbi/modern_treasury/models/address_request.rbi +8 -4
  54. data/rbi/modern_treasury/models/bulk_request.rbi +0 -5
  55. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +557 -17
  56. data/rbi/modern_treasury/models/bulk_request_list_params.rbi +0 -5
  57. data/rbi/modern_treasury/models/bulk_result.rbi +0 -5
  58. data/rbi/modern_treasury/models/bulk_result_list_params.rbi +0 -5
  59. data/rbi/modern_treasury/models/child_legal_entity.rbi +35 -13
  60. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +17 -9
  61. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -9
  62. data/rbi/modern_treasury/models/counterparty.rbi +6 -0
  63. data/rbi/modern_treasury/models/counterparty_create_params.rbi +17 -9
  64. data/rbi/modern_treasury/models/document.rbi +11 -6
  65. data/rbi/modern_treasury/models/document_create_params.rbi +5 -0
  66. data/rbi/modern_treasury/models/document_list_params.rbi +11 -6
  67. data/rbi/modern_treasury/models/external_account.rbi +6 -0
  68. data/rbi/modern_treasury/models/identification_create_request.rbi +10 -0
  69. data/rbi/modern_treasury/models/internal_account_create_params.rbi +84 -4
  70. data/rbi/modern_treasury/models/internal_account_update_params.rbi +52 -0
  71. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +4 -6
  72. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +5 -6
  73. data/rbi/modern_treasury/models/invoice.rbi +24 -12
  74. data/rbi/modern_treasury/models/invoice_create_params.rbi +24 -12
  75. data/rbi/modern_treasury/models/invoice_update_params.rbi +26 -14
  76. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +1 -0
  77. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +1 -0
  78. data/rbi/modern_treasury/models/legal_entity.rbi +35 -13
  79. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +8 -4
  80. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -9
  81. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +17 -9
  82. data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
  83. data/rbi/modern_treasury/models/payment_order.rbi +153 -5
  84. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +121 -8
  85. data/rbi/modern_treasury/models/payment_order_create_params.rbi +126 -8
  86. data/rbi/modern_treasury/models/payment_order_update_params.rbi +109 -0
  87. data/rbi/modern_treasury/models/payment_reference.rbi +15 -5
  88. data/rbi/modern_treasury/models/payment_reference_list_params.rbi +10 -0
  89. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  90. data/rbi/modern_treasury/models/transaction.rbi +9 -14
  91. data/rbi/modern_treasury/models/transaction_create_params.rbi +6 -6
  92. data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
  93. data/rbi/modern_treasury/models.rbi +0 -3
  94. data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -1
  95. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  96. data/rbi/modern_treasury/resources/internal_accounts.rbi +10 -0
  97. data/rbi/modern_treasury/resources/invoices.rbi +1 -1
  98. data/rbi/modern_treasury/resources/legal_entities.rbi +9 -28
  99. data/rbi/modern_treasury/resources/payment_orders.rbi +23 -2
  100. data/rbi/modern_treasury/resources/transactions.rbi +3 -3
  101. data/sig/modern_treasury/models/bulk_request.rbs +0 -2
  102. data/sig/modern_treasury/models/bulk_request_create_params.rbs +241 -8
  103. data/sig/modern_treasury/models/bulk_request_list_params.rbs +0 -2
  104. data/sig/modern_treasury/models/bulk_result.rbs +0 -2
  105. data/sig/modern_treasury/models/bulk_result_list_params.rbs +0 -2
  106. data/sig/modern_treasury/models/child_legal_entity.rbs +4 -0
  107. data/sig/modern_treasury/models/counterparty.rbs +5 -0
  108. data/sig/modern_treasury/models/document.rbs +2 -0
  109. data/sig/modern_treasury/models/document_create_params.rbs +2 -0
  110. data/sig/modern_treasury/models/document_list_params.rbs +2 -0
  111. data/sig/modern_treasury/models/external_account.rbs +5 -0
  112. data/sig/modern_treasury/models/identification_create_request.rbs +4 -0
  113. data/sig/modern_treasury/models/internal_account_create_params.rbs +23 -0
  114. data/sig/modern_treasury/models/internal_account_update_params.rbs +20 -1
  115. data/sig/modern_treasury/models/legal_entity.rbs +4 -0
  116. data/sig/modern_treasury/models/payment_order.rbs +65 -2
  117. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +52 -5
  118. data/sig/modern_treasury/models/payment_order_create_params.rbs +54 -5
  119. data/sig/modern_treasury/models/payment_order_update_params.rbs +47 -0
  120. data/sig/modern_treasury/models/payment_reference.rbs +10 -3
  121. data/sig/modern_treasury/models/payment_reference_list_params.rbs +8 -1
  122. data/sig/modern_treasury/models/return_object.rbs +2 -2
  123. data/sig/modern_treasury/models/transaction.rbs +0 -2
  124. data/sig/modern_treasury/models.rbs +0 -2
  125. data/sig/modern_treasury/resources/internal_accounts.rbs +2 -0
  126. data/sig/modern_treasury/resources/legal_entities.rbs +0 -6
  127. data/sig/modern_treasury/resources/payment_orders.rbs +5 -2
  128. metadata +2 -5
  129. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +0 -46
  130. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +0 -96
  131. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +0 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dfba7114a6da4f70b3e5b74ff7bdaa3904230ce10f204da37525dba4bce4327
4
- data.tar.gz: 15da306ec9444a2fd903c8547f5619dacbcb11f4ec79e53340ad36f7d95ca38d
3
+ metadata.gz: ae6729fdd63ad4a77f5f404911d1dd8c105aa91f8b2db62ac79b68122e2747a5
4
+ data.tar.gz: 4d734e2a29a13aeb43a9db8bacf69ed5e2b538c1b14a9130b9ea70a9401647f6
5
5
  SHA512:
6
- metadata.gz: 2dd30ba11b96b292bdb48ac58ad59e701735d489050954e87b5ca5e03ed9a107d3e4edf823c52af704eac7162cd9fb782287cdef588ebd308c3062662dba2433
7
- data.tar.gz: d0338d06beb7d97316660c4e92da581a0ba5d1d53a82e3fdd89c86dc4a2079cc4c9e840544a9b27972ed447bc4b51cc78a9e3a67c93b7f1eacb88f7ee8041e1d
6
+ metadata.gz: 42088bba7cd6da125b07c3a2bea8e217d5a4712ad70492b8b5a5567b75b7356c0f9fab575a3b8b6837e0c73ebe8e45d6b85f2be71dca8c7b4aea7c36aca0dfd6
7
+ data.tar.gz: 6c0ebaaba712ff0dfbc88f047fc5aa5e28b361c0c6e49da60f59e1f7253fa5a1a5246bc31e9d330349d5df0eea2133ae900d43e17f3c5661d86b8e9483a0b935
data/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.29.1](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.0...v0.29.1) (2026-08-04)
4
+
5
+
6
+ ### Chores
7
+
8
+ * regenerate SDKs from 0371cfa2f8d48d2b06f62453e50d5b6eb64dccf3 ([0a69ce6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0a69ce647a162a99a5351ac40b5beb02f6af6f3a))
9
+ * regenerate SDKs from 2191f6bdc29650bb2462317646fe2689b92241e7 ([b5366bf](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b5366bf7c8122dab024e8e74e30168d342a76bcf))
10
+ * regenerate SDKs from 79394308401c2da912ede2ecfef7a23c8c407e1b ([b86edf7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b86edf7c862f31bfc86332da6cd107eb5f40012b))
11
+
12
+ ## 0.29.0 (2026-07-24)
13
+
14
+ Full Changelog: [v0.28.0...v0.29.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.28.0...v0.29.0)
15
+
16
+ ### Features
17
+
18
+ * **api:** api update ([a67fb96](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a67fb96739780ee8800974f64c44dcb865c2a1a6))
19
+ * **api:** api update ([991d181](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/991d1814e2636b6eaf4beb8b02357181741b807b))
20
+ * **api:** api update ([222861e](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/222861ea87ee8aefbc4083347da936eea56c634f))
21
+ * **api:** api update ([1b84642](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/1b84642a83c14a49134dac9bc8a30e17b7dcce7e))
22
+ * **stlc:** configurable CI runner and private-production-repo support in workflow templates ([12a94e4](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/12a94e4c4c91266ce3b7bcc2749b1dbfb534c3ec))
23
+
24
+
25
+ ### Chores
26
+
27
+ * regenerate SDKs from 24f3dc7dc33d9f75e2d589541d11b7a8bd943451 ([9834fb8](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9834fb8cea0f8729fa96ba1eca12e21f618186dd))
28
+ * regenerate SDKs from e1e0e3ef1458022fd1daec6fcf15bb4695c49a4b ([9bf4ecb](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9bf4ecbfbf48cdbfa95763f017849ee17b4a31d8))
29
+
3
30
  ## 0.28.0 (2026-07-11)
4
31
 
5
32
  Full Changelog: [v0.27.0...v0.28.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.27.0...v0.28.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
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJuYW1lIjoibW9kZXJuLXRyZWFzdXJ5LW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL21vZGVybi10cmVhc3VyeS5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LW1vZGVybi10cmVhc3VyeS1vcmdhbml6YXRpb24taWQiOiJteS1vcmdhbml6YXRpb24tSUQiLCJ4LW1vZGVybi10cmVhc3VyeS1hcGkta2V5IjoiTXkgQVBJIEtleSJ9fQ)
10
- [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22modern-treasury-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmodern-treasury.stlmcp.com%22%2C%22headers%22%3A%7B%22x-modern-treasury-organization-id%22%3A%22my-organization-ID%22%2C%22x-modern-treasury-api-key%22%3A%22My%20API%20Key%22%7D%7D)
9
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1vZGVybi10cmVhc3VyeS1tY3AiXSwiZW52Ijp7Ik1PREVSTl9UUkVBU1VSWV9BUElfS0VZIjoiTXkgQVBJIEtleSIsIk1PREVSTl9UUkVBU1VSWV9PUkdBTklaQVRJT05fSUQiOiJteS1vcmdhbml6YXRpb24tSUQiLCJNT0RFUk5fVFJFQVNVUllfV0VCSE9PS19LRVkiOiJNeSBXZWJob29rIEtleSJ9fQ)
10
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](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.28.0"
27
+ gem "modern_treasury", "~> 0.29.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -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
@@ -130,7 +130,6 @@ module ModernTreasury
130
130
  EXPECTED_PAYMENT = :expected_payment
131
131
  TRANSACTION = :transaction
132
132
  TRANSACTION_LINE_ITEM = :transaction_line_item
133
- ENTITY_LINK = :entity_link
134
133
 
135
134
  # @!method self.values
136
135
  # @return [Array<Symbol>]
@@ -23,7 +23,7 @@ module ModernTreasury
23
23
  # An array of objects where each object contains the input params for a single
24
24
  # `action_type` request on a `resource_type` resource
25
25
  #
26
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, Object, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID>]
26
+ # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID>]
27
27
  required :resources,
28
28
  -> { ModernTreasury::Internal::Type::ArrayOf[union: ModernTreasury::BulkRequestCreateParams::Resource] }
29
29
 
@@ -42,7 +42,7 @@ module ModernTreasury
42
42
  #
43
43
  # @param resource_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
44
44
  #
45
- # @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, Object, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
45
+ # @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
46
46
  #
47
47
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
48
48
  #
@@ -70,12 +70,12 @@ module ModernTreasury
70
70
  EXPECTED_PAYMENT = :expected_payment
71
71
  TRANSACTION = :transaction
72
72
  TRANSACTION_LINE_ITEM = :transaction_line_item
73
- ENTITY_LINK = :entity_link
74
73
 
75
74
  # @!method self.values
76
75
  # @return [Array<Symbol>]
77
76
  end
78
77
 
78
+ # At least one of "amount" or "amount_string" is required.
79
79
  module Resource
80
80
  extend ModernTreasury::Internal::Type::Union
81
81
 
@@ -87,7 +87,8 @@ module ModernTreasury
87
87
 
88
88
  variant -> { ModernTreasury::LedgerAccountCreateRequest }
89
89
 
90
- variant ModernTreasury::Internal::Type::Unknown
90
+ # At least one of "amount" or "amount_string" is required.
91
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest }
91
92
 
92
93
  variant -> { ModernTreasury::BulkRequestCreateParams::Resource::ID }
93
94
 
@@ -268,6 +269,17 @@ module ModernTreasury
268
269
  # @return [Boolean, nil]
269
270
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
270
271
 
272
+ # @!attribute originating_party_address
273
+ # If present, this address will override the default originating party address
274
+ # used on the payment order. This works across all payment types.
275
+ #
276
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress, nil]
277
+ optional :originating_party_address,
278
+ -> {
279
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress
280
+ },
281
+ nil?: true
282
+
271
283
  # @!attribute originating_party_name
272
284
  # If present, this will replace your default company name on receiver's bank
273
285
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -417,10 +429,11 @@ module ModernTreasury
417
429
  # Additional vendor specific fields for this payment. Data must be represented as
418
430
  # key-value pairs.
419
431
  #
420
- # @return [Object, nil]
421
- optional :vendor_attributes, ModernTreasury::Internal::Type::Unknown
432
+ # @return [Hash{Symbol=>Object}, nil]
433
+ optional :vendor_attributes,
434
+ ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
422
435
 
423
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
436
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
424
437
  # Some parameter documentations has been truncated, see
425
438
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
426
439
  # for more details.
@@ -467,6 +480,8 @@ module ModernTreasury
467
480
  #
468
481
  # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
469
482
  #
483
+ # @param originating_party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
484
+ #
470
485
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
471
486
  #
472
487
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -503,7 +518,7 @@ module ModernTreasury
503
518
  #
504
519
  # @param ultimate_receiving_party_name [String, nil] Name of the ultimate funds recipient.
505
520
  #
506
- # @param vendor_attributes [Object] Additional vendor specific fields for this payment. Data must be represented as
521
+ # @param vendor_attributes [Hash{Symbol=>Object}] Additional vendor specific fields for this payment. Data must be represented as
507
522
 
508
523
  # One of `credit`, `debit`. Describes the direction money is flowing in the
509
524
  # transaction. A `credit` moves money from your account to someone else's. A
@@ -641,6 +656,65 @@ module ModernTreasury
641
656
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
642
657
  end
643
658
 
659
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#originating_party_address
660
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
661
+ # @!attribute country
662
+ # Country code conforms to [ISO 3166-1 alpha-2]
663
+ #
664
+ # @return [String, nil]
665
+ optional :country, String, nil?: true
666
+
667
+ # @!attribute line1
668
+ #
669
+ # @return [String, nil]
670
+ optional :line1, String, nil?: true
671
+
672
+ # @!attribute line2
673
+ #
674
+ # @return [String, nil]
675
+ optional :line2, String, nil?: true
676
+
677
+ # @!attribute locality
678
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
679
+ # Francisco).
680
+ #
681
+ # @return [String, nil]
682
+ optional :locality, String, nil?: true
683
+
684
+ # @!attribute postal_code
685
+ # The postal code of the address.
686
+ #
687
+ # @return [String, nil]
688
+ optional :postal_code, String, nil?: true
689
+
690
+ # @!attribute region
691
+ # Region or State. This field is free-form; for US states, we recommend a
692
+ # two-letter code (e.g. CA). Full state names are also accepted.
693
+ #
694
+ # @return [String, nil]
695
+ optional :region, String, nil?: true
696
+
697
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
698
+ # Some parameter documentations has been truncated, see
699
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress}
700
+ # for more details.
701
+ #
702
+ # If present, this address will override the default originating party address
703
+ # used on the payment order. This works across all payment types.
704
+ #
705
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
706
+ #
707
+ # @param line1 [String, nil]
708
+ #
709
+ # @param line2 [String, nil]
710
+ #
711
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
712
+ #
713
+ # @param postal_code [String, nil] The postal code of the address.
714
+ #
715
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
716
+ end
717
+
644
718
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
645
719
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
646
720
  # an overnight check rather than standard mail.
@@ -964,7 +1038,8 @@ module ModernTreasury
964
1038
  optional :line2, String
965
1039
 
966
1040
  # @!attribute locality
967
- # Locality or City.
1041
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
1042
+ # Francisco).
968
1043
  #
969
1044
  # @return [String, nil]
970
1045
  optional :locality, String
@@ -976,12 +1051,17 @@ module ModernTreasury
976
1051
  optional :postal_code, String
977
1052
 
978
1053
  # @!attribute region
979
- # Region or State.
1054
+ # Region or State. This field is free-form; for US states, we recommend a
1055
+ # two-letter code (e.g. CA). Full state names are also accepted.
980
1056
  #
981
1057
  # @return [String, nil]
982
1058
  optional :region, String
983
1059
 
984
1060
  # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
1061
+ # Some parameter documentations has been truncated, see
1062
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::UltimateOriginatingPartyAddress}
1063
+ # for more details.
1064
+ #
985
1065
  # Address of the ultimate originator of the payment order.
986
1066
  #
987
1067
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
@@ -990,11 +1070,11 @@ module ModernTreasury
990
1070
  #
991
1071
  # @param line2 [String]
992
1072
  #
993
- # @param locality [String] Locality or City.
1073
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
994
1074
  #
995
1075
  # @param postal_code [String] The postal code of the address.
996
1076
  #
997
- # @param region [String] Region or State.
1077
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
998
1078
  end
999
1079
  end
1000
1080
 
@@ -1314,6 +1394,162 @@ module ModernTreasury
1314
1394
  end
1315
1395
  end
1316
1396
 
1397
+ class TransactionCreateRequest < ModernTreasury::Internal::Type::BaseModel
1398
+ # @!attribute as_of_date
1399
+ # The date on which the transaction occurred.
1400
+ #
1401
+ # @return [Date, nil]
1402
+ required :as_of_date, Date, nil?: true
1403
+
1404
+ # @!attribute direction
1405
+ # Either `credit` or `debit`.
1406
+ #
1407
+ # @return [String]
1408
+ required :direction, String
1409
+
1410
+ # @!attribute internal_account_id
1411
+ # The ID of the relevant Internal Account.
1412
+ #
1413
+ # @return [String]
1414
+ required :internal_account_id, String
1415
+
1416
+ # @!attribute vendor_code
1417
+ # When applicable, the bank-given code that determines the transaction's category.
1418
+ # For most banks this is the BAI2/BTRS transaction code.
1419
+ #
1420
+ # @return [String, nil]
1421
+ required :vendor_code, String, nil?: true
1422
+
1423
+ # @!attribute vendor_code_type
1424
+ # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
1425
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dwolla`, `evolve`,
1426
+ # `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, `us_bank`, or
1427
+ # others.
1428
+ #
1429
+ # @return [String, nil]
1430
+ required :vendor_code_type, String, nil?: true
1431
+
1432
+ # @!attribute amount
1433
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
1434
+ # as 1000.
1435
+ #
1436
+ # @return [Integer, nil]
1437
+ optional :amount, Integer
1438
+
1439
+ # @!attribute amount_string
1440
+ # The transaction amount as a string, preserving full precision for values that
1441
+ # may exceed safe integer limits in some languages.
1442
+ #
1443
+ # @return [String, nil]
1444
+ optional :amount_string, String
1445
+
1446
+ # @!attribute metadata
1447
+ # Additional data represented as key-value pairs. Both the key and value must be
1448
+ # strings.
1449
+ #
1450
+ # @return [Hash{Symbol=>String}, nil]
1451
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1452
+
1453
+ # @!attribute posted
1454
+ # This field will be `true` if the transaction has posted to the account.
1455
+ #
1456
+ # @return [Boolean, nil]
1457
+ optional :posted, ModernTreasury::Internal::Type::Boolean
1458
+
1459
+ # @!attribute type
1460
+ # The type of the transaction. Examples could be
1461
+ # `card, `ach`, `wire`, `check`, `rtp`, or `book`.
1462
+ #
1463
+ # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil]
1464
+ optional :type,
1465
+ enum: -> {
1466
+ ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type
1467
+ },
1468
+ nil?: true
1469
+
1470
+ # @!attribute vendor_customer_id
1471
+ # An identifier given to this transaction by the bank, often `null`.
1472
+ #
1473
+ # @return [String, nil]
1474
+ optional :vendor_customer_id, String, nil?: true
1475
+
1476
+ # @!attribute vendor_description
1477
+ # The transaction detail text that often appears in on your bank statement and in
1478
+ # your banking portal.
1479
+ #
1480
+ # @return [String, nil]
1481
+ optional :vendor_description, String, nil?: true
1482
+
1483
+ # @!method initialize(as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, amount: nil, amount_string: nil, metadata: nil, posted: nil, type: nil, vendor_customer_id: nil, vendor_description: nil)
1484
+ # Some parameter documentations has been truncated, see
1485
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest}
1486
+ # for more details.
1487
+ #
1488
+ # At least one of "amount" or "amount_string" is required.
1489
+ #
1490
+ # @param as_of_date [Date, nil] The date on which the transaction occurred.
1491
+ #
1492
+ # @param direction [String] Either `credit` or `debit`.
1493
+ #
1494
+ # @param internal_account_id [String] The ID of the relevant Internal Account.
1495
+ #
1496
+ # @param vendor_code [String, nil] When applicable, the bank-given code that determines the transaction's category.
1497
+ #
1498
+ # @param vendor_code_type [String, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
1499
+ #
1500
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
1501
+ #
1502
+ # @param amount_string [String] The transaction amount as a string, preserving full precision for values that ma
1503
+ #
1504
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1505
+ #
1506
+ # @param posted [Boolean] This field will be `true` if the transaction has posted to the account.
1507
+ #
1508
+ # @param type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
1509
+ #
1510
+ # @param vendor_customer_id [String, nil] An identifier given to this transaction by the bank, often `null`.
1511
+ #
1512
+ # @param vendor_description [String, nil] The transaction detail text that often appears in on your bank statement and in
1513
+
1514
+ # The type of the transaction. Examples could be
1515
+ # `card, `ach`, `wire`, `check`, `rtp`, or `book`.
1516
+ #
1517
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest#type
1518
+ module Type
1519
+ extend ModernTreasury::Internal::Type::Enum
1520
+
1521
+ ACH = :ach
1522
+ AU_BECS = :au_becs
1523
+ BACS = :bacs
1524
+ BOOK = :book
1525
+ CARD = :card
1526
+ CHATS = :chats
1527
+ CHECK = :check
1528
+ CROSS_BORDER = :cross_border
1529
+ DK_NETS = :dk_nets
1530
+ EFT = :eft
1531
+ GB_FPS = :gb_fps
1532
+ MASAV = :masav
1533
+ MX_CCEN = :mx_ccen
1534
+ NEFT = :neft
1535
+ NICS = :nics
1536
+ NZ_BECS = :nz_becs
1537
+ PL_ELIXIR = :pl_elixir
1538
+ RTP = :rtp
1539
+ SE_BANKGIROT = :se_bankgirot
1540
+ SEPA = :sepa
1541
+ SG_GIRO = :sg_giro
1542
+ SIC = :sic
1543
+ STABLECOIN = :stablecoin
1544
+ WIRE = :wire
1545
+ ZENGIN = :zengin
1546
+ OTHER = :other
1547
+
1548
+ # @!method self.values
1549
+ # @return [Array<Symbol>]
1550
+ end
1551
+ end
1552
+
1317
1553
  class ID < ModernTreasury::Internal::Type::BaseModel
1318
1554
  # @!attribute id
1319
1555
  #
@@ -1477,6 +1713,17 @@ module ModernTreasury
1477
1713
  # @return [String, nil]
1478
1714
  optional :originating_account_id, String
1479
1715
 
1716
+ # @!attribute originating_party_address
1717
+ # If present, this address will override the default originating party address
1718
+ # used on the payment order. This works across all payment types.
1719
+ #
1720
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress, nil]
1721
+ optional :originating_party_address,
1722
+ -> {
1723
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress
1724
+ },
1725
+ nil?: true
1726
+
1480
1727
  # @!attribute originating_party_name
1481
1728
  # If present, this will replace your default company name on receiver's bank
1482
1729
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -1620,7 +1867,7 @@ module ModernTreasury
1620
1867
  # @return [String, nil]
1621
1868
  optional :ultimate_receiving_party_name, String, nil?: true
1622
1869
 
1623
- # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1870
+ # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1624
1871
  # Some parameter documentations has been truncated, see
1625
1872
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID}
1626
1873
  # for more details.
@@ -1665,6 +1912,8 @@ module ModernTreasury
1665
1912
  #
1666
1913
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
1667
1914
  #
1915
+ # @param originating_party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
1916
+ #
1668
1917
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
1669
1918
  #
1670
1919
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -1835,6 +2084,65 @@ module ModernTreasury
1835
2084
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1836
2085
  end
1837
2086
 
2087
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#originating_party_address
2088
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
2089
+ # @!attribute country
2090
+ # Country code conforms to [ISO 3166-1 alpha-2]
2091
+ #
2092
+ # @return [String, nil]
2093
+ optional :country, String, nil?: true
2094
+
2095
+ # @!attribute line1
2096
+ #
2097
+ # @return [String, nil]
2098
+ optional :line1, String, nil?: true
2099
+
2100
+ # @!attribute line2
2101
+ #
2102
+ # @return [String, nil]
2103
+ optional :line2, String, nil?: true
2104
+
2105
+ # @!attribute locality
2106
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
2107
+ # Francisco).
2108
+ #
2109
+ # @return [String, nil]
2110
+ optional :locality, String, nil?: true
2111
+
2112
+ # @!attribute postal_code
2113
+ # The postal code of the address.
2114
+ #
2115
+ # @return [String, nil]
2116
+ optional :postal_code, String, nil?: true
2117
+
2118
+ # @!attribute region
2119
+ # Region or State. This field is free-form; for US states, we recommend a
2120
+ # two-letter code (e.g. CA). Full state names are also accepted.
2121
+ #
2122
+ # @return [String, nil]
2123
+ optional :region, String, nil?: true
2124
+
2125
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
2126
+ # Some parameter documentations has been truncated, see
2127
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress}
2128
+ # for more details.
2129
+ #
2130
+ # If present, this address will override the default originating party address
2131
+ # used on the payment order. This works across all payment types.
2132
+ #
2133
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
2134
+ #
2135
+ # @param line1 [String, nil]
2136
+ #
2137
+ # @param line2 [String, nil]
2138
+ #
2139
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
2140
+ #
2141
+ # @param postal_code [String, nil] The postal code of the address.
2142
+ #
2143
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
2144
+ end
2145
+
1838
2146
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
1839
2147
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
1840
2148
  # an overnight check rather than standard mail.
@@ -2633,7 +2941,7 @@ module ModernTreasury
2633
2941
  end
2634
2942
 
2635
2943
  # @!method self.variants
2636
- # @return [Array(ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, Object, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID)]
2944
+ # @return [Array(ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID)]
2637
2945
  end
2638
2946
  end
2639
2947
  end
@@ -83,7 +83,6 @@ module ModernTreasury
83
83
  EXPECTED_PAYMENT = :expected_payment
84
84
  TRANSACTION = :transaction
85
85
  TRANSACTION_LINE_ITEM = :transaction_line_item
86
- ENTITY_LINK = :entity_link
87
86
 
88
87
  # @!method self.values
89
88
  # @return [Array<Symbol>]
@@ -219,7 +219,6 @@ module ModernTreasury
219
219
  LEDGER_TRANSACTION = :ledger_transaction
220
220
  EXPECTED_PAYMENT = :expected_payment
221
221
  TRANSACTION = :transaction
222
- ENTITY_LINK = :entity_link
223
222
  TRANSACTION_LINE_ITEM = :transaction_line_item
224
223
  BULK_ERROR = :bulk_error
225
224