modern_treasury 0.11.0 → 0.12.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 +31 -0
- data/README.md +10 -1
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +4 -0
- data/lib/modern_treasury/models/payment_reference.rb +4 -0
- data/lib/modern_treasury/models/return_object.rb +5 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +3 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +20 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/return_object.rbi +22 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +8 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -0
- data/sig/modern_treasury/models/return_object.rbs +10 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +8 -2
|
@@ -4,6 +4,10 @@ module ModernTreasury
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
amount_lower_bound: Integer?,
|
|
7
|
+
amount_reconciled: Integer?,
|
|
8
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
|
|
9
|
+
amount_unreconciled: Integer?,
|
|
10
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
|
|
7
11
|
amount_upper_bound: Integer?,
|
|
8
12
|
counterparty_id: String?,
|
|
9
13
|
created_at: Time,
|
|
@@ -36,6 +40,14 @@ module ModernTreasury
|
|
|
36
40
|
|
|
37
41
|
attr_accessor amount_lower_bound: Integer?
|
|
38
42
|
|
|
43
|
+
attr_accessor amount_reconciled: Integer?
|
|
44
|
+
|
|
45
|
+
attr_accessor amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?
|
|
46
|
+
|
|
47
|
+
attr_accessor amount_unreconciled: Integer?
|
|
48
|
+
|
|
49
|
+
attr_accessor amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?
|
|
50
|
+
|
|
39
51
|
attr_accessor amount_upper_bound: Integer?
|
|
40
52
|
|
|
41
53
|
attr_accessor counterparty_id: String?
|
|
@@ -89,6 +101,10 @@ module ModernTreasury
|
|
|
89
101
|
def initialize: (
|
|
90
102
|
id: String,
|
|
91
103
|
amount_lower_bound: Integer?,
|
|
104
|
+
amount_reconciled: Integer?,
|
|
105
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
|
|
106
|
+
amount_unreconciled: Integer?,
|
|
107
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
|
|
92
108
|
amount_upper_bound: Integer?,
|
|
93
109
|
counterparty_id: String?,
|
|
94
110
|
created_at: Time,
|
|
@@ -119,6 +135,10 @@ module ModernTreasury
|
|
|
119
135
|
def to_hash: -> {
|
|
120
136
|
id: String,
|
|
121
137
|
amount_lower_bound: Integer?,
|
|
138
|
+
amount_reconciled: Integer?,
|
|
139
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
|
|
140
|
+
amount_unreconciled: Integer?,
|
|
141
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
|
|
122
142
|
amount_upper_bound: Integer?,
|
|
123
143
|
counterparty_id: String?,
|
|
124
144
|
created_at: Time,
|
|
@@ -146,6 +166,28 @@ module ModernTreasury
|
|
|
146
166
|
updated_at: Time
|
|
147
167
|
}
|
|
148
168
|
|
|
169
|
+
type amount_reconciled_direction = :credit | :debit
|
|
170
|
+
|
|
171
|
+
module AmountReconciledDirection
|
|
172
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
173
|
+
|
|
174
|
+
CREDIT: :credit
|
|
175
|
+
DEBIT: :debit
|
|
176
|
+
|
|
177
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction]
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
type amount_unreconciled_direction = :credit | :debit
|
|
181
|
+
|
|
182
|
+
module AmountUnreconciledDirection
|
|
183
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
CREDIT: :credit
|
|
186
|
+
DEBIT: :debit
|
|
187
|
+
|
|
188
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction]
|
|
189
|
+
end
|
|
190
|
+
|
|
149
191
|
type direction = :credit | :debit
|
|
150
192
|
|
|
151
193
|
module Direction
|
|
@@ -3,6 +3,10 @@ module ModernTreasury
|
|
|
3
3
|
type expected_payment_create_params =
|
|
4
4
|
{
|
|
5
5
|
amount_lower_bound: Integer?,
|
|
6
|
+
amount_reconciled: Integer?,
|
|
7
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
|
|
8
|
+
amount_unreconciled: Integer?,
|
|
9
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
|
|
6
10
|
amount_upper_bound: Integer?,
|
|
7
11
|
counterparty_id: String?,
|
|
8
12
|
currency: ModernTreasury::Models::currency?,
|
|
@@ -31,6 +35,14 @@ module ModernTreasury
|
|
|
31
35
|
|
|
32
36
|
attr_accessor amount_lower_bound: Integer?
|
|
33
37
|
|
|
38
|
+
attr_accessor amount_reconciled: Integer?
|
|
39
|
+
|
|
40
|
+
attr_accessor amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?
|
|
41
|
+
|
|
42
|
+
attr_accessor amount_unreconciled: Integer?
|
|
43
|
+
|
|
44
|
+
attr_accessor amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?
|
|
45
|
+
|
|
34
46
|
attr_accessor amount_upper_bound: Integer?
|
|
35
47
|
|
|
36
48
|
attr_accessor counterparty_id: String?
|
|
@@ -83,6 +95,10 @@ module ModernTreasury
|
|
|
83
95
|
|
|
84
96
|
def initialize: (
|
|
85
97
|
?amount_lower_bound: Integer?,
|
|
98
|
+
?amount_reconciled: Integer?,
|
|
99
|
+
?amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
|
|
100
|
+
?amount_unreconciled: Integer?,
|
|
101
|
+
?amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
|
|
86
102
|
?amount_upper_bound: Integer?,
|
|
87
103
|
?counterparty_id: String?,
|
|
88
104
|
?currency: ModernTreasury::Models::currency?,
|
|
@@ -107,6 +123,10 @@ module ModernTreasury
|
|
|
107
123
|
|
|
108
124
|
def to_hash: -> {
|
|
109
125
|
amount_lower_bound: Integer?,
|
|
126
|
+
amount_reconciled: Integer?,
|
|
127
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
|
|
128
|
+
amount_unreconciled: Integer?,
|
|
129
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
|
|
110
130
|
amount_upper_bound: Integer?,
|
|
111
131
|
counterparty_id: String?,
|
|
112
132
|
currency: ModernTreasury::Models::currency?,
|
|
@@ -129,6 +149,28 @@ module ModernTreasury
|
|
|
129
149
|
request_options: ModernTreasury::RequestOptions
|
|
130
150
|
}
|
|
131
151
|
|
|
152
|
+
type amount_reconciled_direction = :credit | :debit
|
|
153
|
+
|
|
154
|
+
module AmountReconciledDirection
|
|
155
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
CREDIT: :credit
|
|
158
|
+
DEBIT: :debit
|
|
159
|
+
|
|
160
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction]
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
type amount_unreconciled_direction = :credit | :debit
|
|
164
|
+
|
|
165
|
+
module AmountUnreconciledDirection
|
|
166
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
167
|
+
|
|
168
|
+
CREDIT: :credit
|
|
169
|
+
DEBIT: :debit
|
|
170
|
+
|
|
171
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction]
|
|
172
|
+
end
|
|
173
|
+
|
|
132
174
|
type direction = :credit | :debit
|
|
133
175
|
|
|
134
176
|
module Direction
|
|
@@ -3,6 +3,10 @@ module ModernTreasury
|
|
|
3
3
|
type expected_payment_update_params =
|
|
4
4
|
{
|
|
5
5
|
amount_lower_bound: Integer?,
|
|
6
|
+
amount_reconciled: Integer?,
|
|
7
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_reconciled_direction?,
|
|
8
|
+
amount_unreconciled: Integer?,
|
|
9
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_unreconciled_direction?,
|
|
6
10
|
amount_upper_bound: Integer?,
|
|
7
11
|
counterparty_id: String?,
|
|
8
12
|
currency: ModernTreasury::Models::currency?,
|
|
@@ -29,6 +33,14 @@ module ModernTreasury
|
|
|
29
33
|
|
|
30
34
|
attr_accessor amount_lower_bound: Integer?
|
|
31
35
|
|
|
36
|
+
attr_accessor amount_reconciled: Integer?
|
|
37
|
+
|
|
38
|
+
attr_accessor amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_reconciled_direction?
|
|
39
|
+
|
|
40
|
+
attr_accessor amount_unreconciled: Integer?
|
|
41
|
+
|
|
42
|
+
attr_accessor amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_unreconciled_direction?
|
|
43
|
+
|
|
32
44
|
attr_accessor amount_upper_bound: Integer?
|
|
33
45
|
|
|
34
46
|
attr_accessor counterparty_id: String?
|
|
@@ -67,6 +79,10 @@ module ModernTreasury
|
|
|
67
79
|
|
|
68
80
|
def initialize: (
|
|
69
81
|
?amount_lower_bound: Integer?,
|
|
82
|
+
?amount_reconciled: Integer?,
|
|
83
|
+
?amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_reconciled_direction?,
|
|
84
|
+
?amount_unreconciled: Integer?,
|
|
85
|
+
?amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_unreconciled_direction?,
|
|
70
86
|
?amount_upper_bound: Integer?,
|
|
71
87
|
?counterparty_id: String?,
|
|
72
88
|
?currency: ModernTreasury::Models::currency?,
|
|
@@ -89,6 +105,10 @@ module ModernTreasury
|
|
|
89
105
|
|
|
90
106
|
def to_hash: -> {
|
|
91
107
|
amount_lower_bound: Integer?,
|
|
108
|
+
amount_reconciled: Integer?,
|
|
109
|
+
amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_reconciled_direction?,
|
|
110
|
+
amount_unreconciled: Integer?,
|
|
111
|
+
amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_unreconciled_direction?,
|
|
92
112
|
amount_upper_bound: Integer?,
|
|
93
113
|
counterparty_id: String?,
|
|
94
114
|
currency: ModernTreasury::Models::currency?,
|
|
@@ -109,6 +129,28 @@ module ModernTreasury
|
|
|
109
129
|
request_options: ModernTreasury::RequestOptions
|
|
110
130
|
}
|
|
111
131
|
|
|
132
|
+
type amount_reconciled_direction = :credit | :debit
|
|
133
|
+
|
|
134
|
+
module AmountReconciledDirection
|
|
135
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
CREDIT: :credit
|
|
138
|
+
DEBIT: :debit
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_reconciled_direction]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
type amount_unreconciled_direction = :credit | :debit
|
|
144
|
+
|
|
145
|
+
module AmountUnreconciledDirection
|
|
146
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
CREDIT: :credit
|
|
149
|
+
DEBIT: :debit
|
|
150
|
+
|
|
151
|
+
def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentUpdateParams::amount_unreconciled_direction]
|
|
152
|
+
end
|
|
153
|
+
|
|
112
154
|
type direction = :credit | :debit
|
|
113
155
|
|
|
114
156
|
module Direction
|
|
@@ -260,16 +260,21 @@ module ModernTreasury
|
|
|
260
260
|
:ach
|
|
261
261
|
| :au_becs
|
|
262
262
|
| :bacs
|
|
263
|
+
| :base
|
|
263
264
|
| :book
|
|
264
265
|
| :check
|
|
265
266
|
| :eft
|
|
267
|
+
| :ethereum
|
|
266
268
|
| :interac
|
|
267
269
|
| :neft
|
|
268
270
|
| :nz_becs
|
|
271
|
+
| :polygon
|
|
269
272
|
| :rtp
|
|
270
273
|
| :sepa
|
|
271
274
|
| :signet
|
|
275
|
+
| :solana
|
|
272
276
|
| :wire
|
|
277
|
+
| :zengin
|
|
273
278
|
|
|
274
279
|
module Type
|
|
275
280
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -277,16 +282,21 @@ module ModernTreasury
|
|
|
277
282
|
ACH: :ach
|
|
278
283
|
AU_BECS: :au_becs
|
|
279
284
|
BACS: :bacs
|
|
285
|
+
BASE: :base
|
|
280
286
|
BOOK: :book
|
|
281
287
|
CHECK: :check
|
|
282
288
|
EFT: :eft
|
|
289
|
+
ETHEREUM: :ethereum
|
|
283
290
|
INTERAC: :interac
|
|
284
291
|
NEFT: :neft
|
|
285
292
|
NZ_BECS: :nz_becs
|
|
293
|
+
POLYGON: :polygon
|
|
286
294
|
RTP: :rtp
|
|
287
295
|
SEPA: :sepa
|
|
288
296
|
SIGNET: :signet
|
|
297
|
+
SOLANA: :solana
|
|
289
298
|
WIRE: :wire
|
|
299
|
+
ZENGIN: :zengin
|
|
290
300
|
|
|
291
301
|
def self?.values: -> ::Array[ModernTreasury::Models::IncomingPaymentDetail::type_]
|
|
292
302
|
end
|
|
@@ -89,16 +89,21 @@ module ModernTreasury
|
|
|
89
89
|
:ach
|
|
90
90
|
| :au_becs
|
|
91
91
|
| :bacs
|
|
92
|
+
| :base
|
|
92
93
|
| :book
|
|
93
94
|
| :check
|
|
94
95
|
| :eft
|
|
96
|
+
| :ethereum
|
|
95
97
|
| :interac
|
|
96
98
|
| :neft
|
|
97
99
|
| :nz_becs
|
|
100
|
+
| :polygon
|
|
98
101
|
| :rtp
|
|
99
102
|
| :sepa
|
|
100
103
|
| :signet
|
|
104
|
+
| :solana
|
|
101
105
|
| :wire
|
|
106
|
+
| :zengin
|
|
102
107
|
|
|
103
108
|
module Type
|
|
104
109
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -106,16 +111,21 @@ module ModernTreasury
|
|
|
106
111
|
ACH: :ach
|
|
107
112
|
AU_BECS: :au_becs
|
|
108
113
|
BACS: :bacs
|
|
114
|
+
BASE: :base
|
|
109
115
|
BOOK: :book
|
|
110
116
|
CHECK: :check
|
|
111
117
|
EFT: :eft
|
|
118
|
+
ETHEREUM: :ethereum
|
|
112
119
|
INTERAC: :interac
|
|
113
120
|
NEFT: :neft
|
|
114
121
|
NZ_BECS: :nz_becs
|
|
122
|
+
POLYGON: :polygon
|
|
115
123
|
RTP: :rtp
|
|
116
124
|
SEPA: :sepa
|
|
117
125
|
SIGNET: :signet
|
|
126
|
+
SOLANA: :solana
|
|
118
127
|
WIRE: :wire
|
|
128
|
+
ZENGIN: :zengin
|
|
119
129
|
|
|
120
130
|
def self?.values: -> ::Array[ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::type_]
|
|
121
131
|
end
|
|
@@ -100,16 +100,21 @@ module ModernTreasury
|
|
|
100
100
|
:ach
|
|
101
101
|
| :au_becs
|
|
102
102
|
| :bacs
|
|
103
|
+
| :base
|
|
103
104
|
| :book
|
|
104
105
|
| :check
|
|
105
106
|
| :eft
|
|
107
|
+
| :ethereum
|
|
106
108
|
| :interac
|
|
107
109
|
| :neft
|
|
108
110
|
| :nz_becs
|
|
111
|
+
| :polygon
|
|
109
112
|
| :rtp
|
|
110
113
|
| :sepa
|
|
111
114
|
| :signet
|
|
115
|
+
| :solana
|
|
112
116
|
| :wire
|
|
117
|
+
| :zengin
|
|
113
118
|
|
|
114
119
|
module Type
|
|
115
120
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -117,16 +122,21 @@ module ModernTreasury
|
|
|
117
122
|
ACH: :ach
|
|
118
123
|
AU_BECS: :au_becs
|
|
119
124
|
BACS: :bacs
|
|
125
|
+
BASE: :base
|
|
120
126
|
BOOK: :book
|
|
121
127
|
CHECK: :check
|
|
122
128
|
EFT: :eft
|
|
129
|
+
ETHEREUM: :ethereum
|
|
123
130
|
INTERAC: :interac
|
|
124
131
|
NEFT: :neft
|
|
125
132
|
NZ_BECS: :nz_becs
|
|
133
|
+
POLYGON: :polygon
|
|
126
134
|
RTP: :rtp
|
|
127
135
|
SEPA: :sepa
|
|
128
136
|
SIGNET: :signet
|
|
137
|
+
SOLANA: :solana
|
|
129
138
|
WIRE: :wire
|
|
139
|
+
ZENGIN: :zengin
|
|
130
140
|
|
|
131
141
|
def self?.values: -> ::Array[ModernTreasury::Models::IncomingPaymentDetailListParams::type_]
|
|
132
142
|
end
|
|
@@ -7,6 +7,7 @@ module ModernTreasury
|
|
|
7
7
|
account_details: ::Array[ModernTreasury::AccountDetail],
|
|
8
8
|
account_type: ModernTreasury::Models::InternalAccount::account_type?,
|
|
9
9
|
connection: ModernTreasury::Connection,
|
|
10
|
+
contra_ledger_account_id: String?,
|
|
10
11
|
counterparty_id: String?,
|
|
11
12
|
created_at: Time,
|
|
12
13
|
currency: ModernTreasury::Models::currency,
|
|
@@ -37,6 +38,8 @@ module ModernTreasury
|
|
|
37
38
|
|
|
38
39
|
attr_accessor connection: ModernTreasury::Connection
|
|
39
40
|
|
|
41
|
+
attr_accessor contra_ledger_account_id: String?
|
|
42
|
+
|
|
40
43
|
attr_accessor counterparty_id: String?
|
|
41
44
|
|
|
42
45
|
attr_accessor created_at: Time
|
|
@@ -77,6 +80,7 @@ module ModernTreasury
|
|
|
77
80
|
account_details: ::Array[ModernTreasury::AccountDetail],
|
|
78
81
|
account_type: ModernTreasury::Models::InternalAccount::account_type?,
|
|
79
82
|
connection: ModernTreasury::Connection,
|
|
83
|
+
contra_ledger_account_id: String?,
|
|
80
84
|
counterparty_id: String?,
|
|
81
85
|
created_at: Time,
|
|
82
86
|
currency: ModernTreasury::Models::currency,
|
|
@@ -102,6 +106,7 @@ module ModernTreasury
|
|
|
102
106
|
account_details: ::Array[ModernTreasury::AccountDetail],
|
|
103
107
|
account_type: ModernTreasury::Models::InternalAccount::account_type?,
|
|
104
108
|
connection: ModernTreasury::Connection,
|
|
109
|
+
contra_ledger_account_id: String?,
|
|
105
110
|
counterparty_id: String?,
|
|
106
111
|
created_at: Time,
|
|
107
112
|
currency: ModernTreasury::Models::currency,
|
|
@@ -2,6 +2,7 @@ module ModernTreasury
|
|
|
2
2
|
module Models
|
|
3
3
|
type internal_account_update_params =
|
|
4
4
|
{
|
|
5
|
+
contra_ledger_account_id: String,
|
|
5
6
|
counterparty_id: String,
|
|
6
7
|
ledger_account_id: String,
|
|
7
8
|
metadata: ::Hash[Symbol, String],
|
|
@@ -14,6 +15,10 @@ module ModernTreasury
|
|
|
14
15
|
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include ModernTreasury::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_reader contra_ledger_account_id: String?
|
|
19
|
+
|
|
20
|
+
def contra_ledger_account_id=: (String) -> String
|
|
21
|
+
|
|
17
22
|
attr_reader counterparty_id: String?
|
|
18
23
|
|
|
19
24
|
def counterparty_id=: (String) -> String
|
|
@@ -35,6 +40,7 @@ module ModernTreasury
|
|
|
35
40
|
def parent_account_id=: (String) -> String
|
|
36
41
|
|
|
37
42
|
def initialize: (
|
|
43
|
+
?contra_ledger_account_id: String,
|
|
38
44
|
?counterparty_id: String,
|
|
39
45
|
?ledger_account_id: String,
|
|
40
46
|
?metadata: ::Hash[Symbol, String],
|
|
@@ -44,6 +50,7 @@ module ModernTreasury
|
|
|
44
50
|
) -> void
|
|
45
51
|
|
|
46
52
|
def to_hash: -> {
|
|
53
|
+
contra_ledger_account_id: String,
|
|
47
54
|
counterparty_id: String,
|
|
48
55
|
ledger_account_id: String,
|
|
49
56
|
metadata: ::Hash[Symbol, String],
|
|
@@ -12,10 +12,8 @@ module ModernTreasury
|
|
|
12
12
|
currency: ModernTreasury::Models::currency,
|
|
13
13
|
description: String,
|
|
14
14
|
fallback_payment_method: String?,
|
|
15
|
-
ingest_ledger_entries: bool?,
|
|
16
15
|
invoice_line_items: ::Array[ModernTreasury::InvoiceCreateParams::InvoiceLineItem]?,
|
|
17
16
|
invoicer_address: ModernTreasury::InvoiceCreateParams::InvoicerAddress?,
|
|
18
|
-
ledger_account_settlement_id: String?,
|
|
19
17
|
metadata: ::Hash[Symbol, String]?,
|
|
20
18
|
notification_email_addresses: ::Array[String]?,
|
|
21
19
|
notifications_enabled: bool,
|
|
@@ -64,14 +62,10 @@ module ModernTreasury
|
|
|
64
62
|
|
|
65
63
|
attr_accessor fallback_payment_method: String?
|
|
66
64
|
|
|
67
|
-
attr_accessor ingest_ledger_entries: bool?
|
|
68
|
-
|
|
69
65
|
attr_accessor invoice_line_items: ::Array[ModernTreasury::InvoiceCreateParams::InvoiceLineItem]?
|
|
70
66
|
|
|
71
67
|
attr_accessor invoicer_address: ModernTreasury::InvoiceCreateParams::InvoicerAddress?
|
|
72
68
|
|
|
73
|
-
attr_accessor ledger_account_settlement_id: String?
|
|
74
|
-
|
|
75
69
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
76
70
|
|
|
77
71
|
attr_accessor notification_email_addresses: ::Array[String]?
|
|
@@ -119,10 +113,8 @@ module ModernTreasury
|
|
|
119
113
|
?currency: ModernTreasury::Models::currency,
|
|
120
114
|
?description: String,
|
|
121
115
|
?fallback_payment_method: String?,
|
|
122
|
-
?ingest_ledger_entries: bool?,
|
|
123
116
|
?invoice_line_items: ::Array[ModernTreasury::InvoiceCreateParams::InvoiceLineItem]?,
|
|
124
117
|
?invoicer_address: ModernTreasury::InvoiceCreateParams::InvoicerAddress?,
|
|
125
|
-
?ledger_account_settlement_id: String?,
|
|
126
118
|
?metadata: ::Hash[Symbol, String]?,
|
|
127
119
|
?notification_email_addresses: ::Array[String]?,
|
|
128
120
|
?notifications_enabled: bool,
|
|
@@ -148,10 +140,8 @@ module ModernTreasury
|
|
|
148
140
|
currency: ModernTreasury::Models::currency,
|
|
149
141
|
description: String,
|
|
150
142
|
fallback_payment_method: String?,
|
|
151
|
-
ingest_ledger_entries: bool?,
|
|
152
143
|
invoice_line_items: ::Array[ModernTreasury::InvoiceCreateParams::InvoiceLineItem]?,
|
|
153
144
|
invoicer_address: ModernTreasury::InvoiceCreateParams::InvoicerAddress?,
|
|
154
|
-
ledger_account_settlement_id: String?,
|
|
155
145
|
metadata: ::Hash[Symbol, String]?,
|
|
156
146
|
notification_email_addresses: ::Array[String]?,
|
|
157
147
|
notifications_enabled: bool,
|
|
@@ -10,10 +10,8 @@ module ModernTreasury
|
|
|
10
10
|
description: String,
|
|
11
11
|
due_date: Time,
|
|
12
12
|
fallback_payment_method: String?,
|
|
13
|
-
ingest_ledger_entries: bool?,
|
|
14
13
|
invoice_line_items: ::Array[ModernTreasury::InvoiceUpdateParams::InvoiceLineItem]?,
|
|
15
14
|
invoicer_address: ModernTreasury::InvoiceUpdateParams::InvoicerAddress?,
|
|
16
|
-
ledger_account_settlement_id: String?,
|
|
17
15
|
metadata: ::Hash[Symbol, String]?,
|
|
18
16
|
notification_email_addresses: ::Array[String]?,
|
|
19
17
|
notifications_enabled: bool,
|
|
@@ -64,14 +62,10 @@ module ModernTreasury
|
|
|
64
62
|
|
|
65
63
|
attr_accessor fallback_payment_method: String?
|
|
66
64
|
|
|
67
|
-
attr_accessor ingest_ledger_entries: bool?
|
|
68
|
-
|
|
69
65
|
attr_accessor invoice_line_items: ::Array[ModernTreasury::InvoiceUpdateParams::InvoiceLineItem]?
|
|
70
66
|
|
|
71
67
|
attr_accessor invoicer_address: ModernTreasury::InvoiceUpdateParams::InvoicerAddress?
|
|
72
68
|
|
|
73
|
-
attr_accessor ledger_account_settlement_id: String?
|
|
74
|
-
|
|
75
69
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
76
70
|
|
|
77
71
|
attr_accessor notification_email_addresses: ::Array[String]?
|
|
@@ -125,10 +119,8 @@ module ModernTreasury
|
|
|
125
119
|
?description: String,
|
|
126
120
|
?due_date: Time,
|
|
127
121
|
?fallback_payment_method: String?,
|
|
128
|
-
?ingest_ledger_entries: bool?,
|
|
129
122
|
?invoice_line_items: ::Array[ModernTreasury::InvoiceUpdateParams::InvoiceLineItem]?,
|
|
130
123
|
?invoicer_address: ModernTreasury::InvoiceUpdateParams::InvoicerAddress?,
|
|
131
|
-
?ledger_account_settlement_id: String?,
|
|
132
124
|
?metadata: ::Hash[Symbol, String]?,
|
|
133
125
|
?notification_email_addresses: ::Array[String]?,
|
|
134
126
|
?notifications_enabled: bool,
|
|
@@ -154,10 +146,8 @@ module ModernTreasury
|
|
|
154
146
|
description: String,
|
|
155
147
|
due_date: Time,
|
|
156
148
|
fallback_payment_method: String?,
|
|
157
|
-
ingest_ledger_entries: bool?,
|
|
158
149
|
invoice_line_items: ::Array[ModernTreasury::InvoiceUpdateParams::InvoiceLineItem]?,
|
|
159
150
|
invoicer_address: ModernTreasury::InvoiceUpdateParams::InvoicerAddress?,
|
|
160
|
-
ledger_account_settlement_id: String?,
|
|
161
151
|
metadata: ::Hash[Symbol, String]?,
|
|
162
152
|
notification_email_addresses: ::Array[String]?,
|
|
163
153
|
notifications_enabled: bool,
|
|
@@ -7,6 +7,7 @@ module ModernTreasury
|
|
|
7
7
|
created_at: Time,
|
|
8
8
|
direction: ModernTreasury::Models::transaction_direction,
|
|
9
9
|
discarded_at: Time?,
|
|
10
|
+
effective_at: Time,
|
|
10
11
|
ledger_account_currency: String,
|
|
11
12
|
ledger_account_currency_exponent: Integer,
|
|
12
13
|
ledger_account_id: String,
|
|
@@ -31,6 +32,8 @@ module ModernTreasury
|
|
|
31
32
|
|
|
32
33
|
attr_accessor discarded_at: Time?
|
|
33
34
|
|
|
35
|
+
attr_accessor effective_at: Time
|
|
36
|
+
|
|
34
37
|
attr_accessor ledger_account_currency: String
|
|
35
38
|
|
|
36
39
|
attr_accessor ledger_account_currency_exponent: Integer
|
|
@@ -59,6 +62,7 @@ module ModernTreasury
|
|
|
59
62
|
created_at: Time,
|
|
60
63
|
direction: ModernTreasury::Models::transaction_direction,
|
|
61
64
|
discarded_at: Time?,
|
|
65
|
+
effective_at: Time,
|
|
62
66
|
ledger_account_currency: String,
|
|
63
67
|
ledger_account_currency_exponent: Integer,
|
|
64
68
|
ledger_account_id: String,
|
|
@@ -78,6 +82,7 @@ module ModernTreasury
|
|
|
78
82
|
created_at: Time,
|
|
79
83
|
direction: ModernTreasury::Models::transaction_direction,
|
|
80
84
|
discarded_at: Time?,
|
|
85
|
+
effective_at: Time,
|
|
81
86
|
ledger_account_currency: String,
|
|
82
87
|
ledger_account_currency_exponent: Integer,
|
|
83
88
|
ledger_account_id: String,
|
|
@@ -6,6 +6,7 @@ module ModernTreasury
|
|
|
6
6
|
direction: ModernTreasury::Models::transaction_direction,
|
|
7
7
|
ledger_account_id: String,
|
|
8
8
|
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
9
|
+
effective_at: Time,
|
|
9
10
|
lock_version: Integer?,
|
|
10
11
|
metadata: ::Hash[Symbol, String],
|
|
11
12
|
pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
@@ -22,6 +23,10 @@ module ModernTreasury
|
|
|
22
23
|
|
|
23
24
|
attr_accessor available_balance_amount: ::Hash[Symbol, Integer]?
|
|
24
25
|
|
|
26
|
+
attr_reader effective_at: Time?
|
|
27
|
+
|
|
28
|
+
def effective_at=: (Time) -> Time
|
|
29
|
+
|
|
25
30
|
attr_accessor lock_version: Integer?
|
|
26
31
|
|
|
27
32
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
@@ -39,6 +44,7 @@ module ModernTreasury
|
|
|
39
44
|
direction: ModernTreasury::Models::transaction_direction,
|
|
40
45
|
ledger_account_id: String,
|
|
41
46
|
?available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
47
|
+
?effective_at: Time,
|
|
42
48
|
?lock_version: Integer?,
|
|
43
49
|
?metadata: ::Hash[Symbol, String],
|
|
44
50
|
?pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
@@ -51,6 +57,7 @@ module ModernTreasury
|
|
|
51
57
|
direction: ModernTreasury::Models::transaction_direction,
|
|
52
58
|
ledger_account_id: String,
|
|
53
59
|
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
60
|
+
effective_at: Time,
|
|
54
61
|
lock_version: Integer?,
|
|
55
62
|
metadata: ::Hash[Symbol, String],
|
|
56
63
|
pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
@@ -125,6 +125,7 @@ module ModernTreasury
|
|
|
125
125
|
amount: Integer,
|
|
126
126
|
created_at: Time,
|
|
127
127
|
direction: ModernTreasury::Models::transaction_direction,
|
|
128
|
+
effective_at: Time,
|
|
128
129
|
ledger_account_currency: String,
|
|
129
130
|
ledger_account_currency_exponent: Integer,
|
|
130
131
|
ledger_account_id: String,
|
|
@@ -146,6 +147,8 @@ module ModernTreasury
|
|
|
146
147
|
|
|
147
148
|
attr_accessor direction: ModernTreasury::Models::transaction_direction
|
|
148
149
|
|
|
150
|
+
attr_accessor effective_at: Time
|
|
151
|
+
|
|
149
152
|
attr_accessor ledger_account_currency: String
|
|
150
153
|
|
|
151
154
|
attr_accessor ledger_account_currency_exponent: Integer
|
|
@@ -171,6 +174,7 @@ module ModernTreasury
|
|
|
171
174
|
amount: Integer,
|
|
172
175
|
created_at: Time,
|
|
173
176
|
direction: ModernTreasury::Models::transaction_direction,
|
|
177
|
+
effective_at: Time,
|
|
174
178
|
ledger_account_currency: String,
|
|
175
179
|
ledger_account_currency_exponent: Integer,
|
|
176
180
|
ledger_account_id: String,
|
|
@@ -188,6 +192,7 @@ module ModernTreasury
|
|
|
188
192
|
amount: Integer,
|
|
189
193
|
created_at: Time,
|
|
190
194
|
direction: ModernTreasury::Models::transaction_direction,
|
|
195
|
+
effective_at: Time,
|
|
191
196
|
ledger_account_currency: String,
|
|
192
197
|
ledger_account_currency_exponent: Integer,
|
|
193
198
|
ledger_account_id: String,
|