modern_treasury 0.31.0 → 0.32.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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/account_detail.rb +1 -0
  5. data/lib/modern_treasury/models/account_detail_create_params.rb +1 -0
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +28 -8
  7. data/lib/modern_treasury/models/child_legal_entity.rb +6 -5
  8. data/lib/modern_treasury/models/counterparty_create_params.rb +24 -1
  9. data/lib/modern_treasury/models/expected_payment.rb +3 -4
  10. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  11. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  12. data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
  13. data/lib/modern_treasury/models/identification.rb +109 -0
  14. data/lib/modern_treasury/models/identification_create_params.rb +109 -0
  15. data/lib/modern_treasury/models/identification_create_request.rb +109 -0
  16. data/lib/modern_treasury/models/identification_update_params.rb +109 -0
  17. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
  18. data/lib/modern_treasury/models/internal_account.rb +10 -1
  19. data/lib/modern_treasury/models/internal_account_create_params.rb +12 -1
  20. data/lib/modern_treasury/models/ledger_account.rb +0 -1
  21. data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
  22. data/lib/modern_treasury/models/legal_entity.rb +6 -5
  23. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
  24. data/lib/modern_treasury/models/legal_entity_create_params.rb +21 -1
  25. data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
  26. data/lib/modern_treasury/models/legal_entity_update_params.rb +23 -1
  27. data/lib/modern_treasury/models/payment_order.rb +12 -2
  28. data/lib/modern_treasury/models/payment_order_create_async_params.rb +12 -1
  29. data/lib/modern_treasury/models/payment_order_create_params.rb +12 -1
  30. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
  31. data/lib/modern_treasury/models/payment_order_update_params.rb +12 -1
  32. data/lib/modern_treasury/models/payment_reference.rb +1 -1
  33. data/lib/modern_treasury/models/return_object.rb +1 -1
  34. data/lib/modern_treasury/models/third_party_verification.rb +1 -0
  35. data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
  36. data/lib/modern_treasury/resources/expected_payments.rb +2 -2
  37. data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
  38. data/lib/modern_treasury/resources/legal_entities.rb +6 -2
  39. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  40. data/lib/modern_treasury/version.rb +1 -1
  41. data/rbi/modern_treasury/models/account_detail.rbi +5 -0
  42. data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -0
  43. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +56 -6
  44. data/rbi/modern_treasury/models/child_legal_entity.rbi +8 -6
  45. data/rbi/modern_treasury/models/counterparty_create_params.rbi +62 -0
  46. data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
  47. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
  48. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
  49. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  50. data/rbi/modern_treasury/models/identification.rbi +224 -0
  51. data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
  52. data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
  53. data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
  54. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
  55. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  56. data/rbi/modern_treasury/models/internal_account_create_params.rbi +17 -0
  57. data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
  58. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
  59. data/rbi/modern_treasury/models/legal_entity.rbi +7 -6
  60. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
  61. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +49 -0
  62. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
  63. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +52 -0
  64. data/rbi/modern_treasury/models/payment_order.rbi +17 -5
  65. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +17 -0
  66. data/rbi/modern_treasury/models/payment_order_create_params.rbi +17 -0
  67. data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
  68. data/rbi/modern_treasury/models/payment_order_update_params.rbi +17 -0
  69. data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
  70. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  71. data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
  72. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  73. data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
  74. data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
  75. data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
  76. data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
  77. data/sig/modern_treasury/models/account_detail.rbs +2 -0
  78. data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -0
  79. data/sig/modern_treasury/models/bulk_request_create_params.rbs +30 -8
  80. data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
  81. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -0
  82. data/sig/modern_treasury/models/expected_payment.rbs +4 -4
  83. data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
  84. data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
  85. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  86. data/sig/modern_treasury/models/identification.rbs +219 -1
  87. data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
  88. data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
  89. data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
  90. data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
  91. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  92. data/sig/modern_treasury/models/internal_account_create_params.rbs +7 -0
  93. data/sig/modern_treasury/models/ledger_account.rbs +1 -2
  94. data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
  95. data/sig/modern_treasury/models/legal_entity.rbs +2 -1
  96. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
  97. data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
  98. data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
  99. data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
  100. data/sig/modern_treasury/models/payment_order.rbs +7 -2
  101. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +7 -0
  102. data/sig/modern_treasury/models/payment_order_create_params.rbs +7 -0
  103. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
  104. data/sig/modern_treasury/models/payment_order_update_params.rbs +7 -0
  105. data/sig/modern_treasury/models/payment_reference.rbs +2 -2
  106. data/sig/modern_treasury/models/return_object.rbs +2 -2
  107. data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
  108. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  109. data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
  110. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  111. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  112. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  113. metadata +2 -2
