modern_treasury 0.30.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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/account_detail.rb +9 -6
  5. data/lib/modern_treasury/models/account_detail_create_params.rb +9 -6
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +30 -10
  7. data/lib/modern_treasury/models/child_legal_entity.rb +8 -7
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -2
  9. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +2 -2
  10. data/lib/modern_treasury/models/counterparty_create_params.rb +27 -4
  11. data/lib/modern_treasury/models/document.rb +7 -9
  12. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  13. data/lib/modern_treasury/models/document_list_params.rb +7 -9
  14. data/lib/modern_treasury/models/expected_payment.rb +3 -4
  15. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  16. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  17. data/lib/modern_treasury/models/external_account_create_params.rb +2 -1
  18. data/lib/modern_treasury/models/identification.rb +109 -0
  19. data/lib/modern_treasury/models/identification_create_params.rb +109 -0
  20. data/lib/modern_treasury/models/identification_create_request.rb +109 -0
  21. data/lib/modern_treasury/models/identification_update_params.rb +109 -0
  22. data/lib/modern_treasury/models/incoming_payment_detail.rb +2 -1
  23. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +3 -14
  24. data/lib/modern_treasury/models/internal_account.rb +10 -1
  25. data/lib/modern_treasury/models/internal_account_create_params.rb +13 -1
  26. data/lib/modern_treasury/models/ledger_account.rb +0 -1
  27. data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
  28. data/lib/modern_treasury/models/legal_entity.rb +8 -7
  29. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
  30. data/lib/modern_treasury/models/legal_entity_create_params.rb +23 -3
  31. data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
  32. data/lib/modern_treasury/models/legal_entity_update_params.rb +25 -3
  33. data/lib/modern_treasury/models/payment_order.rb +12 -2
  34. data/lib/modern_treasury/models/payment_order_create_async_params.rb +13 -2
  35. data/lib/modern_treasury/models/payment_order_create_params.rb +13 -4
  36. data/lib/modern_treasury/models/payment_order_subtype.rb +3 -0
  37. data/lib/modern_treasury/models/payment_order_update_params.rb +13 -2
  38. data/lib/modern_treasury/models/payment_reference.rb +1 -1
  39. data/lib/modern_treasury/models/return_object.rb +1 -1
  40. data/lib/modern_treasury/models/third_party_verification.rb +1 -0
  41. data/lib/modern_treasury/models/virtual_account.rb +9 -1
  42. data/lib/modern_treasury/models/virtual_account_create_params.rb +18 -7
  43. data/lib/modern_treasury/models/virtual_account_list_params.rb +9 -1
  44. data/lib/modern_treasury/resources/account_details.rb +1 -1
  45. data/lib/modern_treasury/resources/documents.rb +1 -1
  46. data/lib/modern_treasury/resources/expected_payments.rb +2 -2
  47. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  48. data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
  49. data/lib/modern_treasury/resources/legal_entities.rb +8 -4
  50. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  51. data/lib/modern_treasury/resources/virtual_accounts.rb +6 -2
  52. data/lib/modern_treasury/version.rb +1 -1
  53. data/rbi/modern_treasury/models/account_detail.rbi +19 -11
  54. data/rbi/modern_treasury/models/account_detail_create_params.rbi +19 -11
  55. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +66 -16
  56. data/rbi/modern_treasury/models/child_legal_entity.rbi +10 -8
  57. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +2 -2
  58. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2 -2
  59. data/rbi/modern_treasury/models/counterparty_create_params.rbi +69 -7
  60. data/rbi/modern_treasury/models/document.rbi +9 -19
  61. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  62. data/rbi/modern_treasury/models/document_list_params.rbi +9 -19
  63. data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
  64. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
  65. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
  66. data/rbi/modern_treasury/models/external_account_create_params.rbi +10 -5
  67. data/rbi/modern_treasury/models/identification.rbi +224 -0
  68. data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
  69. data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
  70. data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
  71. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +10 -5
  72. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +4 -50
  73. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  74. data/rbi/modern_treasury/models/internal_account_create_params.rbi +22 -0
  75. data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
  76. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
  77. data/rbi/modern_treasury/models/legal_entity.rbi +9 -8
  78. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
  79. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +51 -2
  80. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
  81. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +54 -2
  82. data/rbi/modern_treasury/models/payment_order.rbi +17 -5
  83. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +22 -5
  84. data/rbi/modern_treasury/models/payment_order_create_params.rbi +22 -15
  85. data/rbi/modern_treasury/models/payment_order_subtype.rbi +9 -0
  86. data/rbi/modern_treasury/models/payment_order_update_params.rbi +22 -5
  87. data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
  88. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  89. data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
  90. data/rbi/modern_treasury/models/virtual_account.rbi +8 -0
  91. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +27 -11
  92. data/rbi/modern_treasury/models/virtual_account_list_params.rbi +11 -0
  93. data/rbi/modern_treasury/resources/account_details.rbi +3 -2
  94. data/rbi/modern_treasury/resources/documents.rbi +3 -3
  95. data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
  96. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  97. data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
  98. data/rbi/modern_treasury/resources/legal_entities.rbi +11 -2
  99. data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
  100. data/rbi/modern_treasury/resources/virtual_accounts.rbi +6 -0
  101. data/sig/modern_treasury/models/account_detail.rbs +5 -3
  102. data/sig/modern_treasury/models/account_detail_create_params.rbs +5 -3
  103. data/sig/modern_treasury/models/bulk_request_create_params.rbs +36 -14
  104. data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
  105. data/sig/modern_treasury/models/counterparty_create_params.rbs +24 -3
  106. data/sig/modern_treasury/models/document.rbs +0 -4
  107. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  108. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  109. data/sig/modern_treasury/models/expected_payment.rbs +4 -4
  110. data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
  111. data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
  112. data/sig/modern_treasury/models/external_account_create_params.rbs +5 -3
  113. data/sig/modern_treasury/models/identification.rbs +219 -1
  114. data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
  115. data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
  116. data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
  117. data/sig/modern_treasury/models/incoming_payment_detail.rbs +5 -3
  118. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +6 -17
  119. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  120. data/sig/modern_treasury/models/internal_account_create_params.rbs +13 -1
  121. data/sig/modern_treasury/models/ledger_account.rbs +1 -2
  122. data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
  123. data/sig/modern_treasury/models/legal_entity.rbs +2 -1
  124. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
  125. data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
  126. data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
  127. data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
  128. data/sig/modern_treasury/models/payment_order.rbs +7 -2
  129. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +10 -3
  130. data/sig/modern_treasury/models/payment_order_create_params.rbs +10 -7
  131. data/sig/modern_treasury/models/payment_order_subtype.rbs +6 -0
  132. data/sig/modern_treasury/models/payment_order_update_params.rbs +10 -3
  133. data/sig/modern_treasury/models/payment_reference.rbs +2 -2
  134. data/sig/modern_treasury/models/return_object.rbs +2 -2
  135. data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
  136. data/sig/modern_treasury/models/virtual_account.rbs +5 -0
  137. data/sig/modern_treasury/models/virtual_account_create_params.rbs +10 -3
  138. data/sig/modern_treasury/models/virtual_account_list_params.rbs +7 -0
  139. data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
  140. data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
  141. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  142. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  143. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  144. data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
  145. metadata +2 -2
