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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/account_detail.rb +1 -0
- data/lib/modern_treasury/models/account_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +28 -8
- data/lib/modern_treasury/models/child_legal_entity.rb +6 -5
- data/lib/modern_treasury/models/counterparty_create_params.rb +24 -1
- data/lib/modern_treasury/models/expected_payment.rb +3 -4
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
- data/lib/modern_treasury/models/identification.rb +109 -0
- data/lib/modern_treasury/models/identification_create_params.rb +109 -0
- data/lib/modern_treasury/models/identification_create_request.rb +109 -0
- data/lib/modern_treasury/models/identification_update_params.rb +109 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_create_params.rb +12 -1
- data/lib/modern_treasury/models/ledger_account.rb +0 -1
- data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
- data/lib/modern_treasury/models/legal_entity.rb +6 -5
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
- data/lib/modern_treasury/models/legal_entity_create_params.rb +21 -1
- data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +23 -1
- data/lib/modern_treasury/models/payment_order.rb +12 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +12 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +12 -1
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +12 -1
- data/lib/modern_treasury/models/payment_reference.rb +1 -1
- data/lib/modern_treasury/models/return_object.rb +1 -1
- data/lib/modern_treasury/models/third_party_verification.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
- data/lib/modern_treasury/resources/expected_payments.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
- data/lib/modern_treasury/resources/legal_entities.rb +6 -2
- data/lib/modern_treasury/resources/payment_orders.rb +9 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/account_detail.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +56 -6
- data/rbi/modern_treasury/models/child_legal_entity.rbi +8 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +62 -0
- data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/identification.rbi +224 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +17 -0
- data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
- data/rbi/modern_treasury/models/legal_entity.rbi +7 -6
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +49 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +52 -0
- data/rbi/modern_treasury/models/payment_order.rbi +17 -5
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +17 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
- data/rbi/modern_treasury/models/return_object.rbi +5 -5
- data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
- data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
- data/sig/modern_treasury/models/account_detail.rbs +2 -0
- data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +30 -8
- data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -0
- data/sig/modern_treasury/models/expected_payment.rbs +4 -4
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/identification.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
- data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account.rbs +1 -2
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
- data/sig/modern_treasury/models/legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
- data/sig/modern_treasury/models/payment_order.rbs +7 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +7 -0
- data/sig/modern_treasury/models/payment_reference.rbs +2 -2
- data/sig/modern_treasury/models/return_object.rbs +2 -2
- data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
- metadata +2 -2
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
#
|
|
12
12
|
# Create a new Payment Order
|
|
13
13
|
#
|
|
14
|
-
# @overload create(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: {})
|
|
14
|
+
# @overload create(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: {})
|
|
15
15
|
#
|
|
16
16
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
17
17
|
#
|
|
@@ -61,6 +61,8 @@ module ModernTreasury
|
|
|
61
61
|
#
|
|
62
62
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
63
63
|
#
|
|
64
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
65
|
+
#
|
|
64
66
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
65
67
|
#
|
|
66
68
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -137,7 +139,7 @@ module ModernTreasury
|
|
|
137
139
|
#
|
|
138
140
|
# Update a payment order
|
|
139
141
|
#
|
|
140
|
-
# @overload update(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: {})
|
|
142
|
+
# @overload update(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: {})
|
|
141
143
|
#
|
|
142
144
|
# @param id [String]
|
|
143
145
|
#
|
|
@@ -183,6 +185,8 @@ module ModernTreasury
|
|
|
183
185
|
#
|
|
184
186
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
185
187
|
#
|
|
188
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
189
|
+
#
|
|
186
190
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
187
191
|
#
|
|
188
192
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -297,7 +301,7 @@ module ModernTreasury
|
|
|
297
301
|
#
|
|
298
302
|
# Create a new payment order asynchronously
|
|
299
303
|
#
|
|
300
|
-
# @overload create_async(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: {})
|
|
304
|
+
# @overload create_async(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: {})
|
|
301
305
|
#
|
|
302
306
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
303
307
|
#
|
|
@@ -345,6 +349,8 @@ module ModernTreasury
|
|
|
345
349
|
#
|
|
346
350
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
347
351
|
#
|
|
352
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
353
|
+
#
|
|
348
354
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
349
355
|
#
|
|
350
356
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -125,6 +125,11 @@ module ModernTreasury
|
|
|
125
125
|
:au_number,
|
|
126
126
|
ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol
|
|
127
127
|
)
|
|
128
|
+
AVALANCHE_ADDRESS =
|
|
129
|
+
T.let(
|
|
130
|
+
:avalanche_address,
|
|
131
|
+
ModernTreasury::AccountDetail::AccountNumberType::TaggedSymbol
|
|
132
|
+
)
|
|
128
133
|
BASE_ADDRESS =
|
|
129
134
|
T.let(
|
|
130
135
|
:base_address,
|
|
@@ -142,6 +142,11 @@ module ModernTreasury
|
|
|
142
142
|
:au_number,
|
|
143
143
|
ModernTreasury::AccountDetailCreateParams::AccountNumberType::TaggedSymbol
|
|
144
144
|
)
|
|
145
|
+
AVALANCHE_ADDRESS =
|
|
146
|
+
T.let(
|
|
147
|
+
:avalanche_address,
|
|
148
|
+
ModernTreasury::AccountDetailCreateParams::AccountNumberType::TaggedSymbol
|
|
149
|
+
)
|
|
145
150
|
BASE_ADDRESS =
|
|
146
151
|
T.let(
|
|
147
152
|
:base_address,
|
|
@@ -470,6 +470,12 @@ module ModernTreasury
|
|
|
470
470
|
sig { returns(T.nilable(String)) }
|
|
471
471
|
attr_accessor :originating_party_name
|
|
472
472
|
|
|
473
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
474
|
+
# check signatures where the originating party wishes to retain their company's
|
|
475
|
+
# display name but use an employee's name for the signature.
|
|
476
|
+
sig { returns(T.nilable(String)) }
|
|
477
|
+
attr_accessor :originating_secondary_party_name
|
|
478
|
+
|
|
473
479
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
474
480
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
475
481
|
# an overnight check rather than standard mail.
|
|
@@ -681,6 +687,7 @@ module ModernTreasury
|
|
|
681
687
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress::OrHash
|
|
682
688
|
),
|
|
683
689
|
originating_party_name: T.nilable(String),
|
|
690
|
+
originating_secondary_party_name: T.nilable(String),
|
|
684
691
|
priority:
|
|
685
692
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority::OrSymbol,
|
|
686
693
|
process_after: T.nilable(Time),
|
|
@@ -781,6 +788,10 @@ module ModernTreasury
|
|
|
781
788
|
# the first 16 characters of this string will be used. Any additional characters
|
|
782
789
|
# will be truncated.
|
|
783
790
|
originating_party_name: nil,
|
|
791
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
792
|
+
# check signatures where the originating party wishes to retain their company's
|
|
793
|
+
# display name but use an employee's name for the signature.
|
|
794
|
+
originating_secondary_party_name: nil,
|
|
784
795
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
785
796
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
786
797
|
# an overnight check rather than standard mail.
|
|
@@ -888,6 +899,7 @@ module ModernTreasury
|
|
|
888
899
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress
|
|
889
900
|
),
|
|
890
901
|
originating_party_name: T.nilable(String),
|
|
902
|
+
originating_secondary_party_name: T.nilable(String),
|
|
891
903
|
priority:
|
|
892
904
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority::OrSymbol,
|
|
893
905
|
process_after: T.nilable(Time),
|
|
@@ -1619,6 +1631,11 @@ module ModernTreasury
|
|
|
1619
1631
|
:au_number,
|
|
1620
1632
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1621
1633
|
)
|
|
1634
|
+
AVALANCHE_ADDRESS =
|
|
1635
|
+
T.let(
|
|
1636
|
+
:avalanche_address,
|
|
1637
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
1638
|
+
)
|
|
1622
1639
|
BASE_ADDRESS =
|
|
1623
1640
|
T.let(
|
|
1624
1641
|
:base_address,
|
|
@@ -2366,7 +2383,15 @@ module ModernTreasury
|
|
|
2366
2383
|
sig do
|
|
2367
2384
|
returns(T.nilable(T::Array[ModernTreasury::ReconciliationRule]))
|
|
2368
2385
|
end
|
|
2369
|
-
|
|
2386
|
+
attr_reader :reconciliation_rule_variables
|
|
2387
|
+
|
|
2388
|
+
sig do
|
|
2389
|
+
params(
|
|
2390
|
+
reconciliation_rule_variables:
|
|
2391
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash]
|
|
2392
|
+
).void
|
|
2393
|
+
end
|
|
2394
|
+
attr_writer :reconciliation_rule_variables
|
|
2370
2395
|
|
|
2371
2396
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
2372
2397
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -2423,7 +2448,7 @@ module ModernTreasury
|
|
|
2423
2448
|
reconciliation_filters: T.nilable(T.anything),
|
|
2424
2449
|
reconciliation_groups: T.nilable(T.anything),
|
|
2425
2450
|
reconciliation_rule_variables:
|
|
2426
|
-
T
|
|
2451
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash],
|
|
2427
2452
|
remittance_information: T.nilable(String),
|
|
2428
2453
|
statement_descriptor: T.nilable(String),
|
|
2429
2454
|
type: T.nilable(ModernTreasury::ExpectedPaymentType::OrSymbol)
|
|
@@ -2536,7 +2561,7 @@ module ModernTreasury
|
|
|
2536
2561
|
reconciliation_filters: T.nilable(T.anything),
|
|
2537
2562
|
reconciliation_groups: T.nilable(T.anything),
|
|
2538
2563
|
reconciliation_rule_variables:
|
|
2539
|
-
T
|
|
2564
|
+
T::Array[ModernTreasury::ReconciliationRule],
|
|
2540
2565
|
remittance_information: T.nilable(String),
|
|
2541
2566
|
statement_descriptor: T.nilable(String),
|
|
2542
2567
|
type: T.nilable(ModernTreasury::ExpectedPaymentType::OrSymbol)
|
|
@@ -3294,6 +3319,12 @@ module ModernTreasury
|
|
|
3294
3319
|
sig { returns(T.nilable(String)) }
|
|
3295
3320
|
attr_accessor :originating_party_name
|
|
3296
3321
|
|
|
3322
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
3323
|
+
# check signatures where the originating party wishes to retain their company's
|
|
3324
|
+
# display name but use an employee's name for the signature.
|
|
3325
|
+
sig { returns(T.nilable(String)) }
|
|
3326
|
+
attr_accessor :originating_secondary_party_name
|
|
3327
|
+
|
|
3297
3328
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
3298
3329
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
3299
3330
|
# an overnight check rather than standard mail.
|
|
@@ -3495,6 +3526,7 @@ module ModernTreasury
|
|
|
3495
3526
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress::OrHash
|
|
3496
3527
|
),
|
|
3497
3528
|
originating_party_name: T.nilable(String),
|
|
3529
|
+
originating_secondary_party_name: T.nilable(String),
|
|
3498
3530
|
priority:
|
|
3499
3531
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority::OrSymbol,
|
|
3500
3532
|
process_after: T.nilable(Time),
|
|
@@ -3581,6 +3613,10 @@ module ModernTreasury
|
|
|
3581
3613
|
# the first 16 characters of this string will be used. Any additional characters
|
|
3582
3614
|
# will be truncated.
|
|
3583
3615
|
originating_party_name: nil,
|
|
3616
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
3617
|
+
# check signatures where the originating party wishes to retain their company's
|
|
3618
|
+
# display name but use an employee's name for the signature.
|
|
3619
|
+
originating_secondary_party_name: nil,
|
|
3584
3620
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
3585
3621
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
3586
3622
|
# an overnight check rather than standard mail.
|
|
@@ -3690,6 +3726,7 @@ module ModernTreasury
|
|
|
3690
3726
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress
|
|
3691
3727
|
),
|
|
3692
3728
|
originating_party_name: T.nilable(String),
|
|
3729
|
+
originating_secondary_party_name: T.nilable(String),
|
|
3693
3730
|
priority:
|
|
3694
3731
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority::OrSymbol,
|
|
3695
3732
|
process_after: T.nilable(Time),
|
|
@@ -4417,6 +4454,11 @@ module ModernTreasury
|
|
|
4417
4454
|
:au_number,
|
|
4418
4455
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
4419
4456
|
)
|
|
4457
|
+
AVALANCHE_ADDRESS =
|
|
4458
|
+
T.let(
|
|
4459
|
+
:avalanche_address,
|
|
4460
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
|
4461
|
+
)
|
|
4420
4462
|
BASE_ADDRESS =
|
|
4421
4463
|
T.let(
|
|
4422
4464
|
:base_address,
|
|
@@ -5120,7 +5162,15 @@ module ModernTreasury
|
|
|
5120
5162
|
sig do
|
|
5121
5163
|
returns(T.nilable(T::Array[ModernTreasury::ReconciliationRule]))
|
|
5122
5164
|
end
|
|
5123
|
-
|
|
5165
|
+
attr_reader :reconciliation_rule_variables
|
|
5166
|
+
|
|
5167
|
+
sig do
|
|
5168
|
+
params(
|
|
5169
|
+
reconciliation_rule_variables:
|
|
5170
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash]
|
|
5171
|
+
).void
|
|
5172
|
+
end
|
|
5173
|
+
attr_writer :reconciliation_rule_variables
|
|
5124
5174
|
|
|
5125
5175
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
5126
5176
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -5182,7 +5232,7 @@ module ModernTreasury
|
|
|
5182
5232
|
reconciliation_filters: T.nilable(T.anything),
|
|
5183
5233
|
reconciliation_groups: T.nilable(T.anything),
|
|
5184
5234
|
reconciliation_rule_variables:
|
|
5185
|
-
T
|
|
5235
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash],
|
|
5186
5236
|
remittance_information: T.nilable(String),
|
|
5187
5237
|
statement_descriptor: T.nilable(String),
|
|
5188
5238
|
status:
|
|
@@ -5286,7 +5336,7 @@ module ModernTreasury
|
|
|
5286
5336
|
reconciliation_filters: T.nilable(T.anything),
|
|
5287
5337
|
reconciliation_groups: T.nilable(T.anything),
|
|
5288
5338
|
reconciliation_rule_variables:
|
|
5289
|
-
T
|
|
5339
|
+
T::Array[ModernTreasury::ReconciliationRule],
|
|
5290
5340
|
remittance_information: T.nilable(String),
|
|
5291
5341
|
statement_descriptor: T.nilable(String),
|
|
5292
5342
|
status:
|
|
@@ -200,8 +200,8 @@ module ModernTreasury
|
|
|
200
200
|
sig { returns(T.nilable(String)) }
|
|
201
201
|
attr_accessor :service_provider_legal_entity_id
|
|
202
202
|
|
|
203
|
-
# The activation status of the legal entity. One of pending, active,
|
|
204
|
-
# denied.
|
|
203
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
204
|
+
# suspended, or denied.
|
|
205
205
|
sig do
|
|
206
206
|
returns(
|
|
207
207
|
T.nilable(ModernTreasury::ChildLegalEntity::Status::TaggedSymbol)
|
|
@@ -416,8 +416,8 @@ module ModernTreasury
|
|
|
416
416
|
risk_rating:,
|
|
417
417
|
# The UUID of the parent legal entity in the service provider tree.
|
|
418
418
|
service_provider_legal_entity_id:,
|
|
419
|
-
# The activation status of the legal entity. One of pending, active,
|
|
420
|
-
# denied.
|
|
419
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
420
|
+
# suspended, or denied.
|
|
421
421
|
status:,
|
|
422
422
|
# An individual's suffix.
|
|
423
423
|
suffix:,
|
|
@@ -950,8 +950,8 @@ module ModernTreasury
|
|
|
950
950
|
end
|
|
951
951
|
end
|
|
952
952
|
|
|
953
|
-
# The activation status of the legal entity. One of pending, active,
|
|
954
|
-
# denied.
|
|
953
|
+
# The activation status of the legal entity. One of draft, pending, active,
|
|
954
|
+
# suspended, or denied.
|
|
955
955
|
module Status
|
|
956
956
|
extend ModernTreasury::Internal::Type::Enum
|
|
957
957
|
|
|
@@ -965,6 +965,8 @@ module ModernTreasury
|
|
|
965
965
|
T.let(:active, ModernTreasury::ChildLegalEntity::Status::TaggedSymbol)
|
|
966
966
|
DENIED =
|
|
967
967
|
T.let(:denied, ModernTreasury::ChildLegalEntity::Status::TaggedSymbol)
|
|
968
|
+
DRAFT =
|
|
969
|
+
T.let(:draft, ModernTreasury::ChildLegalEntity::Status::TaggedSymbol)
|
|
968
970
|
PENDING =
|
|
969
971
|
T.let(
|
|
970
972
|
:pending,
|
|
@@ -603,6 +603,11 @@ module ModernTreasury
|
|
|
603
603
|
:au_number,
|
|
604
604
|
ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
|
605
605
|
)
|
|
606
|
+
AVALANCHE_ADDRESS =
|
|
607
|
+
T.let(
|
|
608
|
+
:avalanche_address,
|
|
609
|
+
ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
|
610
|
+
)
|
|
606
611
|
BASE_ADDRESS =
|
|
607
612
|
T.let(
|
|
608
613
|
:base_address,
|
|
@@ -1375,6 +1380,25 @@ module ModernTreasury
|
|
|
1375
1380
|
sig { returns(T.nilable(String)) }
|
|
1376
1381
|
attr_accessor :service_provider_legal_entity_id
|
|
1377
1382
|
|
|
1383
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
1384
|
+
# pending. Inline child legal entities take the parent's status.
|
|
1385
|
+
sig do
|
|
1386
|
+
returns(
|
|
1387
|
+
T.nilable(
|
|
1388
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::OrSymbol
|
|
1389
|
+
)
|
|
1390
|
+
)
|
|
1391
|
+
end
|
|
1392
|
+
attr_reader :status
|
|
1393
|
+
|
|
1394
|
+
sig do
|
|
1395
|
+
params(
|
|
1396
|
+
status:
|
|
1397
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::OrSymbol
|
|
1398
|
+
).void
|
|
1399
|
+
end
|
|
1400
|
+
attr_writer :status
|
|
1401
|
+
|
|
1378
1402
|
# An individual's suffix.
|
|
1379
1403
|
sig { returns(T.nilable(String)) }
|
|
1380
1404
|
attr_accessor :suffix
|
|
@@ -1518,6 +1542,8 @@ module ModernTreasury
|
|
|
1518
1542
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol
|
|
1519
1543
|
),
|
|
1520
1544
|
service_provider_legal_entity_id: T.nilable(String),
|
|
1545
|
+
status:
|
|
1546
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::OrSymbol,
|
|
1521
1547
|
suffix: T.nilable(String),
|
|
1522
1548
|
terms_of_use:
|
|
1523
1549
|
T.nilable(
|
|
@@ -1612,6 +1638,9 @@ module ModernTreasury
|
|
|
1612
1638
|
risk_rating: nil,
|
|
1613
1639
|
# The UUID of the parent legal entity in the service provider tree.
|
|
1614
1640
|
service_provider_legal_entity_id: nil,
|
|
1641
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
1642
|
+
# pending. Inline child legal entities take the parent's status.
|
|
1643
|
+
status: nil,
|
|
1615
1644
|
# An individual's suffix.
|
|
1616
1645
|
suffix: nil,
|
|
1617
1646
|
# Acceptance of terms of use by the legal entity.
|
|
@@ -1694,6 +1723,8 @@ module ModernTreasury
|
|
|
1694
1723
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol
|
|
1695
1724
|
),
|
|
1696
1725
|
service_provider_legal_entity_id: T.nilable(String),
|
|
1726
|
+
status:
|
|
1727
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::OrSymbol,
|
|
1697
1728
|
suffix: T.nilable(String),
|
|
1698
1729
|
terms_of_use:
|
|
1699
1730
|
T.nilable(
|
|
@@ -2084,6 +2115,37 @@ module ModernTreasury
|
|
|
2084
2115
|
end
|
|
2085
2116
|
end
|
|
2086
2117
|
|
|
2118
|
+
# Set to draft to create the legal entity as a draft. Omit to create it as
|
|
2119
|
+
# pending. Inline child legal entities take the parent's status.
|
|
2120
|
+
module Status
|
|
2121
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
2122
|
+
|
|
2123
|
+
TaggedSymbol =
|
|
2124
|
+
T.type_alias do
|
|
2125
|
+
T.all(
|
|
2126
|
+
Symbol,
|
|
2127
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status
|
|
2128
|
+
)
|
|
2129
|
+
end
|
|
2130
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2131
|
+
|
|
2132
|
+
DRAFT =
|
|
2133
|
+
T.let(
|
|
2134
|
+
:draft,
|
|
2135
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::TaggedSymbol
|
|
2136
|
+
)
|
|
2137
|
+
|
|
2138
|
+
sig do
|
|
2139
|
+
override.returns(
|
|
2140
|
+
T::Array[
|
|
2141
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::Status::TaggedSymbol
|
|
2142
|
+
]
|
|
2143
|
+
)
|
|
2144
|
+
end
|
|
2145
|
+
def self.values
|
|
2146
|
+
end
|
|
2147
|
+
end
|
|
2148
|
+
|
|
2087
2149
|
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
2088
2150
|
OrHash =
|
|
2089
2151
|
T.type_alias do
|
|
@@ -134,7 +134,7 @@ module ModernTreasury
|
|
|
134
134
|
attr_accessor :reconciliation_method
|
|
135
135
|
|
|
136
136
|
# An array of reconciliation rule variables for this payment.
|
|
137
|
-
sig { returns(T
|
|
137
|
+
sig { returns(T::Array[ModernTreasury::ReconciliationRule]) }
|
|
138
138
|
attr_accessor :reconciliation_rule_variables
|
|
139
139
|
|
|
140
140
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
@@ -207,7 +207,7 @@ module ModernTreasury
|
|
|
207
207
|
ModernTreasury::ExpectedPayment::ReconciliationMethod::OrSymbol
|
|
208
208
|
),
|
|
209
209
|
reconciliation_rule_variables:
|
|
210
|
-
T
|
|
210
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash],
|
|
211
211
|
remittance_information: T.nilable(String),
|
|
212
212
|
statement_descriptor: T.nilable(String),
|
|
213
213
|
status: ModernTreasury::ExpectedPayment::Status::OrSymbol,
|
|
@@ -334,7 +334,7 @@ module ModernTreasury
|
|
|
334
334
|
ModernTreasury::ExpectedPayment::ReconciliationMethod::TaggedSymbol
|
|
335
335
|
),
|
|
336
336
|
reconciliation_rule_variables:
|
|
337
|
-
T
|
|
337
|
+
T::Array[ModernTreasury::ReconciliationRule],
|
|
338
338
|
remittance_information: T.nilable(String),
|
|
339
339
|
statement_descriptor: T.nilable(String),
|
|
340
340
|
status: ModernTreasury::ExpectedPayment::Status::TaggedSymbol,
|
|
@@ -157,7 +157,15 @@ module ModernTreasury
|
|
|
157
157
|
|
|
158
158
|
# An array of reconciliation rule variables for this payment.
|
|
159
159
|
sig { returns(T.nilable(T::Array[ModernTreasury::ReconciliationRule])) }
|
|
160
|
-
|
|
160
|
+
attr_reader :reconciliation_rule_variables
|
|
161
|
+
|
|
162
|
+
sig do
|
|
163
|
+
params(
|
|
164
|
+
reconciliation_rule_variables:
|
|
165
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash]
|
|
166
|
+
).void
|
|
167
|
+
end
|
|
168
|
+
attr_writer :reconciliation_rule_variables
|
|
161
169
|
|
|
162
170
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
163
171
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -212,7 +220,7 @@ module ModernTreasury
|
|
|
212
220
|
reconciliation_filters: T.nilable(T.anything),
|
|
213
221
|
reconciliation_groups: T.nilable(T.anything),
|
|
214
222
|
reconciliation_rule_variables:
|
|
215
|
-
T
|
|
223
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash],
|
|
216
224
|
remittance_information: T.nilable(String),
|
|
217
225
|
statement_descriptor: T.nilable(String),
|
|
218
226
|
type: T.nilable(ModernTreasury::ExpectedPaymentType::OrSymbol),
|
|
@@ -324,7 +332,7 @@ module ModernTreasury
|
|
|
324
332
|
reconciliation_filters: T.nilable(T.anything),
|
|
325
333
|
reconciliation_groups: T.nilable(T.anything),
|
|
326
334
|
reconciliation_rule_variables:
|
|
327
|
-
T
|
|
335
|
+
T::Array[ModernTreasury::ReconciliationRule],
|
|
328
336
|
remittance_information: T.nilable(String),
|
|
329
337
|
statement_descriptor: T.nilable(String),
|
|
330
338
|
type: T.nilable(ModernTreasury::ExpectedPaymentType::OrSymbol),
|
|
@@ -116,7 +116,15 @@ module ModernTreasury
|
|
|
116
116
|
|
|
117
117
|
# An array of reconciliation rule variables for this payment.
|
|
118
118
|
sig { returns(T.nilable(T::Array[ModernTreasury::ReconciliationRule])) }
|
|
119
|
-
|
|
119
|
+
attr_reader :reconciliation_rule_variables
|
|
120
|
+
|
|
121
|
+
sig do
|
|
122
|
+
params(
|
|
123
|
+
reconciliation_rule_variables:
|
|
124
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash]
|
|
125
|
+
).void
|
|
126
|
+
end
|
|
127
|
+
attr_writer :reconciliation_rule_variables
|
|
120
128
|
|
|
121
129
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
122
130
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -176,7 +184,7 @@ module ModernTreasury
|
|
|
176
184
|
reconciliation_filters: T.nilable(T.anything),
|
|
177
185
|
reconciliation_groups: T.nilable(T.anything),
|
|
178
186
|
reconciliation_rule_variables:
|
|
179
|
-
T
|
|
187
|
+
T::Array[ModernTreasury::ReconciliationRule::OrHash],
|
|
180
188
|
remittance_information: T.nilable(String),
|
|
181
189
|
statement_descriptor: T.nilable(String),
|
|
182
190
|
status:
|
|
@@ -282,7 +290,7 @@ module ModernTreasury
|
|
|
282
290
|
reconciliation_filters: T.nilable(T.anything),
|
|
283
291
|
reconciliation_groups: T.nilable(T.anything),
|
|
284
292
|
reconciliation_rule_variables:
|
|
285
|
-
T
|
|
293
|
+
T::Array[ModernTreasury::ReconciliationRule],
|
|
286
294
|
remittance_information: T.nilable(String),
|
|
287
295
|
statement_descriptor: T.nilable(String),
|
|
288
296
|
status:
|
|
@@ -318,6 +318,11 @@ module ModernTreasury
|
|
|
318
318
|
:au_number,
|
|
319
319
|
ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType::TaggedSymbol
|
|
320
320
|
)
|
|
321
|
+
AVALANCHE_ADDRESS =
|
|
322
|
+
T.let(
|
|
323
|
+
:avalanche_address,
|
|
324
|
+
ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType::TaggedSymbol
|
|
325
|
+
)
|
|
321
326
|
BASE_ADDRESS =
|
|
322
327
|
T.let(
|
|
323
328
|
:base_address,
|