modern_treasury 0.26.0 → 0.28.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 (216) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +71 -0
  3. data/README.md +4 -4
  4. data/lib/modern_treasury/client.rb +14 -0
  5. data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
  6. data/lib/modern_treasury/internal/util.rb +3 -1
  7. data/lib/modern_treasury/models/bulk_request_create_params.rb +65 -202
  8. data/lib/modern_treasury/models/child_legal_entity.rb +121 -3
  9. data/lib/modern_treasury/models/child_legal_entity_create.rb +35 -1
  10. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +38 -1
  11. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
  12. data/lib/modern_treasury/models/counterparty_create_params.rb +38 -14
  13. data/lib/modern_treasury/models/currency.rb +0 -3
  14. data/lib/modern_treasury/models/document.rb +1 -73
  15. data/lib/modern_treasury/models/document_create_params.rb +11 -11
  16. data/lib/modern_treasury/models/document_list_params.rb +11 -11
  17. data/lib/modern_treasury/models/expected_payment.rb +2 -3
  18. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  19. data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -16
  20. data/lib/modern_treasury/models/expected_payment_type.rb +1 -13
  21. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  22. data/lib/modern_treasury/models/external_account_create_params.rb +0 -13
  23. data/lib/modern_treasury/models/external_account_verify_params.rb +0 -11
  24. data/lib/modern_treasury/models/external_account_verify_response.rb +0 -11
  25. data/lib/modern_treasury/models/hold_list_params.rb +8 -11
  26. data/lib/modern_treasury/models/identification_create_request.rb +75 -0
  27. data/lib/modern_treasury/models/incoming_payment_detail.rb +15 -14
  28. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +11 -7
  29. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +15 -12
  30. data/lib/modern_treasury/models/internal_account.rb +12 -12
  31. data/lib/modern_treasury/models/internal_account_create_params.rb +37 -33
  32. data/lib/modern_treasury/models/internal_account_list_params.rb +0 -11
  33. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -11
  34. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
  35. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +20 -11
  36. data/lib/modern_treasury/models/invoice.rb +25 -1
  37. data/lib/modern_treasury/models/invoice_create_params.rb +3 -4
  38. data/lib/modern_treasury/models/invoice_update_params.rb +3 -4
  39. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +10 -1
  40. data/lib/modern_treasury/models/ledger_balance.rb +22 -1
  41. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  42. data/lib/modern_treasury/models/ledger_entry_create_request.rb +19 -10
  43. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +69 -10
  44. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  45. data/lib/modern_treasury/models/legal_entity.rb +121 -3
  46. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +14 -1
  47. data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
  48. data/lib/modern_treasury/models/legal_entity_create_params.rb +34 -1
  49. data/lib/modern_treasury/models/legal_entity_update_params.rb +34 -1
  50. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
  51. data/lib/modern_treasury/models/payment_order.rb +9 -10
  52. data/lib/modern_treasury/models/payment_order_create_async_params.rb +4 -18
  53. data/lib/modern_treasury/models/payment_order_create_params.rb +15 -29
  54. data/lib/modern_treasury/models/payment_order_list_params.rb +0 -11
  55. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
  56. data/lib/modern_treasury/models/payment_order_type.rb +2 -14
  57. data/lib/modern_treasury/models/payment_order_update_params.rb +4 -18
  58. data/lib/modern_treasury/models/payment_reference.rb +5 -5
  59. data/lib/modern_treasury/models/reconciliation_rule.rb +3 -16
  60. data/lib/modern_treasury/models/return_object.rb +11 -8
  61. data/lib/modern_treasury/models/routing_detail.rb +0 -13
  62. data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -13
  63. data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -11
  64. data/lib/modern_treasury/models/third_party_verification.rb +2 -0
  65. data/lib/modern_treasury/models/transaction.rb +17 -20
  66. data/lib/modern_treasury/models/transaction_create_params.rb +23 -25
  67. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
  68. data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -13
  69. data/lib/modern_treasury/models.rb +2 -0
  70. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  71. data/lib/modern_treasury/resources/expected_payments.rb +3 -3
  72. data/lib/modern_treasury/resources/holds.rb +3 -3
  73. data/lib/modern_treasury/resources/incoming_payment_details.rb +7 -3
  74. data/lib/modern_treasury/resources/internal_accounts.rb +8 -6
  75. data/lib/modern_treasury/resources/invoices.rb +2 -2
  76. data/lib/modern_treasury/resources/ledger_account_settlements.rb +3 -1
  77. data/lib/modern_treasury/resources/legal_entities.rb +33 -2
  78. data/lib/modern_treasury/resources/payment_orders.rb +3 -3
  79. data/lib/modern_treasury/resources/transactions.rb +5 -3
  80. data/lib/modern_treasury/version.rb +1 -1
  81. data/lib/modern_treasury.rb +1 -0
  82. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +104 -522
  83. data/rbi/modern_treasury/models/child_legal_entity.rbi +452 -5
  84. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +68 -0
  85. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +74 -0
  86. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
  87. data/rbi/modern_treasury/models/counterparty_create_params.rbi +74 -65
  88. data/rbi/modern_treasury/models/currency.rbi +0 -3
  89. data/rbi/modern_treasury/models/document.rbi +0 -87
  90. data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
  91. data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
  92. data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
  93. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
  94. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -61
  95. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -18
  96. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
  97. data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -65
  98. data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -55
  99. data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -55
  100. data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
  101. data/rbi/modern_treasury/models/identification_create_request.rbi +375 -0
  102. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +17 -43
  103. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +12 -27
  104. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +20 -33
  105. data/rbi/modern_treasury/models/internal_account.rbi +14 -55
  106. data/rbi/modern_treasury/models/internal_account_create_params.rbi +60 -77
  107. data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -55
  108. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -55
  109. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
  110. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +31 -15
  111. data/rbi/modern_treasury/models/invoice.rbi +27 -3
  112. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -6
  113. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -6
  114. data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +10 -0
  115. data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
  116. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  117. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +26 -10
  118. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +89 -13
  119. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  120. data/rbi/modern_treasury/models/legal_entity.rbi +451 -5
  121. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +18 -3
  122. data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
  123. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +68 -0
  124. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +68 -0
  125. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
  126. data/rbi/modern_treasury/models/payment_order.rbi +30 -32
  127. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +6 -73
  128. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -95
  129. data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -55
  130. data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
  131. data/rbi/modern_treasury/models/payment_order_type.rbi +2 -16
  132. data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -73
  133. data/rbi/modern_treasury/models/payment_reference.rbi +24 -24
  134. data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -43
  135. data/rbi/modern_treasury/models/return_object.rbi +33 -29
  136. data/rbi/modern_treasury/models/routing_detail.rbi +0 -59
  137. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -65
  138. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -55
  139. data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
  140. data/rbi/modern_treasury/models/transaction.rbi +24 -35
  141. data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -72
  142. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
  143. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -65
  144. data/rbi/modern_treasury/models.rbi +3 -0
  145. data/rbi/modern_treasury/resources/bulk_requests.rbi +3 -2
  146. data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
  147. data/rbi/modern_treasury/resources/holds.rbi +3 -5
  148. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +10 -2
  149. data/rbi/modern_treasury/resources/internal_accounts.rbi +15 -8
  150. data/rbi/modern_treasury/resources/invoices.rbi +4 -6
  151. data/rbi/modern_treasury/resources/ledger_account_settlements.rbi +4 -0
  152. data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
  153. data/rbi/modern_treasury/resources/payment_orders.rbi +9 -12
  154. data/rbi/modern_treasury/resources/transactions.rbi +11 -7
  155. data/sig/modern_treasury/models/bulk_request_create_params.rbs +45 -207
  156. data/sig/modern_treasury/models/child_legal_entity.rbs +179 -2
  157. data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
  158. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
  159. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
  160. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -26
  161. data/sig/modern_treasury/models/currency.rbs +0 -6
  162. data/sig/modern_treasury/models/document.rbs +0 -57
  163. data/sig/modern_treasury/models/document_create_params.rbs +22 -22
  164. data/sig/modern_treasury/models/document_list_params.rbs +22 -22
  165. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -22
  166. data/sig/modern_treasury/models/expected_payment_type.rbs +0 -22
  167. data/sig/modern_treasury/models/external_account_create_params.rbs +0 -26
  168. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -22
  169. data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -22
  170. data/sig/modern_treasury/models/identification_create_request.rbs +150 -0
  171. data/sig/modern_treasury/models/incoming_payment_detail.rbs +7 -16
  172. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +7 -12
  173. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +9 -12
  174. data/sig/modern_treasury/models/internal_account.rbs +5 -22
  175. data/sig/modern_treasury/models/internal_account_create_params.rbs +22 -33
  176. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -22
  177. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -22
  178. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
  179. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
  180. data/sig/modern_treasury/models/invoice.rbs +18 -3
  181. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +5 -0
  182. data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
  183. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  184. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
  185. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
  186. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  187. data/sig/modern_treasury/models/legal_entity.rbs +179 -2
  188. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
  189. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
  190. data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
  191. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
  192. data/sig/modern_treasury/models/payment_order.rbs +10 -10
  193. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -26
  194. data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -48
  195. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -22
  196. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
  197. data/sig/modern_treasury/models/payment_order_type.rbs +0 -22
  198. data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -26
  199. data/sig/modern_treasury/models/payment_reference.rbs +10 -10
  200. data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -22
  201. data/sig/modern_treasury/models/return_object.rbs +18 -12
  202. data/sig/modern_treasury/models/routing_detail.rbs +0 -26
  203. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -26
  204. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -22
  205. data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
  206. data/sig/modern_treasury/models/transaction.rbs +7 -26
  207. data/sig/modern_treasury/models/transaction_create_params.rbs +14 -27
  208. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
  209. data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -26
  210. data/sig/modern_treasury/models.rbs +2 -0
  211. data/sig/modern_treasury/resources/incoming_payment_details.rbs +2 -0
  212. data/sig/modern_treasury/resources/internal_accounts.rbs +3 -2
  213. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +1 -0
  214. data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
  215. data/sig/modern_treasury/resources/transactions.rbs +2 -1
  216. metadata +5 -2