@@ -206,7 +206,6 @@ module ModernTreasury
206
206
  module LedgerableType
207
207
  extend ModernTreasury::Internal::Type::Enum
208
208
 
209
- COUNTERPARTY = :counterparty
210
209
  EXTERNAL_ACCOUNT = :external_account
211
210
  INTERNAL_ACCOUNT = :internal_account
212
211
  VIRTUAL_ACCOUNT = :virtual_account
@@ -108,7 +108,6 @@ module ModernTreasury
108
108
  module LedgerableType
109
109
  extend ModernTreasury::Internal::Type::Enum
110
110
 
111
- COUNTERPARTY = :counterparty
112
111
  EXTERNAL_ACCOUNT = :external_account
113
112
  INTERNAL_ACCOUNT = :internal_account
114
113
  VIRTUAL_ACCOUNT = :virtual_account
@@ -243,8 +243,8 @@ module ModernTreasury
243
243
  required :service_provider_legal_entity_id, String, nil?: true
244
244
 
245
245
  # @!attribute status
246
- # The activation status of the legal entity. One of pending, active, suspended, or
247
- # denied.
246
+ # The activation status of the legal entity. One of draft, pending, active,
247
+ # suspended, or denied.
248
248
  #
249
249
  # @return [Symbol, ModernTreasury::Models::LegalEntity::Status, nil]
250
250
  required :status, enum: -> { ModernTreasury::LegalEntity::Status }, nil?: true
@@ -390,7 +390,7 @@ module ModernTreasury
390
390
  #
391
391
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
392
392
  #
393
- # @param status [Symbol, ModernTreasury::Models::LegalEntity::Status, nil] The activation status of the legal entity. One of pending, active, suspended, or
393
+ # @param status [Symbol, ModernTreasury::Models::LegalEntity::Status, nil] The activation status of the legal entity. One of draft, pending, active, suspen
394
394
  #
395
395
  # @param suffix [String, nil] An individual's suffix.
396
396
  #
@@ -647,8 +647,8 @@ module ModernTreasury
647
647
  # @return [Array<Symbol>]
648
648
  end
649
649
 
650
- # The activation status of the legal entity. One of pending, active, suspended, or
651
- # denied.
650
+ # The activation status of the legal entity. One of draft, pending, active,
651
+ # suspended, or denied.
652
652
  #
653
653
  # @see ModernTreasury::Models::LegalEntity#status
654
654
  module Status
@@ -656,6 +656,7 @@ module ModernTreasury
656
656
 
657
657
  ACTIVE = :active
658
658
  DENIED = :denied
659
+ DRAFT = :draft
659
660
  PENDING = :pending
660
661
  SUSPENDED = :suspended
661
662
 
@@ -21,19 +21,6 @@ module ModernTreasury
21
21
  # @return [String, nil]
22
22
  required :locality, String, nil?: true
23
23
 
24
- # @!attribute postal_code
25
- # The postal code of the address.
26
- #
27
- # @return [String, nil]
28
- required :postal_code, String, nil?: true
29
-
30
- # @!attribute region
31
- # Region or State. This field is free-form; for US states, we recommend a
32
- # two-letter code (e.g. CA). Full state names are also accepted.
33
- #
34
- # @return [String, nil]
35
- required :region, String, nil?: true
36
-
37
24
  # @!attribute address_types
38
25
  # The types of this address.
39
26
  #
@@ -46,6 +33,12 @@ module ModernTreasury
46
33
  # @return [String, nil]
47
34
  optional :line2, String, nil?: true
48
35
 
36
+ # @!attribute postal_code
37
+ # The postal code of the address.
38
+ #
39
+ # @return [String, nil]
40
+ optional :postal_code, String, nil?: true
41
+
49
42
  # @!attribute primary
50
43
  # Whether this address is the primary address for the legal entity. Optional; when
51
44
  # omitted it is inferred from the address types.
@@ -53,7 +46,14 @@ module ModernTreasury
53
46
  # @return [Boolean, nil]
54
47
  optional :primary, ModernTreasury::Internal::Type::Boolean, nil?: true
55
48
 
