modern_treasury 0.4.0 → 0.5.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/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 +28 -107
- 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 +10 -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 +1 -18
- 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 +2 -19
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -37
- data/lib/modern_treasury/models/payment_order_create_params.rb +9 -40
- 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 +8 -37
- 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 -15
- 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 +15 -38
- 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 +0 -21
- 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 +5 -19
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -19
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -19
- 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 +5 -19
- 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 +0 -18
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +6 -28
- 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 +0 -10
- 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 +2 -10
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -14
- data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -14
- 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 +2 -14
- 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 +0 -6
- 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
|
@@ -462,6 +462,7 @@ module ModernTreasury
|
|
|
462
462
|
BANKPROV_PAYMENT_ID = :bankprov_payment_id
|
|
463
463
|
BNK_DEV_PRENOTIFICATION_ID = :bnk_dev_prenotification_id
|
|
464
464
|
BNK_DEV_TRANSFER_ID = :bnk_dev_transfer_id
|
|
465
|
+
BNY_MELLON_TRANSACTION_REFERENCE_NUMBER = :bny_mellon_transaction_reference_number
|
|
465
466
|
BOFA_END_TO_END_ID = :bofa_end_to_end_id
|
|
466
467
|
BOFA_TRANSACTION_ID = :bofa_transaction_id
|
|
467
468
|
BRALE_TRANSFER_ID = :brale_transfer_id
|
|
@@ -29,10 +29,7 @@ module ModernTreasury
|
|
|
29
29
|
# routing numbers '123456789' and 'GRINUST0XXX' respectively.
|
|
30
30
|
#
|
|
31
31
|
# @return [Symbol, ModernTreasury::Models::RoutingNumberLookupRequest::RoutingNumberType, nil]
|
|
32
|
-
optional :routing_number_type,
|
|
33
|
-
enum: -> {
|
|
34
|
-
ModernTreasury::RoutingNumberLookupRequest::RoutingNumberType
|
|
35
|
-
}
|
|
32
|
+
optional :routing_number_type, enum: -> { ModernTreasury::RoutingNumberLookupRequest::RoutingNumberType }
|
|
36
33
|
|
|
37
34
|
# @!attribute sanctions
|
|
38
35
|
# An object containing key-value pairs, each with a sanctions list as the key and
|
|
@@ -48,9 +45,7 @@ module ModernTreasury
|
|
|
48
45
|
#
|
|
49
46
|
# @return [Array<Symbol, ModernTreasury::Models::RoutingNumberLookupRequest::SupportedPaymentType>, nil]
|
|
50
47
|
optional :supported_payment_types,
|
|
51
|
-
-> {
|
|
52
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType]
|
|
53
|
-
}
|
|
48
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType] }
|
|
54
49
|
|
|
55
50
|
# @!method initialize(bank_address: nil, bank_name: nil, routing_number: nil, routing_number_type: nil, sanctions: nil, supported_payment_types: nil)
|
|
56
51
|
# Some parameter documentations has been truncated, see
|
|
@@ -106,6 +101,7 @@ module ModernTreasury
|
|
|
106
101
|
DK_NETS = :dk_nets
|
|
107
102
|
EFT = :eft
|
|
108
103
|
ETHEREUM = :ethereum
|
|
104
|
+
GB_FPS = :gb_fps
|
|
109
105
|
HU_ICS = :hu_ics
|
|
110
106
|
INTERAC = :interac
|
|
111
107
|
MASAV = :masav
|
|
@@ -24,9 +24,7 @@ module ModernTreasury
|
|
|
24
24
|
#
|
|
25
25
|
# @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>, nil]
|
|
26
26
|
optional :account_details,
|
|
27
|
-
-> {
|
|
28
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail]
|
|
29
|
-
}
|
|
27
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail] }
|
|
30
28
|
|
|
31
29
|
# @!attribute counterparty_id
|
|
32
30
|
# The ID of the counterparty that the virtual account belongs to.
|
|
@@ -76,9 +74,7 @@ module ModernTreasury
|
|
|
76
74
|
#
|
|
77
75
|
# @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>, nil]
|
|
78
76
|
optional :routing_details,
|
|
79
|
-
-> {
|
|
80
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail]
|
|
81
|
-
}
|
|
77
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail] }
|
|
82
78
|
|
|
83
79
|
# @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, metadata: nil, routing_details: nil, request_options: {})
|
|
84
80
|
# Some parameter documentations has been truncated, see
|
|
@@ -247,6 +243,7 @@ module ModernTreasury
|
|
|
247
243
|
DK_NETS = :dk_nets
|
|
248
244
|
EFT = :eft
|
|
249
245
|
ETHEREUM = :ethereum
|
|
246
|
+
GB_FPS = :gb_fps
|
|
250
247
|
HU_ICS = :hu_ics
|
|
251
248
|
INTERAC = :interac
|
|
252
249
|
MASAV = :masav
|
|
@@ -62,8 +62,6 @@ module ModernTreasury
|
|
|
62
62
|
|
|
63
63
|
AccountDetailRetrieveParams = ModernTreasury::Models::AccountDetailRetrieveParams
|
|
64
64
|
|
|
65
|
-
Accounting = ModernTreasury::Models::Accounting
|
|
66
|
-
|
|
67
65
|
AccountsType = ModernTreasury::Models::AccountsType
|
|
68
66
|
|
|
69
67
|
Address = ModernTreasury::Models::Address
|
|
@@ -111,12 +111,14 @@ module ModernTreasury
|
|
|
111
111
|
#
|
|
112
112
|
# Get a list of ledger transactions.
|
|
113
113
|
#
|
|
114
|
-
# @overload list(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: {})
|
|
114
|
+
# @overload list(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: {})
|
|
115
115
|
#
|
|
116
116
|
# @param id [Array<String>] If you have specific IDs to retrieve in bulk, you can pass them as query paramet
|
|
117
117
|
#
|
|
118
118
|
# @param after_cursor [String, nil]
|
|
119
119
|
#
|
|
120
|
+
# @param amount [ModernTreasury::Models::LedgerTransactionListParams::Amount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
121
|
+
#
|
|
120
122
|
# @param effective_at [Hash{Symbol=>Time}] Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by effecti
|
|
121
123
|
#
|
|
122
124
|
# @param effective_date [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by effecti
|
|
@@ -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:,
|
|
14
|
+
# @overload create(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: 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_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: 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
|
#
|
|
@@ -21,12 +21,8 @@ module ModernTreasury
|
|
|
21
21
|
#
|
|
22
22
|
# @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
|
23
23
|
#
|
|
24
|
-
# @param accounting [ModernTreasury::Models::Accounting]
|
|
25
|
-
#
|
|
26
24
|
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
|
27
25
|
#
|
|
28
|
-
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
|
29
|
-
#
|
|
30
26
|
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
|
31
27
|
#
|
|
32
28
|
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
|
@@ -125,16 +121,12 @@ module ModernTreasury
|
|
|
125
121
|
#
|
|
126
122
|
# Update a payment order
|
|
127
123
|
#
|
|
128
|
-
# @overload update(id,
|
|
124
|
+
# @overload update(id, accounting_category_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: 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_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: 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: {})
|
|
129
125
|
#
|
|
130
126
|
# @param id [String]
|
|
131
127
|
#
|
|
132
|
-
# @param accounting [ModernTreasury::Models::Accounting]
|
|
133
|
-
#
|
|
134
128
|
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
|
135
129
|
#
|
|
136
|
-
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
|
137
|
-
#
|
|
138
130
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
139
131
|
#
|
|
140
132
|
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
|
@@ -278,7 +270,7 @@ module ModernTreasury
|
|
|
278
270
|
#
|
|
279
271
|
# Create a new payment order asynchronously
|
|
280
272
|
#
|
|
281
|
-
# @overload create_async(amount:, direction:, originating_account_id:, type:,
|
|
273
|
+
# @overload create_async(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: 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_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
282
274
|
#
|
|
283
275
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
284
276
|
#
|
|
@@ -288,12 +280,8 @@ module ModernTreasury
|
|
|
288
280
|
#
|
|
289
281
|
# @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
|
290
282
|
#
|
|
291
|
-
# @param accounting [ModernTreasury::Models::Accounting]
|
|
292
|
-
#
|
|
293
283
|
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
|
294
284
|
#
|
|
295
|
-
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
|
296
|
-
#
|
|
297
285
|
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
|
298
286
|
#
|
|
299
287
|
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
data/lib/modern_treasury.rb
CHANGED
|
@@ -63,7 +63,6 @@ require_relative "modern_treasury/models/account_detail_create_params"
|
|
|
63
63
|
require_relative "modern_treasury/models/account_detail_delete_params"
|
|
64
64
|
require_relative "modern_treasury/models/account_detail_list_params"
|
|
65
65
|
require_relative "modern_treasury/models/account_detail_retrieve_params"
|
|
66
|
-
require_relative "modern_treasury/models/accounting"
|
|
67
66
|
require_relative "modern_treasury/models/accounts_type"
|
|
68
67
|
require_relative "modern_treasury/models/address"
|
|
69
68
|
require_relative "modern_treasury/models/address_request"
|
|
@@ -59,10 +59,10 @@ module ModernTreasury
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
class APIConnectionError < ModernTreasury::Errors::APIError
|
|
62
|
-
sig {
|
|
62
|
+
sig { returns(NilClass) }
|
|
63
63
|
attr_accessor :status
|
|
64
64
|
|
|
65
|
-
sig {
|
|
65
|
+
sig { returns(NilClass) }
|
|
66
66
|
attr_accessor :body
|
|
67
67
|
|
|
68
68
|
# @api private
|
|
@@ -274,22 +274,11 @@ module ModernTreasury
|
|
|
274
274
|
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
|
275
275
|
attr_accessor :type
|
|
276
276
|
|
|
277
|
-
sig { returns(T.nilable(ModernTreasury::Accounting)) }
|
|
278
|
-
attr_reader :accounting
|
|
279
|
-
|
|
280
|
-
sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
|
|
281
|
-
attr_writer :accounting
|
|
282
|
-
|
|
283
277
|
# The ID of one of your accounting categories. Note that these will only be
|
|
284
278
|
# accessible if your accounting system has been connected.
|
|
285
279
|
sig { returns(T.nilable(String)) }
|
|
286
280
|
attr_accessor :accounting_category_id
|
|
287
281
|
|
|
288
|
-
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
289
|
-
# accessible if your accounting system has been connected.
|
|
290
|
-
sig { returns(T.nilable(String)) }
|
|
291
|
-
attr_accessor :accounting_ledger_class_id
|
|
292
|
-
|
|
293
282
|
# The party that will pay the fees for the payment order. See
|
|
294
283
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
295
284
|
# differences between the options.
|
|
@@ -558,9 +547,7 @@ module ModernTreasury
|
|
|
558
547
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction::OrSymbol,
|
|
559
548
|
originating_account_id: String,
|
|
560
549
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
561
|
-
accounting: ModernTreasury::Accounting::OrHash,
|
|
562
550
|
accounting_category_id: T.nilable(String),
|
|
563
|
-
accounting_ledger_class_id: T.nilable(String),
|
|
564
551
|
charge_bearer:
|
|
565
552
|
T.nilable(
|
|
566
553
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer::OrSymbol
|
|
@@ -619,13 +606,9 @@ module ModernTreasury
|
|
|
619
606
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
620
607
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
621
608
|
type:,
|
|
622
|
-
accounting: nil,
|
|
623
609
|
# The ID of one of your accounting categories. Note that these will only be
|
|
624
610
|
# accessible if your accounting system has been connected.
|
|
625
611
|
accounting_category_id: nil,
|
|
626
|
-
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
627
|
-
# accessible if your accounting system has been connected.
|
|
628
|
-
accounting_ledger_class_id: nil,
|
|
629
612
|
# The party that will pay the fees for the payment order. See
|
|
630
613
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
631
614
|
# differences between the options.
|
|
@@ -737,9 +720,7 @@ module ModernTreasury
|
|
|
737
720
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction::OrSymbol,
|
|
738
721
|
originating_account_id: String,
|
|
739
722
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
740
|
-
accounting: ModernTreasury::Accounting,
|
|
741
723
|
accounting_category_id: T.nilable(String),
|
|
742
|
-
accounting_ledger_class_id: T.nilable(String),
|
|
743
724
|
charge_bearer:
|
|
744
725
|
T.nilable(
|
|
745
726
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer::OrSymbol
|
|
@@ -1745,6 +1726,11 @@ module ModernTreasury
|
|
|
1745
1726
|
:ethereum,
|
|
1746
1727
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
1747
1728
|
)
|
|
1729
|
+
GB_FPS =
|
|
1730
|
+
T.let(
|
|
1731
|
+
:gb_fps,
|
|
1732
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
1733
|
+
)
|
|
1748
1734
|
HU_ICS =
|
|
1749
1735
|
T.let(
|
|
1750
1736
|
:hu_ics,
|
|
@@ -2473,6 +2459,11 @@ module ModernTreasury
|
|
|
2473
2459
|
:ethereum,
|
|
2474
2460
|
ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type::TaggedSymbol
|
|
2475
2461
|
)
|
|
2462
|
+
GB_FPS =
|
|
2463
|
+
T.let(
|
|
2464
|
+
:gb_fps,
|
|
2465
|
+
ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type::TaggedSymbol
|
|
2466
|
+
)
|
|
2476
2467
|
HU_ICS =
|
|
2477
2468
|
T.let(
|
|
2478
2469
|
:hu_ics,
|
|
@@ -2640,22 +2631,11 @@ module ModernTreasury
|
|
|
2640
2631
|
sig { params(id: String).void }
|
|
2641
2632
|
attr_writer :id
|
|
2642
2633
|
|
|
2643
|
-
sig { returns(T.nilable(ModernTreasury::Accounting)) }
|
|
2644
|
-
attr_reader :accounting
|
|
2645
|
-
|
|
2646
|
-
sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
|
|
2647
|
-
attr_writer :accounting
|
|
2648
|
-
|
|
2649
2634
|
# The ID of one of your accounting categories. Note that these will only be
|
|
2650
2635
|
# accessible if your accounting system has been connected.
|
|
2651
2636
|
sig { returns(T.nilable(String)) }
|
|
2652
2637
|
attr_accessor :accounting_category_id
|
|
2653
2638
|
|
|
2654
|
-
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
2655
|
-
# accessible if your accounting system has been connected.
|
|
2656
|
-
sig { returns(T.nilable(String)) }
|
|
2657
|
-
attr_accessor :accounting_ledger_class_id
|
|
2658
|
-
|
|
2659
2639
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
2660
2640
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
2661
2641
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -2962,9 +2942,7 @@ module ModernTreasury
|
|
|
2962
2942
|
sig do
|
|
2963
2943
|
params(
|
|
2964
2944
|
id: String,
|
|
2965
|
-
accounting: ModernTreasury::Accounting::OrHash,
|
|
2966
2945
|
accounting_category_id: T.nilable(String),
|
|
2967
|
-
accounting_ledger_class_id: T.nilable(String),
|
|
2968
2946
|
amount: Integer,
|
|
2969
2947
|
charge_bearer:
|
|
2970
2948
|
T.nilable(
|
|
@@ -3014,13 +2992,9 @@ module ModernTreasury
|
|
|
3014
2992
|
end
|
|
3015
2993
|
def self.new(
|
|
3016
2994
|
id: nil,
|
|
3017
|
-
accounting: nil,
|
|
3018
2995
|
# The ID of one of your accounting categories. Note that these will only be
|
|
3019
2996
|
# accessible if your accounting system has been connected.
|
|
3020
2997
|
accounting_category_id: nil,
|
|
3021
|
-
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
3022
|
-
# accessible if your accounting system has been connected.
|
|
3023
|
-
accounting_ledger_class_id: nil,
|
|
3024
2998
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
3025
2999
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
3026
3000
|
amount: nil,
|
|
@@ -3143,9 +3117,7 @@ module ModernTreasury
|
|
|
3143
3117
|
override.returns(
|
|
3144
3118
|
{
|
|
3145
3119
|
id: String,
|
|
3146
|
-
accounting: ModernTreasury::Accounting,
|
|
3147
3120
|
accounting_category_id: T.nilable(String),
|
|
3148
|
-
accounting_ledger_class_id: T.nilable(String),
|
|
3149
3121
|
amount: Integer,
|
|
3150
3122
|
charge_bearer:
|
|
3151
3123
|
T.nilable(
|
|
@@ -4155,6 +4127,11 @@ module ModernTreasury
|
|
|
4155
4127
|
:ethereum,
|
|
4156
4128
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
4157
4129
|
)
|
|
4130
|
+
GB_FPS =
|
|
4131
|
+
T.let(
|
|
4132
|
+
:gb_fps,
|
|
4133
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
4134
|
+
)
|
|
4158
4135
|
HU_ICS =
|
|
4159
4136
|
T.let(
|
|
4160
4137
|
:hu_ics,
|
|
@@ -992,6 +992,11 @@ module ModernTreasury
|
|
|
992
992
|
:ethereum,
|
|
993
993
|
ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
|
994
994
|
)
|
|
995
|
+
GB_FPS =
|
|
996
|
+
T.let(
|
|
997
|
+
:gb_fps,
|
|
998
|
+
ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
|
999
|
+
)
|
|
995
1000
|
HU_ICS =
|
|
996
1001
|
T.let(
|
|
997
1002
|
:hu_ics,
|
|
@@ -305,6 +305,11 @@ module ModernTreasury
|
|
|
305
305
|
:ethereum,
|
|
306
306
|
ModernTreasury::ExpectedPaymentListParams::Type::TaggedSymbol
|
|
307
307
|
)
|
|
308
|
+
GB_FPS =
|
|
309
|
+
T.let(
|
|
310
|
+
:gb_fps,
|
|
311
|
+
ModernTreasury::ExpectedPaymentListParams::Type::TaggedSymbol
|
|
312
|
+
)
|
|
308
313
|
HU_ICS =
|
|
309
314
|
T.let(
|
|
310
315
|
:hu_ics,
|
|
@@ -27,6 +27,7 @@ module ModernTreasury
|
|
|
27
27
|
EFT = T.let(:eft, ModernTreasury::ExpectedPaymentType::TaggedSymbol)
|
|
28
28
|
ETHEREUM =
|
|
29
29
|
T.let(:ethereum, ModernTreasury::ExpectedPaymentType::TaggedSymbol)
|
|
30
|
+
GB_FPS = T.let(:gb_fps, ModernTreasury::ExpectedPaymentType::TaggedSymbol)
|
|
30
31
|
HU_ICS = T.let(:hu_ics, ModernTreasury::ExpectedPaymentType::TaggedSymbol)
|
|
31
32
|
INTERAC =
|
|
32
33
|
T.let(:interac, ModernTreasury::ExpectedPaymentType::TaggedSymbol)
|
|
@@ -694,6 +694,11 @@ module ModernTreasury
|
|
|
694
694
|
:ethereum,
|
|
695
695
|
ModernTreasury::ExternalAccountCreateParams::RoutingDetail::PaymentType::TaggedSymbol
|
|
696
696
|
)
|
|
697
|
+
GB_FPS =
|
|
698
|
+
T.let(
|
|
699
|
+
:gb_fps,
|
|
700
|
+
ModernTreasury::ExternalAccountCreateParams::RoutingDetail::PaymentType::TaggedSymbol
|
|
701
|
+
)
|
|
697
702
|
HU_ICS =
|
|
698
703
|
T.let(
|
|
699
704
|
:hu_ics,
|
|
@@ -196,6 +196,11 @@ module ModernTreasury
|
|
|
196
196
|
:ethereum,
|
|
197
197
|
ModernTreasury::ExternalAccountVerifyParams::PaymentType::TaggedSymbol
|
|
198
198
|
)
|
|
199
|
+
GB_FPS =
|
|
200
|
+
T.let(
|
|
201
|
+
:gb_fps,
|
|
202
|
+
ModernTreasury::ExternalAccountVerifyParams::PaymentType::TaggedSymbol
|
|
203
|
+
)
|
|
199
204
|
HU_ICS =
|
|
200
205
|
T.let(
|
|
201
206
|
:hu_ics,
|
|
@@ -215,6 +215,11 @@ module ModernTreasury
|
|
|
215
215
|
:ethereum,
|
|
216
216
|
ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt::PaymentType::TaggedSymbol
|
|
217
217
|
)
|
|
218
|
+
GB_FPS =
|
|
219
|
+
T.let(
|
|
220
|
+
:gb_fps,
|
|
221
|
+
ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt::PaymentType::TaggedSymbol
|
|
222
|
+
)
|
|
218
223
|
HU_ICS =
|
|
219
224
|
T.let(
|
|
220
225
|
:hu_ics,
|
|
@@ -402,6 +402,11 @@ module ModernTreasury
|
|
|
402
402
|
:ethereum,
|
|
403
403
|
ModernTreasury::InternalAccount::AccountCapability::PaymentType::TaggedSymbol
|
|
404
404
|
)
|
|
405
|
+
GB_FPS =
|
|
406
|
+
T.let(
|
|
407
|
+
:gb_fps,
|
|
408
|
+
ModernTreasury::InternalAccount::AccountCapability::PaymentType::TaggedSymbol
|
|
409
|
+
)
|
|
405
410
|
HU_ICS =
|
|
406
411
|
T.let(
|
|
407
412
|
:hu_ics,
|
|
@@ -409,6 +409,11 @@ module ModernTreasury
|
|
|
409
409
|
:ethereum,
|
|
410
410
|
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
|
411
411
|
)
|
|
412
|
+
GB_FPS =
|
|
413
|
+
T.let(
|
|
414
|
+
:gb_fps,
|
|
415
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
|
416
|
+
)
|
|
412
417
|
HU_ICS =
|
|
413
418
|
T.let(
|
|
414
419
|
:hu_ics,
|
|
@@ -209,6 +209,11 @@ module ModernTreasury
|
|
|
209
209
|
:ethereum,
|
|
210
210
|
ModernTreasury::InternalAccountListParams::PaymentType::TaggedSymbol
|
|
211
211
|
)
|
|
212
|
+
GB_FPS =
|
|
213
|
+
T.let(
|
|
214
|
+
:gb_fps,
|
|
215
|
+
ModernTreasury::InternalAccountListParams::PaymentType::TaggedSymbol
|
|
216
|
+
)
|
|
212
217
|
HU_ICS =
|
|
213
218
|
T.let(
|
|
214
219
|
:hu_ics,
|
|
@@ -178,6 +178,11 @@ module ModernTreasury
|
|
|
178
178
|
:ethereum,
|
|
179
179
|
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType::TaggedSymbol
|
|
180
180
|
)
|
|
181
|
+
GB_FPS =
|
|
182
|
+
T.let(
|
|
183
|
+
:gb_fps,
|
|
184
|
+
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType::TaggedSymbol
|
|
185
|
+
)
|
|
181
186
|
HU_ICS =
|
|
182
187
|
T.let(
|
|
183
188
|
:hu_ics,
|
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
|
41
41
|
# The exclusive upper bound of the effective_at timestamp of the ledger entries to
|
|
42
42
|
# be included in the ledger account settlement. The default value is the
|
|
43
43
|
# created_at timestamp of the ledger account settlement.
|
|
44
|
-
sig { returns(Time) }
|
|
44
|
+
sig { returns(T.nilable(Time)) }
|
|
45
45
|
attr_accessor :effective_at_upper_bound
|
|
46
46
|
|
|
47
47
|
# The id of the ledger that this ledger account settlement belongs to.
|
|
@@ -93,7 +93,7 @@ module ModernTreasury
|
|
|
93
93
|
currency: String,
|
|
94
94
|
currency_exponent: T.nilable(Integer),
|
|
95
95
|
description: T.nilable(String),
|
|
96
|
-
effective_at_upper_bound: Time,
|
|
96
|
+
effective_at_upper_bound: T.nilable(Time),
|
|
97
97
|
ledger_id: String,
|
|
98
98
|
ledger_transaction_id: T.nilable(String),
|
|
99
99
|
live_mode: T::Boolean,
|
|
@@ -156,7 +156,7 @@ module ModernTreasury
|
|
|
156
156
|
currency: String,
|
|
157
157
|
currency_exponent: T.nilable(Integer),
|
|
158
158
|
description: T.nilable(String),
|
|
159
|
-
effective_at_upper_bound: Time,
|
|
159
|
+
effective_at_upper_bound: T.nilable(Time),
|
|
160
160
|
ledger_id: String,
|
|
161
161
|
ledger_transaction_id: T.nilable(String),
|
|
162
162
|
live_mode: T::Boolean,
|
|
@@ -25,6 +25,19 @@ module ModernTreasury
|
|
|
25
25
|
sig { returns(T.nilable(String)) }
|
|
26
26
|
attr_accessor :after_cursor
|
|
27
27
|
|
|
28
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
29
|
+
sig do
|
|
30
|
+
returns(T.nilable(ModernTreasury::LedgerTransactionListParams::Amount))
|
|
31
|
+
end
|
|
32
|
+
attr_reader :amount
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :amount
|
|
40
|
+
|
|
28
41
|
# Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
|
|
29
42
|
# effective at. For example, for all transactions after Jan 1 2000, use
|
|
30
43
|
# effective_at%5Bgt%5D=2000-01-01T00:00:00:00.000Z.
|
|
@@ -187,6 +200,7 @@ module ModernTreasury
|
|
|
187
200
|
params(
|
|
188
201
|
id: T::Array[String],
|
|
189
202
|
after_cursor: T.nilable(String),
|
|
203
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount::OrHash,
|
|
190
204
|
effective_at: T::Hash[Symbol, Time],
|
|
191
205
|
effective_date: T::Hash[Symbol, Time],
|
|
192
206
|
external_id: String,
|
|
@@ -220,6 +234,8 @@ module ModernTreasury
|
|
|
220
234
|
# parameters delimited with `id[]=`, for example `?id[]=123&id[]=abc`.
|
|
221
235
|
id: nil,
|
|
222
236
|
after_cursor: nil,
|
|
237
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
238
|
+
amount: nil,
|
|
223
239
|
# Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
|
|
224
240
|
# effective at. For example, for all transactions after Jan 1 2000, use
|
|
225
241
|
# effective_at%5Bgt%5D=2000-01-01T00:00:00:00.000Z.
|
|
@@ -264,6 +280,7 @@ module ModernTreasury
|
|
|
264
280
|
{
|
|
265
281
|
id: T::Array[String],
|
|
266
282
|
after_cursor: T.nilable(String),
|
|
283
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount,
|
|
267
284
|
effective_at: T::Hash[Symbol, Time],
|
|
268
285
|
effective_date: T::Hash[Symbol, Time],
|
|
269
286
|
external_id: String,
|
|
@@ -295,6 +312,73 @@ module ModernTreasury
|
|
|
295
312
|
def to_hash
|
|
296
313
|
end
|
|
297
314
|
|
|
315
|
+
class Amount < ModernTreasury::Internal::Type::BaseModel
|
|
316
|
+
OrHash =
|
|
317
|
+
T.type_alias do
|
|
318
|
+
T.any(
|
|
319
|
+
ModernTreasury::LedgerTransactionListParams::Amount,
|
|
320
|
+
ModernTreasury::Internal::AnyHash
|
|
321
|
+
)
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
sig { returns(T.nilable(Integer)) }
|
|
325
|
+
attr_reader :eq
|
|
326
|
+
|
|
327
|
+
sig { params(eq: Integer).void }
|
|
328
|
+
attr_writer :eq
|
|
329
|
+
|
|
330
|
+
sig { returns(T.nilable(Integer)) }
|
|
331
|
+
attr_reader :gt
|
|
332
|
+
|
|
333
|
+
sig { params(gt: Integer).void }
|
|
334
|
+
attr_writer :gt
|
|
335
|
+
|
|
336
|
+
sig { returns(T.nilable(Integer)) }
|
|
337
|
+
attr_reader :gte
|
|
338
|
+
|
|
339
|
+
sig { params(gte: Integer).void }
|
|
340
|
+
attr_writer :gte
|
|
341
|
+
|
|
342
|
+
sig { returns(T.nilable(Integer)) }
|
|
343
|
+
attr_reader :lt
|
|
344
|
+
|
|
345
|
+
sig { params(lt: Integer).void }
|
|
346
|
+
attr_writer :lt
|
|
347
|
+
|
|
348
|
+
sig { returns(T.nilable(Integer)) }
|
|
349
|
+
attr_reader :lte
|
|
350
|
+
|
|
351
|
+
sig { params(lte: Integer).void }
|
|
352
|
+
attr_writer :lte
|
|
353
|
+
|
|
354
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
355
|
+
sig do
|
|
356
|
+
params(
|
|
357
|
+
eq: Integer,
|
|
358
|
+
gt: Integer,
|
|
359
|
+
gte: Integer,
|
|
360
|
+
lt: Integer,
|
|
361
|
+
lte: Integer
|
|
362
|
+
).returns(T.attached_class)
|
|
363
|
+
end
|
|
364
|
+
def self.new(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil)
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
sig do
|
|
368
|
+
override.returns(
|
|
369
|
+
{
|
|
370
|
+
eq: Integer,
|
|
371
|
+
gt: Integer,
|
|
372
|
+
gte: Integer,
|
|
373
|
+
lt: Integer,
|
|
374
|
+
lte: Integer
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
end
|
|
378
|
+
def to_hash
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
298
382
|
module LedgerableType
|
|
299
383
|
extend ModernTreasury::Internal::Type::Enum
|
|
300
384
|
|