@@ -205,6 +205,18 @@ module ModernTreasury
205
205
  sig { returns(T.nilable(String)) }
206
206
  attr_accessor :suffix
207
207
 
208
+ # Acceptance of terms of use by the legal entity.
209
+ sig { returns(T.nilable(ModernTreasury::ChildLegalEntity::TermsOfUse)) }
210
+ attr_reader :terms_of_use
211
+
212
+ sig do
213
+ params(
214
+ terms_of_use:
215
+ T.nilable(ModernTreasury::ChildLegalEntity::TermsOfUse::OrHash)
216
+ ).void
217
+ end
218
+ attr_writer :terms_of_use
219
+
208
220
  # Deprecated. Use `third_party_verifications` instead.
209
221
  sig { returns(T.nilable(ModernTreasury::ThirdPartyVerification)) }
210
222
  attr_reader :third_party_verification
@@ -302,6 +314,8 @@ module ModernTreasury
302
314
  service_provider_legal_entity_id: T.nilable(String),
303
315
  status: T.nilable(ModernTreasury::ChildLegalEntity::Status::OrSymbol),
304
316
  suffix: T.nilable(String),
317
+ terms_of_use:
318
+ T.nilable(ModernTreasury::ChildLegalEntity::TermsOfUse::OrHash),
305
319
  third_party_verification:
