modern_treasury 0.27.0 → 0.29.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 (209) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/README.md +6 -6
  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/address.rb +6 -4
  7. data/lib/modern_treasury/models/address_request.rb +9 -4
  8. data/lib/modern_treasury/models/bulk_request_create_params.rb +104 -64
  9. data/lib/modern_treasury/models/child_legal_entity.rb +142 -14
  10. data/lib/modern_treasury/models/child_legal_entity_create.rb +48 -8
  11. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +52 -8
  12. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
  13. data/lib/modern_treasury/models/counterparty_create_params.rb +52 -17
  14. data/lib/modern_treasury/models/currency.rb +0 -2
  15. data/lib/modern_treasury/models/document.rb +1 -73
  16. data/lib/modern_treasury/models/document_create_params.rb +11 -11
  17. data/lib/modern_treasury/models/document_list_params.rb +11 -11
  18. data/lib/modern_treasury/models/expected_payment.rb +2 -3
  19. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  20. data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
  21. data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
  22. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  23. data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
  24. data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
  25. data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
  26. data/lib/modern_treasury/models/hold_list_params.rb +8 -11
  27. data/lib/modern_treasury/models/identification_create_request.rb +77 -0
  28. data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
  29. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
  30. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
  31. data/lib/modern_treasury/models/internal_account.rb +12 -8
  32. data/lib/modern_treasury/models/internal_account_create_params.rb +66 -34
  33. data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
  34. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
  35. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
  36. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +21 -10
  37. data/lib/modern_treasury/models/invoice.rb +33 -18
  38. data/lib/modern_treasury/models/invoice_create_params.rb +32 -16
  39. data/lib/modern_treasury/models/invoice_update_params.rb +32 -16
  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 +20 -9
  43. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +70 -9
  44. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  45. data/lib/modern_treasury/models/legal_entity.rb +142 -14
  46. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +20 -5
  47. data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
  48. data/lib/modern_treasury/models/legal_entity_create_params.rb +47 -8
  49. data/lib/modern_treasury/models/legal_entity_update_params.rb +47 -8
  50. data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
  51. data/lib/modern_treasury/models/payment_order.rb +6 -9
  52. data/lib/modern_treasury/models/payment_order_create_async_params.rb +18 -21
  53. data/lib/modern_treasury/models/payment_order_create_params.rb +29 -32
  54. data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
  55. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
  56. data/lib/modern_treasury/models/payment_order_type.rb +2 -10
  57. data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
  58. data/lib/modern_treasury/models/payment_reference.rb +2 -4
  59. data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
  60. data/lib/modern_treasury/models/return_object.rb +8 -7
  61. data/lib/modern_treasury/models/routing_detail.rb +0 -9
  62. data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
  63. data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
  64. data/lib/modern_treasury/models/third_party_verification.rb +2 -0
  65. data/lib/modern_treasury/models/transaction.rb +17 -15
  66. data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
  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 -9
  69. data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
  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 +1 -1
  74. data/lib/modern_treasury/resources/internal_accounts.rb +10 -6
  75. data/lib/modern_treasury/resources/invoices.rb +2 -2
  76. data/lib/modern_treasury/resources/legal_entities.rb +11 -7
  77. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  78. data/lib/modern_treasury/resources/transactions.rb +5 -3
  79. data/lib/modern_treasury/version.rb +1 -1
  80. data/rbi/modern_treasury/models/address.rbi +8 -4
  81. data/rbi/modern_treasury/models/address_request.rbi +8 -4
  82. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +147 -178
  83. data/rbi/modern_treasury/models/child_legal_entity.rbi +487 -18
  84. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +85 -9
  85. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +91 -9
  86. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
  87. data/rbi/modern_treasury/models/counterparty_create_params.rbi +91 -54
  88. data/rbi/modern_treasury/models/currency.rbi +0 -2
  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 -41
  95. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
  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 -45
  98. data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
  99. data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
  100. data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
  101. data/rbi/modern_treasury/models/identification_create_request.rbi +385 -0
  102. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
  103. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
  104. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
  105. data/rbi/modern_treasury/models/internal_account.rbi +14 -35
  106. data/rbi/modern_treasury/models/internal_account_create_params.rbi +131 -63
  107. data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
  108. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
  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 +32 -15
  111. data/rbi/modern_treasury/models/invoice.rbi +30 -18
  112. data/rbi/modern_treasury/models/invoice_create_params.rbi +28 -18
  113. data/rbi/modern_treasury/models/invoice_update_params.rbi +28 -18
  114. data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
  115. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  116. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +27 -10
  117. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +90 -13
  118. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  119. data/rbi/modern_treasury/models/legal_entity.rbi +486 -18
  120. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +26 -7
  121. data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
  122. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +85 -9
  123. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +85 -9
  124. data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
  125. data/rbi/modern_treasury/models/payment_order.rbi +16 -28
  126. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +18 -61
  127. data/rbi/modern_treasury/models/payment_order_create_params.rbi +40 -83
  128. data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
  129. data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
  130. data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
  131. data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
  132. data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
  133. data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
  134. data/rbi/modern_treasury/models/return_object.rbi +19 -25
  135. data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
  136. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
  137. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
  138. data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
  139. data/rbi/modern_treasury/models/transaction.rbi +24 -24
  140. data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
  141. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
  142. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
  143. data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
  144. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
  145. data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
  146. data/rbi/modern_treasury/resources/holds.rbi +3 -5
  147. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  148. data/rbi/modern_treasury/resources/internal_accounts.rbi +21 -8
  149. data/rbi/modern_treasury/resources/invoices.rbi +4 -6
  150. data/rbi/modern_treasury/resources/legal_entities.rbi +21 -9
  151. data/rbi/modern_treasury/resources/payment_orders.rbi +11 -14
  152. data/rbi/modern_treasury/resources/transactions.rbi +11 -7
  153. data/sig/modern_treasury/models/bulk_request_create_params.rbs +63 -60
  154. data/sig/modern_treasury/models/child_legal_entity.rbs +183 -2
  155. data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
  156. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
  157. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
  158. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
  159. data/sig/modern_treasury/models/currency.rbs +0 -4
  160. data/sig/modern_treasury/models/document.rbs +0 -57
  161. data/sig/modern_treasury/models/document_create_params.rbs +22 -22
  162. data/sig/modern_treasury/models/document_list_params.rbs +22 -22
  163. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
  164. data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
  165. data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
  166. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
  167. data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
  168. data/sig/modern_treasury/models/identification_create_request.rbs +154 -0
  169. data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
  170. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
  171. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
  172. data/sig/modern_treasury/models/internal_account.rbs +5 -14
  173. data/sig/modern_treasury/models/internal_account_create_params.rbs +43 -26
  174. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
  175. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
  176. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
  177. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
  178. data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
  179. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  180. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
  181. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
  182. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  183. data/sig/modern_treasury/models/legal_entity.rbs +183 -2
  184. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
  185. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
  186. data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
  187. data/sig/modern_treasury/models/payment_order.rbs +4 -8
  188. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -23
  189. data/sig/modern_treasury/models/payment_order_create_params.rbs +27 -45
  190. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
  191. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
  192. data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
  193. data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
  194. data/sig/modern_treasury/models/payment_reference.rbs +4 -8
  195. data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
  196. data/sig/modern_treasury/models/return_object.rbs +12 -10
  197. data/sig/modern_treasury/models/routing_detail.rbs +0 -18
  198. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
  199. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
  200. data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
  201. data/sig/modern_treasury/models/transaction.rbs +7 -16
  202. data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
  203. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
  204. data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
  205. data/sig/modern_treasury/resources/internal_accounts.rbs +4 -2
  206. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  207. data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
  208. data/sig/modern_treasury/resources/transactions.rbs +2 -1
  209. metadata +2 -2
