modern_treasury 0.6.0 → 0.7.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 +41 -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 +3 -3
- 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 +5 -5
- 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 -1
- 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 -0
- data/lib/modern_treasury/models/return_create_params.rb +21 -1
- data/lib/modern_treasury/models/return_object.rb +25 -1
- data/lib/modern_treasury/models/transaction.rb +1 -0
- 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 -0
- 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 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +64 -0
- data/rbi/modern_treasury/models/return_object.rbi +58 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- 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 -0
- 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 -0
- data/sig/modern_treasury/models/return_create_params.rbs +23 -1
- data/sig/modern_treasury/models/return_object.rbs +22 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- 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
|
@@ -45,6 +45,14 @@ module ModernTreasury
|
|
|
45
45
|
end
|
|
46
46
|
attr_accessor :reason
|
|
47
47
|
|
|
48
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
49
|
+
sig do
|
|
50
|
+
returns(
|
|
51
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
attr_accessor :reconciliation_status
|
|
55
|
+
|
|
48
56
|
# The current status of the reversal.
|
|
49
57
|
sig do
|
|
50
58
|
returns(ModernTreasury::PaymentOrders::Reversal::Status::TaggedSymbol)
|
|
@@ -67,6 +75,8 @@ module ModernTreasury
|
|
|
67
75
|
object: String,
|
|
68
76
|
payment_order_id: T.nilable(String),
|
|
69
77
|
reason: ModernTreasury::PaymentOrders::Reversal::Reason::OrSymbol,
|
|
78
|
+
reconciliation_status:
|
|
79
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::OrSymbol,
|
|
70
80
|
status: ModernTreasury::PaymentOrders::Reversal::Status::OrSymbol,
|
|
71
81
|
transaction_ids: T::Array[T.nilable(String)],
|
|
72
82
|
updated_at: Time
|
|
@@ -88,6 +98,8 @@ module ModernTreasury
|
|
|
88
98
|
payment_order_id:,
|
|
89
99
|
# The reason for the reversal.
|
|
90
100
|
reason:,
|
|
101
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
102
|
+
reconciliation_status:,
|
|
91
103
|
# The current status of the reversal.
|
|
92
104
|
status:,
|
|
93
105
|
transaction_ids:,
|
|
@@ -107,6 +119,8 @@ module ModernTreasury
|
|
|
107
119
|
payment_order_id: T.nilable(String),
|
|
108
120
|
reason:
|
|
109
121
|
ModernTreasury::PaymentOrders::Reversal::Reason::TaggedSymbol,
|
|
122
|
+
reconciliation_status:
|
|
123
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol,
|
|
110
124
|
status:
|
|
111
125
|
ModernTreasury::PaymentOrders::Reversal::Status::TaggedSymbol,
|
|
112
126
|
transaction_ids: T::Array[T.nilable(String)],
|
|
@@ -164,6 +178,46 @@ module ModernTreasury
|
|
|
164
178
|
end
|
|
165
179
|
end
|
|
166
180
|
|
|
181
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
182
|
+
module ReconciliationStatus
|
|
183
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
TaggedSymbol =
|
|
186
|
+
T.type_alias do
|
|
187
|
+
T.all(
|
|
188
|
+
Symbol,
|
|
189
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
193
|
+
|
|
194
|
+
UNRECONCILED =
|
|
195
|
+
T.let(
|
|
196
|
+
:unreconciled,
|
|
197
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol
|
|
198
|
+
)
|
|
199
|
+
TENTATIVELY_RECONCILED =
|
|
200
|
+
T.let(
|
|
201
|
+
:tentatively_reconciled,
|
|
202
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol
|
|
203
|
+
)
|
|
204
|
+
RECONCILED =
|
|
205
|
+
T.let(
|
|
206
|
+
:reconciled,
|
|
207
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
sig do
|
|
211
|
+
override.returns(
|
|
212
|
+
T::Array[
|
|
213
|
+
ModernTreasury::PaymentOrders::Reversal::ReconciliationStatus::TaggedSymbol
|
|
214
|
+
]
|
|
215
|
+
)
|
|
216
|
+
end
|
|
217
|
+
def self.values
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
167
221
|
# The current status of the reversal.
|
|
168
222
|
module Status
|
|
169
223
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -400,6 +400,11 @@ module ModernTreasury
|
|
|
400
400
|
:lob_check_id,
|
|
401
401
|
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
402
402
|
)
|
|
403
|
+
MT_FOF_TRANSFER_ID =
|
|
404
|
+
T.let(
|
|
405
|
+
:mt_fof_transfer_id,
|
|
406
|
+
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
407
|
+
)
|
|
403
408
|
OTHER =
|
|
404
409
|
T.let(
|
|
405
410
|
:other,
|
|
@@ -66,6 +66,24 @@ module ModernTreasury
|
|
|
66
66
|
sig { returns(T.nilable(String)) }
|
|
67
67
|
attr_accessor :reason
|
|
68
68
|
|
|
69
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
70
|
+
sig do
|
|
71
|
+
returns(
|
|
72
|
+
T.nilable(
|
|
73
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::OrSymbol
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
attr_reader :reconciliation_status
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
params(
|
|
81
|
+
reconciliation_status:
|
|
82
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::OrSymbol
|
|
83
|
+
).void
|
|
84
|
+
end
|
|
85
|
+
attr_writer :reconciliation_status
|
|
86
|
+
|
|
69
87
|
sig do
|
|
70
88
|
params(
|
|
71
89
|
returnable_id: T.nilable(String),
|
|
@@ -78,6 +96,8 @@ module ModernTreasury
|
|
|
78
96
|
data: T.nilable(T.anything),
|
|
79
97
|
date_of_death: T.nilable(Date),
|
|
80
98
|
reason: T.nilable(String),
|
|
99
|
+
reconciliation_status:
|
|
100
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::OrSymbol,
|
|
81
101
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
82
102
|
).returns(T.attached_class)
|
|
83
103
|
end
|
|
@@ -104,6 +124,8 @@ module ModernTreasury
|
|
|
104
124
|
# An optional description of the reason for the return. This is for internal usage
|
|
105
125
|
# and will not be transmitted to the bank.”
|
|
106
126
|
reason: nil,
|
|
127
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
128
|
+
reconciliation_status: nil,
|
|
107
129
|
request_options: {}
|
|
108
130
|
)
|
|
109
131
|
end
|
|
@@ -121,6 +143,8 @@ module ModernTreasury
|
|
|
121
143
|
data: T.nilable(T.anything),
|
|
122
144
|
date_of_death: T.nilable(Date),
|
|
123
145
|
reason: T.nilable(String),
|
|
146
|
+
reconciliation_status:
|
|
147
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::OrSymbol,
|
|
124
148
|
request_options: ModernTreasury::RequestOptions
|
|
125
149
|
}
|
|
126
150
|
)
|
|
@@ -454,6 +478,46 @@ module ModernTreasury
|
|
|
454
478
|
def to_hash
|
|
455
479
|
end
|
|
456
480
|
end
|
|
481
|
+
|
|
482
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
483
|
+
module ReconciliationStatus
|
|
484
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
485
|
+
|
|
486
|
+
TaggedSymbol =
|
|
487
|
+
T.type_alias do
|
|
488
|
+
T.all(
|
|
489
|
+
Symbol,
|
|
490
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus
|
|
491
|
+
)
|
|
492
|
+
end
|
|
493
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
494
|
+
|
|
495
|
+
UNRECONCILED =
|
|
496
|
+
T.let(
|
|
497
|
+
:unreconciled,
|
|
498
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::TaggedSymbol
|
|
499
|
+
)
|
|
500
|
+
TENTATIVELY_RECONCILED =
|
|
501
|
+
T.let(
|
|
502
|
+
:tentatively_reconciled,
|
|
503
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::TaggedSymbol
|
|
504
|
+
)
|
|
505
|
+
RECONCILED =
|
|
506
|
+
T.let(
|
|
507
|
+
:reconciled,
|
|
508
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::TaggedSymbol
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
sig do
|
|
512
|
+
override.returns(
|
|
513
|
+
T::Array[
|
|
514
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::TaggedSymbol
|
|
515
|
+
]
|
|
516
|
+
)
|
|
517
|
+
end
|
|
518
|
+
def self.values
|
|
519
|
+
end
|
|
520
|
+
end
|
|
457
521
|
end
|
|
458
522
|
end
|
|
459
523
|
end
|
|
@@ -87,6 +87,14 @@ module ModernTreasury
|
|
|
87
87
|
sig { returns(T.nilable(String)) }
|
|
88
88
|
attr_accessor :reason
|
|
89
89
|
|
|
90
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
91
|
+
sig do
|
|
92
|
+
returns(
|
|
93
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
attr_accessor :reconciliation_status
|
|
97
|
+
|
|
90
98
|
# An array of Payment Reference objects.
|
|
91
99
|
sig { returns(T::Array[ModernTreasury::ReturnObject::ReferenceNumber]) }
|
|
92
100
|
attr_accessor :reference_numbers
|
|
@@ -154,6 +162,8 @@ module ModernTreasury
|
|
|
154
162
|
live_mode: T::Boolean,
|
|
155
163
|
object: String,
|
|
156
164
|
reason: T.nilable(String),
|
|
165
|
+
reconciliation_status:
|
|
166
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::OrSymbol,
|
|
157
167
|
reference_numbers:
|
|
158
168
|
T::Array[ModernTreasury::ReturnObject::ReferenceNumber::OrHash],
|
|
159
169
|
returnable_id: T.nilable(String),
|
|
@@ -204,6 +214,8 @@ module ModernTreasury
|
|
|
204
214
|
# Often the bank will provide an explanation for the return, which is a short
|
|
205
215
|
# human readable string.
|
|
206
216
|
reason:,
|
|
217
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
218
|
+
reconciliation_status:,
|
|
207
219
|
# An array of Payment Reference objects.
|
|
208
220
|
reference_numbers:,
|
|
209
221
|
# The ID of the object being returned or `null`.
|
|
@@ -248,6 +260,8 @@ module ModernTreasury
|
|
|
248
260
|
live_mode: T::Boolean,
|
|
249
261
|
object: String,
|
|
250
262
|
reason: T.nilable(String),
|
|
263
|
+
reconciliation_status:
|
|
264
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol,
|
|
251
265
|
reference_numbers:
|
|
252
266
|
T::Array[ModernTreasury::ReturnObject::ReferenceNumber],
|
|
253
267
|
returnable_id: T.nilable(String),
|
|
@@ -486,6 +500,43 @@ module ModernTreasury
|
|
|
486
500
|
end
|
|
487
501
|
end
|
|
488
502
|
|
|
503
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
504
|
+
module ReconciliationStatus
|
|
505
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
506
|
+
|
|
507
|
+
TaggedSymbol =
|
|
508
|
+
T.type_alias do
|
|
509
|
+
T.all(Symbol, ModernTreasury::ReturnObject::ReconciliationStatus)
|
|
510
|
+
end
|
|
511
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
512
|
+
|
|
513
|
+
UNRECONCILED =
|
|
514
|
+
T.let(
|
|
515
|
+
:unreconciled,
|
|
516
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol
|
|
517
|
+
)
|
|
518
|
+
TENTATIVELY_RECONCILED =
|
|
519
|
+
T.let(
|
|
520
|
+
:tentatively_reconciled,
|
|
521
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol
|
|
522
|
+
)
|
|
523
|
+
RECONCILED =
|
|
524
|
+
T.let(
|
|
525
|
+
:reconciled,
|
|
526
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
sig do
|
|
530
|
+
override.returns(
|
|
531
|
+
T::Array[
|
|
532
|
+
ModernTreasury::ReturnObject::ReconciliationStatus::TaggedSymbol
|
|
533
|
+
]
|
|
534
|
+
)
|
|
535
|
+
end
|
|
536
|
+
def self.values
|
|
537
|
+
end
|
|
538
|
+
end
|
|
539
|
+
|
|
489
540
|
class ReferenceNumber < ModernTreasury::Internal::Type::BaseModel
|
|
490
541
|
OrHash =
|
|
491
542
|
T.type_alias do
|
|
@@ -861,6 +912,11 @@ module ModernTreasury
|
|
|
861
912
|
:lob_check_id,
|
|
862
913
|
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
863
914
|
)
|
|
915
|
+
MT_FOF_TRANSFER_ID =
|
|
916
|
+
T.let(
|
|
917
|
+
:mt_fof_transfer_id,
|
|
918
|
+
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
919
|
+
)
|
|
864
920
|
OTHER =
|
|
865
921
|
T.let(
|
|
866
922
|
:other,
|
|
@@ -1145,6 +1201,8 @@ module ModernTreasury
|
|
|
1145
1201
|
CROSS_BORDER =
|
|
1146
1202
|
T.let(:cross_border, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1147
1203
|
EFT = T.let(:eft, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1204
|
+
GB_FPS =
|
|
1205
|
+
T.let(:gb_fps, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1148
1206
|
INTERAC =
|
|
1149
1207
|
T.let(:interac, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1150
1208
|
MANUAL =
|
|
@@ -447,6 +447,11 @@ module ModernTreasury
|
|
|
447
447
|
:jpmc,
|
|
448
448
|
ModernTreasury::Transaction::VendorCodeType::TaggedSymbol
|
|
449
449
|
)
|
|
450
|
+
MT_FOF =
|
|
451
|
+
T.let(
|
|
452
|
+
:mt_fof,
|
|
453
|
+
ModernTreasury::Transaction::VendorCodeType::TaggedSymbol
|
|
454
|
+
)
|
|
450
455
|
MX =
|
|
451
456
|
T.let(:mx, ModernTreasury::Transaction::VendorCodeType::TaggedSymbol)
|
|
452
457
|
PAYPAL =
|
|
@@ -21,8 +21,7 @@ module ModernTreasury
|
|
|
21
21
|
metadata: T::Hash[Symbol, String],
|
|
22
22
|
send_remittance_advice: T::Boolean,
|
|
23
23
|
taxpayer_identifier: String,
|
|
24
|
-
verification_status:
|
|
25
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::OrSymbol,
|
|
24
|
+
verification_status: String,
|
|
26
25
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
27
26
|
).returns(ModernTreasury::Counterparty)
|
|
28
27
|
end
|
|
@@ -118,6 +118,7 @@ module ModernTreasury
|
|
|
118
118
|
payment_type:
|
|
119
119
|
ModernTreasury::InternalAccountListParams::PaymentType::OrSymbol,
|
|
120
120
|
per_page: Integer,
|
|
121
|
+
status: ModernTreasury::InternalAccountListParams::Status::OrSymbol,
|
|
121
122
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
122
123
|
).returns(
|
|
123
124
|
ModernTreasury::Internal::Page[ModernTreasury::InternalAccount]
|
|
@@ -140,6 +141,8 @@ module ModernTreasury
|
|
|
140
141
|
# Only return internal accounts that can make this type of payment.
|
|
141
142
|
payment_type: nil,
|
|
142
143
|
per_page: nil,
|
|
144
|
+
# Only return internal accounts with this status.
|
|
145
|
+
status: nil,
|
|
143
146
|
request_options: {}
|
|
144
147
|
)
|
|
145
148
|
end
|
|
@@ -276,6 +276,8 @@ module ModernTreasury
|
|
|
276
276
|
params(
|
|
277
277
|
after_cursor: T.nilable(String),
|
|
278
278
|
counterparty_id: String,
|
|
279
|
+
created_at_end: Time,
|
|
280
|
+
created_at_start: Time,
|
|
279
281
|
due_date_end: Date,
|
|
280
282
|
due_date_start: Date,
|
|
281
283
|
expected_payment_id: String,
|
|
@@ -291,6 +293,10 @@ module ModernTreasury
|
|
|
291
293
|
def list(
|
|
292
294
|
after_cursor: nil,
|
|
293
295
|
counterparty_id: nil,
|
|
296
|
+
# An inclusive upper bound for searching created_at
|
|
297
|
+
created_at_end: nil,
|
|
298
|
+
# An inclusive lower bound for searching created_at
|
|
299
|
+
created_at_start: nil,
|
|
294
300
|
# An inclusive upper bound for searching due_date
|
|
295
301
|
due_date_end: nil,
|
|
296
302
|
# An inclusive lower bound for searching due_date
|
|
@@ -54,6 +54,8 @@ module ModernTreasury
|
|
|
54
54
|
receiving_account:
|
|
55
55
|
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::OrHash,
|
|
56
56
|
receiving_account_id: String,
|
|
57
|
+
reconciliation_status:
|
|
58
|
+
ModernTreasury::PaymentOrderCreateParams::ReconciliationStatus::OrSymbol,
|
|
57
59
|
remittance_information: T.nilable(String),
|
|
58
60
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
59
61
|
statement_descriptor: T.nilable(String),
|
|
@@ -161,6 +163,8 @@ module ModernTreasury
|
|
|
161
163
|
# `receiving_account_id`, you may pass the id of an external account or an
|
|
162
164
|
# internal account.
|
|
163
165
|
receiving_account_id: nil,
|
|
166
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
167
|
+
reconciliation_status: nil,
|
|
164
168
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
165
169
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
166
170
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -247,6 +251,8 @@ module ModernTreasury
|
|
|
247
251
|
receiving_account:
|
|
248
252
|
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::OrHash,
|
|
249
253
|
receiving_account_id: String,
|
|
254
|
+
reconciliation_status:
|
|
255
|
+
ModernTreasury::PaymentOrderUpdateParams::ReconciliationStatus::OrSymbol,
|
|
250
256
|
remittance_information: T.nilable(String),
|
|
251
257
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
252
258
|
statement_descriptor: T.nilable(String),
|
|
@@ -341,6 +347,8 @@ module ModernTreasury
|
|
|
341
347
|
# `receiving_account_id`, you may pass the id of an external account or an
|
|
342
348
|
# internal account.
|
|
343
349
|
receiving_account_id: nil,
|
|
350
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
351
|
+
reconciliation_status: nil,
|
|
344
352
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
345
353
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
346
354
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -493,6 +501,8 @@ module ModernTreasury
|
|
|
493
501
|
receiving_account:
|
|
494
502
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::OrHash,
|
|
495
503
|
receiving_account_id: String,
|
|
504
|
+
reconciliation_status:
|
|
505
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReconciliationStatus::OrSymbol,
|
|
496
506
|
remittance_information: T.nilable(String),
|
|
497
507
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
498
508
|
statement_descriptor: T.nilable(String),
|
|
@@ -597,6 +607,8 @@ module ModernTreasury
|
|
|
597
607
|
# `receiving_account_id`, you may pass the id of an external account or an
|
|
598
608
|
# internal account.
|
|
599
609
|
receiving_account_id: nil,
|
|
610
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
611
|
+
reconciliation_status: nil,
|
|
600
612
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
601
613
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
602
614
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -16,6 +16,8 @@ module ModernTreasury
|
|
|
16
16
|
data: T.nilable(T.anything),
|
|
17
17
|
date_of_death: T.nilable(Date),
|
|
18
18
|
reason: T.nilable(String),
|
|
19
|
+
reconciliation_status:
|
|
20
|
+
ModernTreasury::ReturnCreateParams::ReconciliationStatus::OrSymbol,
|
|
19
21
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
20
22
|
).returns(ModernTreasury::ReturnObject)
|
|
21
23
|
end
|
|
@@ -42,6 +44,8 @@ module ModernTreasury
|
|
|
42
44
|
# An optional description of the reason for the return. This is for internal usage
|
|
43
45
|
# and will not be transmitted to the bank.”
|
|
44
46
|
reason: nil,
|
|
47
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
48
|
+
reconciliation_status: nil,
|
|
45
49
|
request_options: {}
|
|
46
50
|
)
|
|
47
51
|
end
|
|
@@ -21,11 +21,14 @@ module ModernTreasury
|
|
|
21
21
|
|
|
22
22
|
attr_accessor status: Integer?
|
|
23
23
|
|
|
24
|
+
attr_accessor headers: ::Hash[String, String]?
|
|
25
|
+
|
|
24
26
|
attr_accessor body: top?
|
|
25
27
|
|
|
26
28
|
def initialize: (
|
|
27
29
|
url: URI::Generic,
|
|
28
30
|
?status: Integer?,
|
|
31
|
+
?headers: ::Hash[String, String]?,
|
|
29
32
|
?body: Object?,
|
|
30
33
|
?request: nil,
|
|
31
34
|
?response: nil,
|
|
@@ -37,6 +40,7 @@ module ModernTreasury
|
|
|
37
40
|
def initialize: (
|
|
38
41
|
url: URI::Generic,
|
|
39
42
|
?status: nil,
|
|
43
|
+
?headers: ::Hash[String, String]?,
|
|
40
44
|
?body: nil,
|
|
41
45
|
?request: nil,
|
|
42
46
|
?response: nil,
|
|
@@ -48,6 +52,7 @@ module ModernTreasury
|
|
|
48
52
|
def initialize: (
|
|
49
53
|
url: URI::Generic,
|
|
50
54
|
?status: nil,
|
|
55
|
+
?headers: ::Hash[String, String]?,
|
|
51
56
|
?body: nil,
|
|
52
57
|
?request: nil,
|
|
53
58
|
?response: nil,
|
|
@@ -59,6 +64,7 @@ module ModernTreasury
|
|
|
59
64
|
def self.for: (
|
|
60
65
|
url: URI::Generic,
|
|
61
66
|
status: Integer,
|
|
67
|
+
headers: ::Hash[String, String]?,
|
|
62
68
|
body: Object?,
|
|
63
69
|
request: nil,
|
|
64
70
|
response: nil,
|
|
@@ -68,6 +74,7 @@ module ModernTreasury
|
|
|
68
74
|
def initialize: (
|
|
69
75
|
url: URI::Generic,
|
|
70
76
|
status: Integer,
|
|
77
|
+
headers: ::Hash[String, String]?,
|
|
71
78
|
body: Object?,
|
|
72
79
|
request: nil,
|
|
73
80
|
response: nil,
|
|
@@ -117,6 +117,7 @@ module ModernTreasury
|
|
|
117
117
|
purpose: String?,
|
|
118
118
|
receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount,
|
|
119
119
|
receiving_account_id: String,
|
|
120
|
+
reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status,
|
|
120
121
|
remittance_information: String?,
|
|
121
122
|
send_remittance_advice: bool?,
|
|
122
123
|
statement_descriptor: String?,
|
|
@@ -219,6 +220,12 @@ module ModernTreasury
|
|
|
219
220
|
|
|
220
221
|
def receiving_account_id=: (String) -> String
|
|
221
222
|
|
|
223
|
+
attr_reader reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status?
|
|
224
|
+
|
|
225
|
+
def reconciliation_status=: (
|
|
226
|
+
ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status
|
|
227
|
+
) -> ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status
|
|
228
|
+
|
|
222
229
|
attr_accessor remittance_information: String?
|
|
223
230
|
|
|
224
231
|
attr_accessor send_remittance_advice: bool?
|
|
@@ -266,6 +273,7 @@ module ModernTreasury
|
|
|
266
273
|
?purpose: String?,
|
|
267
274
|
?receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount,
|
|
268
275
|
?receiving_account_id: String,
|
|
276
|
+
?reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status,
|
|
269
277
|
?remittance_information: String?,
|
|
270
278
|
?send_remittance_advice: bool?,
|
|
271
279
|
?statement_descriptor: String?,
|
|
@@ -304,6 +312,7 @@ module ModernTreasury
|
|
|
304
312
|
purpose: String?,
|
|
305
313
|
receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount,
|
|
306
314
|
receiving_account_id: String,
|
|
315
|
+
reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status,
|
|
307
316
|
remittance_information: String?,
|
|
308
317
|
send_remittance_advice: bool?,
|
|
309
318
|
statement_descriptor: String?,
|
|
@@ -762,6 +771,19 @@ module ModernTreasury
|
|
|
762
771
|
end
|
|
763
772
|
end
|
|
764
773
|
end
|
|
774
|
+
|
|
775
|
+
type reconciliation_status =
|
|
776
|
+
:unreconciled | :tentatively_reconciled | :reconciled
|
|
777
|
+
|
|
778
|
+
module ReconciliationStatus
|
|
779
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
780
|
+
|
|
781
|
+
UNRECONCILED: :unreconciled
|
|
782
|
+
TENTATIVELY_RECONCILED: :tentatively_reconciled
|
|
783
|
+
RECONCILED: :reconciled
|
|
784
|
+
|
|
785
|
+
def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::reconciliation_status]
|
|
786
|
+
end
|
|
765
787
|
end
|
|
766
788
|
|
|
767
789
|
type expected_payment_create_request =
|
|
@@ -1124,6 +1146,7 @@ module ModernTreasury
|
|
|
1124
1146
|
purpose: String?,
|
|
1125
1147
|
receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount,
|
|
1126
1148
|
receiving_account_id: String,
|
|
1149
|
+
reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status,
|
|
1127
1150
|
remittance_information: String?,
|
|
1128
1151
|
send_remittance_advice: bool?,
|
|
1129
1152
|
statement_descriptor: String?,
|
|
@@ -1229,6 +1252,12 @@ module ModernTreasury
|
|
|
1229
1252
|
|
|
1230
1253
|
def receiving_account_id=: (String) -> String
|
|
1231
1254
|
|
|
1255
|
+
attr_reader reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status?
|
|
1256
|
+
|
|
1257
|
+
def reconciliation_status=: (
|
|
1258
|
+
ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status
|
|
1259
|
+
) -> ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status
|
|
1260
|
+
|
|
1232
1261
|
attr_accessor remittance_information: String?
|
|
1233
1262
|
|
|
1234
1263
|
attr_accessor send_remittance_advice: bool?
|
|
@@ -1283,6 +1312,7 @@ module ModernTreasury
|
|
|
1283
1312
|
?purpose: String?,
|
|
1284
1313
|
?receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount,
|
|
1285
1314
|
?receiving_account_id: String,
|
|
1315
|
+
?reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status,
|
|
1286
1316
|
?remittance_information: String?,
|
|
1287
1317
|
?send_remittance_advice: bool?,
|
|
1288
1318
|
?statement_descriptor: String?,
|
|
@@ -1321,6 +1351,7 @@ module ModernTreasury
|
|
|
1321
1351
|
purpose: String?,
|
|
1322
1352
|
receiving_account: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount,
|
|
1323
1353
|
receiving_account_id: String,
|
|
1354
|
+
reconciliation_status: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status,
|
|
1324
1355
|
remittance_information: String?,
|
|
1325
1356
|
send_remittance_advice: bool?,
|
|
1326
1357
|
statement_descriptor: String?,
|
|
@@ -1781,12 +1812,26 @@ module ModernTreasury
|
|
|
1781
1812
|
end
|
|
1782
1813
|
end
|
|
1783
1814
|
|
|
1815
|
+
type reconciliation_status =
|
|
1816
|
+
:unreconciled | :tentatively_reconciled | :reconciled
|
|
1817
|
+
|
|
1818
|
+
module ReconciliationStatus
|
|
1819
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
1820
|
+
|
|
1821
|
+
UNRECONCILED: :unreconciled
|
|
1822
|
+
TENTATIVELY_RECONCILED: :tentatively_reconciled
|
|
1823
|
+
RECONCILED: :reconciled
|
|
1824
|
+
|
|
1825
|
+
def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::reconciliation_status]
|
|
1826
|
+
end
|
|
1827
|
+
|
|
1784
1828
|
type status =
|
|
1785
1829
|
:approved
|
|
1786
1830
|
| :cancelled
|
|
1787
1831
|
| :completed
|
|
1788
1832
|
| :denied
|
|
1789
1833
|
| :failed
|
|
1834
|
+
| :held
|
|
1790
1835
|
| :needs_approval
|
|
1791
1836
|
| :pending
|
|
1792
1837
|
| :processing
|
|
@@ -1803,6 +1848,7 @@ module ModernTreasury
|
|
|
1803
1848
|
COMPLETED: :completed
|
|
1804
1849
|
DENIED: :denied
|
|
1805
1850
|
FAILED: :failed
|
|
1851
|
+
HELD: :held
|
|
1806
1852
|
NEEDS_APPROVAL: :needs_approval
|
|
1807
1853
|
PENDING: :pending
|
|
1808
1854
|
PROCESSING: :processing
|
|
@@ -15,7 +15,7 @@ module ModernTreasury
|
|
|
15
15
|
object: String,
|
|
16
16
|
send_remittance_advice: bool,
|
|
17
17
|
updated_at: Time,
|
|
18
|
-
verification_status:
|
|
18
|
+
verification_status: String
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
class Counterparty < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -45,7 +45,7 @@ module ModernTreasury
|
|
|
45
45
|
|
|
46
46
|
attr_accessor updated_at: Time
|
|
47
47
|
|
|
48
|
-
attr_accessor verification_status:
|
|
48
|
+
attr_accessor verification_status: String
|
|
49
49
|
|
|
50
50
|
def initialize: (
|
|
51
51
|
id: String,
|
|
@@ -61,7 +61,7 @@ module ModernTreasury
|
|
|
61
61
|
object: String,
|
|
62
62
|
send_remittance_advice: bool,
|
|
63
63
|
updated_at: Time,
|
|
64
|
-
verification_status:
|
|
64
|
+
verification_status: String
|
|
65
65
|
) -> void
|
|
66
66
|
|
|
67
67
|
def to_hash: -> {
|
|
@@ -78,7 +78,7 @@ module ModernTreasury
|
|
|
78
78
|
object: String,
|
|
79
79
|
send_remittance_advice: bool,
|
|
80
80
|
updated_at: Time,
|
|
81
|
-
verification_status:
|
|
81
|
+
verification_status: String
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
type account =
|
|
@@ -257,20 +257,6 @@ module ModernTreasury
|
|
|
257
257
|
def self?.values: -> ::Array[ModernTreasury::Models::Counterparty::Account::verification_status]
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
|
-
|
|
261
|
-
type verification_status =
|
|
262
|
-
:denied | :needs_approval | :unverified | :verified
|
|
263
|
-
|
|
264
|
-
module VerificationStatus
|
|
265
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
266
|
-
|
|
267
|
-
DENIED: :denied
|
|
268
|
-
NEEDS_APPROVAL: :needs_approval
|
|
269
|
-
UNVERIFIED: :unverified
|
|
270
|
-
VERIFIED: :verified
|
|
271
|
-
|
|
272
|
-
def self?.values: -> ::Array[ModernTreasury::Models::Counterparty::verification_status]
|
|
273
|
-
end
|
|
274
260
|
end
|
|
275
261
|
end
|
|
276
262
|
end
|