306
320
  T.nilable(ModernTreasury::ThirdPartyVerification::OrHash),
307
321
  third_party_verifications:
@@ -394,6 +408,8 @@ module ModernTreasury
394
408
  status:,
395
409
  # An individual's suffix.
396
410
  suffix:,
411
+ # Acceptance of terms of use by the legal entity.
412
+ terms_of_use:,
397
413
  # Deprecated. Use `third_party_verifications` instead.
398
414
  third_party_verification:,
399
415
  # A list of third-party verifications run by external vendors.
@@ -464,6 +480,8 @@ module ModernTreasury
464
480
  status:
465
481
  T.nilable(ModernTreasury::ChildLegalEntity::Status::TaggedSymbol),
466
482
  suffix: T.nilable(String),
483
+ terms_of_use:
484
+ T.nilable(ModernTreasury::ChildLegalEntity::TermsOfUse),
467
485
  third_party_verification:
468
486
  T.nilable(ModernTreasury::ThirdPartyVerification),
469
487
  third_party_verifications:
@@ -533,6 +551,11 @@ module ModernTreasury
533
551
  sig { returns(T.nilable(String)) }
534
552
  attr_accessor :postal_code
535
553
 
554
+ # Whether this address is the primary address for the legal entity. Optional; when
555
+ # omitted it is inferred from the address types.
556
+ sig { returns(T.nilable(T::Boolean)) }
557
+ attr_accessor :primary
558
+
536
559
  # Region or State.