@@ -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
@@ -483,8 +474,8 @@ module ModernTreasury
483
474
  optional :connection_id, String, nil?: true
484
475
 
485
476
  # @!attribute country_of_incorporation
486
- # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
487
- # alpha-3 formats.
477
+ # The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
478
+ # code (e.g. US).
488
479
  #
489
480
  # @return [String, nil]
490
481
  optional :country_of_incorporation, String, nil?: true
@@ -602,8 +593,8 @@ module ModernTreasury
602
593
  optional :middle_name, String, nil?: true
603
594
 
604
595
  # @!attribute operating_jurisdictions
605
- # A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
606
- # codes).
596
+ # A list of countries where the business operates, as ISO 3166-1 alpha-2 country
597
+ # codes (e.g. ["US", "CA"]).
607
598
  #
608
599
  # @return [Array<String>, nil]
609
600
  optional :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -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.
@@ -723,7 +722,7 @@ module ModernTreasury
723
722
  #
724
723
  # @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
725
724
  #
726
- # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
725
+ # @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
727
726
  #
728
727
  # @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
729
728
  #
@@ -759,7 +758,7 @@ module ModernTreasury
759
758
  #
760
759
  # @param middle_name [String, nil] An individual's middle name.
761
760
  #
762
- # @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
761
+ # @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
763
762
  #