@@ -52,6 +52,7 @@ module ModernTreasury
52
52
  ModernTreasury::PaymentOrderCreateParams::OriginatingPartyAddress::OrHash
53
53
  ),
54
54
  originating_party_name: T.nilable(String),
55
+ originating_secondary_party_name: T.nilable(String),
55
56
  priority:
56
57
  ModernTreasury::PaymentOrderCreateParams::Priority::OrSymbol,
57
58
  process_after: T.nilable(Time),
@@ -156,6 +157,10 @@ module ModernTreasury
156
157
  # the first 16 characters of this string will be used. Any additional characters
157
158
  # will be truncated.
158
159
  originating_party_name: nil,
160
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
161
+ # check signatures where the originating party wishes to retain their company's
162
+ # display name but use an employee's name for the signature.
163
+ originating_secondary_party_name: nil,
159
164
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
160
165
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
161
166
  # an overnight check rather than standard mail.
@@ -272,6 +277,7 @@ module ModernTreasury
272
277
  ModernTreasury::PaymentOrderUpdateParams::OriginatingPartyAddress::OrHash
273
278
  ),
274
279
  originating_party_name: T.nilable(String),
280
+ originating_secondary_party_name: T.nilable(String),
275
281
  priority:
276
282
  ModernTreasury::PaymentOrderUpdateParams::Priority::OrSymbol,
277
283
  process_after: T.nilable(Time),
@@ -358,6 +364,10 @@ module ModernTreasury
358
364
  # the first 16 characters of this string will be used. Any additional characters
359
365
  # will be truncated.
360
366
  originating_party_name: nil,