537
560
  sig { returns(T.nilable(String)) }
538
561
  attr_accessor :region
@@ -556,6 +579,7 @@ module ModernTreasury
556
579
  locality: T.nilable(String),
557
580
  object: String,
558
581
  postal_code: T.nilable(String),
582
+ primary: T.nilable(T::Boolean),
559
583
  region: T.nilable(String),
560
584
  updated_at: Time
561
585
  ).returns(T.attached_class)
@@ -578,6 +602,9 @@ module ModernTreasury
578
602
  object:,
579
603
  # The postal code of the address.
580
604
  postal_code:,
605
+ # Whether this address is the primary address for the legal entity. Optional; when
606
+ # omitted it is inferred from the address types.
607
+ primary:,
581
608
  # Region or State.
582
609
  region:,
583
610
  updated_at:
@@ -601,6 +628,7 @@ module ModernTreasury
601
628
  locality: T.nilable(String),
602
629
  object: String,
603
630
  postal_code: T.nilable(String),
631
+ primary: T.nilable(T::Boolean),
604
632
  region: T.nilable(String),
605
633
  updated_at: Time
606
634
  }
@@ -626,6 +654,11 @@ module ModernTreasury
626
654
  :business,
627
655
  ModernTreasury::ChildLegalEntity::Address::AddressType::TaggedSymbol
628
656
  )
657
+ BUSINESS_PHYSICAL =
658
+ T.let(
659
+ :business_physical,
660
+ ModernTreasury::ChildLegalEntity::Address::AddressType::TaggedSymbol
661
+ )
629
662
  BUSINESS_REGISTERED =
630
663
  T.let(
631
664
  :business_registered,
@@ -801,6 +834,36 @@ module ModernTreasury
801
834
  :ar_cuit,
802
835
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
803
836
  )
837
+ AT_ATIN =
838
+ T.let(
839
+ :at_atin,
840
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
841
+ )
842
+ AT_VAT =
843
+ T.let(
844
+ :at_vat,
845
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
846
+ )
847
+ AU_ABN =
848
+ T.let(
849
+ :au_abn,
850
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
851
+ )
852
+ AU_TFN =
853
+ T.let(
854
+ :au_tfn,
855
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
856
+ )
857
+ BE_ENT =
858
+ T.let(
859
+ :be_ent,
860
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
861
+ )
862
+ BE_NRN =
863
+ T.let(
864
+ :be_nrn,
865
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
866
+ )
804
867
  BR_CNPJ =
805
868
  T.let(
806
869
  :br_cnpj,
@@ -811,11 +874,26 @@ module ModernTreasury
811
874
  :br_cpf,
812
875
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
813
876
  )