56
- # @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, primary: nil)
49
+ # @!attribute region
50
+ # Region or State. This field is free-form; for US states, we recommend a
51
+ # two-letter code (e.g. CA). Full state names are also accepted.
52
+ #
53
+ # @return [String, nil]
54
+ optional :region, String, nil?: true
55
+
56
+ # @!method initialize(country:, line1:, locality:, address_types: nil, line2: nil, postal_code: nil, primary: nil, region: nil)
57
57
  # Some parameter documentations has been truncated, see
58
58
  # {ModernTreasury::Models::LegalEntityAddressCreateRequest} for more details.
59
59
  #
@@ -63,15 +63,15 @@ module ModernTreasury
63
63
  #
64
64
  # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
65
65
  #
66
- # @param postal_code [String, nil] The postal code of the address.
67
- #
68
- # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
69
- #
70
66
  # @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityAddressCreateRequest::AddressType>] The types of this address.
71
67
  #
72
68
  # @param line2 [String, nil]
73
69
  #
70
+ # @param postal_code [String, nil] The postal code of the address.
71
+ #
74
72
  # @param primary [Boolean, nil] Whether this address is the primary address for the legal entity. Optional; when
73
+ #
74
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
75
75
 
76
76
  module AddressType
77
77
  extend ModernTreasury::Internal::Type::Enum
@@ -245,6 +245,13 @@ module ModernTreasury
245
245
  # @return [String, nil]
246
246
  optional :service_provider_legal_entity_id, String, nil?: true
247
247
 
248
+ # @!attribute status
249
+ # Set to draft to create the legal entity as a draft. Omit to create it as
250
+ # pending. Inline child legal entities take the parent's status.
251
+ #
252
+ # @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Status, nil]
253
+ optional :status, enum: -> { ModernTreasury::LegalEntityCreateParams::Status }
254
+
248
255
  # @!attribute suffix
249
256
  # An individual's suffix.
250
257
  #
@@ -291,7 +298,7 @@ module ModernTreasury
291
298
  # @return [String, nil]
292
299
  optional :website, String, nil?: true
293
300
 
294
- # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: 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, request_options: {})
301
+ # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: 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, status: 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, request_options: {})
295
302
  # Some parameter documentations has been truncated, see
296
303
  # {ModernTreasury::Models::LegalEntityCreateParams} for more details.
297
304
  #
@@ -367,6 +374,8 @@ module ModernTreasury
367
374
  #
368
375
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
369
376
  #
377
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Status] Set to draft to create the legal entity as a draft. Omit to create it as pending
378
+ #
370
379
  # @param suffix [String, nil] An individual's suffix.
371
380
  #
372
381
  # @param terms_of_use [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
@@ -526,6 +535,17 @@ module ModernTreasury
526
535
  # @return [Array<Symbol>]
527
536
  end
528
537
 
538
+ # Set to draft to create the legal entity as a draft. Omit to create it as
539
+ # pending. Inline child legal entities take the parent's status.
540
+ module Status
541
+ extend ModernTreasury::Internal::Type::Enum
542
+
543
+ DRAFT = :draft
544
+
545
+ # @!method self.values
546
+ # @return [Array<Symbol>]
547
+ end
548
+
529
549
  class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
530
550
  # @!attribute accepted_at
531
551
  # The ISO 8601 timestamp indicating when the terms of use were accepted.
@@ -80,6 +80,7 @@ module ModernTreasury
80
80
  extend ModernTreasury::Internal::Type::Enum
81
81
 
82
82
  PENDING = :pending
83
+ DRAFT = :draft
83
84
  ACTIVE = :active
84
85
  SUSPENDED = :suspended
85
86
  DENIED = :denied
@@ -210,6 +210,14 @@ module ModernTreasury
210
210
  # @return [String, nil]
211
211
  optional :service_provider_legal_entity_id, String, nil?: true
212
212
 
213
+ # @!attribute status
214
+ # Set to pending to submit a draft legal entity for processing. Only valid while
215
+ # the legal entity is draft, and must be the only attribute in the request. Draft
216
+ # child legal entities are submitted with it.
217
+ #
218
+ # @return [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Status, nil]
219
+ optional :status, enum: -> { ModernTreasury::LegalEntityUpdateParams::Status }
220
+
213
221
  # @!attribute suffix
214
222
  # An individual's suffix.
215
223
  #
@@ -256,7 +264,7 @@ module ModernTreasury
256
264
  # @return [String, nil]
257
265
  optional :website, String, nil?: true
258
266
 