367
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
368
+ # check signatures where the originating party wishes to retain their company's
369
+ # display name but use an employee's name for the signature.
370
+ originating_secondary_party_name: nil,
361
371
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
362
372
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
363
373
  # an overnight check rather than standard mail.
@@ -531,6 +541,7 @@ module ModernTreasury
531
541
  ModernTreasury::PaymentOrderCreateAsyncParams::OriginatingPartyAddress::OrHash
532
542
  ),
533
543
  originating_party_name: T.nilable(String),
544
+ originating_secondary_party_name: T.nilable(String),
534
545
  priority:
535
546
  ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
536
547
  process_after: T.nilable(Time),
@@ -632,6 +643,10 @@ module ModernTreasury
632
643
  # the first 16 characters of this string will be used. Any additional characters
633
644
  # will be truncated.
634
645
  originating_party_name: nil,
646
+ # Secondary name for the legal entity making the payment. Can be used for e.g.
647
+ # check signatures where the originating party wishes to retain their company's
648
+ # display name but use an employee's name for the signature.
649
+ originating_secondary_party_name: nil,
635
650
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
636
651
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
637
652
  # an overnight check rather than standard mail.
@@ -16,6 +16,7 @@ module ModernTreasury
16
16
  credit_ledger_account_id: String,
17
17
  debit_ledger_account_id: String,
18
18
  description: String,
19
+ external_id: T.nilable(String),
19
20
  ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
20
21
  ledger_account_id: String,
21
22
  metadata: T::Hash[Symbol, String],
@@ -46,6 +47,8 @@ module ModernTreasury
46
47
  debit_ledger_account_id: nil,
47
48
  # An optional description for internal use.
48
49
  description: nil,
50
+ # A user-defined identifier for the virtual account.
51
+ external_id: nil,
49
52
  # Specifies a ledger account object that will be created with the virtual account.
50
53
  # The resulting ledger account is linked to the virtual account for auto-ledgering
51
54
  # IPDs.