877
+ CA_BN =
878
+ T.let(
879
+ :ca_bn,
880
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
881
+ )
814
882
  CA_SIN =
815
883
  T.let(
816
884
  :ca_sin,
817
885
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
818
886
  )
887
+ CH_AHV =
888
+ T.let(
889
+ :ch_ahv,
890
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
891
+ )
892
+ CH_UID =
893
+ T.let(
894
+ :ch_uid,
895
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
896
+ )
819
897
  CL_RUN =
820
898
  T.let(
821
899
  :cl_run,
@@ -836,11 +914,121 @@ module ModernTreasury
836
914
  :co_nit,
837
915
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
838
916
  )
917
+ CY_TIN =
918
+ T.let(
919
+ :cy_tin,
920
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
921
+ )
922
+ CZ_ICO =
923
+ T.let(
924
+ :cz_ico,
925
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
926
+ )
927
+ CZ_RC =
928
+ T.let(
929
+ :cz_rc,
930
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
931
+ )
932
+ DE_STID =
933
+ T.let(
934
+ :de_stid,
935
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
936
+ )
937
+ DE_STNR =
938
+ T.let(
939
+ :de_stnr,
940
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
941
+ )
942
+ DE_VAT =
943
+ T.let(
944
+ :de_vat,
945
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
946
+ )
947
+ DK_CPR =
948
+ T.let(
949
+ :dk_cpr,
950
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
951
+ )
952
+ DK_CVR =
953
+ T.let(
954
+ :dk_cvr,
955
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
956
+ )
839
957
  DRIVERS_LICENSE =
840
958
  T.let(
841
959
  :drivers_license,
842
960
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
843
961
  )
962
+ EE_IK =
963
+ T.let(
964
+ :ee_ik,
965
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
966
+ )
967
+ EE_RK =
968
+ T.let(
969
+ :ee_rk,
970
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
971
+ )
972
+ ES_NIE =
973
+ T.let(
974
+ :es_nie,
975
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
976
+ )
977
+ ES_NIF =
978
+ T.let(
979
+ :es_nif,
980
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
981
+ )
982
+ FI_HETU =
983
+ T.let(
984
+ :fi_hetu,
985
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
986
+ )
987
+ FI_YTJ =
988
+ T.let(
989
+ :fi_ytj,
990
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
991
+ )
992
+ FR_NIF =
993
+ T.let(
994
+ :fr_nif,
995
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
996
+ )
997
+ FR_SIREN =
998
+ T.let(
999
+ :fr_siren,
1000
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1001
+ )
1002
+ FR_VAT =
1003
+ T.let(
1004
+ :fr_vat,
1005
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1006
+ )
1007
+ GB_NINO =
1008
+ T.let(
1009
+ :gb_nino,
1010
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1011
+ )
1012
+ GB_UTR =
1013
+ T.let(
1014
+ :gb_utr,
1015
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1016
+ )
1017
+ GB_VAT =
1018
+ T.let(
1019
+ :gb_vat,
1020
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1021
+ )
1022
+ GENERIC_INTERNATIONAL =
1023
+ T.let(
1024
+ :generic_international,
1025
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1026
+ )
1027
+ GR_VAT =
1028
+ T.let(
1029
+ :gr_vat,
1030
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1031
+ )
844
1032
  HN_ID =
845
1033
  T.let(
846
1034
  :hn_id,
@@ -851,16 +1039,61 @@ module ModernTreasury
851
1039
  :hn_rtn,
852
1040
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
853
1041
  )
1042
+ HR_OIB =
1043
+ T.let(
1044
+ :hr_oib,
1045
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1046
+ )
1047
+ HU_ADJ =
1048
+ T.let(
1049
+ :hu_adj,
1050
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1051
+ )
1052
+ HU_ANUM =
1053
+ T.let(
1054
+ :hu_anum,
1055
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1056
+ )
854
1057
  IE_PPS =
855
1058
  T.let(
856
1059
  :ie_pps,
857
1060
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
858
1061
  )
