modern_treasury 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/internal/util.rb +3 -1
  5. data/lib/modern_treasury/models/bulk_request_create_params.rb +0 -12
  6. data/lib/modern_treasury/models/child_legal_entity_create.rb +1 -0
  7. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1 -0
  8. data/lib/modern_treasury/models/counterparty_create_params.rb +1 -4
  9. data/lib/modern_treasury/models/currency.rb +0 -1
  10. data/lib/modern_treasury/models/expected_payment_list_params.rb +0 -4
  11. data/lib/modern_treasury/models/expected_payment_type.rb +0 -4
  12. data/lib/modern_treasury/models/external_account_create_params.rb +0 -4
  13. data/lib/modern_treasury/models/external_account_verify_params.rb +0 -4
  14. data/lib/modern_treasury/models/external_account_verify_response.rb +0 -4
  15. data/lib/modern_treasury/models/identification_create_request.rb +1 -0
  16. data/lib/modern_treasury/models/incoming_payment_detail.rb +12 -5
  17. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +11 -5
  18. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +12 -5
  19. data/lib/modern_treasury/models/internal_account.rb +0 -4
  20. data/lib/modern_treasury/models/internal_account_create_params.rb +8 -9
  21. data/lib/modern_treasury/models/internal_account_list_params.rb +0 -4
  22. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -4
  23. data/lib/modern_treasury/models/invoice.rb +25 -1
  24. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +10 -1
  25. data/lib/modern_treasury/models/legal_entity_create_params.rb +1 -0
  26. data/lib/modern_treasury/models/payment_order.rb +3 -1
  27. data/lib/modern_treasury/models/payment_order_create_async_params.rb +0 -4
  28. data/lib/modern_treasury/models/payment_order_create_params.rb +0 -4
  29. data/lib/modern_treasury/models/payment_order_list_params.rb +0 -4
  30. data/lib/modern_treasury/models/payment_order_type.rb +0 -4
  31. data/lib/modern_treasury/models/payment_order_update_params.rb +0 -4
  32. data/lib/modern_treasury/models/payment_reference.rb +3 -1
  33. data/lib/modern_treasury/models/reconciliation_rule.rb +0 -4
  34. data/lib/modern_treasury/models/return_object.rb +3 -1
  35. data/lib/modern_treasury/models/routing_detail.rb +0 -4
  36. data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -4
  37. data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -4
  38. data/lib/modern_treasury/models/transaction.rb +0 -5
  39. data/lib/modern_treasury/models/transaction_create_params.rb +0 -4
  40. data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -4
  41. data/lib/modern_treasury/resources/incoming_payment_details.rb +6 -2
  42. data/lib/modern_treasury/resources/internal_accounts.rb +1 -1
  43. data/lib/modern_treasury/resources/ledger_account_settlements.rb +3 -1
  44. data/lib/modern_treasury/version.rb +1 -1
  45. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +0 -60
  46. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +5 -0
  47. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +5 -0
  48. data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -20
  49. data/rbi/modern_treasury/models/currency.rbi +0 -1
  50. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +0 -20
  51. data/rbi/modern_treasury/models/expected_payment_type.rbi +0 -6
  52. data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -20
  53. data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -20
  54. data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -20
  55. data/rbi/modern_treasury/models/identification_create_request.rbi +5 -0
  56. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +14 -17
  57. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +12 -17
  58. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +17 -17
  59. data/rbi/modern_treasury/models/internal_account.rbi +0 -20
  60. data/rbi/modern_treasury/models/internal_account_create_params.rbi +21 -26
  61. data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -20
  62. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -20
  63. data/rbi/modern_treasury/models/invoice.rbi +27 -3
  64. data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +10 -0
  65. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +5 -0
  66. data/rbi/modern_treasury/models/payment_order.rbi +14 -4
  67. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +0 -20
  68. data/rbi/modern_treasury/models/payment_order_create_params.rbi +0 -20
  69. data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -20
  70. data/rbi/modern_treasury/models/payment_order_type.rbi +0 -5
  71. data/rbi/modern_treasury/models/payment_order_update_params.rbi +0 -20
  72. data/rbi/modern_treasury/models/payment_reference.rbi +14 -4
  73. data/rbi/modern_treasury/models/reconciliation_rule.rbi +0 -14
  74. data/rbi/modern_treasury/models/return_object.rbi +14 -4
  75. data/rbi/modern_treasury/models/routing_detail.rbi +0 -17
  76. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -20
  77. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -20
  78. data/rbi/modern_treasury/models/transaction.rbi +0 -11
  79. data/rbi/modern_treasury/models/transaction_create_params.rbi +0 -20
  80. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -20
  81. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +9 -0
  82. data/rbi/modern_treasury/resources/internal_accounts.rbi +2 -2
  83. data/rbi/modern_treasury/resources/ledger_account_settlements.rbi +4 -0
  84. data/sig/modern_treasury/models/bulk_request_create_params.rbs +0 -24
  85. data/sig/modern_treasury/models/child_legal_entity_create.rbs +2 -0
  86. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +2 -0
  87. data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -8
  88. data/sig/modern_treasury/models/currency.rbs +0 -2
  89. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -8
  90. data/sig/modern_treasury/models/expected_payment_type.rbs +0 -8
  91. data/sig/modern_treasury/models/external_account_create_params.rbs +0 -8
  92. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -8
  93. data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -8
  94. data/sig/modern_treasury/models/identification_create_request.rbs +2 -0
  95. data/sig/modern_treasury/models/incoming_payment_detail.rbs +7 -8
  96. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +7 -8
  97. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +9 -8
  98. data/sig/modern_treasury/models/internal_account.rbs +0 -8
  99. data/sig/modern_treasury/models/internal_account_create_params.rbs +4 -9
  100. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -8
  101. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -8
  102. data/sig/modern_treasury/models/invoice.rbs +18 -3
  103. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +5 -0
  104. data/sig/modern_treasury/models/legal_entity_create_params.rbs +2 -0
  105. data/sig/modern_treasury/models/payment_order.rbs +6 -2
  106. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -8
  107. data/sig/modern_treasury/models/payment_order_create_params.rbs +0 -8
  108. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -8
  109. data/sig/modern_treasury/models/payment_order_type.rbs +0 -8
  110. data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -8
  111. data/sig/modern_treasury/models/payment_reference.rbs +6 -2
  112. data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -8
  113. data/sig/modern_treasury/models/return_object.rbs +6 -2
  114. data/sig/modern_treasury/models/routing_detail.rbs +0 -8
  115. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -8
  116. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -8
  117. data/sig/modern_treasury/models/transaction.rbs +0 -10
  118. data/sig/modern_treasury/models/transaction_create_params.rbs +0 -8
  119. data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -8
  120. data/sig/modern_treasury/resources/incoming_payment_details.rbs +2 -0
  121. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +1 -0
  122. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ef177f3100d1105f818dd274b81a5dfedcbb569e09c0a1dcf8f015b31e7bbec