@@ -105,6 +108,7 @@ module ModernTreasury
105
108
  params(
106
109
  after_cursor: T.nilable(String),
107
110
  counterparty_id: String,
111
+ external_id: String,
108
112
  internal_account_id: String,
109
113
  metadata: T::Hash[Symbol, String],
110
114
  per_page: Integer,
@@ -116,6 +120,8 @@ module ModernTreasury
116
120
  def list(
117
121
  after_cursor: nil,
118
122
  counterparty_id: nil,
123
+ # Only return virtual accounts with this external ID.
124
+ external_id: nil,
119
125
  internal_account_id: nil,
120
126
  # For example, if you want to query for records with metadata key `Type` and value
121
127
  # `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
@@ -59,7 +59,9 @@ module ModernTreasury
59
59
  }
60
60
 
61
61
  type account_number_type =
62
- :au_number
62
+ :arbitrum_address
63
+ | :au_number
64
+ | :avalanche_address
63
65
  | :base_address
64
66
  | :card_token
65
67
  | :clabe
@@ -73,12 +75,13 @@ module ModernTreasury
73
75
  | :polygon_address
74
76
  | :sg_number
75
77
  | :solana_address
76
- | :wallet_address
77
78
 
78
79
  module AccountNumberType
79
80
  extend ModernTreasury::Internal::Type::Enum
80
81
 
82
+ ARBITRUM_ADDRESS: :arbitrum_address
81
83
  AU_NUMBER: :au_number
84
+ AVALANCHE_ADDRESS: :avalanche_address
82
85
  BASE_ADDRESS: :base_address
83
86
  CARD_TOKEN: :card_token
84
87
  CLABE: :clabe
@@ -92,7 +95,6 @@ module ModernTreasury
92
95
  POLYGON_ADDRESS: :polygon_address
93
96
  SG_NUMBER: :sg_number
94
97
  SOLANA_ADDRESS: :solana_address
95
- WALLET_ADDRESS: :wallet_address
96
98
 
97
99
  def self?.values: -> ::Array[ModernTreasury::Models::AccountDetail::account_number_type]
98
100
  end
@@ -52,7 +52,9 @@ module ModernTreasury
52
52
  end
53
53
 
54
54
  type account_number_type =
55
- :au_number
55
+ :arbitrum_address
56
+ | :au_number
57
+ | :avalanche_address
56
58
  | :base_address
57
59
  | :card_token
58
60
  | :clabe
@@ -66,12 +68,13 @@ module ModernTreasury
66
68
  | :polygon_address
67
69
  | :sg_number
68
70
  | :solana_address
69
- | :wallet_address
70
71
 
71
72
  module AccountNumberType
72
73
  extend ModernTreasury::Internal::Type::Enum
73
74
 
75
+ ARBITRUM_ADDRESS: :arbitrum_address
74
76
  AU_NUMBER: :au_number
77
+ AVALANCHE_ADDRESS: :avalanche_address
75
78
  BASE_ADDRESS: :base_address
76
79
  CARD_TOKEN: :card_token
77
80
  CLABE: :clabe
@@ -85,7 +88,6 @@ module ModernTreasury
85
88
  POLYGON_ADDRESS: :polygon_address
86
89
  SG_NUMBER: :sg_number
87
90
  SOLANA_ADDRESS: :solana_address
88
- WALLET_ADDRESS: :wallet_address
89
91
 
90
92
  def self?.values: -> ::Array[ModernTreasury::Models::AccountDetailCreateParams::account_number_type]
91
93
  end
@@ -113,6 +113,7 @@ module ModernTreasury
113
113
  nsf_protected: bool,
114
114
  originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress?,
115
115
  originating_party_name: String?,
116
+ originating_secondary_party_name: String?,
116
117
  priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::priority,
117
118
  process_after: Time?,
118
119
  purpose: String?,
@@ -208,6 +209,8 @@ module ModernTreasury
208
209
 
209
210
  attr_accessor originating_party_name: String?
210
211
 
212
+ attr_accessor originating_secondary_party_name: String?
213
+
211
214
  attr_reader priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::priority?
212
215
 
213
216
  def priority=: (
@@ -288,6 +291,7 @@ module ModernTreasury
288
291
  ?nsf_protected: bool,
289
292
  ?originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress?,
290
293
  ?originating_party_name: String?,
294
+ ?originating_secondary_party_name: String?,
291
295
  ?priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::priority,
292
296
  ?process_after: Time?,
293
297
  ?purpose: String?,
@@ -332,6 +336,7 @@ module ModernTreasury
332
336
  nsf_protected: bool,
333
337
  originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress?,
334
338
  originating_party_name: String?,
339
+ originating_secondary_party_name: String?,
335
340
  priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::priority,
336
341
  process_after: Time?,
337
342
  purpose: String?,
@@ -630,7 +635,9 @@ module ModernTreasury
630
635
  }
631
636
 
632
637
  type account_number_type =
633
- :au_number
638
+ :arbitrum_address
639
+ | :au_number
640
+ | :avalanche_address
634
641
  | :base_address
635
642
  | :card_token
636
643
  | :clabe
@@ -644,12 +651,13 @@ module ModernTreasury
644
651
  | :polygon_address
645
652
  | :sg_number
646
653
  | :solana_address
647
- | :wallet_address
648
654
 
649
655
  module AccountNumberType
650
656
  extend ModernTreasury::Internal::Type::Enum
651
657
 
658
+ ARBITRUM_ADDRESS: :arbitrum_address
652
659
  AU_NUMBER: :au_number
660
+ AVALANCHE_ADDRESS: :avalanche_address
653
661
  BASE_ADDRESS: :base_address
654
662
  CARD_TOKEN: :card_token
655
663
  CLABE: :clabe
@@ -663,7 +671,6 @@ module ModernTreasury
663
671
  POLYGON_ADDRESS: :polygon_address
664
672
  SG_NUMBER: :sg_number
665
673
  SOLANA_ADDRESS: :solana_address
666
- WALLET_ADDRESS: :wallet_address
667
674
 
668
675
  def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::account_number_type]
669
676
  end
@@ -910,7 +917,7 @@ module ModernTreasury
910
917
  metadata: ::Hash[Symbol, String],
911
918
  reconciliation_filters: top?,
912
919
  reconciliation_groups: top?,
913
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
920
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
914
921
  remittance_information: String?,
915
922
  statement_descriptor: String?,
916
923
  type: ModernTreasury::Models::expected_payment_type?
@@ -969,7 +976,11 @@ module ModernTreasury
969
976
 
970
977
  attr_accessor reconciliation_groups: top?
971
978
 
972
- attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
979
+ attr_reader reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
980
+
981
+ def reconciliation_rule_variables=: (
982
+ ::Array[ModernTreasury::ReconciliationRule]
983
+ ) -> ::Array[ModernTreasury::ReconciliationRule]
973
984
 
974
985
  attr_accessor remittance_information: String?
975
986
 
@@ -998,7 +1009,7 @@ module ModernTreasury
998
1009
  ?metadata: ::Hash[Symbol, String],
999
1010
  ?reconciliation_filters: top?,
1000
1011
  ?reconciliation_groups: top?,