259
- # @!method initialize(id:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: 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_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, request_options: {})
267
+ # @!method initialize(id:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: 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_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, status: 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, request_options: {})
260
268
  # Some parameter documentations has been truncated, see
261
269
  # {ModernTreasury::Models::LegalEntityUpdateParams} for more details.
262
270
  #
@@ -324,6 +332,8 @@ module ModernTreasury
324
332
  #
325
333
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
326
334
  #
335
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Status] Set to pending to submit a draft legal entity for processing. Only valid while t
336
+ #
327
337
  # @param suffix [String, nil] An individual's suffix.
328
338
  #
329
339
  # @param terms_of_use [ModernTreasury::Models::LegalEntityUpdateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
@@ -427,6 +437,18 @@ module ModernTreasury
427
437
  # @return [Array<Symbol>]
428
438
  end
429
439
 
440
+ # Set to pending to submit a draft legal entity for processing. Only valid while
441
+ # the legal entity is draft, and must be the only attribute in the request. Draft
442
+ # child legal entities are submitted with it.
443
+ module Status
444
+ extend ModernTreasury::Internal::Type::Enum
445
+
446
+ PENDING = :pending
447
+
448
+ # @!method self.values
449
+ # @return [Array<Symbol>]
450
+ end
451
+
430
452
  class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
431
453
  # @!attribute accepted_at
432
454
  # The ISO 8601 timestamp indicating when the terms of use were accepted.
@@ -206,6 +206,14 @@ module ModernTreasury
206
206
  # @return [String, nil]
207
207
  required :originating_party_name, String, nil?: true
208
208
 
209
+ # @!attribute originating_secondary_party_name
210
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
211
+ # check signatures where the originating party wishes to retain their company's
212
+ # display name but use an employee's name for the signature.
213
+ #
214
+ # @return [String, nil]
215
+ required :originating_secondary_party_name, String, nil?: true
216
+
209
217
  # @!attribute priority
210
218
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
211
219
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -376,7 +384,7 @@ module ModernTreasury
376
384
  # @return [String, nil]
377
385
  required :vendor_failure_reason, String, nil?: true
378
386
 
379
- # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_account_type:, originating_party_address:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
387
+ # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_account_type:, originating_party_address:, originating_party_name:, originating_secondary_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
380
388
  # Some parameter documentations has been truncated, see
381
389
  # {ModernTreasury::Models::PaymentOrder} for more details.
382
390
  #
@@ -438,6 +446,8 @@ module ModernTreasury
438
446
  #
439
447
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
440
448
  #
449
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
450
+ #
441
451
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrder::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
442
452
  #
443
453
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -901,6 +911,7 @@ module ModernTreasury
901
911
  COLUMN_FX_QUOTE_ID = :column_fx_quote_id
902
912
  COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
903
913
  COLUMN_TRANSFER_ID = :column_transfer_id
914
+ CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
904
915
  CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
905
916
  CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
906
917
  CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
@@ -970,7 +981,6 @@ module ModernTreasury
970
981
  WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
971
982
  WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
972
983
  WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
973
- WISE_TRANSFER_ID = :wise_transfer_id
974
984
 
975
985
  # @!method self.values
976
986
  # @return [Array<Symbol>]
@@ -184,6 +184,14 @@ module ModernTreasury
184
184
  # @return [String, nil]
185
185
  optional :originating_party_name, String, nil?: true
186
186
 
187
+ # @!attribute originating_secondary_party_name
188
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
189
+ # check signatures where the originating party wishes to retain their company's
190
+ # display name but use an employee's name for the signature.
191
+ #
192
+ # @return [String, nil]
193
+ optional :originating_secondary_party_name, String, nil?: true
194
+
187
195
  # @!attribute priority
188
196
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
189
197
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -324,7 +332,7 @@ module ModernTreasury
324
332
  optional :vendor_attributes,
325
333
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
326
334
 
327
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
335
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
328
336
  # Some parameter documentations has been truncated, see
329
337
  # {ModernTreasury::Models::PaymentOrderCreateAsyncParams} for more details.
330
338
  #
@@ -374,6 +382,8 @@ module ModernTreasury
374
382
  #
375
383
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
376
384
  #
385
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
386
+ #
377
387
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
378
388
  #
379
389
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -753,6 +763,7 @@ module ModernTreasury
753
763
 
754
764
  ARBITRUM_ADDRESS = :arbitrum_address
755
765
  AU_NUMBER = :au_number