764
763
  # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
765
764
  #
@@ -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.
@@ -867,14 +868,21 @@ module ModernTreasury
867
868
 
868
869
  class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
869
870
  # @!attribute phone_number
871
+ # A phone number in E.164 format. This format is strictly validated: include a
872
+ # leading + and country code, followed by digits only (no spaces or dashes), e.g.
873
+ # +12025551234.
870
874
  #
871
875
  # @return [String, nil]
872
876
  optional :phone_number, String
873
877
 
874
878
  # @!method initialize(phone_number: nil)
879
+ # Some parameter documentations has been truncated, see
880
+ # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber} for
881
+ # more details.
882
+ #
875
883
  # A list of phone numbers in E.164 format.
876
884
  #
877
- # @param phone_number [String]
885
+ # @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
878
886
  end
879
887
 
880
888
  class Regulator < ModernTreasury::Internal::Type::BaseModel
@@ -922,6 +930,33 @@ module ModernTreasury
922
930
  # @!method self.values
923
931
  # @return [Array<Symbol>]
924
932
  end
933
+
934
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#terms_of_use
935
+ class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
936
+ # @!attribute accepted_at
937
+ # The ISO 8601 timestamp indicating when the terms of use were accepted.
938
+ #
939
+ # @return [Time, nil]
940
+ optional :accepted_at, Time
941
+
942
+ # @!attribute ip_address
943
+ # The IP address from which the terms of use were accepted. Supports both IPv4 and
944
+ # IPv6 formats.
945
+ #
946
+ # @return [String, nil]
947
+ optional :ip_address, String
948
+
949
+ # @!method initialize(accepted_at: nil, ip_address: nil)
950
+ # Some parameter documentations has been truncated, see
951
+ # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::TermsOfUse} for
952
+ # more details.
953
+ #
954
+ # Acceptance of terms of use by the legal entity.
955
+ #
956
+ # @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
957
+ #
958
+ # @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
959
+ end
925
960
  end
926
961
  end
927
962
  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
 
@@ -67,8 +67,7 @@ module ModernTreasury
67
67
  optional :status, enum: -> { ModernTreasury::ExpectedPaymentListParams::Status }
68
68
 
69
69
  # @!attribute type
70
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
71
- # sepa, signet, wire
70
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire
72
71
  #
73
72
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type, nil]
74
73
  optional :type, enum: -> { ModernTreasury::ExpectedPaymentListParams::Type }
@@ -109,7 +108,7 @@ module ModernTreasury
109
108
  #
110
109
  # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
111
110
  #
112
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
111
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire
113
112
  #
114
113
  # @param updated_at_lower_bound [Time] Used to return expected payments updated after some datetime
115
114
  #
@@ -130,8 +129,7 @@ module ModernTreasury
130
129
  # @return [Array<Symbol>]
131
130
  end
132
131
 
133
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
134
- # sepa, signet, wire
132
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire
135
133
  module Type
136
134
  extend ModernTreasury::Internal::Type::Enum
137
135
 
@@ -146,24 +144,17 @@ module ModernTreasury
146
144
  DK_NETS = :dk_nets
147
145
  EFT = :eft
148
146
  GB_FPS = :gb_fps
149
- HU_ICS = :hu_ics
150
- INTERAC = :interac
151
147
  MASAV = :masav
152
148
  MX_CCEN = :mx_ccen
153
149
  NEFT = :neft
154
150
  NICS = :nics
155
151
  NZ_BECS = :nz_becs
156
152
  PL_ELIXIR = :pl_elixir
157
- PROVXCHANGE = :provxchange
158
- RO_SENT = :ro_sent
159
153
  RTP = :rtp