1001
- ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
1012
+ ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
1002
1013
  ?remittance_information: String?,
1003
1014
  ?statement_descriptor: String?,
1004
1015
  ?type: ModernTreasury::Models::expected_payment_type?
@@ -1025,7 +1036,7 @@ module ModernTreasury
1025
1036
  metadata: ::Hash[Symbol, String],
1026
1037
  reconciliation_filters: top?,
1027
1038
  reconciliation_groups: top?,
1028
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
1039
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
1029
1040
  remittance_information: String?,
1030
1041
  statement_descriptor: String?,
1031
1042
  type: ModernTreasury::Models::expected_payment_type?
@@ -1276,6 +1287,7 @@ module ModernTreasury
1276
1287
  originating_account_id: String,
1277
1288
  originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress?,
1278
1289
  originating_party_name: String?,
1290
+ originating_secondary_party_name: String?,
1279
1291
  priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::priority,
1280
1292
  process_after: Time?,
1281
1293
  purpose: String?,
@@ -1371,6 +1383,8 @@ module ModernTreasury
1371
1383
 
1372
1384
  attr_accessor originating_party_name: String?
1373
1385
 
1386
+ attr_accessor originating_secondary_party_name: String?
1387
+
1374
1388
  attr_reader priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::priority?
1375
1389
 
1376
1390
  def priority=: (
@@ -1448,6 +1462,7 @@ module ModernTreasury
1448
1462
  ?originating_account_id: String,
1449
1463
  ?originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress?,
1450
1464
  ?originating_party_name: String?,
1465
+ ?originating_secondary_party_name: String?,
1451
1466
  ?priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::priority,
1452
1467
  ?process_after: Time?,
1453
1468
  ?purpose: String?,
@@ -1489,6 +1504,7 @@ module ModernTreasury
1489
1504
  originating_account_id: String,
1490
1505
  originating_party_address: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress?,
1491
1506
  originating_party_name: String?,
1507
+ originating_secondary_party_name: String?,
1492
1508
  priority: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::priority,
1493
1509
  process_after: Time?,
1494
1510
  purpose: String?,
@@ -1785,7 +1801,9 @@ module ModernTreasury
1785
1801
  }
1786
1802
 
1787
1803
  type account_number_type =
1788
- :au_number
1804
+ :arbitrum_address
1805
+ | :au_number
1806
+ | :avalanche_address
1789
1807
  | :base_address
1790
1808
  | :card_token
1791
1809
  | :clabe
@@ -1799,12 +1817,13 @@ module ModernTreasury
1799
1817
  | :polygon_address
1800
1818
  | :sg_number
1801
1819
  | :solana_address
1802
- | :wallet_address
1803
1820
 
1804
1821
  module AccountNumberType
1805
1822
  extend ModernTreasury::Internal::Type::Enum
1806
1823
 
1824
+ ARBITRUM_ADDRESS: :arbitrum_address
1807
1825
  AU_NUMBER: :au_number
1826
+ AVALANCHE_ADDRESS: :avalanche_address
1808
1827
  BASE_ADDRESS: :base_address
1809
1828
  CARD_TOKEN: :card_token
1810
1829
  CLABE: :clabe
@@ -1818,7 +1837,6 @@ module ModernTreasury
1818
1837
  POLYGON_ADDRESS: :polygon_address
1819
1838
  SG_NUMBER: :sg_number
1820
1839
  SOLANA_ADDRESS: :solana_address
1821
- WALLET_ADDRESS: :wallet_address
1822
1840
 
1823
1841
  def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::account_number_type]
1824
1842
  end
@@ -2044,7 +2062,7 @@ module ModernTreasury
2044
2062
  metadata: ::Hash[Symbol, String],
2045
2063
  reconciliation_filters: top?,
2046
2064
  reconciliation_groups: top?,
2047
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
2065
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
2048
2066
  remittance_information: String?,
2049
2067
  statement_descriptor: String?,
2050
2068
  status: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::status?,
@@ -2092,7 +2110,11 @@ module ModernTreasury
2092
2110
 
2093
2111
  attr_accessor reconciliation_groups: top?
2094
2112
 
2095
- attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
2113
+ attr_reader reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
2114
+
2115
+ def reconciliation_rule_variables=: (
2116
+ ::Array[ModernTreasury::ReconciliationRule]
2117
+ ) -> ::Array[ModernTreasury::ReconciliationRule]
2096
2118
 
2097
2119
  attr_accessor remittance_information: String?
2098
2120
 
