modern_treasury 0.27.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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -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/models/bulk_request_create_params.rb +65 -190
  7. data/lib/modern_treasury/models/child_legal_entity.rb +121 -3
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +35 -1
  9. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +38 -1
  10. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
  11. data/lib/modern_treasury/models/counterparty_create_params.rb +38 -10
  12. data/lib/modern_treasury/models/currency.rb +0 -2
  13. data/lib/modern_treasury/models/document.rb +1 -73
  14. data/lib/modern_treasury/models/document_create_params.rb +11 -11
  15. data/lib/modern_treasury/models/document_list_params.rb +11 -11
  16. data/lib/modern_treasury/models/expected_payment.rb +2 -3
  17. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  18. data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
  19. data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
  20. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  21. data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
  22. data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
  23. data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
  24. data/lib/modern_treasury/models/hold_list_params.rb +8 -11
  25. data/lib/modern_treasury/models/identification_create_request.rb +75 -0
  26. data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
  27. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
  28. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
  29. data/lib/modern_treasury/models/internal_account.rb +12 -8
  30. data/lib/modern_treasury/models/internal_account_create_params.rb +35 -30
  31. data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
  32. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
  33. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
  34. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +20 -11
  35. data/lib/modern_treasury/models/invoice.rb +6 -6
  36. data/lib/modern_treasury/models/invoice_create_params.rb +3 -4
  37. data/lib/modern_treasury/models/invoice_update_params.rb +3 -4
  38. data/lib/modern_treasury/models/ledger_balance.rb +22 -1
  39. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  40. data/lib/modern_treasury/models/ledger_entry_create_request.rb +19 -10
  41. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +69 -10
  42. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  43. data/lib/modern_treasury/models/legal_entity.rb +121 -3
  44. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +14 -1
  45. data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
  46. data/lib/modern_treasury/models/legal_entity_create_params.rb +34 -1
  47. data/lib/modern_treasury/models/legal_entity_update_params.rb +34 -1
  48. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
  49. data/lib/modern_treasury/models/payment_order.rb +6 -9
  50. data/lib/modern_treasury/models/payment_order_create_async_params.rb +4 -14
  51. data/lib/modern_treasury/models/payment_order_create_params.rb +15 -25
  52. data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
  53. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
  54. data/lib/modern_treasury/models/payment_order_type.rb +2 -10
  55. data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
  56. data/lib/modern_treasury/models/payment_reference.rb +2 -4
  57. data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
  58. data/lib/modern_treasury/models/return_object.rb +8 -7
  59. data/lib/modern_treasury/models/routing_detail.rb +0 -9
  60. data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
  61. data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
  62. data/lib/modern_treasury/models/third_party_verification.rb +2 -0
  63. data/lib/modern_treasury/models/transaction.rb +17 -15
  64. data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
  65. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
  66. data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
  67. data/lib/modern_treasury/models.rb +2 -0
  68. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  69. data/lib/modern_treasury/resources/expected_payments.rb +3 -3
  70. data/lib/modern_treasury/resources/holds.rb +3 -3
  71. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  72. data/lib/modern_treasury/resources/internal_accounts.rb +8 -6
  73. data/lib/modern_treasury/resources/invoices.rb +2 -2
  74. data/lib/modern_treasury/resources/legal_entities.rb +33 -2
  75. data/lib/modern_treasury/resources/payment_orders.rb +3 -3
  76. data/lib/modern_treasury/resources/transactions.rb +5 -3
  77. data/lib/modern_treasury/version.rb +1 -1
  78. data/lib/modern_treasury.rb +1 -0
  79. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +104 -462
  80. data/rbi/modern_treasury/models/child_legal_entity.rbi +452 -5
  81. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +68 -0
  82. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +74 -0
  83. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
  84. data/rbi/modern_treasury/models/counterparty_create_params.rbi +74 -45
  85. data/rbi/modern_treasury/models/currency.rbi +0 -2
  86. data/rbi/modern_treasury/models/document.rbi +0 -87
  87. data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
  88. data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
  89. data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
  90. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
  91. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
  92. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
  93. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
  94. data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
  95. data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
  96. data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
  97. data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
  98. data/rbi/modern_treasury/models/identification_create_request.rbi +375 -0
  99. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
  100. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
  101. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
  102. data/rbi/modern_treasury/models/internal_account.rbi +14 -35
  103. data/rbi/modern_treasury/models/internal_account_create_params.rbi +47 -59
  104. data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
  105. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
  106. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
  107. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +31 -15
  108. data/rbi/modern_treasury/models/invoice.rbi +6 -6
  109. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -6
  110. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -6
  111. data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
  112. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  113. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +26 -10
  114. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +89 -13
  115. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  116. data/rbi/modern_treasury/models/legal_entity.rbi +451 -5
  117. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +18 -3
  118. data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
  119. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +68 -0
  120. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +68 -0
  121. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
  122. data/rbi/modern_treasury/models/payment_order.rbi +16 -28
  123. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +6 -53
  124. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -75
  125. data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
  126. data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
  127. data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
  128. data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
  129. data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
  130. data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
  131. data/rbi/modern_treasury/models/return_object.rbi +19 -25
  132. data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
  133. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
  134. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
  135. data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
  136. data/rbi/modern_treasury/models/transaction.rbi +24 -24
  137. data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
  138. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
  139. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
  140. data/rbi/modern_treasury/models.rbi +3 -0
  141. data/rbi/modern_treasury/resources/bulk_requests.rbi +3 -2
  142. data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
  143. data/rbi/modern_treasury/resources/holds.rbi +3 -5
  144. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  145. data/rbi/modern_treasury/resources/internal_accounts.rbi +15 -8
  146. data/rbi/modern_treasury/resources/invoices.rbi +4 -6
  147. data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
  148. data/rbi/modern_treasury/resources/payment_orders.rbi +9 -12
  149. data/rbi/modern_treasury/resources/transactions.rbi +11 -7
  150. data/sig/modern_treasury/models/bulk_request_create_params.rbs +45 -183
  151. data/sig/modern_treasury/models/child_legal_entity.rbs +179 -2
  152. data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
  153. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
  154. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
  155. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
  156. data/sig/modern_treasury/models/currency.rbs +0 -4
  157. data/sig/modern_treasury/models/document.rbs +0 -57
  158. data/sig/modern_treasury/models/document_create_params.rbs +22 -22
  159. data/sig/modern_treasury/models/document_list_params.rbs +22 -22
  160. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
  161. data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
  162. data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
  163. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
  164. data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
  165. data/sig/modern_treasury/models/identification_create_request.rbs +150 -0
  166. data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
  167. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
  168. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
  169. data/sig/modern_treasury/models/internal_account.rbs +5 -14
  170. data/sig/modern_treasury/models/internal_account_create_params.rbs +20 -26
  171. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
  172. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
  173. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
  174. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
  175. data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
  176. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  177. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
  178. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
  179. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  180. data/sig/modern_treasury/models/legal_entity.rbs +179 -2
  181. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
  182. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
  183. data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
  184. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
  185. data/sig/modern_treasury/models/payment_order.rbs +4 -8
  186. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -18
  187. data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -40
  188. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
  189. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
  190. data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
  191. data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
  192. data/sig/modern_treasury/models/payment_reference.rbs +4 -8
  193. data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
  194. data/sig/modern_treasury/models/return_object.rbs +12 -10
  195. data/sig/modern_treasury/models/routing_detail.rbs +0 -18
  196. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
  197. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
  198. data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
  199. data/sig/modern_treasury/models/transaction.rbs +7 -16
  200. data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
  201. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
  202. data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
  203. data/sig/modern_treasury/models.rbs +2 -0
  204. data/sig/modern_treasury/resources/internal_accounts.rbs +3 -2
  205. data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
  206. data/sig/modern_treasury/resources/transactions.rbs +2 -1
  207. metadata +5 -2