160
154
  SE_BANKGIROT = :se_bankgirot
161
- SEN = :sen
162
155
  SEPA = :sepa
163
156
  SG_GIRO = :sg_giro
164
157
  SIC = :sic
165
- SIGNET = :signet
166
- SKNBI = :sknbi
167
158
  STABLECOIN = :stablecoin
168
159
  WIRE = :wire
169
160
  ZENGIN = :zengin
@@ -2,8 +2,7 @@
2
2
 
3
3
  module ModernTreasury
4
4
  module Models
5
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
6
- # sepa, signet, wire.
5
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
7
6
  module ExpectedPaymentType
8
7
  extend ModernTreasury::Internal::Type::Enum
9
8
 
@@ -18,24 +17,17 @@ module ModernTreasury
18
17
  DK_NETS = :dk_nets
19
18
  EFT = :eft
20
19
  GB_FPS = :gb_fps
21
- HU_ICS = :hu_ics
22
- INTERAC = :interac
23
20
  MASAV = :masav
24
21
  MX_CCEN = :mx_ccen
25
22
  NEFT = :neft
26
23
  NICS = :nics
27
24
  NZ_BECS = :nz_becs
28
25
  PL_ELIXIR = :pl_elixir
29
- PROVXCHANGE = :provxchange
30
- RO_SENT = :ro_sent
31
26
  RTP = :rtp
32
27
  SE_BANKGIROT = :se_bankgirot
33
- SEN = :sen
34
28
  SEPA = :sepa
35
29
  SG_GIRO = :sg_giro
36
30
  SIC = :sic
37
- SIGNET = :signet
38
- SKNBI = :sknbi
39
31
  STABLECOIN = :stablecoin
40
32
  WIRE = :wire
41
33
  ZENGIN = :zengin
@@ -159,8 +159,7 @@ module ModernTreasury
159
159
  optional :status, enum: -> { ModernTreasury::ExpectedPaymentUpdateParams::Status }, nil?: true
160
160
 
161
161
  # @!attribute type
162
- # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
163
- # sepa, signet, wire.
162
+ # One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
164
163
  #
165
164
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
166
165
  optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
@@ -213,7 +212,7 @@ module ModernTreasury
213
212
  #
214
213
  # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
215
214
  #
216
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
215
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
217
216
  #
218
217
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
219
218
 
@@ -218,8 +218,6 @@ module ModernTreasury
218
218
  DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
219
219
  GB_SORT_CODE = :gb_sort_code
220
220
  HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
221
- HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
222
- ID_SKNBI_CODE = :id_sknbi_code
223
221
  IL_BANK_CODE = :il_bank_code
224
222
  IN_IFSC = :in_ifsc
225
223
  JP_ZENGIN_CODE = :jp_zengin_code
@@ -251,24 +249,17 @@ module ModernTreasury
251
249
  DK_NETS = :dk_nets
252
250
  EFT = :eft
253
251
  GB_FPS = :gb_fps
254
- HU_ICS = :hu_ics
255
- INTERAC = :interac
256
252
  MASAV = :masav
257
253
  MX_CCEN = :mx_ccen
258
254
  NEFT = :neft
259
255
  NICS = :nics
260
256
  NZ_BECS = :nz_becs
261
257
  PL_ELIXIR = :pl_elixir
262
- PROVXCHANGE = :provxchange
263
- RO_SENT = :ro_sent
264
258
  RTP = :rtp
265
259
  SE_BANKGIROT = :se_bankgirot
266
- SEN = :sen
267
260
  SEPA = :sepa
268
261
  SG_GIRO = :sg_giro
269
262
  SIC = :sic
270
- SIGNET = :signet
271
- SKNBI = :sknbi
272
263
  STABLECOIN = :stablecoin
273
264
  WIRE = :wire
274
265
  ZENGIN = :zengin
@@ -79,24 +79,17 @@ module ModernTreasury
79
79
  DK_NETS = :dk_nets
80
80
  EFT = :eft
81
81
  GB_FPS = :gb_fps
82
- HU_ICS = :hu_ics
83
- INTERAC = :interac
84
82
  MASAV = :masav
85
83
  MX_CCEN = :mx_ccen
86
84
  NEFT = :neft
87
85
  NICS = :nics
88
86
  NZ_BECS = :nz_becs