@@ -2121,7 +2143,7 @@ module ModernTreasury
2121
2143
  ?metadata: ::Hash[Symbol, String],
2122
2144
  ?reconciliation_filters: top?,
2123
2145
  ?reconciliation_groups: top?,
2124
- ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
2146
+ ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
2125
2147
  ?remittance_information: String?,
2126
2148
  ?statement_descriptor: String?,
2127
2149
  ?status: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::status?,
@@ -2147,7 +2169,7 @@ module ModernTreasury
2147
2169
  metadata: ::Hash[Symbol, String],
2148
2170
  reconciliation_filters: top?,
2149
2171
  reconciliation_groups: top?,
2150
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
2172
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
2151
2173
  remittance_information: String?,
2152
2174
  statement_descriptor: String?,
2153
2175
  status: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::status?,
@@ -452,13 +452,14 @@ module ModernTreasury
452
452
  def self?.values: -> ::Array[ModernTreasury::Models::ChildLegalEntity::risk_rating]
453
453
  end
454
454
 
455
- type status = :active | :denied | :pending | :suspended
455
+ type status = :active | :denied | :draft | :pending | :suspended
456
456
 
457
457
  module Status
458
458
  extend ModernTreasury::Internal::Type::Enum
459
459
 
460
460
  ACTIVE: :active
461
461
  DENIED: :denied
462
+ DRAFT: :draft
462
463
  PENDING: :pending
463
464
  SUSPENDED: :suspended
464
465
 
@@ -267,7 +267,9 @@ module ModernTreasury
267
267
  }
268
268
 
269
269
  type account_number_type =
270
- :au_number
270
+ :arbitrum_address
271
+ | :au_number
272
+ | :avalanche_address
271
273
  | :base_address
272
274
  | :card_token
273
275
  | :clabe
@@ -281,12 +283,13 @@ module ModernTreasury
281
283
  | :polygon_address
282
284
  | :sg_number
283
285
  | :solana_address
284
- | :wallet_address
285
286
 
286
287
  module AccountNumberType
287
288
  extend ModernTreasury::Internal::Type::Enum
288
289
 
290
+ ARBITRUM_ADDRESS: :arbitrum_address
289
291
  AU_NUMBER: :au_number
292
+ AVALANCHE_ADDRESS: :avalanche_address
290
293
  BASE_ADDRESS: :base_address
291
294
  CARD_TOKEN: :card_token
292
295
  CLABE: :clabe
@@ -300,7 +303,6 @@ module ModernTreasury
300
303
  POLYGON_ADDRESS: :polygon_address
301
304
  SG_NUMBER: :sg_number
302
305
  SOLANA_ADDRESS: :solana_address
303
- WALLET_ADDRESS: :wallet_address
304
306
 
305
307
  def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::account_number_type]
306
308
  end
@@ -506,6 +508,7 @@ module ModernTreasury
506
508
  regulators: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::Regulator]?,
507
509
  risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
508
510
  service_provider_legal_entity_id: String?,
511
+ status: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status,
509
512
  suffix: String?,
510
513
  terms_of_use: ModernTreasury::CounterpartyCreateParams::LegalEntity::TermsOfUse?,
511
514
  third_party_verification: ModernTreasury::ThirdPartyVerification?,
@@ -616,6 +619,12 @@ module ModernTreasury
616
619
 
617
620
  attr_accessor service_provider_legal_entity_id: String?
618
621
 
622
+ attr_reader status: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status?
623
+
624
+ def status=: (
625
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status
626
+ ) -> ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status
627
+
619
628
  attr_accessor suffix: String?
620
629
 
621
630
  attr_accessor terms_of_use: ModernTreasury::CounterpartyCreateParams::LegalEntity::TermsOfUse?
@@ -671,6 +680,7 @@ module ModernTreasury
671
680
  ?regulators: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::Regulator]?,
672
681
  ?risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
673
682
  ?service_provider_legal_entity_id: String?,
683
+ ?status: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status,
674
684
  ?suffix: String?,
675
685
  ?terms_of_use: ModernTreasury::CounterpartyCreateParams::LegalEntity::TermsOfUse?,
676
686
  ?third_party_verification: ModernTreasury::ThirdPartyVerification?,
@@ -717,6 +727,7 @@ module ModernTreasury
717
727
  regulators: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::Regulator]?,
718
728
  risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
719
729
  service_provider_legal_entity_id: String?,
730
+ status: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status,
720
731
  suffix: String?,
721
732
  terms_of_use: ModernTreasury::CounterpartyCreateParams::LegalEntity::TermsOfUse?,