@@ -254,6 +254,12 @@ module ModernTreasury
254
254
  # @return [String, nil]
255
255
  required :suffix, String, nil?: true
256
256
 
257
+ # @!attribute terms_of_use
258
+ # Acceptance of terms of use by the legal entity.
259
+ #
260
+ # @return [ModernTreasury::Models::ChildLegalEntity::TermsOfUse, nil]
261
+ required :terms_of_use, -> { ModernTreasury::ChildLegalEntity::TermsOfUse }, nil?: true
262
+
257
263
  # @!attribute third_party_verification
258
264
  # @deprecated
259
265
  #
@@ -293,7 +299,7 @@ module ModernTreasury
293
299
  # @return [String, nil]
294
300
  required :website, String, nil?: true
295
301
 
296
- # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:)
302
+ # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, terms_of_use:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:)
297
303
  # Some parameter documentations has been truncated, see
298
304
  # {ModernTreasury::Models::ChildLegalEntity} for more details.
299
305
  #
@@ -379,6 +385,8 @@ module ModernTreasury
379
385
  #
380
386
  # @param suffix [String, nil] An individual's suffix.
381
387
  #
388
+ # @param terms_of_use [ModernTreasury::Models::ChildLegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
389
+ #
382
390
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
383
391
  #
384
392
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -454,6 +462,13 @@ module ModernTreasury
454
462
  # @return [String, nil]