766
+ AVALANCHE_ADDRESS = :avalanche_address
756
767
  BASE_ADDRESS = :base_address
757
768
  CARD_TOKEN = :card_token
758
769
  CLABE = :clabe
@@ -190,6 +190,14 @@ module ModernTreasury
190
190
  # @return [String, nil]
191
191
  optional :originating_party_name, String, nil?: true
192
192
 
193
+ # @!attribute originating_secondary_party_name
194
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
195
+ # check signatures where the originating party wishes to retain their company's
196
+ # display name but use an employee's name for the signature.
197
+ #
198
+ # @return [String, nil]
199
+ optional :originating_secondary_party_name, String, nil?: true
200
+
193
201
  # @!attribute priority
194
202
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
195
203
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -330,7 +338,7 @@ module ModernTreasury
330
338
  optional :vendor_attributes,
331
339
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
332
340
 
333
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
341
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
334
342
  # Some parameter documentations has been truncated, see
335
343
  # {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
336
344
  #
@@ -382,6 +390,8 @@ module ModernTreasury
382
390
  #
383
391
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
384
392
  #
393
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
394
+ #
385
395
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
386
396
  #
387
397
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -812,6 +822,7 @@ module ModernTreasury
812
822
 
813
823
  ARBITRUM_ADDRESS = :arbitrum_address
814
824
  AU_NUMBER = :au_number
825
+ AVALANCHE_ADDRESS = :avalanche_address
815
826
  BASE_ADDRESS = :base_address
816
827
  CARD_TOKEN = :card_token
817
828
  CLABE = :clabe
@@ -21,6 +21,7 @@ module ModernTreasury
21
21
  WEB = :WEB
22
22
  ARBITRUM = :arbitrum
23
23
  AU_BECS = :au_becs
24
+ AVALANCHE = :avalanche
24
25
  BACS = :bacs
25
26
  BASE = :base
26
27
  CHATS = :chats
@@ -36,6 +37,7 @@ module ModernTreasury
36
37
  PL_ELIXIR = :pl_elixir
37
38
  POLYGON = :polygon
38
39
  PRINT = :print
40
+ REMOTE_DEPOSIT = :remote_deposit
39
41
  SE_BANKGIROT = :se_bankgirot
40
42
  SEPA = :sepa
41
43
  SG_GIRO = :sg_giro
@@ -168,6 +168,14 @@ module ModernTreasury
168
168
  # @return [String, nil]
169
169
  optional :originating_party_name, String, nil?: true
170
170
 
171
+ # @!attribute originating_secondary_party_name
172
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
173
+ # check signatures where the originating party wishes to retain their company's
174
+ # display name but use an employee's name for the signature.
175
+ #
176
+ # @return [String, nil]
177
+ optional :originating_secondary_party_name, String, nil?: true
178
+
171
179
  # @!attribute priority
172
180
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
173
181
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
@@ -299,7 +307,7 @@ module ModernTreasury
299
307
  # @return [String, nil]
300
308
  optional :ultimate_receiving_party_name, String, nil?: true
301
309
 
302
- # @!method initialize(id:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
310
+ # @!method initialize(id:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
303
311
  # Some parameter documentations has been truncated, see
304
312
  # {ModernTreasury::Models::PaymentOrderUpdateParams} for more details.
305
313
  #
@@ -347,6 +355,8 @@ module ModernTreasury
347
355
  #
348
356
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
349
357
  #
358
+ # @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
359
+ #
350
360
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
351
361
  #
352
362
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
@@ -720,6 +730,7 @@ module ModernTreasury
720
730
 
721
731
  ARBITRUM_ADDRESS = :arbitrum_address
722
732
  AU_NUMBER = :au_number
733
+ AVALANCHE_ADDRESS = :avalanche_address
723
734
  BASE_ADDRESS = :base_address
724
735
  CARD_TOKEN = :card_token
725
736
  CLABE = :clabe
@@ -105,6 +105,7 @@ module ModernTreasury
105
105
  COLUMN_FX_QUOTE_ID = :column_fx_quote_id
106
106
  COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
107
107
  COLUMN_TRANSFER_ID = :column_transfer_id
108
+ CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
108
109
  CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
109
110
  CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
110
111
  CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
@@ -174,7 +175,6 @@ module ModernTreasury
174
175
  WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
175
176
  WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
176
177
  WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
177
- WISE_TRANSFER_ID = :wise_transfer_id
178
178
 
179
179
  # @!method self.values
180
180
  # @return [Array<Symbol>]