722
733
  third_party_verification: ModernTreasury::ThirdPartyVerification?,
@@ -869,6 +880,16 @@ module ModernTreasury
869
880
  def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating]
870
881
  end
871
882
 
883
+ type status = :draft
884
+
885
+ module Status
886
+ extend ModernTreasury::Internal::Type::Enum
887
+
888
+ DRAFT: :draft
889
+
890
+ def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::status]
891
+ end
892
+
872
893
  type terms_of_use = { accepted_at: Time, ip_address: String }
873
894
 
874
895
  class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
@@ -70,12 +70,10 @@ module ModernTreasury
70
70
  :connection
71
71
  | :counterparty
72
72
  | :expected_payment
73
- | :external_account
74
73
  | :identification
75
74
  | :incoming_payment_detail
76
75
  | :internal_account
77
76
  | :legal_entity
78
- | :organization
79
77
  | :payment_order
80
78
  | :return
81
79
  | :transaction
@@ -86,12 +84,10 @@ module ModernTreasury
86
84
  CONNECTION: :connection
87
85
  COUNTERPARTY: :counterparty
88
86
  EXPECTED_PAYMENT: :expected_payment
89
- EXTERNAL_ACCOUNT: :external_account
90
87
  IDENTIFICATION: :identification
91
88
  INCOMING_PAYMENT_DETAIL: :incoming_payment_detail
92
89
  INTERNAL_ACCOUNT: :internal_account
93
90
  LEGAL_ENTITY: :legal_entity
94
- ORGANIZATION: :organization
95
91
  PAYMENT_ORDER: :payment_order
96
92
  RETURN: :return
97
93
  TRANSACTION: :transaction
@@ -49,12 +49,10 @@ module ModernTreasury
49
49
  :connection
50
50
  | :counterparty
51
51
  | :expected_payment
52
- | :external_account
53
52
  | :identification
54
53
  | :incoming_payment_detail
55
54
  | :internal_account
56
55
  | :legal_entity
57
- | :organization
58
56
  | :payment_order
59
57
  | :return
60
58
  | :transaction
@@ -65,12 +63,10 @@ module ModernTreasury
65
63
  CONNECTION: :connection
66
64
  COUNTERPARTY: :counterparty
67
65
  EXPECTED_PAYMENT: :expected_payment
68
- EXTERNAL_ACCOUNT: :external_account
69
66
  IDENTIFICATION: :identification
70
67
  INCOMING_PAYMENT_DETAIL: :incoming_payment_detail
71
68
  INTERNAL_ACCOUNT: :internal_account
72
69
  LEGAL_ENTITY: :legal_entity
73
- ORGANIZATION: :organization
74
70
  PAYMENT_ORDER: :payment_order
75
71
  RETURN: :return
76
72
  TRANSACTION: :transaction
@@ -49,12 +49,10 @@ module ModernTreasury
49
49
  :connection
50
50
  | :counterparty
51
51
  | :expected_payment
52
- | :external_account
53
52
  | :identification
54
53
  | :incoming_payment_detail
55
54
  | :internal_account
56
55
  | :legal_entity
57
- | :organization
58
56
  | :payment_order
59
57
  | :return
60
58
  | :transaction
@@ -65,12 +63,10 @@ module ModernTreasury
65
63
  CONNECTION: :connection
66
64
  COUNTERPARTY: :counterparty
67
65
  EXPECTED_PAYMENT: :expected_payment
68
- EXTERNAL_ACCOUNT: :external_account
69
66
  IDENTIFICATION: :identification
70
67
  INCOMING_PAYMENT_DETAIL: :incoming_payment_detail
71
68
  INTERNAL_ACCOUNT: :internal_account
72
69
  LEGAL_ENTITY: :legal_entity
73
- ORGANIZATION: :organization
74
70
  PAYMENT_ORDER: :payment_order
75
71
  RETURN: :return
76
72
  TRANSACTION: :transaction
@@ -25,7 +25,7 @@ module ModernTreasury
25
25
  reconciliation_filters: top?,
26
26
  reconciliation_groups: top?,
27
27
  reconciliation_method: ModernTreasury::Models::ExpectedPayment::reconciliation_method?,
28
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
28
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
29
29
  remittance_information: String?,
30
30
  statement_descriptor: String?,
31
31
  status: ModernTreasury::Models::ExpectedPayment::status,
@@ -82,7 +82,7 @@ module ModernTreasury
82
82
 
83
83
  attr_accessor reconciliation_method: ModernTreasury::Models::ExpectedPayment::reconciliation_method?