455
463
  required :postal_code, String, nil?: true
456
464
 
465
+ # @!attribute primary
466
+ # Whether this address is the primary address for the legal entity. Optional; when
467
+ # omitted it is inferred from the address types.
468
+ #
469
+ # @return [Boolean, nil]
470
+ required :primary, ModernTreasury::Internal::Type::Boolean, nil?: true
471
+
457
472
  # @!attribute region
458
473
  # Region or State.
459
474
  #
@@ -465,7 +480,7 @@ module ModernTreasury
465
480
  # @return [Time]
466
481
  required :updated_at, Time
467
482
 
468
- # @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
483
+ # @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, primary:, region:, updated_at:)
469
484
  # Some parameter documentations has been truncated, see
470
485
  # {ModernTreasury::Models::ChildLegalEntity::Address} for more details.
471
486
  #
@@ -491,6 +506,8 @@ module ModernTreasury
491
506
  #
492
507
  # @param postal_code [String, nil] The postal code of the address.
493
508
  #
509
+ # @param primary [Boolean, nil] Whether this address is the primary address for the legal entity. Optional; when
510
+ #
494
511
  # @param region [String, nil] Region or State.
495
512
  #
496
513
  # @param updated_at [Time]
@@ -499,6 +516,7 @@ module ModernTreasury
499
516
  extend ModernTreasury::Internal::Type::Enum
500
517
 
501
518
  BUSINESS = :business
519
+ BUSINESS_PHYSICAL = :business_physical
502
520
  BUSINESS_REGISTERED = :business_registered
503
521
  MAILING = :mailing
504
522
  OTHER = :other
@@ -608,27 +626,102 @@ module ModernTreasury
608
626
 
609
627
  AR_CUIL = :ar_cuil
610
628
  AR_CUIT = :ar_cuit
629
+ AT_ATIN = :at_atin
630
+ AT_VAT = :at_vat
631
+ AU_ABN = :au_abn
632
+ AU_TFN = :au_tfn
633
+ BE_ENT = :be_ent
634
+ BE_NRN = :be_nrn
611
635
  BR_CNPJ = :br_cnpj
612
636
  BR_CPF = :br_cpf
637
+ CA_BN = :ca_bn
613
638
  CA_SIN = :ca_sin
639
+ CH_AHV = :ch_ahv
640
+ CH_UID = :ch_uid
614
641
  CL_RUN = :cl_run
615
642
  CL_RUT = :cl_rut
616
643
  CO_CEDULAS = :co_cedulas
617
644
  CO_NIT = :co_nit
645
+ CY_TIN = :cy_tin
646
+ CZ_ICO = :cz_ico
647
+ CZ_RC = :cz_rc
648
+ DE_STID = :de_stid
649
+ DE_STNR = :de_stnr
650
+ DE_VAT = :de_vat
651
+ DK_CPR = :dk_cpr
652
+ DK_CVR = :dk_cvr
618
653
  DRIVERS_LICENSE = :drivers_license