89
87
  PL_ELIXIR = :pl_elixir
90
- PROVXCHANGE = :provxchange
91
- RO_SENT = :ro_sent
92
88
  RTP = :rtp
93
89
  SE_BANKGIROT = :se_bankgirot
94
- SEN = :sen
95
90
  SEPA = :sepa
96
91
  SG_GIRO = :sg_giro
97
92
  SIC = :sic
98
- SIGNET = :signet
99
- SKNBI = :sknbi
100
93
  STABLECOIN = :stablecoin
101
94
  WIRE = :wire
102
95
  ZENGIN = :zengin
@@ -117,24 +117,17 @@ module ModernTreasury
117
117
  DK_NETS = :dk_nets
118
118
  EFT = :eft
119
119
  GB_FPS = :gb_fps
120
- HU_ICS = :hu_ics
121
- INTERAC = :interac
122
120
  MASAV = :masav
123
121
  MX_CCEN = :mx_ccen
124
122
  NEFT = :neft
125
123
  NICS = :nics
126
124
  NZ_BECS = :nz_becs
127
125
  PL_ELIXIR = :pl_elixir
128
- PROVXCHANGE = :provxchange
129
- RO_SENT = :ro_sent
130
126
  RTP = :rtp
131
127
  SE_BANKGIROT = :se_bankgirot
132
- SEN = :sen
133
128
  SEPA = :sepa
134
129
  SG_GIRO = :sg_giro
135
130
  SIC = :sic
136
- SIGNET = :signet
137
- SKNBI = :sknbi
138
131
  STABLECOIN = :stablecoin
139
132
  WIRE = :wire
140
133
  ZENGIN = :zengin
@@ -26,21 +26,19 @@ module ModernTreasury
26
26
  optional :per_page, Integer
27
27
 
28
28
  # @!attribute status
29
- # Translation missing: en.openapi.descriptions.payment_order.query_params.status
29
+ # Only return holds for a specific status.
30
30
  #
31
31
  # @return [Symbol, ModernTreasury::Models::HoldListParams::Status, nil]
32
32
  optional :status, enum: -> { ModernTreasury::HoldListParams::Status }, nil?: true
33
33
 
34
34
  # @!attribute target_id
35
- # Translation missing:
36
- # en.openapi.descriptions.payment_order.query_params.target_id
35
+ # Only return holds for a specific target ID.
37
36
  #
38
37
  # @return [String, nil]
39
38
  optional :target_id, String, nil?: true
40
39
 
41
40
  # @!attribute target_type
42
- # Translation missing:
43
- # en.openapi.descriptions.payment_order.query_params.target_type
41
+ # Only return holds for a specific target type.
44
42
  #
45
43
  # @return [Symbol, ModernTreasury::Models::HoldListParams::TargetType, nil]
46
44
  optional :target_type, enum: -> { ModernTreasury::HoldListParams::TargetType }, nil?: true
@@ -55,15 +53,15 @@ module ModernTreasury
55
53
  #
56
54
  # @param per_page [Integer]
57
55
  #
58
- # @param status [Symbol, ModernTreasury::Models::HoldListParams::Status, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.status
56
+ # @param status [Symbol, ModernTreasury::Models::HoldListParams::Status, nil] Only return holds for a specific status.
59
57
  #
60
- # @param target_id [String, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.target_i
58
+ # @param target_id [String, nil] Only return holds for a specific target ID.
61
59
  #
62
- # @param target_type [Symbol, ModernTreasury::Models::HoldListParams::TargetType, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.target_t
60
+ # @param target_type [Symbol, ModernTreasury::Models::HoldListParams::TargetType, nil] Only return holds for a specific target type.
63
61
  #
64
62
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
65
63
 
66
- # Translation missing: en.openapi.descriptions.payment_order.query_params.status
64
+ # Only return holds for a specific status.
67
65
  module Status
68
66
  extend ModernTreasury::Internal::Type::Enum
69
67
 
@@ -74,8 +72,7 @@ module ModernTreasury
74
72
  # @return [Array<Symbol>]
75
73
  end
76
74
 
77
- # Translation missing:
78
- # en.openapi.descriptions.payment_order.query_params.target_type
75
+ # Only return holds for a specific target type.
79
76
  module TargetType
80
77
  extend ModernTreasury::Internal::Type::Enum
81
78