1062
+ IE_TRN =
1063
+ T.let(
1064
+ :ie_trn,
1065
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1066
+ )
859
1067
  IN_LEI =
860
1068
  T.let(
861
1069
  :in_lei,
862
1070
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
863
1071
  )
1072
+ IS_KNT =
1073
+ T.let(
1074
+ :is_knt,
1075
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1076
+ )
1077
+ IT_CF =
1078
+ T.let(
1079
+ :it_cf,
1080
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1081
+ )
1082
+ IT_PIVA =
1083
+ T.let(
1084
+ :it_piva,
1085
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1086
+ )
1087
+ JP_HB =
1088
+ T.let(
1089
+ :jp_hb,
1090
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1091
+ )
1092
+ JP_MN =
1093
+ T.let(
1094
+ :jp_mn,
1095
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1096
+ )
864
1097
  KR_BRN =
865
1098
  T.let(
866
1099
  :kr_brn,
@@ -876,11 +1109,136 @@ module ModernTreasury
876
1109
  :kr_rrn,
877
1110
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
878
1111
  )
1112
+ LI_PEID =
1113
+ T.let(
1114
+ :li_peid,
1115
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1116
+ )
1117
+ LT_AK =
1118
+ T.let(
1119
+ :lt_ak,
1120
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1121
+ )
1122
+ LT_JAK =
1123
+ T.let(
1124
+ :lt_jak,
1125
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1126
+ )
1127
+ LU_MTC =
1128
+ T.let(
1129
+ :lu_mtc,
1130
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1131
+ )
1132
+ LU_VAT =
1133
+ T.let(
1134
+ :lu_vat,
1135
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1136
+ )
1137
+ LV_PK =
1138
+ T.let(
1139
+ :lv_pk,
1140
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1141
+ )
1142
+ LV_RN =
1143
+ T.let(
1144
+ :lv_rn,
1145
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1146
+ )
1147
+ MT_TIN =
1148
+ T.let(
1149
+ :mt_tin,
1150
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1151
+ )
1152
+ MT_VAT =
1153
+ T.let(
1154
+ :mt_vat,
1155
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1156
+ )
1157
+ MX_CURP =
1158
+ T.let(
1159
+ :mx_curp,
1160
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1161
+ )
1162
+ MX_INE =
1163
+ T.let(
1164
+ :mx_ine,
1165
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1166
+ )
1167
+ MX_RFC =
1168
+ T.let(
1169
+ :mx_rfc,
1170
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1171
+ )
1172
+ NATIONAL_ID =
1173
+ T.let(
1174
+ :national_id,
1175
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1176
+ )
1177
+ NL_BSN =
1178
+ T.let(
1179
+ :nl_bsn,
1180
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1181
+ )
1182
+ NL_BTW =
1183
+ T.let(
1184
+ :nl_btw,
1185
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1186
+ )
1187
+ NL_RSIN =
1188
+ T.let(
1189
+ :nl_rsin,
1190
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1191
+ )
1192
+ NO_FDN =
1193
+ T.let(
1194
+ :no_fdn,
1195
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1196
+ )
1197
+ NO_MVA =
1198
+ T.let(
1199
+ :no_mva,
1200
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1201
+ )
1202
+ NO_ORGNR =
1203
+ T.let(
1204
+ :no_orgnr,
1205
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1206
+ )
1207
+ NZ_IRD =
1208
+ T.let(
1209
+ :nz_ird,
1210
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1211
+ )
879
1212
  PASSPORT =
880
1213
  T.let(
881
1214
  :passport,
882
1215
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
883
1216
  )
1217
+ PL_NIP =
1218
+ T.let(
1219
+ :pl_nip,
1220
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1221
+ )
1222
+ PL_PESEL =
1223
+ T.let(
1224
+ :pl_pesel,
1225
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1226
+ )
1227
+ PT_NIF =
1228
+ T.let(
1229
+ :pt_nif,
1230
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1231
+ )
1232
+ RO_CNP =
1233
+ T.let(
1234
+ :ro_cnp,
1235
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1236
+ )
1237
+ RO_CUI =
1238
+ T.let(
1239
+ :ro_cui,
1240
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1241
+ )
884
1242
  SA_TIN =