654
+ EE_IK = :ee_ik
655
+ EE_RK = :ee_rk
656
+ ES_NIE = :es_nie
657
+ ES_NIF = :es_nif
658
+ FI_HETU = :fi_hetu
659
+ FI_YTJ = :fi_ytj
660
+ FR_NIF = :fr_nif
661
+ FR_SIREN = :fr_siren
662
+ FR_VAT = :fr_vat
663
+ GB_NINO = :gb_nino
664
+ GB_UTR = :gb_utr
665
+ GB_VAT = :gb_vat
666
+ GENERIC_INTERNATIONAL = :generic_international
667
+ GR_VAT = :gr_vat
619
668
  HN_ID = :hn_id
620
669
  HN_RTN = :hn_rtn
670
+ HR_OIB = :hr_oib
671
+ HU_ADJ = :hu_adj
672
+ HU_ANUM = :hu_anum
621
673
  IE_PPS = :ie_pps
674
+ IE_TRN = :ie_trn
622
675
  IN_LEI = :in_lei
676
+ IS_KNT = :is_knt
677
+ IT_CF = :it_cf
678
+ IT_PIVA = :it_piva
679
+ JP_HB = :jp_hb
680
+ JP_MN = :jp_mn
623
681
  KR_BRN = :kr_brn
624
682
  KR_CRN = :kr_crn
625
683
  KR_RRN = :kr_rrn
684
+ LI_PEID = :li_peid
685
+ LT_AK = :lt_ak
686
+ LT_JAK = :lt_jak
687
+ LU_MTC = :lu_mtc
688
+ LU_VAT = :lu_vat
689
+ LV_PK = :lv_pk
690
+ LV_RN = :lv_rn
691
+ MT_TIN = :mt_tin
692
+ MT_VAT = :mt_vat
693
+ MX_CURP = :mx_curp
694
+ MX_INE = :mx_ine
695
+ MX_RFC = :mx_rfc
696
+ NATIONAL_ID = :national_id
697
+ NL_BSN = :nl_bsn
698
+ NL_BTW = :nl_btw
699
+ NL_RSIN = :nl_rsin
700
+ NO_FDN = :no_fdn
701
+ NO_MVA = :no_mva
702
+ NO_ORGNR = :no_orgnr
703
+ NZ_IRD = :nz_ird
626
704
  PASSPORT = :passport
705
+ PL_NIP = :pl_nip
706
+ PL_PESEL = :pl_pesel
707
+ PT_NIF = :pt_nif
708
+ RO_CNP = :ro_cnp
709
+ RO_CUI = :ro_cui
627
710
  SA_TIN = :sa_tin
628
711
  SA_VAT = :sa_vat
712
+ SE_ORGNR = :se_orgnr
713
+ SE_PNMR = :se_pnmr
714
+ SG_FIN = :sg_fin
715
+ SG_NRIC = :sg_nric
716
+ SG_UEN = :sg_uen
717
+ SI_DAV = :si_dav
718
+ SI_TIN = :si_tin
719
+ SK_ICO = :sk_ico
720
+ SK_RC = :sk_rc
629
721
  US_EIN = :us_ein
630
722
  US_ITIN = :us_itin
631
723
  US_SSN = :us_ssn
724
+ UY_RUT = :uy_rut
632
725
  VN_TIN = :vn_tin
633
726
 
634
727
  # @!method self.values
@@ -644,7 +737,6 @@ module ModernTreasury
644
737
 
645
738
  BUSINESS = :business
646
739
  INDIVIDUAL = :individual
647
- JOINT = :joint
648
740
 
649
741
  # @!method self.values
650
742
  # @return [Array<Symbol>]
@@ -739,6 +831,32 @@ module ModernTreasury
739
831
  # @!method self.values
740
832
  # @return [Array<Symbol>]
741
833
  end
834
+
835
+ # @see ModernTreasury::Models::ChildLegalEntity#terms_of_use
836
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
837
+ # @!attribute accepted_at
838
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
839
+ #
840
+ # @return [Time, nil]
841
+ optional :accepted_at, Time
842
+
843
+ # @!attribute ip_address
844
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
845
+ # IPv6 formats.
846
+ #
847
+ # @return [String, nil]
848
+ optional :ip_address, String
849
+
850
+ # @!method initialize(accepted_at: nil, ip_address: nil)
851
+ # Some parameter documentations has been truncated, see
852
+ # {ModernTreasury::Models::ChildLegalEntity::TermsOfUse} for more details.
853
+ #
854
+ # Acceptance of terms of use by the legal entity.
855
+ #
856
+ # @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
857
+ #
858
+ # @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
859
+ end
742
860
  end
