modern_treasury 0.1.0.pre.alpha.21 → 0.1.0.pre.alpha.22
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 +27 -0
- data/README.md +1 -1
- data/lib/modern_treasury/errors.rb +22 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +10 -2
- data/lib/modern_treasury/internal/type/array_of.rb +6 -1
- data/lib/modern_treasury/internal/type/base_model.rb +77 -23
- data/lib/modern_treasury/internal/type/boolean.rb +7 -1
- data/lib/modern_treasury/internal/type/converter.rb +42 -34
- data/lib/modern_treasury/internal/type/enum.rb +10 -2
- data/lib/modern_treasury/internal/type/file_input.rb +6 -1
- data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
- data/lib/modern_treasury/internal/type/union.rb +12 -7
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +143 -18
- data/lib/modern_treasury/models/bulk_result.rb +5 -3
- data/lib/modern_treasury/models/counterparty_create_params.rb +1 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +146 -3
- data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
- data/lib/modern_treasury/models/invoice.rb +10 -1
- data/lib/modern_treasury/models/ledger_account.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +8 -1
- data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
- data/lib/modern_treasury/models/payment_order.rb +21 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_create_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +9 -7
- data/lib/modern_treasury/models/payment_reference.rb +4 -1
- data/lib/modern_treasury/models/return_create_params.rb +75 -1
- data/lib/modern_treasury/models/return_object.rb +80 -2
- 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/transaction.rb +1 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -1
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
- data/lib/modern_treasury/models.rb +0 -18
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/ledger_account_categories.rb +3 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +5 -1
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -111
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -51
- data/lib/modern_treasury/resources/payment_orders.rb +6 -4
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/resources/transactions.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +0 -9
- data/rbi/modern_treasury/errors.rbi +16 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
- data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +234 -18
- data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +328 -5
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
- data/rbi/modern_treasury/models/invoice.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_account.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/payment_order.rbi +39 -14
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +19 -9
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -5
- data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
- data/rbi/modern_treasury/models/return_object.rbi +131 -5
- 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/transaction.rbi +5 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +0 -25
- data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -0
- data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -0
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +2 -0
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +4 -0
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -97
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -38
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -9
- data/rbi/modern_treasury/resources/returns.rbi +6 -0
- data/rbi/modern_treasury/resources/transactions.rbi +3 -0
- data/sig/modern_treasury/errors.rbs +9 -0
- data/sig/modern_treasury/internal/type/converter.rbs +7 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +101 -0
- data/sig/modern_treasury/models/bulk_result.rbs +1 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +147 -3
- data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
- data/sig/modern_treasury/models/invoice.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
- data/sig/modern_treasury/models/payment_order.rbs +15 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +4 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -2
- data/sig/modern_treasury/models/return_create_params.rbs +47 -0
- data/sig/modern_treasury/models/return_object.rbs +55 -2
- 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/transaction.rbs +2 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +2 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -30
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -13
- data/sig/modern_treasury/resources/payment_orders.rbs +1 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- data/sig/modern_treasury/resources/transactions.rbs +1 -0
- metadata +2 -29
- data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
- data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
- data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
- data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
- data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
@@ -104,13 +104,14 @@ module ModernTreasury
|
|
104
104
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
105
105
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
106
106
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
107
|
+
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
108
|
+
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
107
109
|
CROSS_RIVER_PAYMENT_ID = :cross_river_payment_id
|
108
110
|
CROSS_RIVER_SERVICE_MESSAGE = :cross_river_service_message
|
109
111
|
CROSS_RIVER_TRANSACTION_ID = :cross_river_transaction_id
|
110
112
|
CURRENCYCLOUD_CONVERSION_ID = :currencycloud_conversion_id
|
111
113
|
CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
|
112
114
|
DC_BANK_TRANSACTION_ID = :dc_bank_transaction_id
|
113
|
-
DWOLLA_TRANSACTION_ID = :dwolla_transaction_id
|
114
115
|
EFT_TRACE_NUMBER = :eft_trace_number
|
115
116
|
EVOLVE_TRANSACTION_ID = :evolve_transaction_id
|
116
117
|
FEDWIRE_IMAD = :fedwire_imad
|
@@ -121,6 +122,8 @@ module ModernTreasury
|
|
121
122
|
GOLDMAN_SACHS_PAYMENT_REQUEST_ID = :goldman_sachs_payment_request_id
|
122
123
|
GOLDMAN_SACHS_REQUEST_ID = :goldman_sachs_request_id
|
123
124
|
GOLDMAN_SACHS_UNIQUE_PAYMENT_ID = :goldman_sachs_unique_payment_id
|
125
|
+
HIFI_OFFRAMP_ID = :hifi_offramp_id
|
126
|
+
HIFI_TRANSFER_ID = :hifi_transfer_id
|
124
127
|
INTERAC_MESSAGE_ID = :interac_message_id
|
125
128
|
JPMC_CCN = :jpmc_ccn
|
126
129
|
JPMC_CLEARING_SYSTEM_REFERENCE = :jpmc_clearing_system_reference
|
@@ -33,6 +33,14 @@ module ModernTreasury
|
|
33
33
|
# @return [Symbol, ModernTreasury::Models::ReturnCreateParams::Code, nil]
|
34
34
|
optional :code, enum: -> { ModernTreasury::ReturnCreateParams::Code }, nil?: true
|
35
35
|
|
36
|
+
# @!attribute corrections
|
37
|
+
# Only relevant for ACH NOC returns. This is an object containing all of the new
|
38
|
+
# and corrected information provided by the bank that was previously incorrect on
|
39
|
+
# the original outgoing payment.
|
40
|
+
#
|
41
|
+
# @return [ModernTreasury::Models::ReturnCreateParams::Corrections, nil]
|
42
|
+
optional :corrections, -> { ModernTreasury::ReturnCreateParams::Corrections }, nil?: true
|
43
|
+
|
36
44
|
# @!attribute data
|
37
45
|
# The raw data from the return file that we get from the bank.
|
38
46
|
#
|
@@ -53,7 +61,7 @@ module ModernTreasury
|
|
53
61
|
# @return [String, nil]
|
54
62
|
optional :reason, String, nil?: true
|
55
63
|
|
56
|
-
# @!method initialize(returnable_id:, returnable_type:, additional_information: nil, code: nil, data: nil, date_of_death: nil, reason: nil, request_options: {})
|
64
|
+
# @!method initialize(returnable_id:, returnable_type:, additional_information: nil, code: nil, corrections: nil, data: nil, date_of_death: nil, reason: nil, request_options: {})
|
57
65
|
# Some parameter documentations has been truncated, see
|
58
66
|
# {ModernTreasury::Models::ReturnCreateParams} for more details.
|
59
67
|
#
|
@@ -65,6 +73,8 @@ module ModernTreasury
|
|
65
73
|
#
|
66
74
|
# @param code [Symbol, ModernTreasury::Models::ReturnCreateParams::Code, nil] The return code. For ACH returns, this is the required ACH return code.
|
67
75
|
#
|
76
|
+
# @param corrections [ModernTreasury::Models::ReturnCreateParams::Corrections, nil] Only relevant for ACH NOC returns. This is an object containing all of the new a
|
77
|
+
#
|
68
78
|
# @param data [Object, nil] The raw data from the return file that we get from the bank.
|
69
79
|
#
|
70
80
|
# @param date_of_death [Date, nil] If the return code is `R14` or `R15` this is the date the deceased counterparty
|
@@ -185,6 +195,70 @@ module ModernTreasury
|
|
185
195
|
# @!method self.values
|
186
196
|
# @return [Array<Symbol>]
|
187
197
|
end
|
198
|
+
|
199
|
+
class Corrections < ModernTreasury::Internal::Type::BaseModel
|
200
|
+
# @!attribute account_number
|
201
|
+
# The updated account number that should replace the one originally used on the
|
202
|
+
# outgoing payment.
|
203
|
+
#
|
204
|
+
# @return [String, nil]
|
205
|
+
optional :account_number, String, nil?: true
|
206
|
+
|
207
|
+
# @!attribute company_id
|
208
|
+
# The updated company ID that should replace the one originally used on the
|
209
|
+
# outgoing payment.
|
210
|
+
#
|
211
|
+
# @return [String, nil]
|
212
|
+
optional :company_id, String, nil?: true
|
213
|
+
|
214
|
+
# @!attribute company_name
|
215
|
+
# The updated company name that should replace the one originally used on the
|
216
|
+
# outgoing payment.
|
217
|
+
#
|
218
|
+
# @return [String, nil]
|
219
|
+
optional :company_name, String, nil?: true
|
220
|
+
|
221
|
+
# @!attribute individual_identification_number
|
222
|
+
# The updated individual identification number that should replace the one
|
223
|
+
# originally used on the outgoing payment.
|
224
|
+
#
|
225
|
+
# @return [String, nil]
|
226
|
+
optional :individual_identification_number, String, nil?: true
|
227
|
+
|
228
|
+
# @!attribute routing_number
|
229
|
+
# The updated routing number that should replace the one originally used on the
|
230
|
+
# outgoing payment.
|
231
|
+
#
|
232
|
+
# @return [String, nil]
|
233
|
+
optional :routing_number, String, nil?: true
|
234
|
+
|
235
|
+
# @!attribute transaction_code
|
236
|
+
# The updated account type code that should replace the one originally used on the
|
237
|
+
# outgoing payment.
|
238
|
+
#
|
239
|
+
# @return [String, nil]
|
240
|
+
optional :transaction_code, String, nil?: true
|
241
|
+
|
242
|
+
# @!method initialize(account_number: nil, company_id: nil, company_name: nil, individual_identification_number: nil, routing_number: nil, transaction_code: nil)
|
243
|
+
# Some parameter documentations has been truncated, see
|
244
|
+
# {ModernTreasury::Models::ReturnCreateParams::Corrections} for more details.
|
245
|
+
#
|
246
|
+
# Only relevant for ACH NOC returns. This is an object containing all of the new
|
247
|
+
# and corrected information provided by the bank that was previously incorrect on
|
248
|
+
# the original outgoing payment.
|
249
|
+
#
|
250
|
+
# @param account_number [String, nil] The updated account number that should replace the one originally used on the ou
|
251
|
+
#
|
252
|
+
# @param company_id [String, nil] The updated company ID that should replace the one originally used on the outgoi
|
253
|
+
#
|
254
|
+
# @param company_name [String, nil] The updated company name that should replace the one originally used on the outg
|
255
|
+
#
|
256
|
+
# @param individual_identification_number [String, nil] The updated individual identification number that should replace the one origina
|
257
|
+
#
|
258
|
+
# @param routing_number [String, nil] The updated routing number that should replace the one originally used on the ou
|
259
|
+
#
|
260
|
+
# @param transaction_code [String, nil] The updated account type code that should replace the one originally used on the
|
261
|
+
end
|
188
262
|
end
|
189
263
|
end
|
190
264
|
end
|
@@ -22,6 +22,14 @@ module ModernTreasury
|
|
22
22
|
# @return [Symbol, ModernTreasury::Models::ReturnObject::Code, nil]
|
23
23
|
required :code, enum: -> { ModernTreasury::ReturnObject::Code }, nil?: true
|
24
24
|
|
25
|
+
# @!attribute corrections
|
26
|
+
# Only relevant for ACH NOC returns. This is an object containing all of the new
|
27
|
+
# and corrected information provided by the bank that was previously incorrect on
|
28
|
+
# the original outgoing payment.
|
29
|
+
#
|
30
|
+
# @return [ModernTreasury::Models::ReturnObject::Corrections, nil]
|
31
|
+
required :corrections, -> { ModernTreasury::ReturnObject::Corrections }, nil?: true
|
32
|
+
|
25
33
|
# @!attribute created_at
|
26
34
|
#
|
27
35
|
# @return [Time]
|
@@ -158,7 +166,7 @@ module ModernTreasury
|
|
158
166
|
# @return [Object, nil]
|
159
167
|
optional :data, ModernTreasury::Internal::Type::Unknown, nil?: true
|
160
168
|
|
161
|
-
# @!method initialize(id:, amount:, code:, created_at:, currency:, current_return:, date_of_death:, discarded_at:, failure_reason:, internal_account_id:, ledger_transaction_id:, live_mode:, object:, reason:, reference_numbers:, returnable_id:, returnable_type:, role:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:, additional_information: nil, data: nil)
|
169
|
+
# @!method initialize(id:, amount:, code:, corrections:, created_at:, currency:, current_return:, date_of_death:, discarded_at:, failure_reason:, internal_account_id:, ledger_transaction_id:, live_mode:, object:, reason:, reference_numbers:, returnable_id:, returnable_type:, role:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:, additional_information: nil, data: nil)
|
162
170
|
# Some parameter documentations has been truncated, see
|
163
171
|
# {ModernTreasury::Models::ReturnObject} for more details.
|
164
172
|
#
|
@@ -168,6 +176,8 @@ module ModernTreasury
|
|
168
176
|
#
|
169
177
|
# @param code [Symbol, ModernTreasury::Models::ReturnObject::Code, nil] The return code. For ACH returns, this is the required ACH return code.
|
170
178
|
#
|
179
|
+
# @param corrections [ModernTreasury::Models::ReturnObject::Corrections, nil] Only relevant for ACH NOC returns. This is an object containing all of the new a
|
180
|
+
#
|
171
181
|
# @param created_at [Time]
|
172
182
|
#
|
173
183
|
# @param currency [Symbol, ModernTreasury::Models::Currency] Currency that this transaction is denominated in.
|
@@ -316,6 +326,71 @@ module ModernTreasury
|
|
316
326
|
# @return [Array<Symbol>]
|
317
327
|
end
|
318
328
|
|
329
|
+
# @see ModernTreasury::Models::ReturnObject#corrections
|
330
|
+
class Corrections < ModernTreasury::Internal::Type::BaseModel
|
331
|
+
# @!attribute account_number
|
332
|
+
# The updated account number that should replace the one originally used on the
|
333
|
+
# outgoing payment.
|
334
|
+
#
|
335
|
+
# @return [String, nil]
|
336
|
+
optional :account_number, String, nil?: true
|
337
|
+
|
338
|
+
# @!attribute company_id
|
339
|
+
# The updated company ID that should replace the one originally used on the
|
340
|
+
# outgoing payment.
|
341
|
+
#
|
342
|
+
# @return [String, nil]
|
343
|
+
optional :company_id, String, nil?: true
|
344
|
+
|
345
|
+
# @!attribute company_name
|
346
|
+
# The updated company name that should replace the one originally used on the
|
347
|
+
# outgoing payment.
|
348
|
+
#
|
349
|
+
# @return [String, nil]
|
350
|
+
optional :company_name, String, nil?: true
|
351
|
+
|
352
|
+
# @!attribute individual_identification_number
|
353
|
+
# The updated individual identification number that should replace the one
|
354
|
+
# originally used on the outgoing payment.
|
355
|
+
#
|
356
|
+
# @return [String, nil]
|
357
|
+
optional :individual_identification_number, String, nil?: true
|
358
|
+
|
359
|
+
# @!attribute routing_number
|
360
|
+
# The updated routing number that should replace the one originally used on the
|
361
|
+
# outgoing payment.
|
362
|
+
#
|
363
|
+
# @return [String, nil]
|
364
|
+
optional :routing_number, String, nil?: true
|
365
|
+
|
366
|
+
# @!attribute transaction_code
|
367
|
+
# The updated account type code that should replace the one originally used on the
|
368
|
+
# outgoing payment.
|
369
|
+
#
|
370
|
+
# @return [String, nil]
|
371
|
+
optional :transaction_code, String, nil?: true
|
372
|
+
|
373
|
+
# @!method initialize(account_number: nil, company_id: nil, company_name: nil, individual_identification_number: nil, routing_number: nil, transaction_code: nil)
|
374
|
+
# Some parameter documentations has been truncated, see
|
375
|
+
# {ModernTreasury::Models::ReturnObject::Corrections} for more details.
|
376
|
+
#
|
377
|
+
# Only relevant for ACH NOC returns. This is an object containing all of the new
|
378
|
+
# and corrected information provided by the bank that was previously incorrect on
|
379
|
+
# the original outgoing payment.
|
380
|
+
#
|
381
|
+
# @param account_number [String, nil] The updated account number that should replace the one originally used on the ou
|
382
|
+
#
|
383
|
+
# @param company_id [String, nil] The updated company ID that should replace the one originally used on the outgoi
|
384
|
+
#
|
385
|
+
# @param company_name [String, nil] The updated company name that should replace the one originally used on the outg
|
386
|
+
#
|
387
|
+
# @param individual_identification_number [String, nil] The updated individual identification number that should replace the one origina
|
388
|
+
#
|
389
|
+
# @param routing_number [String, nil] The updated routing number that should replace the one originally used on the ou
|
390
|
+
#
|
391
|
+
# @param transaction_code [String, nil] The updated account type code that should replace the one originally used on the
|
392
|
+
end
|
393
|
+
|
319
394
|
class ReferenceNumber < ModernTreasury::Internal::Type::BaseModel
|
320
395
|
# @!attribute id
|
321
396
|
#
|
@@ -400,13 +475,14 @@ module ModernTreasury
|
|
400
475
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
401
476
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
402
477
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
478
|
+
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
479
|
+
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
403
480
|
CROSS_RIVER_PAYMENT_ID = :cross_river_payment_id
|
404
481
|
CROSS_RIVER_SERVICE_MESSAGE = :cross_river_service_message
|
405
482
|
CROSS_RIVER_TRANSACTION_ID = :cross_river_transaction_id
|
406
483
|
CURRENCYCLOUD_CONVERSION_ID = :currencycloud_conversion_id
|
407
484
|
CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
|
408
485
|
DC_BANK_TRANSACTION_ID = :dc_bank_transaction_id
|
409
|
-
DWOLLA_TRANSACTION_ID = :dwolla_transaction_id
|
410
486
|
EFT_TRACE_NUMBER = :eft_trace_number
|
411
487
|
EVOLVE_TRANSACTION_ID = :evolve_transaction_id
|
412
488
|
FEDWIRE_IMAD = :fedwire_imad
|
@@ -417,6 +493,8 @@ module ModernTreasury
|
|
417
493
|
GOLDMAN_SACHS_PAYMENT_REQUEST_ID = :goldman_sachs_payment_request_id
|
418
494
|
GOLDMAN_SACHS_REQUEST_ID = :goldman_sachs_request_id
|
419
495
|
GOLDMAN_SACHS_UNIQUE_PAYMENT_ID = :goldman_sachs_unique_payment_id
|
496
|
+
HIFI_OFFRAMP_ID = :hifi_offramp_id
|
497
|
+
HIFI_TRANSFER_ID = :hifi_transfer_id
|
420
498
|
INTERAC_MESSAGE_ID = :interac_message_id
|
421
499
|
JPMC_CCN = :jpmc_ccn
|
422
500
|
JPMC_CLEARING_SYSTEM_REFERENCE = :jpmc_clearing_system_reference
|
@@ -249,6 +249,7 @@ module ModernTreasury
|
|
249
249
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
250
250
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
251
251
|
ID_SKNBI_CODE = :id_sknbi_code
|
252
|
+
IL_BANK_CODE = :il_bank_code
|
252
253
|
IN_IFSC = :in_ifsc
|
253
254
|
JP_ZENGIN_CODE = :jp_zengin_code
|
254
255
|
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
@@ -73,6 +73,7 @@ module ModernTreasury
|
|
73
73
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
74
74
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
75
75
|
ID_SKNBI_CODE = :id_sknbi_code
|
76
|
+
IL_BANK_CODE = :il_bank_code
|
76
77
|
IN_IFSC = :in_ifsc
|
77
78
|
JP_ZENGIN_CODE = :jp_zengin_code
|
78
79
|
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
@@ -68,6 +68,12 @@ module ModernTreasury
|
|
68
68
|
# @return [Symbol, ModernTreasury::Models::TransactionCreateParams::Type, nil]
|
69
69
|
optional :type, enum: -> { ModernTreasury::TransactionCreateParams::Type }, nil?: true
|
70
70
|
|
71
|
+
# @!attribute vendor_customer_id
|
72
|
+
# An identifier given to this transaction by the bank, often `null`.
|
73
|
+
#
|
74
|
+
# @return [String, nil]
|
75
|
+
optional :vendor_customer_id, String, nil?: true
|
76
|
+
|
71
77
|
# @!attribute vendor_description
|
72
78
|
# The transaction detail text that often appears in on your bank statement and in
|
73
79
|
# your banking portal.
|
@@ -75,7 +81,7 @@ module ModernTreasury
|
|
75
81
|
# @return [String, nil]
|
76
82
|
optional :vendor_description, String, nil?: true
|
77
83
|
|
78
|
-
# @!method initialize(amount:, as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, metadata: nil, posted: nil, type: nil, vendor_description: nil, request_options: {})
|
84
|
+
# @!method initialize(amount:, as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, metadata: nil, posted: nil, type: nil, vendor_customer_id: nil, vendor_description: nil, request_options: {})
|
79
85
|
# Some parameter documentations has been truncated, see
|
80
86
|
# {ModernTreasury::Models::TransactionCreateParams} for more details.
|
81
87
|
#
|
@@ -97,6 +103,8 @@ module ModernTreasury
|
|
97
103
|
#
|
98
104
|
# @param type [Symbol, ModernTreasury::Models::TransactionCreateParams::Type, nil] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
|
99
105
|
#
|
106
|
+
# @param vendor_customer_id [String, nil] An identifier given to this transaction by the bank, often `null`.
|
107
|
+
#
|
100
108
|
# @param vendor_description [String, nil] The transaction detail text that often appears in on your bank statement and in
|
101
109
|
#
|
102
110
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
@@ -68,6 +68,12 @@ module ModernTreasury
|
|
68
68
|
# @return [Boolean]
|
69
69
|
required :reconcilable, ModernTreasury::Internal::Type::Boolean
|
70
70
|
|
71
|
+
# @!attribute reconciliation_group_id
|
72
|
+
# The ID of the reconciliation group this line item belongs to, otherwise `null`.
|
73
|
+
#
|
74
|
+
# @return [String, nil]
|
75
|
+
required :reconciliation_group_id, String, nil?: true
|
76
|
+
|
71
77
|
# @!attribute transactable_id
|
72
78
|
# If a matching object exists in Modern Treasury, the ID will be populated here,
|
73
79
|
# otherwise `null`.
|
@@ -102,7 +108,7 @@ module ModernTreasury
|
|
102
108
|
# @return [Time]
|
103
109
|
required :updated_at, Time
|
104
110
|
|
105
|
-
# @!method initialize(id:, amount:, counterparty_id:, created_at:, description:, discarded_at:, expected_payment_id:, live_mode:, object:, reconcilable:, transactable_id:, transactable_type:, transaction_id:, type:, updated_at:)
|
111
|
+
# @!method initialize(id:, amount:, counterparty_id:, created_at:, description:, discarded_at:, expected_payment_id:, live_mode:, object:, reconcilable:, reconciliation_group_id:, transactable_id:, transactable_type:, transaction_id:, type:, updated_at:)
|
106
112
|
# Some parameter documentations has been truncated, see
|
107
113
|
# {ModernTreasury::Models::Transactions::TransactionLineItem} for more details.
|
108
114
|
#
|
@@ -126,6 +132,8 @@ module ModernTreasury
|
|
126
132
|
#
|
127
133
|
# @param reconcilable [Boolean] Describes whether this line item should be counted towards the corresponding tra
|
128
134
|
#
|
135
|
+
# @param reconciliation_group_id [String, nil] The ID of the reconciliation group this line item belongs to, otherwise `null`.
|
136
|
+
#
|
129
137
|
# @param transactable_id [String, nil] If a matching object exists in Modern Treasury, the ID will be populated here, o
|
130
138
|
#
|
131
139
|
# @param transactable_type [Symbol, ModernTreasury::Models::Transactions::TransactionLineItem::TransactableType, nil] If a matching object exists in Modern Treasury, the type will be populated here,
|
@@ -52,6 +52,7 @@ module ModernTreasury
|
|
52
52
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
53
53
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
54
54
|
ID_SKNBI_CODE = :id_sknbi_code
|
55
|
+
IL_BANK_CODE = :il_bank_code
|
55
56
|
IN_IFSC = :in_ifsc
|
56
57
|
JP_ZENGIN_CODE = :jp_zengin_code
|
57
58
|
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
@@ -326,6 +326,7 @@ module ModernTreasury
|
|
326
326
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
327
327
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
328
328
|
ID_SKNBI_CODE = :id_sknbi_code
|
329
|
+
IL_BANK_CODE = :il_bank_code
|
329
330
|
IN_IFSC = :in_ifsc
|
330
331
|
JP_ZENGIN_CODE = :jp_zengin_code
|
331
332
|
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
@@ -209,12 +209,6 @@ module ModernTreasury
|
|
209
209
|
|
210
210
|
Ledger = ModernTreasury::Models::Ledger
|
211
211
|
|
212
|
-
LedgerableEvent = ModernTreasury::Models::LedgerableEvent
|
213
|
-
|
214
|
-
LedgerableEventCreateParams = ModernTreasury::Models::LedgerableEventCreateParams
|
215
|
-
|
216
|
-
LedgerableEventRetrieveParams = ModernTreasury::Models::LedgerableEventRetrieveParams
|
217
|
-
|
218
212
|
LedgerAccount = ModernTreasury::Models::LedgerAccount
|
219
213
|
|
220
214
|
LedgerAccountBalanceMonitor = ModernTreasury::Models::LedgerAccountBalanceMonitor
|
@@ -292,18 +286,6 @@ module ModernTreasury
|
|
292
286
|
|
293
287
|
LedgerEntryUpdateParams = ModernTreasury::Models::LedgerEntryUpdateParams
|
294
288
|
|
295
|
-
LedgerEventHandler = ModernTreasury::Models::LedgerEventHandler
|
296
|
-
|
297
|
-
LedgerEventHandlerCreateParams = ModernTreasury::Models::LedgerEventHandlerCreateParams
|
298
|
-
|
299
|
-
LedgerEventHandlerDeleteParams = ModernTreasury::Models::LedgerEventHandlerDeleteParams
|
300
|
-
|
301
|
-
LedgerEventHandlerListParams = ModernTreasury::Models::LedgerEventHandlerListParams
|
302
|
-
|
303
|
-
LedgerEventHandlerRetrieveParams = ModernTreasury::Models::LedgerEventHandlerRetrieveParams
|
304
|
-
|
305
|
-
LedgerEventHandlerVariable = ModernTreasury::Models::LedgerEventHandlerVariable
|
306
|
-
|
307
289
|
LedgerListParams = ModernTreasury::Models::LedgerListParams
|
308
290
|
|
309
291
|
LedgerRetrieveParams = ModernTreasury::Models::LedgerRetrieveParams
|
@@ -14,7 +14,7 @@ module ModernTreasury
|
|
14
14
|
#
|
15
15
|
# @param resource_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
16
16
|
#
|
17
|
-
# @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
|
17
|
+
# @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
|
18
18
|
#
|
19
19
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
20
20
|
#
|
@@ -46,7 +46,7 @@ module ModernTreasury
|
|
46
46
|
#
|
47
47
|
# @overload retrieve(id, internal_account_id:, request_options: {})
|
48
48
|
#
|
49
|
-
# @param id [String] Either the unique identifier of the balance report or latest for the latest
|
49
|
+
# @param id [String, Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportRetrieveParams::ID] Either the unique identifier of the balance report or 'latest' for the latest ba
|
50
50
|
#
|
51
51
|
# @param internal_account_id [String]
|
52
52
|
#
|
@@ -112,7 +112,7 @@ module ModernTreasury
|
|
112
112
|
#
|
113
113
|
# @overload delete(id, internal_account_id:, request_options: {})
|
114
114
|
#
|
115
|
-
# @param id [String] Either the unique identifier of the balance report or latest for the latest
|
115
|
+
# @param id [String] Either the unique identifier of the balance report or 'latest' for the latest ba
|
116
116
|
#
|
117
117
|
# @param internal_account_id [String]
|
118
118
|
#
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# create internal account
|
13
13
|
#
|
14
|
-
# @overload create(connection_id:, currency:, name:, party_name:, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
14
|
+
# @overload create(connection_id:, currency:, name:, party_name:, account_capabilities: nil, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
15
15
|
#
|
16
16
|
# @param connection_id [String] The identifier of the financial institution the account belongs to.
|
17
17
|
#
|
@@ -21,6 +21,8 @@ module ModernTreasury
|
|
21
21
|
#
|
22
22
|
# @param party_name [String] The legal name of the entity which owns the account.
|
23
23
|
#
|
24
|
+
# @param account_capabilities [Array<ModernTreasury::Models::InternalAccountCreateParams::AccountCapability>] An array of AccountCapability objects that list the originating abilities of the
|
25
|
+
#
|
24
26
|
# @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
|
25
27
|
#
|
26
28
|
# @param counterparty_id [String] The Counterparty associated to this account.
|
@@ -105,7 +105,7 @@ module ModernTreasury
|
|
105
105
|
#
|
106
106
|
# Get a list of ledger account categories.
|
107
107
|
#
|
108
|
-
# @overload list(id: nil, after_cursor: nil, balances: nil, currency: nil, ledger_account_id: nil, ledger_id: nil, metadata: nil, name: nil, parent_ledger_account_category_id: nil, per_page: nil, request_options: {})
|
108
|
+
# @overload list(id: nil, after_cursor: nil, balances: nil, currency: nil, external_id: nil, ledger_account_id: nil, ledger_id: nil, metadata: nil, name: nil, parent_ledger_account_category_id: nil, per_page: nil, request_options: {})
|
109
109
|
#
|
110
110
|
# @param id [Array<String>] If you have specific IDs to retrieve in bulk, you can pass them as query paramet
|
111
111
|
#
|
@@ -115,6 +115,8 @@ module ModernTreasury
|
|
115
115
|
#
|
116
116
|
# @param currency [String]
|
117
117
|
#
|
118
|
+
# @param external_id [String]
|
119
|
+
#
|
118
120
|
# @param ledger_account_id [String] Query categories which contain a ledger account directly or through child catego
|
119
121
|
#
|
120
122
|
# @param ledger_id [String]
|
@@ -109,7 +109,7 @@ module ModernTreasury
|
|
109
109
|
#
|
110
110
|
# Get a list of ledger accounts.
|
111
111
|
#
|
112
|
-
# @overload list(id: nil, after_cursor: nil, available_balance_amount: nil, balances: nil, created_at: nil, currency: nil, ledger_account_category_id: nil, ledger_id: nil, metadata: nil, name: nil, pending_balance_amount: nil, per_page: nil, posted_balance_amount: nil, updated_at: nil, request_options: {})
|
112
|
+
# @overload list(id: nil, after_cursor: nil, available_balance_amount: nil, balances: nil, created_at: nil, currency: nil, external_id: nil, ledger_account_category_id: nil, ledger_id: nil, metadata: nil, name: nil, normal_balance: nil, pending_balance_amount: nil, per_page: nil, posted_balance_amount: nil, updated_at: nil, request_options: {})
|
113
113
|
#
|
114
114
|
# @param id [Array<String>] If you have specific IDs to retrieve in bulk, you can pass them as query paramet
|
115
115
|
#
|
@@ -123,6 +123,8 @@ module ModernTreasury
|
|
123
123
|
#
|
124
124
|
# @param currency [String]
|
125
125
|
#
|
126
|
+
# @param external_id [String]
|
127
|
+
#
|
126
128
|
# @param ledger_account_category_id [String]
|
127
129
|
#
|
128
130
|
# @param ledger_id [String]
|
@@ -131,6 +133,8 @@ module ModernTreasury
|
|
131
133
|
#
|
132
134
|
# @param name [Array<String>] If you have specific names to retrieve in bulk, you can pass them as query param
|
133
135
|
#
|
136
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
|
137
|
+
#
|
134
138
|
# @param pending_balance_amount [ModernTreasury::Models::LedgerAccountListParams::PendingBalanceAmount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to fi
|
135
139
|
#
|
136
140
|
# @param per_page [Integer]
|
@@ -3,117 +3,6 @@
|
|
3
3
|
module ModernTreasury
|
4
4
|
module Resources
|
5
5
|
class LedgerEventHandlers
|
6
|
-
# Some parameter documentations has been truncated, see
|
7
|
-
# {ModernTreasury::Models::LedgerEventHandlerCreateParams} for more details.
|
8
|
-
#
|
9
|
-
# create ledger_event_handler
|
10
|
-
#
|
11
|
-
# @overload create(ledger_transaction_template:, name:, conditions: nil, description: nil, ledger_id: nil, metadata: nil, variables: nil, request_options: {})
|
12
|
-
#
|
13
|
-
# @param ledger_transaction_template [ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
14
|
-
#
|
15
|
-
# @param name [String] Name of the ledger event handler.
|
16
|
-
#
|
17
|
-
# @param conditions [ModernTreasury::Models::LedgerEventHandlerCreateParams::Conditions, nil]
|
18
|
-
#
|
19
|
-
# @param description [String, nil] An optional description.
|
20
|
-
#
|
21
|
-
# @param ledger_id [String] The id of the ledger that this account belongs to.
|
22
|
-
#
|
23
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
24
|
-
#
|
25
|
-
# @param variables [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
26
|
-
#
|
27
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
28
|
-
#
|
29
|
-
# @return [ModernTreasury::Models::LedgerEventHandler]
|
30
|
-
#
|
31
|
-
# @see ModernTreasury::Models::LedgerEventHandlerCreateParams
|
32
|
-
def create(params)
|
33
|
-
parsed, options = ModernTreasury::LedgerEventHandlerCreateParams.dump_request(params)
|
34
|
-
@client.request(
|
35
|
-
method: :post,
|
36
|
-
path: "api/ledger_event_handlers",
|
37
|
-
body: parsed,
|
38
|
-
model: ModernTreasury::LedgerEventHandler,
|
39
|
-
options: options
|
40
|
-
)
|
41
|
-
end
|
42
|
-
|
43
|
-
# Get details on a single ledger event handler.
|
44
|
-
#
|
45
|
-
# @overload retrieve(id, request_options: {})
|
46
|
-
#
|
47
|
-
# @param id [String] id
|
48
|
-
#
|
49
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
50
|
-
#
|
51
|
-
# @return [ModernTreasury::Models::LedgerEventHandler]
|
52
|
-
#
|
53
|
-
# @see ModernTreasury::Models::LedgerEventHandlerRetrieveParams
|
54
|
-
def retrieve(id, params = {})
|
55
|
-
@client.request(
|
56
|
-
method: :get,
|
57
|
-
path: ["api/ledger_event_handlers/%1$s", id],
|
58
|
-
model: ModernTreasury::LedgerEventHandler,
|
59
|
-
options: params[:request_options]
|
60
|
-
)
|
61
|
-
end
|
62
|
-
|
63
|
-
# Some parameter documentations has been truncated, see
|
64
|
-
# {ModernTreasury::Models::LedgerEventHandlerListParams} for more details.
|
65
|
-
#
|
66
|
-
# Get a list of ledger event handlers.
|
67
|
-
#
|
68
|
-
# @overload list(after_cursor: nil, created_at: nil, metadata: nil, name: nil, per_page: nil, request_options: {})
|
69
|
-
#
|
70
|
-
# @param after_cursor [String, nil]
|
71
|
-
#
|
72
|
-
# @param created_at [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the pos
|
73
|
-
#
|
74
|
-
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
75
|
-
#
|
76
|
-
# @param name [String]
|
77
|
-
#
|
78
|
-
# @param per_page [Integer]
|
79
|
-
#
|
80
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
81
|
-
#
|
82
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::LedgerEventHandler>]
|
83
|
-
#
|
84
|
-
# @see ModernTreasury::Models::LedgerEventHandlerListParams
|
85
|
-
def list(params = {})
|
86
|
-
parsed, options = ModernTreasury::LedgerEventHandlerListParams.dump_request(params)
|
87
|
-
@client.request(
|
88
|
-
method: :get,
|
89
|
-
path: "api/ledger_event_handlers",
|
90
|
-
query: parsed,
|
91
|
-
page: ModernTreasury::Internal::Page,
|
92
|
-
model: ModernTreasury::LedgerEventHandler,
|
93
|
-
options: options
|
94
|
-
)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Archive a ledger event handler.
|
98
|
-
#
|
99
|
-
# @overload delete(id, request_options: {})
|
100
|
-
#
|
101
|
-
# @param id [String] id
|
102
|
-
#
|
103
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
104
|
-
#
|
105
|
-
# @return [ModernTreasury::Models::LedgerEventHandler]
|
106
|
-
#
|
107
|
-
# @see ModernTreasury::Models::LedgerEventHandlerDeleteParams
|
108
|
-
def delete(id, params = {})
|
109
|
-
@client.request(
|
110
|
-
method: :delete,
|
111
|
-
path: ["api/ledger_event_handlers/%1$s", id],
|
112
|
-
model: ModernTreasury::LedgerEventHandler,
|
113
|
-
options: params[:request_options]
|
114
|
-
)
|
115
|
-
end
|
116
|
-
|
117
6
|
# @api private
|
118
7
|
#
|
119
8
|
# @param client [ModernTreasury::Client]
|