modern_treasury 0.10.0 → 0.12.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 +40 -0
- data/README.md +10 -1
- data/lib/modern_treasury/client.rb +12 -0
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/hold_create_params.rb +74 -0
- data/lib/modern_treasury/models/hold_create_response.rb +143 -0
- data/lib/modern_treasury/models/hold_list_params.rb +89 -0
- data/lib/modern_treasury/models/hold_list_response.rb +143 -0
- data/lib/modern_treasury/models/hold_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/hold_retrieve_response.rb +143 -0
- data/lib/modern_treasury/models/hold_update_params.rb +40 -0
- data/lib/modern_treasury/models/hold_update_response.rb +143 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_request_closure_params.rb +14 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/journal_entry_list_params.rb +38 -0
- data/lib/modern_treasury/models/journal_entry_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_list_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_update_params.rb +26 -0
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +5 -1
- data/lib/modern_treasury/models/payment_order_subtype.rb +0 -1
- data/lib/modern_treasury/models/payment_reference.rb +5 -1
- data/lib/modern_treasury/models/return_object.rb +6 -1
- data/lib/modern_treasury/models/transaction.rb +2 -1
- data/lib/modern_treasury/models.rb +24 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/holds.rb +126 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +23 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/journal_entries.rb +60 -0
- data/lib/modern_treasury/resources/journal_reports.rb +78 -0
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +20 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/client.rbi +9 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/hold_create_params.rbi +125 -0
- data/rbi/modern_treasury/models/hold_create_response.rbi +232 -0
- data/rbi/modern_treasury/models/hold_list_params.rbi +150 -0
- data/rbi/modern_treasury/models/hold_list_response.rbi +225 -0
- data/rbi/modern_treasury/models/hold_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/hold_retrieve_response.rbi +234 -0
- data/rbi/modern_treasury/models/hold_update_params.rbi +79 -0
- data/rbi/modern_treasury/models/hold_update_response.rbi +232 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +32 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/journal_entry_list_params.rbi +68 -0
- data/rbi/modern_treasury/models/journal_entry_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_list_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_update_params.rbi +52 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -2
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +0 -1
- data/rbi/modern_treasury/models/payment_reference.rbi +22 -2
- data/rbi/modern_treasury/models/return_object.rbi +24 -2
- data/rbi/modern_treasury/models/transaction.rbi +7 -2
- data/rbi/modern_treasury/models.rbi +28 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/holds.rbi +108 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +17 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/journal_entries.rbi +46 -0
- data/rbi/modern_treasury/resources/journal_reports.rbi +51 -0
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/client.rbs +6 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/hold_create_params.rbs +66 -0
- data/sig/modern_treasury/models/hold_create_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_list_params.rbs +76 -0
- data/sig/modern_treasury/models/hold_list_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/hold_retrieve_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_update_params.rbs +41 -0
- data/sig/modern_treasury/models/hold_update_response.rbs +108 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +15 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/journal_entry_list_params.rbs +36 -0
- data/sig/modern_treasury/models/journal_entry_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_list_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_update_params.rbs +32 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +10 -2
- data/sig/modern_treasury/models/payment_order_subtype.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference.rbs +10 -2
- data/sig/modern_treasury/models/return_object.rbs +12 -2
- data/sig/modern_treasury/models/transaction.rbs +4 -2
- data/sig/modern_treasury/models.rbs +24 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/holds.rbs +38 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/journal_entries.rbs +19 -0
- data/sig/modern_treasury/resources/journal_reports.rbs +21 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +59 -2
|
@@ -2012,6 +2012,38 @@ module ModernTreasury
|
|
|
2012
2012
|
sig { returns(T.nilable(Integer)) }
|
|
2013
2013
|
attr_accessor :amount_lower_bound
|
|
2014
2014
|
|
|
2015
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
2016
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
2017
|
+
sig { returns(T.nilable(Integer)) }
|
|
2018
|
+
attr_accessor :amount_reconciled
|
|
2019
|
+
|
|
2020
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2021
|
+
# amount.
|
|
2022
|
+
sig do
|
|
2023
|
+
returns(
|
|
2024
|
+
T.nilable(
|
|
2025
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
|
|
2026
|
+
)
|
|
2027
|
+
)
|
|
2028
|
+
end
|
|
2029
|
+
attr_accessor :amount_reconciled_direction
|
|
2030
|
+
|
|
2031
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
2032
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2033
|
+
sig { returns(T.nilable(Integer)) }
|
|
2034
|
+
attr_accessor :amount_unreconciled
|
|
2035
|
+
|
|
2036
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
2037
|
+
# debit amount.
|
|
2038
|
+
sig do
|
|
2039
|
+
returns(
|
|
2040
|
+
T.nilable(
|
|
2041
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
|
|
2042
|
+
)
|
|
2043
|
+
)
|
|
2044
|
+
end
|
|
2045
|
+
attr_accessor :amount_unreconciled_direction
|
|
2046
|
+
|
|
2015
2047
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
2016
2048
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2017
2049
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -2149,6 +2181,16 @@ module ModernTreasury
|
|
|
2149
2181
|
sig do
|
|
2150
2182
|
params(
|
|
2151
2183
|
amount_lower_bound: T.nilable(Integer),
|
|
2184
|
+
amount_reconciled: T.nilable(Integer),
|
|
2185
|
+
amount_reconciled_direction:
|
|
2186
|
+
T.nilable(
|
|
2187
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
|
|
2188
|
+
),
|
|
2189
|
+
amount_unreconciled: T.nilable(Integer),
|
|
2190
|
+
amount_unreconciled_direction:
|
|
2191
|
+
T.nilable(
|
|
2192
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
|
|
2193
|
+
),
|
|
2152
2194
|
amount_upper_bound: T.nilable(Integer),
|
|
2153
2195
|
counterparty_id: T.nilable(String),
|
|
2154
2196
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -2182,6 +2224,18 @@ module ModernTreasury
|
|
|
2182
2224
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
2183
2225
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2184
2226
|
amount_lower_bound: nil,
|
|
2227
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
2228
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
2229
|
+
amount_reconciled: nil,
|
|
2230
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2231
|
+
# amount.
|
|
2232
|
+
amount_reconciled_direction: nil,
|
|
2233
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
2234
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2235
|
+
amount_unreconciled: nil,
|
|
2236
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
2237
|
+
# debit amount.
|
|
2238
|
+
amount_unreconciled_direction: nil,
|
|
2185
2239
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
2186
2240
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
2187
2241
|
amount_upper_bound: nil,
|
|
@@ -2241,6 +2295,16 @@ module ModernTreasury
|
|
|
2241
2295
|
override.returns(
|
|
2242
2296
|
{
|
|
2243
2297
|
amount_lower_bound: T.nilable(Integer),
|
|
2298
|
+
amount_reconciled: T.nilable(Integer),
|
|
2299
|
+
amount_reconciled_direction:
|
|
2300
|
+
T.nilable(
|
|
2301
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
|
|
2302
|
+
),
|
|
2303
|
+
amount_unreconciled: T.nilable(Integer),
|
|
2304
|
+
amount_unreconciled_direction:
|
|
2305
|
+
T.nilable(
|
|
2306
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
|
|
2307
|
+
),
|
|
2244
2308
|
amount_upper_bound: T.nilable(Integer),
|
|
2245
2309
|
counterparty_id: T.nilable(String),
|
|
2246
2310
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -2274,6 +2338,78 @@ module ModernTreasury
|
|
|
2274
2338
|
def to_hash
|
|
2275
2339
|
end
|
|
2276
2340
|
|
|
2341
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
2342
|
+
# amount.
|
|
2343
|
+
module AmountReconciledDirection
|
|
2344
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
2345
|
+
|
|
2346
|
+
TaggedSymbol =
|
|
2347
|
+
T.type_alias do
|
|
2348
|
+
T.all(
|
|
2349
|
+
Symbol,
|
|
2350
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection
|
|
2351
|
+
)
|
|
2352
|
+
end
|
|
2353
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2354
|
+
|
|
2355
|
+
CREDIT =
|
|
2356
|
+
T.let(
|
|
2357
|
+
:credit,
|
|
2358
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
|
|
2359
|
+
)
|
|
2360
|
+
DEBIT =
|
|
2361
|
+
T.let(
|
|
2362
|
+
:debit,
|
|
2363
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
|
|
2364
|
+
)
|
|
2365
|
+
|
|
2366
|
+
sig do
|
|
2367
|
+
override.returns(
|
|
2368
|
+
T::Array[
|
|
2369
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
|
|
2370
|
+
]
|
|
2371
|
+
)
|
|
2372
|
+
end
|
|
2373
|
+
def self.values
|
|
2374
|
+
end
|
|
2375
|
+
end
|
|
2376
|
+
|
|
2377
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
2378
|
+
# debit amount.
|
|
2379
|
+
module AmountUnreconciledDirection
|
|
2380
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
2381
|
+
|
|
2382
|
+
TaggedSymbol =
|
|
2383
|
+
T.type_alias do
|
|
2384
|
+
T.all(
|
|
2385
|
+
Symbol,
|
|
2386
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection
|
|
2387
|
+
)
|
|
2388
|
+
end
|
|
2389
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2390
|
+
|
|
2391
|
+
CREDIT =
|
|
2392
|
+
T.let(
|
|
2393
|
+
:credit,
|
|
2394
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
|
|
2395
|
+
)
|
|
2396
|
+
DEBIT =
|
|
2397
|
+
T.let(
|
|
2398
|
+
:debit,
|
|
2399
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
|
|
2400
|
+
)
|
|
2401
|
+
|
|
2402
|
+
sig do
|
|
2403
|
+
override.returns(
|
|
2404
|
+
T::Array[
|
|
2405
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
|
|
2406
|
+
]
|
|
2407
|
+
)
|
|
2408
|
+
end
|
|
2409
|
+
def self.values
|
|
2410
|
+
end
|
|
2411
|
+
end
|
|
2412
|
+
|
|
2277
2413
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
2278
2414
|
# being charged, use debit.
|
|
2279
2415
|
module Direction
|
|
@@ -4653,6 +4789,38 @@ module ModernTreasury
|
|
|
4653
4789
|
sig { returns(T.nilable(Integer)) }
|
|
4654
4790
|
attr_accessor :amount_lower_bound
|
|
4655
4791
|
|
|
4792
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
4793
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
4794
|
+
sig { returns(T.nilable(Integer)) }
|
|
4795
|
+
attr_accessor :amount_reconciled
|
|
4796
|
+
|
|
4797
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
4798
|
+
# amount.
|
|
4799
|
+
sig do
|
|
4800
|
+
returns(
|
|
4801
|
+
T.nilable(
|
|
4802
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
|
|
4803
|
+
)
|
|
4804
|
+
)
|
|
4805
|
+
end
|
|
4806
|
+
attr_accessor :amount_reconciled_direction
|
|
4807
|
+
|
|
4808
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
4809
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
4810
|
+
sig { returns(T.nilable(Integer)) }
|
|
4811
|
+
attr_accessor :amount_unreconciled
|
|
4812
|
+
|
|
4813
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
4814
|
+
# debit amount.
|
|
4815
|
+
sig do
|
|
4816
|
+
returns(
|
|
4817
|
+
T.nilable(
|
|
4818
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
|
|
4819
|
+
)
|
|
4820
|
+
)
|
|
4821
|
+
end
|
|
4822
|
+
attr_accessor :amount_unreconciled_direction
|
|
4823
|
+
|
|
4656
4824
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
4657
4825
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
4658
4826
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -4754,6 +4922,16 @@ module ModernTreasury
|
|
|
4754
4922
|
params(
|
|
4755
4923
|
id: String,
|
|
4756
4924
|
amount_lower_bound: T.nilable(Integer),
|
|
4925
|
+
amount_reconciled: T.nilable(Integer),
|
|
4926
|
+
amount_reconciled_direction:
|
|
4927
|
+
T.nilable(
|
|
4928
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
|
|
4929
|
+
),
|
|
4930
|
+
amount_unreconciled: T.nilable(Integer),
|
|
4931
|
+
amount_unreconciled_direction:
|
|
4932
|
+
T.nilable(
|
|
4933
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
|
|
4934
|
+
),
|
|
4757
4935
|
amount_upper_bound: T.nilable(Integer),
|
|
4758
4936
|
counterparty_id: T.nilable(String),
|
|
4759
4937
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -4785,6 +4963,18 @@ module ModernTreasury
|
|
|
4785
4963
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
4786
4964
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
4787
4965
|
amount_lower_bound: nil,
|
|
4966
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
4967
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
4968
|
+
amount_reconciled: nil,
|
|
4969
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
4970
|
+
# amount.
|
|
4971
|
+
amount_reconciled_direction: nil,
|
|
4972
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
4973
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
4974
|
+
amount_unreconciled: nil,
|
|
4975
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
4976
|
+
# debit amount.
|
|
4977
|
+
amount_unreconciled_direction: nil,
|
|
4788
4978
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
4789
4979
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
4790
4980
|
amount_upper_bound: nil,
|
|
@@ -4837,6 +5027,16 @@ module ModernTreasury
|
|
|
4837
5027
|
{
|
|
4838
5028
|
id: String,
|
|
4839
5029
|
amount_lower_bound: T.nilable(Integer),
|
|
5030
|
+
amount_reconciled: T.nilable(Integer),
|
|
5031
|
+
amount_reconciled_direction:
|
|
5032
|
+
T.nilable(
|
|
5033
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
|
|
5034
|
+
),
|
|
5035
|
+
amount_unreconciled: T.nilable(Integer),
|
|
5036
|
+
amount_unreconciled_direction:
|
|
5037
|
+
T.nilable(
|
|
5038
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
|
|
5039
|
+
),
|
|
4840
5040
|
amount_upper_bound: T.nilable(Integer),
|
|
4841
5041
|
counterparty_id: T.nilable(String),
|
|
4842
5042
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -4867,6 +5067,78 @@ module ModernTreasury
|
|
|
4867
5067
|
def to_hash
|
|
4868
5068
|
end
|
|
4869
5069
|
|
|
5070
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
5071
|
+
# amount.
|
|
5072
|
+
module AmountReconciledDirection
|
|
5073
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
5074
|
+
|
|
5075
|
+
TaggedSymbol =
|
|
5076
|
+
T.type_alias do
|
|
5077
|
+
T.all(
|
|
5078
|
+
Symbol,
|
|
5079
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection
|
|
5080
|
+
)
|
|
5081
|
+
end
|
|
5082
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
5083
|
+
|
|
5084
|
+
CREDIT =
|
|
5085
|
+
T.let(
|
|
5086
|
+
:credit,
|
|
5087
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
|
|
5088
|
+
)
|
|
5089
|
+
DEBIT =
|
|
5090
|
+
T.let(
|
|
5091
|
+
:debit,
|
|
5092
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
|
|
5093
|
+
)
|
|
5094
|
+
|
|
5095
|
+
sig do
|
|
5096
|
+
override.returns(
|
|
5097
|
+
T::Array[
|
|
5098
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
|
|
5099
|
+
]
|
|
5100
|
+
)
|
|
5101
|
+
end
|
|
5102
|
+
def self.values
|
|
5103
|
+
end
|
|
5104
|
+
end
|
|
5105
|
+
|
|
5106
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
5107
|
+
# debit amount.
|
|
5108
|
+
module AmountUnreconciledDirection
|
|
5109
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
5110
|
+
|
|
5111
|
+
TaggedSymbol =
|
|
5112
|
+
T.type_alias do
|
|
5113
|
+
T.all(
|
|
5114
|
+
Symbol,
|
|
5115
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection
|
|
5116
|
+
)
|
|
5117
|
+
end
|
|
5118
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
5119
|
+
|
|
5120
|
+
CREDIT =
|
|
5121
|
+
T.let(
|
|
5122
|
+
:credit,
|
|
5123
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
|
|
5124
|
+
)
|
|
5125
|
+
DEBIT =
|
|
5126
|
+
T.let(
|
|
5127
|
+
:debit,
|
|
5128
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
|
|
5129
|
+
)
|
|
5130
|
+
|
|
5131
|
+
sig do
|
|
5132
|
+
override.returns(
|
|
5133
|
+
T::Array[
|
|
5134
|
+
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
|
|
5135
|
+
]
|
|
5136
|
+
)
|
|
5137
|
+
end
|
|
5138
|
+
def self.values
|
|
5139
|
+
end
|
|
5140
|
+
end
|
|
5141
|
+
|
|
4870
5142
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
4871
5143
|
# being charged, use debit.
|
|
4872
5144
|
module Direction
|