743
861
  end
744
862
  end
@@ -241,6 +241,12 @@ module ModernTreasury
241
241
  # @return [String, nil]
242
242
  optional :suffix, String, nil?: true
243
243
 
244
+ # @!attribute terms_of_use
245
+ # Acceptance of terms of use by the legal entity.
246
+ #
247
+ # @return [ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse, nil]
248
+ optional :terms_of_use, -> { ModernTreasury::ChildLegalEntityCreate::TermsOfUse }, nil?: true
249
+
244
250
  # @!attribute third_party_verification
245
251
  # @deprecated
246
252
  #
@@ -275,7 +281,7 @@ module ModernTreasury
275
281
  # @return [String, nil]
276
282
  optional :website, String, nil?: true
277
283
 
278
- # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
284
+ # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
279
285
  # Some parameter documentations has been truncated, see
280
286
  # {ModernTreasury::Models::ChildLegalEntityCreate} for more details.
281
287
  #
@@ -351,6 +357,8 @@ module ModernTreasury
351
357
  #
352
358
  # @param suffix [String, nil] An individual's suffix.
353
359
  #
360
+ # @param terms_of_use [ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
361
+ #
354
362
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
355
363
  #
356
364
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -492,6 +500,32 @@ module ModernTreasury
492
500
  # @!method self.values
493
501
  # @return [Array<Symbol>]
494
502
  end
503
+
504
+ # @see ModernTreasury::Models::ChildLegalEntityCreate#terms_of_use
505
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
506
+ # @!attribute accepted_at
507
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
508
+ #
509
+ # @return [Time, nil]
510
+ optional :accepted_at, Time
511
+
512
+ # @!attribute ip_address
513
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
514
+ # IPv6 formats.
515
+ #
516
+ # @return [String, nil]
517
+ optional :ip_address, String
518
+
519
+ # @!method initialize(accepted_at: nil, ip_address: nil)
520
+ # Some parameter documentations has been truncated, see
521
+ # {ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse} for more details.
522
+ #
523
+ # Acceptance of terms of use by the legal entity.
524
+ #
525
+ # @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
526
+ #
527
+ # @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
528
+ end
495
529
  end
496
530
  end
497
531
  end
@@ -274,6 +274,14 @@ module ModernTreasury
274
274
  # @return [String, nil]
275
275
  optional :suffix, String, nil?: true
276
276
 
277
+ # @!attribute terms_of_use
278
+ # Acceptance of terms of use by the legal entity.
279
+ #
280
+ # @return [ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse, nil]
281
+ optional :terms_of_use,
282
+ -> { ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse },
283
+ nil?: true
284
+
277
285
  # @!attribute third_party_verification
278
286
  # @deprecated
279
287
  #
@@ -308,7 +316,7 @@ module ModernTreasury
308
316
  # @return [String, nil]
309
317
  optional :website, String, nil?: true
310
318
 
311
- # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
319
+ # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
312
320
  # Some parameter documentations has been truncated, see
313
321
  # {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity} for
314
322
  # more details.
@@ -387,6 +395,8 @@ module ModernTreasury
387
395
  #
388
396
  # @param suffix [String, nil] An individual's suffix.
389
397
  #
398
+ # @param terms_of_use [ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
399
+ #
390
400
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
391
401
  #
392
402
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -530,6 +540,33 @@ module ModernTreasury
530
540
  # @!method self.values
531
541
  # @return [Array<Symbol>]
532
542
  end
543
+
544
+ # @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity#terms_of_use
545
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
546
+ # @!attribute accepted_at
547
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
548
+ #
549
+ # @return [Time, nil]
550
+ optional :accepted_at, Time
551
+
552
+ # @!attribute ip_address
553
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
554
+ # IPv6 formats.
555
+ #
556
+ # @return [String, nil]
557
+ optional :ip_address, String
558
+
559
+ # @!method initialize(accepted_at: nil, ip_address: nil)
560
+ # Some parameter documentations has been truncated, see
561
+ # {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse}
562
+ # for more details.
563
+ #
564
+ # Acceptance of terms of use by the legal entity.
565
+ #
566
+ # @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
567
+ #
568
+ # @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
569
+ end
533
570
  end