84
84
 
85
- attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
85
+ attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]
86
86
 
87
87
  attr_accessor remittance_information: String?
88
88
 
@@ -122,7 +122,7 @@ module ModernTreasury
122
122
  reconciliation_filters: top?,
123
123
  reconciliation_groups: top?,
124
124
  reconciliation_method: ModernTreasury::Models::ExpectedPayment::reconciliation_method?,
125
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
125
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
126
126
  remittance_information: String?,
127
127
  statement_descriptor: String?,
128
128
  status: ModernTreasury::Models::ExpectedPayment::status,
@@ -156,7 +156,7 @@ module ModernTreasury
156
156
  reconciliation_filters: top?,
157
157
  reconciliation_groups: top?,
158
158
  reconciliation_method: ModernTreasury::Models::ExpectedPayment::reconciliation_method?,
159
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
159
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
160
160
  remittance_information: String?,
161
161
  statement_descriptor: String?,
162
162
  status: ModernTreasury::Models::ExpectedPayment::status,
@@ -22,7 +22,7 @@ module ModernTreasury
22
22
  metadata: ::Hash[Symbol, String],
23
23
  reconciliation_filters: top?,
24
24
  reconciliation_groups: top?,
25
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
25
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
26
26
  remittance_information: String?,
27
27
  statement_descriptor: String?,
28
28
  type: ModernTreasury::Models::expected_payment_type?
@@ -85,7 +85,11 @@ module ModernTreasury
85
85
 
86
86
  attr_accessor reconciliation_groups: top?
87
87
 
88
- attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
88
+ attr_reader reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
89
+
90
+ def reconciliation_rule_variables=: (
91
+ ::Array[ModernTreasury::ReconciliationRule]
92
+ ) -> ::Array[ModernTreasury::ReconciliationRule]
89
93
 
90
94
  attr_accessor remittance_information: String?
91
95
 
@@ -114,7 +118,7 @@ module ModernTreasury
114
118
  ?metadata: ::Hash[Symbol, String],
115
119
  ?reconciliation_filters: top?,
116
120
  ?reconciliation_groups: top?,
117
- ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
121
+ ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
118
122
  ?remittance_information: String?,
119
123
  ?statement_descriptor: String?,
120
124
  ?type: ModernTreasury::Models::expected_payment_type?,
@@ -142,7 +146,7 @@ module ModernTreasury
142
146
  metadata: ::Hash[Symbol, String],
143
147
  reconciliation_filters: top?,
144
148
  reconciliation_groups: top?,
145
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
149
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
146
150
  remittance_information: String?,
147
151
  statement_descriptor: String?,
148
152
  type: ModernTreasury::Models::expected_payment_type?,
@@ -20,7 +20,7 @@ module ModernTreasury
20
20
  metadata: ::Hash[Symbol, String],
21
21
  reconciliation_filters: top?,
22
22
  reconciliation_groups: top?,
23
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
23
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
24
24
  remittance_information: String?,
25
25
  statement_descriptor: String?,
26
26
  status: ModernTreasury::Models::ExpectedPaymentUpdateParams::status?,
@@ -70,7 +70,11 @@ module ModernTreasury
70
70
 
71
71
  attr_accessor reconciliation_groups: top?
72
72
 
73
- attr_accessor reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
73
+ attr_reader reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?
74
+
75
+ def reconciliation_rule_variables=: (
76
+ ::Array[ModernTreasury::ReconciliationRule]
77
+ ) -> ::Array[ModernTreasury::ReconciliationRule]
74
78
 
75
79
  attr_accessor remittance_information: String?
76
80
 
@@ -99,7 +103,7 @@ module ModernTreasury
99
103
  ?metadata: ::Hash[Symbol, String],
100
104
  ?reconciliation_filters: top?,
101
105
  ?reconciliation_groups: top?,
102
- ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
106
+ ?reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
103
107
  ?remittance_information: String?,
104
108
  ?statement_descriptor: String?,
105
109
  ?status: ModernTreasury::Models::ExpectedPaymentUpdateParams::status?,
@@ -126,7 +130,7 @@ module ModernTreasury
126
130
  metadata: ::Hash[Symbol, String],
127
131
  reconciliation_filters: top?,
128
132
  reconciliation_groups: top?,
129
- reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule]?,
133
+ reconciliation_rule_variables: ::Array[ModernTreasury::ReconciliationRule],
130
134
  remittance_information: String?,
131
135
  statement_descriptor: String?,
132
136
  status: ModernTreasury::Models::ExpectedPaymentUpdateParams::status?,