increase 1.173.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +4 -0
- data/lib/increase/models/entity_update_params.rb +10 -1
- 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/entity_update_params.rbi +13 -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/entity_update_params.rbs +7 -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,349 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type swift_transfer =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
account_id: String,
|
|
7
|
+
account_number: String,
|
|
8
|
+
amount: Integer,
|
|
9
|
+
bank_identification_code: String,
|
|
10
|
+
created_at: Time,
|
|
11
|
+
created_by: Increase::SwiftTransfer::CreatedBy,
|
|
12
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress,
|
|
13
|
+
creditor_name: String,
|
|
14
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress,
|
|
15
|
+
debtor_name: String,
|
|
16
|
+
idempotency_key: String?,
|
|
17
|
+
instructed_amount: Integer,
|
|
18
|
+
instructed_currency: Increase::Models::SwiftTransfer::instructed_currency,
|
|
19
|
+
pending_transaction_id: String?,
|
|
20
|
+
routing_number: String?,
|
|
21
|
+
source_account_number_id: String,
|
|
22
|
+
status: Increase::Models::SwiftTransfer::status,
|
|
23
|
+
transaction_id: String?,
|
|
24
|
+
type: Increase::Models::SwiftTransfer::type_,
|
|
25
|
+
unique_end_to_end_transaction_reference: String,
|
|
26
|
+
unstructured_remittance_information: String
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class SwiftTransfer < Increase::Internal::Type::BaseModel
|
|
30
|
+
attr_accessor id: String
|
|
31
|
+
|
|
32
|
+
attr_accessor account_id: String
|
|
33
|
+
|
|
34
|
+
attr_accessor account_number: String
|
|
35
|
+
|
|
36
|
+
attr_accessor amount: Integer
|
|
37
|
+
|
|
38
|
+
attr_accessor bank_identification_code: String
|
|
39
|
+
|
|
40
|
+
attr_accessor created_at: Time
|
|
41
|
+
|
|
42
|
+
attr_accessor created_by: Increase::SwiftTransfer::CreatedBy
|
|
43
|
+
|
|
44
|
+
attr_accessor creditor_address: Increase::SwiftTransfer::CreditorAddress
|
|
45
|
+
|
|
46
|
+
attr_accessor creditor_name: String
|
|
47
|
+
|
|
48
|
+
attr_accessor debtor_address: Increase::SwiftTransfer::DebtorAddress
|
|
49
|
+
|
|
50
|
+
attr_accessor debtor_name: String
|
|
51
|
+
|
|
52
|
+
attr_accessor idempotency_key: String?
|
|
53
|
+
|
|
54
|
+
attr_accessor instructed_amount: Integer
|
|
55
|
+
|
|
56
|
+
attr_accessor instructed_currency: Increase::Models::SwiftTransfer::instructed_currency
|
|
57
|
+
|
|
58
|
+
attr_accessor pending_transaction_id: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor routing_number: String?
|
|
61
|
+
|
|
62
|
+
attr_accessor source_account_number_id: String
|
|
63
|
+
|
|
64
|
+
attr_accessor status: Increase::Models::SwiftTransfer::status
|
|
65
|
+
|
|
66
|
+
attr_accessor transaction_id: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor type: Increase::Models::SwiftTransfer::type_
|
|
69
|
+
|
|
70
|
+
attr_accessor unique_end_to_end_transaction_reference: String
|
|
71
|
+
|
|
72
|
+
attr_accessor unstructured_remittance_information: String
|
|
73
|
+
|
|
74
|
+
def initialize: (
|
|
75
|
+
id: String,
|
|
76
|
+
account_id: String,
|
|
77
|
+
account_number: String,
|
|
78
|
+
amount: Integer,
|
|
79
|
+
bank_identification_code: String,
|
|
80
|
+
created_at: Time,
|
|
81
|
+
created_by: Increase::SwiftTransfer::CreatedBy,
|
|
82
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress,
|
|
83
|
+
creditor_name: String,
|
|
84
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress,
|
|
85
|
+
debtor_name: String,
|
|
86
|
+
idempotency_key: String?,
|
|
87
|
+
instructed_amount: Integer,
|
|
88
|
+
instructed_currency: Increase::Models::SwiftTransfer::instructed_currency,
|
|
89
|
+
pending_transaction_id: String?,
|
|
90
|
+
routing_number: String?,
|
|
91
|
+
source_account_number_id: String,
|
|
92
|
+
status: Increase::Models::SwiftTransfer::status,
|
|
93
|
+
transaction_id: String?,
|
|
94
|
+
type: Increase::Models::SwiftTransfer::type_,
|
|
95
|
+
unique_end_to_end_transaction_reference: String,
|
|
96
|
+
unstructured_remittance_information: String
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
id: String,
|
|
101
|
+
account_id: String,
|
|
102
|
+
account_number: String,
|
|
103
|
+
amount: Integer,
|
|
104
|
+
bank_identification_code: String,
|
|
105
|
+
created_at: Time,
|
|
106
|
+
created_by: Increase::SwiftTransfer::CreatedBy,
|
|
107
|
+
creditor_address: Increase::SwiftTransfer::CreditorAddress,
|
|
108
|
+
creditor_name: String,
|
|
109
|
+
debtor_address: Increase::SwiftTransfer::DebtorAddress,
|
|
110
|
+
debtor_name: String,
|
|
111
|
+
idempotency_key: String?,
|
|
112
|
+
instructed_amount: Integer,
|
|
113
|
+
instructed_currency: Increase::Models::SwiftTransfer::instructed_currency,
|
|
114
|
+
pending_transaction_id: String?,
|
|
115
|
+
routing_number: String?,
|
|
116
|
+
source_account_number_id: String,
|
|
117
|
+
status: Increase::Models::SwiftTransfer::status,
|
|
118
|
+
transaction_id: String?,
|
|
119
|
+
type: Increase::Models::SwiftTransfer::type_,
|
|
120
|
+
unique_end_to_end_transaction_reference: String,
|
|
121
|
+
unstructured_remittance_information: String
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
type created_by =
|
|
125
|
+
{
|
|
126
|
+
api_key: Increase::SwiftTransfer::CreatedBy::APIKey?,
|
|
127
|
+
category: Increase::Models::SwiftTransfer::CreatedBy::category,
|
|
128
|
+
oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?,
|
|
129
|
+
user: Increase::SwiftTransfer::CreatedBy::User?
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class CreatedBy < Increase::Internal::Type::BaseModel
|
|
133
|
+
attr_accessor api_key: Increase::SwiftTransfer::CreatedBy::APIKey?
|
|
134
|
+
|
|
135
|
+
attr_accessor category: Increase::Models::SwiftTransfer::CreatedBy::category
|
|
136
|
+
|
|
137
|
+
attr_accessor oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?
|
|
138
|
+
|
|
139
|
+
attr_accessor user: Increase::SwiftTransfer::CreatedBy::User?
|
|
140
|
+
|
|
141
|
+
def initialize: (
|
|
142
|
+
api_key: Increase::SwiftTransfer::CreatedBy::APIKey?,
|
|
143
|
+
category: Increase::Models::SwiftTransfer::CreatedBy::category,
|
|
144
|
+
oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?,
|
|
145
|
+
user: Increase::SwiftTransfer::CreatedBy::User?
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
api_key: Increase::SwiftTransfer::CreatedBy::APIKey?,
|
|
150
|
+
category: Increase::Models::SwiftTransfer::CreatedBy::category,
|
|
151
|
+
oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?,
|
|
152
|
+
user: Increase::SwiftTransfer::CreatedBy::User?
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type api_key = { description: String? }
|
|
156
|
+
|
|
157
|
+
class APIKey < Increase::Internal::Type::BaseModel
|
|
158
|
+
attr_accessor description: String?
|
|
159
|
+
|
|
160
|
+
def initialize: (description: String?) -> void
|
|
161
|
+
|
|
162
|
+
def to_hash: -> { description: String? }
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
type category = :api_key | :oauth_application | :user
|
|
166
|
+
|
|
167
|
+
module Category
|
|
168
|
+
extend Increase::Internal::Type::Enum
|
|
169
|
+
|
|
170
|
+
# An API key. Details will be under the `api_key` object.
|
|
171
|
+
API_KEY: :api_key
|
|
172
|
+
|
|
173
|
+
# An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
|
|
174
|
+
OAUTH_APPLICATION: :oauth_application
|
|
175
|
+
|
|
176
|
+
# A User in the Increase dashboard. Details will be under the `user` object.
|
|
177
|
+
USER: :user
|
|
178
|
+
|
|
179
|
+
def self?.values: -> ::Array[Increase::Models::SwiftTransfer::CreatedBy::category]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type oauth_application = { name: String }
|
|
183
|
+
|
|
184
|
+
class OAuthApplication < Increase::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor name: String
|
|
186
|
+
|
|
187
|
+
def initialize: (name: String) -> void
|
|
188
|
+
|
|
189
|
+
def to_hash: -> { name: String }
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
type user = { email: String }
|
|
193
|
+
|
|
194
|
+
class User < Increase::Internal::Type::BaseModel
|
|
195
|
+
attr_accessor email: String
|
|
196
|
+
|
|
197
|
+
def initialize: (email: String) -> void
|
|
198
|
+
|
|
199
|
+
def to_hash: -> { email: String }
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
type creditor_address =
|
|
204
|
+
{
|
|
205
|
+
city: String?,
|
|
206
|
+
country: String,
|
|
207
|
+
:line1 => String,
|
|
208
|
+
:line2 => String?,
|
|
209
|
+
postal_code: String?,
|
|
210
|
+
state: String?
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
class CreditorAddress < Increase::Internal::Type::BaseModel
|
|
214
|
+
attr_accessor city: String?
|
|
215
|
+
|
|
216
|
+
attr_accessor country: String
|
|
217
|
+
|
|
218
|
+
attr_accessor line1: String
|
|
219
|
+
|
|
220
|
+
attr_accessor line2: String?
|
|
221
|
+
|
|
222
|
+
attr_accessor postal_code: String?
|
|
223
|
+
|
|
224
|
+
attr_accessor state: String?
|
|
225
|
+
|
|
226
|
+
def initialize: (
|
|
227
|
+
city: String?,
|
|
228
|
+
country: String,
|
|
229
|
+
line1: String,
|
|
230
|
+
line2: String?,
|
|
231
|
+
postal_code: String?,
|
|
232
|
+
state: String?
|
|
233
|
+
) -> void
|
|
234
|
+
|
|
235
|
+
def to_hash: -> {
|
|
236
|
+
city: String?,
|
|
237
|
+
country: String,
|
|
238
|
+
:line1 => String,
|
|
239
|
+
:line2 => String?,
|
|
240
|
+
postal_code: String?,
|
|
241
|
+
state: String?
|
|
242
|
+
}
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
type debtor_address =
|
|
246
|
+
{
|
|
247
|
+
city: String?,
|
|
248
|
+
country: String,
|
|
249
|
+
:line1 => String,
|
|
250
|
+
:line2 => String?,
|
|
251
|
+
postal_code: String?,
|
|
252
|
+
state: String?
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
class DebtorAddress < Increase::Internal::Type::BaseModel
|
|
256
|
+
attr_accessor city: String?
|
|
257
|
+
|
|
258
|
+
attr_accessor country: String
|
|
259
|
+
|
|
260
|
+
attr_accessor line1: String
|
|
261
|
+
|
|
262
|
+
attr_accessor line2: String?
|
|
263
|
+
|
|
264
|
+
attr_accessor postal_code: String?
|
|
265
|
+
|
|
266
|
+
attr_accessor state: String?
|
|
267
|
+
|
|
268
|
+
def initialize: (
|
|
269
|
+
city: String?,
|
|
270
|
+
country: String,
|
|
271
|
+
line1: String,
|
|
272
|
+
line2: String?,
|
|
273
|
+
postal_code: String?,
|
|
274
|
+
state: String?
|
|
275
|
+
) -> void
|
|
276
|
+
|
|
277
|
+
def to_hash: -> {
|
|
278
|
+
city: String?,
|
|
279
|
+
country: String,
|
|
280
|
+
:line1 => String,
|
|
281
|
+
:line2 => String?,
|
|
282
|
+
postal_code: String?,
|
|
283
|
+
state: String?
|
|
284
|
+
}
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
type instructed_currency = :USD
|
|
288
|
+
|
|
289
|
+
module InstructedCurrency
|
|
290
|
+
extend Increase::Internal::Type::Enum
|
|
291
|
+
|
|
292
|
+
# United States Dollar
|
|
293
|
+
USD: :USD
|
|
294
|
+
|
|
295
|
+
def self?.values: -> ::Array[Increase::Models::SwiftTransfer::instructed_currency]
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
type status =
|
|
299
|
+
:pending_approval
|
|
300
|
+
| :canceled
|
|
301
|
+
| :pending_reviewing
|
|
302
|
+
| :requires_attention
|
|
303
|
+
| :pending_initiating
|
|
304
|
+
| :initiated
|
|
305
|
+
| :rejected
|
|
306
|
+
| :returned
|
|
307
|
+
|
|
308
|
+
module Status
|
|
309
|
+
extend Increase::Internal::Type::Enum
|
|
310
|
+
|
|
311
|
+
# The transfer is pending approval.
|
|
312
|
+
PENDING_APPROVAL: :pending_approval
|
|
313
|
+
|
|
314
|
+
# The transfer has been canceled.
|
|
315
|
+
CANCELED: :canceled
|
|
316
|
+
|
|
317
|
+
# The transfer is pending review by Increase.
|
|
318
|
+
PENDING_REVIEWING: :pending_reviewing
|
|
319
|
+
|
|
320
|
+
# The transfer requires attention from an Increase operator.
|
|
321
|
+
REQUIRES_ATTENTION: :requires_attention
|
|
322
|
+
|
|
323
|
+
# The transfer is pending initiation.
|
|
324
|
+
PENDING_INITIATING: :pending_initiating
|
|
325
|
+
|
|
326
|
+
# The transfer has been initiated.
|
|
327
|
+
INITIATED: :initiated
|
|
328
|
+
|
|
329
|
+
# The transfer has been rejected by Increase.
|
|
330
|
+
REJECTED: :rejected
|
|
331
|
+
|
|
332
|
+
# The transfer has been returned.
|
|
333
|
+
RETURNED: :returned
|
|
334
|
+
|
|
335
|
+
def self?.values: -> ::Array[Increase::Models::SwiftTransfer::status]
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
type type_ = :swift_transfer
|
|
339
|
+
|
|
340
|
+
module Type
|
|
341
|
+
extend Increase::Internal::Type::Enum
|
|
342
|
+
|
|
343
|
+
SWIFT_TRANSFER: :swift_transfer
|
|
344
|
+
|
|
345
|
+
def self?.values: -> ::Array[Increase::Models::SwiftTransfer::type_]
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type swift_transfer_approve_params =
|
|
4
|
+
{ } & Increase::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SwiftTransferApproveParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Increase::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Increase::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type swift_transfer_cancel_params =
|
|
4
|
+
{ } & Increase::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SwiftTransferCancelParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Increase::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Increase::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type swift_transfer_create_params =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
account_number: String,
|
|
7
|
+
bank_identification_code: String,
|
|
8
|
+
creditor_address: Increase::SwiftTransferCreateParams::CreditorAddress,
|
|
9
|
+
creditor_name: String,
|
|
10
|
+
debtor_address: Increase::SwiftTransferCreateParams::DebtorAddress,
|
|
11
|
+
debtor_name: String,
|
|
12
|
+
instructed_amount: Integer,
|
|
13
|
+
instructed_currency: Increase::Models::SwiftTransferCreateParams::instructed_currency,
|
|
14
|
+
source_account_number_id: String,
|
|
15
|
+
unstructured_remittance_information: String,
|
|
16
|
+
require_approval: bool,
|
|
17
|
+
routing_number: String
|
|
18
|
+
}
|
|
19
|
+
& Increase::Internal::Type::request_parameters
|
|
20
|
+
|
|
21
|
+
class SwiftTransferCreateParams < Increase::Internal::Type::BaseModel
|
|
22
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
23
|
+
include Increase::Internal::Type::RequestParameters
|
|
24
|
+
|
|
25
|
+
attr_accessor account_id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor account_number: String
|
|
28
|
+
|
|
29
|
+
attr_accessor bank_identification_code: String
|
|
30
|
+
|
|
31
|
+
attr_accessor creditor_address: Increase::SwiftTransferCreateParams::CreditorAddress
|
|
32
|
+
|
|
33
|
+
attr_accessor creditor_name: String
|
|
34
|
+
|
|
35
|
+
attr_accessor debtor_address: Increase::SwiftTransferCreateParams::DebtorAddress
|
|
36
|
+
|
|
37
|
+
attr_accessor debtor_name: String
|
|
38
|
+
|
|
39
|
+
attr_accessor instructed_amount: Integer
|
|
40
|
+
|
|
41
|
+
attr_accessor instructed_currency: Increase::Models::SwiftTransferCreateParams::instructed_currency
|
|
42
|
+
|
|
43
|
+
attr_accessor source_account_number_id: String
|
|
44
|
+
|
|
45
|
+
attr_accessor unstructured_remittance_information: String
|
|
46
|
+
|
|
47
|
+
attr_reader require_approval: bool?
|
|
48
|
+
|
|
49
|
+
def require_approval=: (bool) -> bool
|
|
50
|
+
|
|
51
|
+
attr_reader routing_number: String?
|
|
52
|
+
|
|
53
|
+
def routing_number=: (String) -> String
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
account_id: String,
|
|
57
|
+
account_number: String,
|
|
58
|
+
bank_identification_code: String,
|
|
59
|
+
creditor_address: Increase::SwiftTransferCreateParams::CreditorAddress,
|
|
60
|
+
creditor_name: String,
|
|
61
|
+
debtor_address: Increase::SwiftTransferCreateParams::DebtorAddress,
|
|
62
|
+
debtor_name: String,
|
|
63
|
+
instructed_amount: Integer,
|
|
64
|
+
instructed_currency: Increase::Models::SwiftTransferCreateParams::instructed_currency,
|
|
65
|
+
source_account_number_id: String,
|
|
66
|
+
unstructured_remittance_information: String,
|
|
67
|
+
?require_approval: bool,
|
|
68
|
+
?routing_number: String,
|
|
69
|
+
?request_options: Increase::request_opts
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> {
|
|
73
|
+
account_id: String,
|
|
74
|
+
account_number: String,
|
|
75
|
+
bank_identification_code: String,
|
|
76
|
+
creditor_address: Increase::SwiftTransferCreateParams::CreditorAddress,
|
|
77
|
+
creditor_name: String,
|
|
78
|
+
debtor_address: Increase::SwiftTransferCreateParams::DebtorAddress,
|
|
79
|
+
debtor_name: String,
|
|
80
|
+
instructed_amount: Integer,
|
|
81
|
+
instructed_currency: Increase::Models::SwiftTransferCreateParams::instructed_currency,
|
|
82
|
+
source_account_number_id: String,
|
|
83
|
+
unstructured_remittance_information: String,
|
|
84
|
+
require_approval: bool,
|
|
85
|
+
routing_number: String,
|
|
86
|
+
request_options: Increase::RequestOptions
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type creditor_address =
|
|
90
|
+
{
|
|
91
|
+
city: String,
|
|
92
|
+
country: String,
|
|
93
|
+
:line1 => String,
|
|
94
|
+
:line2 => String,
|
|
95
|
+
postal_code: String,
|
|
96
|
+
state: String
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class CreditorAddress < Increase::Internal::Type::BaseModel
|
|
100
|
+
attr_accessor city: String
|
|
101
|
+
|
|
102
|
+
attr_accessor country: String
|
|
103
|
+
|
|
104
|
+
attr_accessor line1: String
|
|
105
|
+
|
|
106
|
+
attr_reader line2: String?
|
|
107
|
+
|
|
108
|
+
def line2=: (String) -> String
|
|
109
|
+
|
|
110
|
+
attr_reader postal_code: String?
|
|
111
|
+
|
|
112
|
+
def postal_code=: (String) -> String
|
|
113
|
+
|
|
114
|
+
attr_reader state: String?
|
|
115
|
+
|
|
116
|
+
def state=: (String) -> String
|
|
117
|
+
|
|
118
|
+
def initialize: (
|
|
119
|
+
city: String,
|
|
120
|
+
country: String,
|
|
121
|
+
line1: String,
|
|
122
|
+
?line2: String,
|
|
123
|
+
?postal_code: String,
|
|
124
|
+
?state: String
|
|
125
|
+
) -> void
|
|
126
|
+
|
|
127
|
+
def to_hash: -> {
|
|
128
|
+
city: String,
|
|
129
|
+
country: String,
|
|
130
|
+
:line1 => String,
|
|
131
|
+
:line2 => String,
|
|
132
|
+
postal_code: String,
|
|
133
|
+
state: String
|
|
134
|
+
}
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
type debtor_address =
|
|
138
|
+
{
|
|
139
|
+
city: String,
|
|
140
|
+
country: String,
|
|
141
|
+
:line1 => String,
|
|
142
|
+
:line2 => String,
|
|
143
|
+
postal_code: String,
|
|
144
|
+
state: String
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
class DebtorAddress < Increase::Internal::Type::BaseModel
|
|
148
|
+
attr_accessor city: String
|
|
149
|
+
|
|
150
|
+
attr_accessor country: String
|
|
151
|
+
|
|
152
|
+
attr_accessor line1: String
|
|
153
|
+
|
|
154
|
+
attr_reader line2: String?
|
|
155
|
+
|
|
156
|
+
def line2=: (String) -> String
|
|
157
|
+
|
|
158
|
+
attr_reader postal_code: String?
|
|
159
|
+
|
|
160
|
+
def postal_code=: (String) -> String
|
|
161
|
+
|
|
162
|
+
attr_reader state: String?
|
|
163
|
+
|
|
164
|
+
def state=: (String) -> String
|
|
165
|
+
|
|
166
|
+
def initialize: (
|
|
167
|
+
city: String,
|
|
168
|
+
country: String,
|
|
169
|
+
line1: String,
|
|
170
|
+
?line2: String,
|
|
171
|
+
?postal_code: String,
|
|
172
|
+
?state: String
|
|
173
|
+
) -> void
|
|
174
|
+
|
|
175
|
+
def to_hash: -> {
|
|
176
|
+
city: String,
|
|
177
|
+
country: String,
|
|
178
|
+
:line1 => String,
|
|
179
|
+
:line2 => String,
|
|
180
|
+
postal_code: String,
|
|
181
|
+
state: String
|
|
182
|
+
}
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
type instructed_currency = :USD
|
|
186
|
+
|
|
187
|
+
module InstructedCurrency
|
|
188
|
+
extend Increase::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
# United States Dollar
|
|
191
|
+
USD: :USD
|
|
192
|
+
|
|
193
|
+
def self?.values: -> ::Array[Increase::Models::SwiftTransferCreateParams::instructed_currency]
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|