534
571
  end
535
572
  end
@@ -92,9 +92,7 @@ module ModernTreasury
92
92
  SE_BANKGIRO_CLEARING_CODE = :seBankgiroClearingCode
93
93
  NZ_NATIONAL_CLEARING_CODE = :nzNationalClearingCode
94
94
  HK_INTERBANK_CLEARING_CODE = :hkInterbankClearingCode
95
- HU_INTERBANK_CLEARING_CODE = :huInterbankClearingCode
96
95
  DK_INTERBANK_CLEARING_CODE = :dkInterbankClearingCode
97
- ID_SKNBI_CODE = :idSknbiCode
98
96
  ZA_NATIONAL_CLEARING_CODE = :zaNationalClearingCode
99
97
 
100
98
  # @!method self.values
@@ -353,8 +353,6 @@ module ModernTreasury
353
353
  DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
354
354
  GB_SORT_CODE = :gb_sort_code
355
355
  HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
356
- HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
357
- ID_SKNBI_CODE = :id_sknbi_code
358
356
  IL_BANK_CODE = :il_bank_code
359
357
  IN_IFSC = :in_ifsc
360
358
  JP_ZENGIN_CODE = :jp_zengin_code
@@ -386,24 +384,17 @@ module ModernTreasury
386
384
  DK_NETS = :dk_nets
387
385
  EFT = :eft
388
386
  GB_FPS = :gb_fps
389
- HU_ICS = :hu_ics
390
- INTERAC = :interac
391
387
  MASAV = :masav
392
388
  MX_CCEN = :mx_ccen
393
389
  NEFT = :neft
394
390
  NICS = :nics
395
391
  NZ_BECS = :nz_becs
396
392
  PL_ELIXIR = :pl_elixir
397
- PROVXCHANGE = :provxchange
398
- RO_SENT = :ro_sent
399
393
  RTP = :rtp
400
394
  SE_BANKGIROT = :se_bankgirot
401
- SEN = :sen
402
395
  SEPA = :sepa
403
396
  SG_GIRO = :sg_giro
404
397
  SIC = :sic
405
- SIGNET = :signet
406
- SKNBI = :sknbi
407
398
  STABLECOIN = :stablecoin
408
399
  WIRE = :wire
409
400
  ZENGIN = :zengin
@@ -668,6 +659,14 @@ module ModernTreasury
668
659
  # @return [String, nil]
669
660
  optional :suffix, String, nil?: true
670
661
 
662
+ # @!attribute terms_of_use
663
+ # Acceptance of terms of use by the legal entity.
664
+ #
665
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::TermsOfUse, nil]
666
+ optional :terms_of_use,
667
+ -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::TermsOfUse },
668
+ nil?: true
669
+
671
670
  # @!attribute third_party_verification
672
671
  # @deprecated
673
672
  #
@@ -702,7 +701,7 @@ module ModernTreasury
702
701
  # @return [String, nil]
703
702
  optional :website, String, nil?: true
704
703
 
705
- # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
704
+ # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
706
705
  # Some parameter documentations has been truncated, see
707
706
  # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity} for more
708
707
  # details.
@@ -779,6 +778,8 @@ module ModernTreasury
779
778
  #
780
779
  # @param suffix [String, nil] An individual's suffix.
781
780
  #
781
+ # @param terms_of_use [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
782
+ #
782
783
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
783
784
  #
784
785
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -922,6 +923,33 @@ module ModernTreasury
922
923
  # @!method self.values
923
924
  # @return [Array<Symbol>]
924
925
  end
926
+
927
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#terms_of_use
928
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
929
+ # @!attribute accepted_at
930
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
931
+ #
932
+ # @return [Time, nil]
933
+ optional :accepted_at, Time
934
+
935
+ # @!attribute ip_address
936
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
937
+ # IPv6 formats.
938
+ #
939
+ # @return [String, nil]
940
+ optional :ip_address, String
941
+
942
+ # @!method initialize(accepted_at: nil, ip_address: nil)
943
+ # Some parameter documentations has been truncated, see
944
+ # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::TermsOfUse} for
945
+ # more details.
946
+ #
947
+ # Acceptance of terms of use by the legal entity.
948
+ #
949
+ # @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
950
+ #
951
+ # @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
952
+ end
925
953
  end