@@ -498,6 +498,7 @@ module ModernTreasury
498
498
  COLUMN_FX_QUOTE_ID = :column_fx_quote_id
499
499
  COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
500
500
  COLUMN_TRANSFER_ID = :column_transfer_id
501
+ CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
501
502
  CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
502
503
  CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
503
504
  CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
@@ -567,7 +568,6 @@ module ModernTreasury
567
568
  WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
568
569
  WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
569
570
  WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
570
- WISE_TRANSFER_ID = :wise_transfer_id
571
571
 
572
572
  # @!method self.values
573
573
  # @return [Array<Symbol>]
@@ -101,6 +101,7 @@ module ModernTreasury
101
101
  DATE_OF_BIRTH = :date_of_birth
102
102
  ADDRESS = :address
103
103
  GOVERNMENT_ID_NUMBER = :government_id_number
104
+ TAX_ID = :tax_id
104
105
  ADVERSE_MEDIA = :adverse_media
105
106
 
106
107
  # @!method self.values
@@ -161,6 +161,7 @@ module ModernTreasury
161
161
 
162
162
  ARBITRUM_ADDRESS = :arbitrum_address
163
163
  AU_NUMBER = :au_number
164
+ AVALANCHE_ADDRESS = :avalanche_address
164
165
  BASE_ADDRESS = :base_address
165
166
  CARD_TOKEN = :card_token
166
167
  CLABE = :clabe
@@ -50,7 +50,7 @@ module ModernTreasury
50
50
  #
51
51
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
52
52
  #
53
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
53
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
54
54
  #
55
55
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
56
56
  #
@@ -137,7 +137,7 @@ module ModernTreasury
137
137
  #
138
138
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
139
139
  #
140
- # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
140
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
141
141
  #
142
142
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
143
143
  #
@@ -11,7 +11,7 @@ module ModernTreasury
11
11
  #
12
12
  # create internal account
13
13
  #
14
- # @overload create(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, vendor_attributes: nil, request_options: {})
14
+ # @overload create(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, title: nil, vendor_attributes: nil, request_options: {})
15
15
  #
16
16
  # @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] The currency of the internal account. Supports fiat and stablecoin currencies.
17
17
  #
@@ -41,6 +41,8 @@ module ModernTreasury
41
41
  #
42
42
  # @param requested_account_number_types [Array<Symbol, ModernTreasury::Models::InternalAccountCreateParams::RequestedAccountNumberType>] An array of account number types requested for provisioning.
43
43
  #
44
+ # @param title [String, nil] The account title at the financial institution, used in place of the party name.
45
+ #
44
46
  # @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
45
47
  #
46
48
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -167,7 +169,10 @@ module ModernTreasury
167
169
  )
168
170
  end
169
171
 
170
- # request closure of internal account
172
+ # @deprecated
173
+ #
174
+ # This endpoint has been deprecated. Request closure with PATCH
175
+ # /api/internal_accounts/{id} and status: "pending_closure".
171
176
  #
172
177
  # @overload request_closure(id, request_options: {})
173
178
  #
@@ -8,7 +8,7 @@ module ModernTreasury
8
8
  #
9
9
  # Create a legal entity. All country fields use ISO 3166-1 alpha-2 (e.g. US).
10
10
  #
11
- # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: 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, request_options: {})
11
+ # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: 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, status: 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, request_options: {})
12
12
  #
13
13
  # @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
14
14
  #
@@ -82,6 +82,8 @@ module ModernTreasury
82
82
  #
83
83
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
84
84
  #
85
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Status] Set to draft to create the legal entity as a draft. Omit to create it as pending
86
+ #
85
87
  # @param suffix [String, nil] An individual's suffix.
86
88
  #
87
89
  # @param terms_of_use [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
@@ -137,7 +139,7 @@ module ModernTreasury
137
139
  #
138
140
  # Update a legal entity.
139
141
  #
140
- # @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: 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_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, request_options: {})
142
+ # @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: 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_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, status: 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, request_options: {})
141
143
  #
142
144
  # @param id [String] id
143
145
  #
@@ -203,6 +205,8 @@ module ModernTreasury
203
205
  #
204
206
  # @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
205
207
  #
208
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Status] Set to pending to submit a draft legal entity for processing. Only valid while t
209
+ #
206
210
  # @param suffix [String, nil] An individual's suffix.
207
211
  #
208
212
  # @param terms_of_use [ModernTreasury::Models::LegalEntityUpdateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.