modern_treasury 0.1.0.pre.alpha.20 → 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 +42 -0
- data/README.md +3 -3
- 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 +16 -5
- 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 +19 -9
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/internal/util.rb +13 -10
- 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 +4 -22
- 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 +3 -10
- 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/internal/util.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
@@ -61,9 +61,9 @@ module ModernTreasury
|
|
61
61
|
optional :accounting_ledger_class_id, String, nil?: true
|
62
62
|
|
63
63
|
# @!attribute charge_bearer
|
64
|
-
# The party that will pay the fees for the payment order.
|
65
|
-
#
|
66
|
-
#
|
64
|
+
# The party that will pay the fees for the payment order. See
|
65
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
66
|
+
# differences between the options.
|
67
67
|
#
|
68
68
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil]
|
69
69
|
optional :charge_bearer,
|
@@ -297,7 +297,7 @@ module ModernTreasury
|
|
297
297
|
#
|
298
298
|
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
299
299
|
#
|
300
|
-
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order.
|
300
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
301
301
|
#
|
302
302
|
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
303
303
|
#
|
@@ -395,9 +395,9 @@ module ModernTreasury
|
|
395
395
|
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
396
396
|
end
|
397
397
|
|
398
|
-
# The party that will pay the fees for the payment order.
|
399
|
-
#
|
400
|
-
#
|
398
|
+
# The party that will pay the fees for the payment order. See
|
399
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
400
|
+
# differences between the options.
|
401
401
|
module ChargeBearer
|
402
402
|
extend ModernTreasury::Internal::Type::Enum
|
403
403
|
|
@@ -1139,6 +1139,7 @@ module ModernTreasury
|
|
1139
1139
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
1140
1140
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
1141
1141
|
ID_SKNBI_CODE = :id_sknbi_code
|
1142
|
+
IL_BANK_CODE = :il_bank_code
|
1142
1143
|
IN_IFSC = :in_ifsc
|
1143
1144
|
JP_ZENGIN_CODE = :jp_zengin_code
|
1144
1145
|
MY_BRANCH_CODE = :my_branch_code
|
@@ -61,9 +61,9 @@ module ModernTreasury
|
|
61
61
|
optional :accounting_ledger_class_id, String, nil?: true
|
62
62
|
|
63
63
|
# @!attribute charge_bearer
|
64
|
-
# The party that will pay the fees for the payment order.
|
65
|
-
#
|
66
|
-
#
|
64
|
+
# The party that will pay the fees for the payment order. See
|
65
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
66
|
+
# differences between the options.
|
67
67
|
#
|
68
68
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil]
|
69
69
|
optional :charge_bearer, enum: -> { ModernTreasury::PaymentOrderCreateParams::ChargeBearer }, nil?: true
|
@@ -305,7 +305,7 @@ module ModernTreasury
|
|
305
305
|
#
|
306
306
|
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
307
307
|
#
|
308
|
-
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order.
|
308
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
309
309
|
#
|
310
310
|
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
311
311
|
#
|
@@ -404,9 +404,9 @@ module ModernTreasury
|
|
404
404
|
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
405
405
|
end
|
406
406
|
|
407
|
-
# The party that will pay the fees for the payment order.
|
408
|
-
#
|
409
|
-
#
|
407
|
+
# The party that will pay the fees for the payment order. See
|
408
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
409
|
+
# differences between the options.
|
410
410
|
module ChargeBearer
|
411
411
|
extend ModernTreasury::Internal::Type::Enum
|
412
412
|
|
@@ -1203,6 +1203,7 @@ module ModernTreasury
|
|
1203
1203
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
1204
1204
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
1205
1205
|
ID_SKNBI_CODE = :id_sknbi_code
|
1206
|
+
IL_BANK_CODE = :il_bank_code
|
1206
1207
|
IN_IFSC = :in_ifsc
|
1207
1208
|
JP_ZENGIN_CODE = :jp_zengin_code
|
1208
1209
|
MY_BRANCH_CODE = :my_branch_code
|
@@ -46,6 +46,11 @@ module ModernTreasury
|
|
46
46
|
# @return [Date, nil]
|
47
47
|
optional :effective_date_start, Date
|
48
48
|
|
49
|
+
# @!attribute external_id
|
50
|
+
#
|
51
|
+
# @return [String, nil]
|
52
|
+
optional :external_id, String
|
53
|
+
|
49
54
|
# @!attribute metadata
|
50
55
|
# For example, if you want to query for records with metadata key `Type` and value
|
51
56
|
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
@@ -106,7 +111,7 @@ module ModernTreasury
|
|
106
111
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderListParams::Type, nil]
|
107
112
|
optional :type, enum: -> { ModernTreasury::PaymentOrderListParams::Type }
|
108
113
|
|
109
|
-
# @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_end: nil, created_at_start: nil, direction: nil, effective_date_end: nil, effective_date_start: nil, metadata: nil, originating_account_id: nil, per_page: nil, priority: nil, process_after_end: nil, process_after_start: nil, reference_number: nil, status: nil, transaction_id: nil, type: nil, request_options: {})
|
114
|
+
# @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_end: nil, created_at_start: nil, direction: nil, effective_date_end: nil, effective_date_start: nil, external_id: nil, metadata: nil, originating_account_id: nil, per_page: nil, priority: nil, process_after_end: nil, process_after_start: nil, reference_number: nil, status: nil, transaction_id: nil, type: nil, request_options: {})
|
110
115
|
# Some parameter documentations has been truncated, see
|
111
116
|
# {ModernTreasury::Models::PaymentOrderListParams} for more details.
|
112
117
|
#
|
@@ -124,6 +129,8 @@ module ModernTreasury
|
|
124
129
|
#
|
125
130
|
# @param effective_date_start [Date] An inclusive lower bound for searching effective_date
|
126
131
|
#
|
132
|
+
# @param external_id [String]
|
133
|
+
#
|
127
134
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
128
135
|
#
|
129
136
|
# @param originating_account_id [String]
|
@@ -173,6 +180,7 @@ module ModernTreasury
|
|
173
180
|
RETURNED = :returned
|
174
181
|
REVERSED = :reversed
|
175
182
|
SENT = :sent
|
183
|
+
STOPPED = :stopped
|
176
184
|
|
177
185
|
# @!method self.values
|
178
186
|
# @return [Array<Symbol>]
|
@@ -38,9 +38,9 @@ module ModernTreasury
|
|
38
38
|
optional :amount, Integer
|
39
39
|
|
40
40
|
# @!attribute charge_bearer
|
41
|
-
# The party that will pay the fees for the payment order.
|
42
|
-
#
|
43
|
-
#
|
41
|
+
# The party that will pay the fees for the payment order. See
|
42
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
43
|
+
# differences between the options.
|
44
44
|
#
|
45
45
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil]
|
46
46
|
optional :charge_bearer, enum: -> { ModernTreasury::PaymentOrderUpdateParams::ChargeBearer }, nil?: true
|
@@ -286,7 +286,7 @@ module ModernTreasury
|
|
286
286
|
#
|
287
287
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
288
288
|
#
|
289
|
-
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] The party that will pay the fees for the payment order.
|
289
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
|
290
290
|
#
|
291
291
|
# @param counterparty_id [String, nil] Required when receiving_account_id is passed the ID of an external account.
|
292
292
|
#
|
@@ -373,9 +373,9 @@ module ModernTreasury
|
|
373
373
|
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
374
374
|
end
|
375
375
|
|
376
|
-
# The party that will pay the fees for the payment order.
|
377
|
-
#
|
378
|
-
#
|
376
|
+
# The party that will pay the fees for the payment order. See
|
377
|
+
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
378
|
+
# differences between the options.
|
379
379
|
module ChargeBearer
|
380
380
|
extend ModernTreasury::Internal::Type::Enum
|
381
381
|
|
@@ -905,6 +905,7 @@ module ModernTreasury
|
|
905
905
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
906
906
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
907
907
|
ID_SKNBI_CODE = :id_sknbi_code
|
908
|
+
IL_BANK_CODE = :il_bank_code
|
908
909
|
IN_IFSC = :in_ifsc
|
909
910
|
JP_ZENGIN_CODE = :jp_zengin_code
|
910
911
|
MY_BRANCH_CODE = :my_branch_code
|
@@ -982,6 +983,7 @@ module ModernTreasury
|
|
982
983
|
RETURNED = :returned
|
983
984
|
REVERSED = :reversed
|
984
985
|
SENT = :sent
|
986
|
+
STOPPED = :stopped
|
985
987
|
|
986
988
|
# @!method self.values
|
987
989
|
# @return [Array<Symbol>]
|
@@ -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
|
@@ -14,16 +14,16 @@ module ModernTreasury
|
|
14
14
|
mod.constants.each do |name|
|
15
15
|
case mod.const_get(name)
|
16
16
|
in true | false
|
17
|
-
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T
|
17
|
+
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T::Boolean } }
|
18
18
|
mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
|
19
19
|
in Integer
|
20
|
-
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias {
|
20
|
+
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { Integer } }
|
21
21
|
mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
|
22
22
|
in Float
|
23
|
-
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias {
|
23
|
+
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { Float } }
|
24
24
|
mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
|
25
25
|
in Symbol
|
26
|
-
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias {
|
26
|
+
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { Symbol } }
|
27
27
|
mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
|
28
28
|
else
|
29
29
|
end
|
@@ -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.
|