885
1243
  T.let(
886
1244
  :sa_tin,
@@ -891,6 +1249,51 @@ module ModernTreasury
891
1249
  :sa_vat,
892
1250
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
893
1251
  )
1252
+ SE_ORGNR =
1253
+ T.let(
1254
+ :se_orgnr,
1255
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1256
+ )
1257
+ SE_PNMR =
1258
+ T.let(
1259
+ :se_pnmr,
1260
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1261
+ )
1262
+ SG_FIN =
1263
+ T.let(
1264
+ :sg_fin,
1265
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1266
+ )
1267
+ SG_NRIC =
1268
+ T.let(
1269
+ :sg_nric,
1270
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1271
+ )
1272
+ SG_UEN =
1273
+ T.let(
1274
+ :sg_uen,
1275
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1276
+ )
1277
+ SI_DAV =
1278
+ T.let(
1279
+ :si_dav,
1280
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1281
+ )
1282
+ SI_TIN =
1283
+ T.let(
1284
+ :si_tin,
1285
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1286
+ )
1287
+ SK_ICO =
1288
+ T.let(
1289
+ :sk_ico,
1290
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1291
+ )
1292
+ SK_RC =
1293
+ T.let(
1294
+ :sk_rc,
1295
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1296
+ )
894
1297
  US_EIN =
895
1298
  T.let(
896
1299
  :us_ein,
@@ -906,6 +1309,11 @@ module ModernTreasury
906
1309
  :us_ssn,
907
1310
  ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
908
1311
  )
1312
+ UY_RUT =
1313
+ T.let(
1314
+ :uy_rut,
1315
+ ModernTreasury::ChildLegalEntity::Identification::IDType::TaggedSymbol
1316
+ )
909
1317
  VN_TIN =
910
1318
  T.let(
911
1319
  :vn_tin,
@@ -944,11 +1352,6 @@ module ModernTreasury
944
1352
  :individual,
945
1353
  ModernTreasury::ChildLegalEntity::LegalEntityType::TaggedSymbol
946
1354
  )
947
- JOINT =
948
- T.let(
949
- :joint,
950
- ModernTreasury::ChildLegalEntity::LegalEntityType::TaggedSymbol
951
- )
952
1355
 
953
1356
  sig do
954
1357
  override.returns(
@@ -1156,6 +1559,50 @@ module ModernTreasury
1156
1559
  def self.values
1157
1560
  end
1158
1561
  end
1562
+
1563
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
1564
+ OrHash =
1565
+ T.type_alias do
1566
+ T.any(
1567
+ ModernTreasury::ChildLegalEntity::TermsOfUse,
1568
+ ModernTreasury::Internal::AnyHash
1569
+ )
1570
+ end
1571
+
1572
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
1573
+ sig { returns(T.nilable(Time)) }
1574
+ attr_reader :accepted_at
1575
+
1576
+ sig { params(accepted_at: Time).void }
1577
+ attr_writer :accepted_at
1578
+
1579
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
1580
+ # IPv6 formats.
1581
+ sig { returns(T.nilable(String)) }
1582
+ attr_reader :ip_address
1583
+
1584
+ sig { params(ip_address: String).void }
1585
+ attr_writer :ip_address
1586
+
1587
+ # Acceptance of terms of use by the legal entity.
1588
+ sig do
1589
+ params(accepted_at: Time, ip_address: String).returns(
1590
+ T.attached_class
1591
+ )
1592
+ end
1593
+ def self.new(
1594
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
1595
+ accepted_at: nil,
1596
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
1597
+ # IPv6 formats.
1598
+ ip_address: nil
1599
+ )
1600
+ end
1601
+
1602
+ sig { override.returns({ accepted_at: Time, ip_address: String }) }
1603
+ def to_hash
1604
+ end
1605
+ end
1159
1606
  end
1160
1607
  end
1161
1608
  end
@@ -279,6 +279,22 @@ module ModernTreasury
279
279
  sig { returns(T.nilable(String)) }
280
280
  attr_accessor :suffix
281
281
 
282
+ # Acceptance of terms of use by the legal entity.
283
+ sig do
284
+ returns(T.nilable(ModernTreasury::ChildLegalEntityCreate::TermsOfUse))
285
+ end
286
+ attr_reader :terms_of_use
287
+
288
+ sig do
289
+ params(
290
+ terms_of_use:
291
+ T.nilable(
292
+ ModernTreasury::ChildLegalEntityCreate::TermsOfUse::OrHash
293
+ )
294
+ ).void
295
+ end
296
+ attr_writer :terms_of_use
297
+
282
298
  # Deprecated. Use `third_party_verifications` instead.
283
299
  sig { returns(T.nilable(ModernTreasury::ThirdPartyVerification)) }
284
300
  attr_reader :third_party_verification
@@ -387,6 +403,10 @@ module ModernTreasury
387
403
  ),