926
954
  end
927
955
  end
@@ -171,10 +171,8 @@ module ModernTreasury
171
171
  UAH = :UAH
172
172
  UGX = :UGX
173
173
  USD = :USD
174
- USDB = :USDB
175
174
  USDC = :USDC
176
175
  USDG = :USDG
177
- USDP = :USDP
178
176
  USDT = :USDT
179
177
  UYU = :UYU
180
178
  UZS = :UZS
@@ -19,12 +19,6 @@ module ModernTreasury
19
19
  # @return [Time, nil]
20
20
  required :discarded_at, Time, nil?: true
21
21
 
22
- # @!attribute document_details
23
- #
24
- # @return [Array<ModernTreasury::Models::Document::DocumentDetail>]
25
- required :document_details,
26
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document::DocumentDetail] }
27
-
28
22
  # @!attribute document_type
29
23
  # A category given to the document, can be `null`.
30
24
  #
@@ -73,7 +67,7 @@ module ModernTreasury
73
67
  # @return [Time]
74
68
  required :updated_at, Time
75
69
 
76
- # @!method initialize(id:, created_at:, discarded_at:, document_details:, document_type:, documentable_id:, documentable_type:, file:, live_mode:, object:, source:, updated_at:)
70
+ # @!method initialize(id:, created_at:, discarded_at:, document_type:, documentable_id:, documentable_type:, file:, live_mode:, object:, source:, updated_at:)
77
71
  # Some parameter documentations has been truncated, see
78
72
  # {ModernTreasury::Models::Document} for more details.
79
73
  #
@@ -83,8 +77,6 @@ module ModernTreasury
83
77
  #
84
78
  # @param discarded_at [Time, nil]
85
79
  #
86
- # @param document_details [Array<ModernTreasury::Models::Document::DocumentDetail>]
87
- #
88
80
  # @param document_type [String, nil] A category given to the document, can be `null`.
89
81
  #
90
82
  # @param documentable_id [String, nil] The unique identifier for the associated object.
@@ -101,70 +93,6 @@ module ModernTreasury
101
93
  #
102
94
  # @param updated_at [Time]
103
95
 
104
- class DocumentDetail < ModernTreasury::Internal::Type::BaseModel
105
- # @!attribute id
106
- #
107
- # @return [String]
108
- required :id, String
109
-
110
- # @!attribute created_at
111
- #
112
- # @return [Time]
113
- required :created_at, Time
114
-
115
- # @!attribute discarded_at
116
- #
117
- # @return [Time, nil]
118
- required :discarded_at, Time, nil?: true
119
-
120
- # @!attribute document_identifier
121
- #
122
- # @return [String]
123
- required :document_identifier, String
124
-
125
- # @!attribute document_identifier_type
126
- #
127
- # @return [String]
128
- required :document_identifier_type, String
129
-
130
- # @!attribute live_mode
131
- # This field will be true if this object exists in the live environment or false
132
- # if it exists in the test environment.
133
- #
134
- # @return [Boolean]
135
- required :live_mode, ModernTreasury::Internal::Type::Boolean
136
-
137
- # @!attribute object
138
- #
139
- # @return [String]
140
- required :object, String
141
-
142
- # @!attribute updated_at
143
- #
144
- # @return [Time]
145
- required :updated_at, Time
146
-
147
- # @!method initialize(id:, created_at:, discarded_at:, document_identifier:, document_identifier_type:, live_mode:, object:, updated_at:)
148
- # Some parameter documentations has been truncated, see
149
- # {ModernTreasury::Models::Document::DocumentDetail} for more details.
150
- #
151
- # @param id [String]
152
- #
153
- # @param created_at [Time]
154
- #
155
- # @param discarded_at [Time, nil]
156
- #
157
- # @param document_identifier [String]
158
- #
159
- # @param document_identifier_type [String]
160
- #
161
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
162
- #
163
- # @param object [String]
164
- #
165
- # @param updated_at [Time]
166
- end
167
-
168
96
  # The type of the associated object. Currently can be one of `payment_order`,
