modern_treasury 0.4.0 → 0.6.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 +30 -0
- data/README.md +1 -1
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -4
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/modern_treasury/internal/type/base_model.rb +6 -12
- data/lib/modern_treasury/internal/util.rb +1 -1
- data/lib/modern_treasury/models/account_collection_flow.rb +2 -6
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +1 -3
- data/lib/modern_treasury/models/bulk_request_create_params.rb +102 -75
- data/lib/modern_treasury/models/bulk_result.rb +1 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -6
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +3 -9
- data/lib/modern_treasury/models/counterparty.rb +4 -16
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +1 -3
- data/lib/modern_treasury/models/counterparty_create_params.rb +12 -27
- data/lib/modern_treasury/models/expected_payment_create_params.rb +1 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +1 -0
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +3 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +1 -0
- data/lib/modern_treasury/models/external_account_verify_response.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +2 -3
- data/lib/modern_treasury/models/internal_account_create_params.rb +2 -3
- data/lib/modern_treasury/models/internal_account_list_params.rb +1 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +1 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +1 -3
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +1 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +1 -4
- data/lib/modern_treasury/models/ledger_account_settlement.rb +3 -3
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +1 -3
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -6
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +45 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +2 -6
- data/lib/modern_treasury/models/legal_entity.rb +3 -10
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +1 -3
- data/lib/modern_treasury/models/legal_entity_association.rb +7 -21
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +1 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +3 -9
- data/lib/modern_treasury/models/legal_entity_update_params.rb +2 -6
- data/lib/modern_treasury/models/line_item.rb +40 -3
- data/lib/modern_treasury/models/payment_action_create_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -2
- data/lib/modern_treasury/models/payment_action_list_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_update_params.rb +1 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +1 -1
- data/lib/modern_treasury/models/payment_flow.rb +1 -4
- data/lib/modern_treasury/models/payment_order.rb +37 -3
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +42 -21
- data/lib/modern_treasury/models/payment_order_create_params.rb +42 -24
- data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order_type.rb +1 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +41 -21
- data/lib/modern_treasury/models/payment_reference.rb +1 -0
- data/lib/modern_treasury/models/reconciliation_rule.rb +1 -0
- data/lib/modern_treasury/models/return_object.rb +1 -0
- data/lib/modern_treasury/models/routing_detail.rb +1 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -7
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -6
- data/lib/modern_treasury/models.rb +0 -2
- data/lib/modern_treasury/resources/ledger_transactions.rb +3 -1
- data/lib/modern_treasury/resources/payment_orders.rb +3 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +0 -1
- data/rbi/modern_treasury/errors.rbi +2 -2
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +141 -8
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +5 -0
- data/rbi/modern_treasury/models/ledger_account_settlement.rbi +3 -3
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +84 -0
- data/rbi/modern_treasury/models/line_item.rbi +52 -4
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -10
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_order.rbi +59 -4
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +66 -4
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +63 -4
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +1 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +63 -4
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +2 -0
- data/rbi/modern_treasury/models/return_object.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
- data/rbi/modern_treasury/models/transaction.rbi +1 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +0 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +6 -3
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +42 -12
- data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +2 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -4
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +50 -0
- data/sig/modern_treasury/models/line_item.rbs +16 -4
- data/sig/modern_treasury/models/payment_action_list_params.rbs +9 -5
- data/sig/modern_treasury/models/payment_action_update_params.rbs +8 -1
- data/sig/modern_treasury/models/payment_order.rbs +18 -4
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_order_create_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_reference.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +2 -0
- data/sig/modern_treasury/models/return_object.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models.rbs +0 -2
- data/sig/modern_treasury/resources/ledger_transactions.rbs +1 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -3
- metadata +2 -5
- data/lib/modern_treasury/models/accounting.rb +0 -30
- data/rbi/modern_treasury/models/accounting.rbi +0 -48
- data/sig/modern_treasury/models/accounting.rbs +0 -15
|
@@ -13,10 +13,7 @@ module ModernTreasury
|
|
|
13
13
|
# The accounts for this counterparty.
|
|
14
14
|
#
|
|
15
15
|
# @return [Array<ModernTreasury::Models::Counterparty::Account>]
|
|
16
|
-
required :accounts,
|
|
17
|
-
-> {
|
|
18
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Counterparty::Account]
|
|
19
|
-
}
|
|
16
|
+
required :accounts, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Counterparty::Account] }
|
|
20
17
|
|
|
21
18
|
# @!attribute created_at
|
|
22
19
|
#
|
|
@@ -130,10 +127,7 @@ module ModernTreasury
|
|
|
130
127
|
# @!attribute account_details
|
|
131
128
|
#
|
|
132
129
|
# @return [Array<ModernTreasury::Models::AccountDetail>, nil]
|
|
133
|
-
optional :account_details,
|
|
134
|
-
-> {
|
|
135
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail]
|
|
136
|
-
}
|
|
130
|
+
optional :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] }
|
|
137
131
|
|
|
138
132
|
# @!attribute account_type
|
|
139
133
|
# Can be `checking`, `savings` or `other`.
|
|
@@ -144,10 +138,7 @@ module ModernTreasury
|
|
|
144
138
|
# @!attribute contact_details
|
|
145
139
|
#
|
|
146
140
|
# @return [Array<ModernTreasury::Models::ContactDetail>, nil]
|
|
147
|
-
optional :contact_details,
|
|
148
|
-
-> {
|
|
149
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail]
|
|
150
|
-
}
|
|
141
|
+
optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
|
|
151
142
|
|
|
152
143
|
# @!attribute created_at
|
|
153
144
|
#
|
|
@@ -219,10 +210,7 @@ module ModernTreasury
|
|
|
219
210
|
# @!attribute routing_details
|
|
220
211
|
#
|
|
221
212
|
# @return [Array<ModernTreasury::Models::RoutingDetail>, nil]
|
|
222
|
-
optional :routing_details,
|
|
223
|
-
-> {
|
|
224
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail]
|
|
225
|
-
}
|
|
213
|
+
optional :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] }
|
|
226
214
|
|
|
227
215
|
# @!attribute updated_at
|
|
228
216
|
#
|
|
@@ -32,9 +32,7 @@ module ModernTreasury
|
|
|
32
32
|
#
|
|
33
33
|
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCollectAccountParams::Field>, nil]
|
|
34
34
|
optional :fields,
|
|
35
|
-
-> {
|
|
36
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCollectAccountParams::Field]
|
|
37
|
-
}
|
|
35
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCollectAccountParams::Field] }
|
|
38
36
|
|
|
39
37
|
# @!attribute send_email
|
|
40
38
|
# By default, Modern Treasury will send an email to your counterparty that
|
|
@@ -20,6 +20,7 @@ module ModernTreasury
|
|
|
20
20
|
optional :body_external_id, String, api_name: :external_id, nil?: true
|
|
21
21
|
|
|
22
22
|
# @!attribute accounting
|
|
23
|
+
# @deprecated
|
|
23
24
|
#
|
|
24
25
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
|
|
25
26
|
optional :accounting, -> { ModernTreasury::CounterpartyCreateParams::Accounting }
|
|
@@ -29,9 +30,7 @@ module ModernTreasury
|
|
|
29
30
|
#
|
|
30
31
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
|
|
31
32
|
optional :accounts,
|
|
32
|
-
-> {
|
|
33
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account]
|
|
34
|
-
}
|
|
33
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account] }
|
|
35
34
|
|
|
36
35
|
# @!attribute email
|
|
37
36
|
# The counterparty's email.
|
|
@@ -115,6 +114,7 @@ module ModernTreasury
|
|
|
115
114
|
#
|
|
116
115
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
117
116
|
|
|
117
|
+
# @deprecated
|
|
118
118
|
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
119
119
|
# @!attribute type
|
|
120
120
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
|
@@ -149,9 +149,7 @@ module ModernTreasury
|
|
|
149
149
|
#
|
|
150
150
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
|
|
151
151
|
optional :account_details,
|
|
152
|
-
-> {
|
|
153
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail]
|
|
154
|
-
}
|
|
152
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail] }
|
|
155
153
|
|
|
156
154
|
# @!attribute account_type
|
|
157
155
|
# Can be `checking`, `savings` or `other`.
|
|
@@ -231,9 +229,7 @@ module ModernTreasury
|
|
|
231
229
|
#
|
|
232
230
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
|
|
233
231
|
optional :routing_details,
|
|
234
|
-
-> {
|
|
235
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail]
|
|
236
|
-
}
|
|
232
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail] }
|
|
237
233
|
|
|
238
234
|
# @!method initialize(account_details: nil, account_type: nil, contact_details: nil, external_id: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
|
|
239
235
|
# Some parameter documentations has been truncated, see
|
|
@@ -275,9 +271,7 @@ module ModernTreasury
|
|
|
275
271
|
#
|
|
276
272
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
|
|
277
273
|
optional :account_number_type,
|
|
278
|
-
enum: -> {
|
|
279
|
-
ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType
|
|
280
|
-
}
|
|
274
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType }
|
|
281
275
|
|
|
282
276
|
# @!method initialize(account_number:, account_number_type: nil)
|
|
283
277
|
# @param account_number [String]
|
|
@@ -330,9 +324,7 @@ module ModernTreasury
|
|
|
330
324
|
#
|
|
331
325
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
|
332
326
|
required :routing_number_type,
|
|
333
|
-
enum: -> {
|
|
334
|
-
ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType
|
|
335
|
-
}
|
|
327
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType }
|
|
336
328
|
|
|
337
329
|
# @!attribute payment_type
|
|
338
330
|
#
|
|
@@ -392,6 +384,7 @@ module ModernTreasury
|
|
|
392
384
|
DK_NETS = :dk_nets
|
|
393
385
|
EFT = :eft
|
|
394
386
|
ETHEREUM = :ethereum
|
|
387
|
+
GB_FPS = :gb_fps
|
|
395
388
|
HU_ICS = :hu_ics
|
|
396
389
|
INTERAC = :interac
|
|
397
390
|
MASAV = :masav
|
|
@@ -448,9 +441,7 @@ module ModernTreasury
|
|
|
448
441
|
#
|
|
449
442
|
# @return [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>, nil]
|
|
450
443
|
optional :addresses,
|
|
451
|
-
-> {
|
|
452
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
453
|
-
}
|
|
444
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAddressCreateRequest] }
|
|
454
445
|
|
|
455
446
|
# @!attribute bank_settings
|
|
456
447
|
#
|
|
@@ -515,9 +506,7 @@ module ModernTreasury
|
|
|
515
506
|
#
|
|
516
507
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
|
517
508
|
optional :industry_classifications,
|
|
518
|
-
-> {
|
|
519
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
|
520
|
-
}
|
|
509
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification] }
|
|
521
510
|
|
|
522
511
|
# @!attribute last_name
|
|
523
512
|
# An individual's last name.
|
|
@@ -560,9 +549,7 @@ module ModernTreasury
|
|
|
560
549
|
#
|
|
561
550
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
|
|
562
551
|
optional :phone_numbers,
|
|
563
|
-
-> {
|
|
564
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber]
|
|
565
|
-
}
|
|
552
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber] }
|
|
566
553
|
|
|
567
554
|
# @!attribute politically_exposed_person
|
|
568
555
|
# Whether the individual is a politically exposed person.
|
|
@@ -684,9 +671,7 @@ module ModernTreasury
|
|
|
684
671
|
#
|
|
685
672
|
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
|
686
673
|
required :relationship_types,
|
|
687
|
-
-> {
|
|
688
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType]
|
|
689
|
-
}
|
|
674
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType] }
|
|
690
675
|
|
|
691
676
|
# @!attribute child_legal_entity
|
|
692
677
|
# The child legal entity.
|
|
@@ -92,9 +92,7 @@ module ModernTreasury
|
|
|
92
92
|
#
|
|
93
93
|
# @return [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LineItem>, nil]
|
|
94
94
|
optional :line_items,
|
|
95
|
-
-> {
|
|
96
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPaymentCreateParams::LineItem]
|
|
97
|
-
}
|
|
95
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPaymentCreateParams::LineItem] }
|
|
98
96
|
|
|
99
97
|
# @!attribute metadata
|
|
100
98
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
@@ -22,9 +22,7 @@ module ModernTreasury
|
|
|
22
22
|
#
|
|
23
23
|
# @return [Array<ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail>, nil]
|
|
24
24
|
optional :account_details,
|
|
25
|
-
-> {
|
|
26
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::AccountDetail]
|
|
27
|
-
}
|
|
25
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::AccountDetail] }
|
|
28
26
|
|
|
29
27
|
# @!attribute account_type
|
|
30
28
|
# Can be `checking`, `savings` or `other`.
|
|
@@ -96,9 +94,7 @@ module ModernTreasury
|
|
|
96
94
|
#
|
|
97
95
|
# @return [Array<ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail>, nil]
|
|
98
96
|
optional :routing_details,
|
|
99
|
-
-> {
|
|
100
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::RoutingDetail]
|
|
101
|
-
}
|
|
97
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::RoutingDetail] }
|
|
102
98
|
|
|
103
99
|
# @!method initialize(counterparty_id:, body_external_id: nil, account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil, request_options: {})
|
|
104
100
|
# Some parameter documentations has been truncated, see
|
|
@@ -255,6 +251,7 @@ module ModernTreasury
|
|
|
255
251
|
DK_NETS = :dk_nets
|
|
256
252
|
EFT = :eft
|
|
257
253
|
ETHEREUM = :ethereum
|
|
254
|
+
GB_FPS = :gb_fps
|
|
258
255
|
HU_ICS = :hu_ics
|
|
259
256
|
INTERAC = :interac
|
|
260
257
|
MASAV = :masav
|
|
@@ -15,9 +15,7 @@ module ModernTreasury
|
|
|
15
15
|
#
|
|
16
16
|
# @return [Array<ModernTreasury::Models::InternalAccount::AccountCapability>]
|
|
17
17
|
required :account_capabilities,
|
|
18
|
-
-> {
|
|
19
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::AccountCapability]
|
|
20
|
-
}
|
|
18
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::AccountCapability] }
|
|
21
19
|
|
|
22
20
|
# @!attribute account_details
|
|
23
21
|
# An array of account detail objects.
|
|
@@ -274,6 +272,7 @@ module ModernTreasury
|
|
|
274
272
|
DK_NETS = :dk_nets
|
|
275
273
|
EFT = :eft
|
|
276
274
|
ETHEREUM = :ethereum
|
|
275
|
+
GB_FPS = :gb_fps
|
|
277
276
|
HU_ICS = :hu_ics
|
|
278
277
|
INTERAC = :interac
|
|
279
278
|
MASAV = :masav
|
|
@@ -38,9 +38,7 @@ module ModernTreasury
|
|
|
38
38
|
#
|
|
39
39
|
# @return [Array<ModernTreasury::Models::InternalAccountCreateParams::AccountCapability>, nil]
|
|
40
40
|
optional :account_capabilities,
|
|
41
|
-
-> {
|
|
42
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccountCreateParams::AccountCapability]
|
|
43
|
-
}
|
|
41
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccountCreateParams::AccountCapability] }
|
|
44
42
|
|
|
45
43
|
# @!attribute account_type
|
|
46
44
|
# The account type, used to provision the appropriate account at the financial
|
|
@@ -217,6 +215,7 @@ module ModernTreasury
|
|
|
217
215
|
DK_NETS = :dk_nets
|
|
218
216
|
EFT = :eft
|
|
219
217
|
ETHEREUM = :ethereum
|
|
218
|
+
GB_FPS = :gb_fps
|
|
220
219
|
HU_ICS = :hu_ics
|
|
221
220
|
INTERAC = :interac
|
|
222
221
|
MASAV = :masav
|
|
@@ -35,9 +35,7 @@ module ModernTreasury
|
|
|
35
35
|
#
|
|
36
36
|
# @return [Array<ModernTreasury::Models::InternalAccounts::BalanceReport::Balance>]
|
|
37
37
|
required :balances,
|
|
38
|
-
-> {
|
|
39
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReport::Balance]
|
|
40
|
-
}
|
|
38
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReport::Balance] }
|
|
41
39
|
|
|
42
40
|
# @!attribute created_at
|
|
43
41
|
#
|
|
@@ -138,10 +136,7 @@ module ModernTreasury
|
|
|
138
136
|
# 'previously_closed_book', or `other`.
|
|
139
137
|
#
|
|
140
138
|
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReport::Balance::BalanceType]
|
|
141
|
-
required :balance_type,
|
|
142
|
-
enum: -> {
|
|
143
|
-
ModernTreasury::InternalAccounts::BalanceReport::Balance::BalanceType
|
|
144
|
-
}
|
|
139
|
+
required :balance_type, enum: -> { ModernTreasury::InternalAccounts::BalanceReport::Balance::BalanceType }
|
|
145
140
|
|
|
146
141
|
# @!attribute created_at
|
|
147
142
|
#
|
|
@@ -33,9 +33,7 @@ module ModernTreasury
|
|
|
33
33
|
#
|
|
34
34
|
# @return [Array<ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance>]
|
|
35
35
|
required :balances,
|
|
36
|
-
-> {
|
|
37
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance]
|
|
38
|
-
}
|
|
36
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance] }
|
|
39
37
|
|
|
40
38
|
# @!method initialize(as_of_date:, as_of_time:, balance_report_type:, balances:, request_options: {})
|
|
41
39
|
# Some parameter documentations has been truncated, see
|
|
@@ -81,9 +79,7 @@ module ModernTreasury
|
|
|
81
79
|
#
|
|
82
80
|
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType]
|
|
83
81
|
required :balance_type,
|
|
84
|
-
enum: -> {
|
|
85
|
-
ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType
|
|
86
|
-
}
|
|
82
|
+
enum: -> { ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType }
|
|
87
83
|
|
|
88
84
|
# @!attribute vendor_code
|
|
89
85
|
# The code used by the bank when reporting this specific balance.
|
|
@@ -28,9 +28,7 @@ module ModernTreasury
|
|
|
28
28
|
# @return [Array(String, Symbol)]
|
|
29
29
|
|
|
30
30
|
define_sorbet_constant!(:Variants) do
|
|
31
|
-
T.type_alias
|
|
32
|
-
T.any(String, ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol)
|
|
33
|
-
end
|
|
31
|
+
T.type_alias { T.any(String, ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol) }
|
|
34
32
|
end
|
|
35
33
|
|
|
36
34
|
# @!group
|
|
@@ -11,10 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
# Describes the condition that must be satisfied for the monitor to be triggered.
|
|
12
12
|
#
|
|
13
13
|
# @return [ModernTreasury::Models::LedgerAccountBalanceMonitorCreateParams::AlertCondition]
|
|
14
|
-
required :alert_condition,
|
|
15
|
-
-> {
|
|
16
|
-
ModernTreasury::LedgerAccountBalanceMonitorCreateParams::AlertCondition
|
|
17
|
-
}
|
|
14
|
+
required :alert_condition, -> { ModernTreasury::LedgerAccountBalanceMonitorCreateParams::AlertCondition }
|
|
18
15
|
|
|
19
16
|
# @!attribute ledger_account_id
|
|
20
17
|
# The ledger account associated with this balance monitor.
|
|
@@ -24,10 +24,7 @@ module ModernTreasury
|
|
|
24
24
|
# filter by balance amount.
|
|
25
25
|
#
|
|
26
26
|
# @return [ModernTreasury::Models::LedgerAccountListParams::AvailableBalanceAmount, nil]
|
|
27
|
-
optional :available_balance_amount,
|
|
28
|
-
-> {
|
|
29
|
-
ModernTreasury::LedgerAccountListParams::AvailableBalanceAmount
|
|
30
|
-
}
|
|
27
|
+
optional :available_balance_amount, -> { ModernTreasury::LedgerAccountListParams::AvailableBalanceAmount }
|
|
31
28
|
|
|
32
29
|
# @!attribute balances
|
|
33
30
|
# Use `balances[effective_at_lower_bound]` and
|
|
@@ -50,8 +50,8 @@ module ModernTreasury
|
|
|
50
50
|
# be included in the ledger account settlement. The default value is the
|
|
51
51
|
# created_at timestamp of the ledger account settlement.
|
|
52
52
|
#
|
|
53
|
-
# @return [Time]
|
|
54
|
-
required :effective_at_upper_bound, Time
|
|
53
|
+
# @return [Time, nil]
|
|
54
|
+
required :effective_at_upper_bound, Time, nil?: true
|
|
55
55
|
|
|
56
56
|
# @!attribute ledger_id
|
|
57
57
|
# The id of the ledger that this ledger account settlement belongs to.
|
|
@@ -127,7 +127,7 @@ module ModernTreasury
|
|
|
127
127
|
#
|
|
128
128
|
# @param description [String, nil] The description of the ledger account settlement.
|
|
129
129
|
#
|
|
130
|
-
# @param effective_at_upper_bound [Time] The exclusive upper bound of the effective_at timestamp of the ledger entries to
|
|
130
|
+
# @param effective_at_upper_bound [Time, nil] The exclusive upper bound of the effective_at timestamp of the ledger entries to
|
|
131
131
|
#
|
|
132
132
|
# @param ledger_id [String] The id of the ledger that this ledger account settlement belongs to.
|
|
133
133
|
#
|
|
@@ -139,9 +139,7 @@ module ModernTreasury
|
|
|
139
139
|
#
|
|
140
140
|
# @return [Array<Symbol, ModernTreasury::Models::LedgerEntryListParams::Status>, nil]
|
|
141
141
|
optional :status,
|
|
142
|
-
-> {
|
|
143
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LedgerEntryListParams::Status]
|
|
144
|
-
}
|
|
142
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LedgerEntryListParams::Status] }
|
|
145
143
|
|
|
146
144
|
# @!attribute updated_at
|
|
147
145
|
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the
|
|
@@ -14,9 +14,7 @@ module ModernTreasury
|
|
|
14
14
|
#
|
|
15
15
|
# @return [Array<ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry>]
|
|
16
16
|
required :posted_ledger_entries,
|
|
17
|
-
-> {
|
|
18
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry]
|
|
19
|
-
}
|
|
17
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry] }
|
|
20
18
|
|
|
21
19
|
# @!attribute description
|
|
22
20
|
# An optional free-form description for the posted ledger transaction. Maximum of
|
|
@@ -70,9 +68,7 @@ module ModernTreasury
|
|
|
70
68
|
#
|
|
71
69
|
# @return [Symbol, ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction]
|
|
72
70
|
required :direction,
|
|
73
|
-
enum: -> {
|
|
74
|
-
ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction
|
|
75
|
-
}
|
|
71
|
+
enum: -> { ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction }
|
|
76
72
|
|
|
77
73
|
# @!attribute ledger_account_id
|
|
78
74
|
# The ledger account that this ledger entry is associated with.
|
|
@@ -19,6 +19,12 @@ module ModernTreasury
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :after_cursor, String, nil?: true
|
|
21
21
|
|
|
22
|
+
# @!attribute amount
|
|
23
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
24
|
+
#
|
|
25
|
+
# @return [ModernTreasury::Models::LedgerTransactionListParams::Amount, nil]
|
|
26
|
+
optional :amount, -> { ModernTreasury::LedgerTransactionListParams::Amount }
|
|
27
|
+
|
|
22
28
|
# @!attribute effective_at
|
|
23
29
|
# Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
|
|
24
30
|
# effective at. For example, for all transactions after Jan 1 2000, use
|
|
@@ -122,7 +128,7 @@ module ModernTreasury
|
|
|
122
128
|
# @return [Hash{Symbol=>Time}, nil]
|
|
123
129
|
optional :updated_at, ModernTreasury::Internal::Type::HashOf[Time]
|
|
124
130
|
|
|
125
|
-
# @!method initialize(id: nil, after_cursor: nil, effective_at: nil, effective_date: nil, external_id: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_settlement_id: nil, ledger_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, order_by: nil, partially_posts_ledger_transaction_id: nil, per_page: nil, posted_at: nil, reverses_ledger_transaction_id: nil, status: nil, updated_at: nil, request_options: {})
|
|
131
|
+
# @!method initialize(id: nil, after_cursor: nil, amount: nil, effective_at: nil, effective_date: nil, external_id: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_settlement_id: nil, ledger_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, order_by: nil, partially_posts_ledger_transaction_id: nil, per_page: nil, posted_at: nil, reverses_ledger_transaction_id: nil, status: nil, updated_at: nil, request_options: {})
|
|
126
132
|
# Some parameter documentations has been truncated, see
|
|
127
133
|
# {ModernTreasury::Models::LedgerTransactionListParams} for more details.
|
|
128
134
|
#
|
|
@@ -130,6 +136,8 @@ module ModernTreasury
|
|
|
130
136
|
#
|
|
131
137
|
# @param after_cursor [String, nil]
|
|
132
138
|
#
|
|
139
|
+
# @param amount [ModernTreasury::Models::LedgerTransactionListParams::Amount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
140
|
+
#
|
|
133
141
|
# @param effective_at [Hash{Symbol=>Time}] Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by effecti
|
|
134
142
|
#
|
|
135
143
|
# @param effective_date [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by effecti
|
|
@@ -166,6 +174,42 @@ module ModernTreasury
|
|
|
166
174
|
#
|
|
167
175
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
168
176
|
|
|
177
|
+
class Amount < ModernTreasury::Internal::Type::BaseModel
|
|
178
|
+
# @!attribute eq
|
|
179
|
+
#
|
|
180
|
+
# @return [Integer, nil]
|
|
181
|
+
optional :eq, Integer
|
|
182
|
+
|
|
183
|
+
# @!attribute gt
|
|
184
|
+
#
|
|
185
|
+
# @return [Integer, nil]
|
|
186
|
+
optional :gt, Integer
|
|
187
|
+
|
|
188
|
+
# @!attribute gte
|
|
189
|
+
#
|
|
190
|
+
# @return [Integer, nil]
|
|
191
|
+
optional :gte, Integer
|
|
192
|
+
|
|
193
|
+
# @!attribute lt
|
|
194
|
+
#
|
|
195
|
+
# @return [Integer, nil]
|
|
196
|
+
optional :lt, Integer
|
|
197
|
+
|
|
198
|
+
# @!attribute lte
|
|
199
|
+
#
|
|
200
|
+
# @return [Integer, nil]
|
|
201
|
+
optional :lte, Integer
|
|
202
|
+
|
|
203
|
+
# @!method initialize(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil)
|
|
204
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
205
|
+
#
|
|
206
|
+
# @param eq [Integer]
|
|
207
|
+
# @param gt [Integer]
|
|
208
|
+
# @param gte [Integer]
|
|
209
|
+
# @param lt [Integer]
|
|
210
|
+
# @param lte [Integer]
|
|
211
|
+
end
|
|
212
|
+
|
|
169
213
|
module LedgerableType
|
|
170
214
|
extend ModernTreasury::Internal::Type::Enum
|
|
171
215
|
|
|
@@ -56,9 +56,7 @@ module ModernTreasury
|
|
|
56
56
|
#
|
|
57
57
|
# @return [Array<ModernTreasury::Models::LedgerTransactions::LedgerTransactionVersion::LedgerEntry>]
|
|
58
58
|
required :ledger_entries,
|
|
59
|
-
-> {
|
|
60
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactions::LedgerTransactionVersion::LedgerEntry]
|
|
61
|
-
}
|
|
59
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactions::LedgerTransactionVersion::LedgerEntry] }
|
|
62
60
|
|
|
63
61
|
# @!attribute ledger_id
|
|
64
62
|
# The ID of the ledger this ledger transaction belongs to.
|
|
@@ -290,9 +288,7 @@ module ModernTreasury
|
|
|
290
288
|
#
|
|
291
289
|
# @return [Symbol, ModernTreasury::Models::LedgerTransactions::LedgerTransactionVersion::LedgerEntry::Status]
|
|
292
290
|
required :status,
|
|
293
|
-
enum: -> {
|
|
294
|
-
ModernTreasury::LedgerTransactions::LedgerTransactionVersion::LedgerEntry::Status
|
|
295
|
-
}
|
|
291
|
+
enum: -> { ModernTreasury::LedgerTransactions::LedgerTransactionVersion::LedgerEntry::Status }
|
|
296
292
|
|
|
297
293
|
# @!method initialize(id:, amount:, created_at:, direction:, ledger_account_currency:, ledger_account_currency_exponent:, ledger_account_id:, ledger_account_lock_version:, ledger_transaction_id:, live_mode:, metadata:, object:, resulting_ledger_account_balances:, status:)
|
|
298
294
|
# Some parameter documentations has been truncated, see
|
|
@@ -13,10 +13,7 @@ module ModernTreasury
|
|
|
13
13
|
# A list of addresses for the entity.
|
|
14
14
|
#
|
|
15
15
|
# @return [Array<ModernTreasury::Models::LegalEntity::Address>]
|
|
16
|
-
required :addresses,
|
|
17
|
-
-> {
|
|
18
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntity::Address]
|
|
19
|
-
}
|
|
16
|
+
required :addresses, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntity::Address] }
|
|
20
17
|
|
|
21
18
|
# @!attribute bank_settings
|
|
22
19
|
#
|
|
@@ -91,9 +88,7 @@ module ModernTreasury
|
|
|
91
88
|
#
|
|
92
89
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
|
93
90
|
required :industry_classifications,
|
|
94
|
-
-> {
|
|
95
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
|
96
|
-
}
|
|
91
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification] }
|
|
97
92
|
|
|
98
93
|
# @!attribute last_name
|
|
99
94
|
# An individual's last name.
|
|
@@ -279,9 +274,7 @@ module ModernTreasury
|
|
|
279
274
|
#
|
|
280
275
|
# @return [Array<Symbol, ModernTreasury::Models::LegalEntity::Address::AddressType>]
|
|
281
276
|
required :address_types,
|
|
282
|
-
-> {
|
|
283
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntity::Address::AddressType]
|
|
284
|
-
}
|
|
277
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntity::Address::AddressType] }
|
|
285
278
|
|
|
286
279
|
# @!attribute country
|
|
287
280
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
@@ -37,9 +37,7 @@ module ModernTreasury
|
|
|
37
37
|
#
|
|
38
38
|
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityAddressCreateRequest::AddressType>, nil]
|
|
39
39
|
optional :address_types,
|
|
40
|
-
-> {
|
|
41
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAddressCreateRequest::AddressType]
|
|
42
|
-
}
|
|
40
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAddressCreateRequest::AddressType] }
|
|
43
41
|
|
|
44
42
|
# @!attribute line2
|
|
45
43
|
#
|