388
404
  service_provider_legal_entity_id: T.nilable(String),
389
405
  suffix: T.nilable(String),
406
+ terms_of_use:
407
+ T.nilable(
408
+ ModernTreasury::ChildLegalEntityCreate::TermsOfUse::OrHash
409
+ ),
390
410
  third_party_verification:
391
411
  T.nilable(ModernTreasury::ThirdPartyVerification::OrHash),
392
412
  third_party_verifications:
@@ -476,6 +496,8 @@ module ModernTreasury
476
496
  service_provider_legal_entity_id: nil,
477
497
  # An individual's suffix.
478
498
  suffix: nil,
499
+ # Acceptance of terms of use by the legal entity.
500
+ terms_of_use: nil,
479
501
  # Deprecated. Use `third_party_verifications` instead.
480
502
  third_party_verification: nil,
481
503
  # A list of third-party verifications run by external vendors.
@@ -545,6 +567,8 @@ module ModernTreasury
545
567
  ),
546
568
  service_provider_legal_entity_id: T.nilable(String),
547
569
  suffix: T.nilable(String),
570
+ terms_of_use:
571
+ T.nilable(ModernTreasury::ChildLegalEntityCreate::TermsOfUse),
548
572
  third_party_verification:
549
573
  T.nilable(ModernTreasury::ThirdPartyVerification),
550
574
  third_party_verifications:
@@ -879,6 +903,50 @@ module ModernTreasury
879
903
  def self.values
880
904
  end
881
905
  end
906
+
907
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
908
+ OrHash =
909
+ T.type_alias do
910
+ T.any(
911
+ ModernTreasury::ChildLegalEntityCreate::TermsOfUse,
912
+ ModernTreasury::Internal::AnyHash
913
+ )
914
+ end
915
+
916
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
917
+ sig { returns(T.nilable(Time)) }
918
+ attr_reader :accepted_at
919
+
920
+ sig { params(accepted_at: Time).void }
921
+ attr_writer :accepted_at
922
+
923
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
924
+ # IPv6 formats.
925
+ sig { returns(T.nilable(String)) }
926
+ attr_reader :ip_address
927
+
928
+ sig { params(ip_address: String).void }
929
+ attr_writer :ip_address
930
+
931
+ # Acceptance of terms of use by the legal entity.
932
+ sig do
933
+ params(accepted_at: Time, ip_address: String).returns(
934
+ T.attached_class
935
+ )
936
+ end
937
+ def self.new(
938
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
939
+ accepted_at: nil,
940
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
941
+ # IPv6 formats.
942
+ ip_address: nil
943
+ )
944
+ end
945
+
946
+ sig { override.returns({ accepted_at: Time, ip_address: String }) }
947
+ def to_hash
948
+ end
949
+ end
882
950
  end
883
951
  end
884
952
  end