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,732 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class SwiftTransfer < Increase::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Increase::SwiftTransfer, Increase::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The Swift transfer's identifier.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The Account to which the transfer belongs.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :account_id
|
|
18
|
+
|
|
19
|
+
# The creditor's account number.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :account_number
|
|
22
|
+
|
|
23
|
+
# The transfer amount in USD cents.
|
|
24
|
+
sig { returns(Integer) }
|
|
25
|
+
attr_accessor :amount
|
|
26
|
+
|
|
27
|
+
# The bank identification code (BIC) of the creditor.
|
|
28
|
+
sig { returns(String) }
|
|
29
|
+
attr_accessor :bank_identification_code
|
|
30
|
+
|
|
31
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
32
|
+
# the transfer was created.
|
|
33
|
+
sig { returns(Time) }
|
|
34
|
+
attr_accessor :created_at
|
|
35
|
+
|
|
36
|
+
# What object created the transfer, either via the API or the dashboard.
|
|
37
|
+
sig { returns(Increase::SwiftTransfer::CreatedBy) }
|
|
38
|
+
attr_reader :created_by
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(created_by: Increase::SwiftTransfer::CreatedBy::OrHash).void
|
|
42
|
+
end
|
|
43
|
+
attr_writer :created_by
|
|
44
|
+
|
|
45
|
+
# The creditor's address.
|
|
46
|
+
sig { returns(Increase::SwiftTransfer::CreditorAddress) }
|
|
47
|
+
attr_reader :creditor_address
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
params(
|
|
51
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress::OrHash
|
|
52
|
+
).void
|
|
53
|
+
end
|
|
54
|
+
attr_writer :creditor_address
|
|
55
|
+
|
|
56
|
+
# The creditor's name.
|
|
57
|
+
sig { returns(String) }
|
|
58
|
+
attr_accessor :creditor_name
|
|
59
|
+
|
|
60
|
+
# The debtor's address.
|
|
61
|
+
sig { returns(Increase::SwiftTransfer::DebtorAddress) }
|
|
62
|
+
attr_reader :debtor_address
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress::OrHash
|
|
67
|
+
).void
|
|
68
|
+
end
|
|
69
|
+
attr_writer :debtor_address
|
|
70
|
+
|
|
71
|
+
# The debtor's name.
|
|
72
|
+
sig { returns(String) }
|
|
73
|
+
attr_accessor :debtor_name
|
|
74
|
+
|
|
75
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
76
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
77
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
78
|
+
sig { returns(T.nilable(String)) }
|
|
79
|
+
attr_accessor :idempotency_key
|
|
80
|
+
|
|
81
|
+
# The amount that was instructed to be transferred in minor units of the
|
|
82
|
+
# `instructed_currency`.
|
|
83
|
+
sig { returns(Integer) }
|
|
84
|
+
attr_accessor :instructed_amount
|
|
85
|
+
|
|
86
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
87
|
+
# instructed amount.
|
|
88
|
+
sig { returns(Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol) }
|
|
89
|
+
attr_accessor :instructed_currency
|
|
90
|
+
|
|
91
|
+
# The ID for the pending transaction representing the transfer.
|
|
92
|
+
sig { returns(T.nilable(String)) }
|
|
93
|
+
attr_accessor :pending_transaction_id
|
|
94
|
+
|
|
95
|
+
# The creditor's bank account routing or transit number. Required in certain
|
|
96
|
+
# countries.
|
|
97
|
+
sig { returns(T.nilable(String)) }
|
|
98
|
+
attr_accessor :routing_number
|
|
99
|
+
|
|
100
|
+
# The Account Number included in the transfer as the debtor's account number.
|
|
101
|
+
sig { returns(String) }
|
|
102
|
+
attr_accessor :source_account_number_id
|
|
103
|
+
|
|
104
|
+
# The lifecycle status of the transfer.
|
|
105
|
+
sig { returns(Increase::SwiftTransfer::Status::TaggedSymbol) }
|
|
106
|
+
attr_accessor :status
|
|
107
|
+
|
|
108
|
+
# The ID for the transaction funding the transfer. This will be populated after
|
|
109
|
+
# the transfer is initiated.
|
|
110
|
+
sig { returns(T.nilable(String)) }
|
|
111
|
+
attr_accessor :transaction_id
|
|
112
|
+
|
|
113
|
+
# A constant representing the object's type. For this resource it will always be
|
|
114
|
+
# `swift_transfer`.
|
|
115
|
+
sig { returns(Increase::SwiftTransfer::Type::TaggedSymbol) }
|
|
116
|
+
attr_accessor :type
|
|
117
|
+
|
|
118
|
+
# The Unique End-to-end Transaction Reference
|
|
119
|
+
# ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
|
|
120
|
+
# for the transfer.
|
|
121
|
+
sig { returns(String) }
|
|
122
|
+
attr_accessor :unique_end_to_end_transaction_reference
|
|
123
|
+
|
|
124
|
+
# The unstructured remittance information that was included with the transfer.
|
|
125
|
+
sig { returns(String) }
|
|
126
|
+
attr_accessor :unstructured_remittance_information
|
|
127
|
+
|
|
128
|
+
# Swift Transfers send funds internationally.
|
|
129
|
+
sig do
|
|
130
|
+
params(
|
|
131
|
+
id: String,
|
|
132
|
+
account_id: String,
|
|
133
|
+
account_number: String,
|
|
134
|
+
amount: Integer,
|
|
135
|
+
bank_identification_code: String,
|
|
136
|
+
created_at: Time,
|
|
137
|
+
created_by: Increase::SwiftTransfer::CreatedBy::OrHash,
|
|
138
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress::OrHash,
|
|
139
|
+
creditor_name: String,
|
|
140
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress::OrHash,
|
|
141
|
+
debtor_name: String,
|
|
142
|
+
idempotency_key: T.nilable(String),
|
|
143
|
+
instructed_amount: Integer,
|
|
144
|
+
instructed_currency:
|
|
145
|
+
Increase::SwiftTransfer::InstructedCurrency::OrSymbol,
|
|
146
|
+
pending_transaction_id: T.nilable(String),
|
|
147
|
+
routing_number: T.nilable(String),
|
|
148
|
+
source_account_number_id: String,
|
|
149
|
+
status: Increase::SwiftTransfer::Status::OrSymbol,
|
|
150
|
+
transaction_id: T.nilable(String),
|
|
151
|
+
type: Increase::SwiftTransfer::Type::OrSymbol,
|
|
152
|
+
unique_end_to_end_transaction_reference: String,
|
|
153
|
+
unstructured_remittance_information: String
|
|
154
|
+
).returns(T.attached_class)
|
|
155
|
+
end
|
|
156
|
+
def self.new(
|
|
157
|
+
# The Swift transfer's identifier.
|
|
158
|
+
id:,
|
|
159
|
+
# The Account to which the transfer belongs.
|
|
160
|
+
account_id:,
|
|
161
|
+
# The creditor's account number.
|
|
162
|
+
account_number:,
|
|
163
|
+
# The transfer amount in USD cents.
|
|
164
|
+
amount:,
|
|
165
|
+
# The bank identification code (BIC) of the creditor.
|
|
166
|
+
bank_identification_code:,
|
|
167
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
168
|
+
# the transfer was created.
|
|
169
|
+
created_at:,
|
|
170
|
+
# What object created the transfer, either via the API or the dashboard.
|
|
171
|
+
created_by:,
|
|
172
|
+
# The creditor's address.
|
|
173
|
+
creditor_address:,
|
|
174
|
+
# The creditor's name.
|
|
175
|
+
creditor_name:,
|
|
176
|
+
# The debtor's address.
|
|
177
|
+
debtor_address:,
|
|
178
|
+
# The debtor's name.
|
|
179
|
+
debtor_name:,
|
|
180
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
181
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
182
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
183
|
+
idempotency_key:,
|
|
184
|
+
# The amount that was instructed to be transferred in minor units of the
|
|
185
|
+
# `instructed_currency`.
|
|
186
|
+
instructed_amount:,
|
|
187
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
188
|
+
# instructed amount.
|
|
189
|
+
instructed_currency:,
|
|
190
|
+
# The ID for the pending transaction representing the transfer.
|
|
191
|
+
pending_transaction_id:,
|
|
192
|
+
# The creditor's bank account routing or transit number. Required in certain
|
|
193
|
+
# countries.
|
|
194
|
+
routing_number:,
|
|
195
|
+
# The Account Number included in the transfer as the debtor's account number.
|
|
196
|
+
source_account_number_id:,
|
|
197
|
+
# The lifecycle status of the transfer.
|
|
198
|
+
status:,
|
|
199
|
+
# The ID for the transaction funding the transfer. This will be populated after
|
|
200
|
+
# the transfer is initiated.
|
|
201
|
+
transaction_id:,
|
|
202
|
+
# A constant representing the object's type. For this resource it will always be
|
|
203
|
+
# `swift_transfer`.
|
|
204
|
+
type:,
|
|
205
|
+
# The Unique End-to-end Transaction Reference
|
|
206
|
+
# ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
|
|
207
|
+
# for the transfer.
|
|
208
|
+
unique_end_to_end_transaction_reference:,
|
|
209
|
+
# The unstructured remittance information that was included with the transfer.
|
|
210
|
+
unstructured_remittance_information:
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
sig do
|
|
215
|
+
override.returns(
|
|
216
|
+
{
|
|
217
|
+
id: String,
|
|
218
|
+
account_id: String,
|
|
219
|
+
account_number: String,
|
|
220
|
+
amount: Integer,
|
|
221
|
+
bank_identification_code: String,
|
|
222
|
+
created_at: Time,
|
|
223
|
+
created_by: Increase::SwiftTransfer::CreatedBy,
|
|
224
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress,
|
|
225
|
+
creditor_name: String,
|
|
226
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress,
|
|
227
|
+
debtor_name: String,
|
|
228
|
+
idempotency_key: T.nilable(String),
|
|
229
|
+
instructed_amount: Integer,
|
|
230
|
+
instructed_currency:
|
|
231
|
+
Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol,
|
|
232
|
+
pending_transaction_id: T.nilable(String),
|
|
233
|
+
routing_number: T.nilable(String),
|
|
234
|
+
source_account_number_id: String,
|
|
235
|
+
status: Increase::SwiftTransfer::Status::TaggedSymbol,
|
|
236
|
+
transaction_id: T.nilable(String),
|
|
237
|
+
type: Increase::SwiftTransfer::Type::TaggedSymbol,
|
|
238
|
+
unique_end_to_end_transaction_reference: String,
|
|
239
|
+
unstructured_remittance_information: String
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
def to_hash
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
class CreatedBy < Increase::Internal::Type::BaseModel
|
|
247
|
+
OrHash =
|
|
248
|
+
T.type_alias do
|
|
249
|
+
T.any(
|
|
250
|
+
Increase::SwiftTransfer::CreatedBy,
|
|
251
|
+
Increase::Internal::AnyHash
|
|
252
|
+
)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# If present, details about the API key that created the transfer.
|
|
256
|
+
sig { returns(T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey)) }
|
|
257
|
+
attr_reader :api_key
|
|
258
|
+
|
|
259
|
+
sig do
|
|
260
|
+
params(
|
|
261
|
+
api_key:
|
|
262
|
+
T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey::OrHash)
|
|
263
|
+
).void
|
|
264
|
+
end
|
|
265
|
+
attr_writer :api_key
|
|
266
|
+
|
|
267
|
+
# The type of object that created this transfer.
|
|
268
|
+
sig do
|
|
269
|
+
returns(Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol)
|
|
270
|
+
end
|
|
271
|
+
attr_accessor :category
|
|
272
|
+
|
|
273
|
+
# If present, details about the OAuth Application that created the transfer.
|
|
274
|
+
sig do
|
|
275
|
+
returns(
|
|
276
|
+
T.nilable(Increase::SwiftTransfer::CreatedBy::OAuthApplication)
|
|
277
|
+
)
|
|
278
|
+
end
|
|
279
|
+
attr_reader :oauth_application
|
|
280
|
+
|
|
281
|
+
sig do
|
|
282
|
+
params(
|
|
283
|
+
oauth_application:
|
|
284
|
+
T.nilable(
|
|
285
|
+
Increase::SwiftTransfer::CreatedBy::OAuthApplication::OrHash
|
|
286
|
+
)
|
|
287
|
+
).void
|
|
288
|
+
end
|
|
289
|
+
attr_writer :oauth_application
|
|
290
|
+
|
|
291
|
+
# If present, details about the User that created the transfer.
|
|
292
|
+
sig { returns(T.nilable(Increase::SwiftTransfer::CreatedBy::User)) }
|
|
293
|
+
attr_reader :user
|
|
294
|
+
|
|
295
|
+
sig do
|
|
296
|
+
params(
|
|
297
|
+
user: T.nilable(Increase::SwiftTransfer::CreatedBy::User::OrHash)
|
|
298
|
+
).void
|
|
299
|
+
end
|
|
300
|
+
attr_writer :user
|
|
301
|
+
|
|
302
|
+
# What object created the transfer, either via the API or the dashboard.
|
|
303
|
+
sig do
|
|
304
|
+
params(
|
|
305
|
+
api_key:
|
|
306
|
+
T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey::OrHash),
|
|
307
|
+
category: Increase::SwiftTransfer::CreatedBy::Category::OrSymbol,
|
|
308
|
+
oauth_application:
|
|
309
|
+
T.nilable(
|
|
310
|
+
Increase::SwiftTransfer::CreatedBy::OAuthApplication::OrHash
|
|
311
|
+
),
|
|
312
|
+
user: T.nilable(Increase::SwiftTransfer::CreatedBy::User::OrHash)
|
|
313
|
+
).returns(T.attached_class)
|
|
314
|
+
end
|
|
315
|
+
def self.new(
|
|
316
|
+
# If present, details about the API key that created the transfer.
|
|
317
|
+
api_key:,
|
|
318
|
+
# The type of object that created this transfer.
|
|
319
|
+
category:,
|
|
320
|
+
# If present, details about the OAuth Application that created the transfer.
|
|
321
|
+
oauth_application:,
|
|
322
|
+
# If present, details about the User that created the transfer.
|
|
323
|
+
user:
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
sig do
|
|
328
|
+
override.returns(
|
|
329
|
+
{
|
|
330
|
+
api_key: T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey),
|
|
331
|
+
category:
|
|
332
|
+
Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol,
|
|
333
|
+
oauth_application:
|
|
334
|
+
T.nilable(Increase::SwiftTransfer::CreatedBy::OAuthApplication),
|
|
335
|
+
user: T.nilable(Increase::SwiftTransfer::CreatedBy::User)
|
|
336
|
+
}
|
|
337
|
+
)
|
|
338
|
+
end
|
|
339
|
+
def to_hash
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
class APIKey < Increase::Internal::Type::BaseModel
|
|
343
|
+
OrHash =
|
|
344
|
+
T.type_alias do
|
|
345
|
+
T.any(
|
|
346
|
+
Increase::SwiftTransfer::CreatedBy::APIKey,
|
|
347
|
+
Increase::Internal::AnyHash
|
|
348
|
+
)
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# The description set for the API key when it was created.
|
|
352
|
+
sig { returns(T.nilable(String)) }
|
|
353
|
+
attr_accessor :description
|
|
354
|
+
|
|
355
|
+
# If present, details about the API key that created the transfer.
|
|
356
|
+
sig do
|
|
357
|
+
params(description: T.nilable(String)).returns(T.attached_class)
|
|
358
|
+
end
|
|
359
|
+
def self.new(
|
|
360
|
+
# The description set for the API key when it was created.
|
|
361
|
+
description:
|
|
362
|
+
)
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
sig { override.returns({ description: T.nilable(String) }) }
|
|
366
|
+
def to_hash
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# The type of object that created this transfer.
|
|
371
|
+
module Category
|
|
372
|
+
extend Increase::Internal::Type::Enum
|
|
373
|
+
|
|
374
|
+
TaggedSymbol =
|
|
375
|
+
T.type_alias do
|
|
376
|
+
T.all(Symbol, Increase::SwiftTransfer::CreatedBy::Category)
|
|
377
|
+
end
|
|
378
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
379
|
+
|
|
380
|
+
# An API key. Details will be under the `api_key` object.
|
|
381
|
+
API_KEY =
|
|
382
|
+
T.let(
|
|
383
|
+
:api_key,
|
|
384
|
+
Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
# An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
|
|
388
|
+
OAUTH_APPLICATION =
|
|
389
|
+
T.let(
|
|
390
|
+
:oauth_application,
|
|
391
|
+
Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
# A User in the Increase dashboard. Details will be under the `user` object.
|
|
395
|
+
USER =
|
|
396
|
+
T.let(
|
|
397
|
+
:user,
|
|
398
|
+
Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
sig do
|
|
402
|
+
override.returns(
|
|
403
|
+
T::Array[
|
|
404
|
+
Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol
|
|
405
|
+
]
|
|
406
|
+
)
|
|
407
|
+
end
|
|
408
|
+
def self.values
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
class OAuthApplication < Increase::Internal::Type::BaseModel
|
|
413
|
+
OrHash =
|
|
414
|
+
T.type_alias do
|
|
415
|
+
T.any(
|
|
416
|
+
Increase::SwiftTransfer::CreatedBy::OAuthApplication,
|
|
417
|
+
Increase::Internal::AnyHash
|
|
418
|
+
)
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# The name of the OAuth Application.
|
|
422
|
+
sig { returns(String) }
|
|
423
|
+
attr_accessor :name
|
|
424
|
+
|
|
425
|
+
# If present, details about the OAuth Application that created the transfer.
|
|
426
|
+
sig { params(name: String).returns(T.attached_class) }
|
|
427
|
+
def self.new(
|
|
428
|
+
# The name of the OAuth Application.
|
|
429
|
+
name:
|
|
430
|
+
)
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
sig { override.returns({ name: String }) }
|
|
434
|
+
def to_hash
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
class User < Increase::Internal::Type::BaseModel
|
|
439
|
+
OrHash =
|
|
440
|
+
T.type_alias do
|
|
441
|
+
T.any(
|
|
442
|
+
Increase::SwiftTransfer::CreatedBy::User,
|
|
443
|
+
Increase::Internal::AnyHash
|
|
444
|
+
)
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# The email address of the User.
|
|
448
|
+
sig { returns(String) }
|
|
449
|
+
attr_accessor :email
|
|
450
|
+
|
|
451
|
+
# If present, details about the User that created the transfer.
|
|
452
|
+
sig { params(email: String).returns(T.attached_class) }
|
|
453
|
+
def self.new(
|
|
454
|
+
# The email address of the User.
|
|
455
|
+
email:
|
|
456
|
+
)
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
sig { override.returns({ email: String }) }
|
|
460
|
+
def to_hash
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
class CreditorAddress < Increase::Internal::Type::BaseModel
|
|
466
|
+
OrHash =
|
|
467
|
+
T.type_alias do
|
|
468
|
+
T.any(
|
|
469
|
+
Increase::SwiftTransfer::CreditorAddress,
|
|
470
|
+
Increase::Internal::AnyHash
|
|
471
|
+
)
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
# The city, district, town, or village of the address.
|
|
475
|
+
sig { returns(T.nilable(String)) }
|
|
476
|
+
attr_accessor :city
|
|
477
|
+
|
|
478
|
+
# The two-letter
|
|
479
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
480
|
+
# the country of the address.
|
|
481
|
+
sig { returns(String) }
|
|
482
|
+
attr_accessor :country
|
|
483
|
+
|
|
484
|
+
# The first line of the address.
|
|
485
|
+
sig { returns(String) }
|
|
486
|
+
attr_accessor :line1
|
|
487
|
+
|
|
488
|
+
# The second line of the address.
|
|
489
|
+
sig { returns(T.nilable(String)) }
|
|
490
|
+
attr_accessor :line2
|
|
491
|
+
|
|
492
|
+
# The ZIP or postal code of the address.
|
|
493
|
+
sig { returns(T.nilable(String)) }
|
|
494
|
+
attr_accessor :postal_code
|
|
495
|
+
|
|
496
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
497
|
+
sig { returns(T.nilable(String)) }
|
|
498
|
+
attr_accessor :state
|
|
499
|
+
|
|
500
|
+
# The creditor's address.
|
|
501
|
+
sig do
|
|
502
|
+
params(
|
|
503
|
+
city: T.nilable(String),
|
|
504
|
+
country: String,
|
|
505
|
+
line1: String,
|
|
506
|
+
line2: T.nilable(String),
|
|
507
|
+
postal_code: T.nilable(String),
|
|
508
|
+
state: T.nilable(String)
|
|
509
|
+
).returns(T.attached_class)
|
|
510
|
+
end
|
|
511
|
+
def self.new(
|
|
512
|
+
# The city, district, town, or village of the address.
|
|
513
|
+
city:,
|
|
514
|
+
# The two-letter
|
|
515
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
516
|
+
# the country of the address.
|
|
517
|
+
country:,
|
|
518
|
+
# The first line of the address.
|
|
519
|
+
line1:,
|
|
520
|
+
# The second line of the address.
|
|
521
|
+
line2:,
|
|
522
|
+
# The ZIP or postal code of the address.
|
|
523
|
+
postal_code:,
|
|
524
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
525
|
+
state:
|
|
526
|
+
)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
sig do
|
|
530
|
+
override.returns(
|
|
531
|
+
{
|
|
532
|
+
city: T.nilable(String),
|
|
533
|
+
country: String,
|
|
534
|
+
line1: String,
|
|
535
|
+
line2: T.nilable(String),
|
|
536
|
+
postal_code: T.nilable(String),
|
|
537
|
+
state: T.nilable(String)
|
|
538
|
+
}
|
|
539
|
+
)
|
|
540
|
+
end
|
|
541
|
+
def to_hash
|
|
542
|
+
end
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
class DebtorAddress < Increase::Internal::Type::BaseModel
|
|
546
|
+
OrHash =
|
|
547
|
+
T.type_alias do
|
|
548
|
+
T.any(
|
|
549
|
+
Increase::SwiftTransfer::DebtorAddress,
|
|
550
|
+
Increase::Internal::AnyHash
|
|
551
|
+
)
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# The city, district, town, or village of the address.
|
|
555
|
+
sig { returns(T.nilable(String)) }
|
|
556
|
+
attr_accessor :city
|
|
557
|
+
|
|
558
|
+
# The two-letter
|
|
559
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
560
|
+
# the country of the address.
|
|
561
|
+
sig { returns(String) }
|
|
562
|
+
attr_accessor :country
|
|
563
|
+
|
|
564
|
+
# The first line of the address.
|
|
565
|
+
sig { returns(String) }
|
|
566
|
+
attr_accessor :line1
|
|
567
|
+
|
|
568
|
+
# The second line of the address.
|
|
569
|
+
sig { returns(T.nilable(String)) }
|
|
570
|
+
attr_accessor :line2
|
|
571
|
+
|
|
572
|
+
# The ZIP or postal code of the address.
|
|
573
|
+
sig { returns(T.nilable(String)) }
|
|
574
|
+
attr_accessor :postal_code
|
|
575
|
+
|
|
576
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
577
|
+
sig { returns(T.nilable(String)) }
|
|
578
|
+
attr_accessor :state
|
|
579
|
+
|
|
580
|
+
# The debtor's address.
|
|
581
|
+
sig do
|
|
582
|
+
params(
|
|
583
|
+
city: T.nilable(String),
|
|
584
|
+
country: String,
|
|
585
|
+
line1: String,
|
|
586
|
+
line2: T.nilable(String),
|
|
587
|
+
postal_code: T.nilable(String),
|
|
588
|
+
state: T.nilable(String)
|
|
589
|
+
).returns(T.attached_class)
|
|
590
|
+
end
|
|
591
|
+
def self.new(
|
|
592
|
+
# The city, district, town, or village of the address.
|
|
593
|
+
city:,
|
|
594
|
+
# The two-letter
|
|
595
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
596
|
+
# the country of the address.
|
|
597
|
+
country:,
|
|
598
|
+
# The first line of the address.
|
|
599
|
+
line1:,
|
|
600
|
+
# The second line of the address.
|
|
601
|
+
line2:,
|
|
602
|
+
# The ZIP or postal code of the address.
|
|
603
|
+
postal_code:,
|
|
604
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
605
|
+
state:
|
|
606
|
+
)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
sig do
|
|
610
|
+
override.returns(
|
|
611
|
+
{
|
|
612
|
+
city: T.nilable(String),
|
|
613
|
+
country: String,
|
|
614
|
+
line1: String,
|
|
615
|
+
line2: T.nilable(String),
|
|
616
|
+
postal_code: T.nilable(String),
|
|
617
|
+
state: T.nilable(String)
|
|
618
|
+
}
|
|
619
|
+
)
|
|
620
|
+
end
|
|
621
|
+
def to_hash
|
|
622
|
+
end
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
626
|
+
# instructed amount.
|
|
627
|
+
module InstructedCurrency
|
|
628
|
+
extend Increase::Internal::Type::Enum
|
|
629
|
+
|
|
630
|
+
TaggedSymbol =
|
|
631
|
+
T.type_alias do
|
|
632
|
+
T.all(Symbol, Increase::SwiftTransfer::InstructedCurrency)
|
|
633
|
+
end
|
|
634
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
635
|
+
|
|
636
|
+
# United States Dollar
|
|
637
|
+
USD =
|
|
638
|
+
T.let(:USD, Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol)
|
|
639
|
+
|
|
640
|
+
sig do
|
|
641
|
+
override.returns(
|
|
642
|
+
T::Array[Increase::SwiftTransfer::InstructedCurrency::TaggedSymbol]
|
|
643
|
+
)
|
|
644
|
+
end
|
|
645
|
+
def self.values
|
|
646
|
+
end
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
# The lifecycle status of the transfer.
|
|
650
|
+
module Status
|
|
651
|
+
extend Increase::Internal::Type::Enum
|
|
652
|
+
|
|
653
|
+
TaggedSymbol =
|
|
654
|
+
T.type_alias { T.all(Symbol, Increase::SwiftTransfer::Status) }
|
|
655
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
656
|
+
|
|
657
|
+
# The transfer is pending approval.
|
|
658
|
+
PENDING_APPROVAL =
|
|
659
|
+
T.let(
|
|
660
|
+
:pending_approval,
|
|
661
|
+
Increase::SwiftTransfer::Status::TaggedSymbol
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
# The transfer has been canceled.
|
|
665
|
+
CANCELED =
|
|
666
|
+
T.let(:canceled, Increase::SwiftTransfer::Status::TaggedSymbol)
|
|
667
|
+
|
|
668
|
+
# The transfer is pending review by Increase.
|
|
669
|
+
PENDING_REVIEWING =
|
|
670
|
+
T.let(
|
|
671
|
+
:pending_reviewing,
|
|
672
|
+
Increase::SwiftTransfer::Status::TaggedSymbol
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
# The transfer requires attention from an Increase operator.
|
|
676
|
+
REQUIRES_ATTENTION =
|
|
677
|
+
T.let(
|
|
678
|
+
:requires_attention,
|
|
679
|
+
Increase::SwiftTransfer::Status::TaggedSymbol
|
|
680
|
+
)
|
|
681
|
+
|
|
682
|
+
# The transfer is pending initiation.
|
|
683
|
+
PENDING_INITIATING =
|
|
684
|
+
T.let(
|
|
685
|
+
:pending_initiating,
|
|
686
|
+
Increase::SwiftTransfer::Status::TaggedSymbol
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
# The transfer has been initiated.
|
|
690
|
+
INITIATED =
|
|
691
|
+
T.let(:initiated, Increase::SwiftTransfer::Status::TaggedSymbol)
|
|
692
|
+
|
|
693
|
+
# The transfer has been rejected by Increase.
|
|
694
|
+
REJECTED =
|
|
695
|
+
T.let(:rejected, Increase::SwiftTransfer::Status::TaggedSymbol)
|
|
696
|
+
|
|
697
|
+
# The transfer has been returned.
|
|
698
|
+
RETURNED =
|
|
699
|
+
T.let(:returned, Increase::SwiftTransfer::Status::TaggedSymbol)
|
|
700
|
+
|
|
701
|
+
sig do
|
|
702
|
+
override.returns(
|
|
703
|
+
T::Array[Increase::SwiftTransfer::Status::TaggedSymbol]
|
|
704
|
+
)
|
|
705
|
+
end
|
|
706
|
+
def self.values
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# A constant representing the object's type. For this resource it will always be
|
|
711
|
+
# `swift_transfer`.
|
|
712
|
+
module Type
|
|
713
|
+
extend Increase::Internal::Type::Enum
|
|
714
|
+
|
|
715
|
+
TaggedSymbol =
|
|
716
|
+
T.type_alias { T.all(Symbol, Increase::SwiftTransfer::Type) }
|
|
717
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
718
|
+
|
|
719
|
+
SWIFT_TRANSFER =
|
|
720
|
+
T.let(:swift_transfer, Increase::SwiftTransfer::Type::TaggedSymbol)
|
|
721
|
+
|
|
722
|
+
sig do
|
|
723
|
+
override.returns(
|
|
724
|
+
T::Array[Increase::SwiftTransfer::Type::TaggedSymbol]
|
|
725
|
+
)
|
|
726
|
+
end
|
|
727
|
+
def self.values
|
|
728
|
+
end
|
|
729
|
+
end
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
end
|