increase 1.174.0 → 1.175.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +4 -0
- data/lib/increase/models/swift_transfer.rb +478 -0
- data/lib/increase/models/swift_transfer_approve_params.rb +14 -0
- data/lib/increase/models/swift_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/swift_transfer_create_params.rb +253 -0
- data/lib/increase/models/swift_transfer_list_params.rb +159 -0
- data/lib/increase/models/swift_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models.rb +12 -0
- data/lib/increase/resources/swift_transfers.rb +159 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +7 -0
- data/rbi/increase/client.rbi +3 -0
- data/rbi/increase/models/swift_transfer.rbi +732 -0
- data/rbi/increase/models/swift_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/swift_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/swift_transfer_create_params.rbi +391 -0
- data/rbi/increase/models/swift_transfer_list_params.rbi +316 -0
- data/rbi/increase/models/swift_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models.rbi +12 -0
- data/rbi/increase/resources/swift_transfers.rbi +142 -0
- data/sig/increase/client.rbs +2 -0
- data/sig/increase/models/swift_transfer.rbs +349 -0
- data/sig/increase/models/swift_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/swift_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/swift_transfer_create_params.rbs +197 -0
- data/sig/increase/models/swift_transfer_list_params.rbs +161 -0
- data/sig/increase/models/swift_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models.rbs +12 -0
- data/sig/increase/resources/swift_transfers.rbs +49 -0
- metadata +23 -2
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class SwiftTransferListParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::SwiftTransferListParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Filter Swift Transfers to those that originated from the specified Account.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :account_id
|
|
17
|
+
|
|
18
|
+
sig { params(account_id: String).void }
|
|
19
|
+
attr_writer :account_id
|
|
20
|
+
|
|
21
|
+
sig { returns(T.nilable(Increase::SwiftTransferListParams::CreatedAt)) }
|
|
22
|
+
attr_reader :created_at
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
created_at: Increase::SwiftTransferListParams::CreatedAt::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :created_at
|
|
30
|
+
|
|
31
|
+
# Return the page of entries after this one.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :cursor
|
|
34
|
+
|
|
35
|
+
sig { params(cursor: String).void }
|
|
36
|
+
attr_writer :cursor
|
|
37
|
+
|
|
38
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
39
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
40
|
+
# request is only processed once. Learn more about
|
|
41
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_reader :idempotency_key
|
|
44
|
+
|
|
45
|
+
sig { params(idempotency_key: String).void }
|
|
46
|
+
attr_writer :idempotency_key
|
|
47
|
+
|
|
48
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
49
|
+
# objects.
|
|
50
|
+
sig { returns(T.nilable(Integer)) }
|
|
51
|
+
attr_reader :limit
|
|
52
|
+
|
|
53
|
+
sig { params(limit: Integer).void }
|
|
54
|
+
attr_writer :limit
|
|
55
|
+
|
|
56
|
+
sig { returns(T.nilable(Increase::SwiftTransferListParams::Status)) }
|
|
57
|
+
attr_reader :status
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(status: Increase::SwiftTransferListParams::Status::OrHash).void
|
|
61
|
+
end
|
|
62
|
+
attr_writer :status
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
account_id: String,
|
|
67
|
+
created_at: Increase::SwiftTransferListParams::CreatedAt::OrHash,
|
|
68
|
+
cursor: String,
|
|
69
|
+
idempotency_key: String,
|
|
70
|
+
limit: Integer,
|
|
71
|
+
status: Increase::SwiftTransferListParams::Status::OrHash,
|
|
72
|
+
request_options: Increase::RequestOptions::OrHash
|
|
73
|
+
).returns(T.attached_class)
|
|
74
|
+
end
|
|
75
|
+
def self.new(
|
|
76
|
+
# Filter Swift Transfers to those that originated from the specified Account.
|
|
77
|
+
account_id: nil,
|
|
78
|
+
created_at: nil,
|
|
79
|
+
# Return the page of entries after this one.
|
|
80
|
+
cursor: nil,
|
|
81
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
82
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
83
|
+
# request is only processed once. Learn more about
|
|
84
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
85
|
+
idempotency_key: nil,
|
|
86
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
87
|
+
# objects.
|
|
88
|
+
limit: nil,
|
|
89
|
+
status: nil,
|
|
90
|
+
request_options: {}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
sig do
|
|
95
|
+
override.returns(
|
|
96
|
+
{
|
|
97
|
+
account_id: String,
|
|
98
|
+
created_at: Increase::SwiftTransferListParams::CreatedAt,
|
|
99
|
+
cursor: String,
|
|
100
|
+
idempotency_key: String,
|
|
101
|
+
limit: Integer,
|
|
102
|
+
status: Increase::SwiftTransferListParams::Status,
|
|
103
|
+
request_options: Increase::RequestOptions
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
def to_hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
111
|
+
OrHash =
|
|
112
|
+
T.type_alias do
|
|
113
|
+
T.any(
|
|
114
|
+
Increase::SwiftTransferListParams::CreatedAt,
|
|
115
|
+
Increase::Internal::AnyHash
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
120
|
+
# timestamp.
|
|
121
|
+
sig { returns(T.nilable(Time)) }
|
|
122
|
+
attr_reader :after
|
|
123
|
+
|
|
124
|
+
sig { params(after: Time).void }
|
|
125
|
+
attr_writer :after
|
|
126
|
+
|
|
127
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
128
|
+
# timestamp.
|
|
129
|
+
sig { returns(T.nilable(Time)) }
|
|
130
|
+
attr_reader :before
|
|
131
|
+
|
|
132
|
+
sig { params(before: Time).void }
|
|
133
|
+
attr_writer :before
|
|
134
|
+
|
|
135
|
+
# Return results on or after this
|
|
136
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
137
|
+
sig { returns(T.nilable(Time)) }
|
|
138
|
+
attr_reader :on_or_after
|
|
139
|
+
|
|
140
|
+
sig { params(on_or_after: Time).void }
|
|
141
|
+
attr_writer :on_or_after
|
|
142
|
+
|
|
143
|
+
# Return results on or before this
|
|
144
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
145
|
+
sig { returns(T.nilable(Time)) }
|
|
146
|
+
attr_reader :on_or_before
|
|
147
|
+
|
|
148
|
+
sig { params(on_or_before: Time).void }
|
|
149
|
+
attr_writer :on_or_before
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
params(
|
|
153
|
+
after: Time,
|
|
154
|
+
before: Time,
|
|
155
|
+
on_or_after: Time,
|
|
156
|
+
on_or_before: Time
|
|
157
|
+
).returns(T.attached_class)
|
|
158
|
+
end
|
|
159
|
+
def self.new(
|
|
160
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
161
|
+
# timestamp.
|
|
162
|
+
after: nil,
|
|
163
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
164
|
+
# timestamp.
|
|
165
|
+
before: nil,
|
|
166
|
+
# Return results on or after this
|
|
167
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
168
|
+
on_or_after: nil,
|
|
169
|
+
# Return results on or before this
|
|
170
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
171
|
+
on_or_before: nil
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
sig do
|
|
176
|
+
override.returns(
|
|
177
|
+
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
def to_hash
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
class Status < Increase::Internal::Type::BaseModel
|
|
185
|
+
OrHash =
|
|
186
|
+
T.type_alias do
|
|
187
|
+
T.any(
|
|
188
|
+
Increase::SwiftTransferListParams::Status,
|
|
189
|
+
Increase::Internal::AnyHash
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Return results whose value is in the provided list. For GET requests, this
|
|
194
|
+
# should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
195
|
+
sig do
|
|
196
|
+
returns(
|
|
197
|
+
T.nilable(
|
|
198
|
+
T::Array[Increase::SwiftTransferListParams::Status::In::OrSymbol]
|
|
199
|
+
)
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
attr_reader :in_
|
|
203
|
+
|
|
204
|
+
sig do
|
|
205
|
+
params(
|
|
206
|
+
in_:
|
|
207
|
+
T::Array[Increase::SwiftTransferListParams::Status::In::OrSymbol]
|
|
208
|
+
).void
|
|
209
|
+
end
|
|
210
|
+
attr_writer :in_
|
|
211
|
+
|
|
212
|
+
sig do
|
|
213
|
+
params(
|
|
214
|
+
in_:
|
|
215
|
+
T::Array[Increase::SwiftTransferListParams::Status::In::OrSymbol]
|
|
216
|
+
).returns(T.attached_class)
|
|
217
|
+
end
|
|
218
|
+
def self.new(
|
|
219
|
+
# Return results whose value is in the provided list. For GET requests, this
|
|
220
|
+
# should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
221
|
+
in_: nil
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
sig do
|
|
226
|
+
override.returns(
|
|
227
|
+
{
|
|
228
|
+
in_:
|
|
229
|
+
T::Array[
|
|
230
|
+
Increase::SwiftTransferListParams::Status::In::OrSymbol
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
def to_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
module In
|
|
239
|
+
extend Increase::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
TaggedSymbol =
|
|
242
|
+
T.type_alias do
|
|
243
|
+
T.all(Symbol, Increase::SwiftTransferListParams::Status::In)
|
|
244
|
+
end
|
|
245
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
246
|
+
|
|
247
|
+
# The transfer is pending approval.
|
|
248
|
+
PENDING_APPROVAL =
|
|
249
|
+
T.let(
|
|
250
|
+
:pending_approval,
|
|
251
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
# The transfer has been canceled.
|
|
255
|
+
CANCELED =
|
|
256
|
+
T.let(
|
|
257
|
+
:canceled,
|
|
258
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
# The transfer is pending review by Increase.
|
|
262
|
+
PENDING_REVIEWING =
|
|
263
|
+
T.let(
|
|
264
|
+
:pending_reviewing,
|
|
265
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
# The transfer requires attention from an Increase operator.
|
|
269
|
+
REQUIRES_ATTENTION =
|
|
270
|
+
T.let(
|
|
271
|
+
:requires_attention,
|
|
272
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
# The transfer is pending initiation.
|
|
276
|
+
PENDING_INITIATING =
|
|
277
|
+
T.let(
|
|
278
|
+
:pending_initiating,
|
|
279
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
# The transfer has been initiated.
|
|
283
|
+
INITIATED =
|
|
284
|
+
T.let(
|
|
285
|
+
:initiated,
|
|
286
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
# The transfer has been rejected by Increase.
|
|
290
|
+
REJECTED =
|
|
291
|
+
T.let(
|
|
292
|
+
:rejected,
|
|
293
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
# The transfer has been returned.
|
|
297
|
+
RETURNED =
|
|
298
|
+
T.let(
|
|
299
|
+
:returned,
|
|
300
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
sig do
|
|
304
|
+
override.returns(
|
|
305
|
+
T::Array[
|
|
306
|
+
Increase::SwiftTransferListParams::Status::In::TaggedSymbol
|
|
307
|
+
]
|
|
308
|
+
)
|
|
309
|
+
end
|
|
310
|
+
def self.values
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class SwiftTransferRetrieveParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::SwiftTransferRetrieveParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/rbi/increase/models.rbi
CHANGED
|
@@ -546,6 +546,18 @@ module Increase
|
|
|
546
546
|
SupplementalDocumentListParams =
|
|
547
547
|
Increase::Models::SupplementalDocumentListParams
|
|
548
548
|
|
|
549
|
+
SwiftTransfer = Increase::Models::SwiftTransfer
|
|
550
|
+
|
|
551
|
+
SwiftTransferApproveParams = Increase::Models::SwiftTransferApproveParams
|
|
552
|
+
|
|
553
|
+
SwiftTransferCancelParams = Increase::Models::SwiftTransferCancelParams
|
|
554
|
+
|
|
555
|
+
SwiftTransferCreateParams = Increase::Models::SwiftTransferCreateParams
|
|
556
|
+
|
|
557
|
+
SwiftTransferListParams = Increase::Models::SwiftTransferListParams
|
|
558
|
+
|
|
559
|
+
SwiftTransferRetrieveParams = Increase::Models::SwiftTransferRetrieveParams
|
|
560
|
+
|
|
549
561
|
Transaction = Increase::Models::Transaction
|
|
550
562
|
|
|
551
563
|
TransactionListParams = Increase::Models::TransactionListParams
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class SwiftTransfers
|
|
6
|
+
# Create a Swift Transfer
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
account_id: String,
|
|
10
|
+
account_number: String,
|
|
11
|
+
bank_identification_code: String,
|
|
12
|
+
creditor_address:
|
|
13
|
+
Increase::SwiftTransferCreateParams::CreditorAddress::OrHash,
|
|
14
|
+
creditor_name: String,
|
|
15
|
+
debtor_address:
|
|
16
|
+
Increase::SwiftTransferCreateParams::DebtorAddress::OrHash,
|
|
17
|
+
debtor_name: String,
|
|
18
|
+
instructed_amount: Integer,
|
|
19
|
+
instructed_currency:
|
|
20
|
+
Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol,
|
|
21
|
+
source_account_number_id: String,
|
|
22
|
+
unstructured_remittance_information: String,
|
|
23
|
+
require_approval: T::Boolean,
|
|
24
|
+
routing_number: String,
|
|
25
|
+
request_options: Increase::RequestOptions::OrHash
|
|
26
|
+
).returns(Increase::SwiftTransfer)
|
|
27
|
+
end
|
|
28
|
+
def create(
|
|
29
|
+
# The identifier for the account that will send the transfer.
|
|
30
|
+
account_id:,
|
|
31
|
+
# The creditor's account number.
|
|
32
|
+
account_number:,
|
|
33
|
+
# The bank identification code (BIC) of the creditor. If it ends with the
|
|
34
|
+
# three-character branch code, this must be 11 characters long. Otherwise this
|
|
35
|
+
# must be 8 characters and the branch code will be assumed to be `XXX`.
|
|
36
|
+
bank_identification_code:,
|
|
37
|
+
# The creditor's address.
|
|
38
|
+
creditor_address:,
|
|
39
|
+
# The creditor's name.
|
|
40
|
+
creditor_name:,
|
|
41
|
+
# The debtor's address.
|
|
42
|
+
debtor_address:,
|
|
43
|
+
# The debtor's name.
|
|
44
|
+
debtor_name:,
|
|
45
|
+
# The amount, in minor units of `instructed_currency`, to send to the creditor.
|
|
46
|
+
instructed_amount:,
|
|
47
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
48
|
+
# instructed amount.
|
|
49
|
+
instructed_currency:,
|
|
50
|
+
# The Account Number to include in the transfer as the debtor's account number.
|
|
51
|
+
source_account_number_id:,
|
|
52
|
+
# Unstructured remittance information to include in the transfer.
|
|
53
|
+
unstructured_remittance_information:,
|
|
54
|
+
# Whether the transfer requires explicit approval via the dashboard or API.
|
|
55
|
+
require_approval: nil,
|
|
56
|
+
# The creditor's bank account routing or transit number. Required in certain
|
|
57
|
+
# countries.
|
|
58
|
+
routing_number: nil,
|
|
59
|
+
request_options: {}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Retrieve a Swift Transfer
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
swift_transfer_id: String,
|
|
67
|
+
request_options: Increase::RequestOptions::OrHash
|
|
68
|
+
).returns(Increase::SwiftTransfer)
|
|
69
|
+
end
|
|
70
|
+
def retrieve(
|
|
71
|
+
# The identifier of the Swift Transfer.
|
|
72
|
+
swift_transfer_id,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# List Swift Transfers
|
|
78
|
+
sig do
|
|
79
|
+
params(
|
|
80
|
+
account_id: String,
|
|
81
|
+
created_at: Increase::SwiftTransferListParams::CreatedAt::OrHash,
|
|
82
|
+
cursor: String,
|
|
83
|
+
idempotency_key: String,
|
|
84
|
+
limit: Integer,
|
|
85
|
+
status: Increase::SwiftTransferListParams::Status::OrHash,
|
|
86
|
+
request_options: Increase::RequestOptions::OrHash
|
|
87
|
+
).returns(Increase::Internal::Page[Increase::SwiftTransfer])
|
|
88
|
+
end
|
|
89
|
+
def list(
|
|
90
|
+
# Filter Swift Transfers to those that originated from the specified Account.
|
|
91
|
+
account_id: nil,
|
|
92
|
+
created_at: nil,
|
|
93
|
+
# Return the page of entries after this one.
|
|
94
|
+
cursor: nil,
|
|
95
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
96
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
97
|
+
# request is only processed once. Learn more about
|
|
98
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
99
|
+
idempotency_key: nil,
|
|
100
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
101
|
+
# objects.
|
|
102
|
+
limit: nil,
|
|
103
|
+
status: nil,
|
|
104
|
+
request_options: {}
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Approve a Swift Transfer
|
|
109
|
+
sig do
|
|
110
|
+
params(
|
|
111
|
+
swift_transfer_id: String,
|
|
112
|
+
request_options: Increase::RequestOptions::OrHash
|
|
113
|
+
).returns(Increase::SwiftTransfer)
|
|
114
|
+
end
|
|
115
|
+
def approve(
|
|
116
|
+
# The identifier of the Swift Transfer to approve.
|
|
117
|
+
swift_transfer_id,
|
|
118
|
+
request_options: {}
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Cancel a pending Swift Transfer
|
|
123
|
+
sig do
|
|
124
|
+
params(
|
|
125
|
+
swift_transfer_id: String,
|
|
126
|
+
request_options: Increase::RequestOptions::OrHash
|
|
127
|
+
).returns(Increase::SwiftTransfer)
|
|
128
|
+
end
|
|
129
|
+
def cancel(
|
|
130
|
+
# The identifier of the pending Swift Transfer to cancel.
|
|
131
|
+
swift_transfer_id,
|
|
132
|
+
request_options: {}
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @api private
|
|
137
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
138
|
+
def self.new(client:)
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
data/sig/increase/client.rbs
CHANGED
|
@@ -69,6 +69,8 @@ module Increase
|
|
|
69
69
|
|
|
70
70
|
attr_reader inbound_fednow_transfers: Increase::Resources::InboundFednowTransfers
|
|
71
71
|
|
|
72
|
+
attr_reader swift_transfers: Increase::Resources::SwiftTransfers
|
|
73
|
+
|
|
72
74
|
attr_reader check_deposits: Increase::Resources::CheckDeposits
|
|
73
75
|
|
|
74
76
|
attr_reader lockboxes: Increase::Resources::Lockboxes
|