4
- data.tar.gz: bd2d064396b0c6177f8b7b0647363690cd1837f3aaaeb3c01a04ae26feee86ac
3
+ metadata.gz: 4dda2406977657f2b37403f551dd5bb1456dd5664ea58f359c365df4777ede39
4
+ data.tar.gz: d257601e60c643d6baa34d28dac5548c397fd364740c6c5f4f37af02476ac40b
5
5
  SHA512:
6
- metadata.gz: d9c99473c627f5b7a8db8ecb48c96d36d94862c4c666af68e89f2decad8f68891688d1bb1080c12ec4ac18222de14dd10fd08b016abdea7ef5c97bb89eea71d2
7
- data.tar.gz: 0a6d75d04fa619bd246501f0f25b8ad3db1c87ac077b99782886038d2532789cb23432984bbe76480f0b0dbbee58f9295994e45cd968e687bb524e53ab70385e
6
+ metadata.gz: 96d64cd5116009940f8ac80c1c571efaf57ebb543ce5dcd4823a300036e4d3ce13dbc56731efab2c03d05fd9173a16873434de41484077ffc5496c45e3b6fafd
7
+ data.tar.gz: a27af98418e2a32b3e35e681c6fa1f0cc8e8ec0e37f7d9eea34e71bcc20fb243573c492f62d9f8f9b5557af59538a826e8b8850df1ed544c0f9400527feddb5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.27.0 (2026-04-22)
4
+
5
+ Full Changelog: [v0.26.0...v0.27.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.26.0...v0.27.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([c7dc3ea](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/c7dc3ea3eaecb71c0f8c7e676daaf691b962f822))
10
+ * **api:** api update ([b1586ed](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b1586ed9a58b23b86689376617778b90510a4308))
11
+ * **api:** api update ([948a7f6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/948a7f63d2104316e5452ee653386729dd860a8d))
12
+ * **api:** api update ([e186ff2](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/e186ff29b6fb43201e4d8e98175c47535d095bd8))
13
+ * **api:** api update ([5ccf327](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5ccf327c91bb3c5a16ca8fdecc338fd423d47e1c))
14
+ * **api:** api update ([df76f3a](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/df76f3aeb7ed79d62ed0524b30228ed22cb5493d))
15
+ * **api:** api update ([102435c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/102435c9e3c07020521c075970c7fed8bf6e7a23))
16
+ * **api:** api update ([b31a176](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b31a1766bd973c4462cf7c0805ca5061d7ab158f))
17
+ * **api:** api update ([7b96018](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7b9601800a2c6602221f234bf75acb9687278f79))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * multipart encoding for file arrays ([0415201](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/041520130c1ac42211bb3ddc3a18961e035e1216))
23
+
24
+
25
+ ### Chores
26
+
27
+ * **internal:** more robust bootstrap script ([28d556b](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/28d556b65e1f7066b3e516124b99008143d5b459))
28
+
29
+ ## 0.26.0 (2026-04-08)
30
+
31
+ Full Changelog: [v0.25.0...v0.26.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.25.0...v0.26.0)
32
+
33
+ ### Features
34
+
35
+ * **api:** api update ([0db5b46](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0db5b4669ffca62b148e81fd01cff3d5eecddbd4))
36
+
3
37
  ## 0.25.0 (2026-04-04)
4
38
 
5
39
  Full Changelog: [v0.24.0...v0.25.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.24.0...v0.25.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "modern_treasury", "~> 0.25.0"
27
+ gem "modern_treasury", "~> 0.27.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -610,6 +610,7 @@ module ModernTreasury
610
610
  #
611
611
  # @return [Array(String, Enumerable<String>)]
612
612
  private def encode_multipart_streaming(body)
613
+ # rubocop:disable Style/CaseEquality
613
614
  # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
614
615
  boundary = SecureRandom.urlsafe_base64(46)
615
616
 
@@ -619,7 +620,7 @@ module ModernTreasury
619
620
  in Hash
620
621
  body.each do |key, val|
621
622
  case val
622
- in Array if val.all? { primitive?(_1) }
623
+ in Array if val.all? { primitive?(_1) || ModernTreasury::Internal::Type::FileInput === _1 }
623
624
  val.each do |v|
624
625
  write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
625
626
  end
@@ -635,6 +636,7 @@ module ModernTreasury
635
636
 
636
637
  fused_io = fused_enum(strio) { closing.each(&:call) }
637
638
  [boundary, fused_io]
639
+ # rubocop:enable Style/CaseEquality
638
640
  end
639
641
 
640
642
  # @api private
@@ -903,7 +903,6 @@ module ModernTreasury
903
903
  ACH = :ach
904
904
  AU_BECS = :au_becs
905
905
  BACS = :bacs
906
- BASE = :base
907
906
  BOOK = :book
908
907
  CARD = :card
909
908
  CHATS = :chats
@@ -911,7 +910,6 @@ module ModernTreasury
911
910
  CROSS_BORDER = :cross_border
912
911
  DK_NETS = :dk_nets
913
912
  EFT = :eft
914
- ETHEREUM = :ethereum
915
913
  GB_FPS = :gb_fps
916
914
  HU_ICS = :hu_ics
917
915
  INTERAC = :interac
@@ -921,7 +919,6 @@ module ModernTreasury
921
919
  NICS = :nics
922
920
  NZ_BECS = :nz_becs
923
921
  PL_ELIXIR = :pl_elixir
924
- POLYGON = :polygon
925
922
  PROVXCHANGE = :provxchange
926
923
  RO_SENT = :ro_sent
927
924
  RTP = :rtp
@@ -932,7 +929,6 @@ module ModernTreasury
932
929
  SIC = :sic
933
930
  SIGNET = :signet
934
931
  SKNBI = :sknbi
935
- SOLANA = :solana
936
932
  STABLECOIN = :stablecoin
937
933
  WIRE = :wire
938
934
  ZENGIN = :zengin
@@ -1443,7 +1439,6 @@ module ModernTreasury
1443
1439
  ACH = :ach
1444
1440
  AU_BECS = :au_becs
1445
1441
  BACS = :bacs
1446
- BASE = :base
1447
1442
  BOOK = :book
1448
1443
  CARD = :card
1449
1444
  CHATS = :chats
@@ -1451,7 +1446,6 @@ module ModernTreasury
1451
1446
  CROSS_BORDER = :cross_border
1452
1447
  DK_NETS = :dk_nets
1453
1448
  EFT = :eft
1454
- ETHEREUM = :ethereum
1455
1449
  GB_FPS = :gb_fps
1456
1450
  HU_ICS = :hu_ics
1457
1451
  INTERAC = :interac
@@ -1461,7 +1455,6 @@ module ModernTreasury
1461
1455
  NICS = :nics
1462
1456
  NZ_BECS = :nz_becs
1463
1457
  PL_ELIXIR = :pl_elixir
1464
- POLYGON = :polygon
1465
1458
  PROVXCHANGE = :provxchange
1466
1459
  RO_SENT = :ro_sent
1467
1460
  RTP = :rtp
@@ -1472,7 +1465,6 @@ module ModernTreasury
1472
1465
  SIC = :sic
1473
1466
  SIGNET = :signet
1474
1467
  SKNBI = :sknbi
1475
- SOLANA = :solana
1476
1468
  STABLECOIN = :stablecoin
1477
1469
  WIRE = :wire
1478
1470
  ZENGIN = :zengin
@@ -2268,7 +2260,6 @@ module ModernTreasury
2268
2260
  ACH = :ach
2269
2261
  AU_BECS = :au_becs
2270
2262
  BACS = :bacs
2271
- BASE = :base
2272
2263
  BOOK = :book
2273
2264
  CARD = :card
2274
2265
  CHATS = :chats
@@ -2276,7 +2267,6 @@ module ModernTreasury
2276
2267
  CROSS_BORDER = :cross_border
2277
2268
  DK_NETS = :dk_nets
2278
2269
  EFT = :eft
2279
- ETHEREUM = :ethereum
2280
2270
  GB_FPS = :gb_fps
2281
2271
  HU_ICS = :hu_ics
2282
2272
  INTERAC = :interac
@@ -2286,7 +2276,6 @@ module ModernTreasury
2286
2276
  NICS = :nics
2287
2277
  NZ_BECS = :nz_becs
2288
2278
  PL_ELIXIR = :pl_elixir
2289
- POLYGON = :polygon
2290
2279
  PROVXCHANGE = :provxchange
2291
2280
  RO_SENT = :ro_sent
2292
2281
  RTP = :rtp
@@ -2297,7 +2286,6 @@ module ModernTreasury
2297
2286
  SIC = :sic
2298
2287
  SIGNET = :signet
2299
2288
  SKNBI = :sknbi
2300
- SOLANA = :solana
2301
2289
  STABLECOIN = :stablecoin
2302
2290
  WIRE = :wire
2303
2291
  ZENGIN = :zengin
@@ -396,6 +396,7 @@ module ModernTreasury
396
396
  ARTICLES_OF_INCORPORATION = :articles_of_incorporation
397
397
  CERTIFICATE_OF_GOOD_STANDING = :certificate_of_good_standing
398
398
  EIN_LETTER = :ein_letter
399
+ GENERIC = :generic
399
400
  IDENTIFICATION_BACK = :identification_back
400
401
  IDENTIFICATION_FRONT = :identification_front
401
402
  PROOF_OF_ADDRESS = :proof_of_address
@@ -433,6 +433,7 @@ module ModernTreasury
433
433
  ARTICLES_OF_INCORPORATION = :articles_of_incorporation
434
434
  CERTIFICATE_OF_GOOD_STANDING = :certificate_of_good_standing
435
435
  EIN_LETTER = :ein_letter
436
+ GENERIC = :generic
436
437
  IDENTIFICATION_BACK = :identification_back
437
438
  IDENTIFICATION_FRONT = :identification_front
438
439
  PROOF_OF_ADDRESS = :proof_of_address
@@ -378,7 +378,6 @@ module ModernTreasury
378
378
  ACH = :ach
379
379
  AU_BECS = :au_becs
380
380
  BACS = :bacs
381
- BASE = :base
382
381
  BOOK = :book
383
382
  CARD = :card
384
383
  CHATS = :chats
@@ -386,7 +385,6 @@ module ModernTreasury
386
385
  CROSS_BORDER = :cross_border
387
386
  DK_NETS = :dk_nets
388
387
  EFT = :eft
389
- ETHEREUM = :ethereum
390
388
  GB_FPS = :gb_fps
391
389
  HU_ICS = :hu_ics
392
390
  INTERAC = :interac
@@ -396,7 +394,6 @@ module ModernTreasury
396
394
  NICS = :nics
397
395
  NZ_BECS = :nz_becs
398
396
  PL_ELIXIR = :pl_elixir
399
- POLYGON = :polygon
400
397
  PROVXCHANGE = :provxchange
401
398
  RO_SENT = :ro_sent
402
399
  RTP = :rtp
@@ -407,7 +404,6 @@ module ModernTreasury
407
404
  SIC = :sic
408
405
  SIGNET = :signet
409
406
  SKNBI = :sknbi
410
- SOLANA = :solana
411
407
  STABLECOIN = :stablecoin
412
408
  WIRE = :wire
413
409
  ZENGIN = :zengin
@@ -842,6 +838,7 @@ module ModernTreasury
842
838
  ARTICLES_OF_INCORPORATION = :articles_of_incorporation
843
839
  CERTIFICATE_OF_GOOD_STANDING = :certificate_of_good_standing
844
840
  EIN_LETTER = :ein_letter
841
+ GENERIC = :generic
845
842
  IDENTIFICATION_BACK = :identification_back
846
843
  IDENTIFICATION_FRONT = :identification_front
847
844
  PROOF_OF_ADDRESS = :proof_of_address
@@ -141,7 +141,6 @@ module ModernTreasury
141
141
  RUB = :RUB
142
142
  RWF = :RWF
143
143
  SAR = :SAR
144
- SBC = :SBC
145
144
  SBD = :SBD
146
145
  SCR = :SCR
147
146
  SDG = :SDG
@@ -138,7 +138,6 @@ module ModernTreasury
138
138
  ACH = :ach
139
139
  AU_BECS = :au_becs
140
140
  BACS = :bacs
141
- BASE = :base
142
141
  BOOK = :book
143
142
  CARD = :card
144
143
  CHATS = :chats
@@ -146,7 +145,6 @@ module ModernTreasury
146
145
  CROSS_BORDER = :cross_border
147
146
  DK_NETS = :dk_nets
148
147
  EFT = :eft
149
- ETHEREUM = :ethereum
150
148
  GB_FPS = :gb_fps
151
149
  HU_ICS = :hu_ics
152
150
  INTERAC = :interac
@@ -156,7 +154,6 @@ module ModernTreasury
156
154
  NICS = :nics
157
155
  NZ_BECS = :nz_becs
158
156
  PL_ELIXIR = :pl_elixir
159
- POLYGON = :polygon
160
157
  PROVXCHANGE = :provxchange
161
158
  RO_SENT = :ro_sent
162
159
  RTP = :rtp
@@ -167,7 +164,6 @@ module ModernTreasury
167
164
  SIC = :sic
168
165
  SIGNET = :signet
169
166
  SKNBI = :sknbi
170
- SOLANA = :solana
171
167
  STABLECOIN = :stablecoin
172
168
  WIRE = :wire
173
169
  ZENGIN = :zengin
@@ -10,7 +10,6 @@ module ModernTreasury
10
10
  ACH = :ach
11
11
  AU_BECS = :au_becs
12
12
  BACS = :bacs
13
- BASE = :base
14
13
  BOOK = :book
15
14
  CARD = :card
16
15
  CHATS = :chats
@@ -18,7 +17,6 @@ module ModernTreasury
18
17
  CROSS_BORDER = :cross_border
19
18
  DK_NETS = :dk_nets
20
19
  EFT = :eft
21
- ETHEREUM = :ethereum
22
20
  GB_FPS = :gb_fps
23
21
  HU_ICS = :hu_ics
24
22
  INTERAC = :interac
@@ -28,7 +26,6 @@ module ModernTreasury
28
26
  NICS = :nics
29
27
  NZ_BECS = :nz_becs
30
28
  PL_ELIXIR = :pl_elixir
31
- POLYGON = :polygon
32
29
  PROVXCHANGE = :provxchange
33
30
  RO_SENT = :ro_sent
34
31
  RTP = :rtp
@@ -39,7 +36,6 @@ module ModernTreasury
39
36
  SIC = :sic
40
37
  SIGNET = :signet
41
38
  SKNBI = :sknbi
42
- SOLANA = :solana
43
39
  STABLECOIN = :stablecoin
44
40
  WIRE = :wire
45
41
  ZENGIN = :zengin
@@ -243,7 +243,6 @@ module ModernTreasury
243
243
  ACH = :ach
244
244
  AU_BECS = :au_becs
245
245
  BACS = :bacs
246
- BASE = :base
247
246
  BOOK = :book
248
247
  CARD = :card
249
248
  CHATS = :chats
@@ -251,7 +250,6 @@ module ModernTreasury
251
250
  CROSS_BORDER = :cross_border
252
251
  DK_NETS = :dk_nets
253
252
  EFT = :eft
254
- ETHEREUM = :ethereum
255
253
  GB_FPS = :gb_fps
256
254
  HU_ICS = :hu_ics
257
255
  INTERAC = :interac
@@ -261,7 +259,6 @@ module ModernTreasury
261
259
  NICS = :nics
262
260
  NZ_BECS = :nz_becs
263
261
  PL_ELIXIR = :pl_elixir
264
- POLYGON = :polygon
265
262
  PROVXCHANGE = :provxchange
266
263
  RO_SENT = :ro_sent
267
264
  RTP = :rtp
@@ -272,7 +269,6 @@ module ModernTreasury
272
269
  SIC = :sic
273
270
  SIGNET = :signet
274
271
  SKNBI = :sknbi
275
- SOLANA = :solana
276
272
  STABLECOIN = :stablecoin
277
273
  WIRE = :wire
278
274
  ZENGIN = :zengin
@@ -71,7 +71,6 @@ module ModernTreasury
71
71
  ACH = :ach
72
72
  AU_BECS = :au_becs
73
73
  BACS = :bacs
74
- BASE = :base
75
74
  BOOK = :book
76
75
  CARD = :card
77
76
  CHATS = :chats
@@ -79,7 +78,6 @@ module ModernTreasury
79
78
  CROSS_BORDER = :cross_border
80
79
  DK_NETS = :dk_nets
81
80
  EFT = :eft
82
- ETHEREUM = :ethereum
83
81
  GB_FPS = :gb_fps
84
82
  HU_ICS = :hu_ics
85
83
  INTERAC = :interac
@@ -89,7 +87,6 @@ module ModernTreasury
89
87
  NICS = :nics
90
88
  NZ_BECS = :nz_becs
91
89
  PL_ELIXIR = :pl_elixir
92
- POLYGON = :polygon
93
90
  PROVXCHANGE = :provxchange
94
91
  RO_SENT = :ro_sent
95
92
  RTP = :rtp
@@ -100,7 +97,6 @@ module ModernTreasury
100
97
  SIC = :sic
101
98
  SIGNET = :signet
102
99
  SKNBI = :sknbi
103
- SOLANA = :solana
104
100
  STABLECOIN = :stablecoin
105
101
  WIRE = :wire
106
102
  ZENGIN = :zengin
@@ -109,7 +109,6 @@ module ModernTreasury
109
109
  ACH = :ach
110
110
  AU_BECS = :au_becs
111
111
  BACS = :bacs
112
- BASE = :base
113
112
  BOOK = :book
114
113
  CARD = :card
115
114
  CHATS = :chats
@@ -117,7 +116,6 @@ module ModernTreasury
117
116
  CROSS_BORDER = :cross_border
118
117
  DK_NETS = :dk_nets
119
118
  EFT = :eft
120
- ETHEREUM = :ethereum
121
119
  GB_FPS = :gb_fps
122
120
  HU_ICS = :hu_ics
123
121
  INTERAC = :interac
@@ -127,7 +125,6 @@ module ModernTreasury
127
125
  NICS = :nics
128
126
  NZ_BECS = :nz_becs
129
127
  PL_ELIXIR = :pl_elixir
130
- POLYGON = :polygon
131
128
  PROVXCHANGE = :provxchange
132
129
  RO_SENT = :ro_sent
133
130
  RTP = :rtp
@@ -138,7 +135,6 @@ module ModernTreasury
138
135
  SIC = :sic
139
136
  SIGNET = :signet
140
137
  SKNBI = :sknbi
141
- SOLANA = :solana
142
138
  STABLECOIN = :stablecoin
143
139
  WIRE = :wire
144
140
  ZENGIN = :zengin
@@ -128,6 +128,7 @@ module ModernTreasury
128
128
  ARTICLES_OF_INCORPORATION = :articles_of_incorporation
129
129
  CERTIFICATE_OF_GOOD_STANDING = :certificate_of_good_standing
130
130
  EIN_LETTER = :ein_letter
131
+ GENERIC = :generic
131
132
  IDENTIFICATION_BACK = :identification_back
132
133
  IDENTIFICATION_FRONT = :identification_front
133
134
  PROOF_OF_ADDRESS = :proof_of_address
@@ -120,6 +120,14 @@ module ModernTreasury
120
120
  # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status]
121
121
  required :status, enum: -> { ModernTreasury::IncomingPaymentDetail::Status }
122
122
 
123
+ # @!attribute subtype
124
+ # An additional layer of classification for the type of incoming payment detail.
125
+ # For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
126
+ # `solana`.
127
+ #
128
+ # @return [String, nil]
129
+ required :subtype, String, nil?: true
130
+
123
131
  # @!attribute transaction_id
124
132
  # The ID of the reconciled Transaction or `null`.
125
133
  #
@@ -203,7 +211,7 @@ module ModernTreasury
203
211
  # @return [String, nil]
204
212
  optional :receiving_account_number_safe, String, nil?: true
205
213
 
206
- # @!method initialize(id:, amount:, as_of_date:, created_at:, currency:, data:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, originating_account_number_safe:, originating_account_number_type:, originating_routing_number:, originating_routing_number_type:, reconciliation_status:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:, vendor_id:, virtual_account:, virtual_account_id:, originating_account_number: nil, originating_party_address: nil, originating_party_name: nil, originating_party_vendor_identifier: nil, receiving_account_number: nil, receiving_account_number_safe: nil)
214
+ # @!method initialize(id:, amount:, as_of_date:, created_at:, currency:, data:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, originating_account_number_safe:, originating_account_number_type:, originating_routing_number:, originating_routing_number_type:, reconciliation_status:, status:, subtype:, transaction_id:, transaction_line_item_id:, type:, updated_at:, vendor_id:, virtual_account:, virtual_account_id:, originating_account_number: nil, originating_party_address: nil, originating_party_name: nil, originating_party_vendor_identifier: nil, receiving_account_number: nil, receiving_account_number_safe: nil)
207
215
  # Some parameter documentations has been truncated, see
208
216
  # {ModernTreasury::Models::IncomingPaymentDetail} for more details.
209
217
  #
@@ -243,6 +251,8 @@ module ModernTreasury
243
251
  #
244
252
  # @param status [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status] The current status of the incoming payment order. One of `pending`, `completed`,
245
253
  #
254
+ # @param subtype [String, nil] An additional layer of classification for the type of incoming payment detail. F
255
+ #
246
256
  # @param transaction_id [String, nil] The ID of the reconciled Transaction or `null`.
247
257
  #
248
258
  # @param transaction_line_item_id [String, nil] The ID of the reconciled Transaction Line Item or `null`.
@@ -367,19 +377,16 @@ module ModernTreasury
367
377
  ACH = :ach
368
378
  AU_BECS = :au_becs
369
379
  BACS = :bacs
370
- BASE = :base
371
380
  BOOK = :book
372
381
  CHECK = :check
373
382
  EFT = :eft
374
- ETHEREUM = :ethereum
375
383
  INTERAC = :interac
376
384
  NEFT = :neft
377
385
  NZ_BECS = :nz_becs
378
- POLYGON = :polygon
379
386
  RTP = :rtp
380
387
  SEPA = :sepa
381
388
  SIGNET = :signet
382
- SOLANA = :solana
389
+ STABLECOIN = :stablecoin
383
390
  WIRE = :wire
384
391
  ZENGIN = :zengin
385
392
 
@@ -51,6 +51,13 @@ module ModernTreasury
51
51
  # @return [String, nil]
52
52
  optional :internal_account_id, String
53
53
 
54
+ # @!attribute subtype
55
+ # An additional layer of classification for the type of incoming payment detail,
56
+ # e.g. `ethereum` for a `stablecoin` type.
57
+ #
58
+ # @return [String, nil]
59
+ optional :subtype, String, nil?: true
60
+
54
61
  # @!attribute type
55
62
  # One of `ach`, `wire`, `check`.
56
63
  #
@@ -64,7 +71,7 @@ module ModernTreasury
64
71
  # @return [String, nil]
65
72
  optional :virtual_account_id, String, nil?: true
66
73
 
67
- # @!method initialize(amount: nil, as_of_date: nil, currency: nil, data: nil, description: nil, direction: nil, internal_account_id: nil, type: nil, virtual_account_id: nil, request_options: {})
74
+ # @!method initialize(amount: nil, as_of_date: nil, currency: nil, data: nil, description: nil, direction: nil, internal_account_id: nil, subtype: nil, type: nil, virtual_account_id: nil, request_options: {})
68
75
  # Some parameter documentations has been truncated, see
69
76
  # {ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams} for more
70
77
  # details.
@@ -83,6 +90,8 @@ module ModernTreasury
83
90
  #
84
91
  # @param internal_account_id [String] The ID of one of your internal accounts.
85
92
  #
93
+ # @param subtype [String, nil] An additional layer of classification for the type of incoming payment detail, e
94
+ #
86
95
  # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
87
96
  #
88
97
  # @param virtual_account_id [String, nil] An optional parameter to associate the incoming payment detail to a virtual acco
@@ -107,19 +116,16 @@ module ModernTreasury
107
116
  ACH = :ach
108
117
  AU_BECS = :au_becs
109
118
  BACS = :bacs
110
- BASE = :base
111
119
  BOOK = :book
112
120
  CHECK = :check
113
121
  EFT = :eft
114
- ETHEREUM = :ethereum
115
122
  INTERAC = :interac
116
123
  NEFT = :neft
117
124
  NZ_BECS = :nz_becs
118
- POLYGON = :polygon
119
125
  RTP = :rtp
120
126
  SEPA = :sepa
121
127
  SIGNET = :signet
122
- SOLANA = :solana
128
+ STABLECOIN = :stablecoin
123
129
  WIRE = :wire
124
130
  ZENGIN = :zengin
125
131
 
@@ -52,6 +52,14 @@ module ModernTreasury
52
52
  # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status, nil]
53
53
  optional :status, enum: -> { ModernTreasury::IncomingPaymentDetailListParams::Status }
54
54
 
55
+ # @!attribute subtype
56
+ # An additional layer of classification for the type of incoming payment detail.
57
+ # For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
58
+ # `solana`.
59
+ #
60
+ # @return [String, nil]
61
+ optional :subtype, String
62
+
55
63
  # @!attribute type
56
64
  # One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
57
65
  # `wire`.
@@ -66,7 +74,7 @@ module ModernTreasury
66
74
  # @return [String, nil]
67
75
  optional :virtual_account_id, String
68
76
 
69
- # @!method initialize(after_cursor: nil, as_of_date_end: nil, as_of_date_start: nil, direction: nil, metadata: nil, per_page: nil, status: nil, type: nil, virtual_account_id: nil, request_options: {})
77
+ # @!method initialize(after_cursor: nil, as_of_date_end: nil, as_of_date_start: nil, direction: nil, metadata: nil, per_page: nil, status: nil, subtype: nil, type: nil, virtual_account_id: nil, request_options: {})
70
78
  # Some parameter documentations has been truncated, see
71
79
  # {ModernTreasury::Models::IncomingPaymentDetailListParams} for more details.
72
80
  #
@@ -84,6 +92,8 @@ module ModernTreasury
84
92
  #
85
93
  # @param status [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status] The current status of the incoming payment order. One of `pending`, `completed`,
86
94
  #
95
+ # @param subtype [String] An additional layer of classification for the type of incoming payment detail. F
96
+ #
87
97
  # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
88
98
  #
89
99
  # @param virtual_account_id [String] If the incoming payment detail is in a virtual account, the ID of the Virtual Ac
@@ -111,19 +121,16 @@ module ModernTreasury
111
121
  ACH = :ach
112
122
  AU_BECS = :au_becs
113
123
  BACS = :bacs
114
- BASE = :base
115
124
  BOOK = :book
116
125
  CHECK = :check
117
126
  EFT = :eft
118
- ETHEREUM = :ethereum
119
127
  INTERAC = :interac
120
128
  NEFT = :neft
121
129
  NZ_BECS = :nz_becs
122
- POLYGON = :polygon
123
130
  RTP = :rtp
124
131
  SEPA = :sepa
125
132
  SIGNET = :signet
126
- SOLANA = :solana
133
+ STABLECOIN = :stablecoin
127
134
  WIRE = :wire
128
135
  ZENGIN = :zengin
129
136
 
@@ -288,7 +288,6 @@ module ModernTreasury
288
288
  ACH = :ach
289
289
  AU_BECS = :au_becs
290
290
  BACS = :bacs
291
- BASE = :base
292
291
  BOOK = :book
293
292
  CARD = :card
294
293
  CHATS = :chats
@@ -296,7 +295,6 @@ module ModernTreasury
296
295
  CROSS_BORDER = :cross_border
297
296
  DK_NETS = :dk_nets
298
297
  EFT = :eft
299
- ETHEREUM = :ethereum
300
298
  GB_FPS = :gb_fps
301
299
  HU_ICS = :hu_ics
302
300
  INTERAC = :interac
@@ -306,7 +304,6 @@ module ModernTreasury
306
304
  NICS = :nics
307
305
  NZ_BECS = :nz_becs
308
306
  PL_ELIXIR = :pl_elixir
309
- POLYGON = :polygon
310
307
  PROVXCHANGE = :provxchange
311
308
  RO_SENT = :ro_sent
312
309
  RTP = :rtp
@@ -317,7 +314,6 @@ module ModernTreasury
317
314
  SIC = :sic
318
315
  SIGNET = :signet
319
316
  SKNBI = :sknbi
320
- SOLANA = :solana
321
317
  STABLECOIN = :stablecoin
322
318
  WIRE = :wire
323
319
  ZENGIN = :zengin
@@ -14,8 +14,8 @@ module ModernTreasury
14
14
  required :connection_id, String
15
15
 
16
16
  # @!attribute currency
17
- # Either "USD" or "CAD". Internal accounts created at Increase only supports
18
- # "USD".
17
+ # The currency of the internal account. Supports "USD" and "CAD" for fiat, and
18
+ # "USDC", "USDG", and "PYUSD" for stablecoin accounts.
19
19
  #
20
20
  # @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency]
21
21
  required :currency, enum: -> { ModernTreasury::InternalAccountCreateParams::Currency }
@@ -97,7 +97,7 @@ module ModernTreasury
97
97
  #
98
98
  # @param connection_id [String] The identifier of the financial institution the account belongs to.
99
99
  #
100
- # @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] Either "USD" or "CAD". Internal accounts created at Increase only supports "USD"
100
+ # @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] The currency of the internal account. Supports "USD" and "CAD" for fiat, and "US
101
101
  #
102
102
  # @param name [String] The nickname of the account.
103
103
  #
@@ -123,13 +123,16 @@ module ModernTreasury
123
123
  #
124
124
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
125
125
 
126
- # Either "USD" or "CAD". Internal accounts created at Increase only supports
127
- # "USD".
126
+ # The currency of the internal account. Supports "USD" and "CAD" for fiat, and
127
+ # "USDC", "USDG", and "PYUSD" for stablecoin accounts.
128
128
  module Currency
129
129
  extend ModernTreasury::Internal::Type::Enum
130
130
 
131
131
  USD = :USD
132
132
  CAD = :CAD
133
+ USDC = :USDC
134
+ USDG = :USDG
135
+ PYUSD = :PYUSD
133
136
 
134
137
  # @!method self.values
135
138
  # @return [Array<Symbol>]
@@ -223,7 +226,6 @@ module ModernTreasury
223
226
  ACH = :ach
224
227
  AU_BECS = :au_becs
225
228
  BACS = :bacs
226
- BASE = :base
227
229
  BOOK = :book
228
230
  CARD = :card
229
231
  CHATS = :chats
@@ -231,7 +233,6 @@ module ModernTreasury
231
233
  CROSS_BORDER = :cross_border
232
234
  DK_NETS = :dk_nets
233
235
  EFT = :eft
234
- ETHEREUM = :ethereum
235
236
  GB_FPS = :gb_fps
236
237
  HU_ICS = :hu_ics
237
238
  INTERAC = :interac
@@ -241,7 +242,6 @@ module ModernTreasury
241
242
  NICS = :nics
242
243
  NZ_BECS = :nz_becs
243
244
  PL_ELIXIR = :pl_elixir
244
- POLYGON = :polygon
245
245
  PROVXCHANGE = :provxchange
246
246
  RO_SENT = :ro_sent
247
247
  RTP = :rtp
@@ -252,7 +252,6 @@ module ModernTreasury
252
252
  SIC = :sic
253
253
  SIGNET = :signet
254
254
  SKNBI = :sknbi
255
- SOLANA = :solana
256
255
  STABLECOIN = :stablecoin
257
256
  WIRE = :wire
258
257
  ZENGIN = :zengin