169
97
  # `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
170
98
  # `internal_account`, `decision`, or `external_account`.
@@ -43,17 +43,17 @@ module ModernTreasury
43
43
  module DocumentableType
44
44
  extend ModernTreasury::Internal::Type::Enum
45
45
 
46
- CONNECTIONS = :connections
47
- COUNTERPARTIES = :counterparties
48
- EXPECTED_PAYMENTS = :expected_payments
49
- EXTERNAL_ACCOUNTS = :external_accounts
50
- IDENTIFICATIONS = :identifications
51
- INCOMING_PAYMENT_DETAILS = :incoming_payment_details
52
- INTERNAL_ACCOUNTS = :internal_accounts
53
- LEGAL_ENTITIES = :legal_entities
54
- ORGANIZATIONS = :organizations
55
- PAYMENT_ORDERS = :payment_orders
56
- TRANSACTIONS = :transactions
46
+ CONNECTION = :connection
47
+ COUNTERPARTY = :counterparty
48
+ EXPECTED_PAYMENT = :expected_payment
49
+ EXTERNAL_ACCOUNT = :external_account
50
+ IDENTIFICATION = :identification
51
+ INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
52
+ INTERNAL_ACCOUNT = :internal_account
53
+ LEGAL_ENTITY = :legal_entity
54
+ ORGANIZATION = :organization
55
+ PAYMENT_ORDER = :payment_order
56
+ TRANSACTION = :transaction
57
57
 
58
58
  # @!method self.values
59
59
  # @return [Array<Symbol>]
@@ -51,17 +51,17 @@ module ModernTreasury
51
51
  module DocumentableType
52
52
  extend ModernTreasury::Internal::Type::Enum
53
53
 
54
- CONNECTIONS = :connections
55
- COUNTERPARTIES = :counterparties
56
- EXPECTED_PAYMENTS = :expected_payments
57
- EXTERNAL_ACCOUNTS = :external_accounts
58
- IDENTIFICATIONS = :identifications
59
- INCOMING_PAYMENT_DETAILS = :incoming_payment_details
60
- INTERNAL_ACCOUNTS = :internal_accounts
61
- LEGAL_ENTITIES = :legal_entities
62
- ORGANIZATIONS = :organizations
63
- PAYMENT_ORDERS = :payment_orders
64
- TRANSACTIONS = :transactions
54
+ CONNECTION = :connection
55
+ COUNTERPARTY = :counterparty
56
+ EXPECTED_PAYMENT = :expected_payment
57
+ EXTERNAL_ACCOUNT = :external_account
58
+ IDENTIFICATION = :identification
59
+ INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
60
+ INTERNAL_ACCOUNT = :internal_account
61
+ LEGAL_ENTITY = :legal_entity
62
+ ORGANIZATION = :organization
63
+ PAYMENT_ORDER = :payment_order
64
+ TRANSACTION = :transaction
65
65
 
66
66
  # @!method self.values
67
67
  # @return [Array<Symbol>]
@@ -200,8 +200,7 @@ module ModernTreasury
200
200
  required :transaction_line_item_id, String, nil?: true
201
201
 
202
202
  # @!attribute type
203
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
204
- # sepa, signet, wire.
203
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
205
204
  #
206
205
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
207
206
  required :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
@@ -273,7 +272,7 @@ module ModernTreasury
273
272
  #
274
273
  # @param transaction_line_item_id [String, nil] The ID of the Transaction Line Item this expected payment has been matched to.
275
274
  #
276
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
275
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
277
276
  #
278
277
  # @param updated_at [Time]
279
278
 
@@ -171,8 +171,7 @@ module ModernTreasury
171
171
  optional :statement_descriptor, String, nil?: true
172
172
 
173
173
  # @!attribute type
174
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
175
- # sepa, signet, wire.
174
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
176
175
  #
177
176
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
178
177
  optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
@@ -227,7 +226,7 @@ module ModernTreasury
227
226
  #
228
227
  # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
229
228
  #
230
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
229
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
231
230
  #
232
231
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
233
232