modern_treasury 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -0
- data/README.md +9 -9
- data/lib/modern_treasury/errors.rb +25 -11
- data/lib/modern_treasury/file_part.rb +10 -7
- data/lib/modern_treasury/internal/page.rb +4 -4
- data/lib/modern_treasury/internal/transport/base_client.rb +11 -7
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +7 -10
- data/lib/modern_treasury/internal/type/base_page.rb +1 -1
- data/lib/modern_treasury/internal/type/file_input.rb +7 -4
- data/lib/modern_treasury/internal/util.rb +8 -7
- data/lib/modern_treasury/models/bulk_request_create_params.rb +49 -2
- data/lib/modern_treasury/models/counterparty.rb +5 -18
- data/lib/modern_treasury/models/counterparty_create_params.rb +5 -16
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -1
- data/lib/modern_treasury/models/internal_account.rb +25 -1
- data/lib/modern_treasury/models/internal_account_list_params.rb +23 -1
- data/lib/modern_treasury/models/invoice_list_params.rb +17 -1
- data/lib/modern_treasury/models/payment_order.rb +175 -4
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +22 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +22 -1
- data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +23 -1
- data/lib/modern_treasury/models/payment_orders/reversal.rb +24 -1
- data/lib/modern_treasury/models/payment_reference.rb +1 -3
- data/lib/modern_treasury/models/return_create_params.rb +21 -1
- data/lib/modern_treasury/models/return_object.rb +25 -4
- data/lib/modern_treasury/models/transaction.rb +1 -2
- data/lib/modern_treasury/resources/counterparties.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +5 -1
- data/lib/modern_treasury/resources/payment_orders.rb +9 -3
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/errors.rbi +29 -2
- data/rbi/modern_treasury/file_part.rbi +1 -1
- data/rbi/modern_treasury/internal/transport/base_client.rbi +4 -5
- data/rbi/modern_treasury/internal/type/base_page.rbi +1 -1
- data/rbi/modern_treasury/internal/util.rbi +1 -1
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +133 -0
- data/rbi/modern_treasury/models/counterparty.rbi +3 -49
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +4 -62
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account.rbi +52 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +66 -0
- data/rbi/modern_treasury/models/invoice_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/payment_order.rbi +305 -15
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +64 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +64 -0
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +69 -0
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +54 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -15
- data/rbi/modern_treasury/models/return_create_params.rbi +64 -0
- data/rbi/modern_treasury/models/return_object.rbi +58 -15
- data/rbi/modern_treasury/models/transaction.rbi +5 -10
- data/rbi/modern_treasury/resources/counterparties.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +6 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +12 -0
- data/rbi/modern_treasury/resources/returns.rbi +4 -0
- data/sig/modern_treasury/errors.rbs +7 -0
- data/sig/modern_treasury/file_part.rbs +1 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +46 -0
- data/sig/modern_treasury/models/counterparty.rbs +4 -18
- data/sig/modern_treasury/models/counterparty_create_params.rbs +5 -21
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +18 -0
- data/sig/modern_treasury/models/internal_account.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +25 -1
- data/sig/modern_treasury/models/invoice_list_params.rbs +14 -0
- data/sig/modern_treasury/models/payment_order.rbs +132 -6
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +22 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +24 -0
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +18 -0
- data/sig/modern_treasury/models/payment_reference.rbs +2 -6
- data/sig/modern_treasury/models/return_create_params.rbs +23 -1
- data/sig/modern_treasury/models/return_object.rbs +22 -6
- data/sig/modern_treasury/models/transaction.rbs +2 -4
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- metadata +2 -2
|
@@ -52,6 +52,13 @@ module ModernTreasury
|
|
|
52
52
|
# @return [Symbol, ModernTreasury::Models::PaymentOrders::Reversal::Reason]
|
|
53
53
|
required :reason, enum: -> { ModernTreasury::PaymentOrders::Reversal::Reason }
|
|
54
54
|
|
|
55
|
+
# @!attribute reconciliation_status
|
|
56
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
57
|
+
#
|
|
58
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrders::Reversal::ReconciliationStatus]
|
|
59
|
+
required :reconciliation_status,
|
|
60
|
+
enum: -> { ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus }
|
|
61
|
+
|
|
55
62
|
# @!attribute status
|
|
56
63
|
# The current status of the reversal.
|
|
57
64
|
#
|
|
@@ -68,7 +75,7 @@ module ModernTreasury
|
|
|
68
75
|
# @return [Time]
|
|
69
76
|
required :updated_at, Time
|
|
70
77
|
|
|
71
|
-
# @!method initialize(id:, created_at:, ledger_transaction_id:, live_mode:, metadata:, object:, payment_order_id:, reason:, status:, transaction_ids:, updated_at:)
|
|
78
|
+
# @!method initialize(id:, created_at:, ledger_transaction_id:, live_mode:, metadata:, object:, payment_order_id:, reason:, reconciliation_status:, status:, transaction_ids:, updated_at:)
|
|
72
79
|
# Some parameter documentations has been truncated, see
|
|
73
80
|
# {ModernTreasury::Models::PaymentOrders::Reversal} for more details.
|
|
74
81
|
#
|
|
@@ -88,6 +95,8 @@ module ModernTreasury
|
|
|
88
95
|
#
|
|
89
96
|
# @param reason [Symbol, ModernTreasury::Models::PaymentOrders::Reversal::Reason] The reason for the reversal.
|
|
90
97
|
#
|
|
98
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::PaymentOrders::Reversal::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
99
|
+
#
|
|
91
100
|
# @param status [Symbol, ModernTreasury::Models::PaymentOrders::Reversal::Status] The current status of the reversal.
|
|
92
101
|
#
|
|
93
102
|
# @param transaction_ids [Array<String, nil>]
|
|
@@ -110,6 +119,20 @@ module ModernTreasury
|
|
|
110
119
|
# @return [Array<Symbol>]
|
|
111
120
|
end
|
|
112
121
|
|
|
122
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
123
|
+
#
|
|
124
|
+
# @see ModernTreasury::Models::PaymentOrders::Reversal#reconciliation_status
|
|
125
|
+
module ReconciliationStatus
|
|
126
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
127
|
+
|
|
128
|
+
UNRECONCILED = :unreconciled
|
|
129
|
+
TENTATIVELY_RECONCILED = :tentatively_reconciled
|
|
130
|
+
RECONCILED = :reconciled
|
|
131
|
+
|
|
132
|
+
# @!method self.values
|
|
133
|
+
# @return [Array<Symbol>]
|
|
134
|
+
end
|
|
135
|
+
|
|
113
136
|
# The current status of the reversal.
|
|
114
137
|
#
|
|
115
138
|
# @see ModernTreasury::Models::PaymentOrders::Reversal#status
|
|
@@ -95,9 +95,6 @@ module ModernTreasury
|
|
|
95
95
|
BOFA_END_TO_END_ID = :bofa_end_to_end_id
|
|
96
96
|
BOFA_TRANSACTION_ID = :bofa_transaction_id
|
|
97
97
|
BRALE_TRANSFER_ID = :brale_transfer_id
|
|
98
|
-
BRIDGE_DESTINATION_TRANSACTION_HASH = :bridge_destination_transaction_hash
|
|
99
|
-
BRIDGE_SOURCE_TRANSACTION_HASH = :bridge_source_transaction_hash
|
|
100
|
-
BRIDGE_TRANSFER_ID = :bridge_transfer_id
|
|
101
98
|
CHECK_NUMBER = :check_number
|
|
102
99
|
CITIBANK_REFERENCE_NUMBER = :citibank_reference_number
|
|
103
100
|
CITIBANK_WORLDLINK_CLEARING_SYSTEM_REFERENCE_NUMBER =
|
|
@@ -142,6 +139,7 @@ module ModernTreasury
|
|
|
142
139
|
JPMC_PAYMENT_RETURNED_DATETIME = :jpmc_payment_returned_datetime
|
|
143
140
|
JPMC_TRANSACTION_REFERENCE_NUMBER = :jpmc_transaction_reference_number
|
|
144
141
|
LOB_CHECK_ID = :lob_check_id
|
|
142
|
+
MT_FOF_TRANSFER_ID = :mt_fof_transfer_id
|
|
145
143
|
OTHER = :other
|
|
146
144
|
PARTIAL_SWIFT_MIR = :partial_swift_mir
|
|
147
145
|
PNC_CLEARING_REFERENCE = :pnc_clearing_reference
|
|
@@ -61,7 +61,13 @@ module ModernTreasury
|
|
|
61
61
|
# @return [String, nil]
|
|
62
62
|
optional :reason, String, nil?: true
|
|
63
63
|
|
|
64
|
-
# @!
|
|
64
|
+
# @!attribute reconciliation_status
|
|
65
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, ModernTreasury::Models::ReturnCreateParams::ReconciliationStatus, nil]
|
|
68
|
+
optional :reconciliation_status, enum: -> { ModernTreasury::ReturnCreateParams::ReconciliationStatus }
|
|
69
|
+
|
|
70
|
+
# @!method initialize(returnable_id:, returnable_type:, additional_information: nil, code: nil, corrections: nil, data: nil, date_of_death: nil, reason: nil, reconciliation_status: nil, request_options: {})
|
|
65
71
|
# Some parameter documentations has been truncated, see
|
|
66
72
|
# {ModernTreasury::Models::ReturnCreateParams} for more details.
|
|
67
73
|
#
|
|
@@ -81,6 +87,8 @@ module ModernTreasury
|
|
|
81
87
|
#
|
|
82
88
|
# @param reason [String, nil] An optional description of the reason for the return. This is for internal usage
|
|
83
89
|
#
|
|
90
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::ReturnCreateParams::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
91
|
+
#
|
|
84
92
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
85
93
|
|
|
86
94
|
# The type of object being returned. Currently, this may only be
|
|
@@ -259,6 +267,18 @@ module ModernTreasury
|
|
|
259
267
|
#
|
|
260
268
|
# @param transaction_code [String, nil] The updated account type code that should replace the one originally used on the
|
|
261
269
|
end
|
|
270
|
+
|
|
271
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
272
|
+
module ReconciliationStatus
|
|
273
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
274
|
+
|
|
275
|
+
UNRECONCILED = :unreconciled
|
|
276
|
+
TENTATIVELY_RECONCILED = :tentatively_reconciled
|
|
277
|
+
RECONCILED = :reconciled
|
|
278
|
+
|
|
279
|
+
# @!method self.values
|
|
280
|
+
# @return [Array<Symbol>]
|
|
281
|
+
end
|
|
262
282
|
end
|
|
263
283
|
end
|
|
264
284
|
end
|
|
@@ -98,6 +98,12 @@ module ModernTreasury
|
|
|
98
98
|
# @return [String, nil]
|
|
99
99
|
required :reason, String, nil?: true
|
|
100
100
|
|
|
101
|
+
# @!attribute reconciliation_status
|
|
102
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
103
|
+
#
|
|
104
|
+
# @return [Symbol, ModernTreasury::Models::ReturnObject::ReconciliationStatus]
|
|
105
|
+
required :reconciliation_status, enum: -> { ModernTreasury::ReturnObject::ReconciliationStatus }
|
|
106
|
+
|
|
101
107
|
# @!attribute reference_numbers
|
|
102
108
|
# An array of Payment Reference objects.
|
|
103
109
|
#
|
|
@@ -166,7 +172,7 @@ module ModernTreasury
|
|
|
166
172
|
# @return [Object, nil]
|
|
167
173
|
optional :data, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
168
174
|
|
|
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)
|
|
175
|
+
# @!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:, reconciliation_status:, reference_numbers:, returnable_id:, returnable_type:, role:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:, additional_information: nil, data: nil)
|
|
170
176
|
# Some parameter documentations has been truncated, see
|
|
171
177
|
# {ModernTreasury::Models::ReturnObject} for more details.
|
|
172
178
|
#
|
|
@@ -200,6 +206,8 @@ module ModernTreasury
|
|
|
200
206
|
#
|
|
201
207
|
# @param reason [String, nil] Often the bank will provide an explanation for the return, which is a short huma
|
|
202
208
|
#
|
|
209
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::ReturnObject::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
210
|
+
#
|
|
203
211
|
# @param reference_numbers [Array<ModernTreasury::Models::ReturnObject::ReferenceNumber>] An array of Payment Reference objects.
|
|
204
212
|
#
|
|
205
213
|
# @param returnable_id [String, nil] The ID of the object being returned or `null`.
|
|
@@ -391,6 +399,20 @@ module ModernTreasury
|
|
|
391
399
|
# @param transaction_code [String, nil] The updated account type code that should replace the one originally used on the
|
|
392
400
|
end
|
|
393
401
|
|
|
402
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
403
|
+
#
|
|
404
|
+
# @see ModernTreasury::Models::ReturnObject#reconciliation_status
|
|
405
|
+
module ReconciliationStatus
|
|
406
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
407
|
+
|
|
408
|
+
UNRECONCILED = :unreconciled
|
|
409
|
+
TENTATIVELY_RECONCILED = :tentatively_reconciled
|
|
410
|
+
RECONCILED = :reconciled
|
|
411
|
+
|
|
412
|
+
# @!method self.values
|
|
413
|
+
# @return [Array<Symbol>]
|
|
414
|
+
end
|
|
415
|
+
|
|
394
416
|
class ReferenceNumber < ModernTreasury::Internal::Type::BaseModel
|
|
395
417
|
# @!attribute id
|
|
396
418
|
#
|
|
@@ -466,9 +488,6 @@ module ModernTreasury
|
|
|
466
488
|
BOFA_END_TO_END_ID = :bofa_end_to_end_id
|
|
467
489
|
BOFA_TRANSACTION_ID = :bofa_transaction_id
|
|
468
490
|
BRALE_TRANSFER_ID = :brale_transfer_id
|
|
469
|
-
BRIDGE_DESTINATION_TRANSACTION_HASH = :bridge_destination_transaction_hash
|
|
470
|
-
BRIDGE_SOURCE_TRANSACTION_HASH = :bridge_source_transaction_hash
|
|
471
|
-
BRIDGE_TRANSFER_ID = :bridge_transfer_id
|
|
472
491
|
CHECK_NUMBER = :check_number
|
|
473
492
|
CITIBANK_REFERENCE_NUMBER = :citibank_reference_number
|
|
474
493
|
CITIBANK_WORLDLINK_CLEARING_SYSTEM_REFERENCE_NUMBER =
|
|
@@ -513,6 +532,7 @@ module ModernTreasury
|
|
|
513
532
|
JPMC_PAYMENT_RETURNED_DATETIME = :jpmc_payment_returned_datetime
|
|
514
533
|
JPMC_TRANSACTION_REFERENCE_NUMBER = :jpmc_transaction_reference_number
|
|
515
534
|
LOB_CHECK_ID = :lob_check_id
|
|
535
|
+
MT_FOF_TRANSFER_ID = :mt_fof_transfer_id
|
|
516
536
|
OTHER = :other
|
|
517
537
|
PARTIAL_SWIFT_MIR = :partial_swift_mir
|
|
518
538
|
PNC_CLEARING_REFERENCE = :pnc_clearing_reference
|
|
@@ -611,6 +631,7 @@ module ModernTreasury
|
|
|
611
631
|
CHECK = :check
|
|
612
632
|
CROSS_BORDER = :cross_border
|
|
613
633
|
EFT = :eft
|
|
634
|
+
GB_FPS = :gb_fps
|
|
614
635
|
INTERAC = :interac
|
|
615
636
|
MANUAL = :manual
|
|
616
637
|
SEPA = :sepa
|
|
@@ -285,7 +285,6 @@ module ModernTreasury
|
|
|
285
285
|
BANKPROV = :bankprov
|
|
286
286
|
BNK_DEV = :bnk_dev
|
|
287
287
|
BRALE = :brale
|
|
288
|
-
BRIDGE = :bridge
|
|
289
288
|
CLEARTOUCH = :cleartouch
|
|
290
289
|
COLUMN = :column
|
|
291
290
|
CROSS_RIVER = :cross_river
|
|
@@ -298,9 +297,9 @@ module ModernTreasury
|
|
|
298
297
|
HIFI = :hifi
|
|
299
298
|
ISO20022 = :iso20022
|
|
300
299
|
JPMC = :jpmc
|
|
300
|
+
MT_FOF = :mt_fof
|
|
301
301
|
MX = :mx
|
|
302
302
|
PAYPAL = :paypal
|
|
303
|
-
PLAID = :plaid
|
|
304
303
|
PNC = :pnc
|
|
305
304
|
SIGNET = :signet
|
|
306
305
|
SILVERGATE = :silvergate
|
|
@@ -32,7 +32,7 @@ module ModernTreasury
|
|
|
32
32
|
#
|
|
33
33
|
# @param taxpayer_identifier [String] Body param: Either a valid SSN or EIN.
|
|
34
34
|
#
|
|
35
|
-
# @param verification_status [
|
|
35
|
+
# @param verification_status [String] Body param: The verification status of the counterparty.
|
|
36
36
|
#
|
|
37
37
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
38
|
#
|
|
@@ -111,7 +111,7 @@ module ModernTreasury
|
|
|
111
111
|
#
|
|
112
112
|
# list internal accounts
|
|
113
113
|
#
|
|
114
|
-
# @overload list(after_cursor: nil, counterparty_id: nil, currency: nil, legal_entity_id: nil, metadata: nil, payment_direction: nil, payment_type: nil, per_page: nil, request_options: {})
|
|
114
|
+
# @overload list(after_cursor: nil, counterparty_id: nil, currency: nil, legal_entity_id: nil, metadata: nil, payment_direction: nil, payment_type: nil, per_page: nil, status: nil, request_options: {})
|
|
115
115
|
#
|
|
116
116
|
# @param after_cursor [String, nil]
|
|
117
117
|
#
|
|
@@ -129,6 +129,8 @@ module ModernTreasury
|
|
|
129
129
|
#
|
|
130
130
|
# @param per_page [Integer]
|
|
131
131
|
#
|
|
132
|
+
# @param status [Symbol, ModernTreasury::Models::InternalAccountListParams::Status] Only return internal accounts with this status.
|
|
133
|
+
#
|
|
132
134
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
133
135
|
#
|
|
134
136
|
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::InternalAccount>]
|
|
@@ -179,12 +179,16 @@ module ModernTreasury
|
|
|
179
179
|
#
|
|
180
180
|
# list invoices
|
|
181
181
|
#
|
|
182
|
-
# @overload list(after_cursor: nil, counterparty_id: nil, due_date_end: nil, due_date_start: nil, expected_payment_id: nil, metadata: nil, number: nil, originating_account_id: nil, payment_order_id: nil, per_page: nil, status: nil, request_options: {})
|
|
182
|
+
# @overload list(after_cursor: nil, counterparty_id: nil, created_at_end: nil, created_at_start: nil, due_date_end: nil, due_date_start: nil, expected_payment_id: nil, metadata: nil, number: nil, originating_account_id: nil, payment_order_id: nil, per_page: nil, status: nil, request_options: {})
|
|
183
183
|
#
|
|
184
184
|
# @param after_cursor [String, nil]
|
|
185
185
|
#
|
|
186
186
|
# @param counterparty_id [String]
|
|
187
187
|
#
|
|
188
|
+
# @param created_at_end [Time] An inclusive upper bound for searching created_at
|
|
189
|
+
#
|
|
190
|
+
# @param created_at_start [Time] An inclusive lower bound for searching created_at
|
|
191
|
+
#
|
|
188
192
|
# @param due_date_end [Date] An inclusive upper bound for searching due_date
|
|
189
193
|
#
|
|
190
194
|
# @param due_date_start [Date] An inclusive lower bound for searching due_date
|
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
#
|
|
12
12
|
# Create a new Payment Order
|
|
13
13
|
#
|
|
14
|
-
# @overload create(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
14
|
+
# @overload create(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
17
17
|
#
|
|
@@ -67,6 +67,8 @@ module ModernTreasury
|
|
|
67
67
|
#
|
|
68
68
|
# @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
69
69
|
#
|
|
70
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
71
|
+
#
|
|
70
72
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
|
71
73
|
#
|
|
72
74
|
# @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
|
|
@@ -125,7 +127,7 @@ module ModernTreasury
|
|
|
125
127
|
#
|
|
126
128
|
# Update a payment order
|
|
127
129
|
#
|
|
128
|
-
# @overload update(id, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
130
|
+
# @overload update(id, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
129
131
|
#
|
|
130
132
|
# @param id [String]
|
|
131
133
|
#
|
|
@@ -177,6 +179,8 @@ module ModernTreasury
|
|
|
177
179
|
#
|
|
178
180
|
# @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
179
181
|
#
|
|
182
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
183
|
+
#
|
|
180
184
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
|
181
185
|
#
|
|
182
186
|
# @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
|
|
@@ -278,7 +282,7 @@ module ModernTreasury
|
|
|
278
282
|
#
|
|
279
283
|
# Create a new payment order asynchronously
|
|
280
284
|
#
|
|
281
|
-
# @overload create_async(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
285
|
+
# @overload create_async(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
282
286
|
#
|
|
283
287
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
284
288
|
#
|
|
@@ -332,6 +336,8 @@ module ModernTreasury
|
|
|
332
336
|
#
|
|
333
337
|
# @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
334
338
|
#
|
|
339
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
340
|
+
#
|
|
335
341
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
|
336
342
|
#
|
|
337
343
|
# @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
|
|
@@ -8,7 +8,7 @@ module ModernTreasury
|
|
|
8
8
|
#
|
|
9
9
|
# Create a return.
|
|
10
10
|
#
|
|
11
|
-
# @overload create(returnable_id:, returnable_type:, additional_information: nil, code: nil, corrections: nil, data: nil, date_of_death: nil, reason: nil, request_options: {})
|
|
11
|
+
# @overload create(returnable_id:, returnable_type:, additional_information: nil, code: nil, corrections: nil, data: nil, date_of_death: nil, reason: nil, reconciliation_status: nil, request_options: {})
|
|
12
12
|
#
|
|
13
13
|
# @param returnable_id [String, nil] The ID of the object being returned or `null`.
|
|
14
14
|
#
|
|
@@ -26,6 +26,8 @@ module ModernTreasury
|
|
|
26
26
|
#
|
|
27
27
|
# @param reason [String, nil] An optional description of the reason for the return. This is for internal usage
|
|
28
28
|
#
|
|
29
|
+
# @param reconciliation_status [Symbol, ModernTreasury::Models::ReturnCreateParams::ReconciliationStatus] One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
30
|
+
#
|
|
29
31
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
30
32
|
#
|
|
31
33
|
# @return [ModernTreasury::Models::ReturnObject]
|
|
@@ -33,6 +33,9 @@ module ModernTreasury
|
|
|
33
33
|
sig { returns(T.nilable(Integer)) }
|
|
34
34
|
attr_accessor :status
|
|
35
35
|
|
|
36
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
|
37
|
+
attr_accessor :headers
|
|
38
|
+
|
|
36
39
|
sig { returns(T.nilable(T.anything)) }
|
|
37
40
|
attr_accessor :body
|
|
38
41
|
|
|
@@ -41,6 +44,7 @@ module ModernTreasury
|
|
|
41
44
|
params(
|
|
42
45
|
url: URI::Generic,
|
|
43
46
|
status: T.nilable(Integer),
|
|
47
|
+
headers: T.nilable(T::Hash[String, String]),
|
|
44
48
|
body: T.nilable(Object),
|
|
45
49
|
request: NilClass,
|
|
46
50
|
response: NilClass,
|
|
@@ -50,6 +54,7 @@ module ModernTreasury
|
|
|
50
54
|
def self.new(
|
|
51
55
|
url:,
|
|
52
56
|
status: nil,
|
|
57
|
+
headers: nil,
|
|
53
58
|
body: nil,
|
|
54
59
|
request: nil,
|
|
55
60
|
response: nil,
|
|
@@ -70,6 +75,7 @@ module ModernTreasury
|
|
|
70
75
|
params(
|
|
71
76
|
url: URI::Generic,
|
|
72
77
|
status: NilClass,
|
|
78
|
+
headers: T.nilable(T::Hash[String, String]),
|
|
73
79
|
body: NilClass,
|
|
74
80
|
request: NilClass,
|
|
75
81
|
response: NilClass,
|
|
@@ -79,6 +85,7 @@ module ModernTreasury
|
|
|
79
85
|
def self.new(
|
|
80
86
|
url:,
|
|
81
87
|
status: nil,
|
|
88
|
+
headers: nil,
|
|
82
89
|
body: nil,
|
|
83
90
|
request: nil,
|
|
84
91
|
response: nil,
|
|
@@ -93,6 +100,7 @@ module ModernTreasury
|
|
|
93
100
|
params(
|
|
94
101
|
url: URI::Generic,
|
|
95
102
|
status: NilClass,
|
|
103
|
+
headers: T.nilable(T::Hash[String, String]),
|
|
96
104
|
body: NilClass,
|
|
97
105
|
request: NilClass,
|
|
98
106
|
response: NilClass,
|
|
@@ -102,6 +110,7 @@ module ModernTreasury
|
|
|
102
110
|
def self.new(
|
|
103
111
|
url:,
|
|
104
112
|
status: nil,
|
|
113
|
+
headers: nil,
|
|
105
114
|
body: nil,
|
|
106
115
|
request: nil,
|
|
107
116
|
response: nil,
|
|
@@ -116,13 +125,22 @@ module ModernTreasury
|
|
|
116
125
|
params(
|
|
117
126
|
url: URI::Generic,
|
|
118
127
|
status: Integer,
|
|
128
|
+
headers: T.nilable(T::Hash[String, String]),
|
|
119
129
|
body: T.nilable(Object),
|
|
120
130
|
request: NilClass,
|
|
121
131
|
response: NilClass,
|
|
122
132
|
message: T.nilable(String)
|
|
123
133
|
).returns(T.attached_class)
|
|
124
134
|
end
|
|
125
|
-
def self.for(
|
|
135
|
+
def self.for(
|
|
136
|
+
url:,
|
|
137
|
+
status:,
|
|
138
|
+
headers:,
|
|
139
|
+
body:,
|
|
140
|
+
request:,
|
|
141
|
+
response:,
|
|
142
|
+
message: nil
|
|
143
|
+
)
|
|
126
144
|
end
|
|
127
145
|
|
|
128
146
|
sig { returns(Integer) }
|
|
@@ -133,13 +151,22 @@ module ModernTreasury
|
|
|
133
151
|
params(
|
|
134
152
|
url: URI::Generic,
|
|
135
153
|
status: Integer,
|
|
154
|
+
headers: T.nilable(T::Hash[String, String]),
|
|
136
155
|
body: T.nilable(Object),
|
|
137
156
|
request: NilClass,
|
|
138
157
|
response: NilClass,
|
|
139
158
|
message: T.nilable(String)
|
|
140
159
|
).returns(T.attached_class)
|
|
141
160
|
end
|
|
142
|
-
def self.new(
|
|
161
|
+
def self.new(
|
|
162
|
+
url:,
|
|
163
|
+
status:,
|
|
164
|
+
headers:,
|
|
165
|
+
body:,
|
|
166
|
+
request:,
|
|
167
|
+
response:,
|
|
168
|
+
message: nil
|
|
169
|
+
)
|
|
143
170
|
end
|
|
144
171
|
end
|
|
145
172
|
|
|
@@ -86,10 +86,9 @@ module ModernTreasury
|
|
|
86
86
|
|
|
87
87
|
# @api private
|
|
88
88
|
sig do
|
|
89
|
-
params(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
).returns(T::Boolean)
|
|
89
|
+
params(status: Integer, headers: T::Hash[String, String]).returns(
|
|
90
|
+
T::Boolean
|
|
91
|
+
)
|
|
93
92
|
end
|
|
94
93
|
def should_retry?(status, headers:)
|
|
95
94
|
end
|
|
@@ -100,7 +99,7 @@ module ModernTreasury
|
|
|
100
99
|
request:
|
|
101
100
|
ModernTreasury::Internal::Transport::BaseClient::RequestInput,
|
|
102
101
|
status: Integer,
|
|
103
|
-
response_headers: T
|
|
102
|
+
response_headers: T::Hash[String, String]
|
|
104
103
|
).returns(
|
|
105
104
|
ModernTreasury::Internal::Transport::BaseClient::RequestInput
|
|
106
105
|
)
|
|
@@ -31,7 +31,7 @@ module ModernTreasury
|
|
|
31
31
|
client: ModernTreasury::Internal::Transport::BaseClient,
|
|
32
32
|
req:
|
|
33
33
|
ModernTreasury::Internal::Transport::BaseClient::RequestComponents,
|
|
34
|
-
headers: T
|
|
34
|
+
headers: T::Hash[String, String],
|
|
35
35
|
page_data: T.anything
|
|
36
36
|
).void
|
|
37
37
|
end
|
|
@@ -361,7 +361,7 @@ module ModernTreasury
|
|
|
361
361
|
# Assumes each chunk in stream has `Encoding::BINARY`.
|
|
362
362
|
sig do
|
|
363
363
|
params(
|
|
364
|
-
headers: T
|
|
364
|
+
headers: T::Hash[String, String],
|
|
365
365
|
stream: T::Enumerable[String],
|
|
366
366
|
suppress_error: T::Boolean
|
|
367
367
|
).returns(T.anything)
|