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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/swift_transfer.rb +478 -0
  6. data/lib/increase/models/swift_transfer_approve_params.rb +14 -0
  7. data/lib/increase/models/swift_transfer_cancel_params.rb +14 -0
  8. data/lib/increase/models/swift_transfer_create_params.rb +253 -0
  9. data/lib/increase/models/swift_transfer_list_params.rb +159 -0
  10. data/lib/increase/models/swift_transfer_retrieve_params.rb +14 -0
  11. data/lib/increase/models.rb +12 -0
  12. data/lib/increase/resources/swift_transfers.rb +159 -0
  13. data/lib/increase/version.rb +1 -1
  14. data/lib/increase.rb +7 -0
  15. data/rbi/increase/client.rbi +3 -0
  16. data/rbi/increase/models/swift_transfer.rbi +732 -0
  17. data/rbi/increase/models/swift_transfer_approve_params.rbi +30 -0
  18. data/rbi/increase/models/swift_transfer_cancel_params.rbi +30 -0
  19. data/rbi/increase/models/swift_transfer_create_params.rbi +391 -0
  20. data/rbi/increase/models/swift_transfer_list_params.rbi +316 -0
  21. data/rbi/increase/models/swift_transfer_retrieve_params.rbi +30 -0
  22. data/rbi/increase/models.rbi +12 -0
  23. data/rbi/increase/resources/swift_transfers.rbi +142 -0
  24. data/sig/increase/client.rbs +2 -0
  25. data/sig/increase/models/swift_transfer.rbs +349 -0
  26. data/sig/increase/models/swift_transfer_approve_params.rbs +15 -0
  27. data/sig/increase/models/swift_transfer_cancel_params.rbs +15 -0
  28. data/sig/increase/models/swift_transfer_create_params.rbs +197 -0
  29. data/sig/increase/models/swift_transfer_list_params.rbs +161 -0
  30. data/sig/increase/models/swift_transfer_retrieve_params.rbs +15 -0
  31. data/sig/increase/models.rbs +12 -0
  32. data/sig/increase/resources/swift_transfers.rbs +49 -0
  33. metadata +23 -2
@@ -0,0 +1,30 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class SwiftTransferApproveParams < 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::SwiftTransferApproveParams,
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
@@ -0,0 +1,30 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class SwiftTransferCancelParams < 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::SwiftTransferCancelParams,
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
@@ -0,0 +1,391 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class SwiftTransferCreateParams < 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::SwiftTransferCreateParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier for the account that will send the transfer.
18
+ sig { returns(String) }
19
+ attr_accessor :account_id
20
+
21
+ # The creditor's account number.
22
+ sig { returns(String) }
23
+ attr_accessor :account_number
24
+
25
+ # The bank identification code (BIC) of the creditor. If it ends with the
26
+ # three-character branch code, this must be 11 characters long. Otherwise this
27
+ # must be 8 characters and the branch code will be assumed to be `XXX`.
28
+ sig { returns(String) }
29
+ attr_accessor :bank_identification_code
30
+
31
+ # The creditor's address.
32
+ sig { returns(Increase::SwiftTransferCreateParams::CreditorAddress) }
33
+ attr_reader :creditor_address
34
+
35
+ sig do
36
+ params(
37
+ creditor_address:
38
+ Increase::SwiftTransferCreateParams::CreditorAddress::OrHash
39
+ ).void
40
+ end
41
+ attr_writer :creditor_address
42
+
43
+ # The creditor's name.
44
+ sig { returns(String) }
45
+ attr_accessor :creditor_name
46
+
47
+ # The debtor's address.
48
+ sig { returns(Increase::SwiftTransferCreateParams::DebtorAddress) }
49
+ attr_reader :debtor_address
50
+
51
+ sig do
52
+ params(
53
+ debtor_address:
54
+ Increase::SwiftTransferCreateParams::DebtorAddress::OrHash
55
+ ).void
56
+ end
57
+ attr_writer :debtor_address
58
+
59
+ # The debtor's name.
60
+ sig { returns(String) }
61
+ attr_accessor :debtor_name
62
+
63
+ # The amount, in minor units of `instructed_currency`, to send to the creditor.
64
+ sig { returns(Integer) }
65
+ attr_accessor :instructed_amount
66
+
67
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
68
+ # instructed amount.
69
+ sig do
70
+ returns(
71
+ Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol
72
+ )
73
+ end
74
+ attr_accessor :instructed_currency
75
+
76
+ # The Account Number to include in the transfer as the debtor's account number.
77
+ sig { returns(String) }
78
+ attr_accessor :source_account_number_id
79
+
80
+ # Unstructured remittance information to include in the transfer.
81
+ sig { returns(String) }
82
+ attr_accessor :unstructured_remittance_information
83
+
84
+ # Whether the transfer requires explicit approval via the dashboard or API.
85
+ sig { returns(T.nilable(T::Boolean)) }
86
+ attr_reader :require_approval
87
+
88
+ sig { params(require_approval: T::Boolean).void }
89
+ attr_writer :require_approval
90
+
91
+ # The creditor's bank account routing or transit number. Required in certain
92
+ # countries.
93
+ sig { returns(T.nilable(String)) }
94
+ attr_reader :routing_number
95
+
96
+ sig { params(routing_number: String).void }
97
+ attr_writer :routing_number
98
+
99
+ sig do
100
+ params(
101
+ account_id: String,
102
+ account_number: String,
103
+ bank_identification_code: String,
104
+ creditor_address:
105
+ Increase::SwiftTransferCreateParams::CreditorAddress::OrHash,
106
+ creditor_name: String,
107
+ debtor_address:
108
+ Increase::SwiftTransferCreateParams::DebtorAddress::OrHash,
109
+ debtor_name: String,
110
+ instructed_amount: Integer,
111
+ instructed_currency:
112
+ Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol,
113
+ source_account_number_id: String,
114
+ unstructured_remittance_information: String,
115
+ require_approval: T::Boolean,
116
+ routing_number: String,
117
+ request_options: Increase::RequestOptions::OrHash
118
+ ).returns(T.attached_class)
119
+ end
120
+ def self.new(
121
+ # The identifier for the account that will send the transfer.
122
+ account_id:,
123
+ # The creditor's account number.
124
+ account_number:,
125
+ # The bank identification code (BIC) of the creditor. If it ends with the
126
+ # three-character branch code, this must be 11 characters long. Otherwise this
127
+ # must be 8 characters and the branch code will be assumed to be `XXX`.
128
+ bank_identification_code:,
129
+ # The creditor's address.
130
+ creditor_address:,
131
+ # The creditor's name.
132
+ creditor_name:,
133
+ # The debtor's address.
134
+ debtor_address:,
135
+ # The debtor's name.
136
+ debtor_name:,
137
+ # The amount, in minor units of `instructed_currency`, to send to the creditor.
138
+ instructed_amount:,
139
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
140
+ # instructed amount.
141
+ instructed_currency:,
142
+ # The Account Number to include in the transfer as the debtor's account number.
143
+ source_account_number_id:,
144
+ # Unstructured remittance information to include in the transfer.
145
+ unstructured_remittance_information:,
146
+ # Whether the transfer requires explicit approval via the dashboard or API.
147
+ require_approval: nil,
148
+ # The creditor's bank account routing or transit number. Required in certain
149
+ # countries.
150
+ routing_number: nil,
151
+ request_options: {}
152
+ )
153
+ end
154
+
155
+ sig do
156
+ override.returns(
157
+ {
158
+ account_id: String,
159
+ account_number: String,
160
+ bank_identification_code: String,
161
+ creditor_address:
162
+ Increase::SwiftTransferCreateParams::CreditorAddress,
163
+ creditor_name: String,
164
+ debtor_address: Increase::SwiftTransferCreateParams::DebtorAddress,
165
+ debtor_name: String,
166
+ instructed_amount: Integer,
167
+ instructed_currency:
168
+ Increase::SwiftTransferCreateParams::InstructedCurrency::OrSymbol,
169
+ source_account_number_id: String,
170
+ unstructured_remittance_information: String,
171
+ require_approval: T::Boolean,
172
+ routing_number: String,
173
+ request_options: Increase::RequestOptions
174
+ }
175
+ )
176
+ end
177
+ def to_hash
178
+ end
179
+
180
+ class CreditorAddress < Increase::Internal::Type::BaseModel
181
+ OrHash =
182
+ T.type_alias do
183
+ T.any(
184
+ Increase::SwiftTransferCreateParams::CreditorAddress,
185
+ Increase::Internal::AnyHash
186
+ )
187
+ end
188
+
189
+ # The city, district, town, or village of the address.
190
+ sig { returns(String) }
191
+ attr_accessor :city
192
+
193
+ # The two-letter
194
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
195
+ # the country of the address.
196
+ sig { returns(String) }
197
+ attr_accessor :country
198
+
199
+ # The first line of the address. This is usually the street number and street.
200
+ sig { returns(String) }
201
+ attr_accessor :line1
202
+
203
+ # The second line of the address. This might be the floor or room number.
204
+ sig { returns(T.nilable(String)) }
205
+ attr_reader :line2
206
+
207
+ sig { params(line2: String).void }
208
+ attr_writer :line2
209
+
210
+ # The ZIP or postal code of the address. Required in certain countries.
211
+ sig { returns(T.nilable(String)) }
212
+ attr_reader :postal_code
213
+
214
+ sig { params(postal_code: String).void }
215
+ attr_writer :postal_code
216
+
217
+ # The state, province, or region of the address. Required in certain countries.
218
+ sig { returns(T.nilable(String)) }
219
+ attr_reader :state
220
+
221
+ sig { params(state: String).void }
222
+ attr_writer :state
223
+
224
+ # The creditor's address.
225
+ sig do
226
+ params(
227
+ city: String,
228
+ country: String,
229
+ line1: String,
230
+ line2: String,
231
+ postal_code: String,
232
+ state: String
233
+ ).returns(T.attached_class)
234
+ end
235
+ def self.new(
236
+ # The city, district, town, or village of the address.
237
+ city:,
238
+ # The two-letter
239
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
240
+ # the country of the address.
241
+ country:,
242
+ # The first line of the address. This is usually the street number and street.
243
+ line1:,
244
+ # The second line of the address. This might be the floor or room number.
245
+ line2: nil,
246
+ # The ZIP or postal code of the address. Required in certain countries.
247
+ postal_code: nil,
248
+ # The state, province, or region of the address. Required in certain countries.
249
+ state: nil
250
+ )
251
+ end
252
+
253
+ sig do
254
+ override.returns(
255
+ {
256
+ city: String,
257
+ country: String,
258
+ line1: String,
259
+ line2: String,
260
+ postal_code: String,
261
+ state: String
262
+ }
263
+ )
264
+ end
265
+ def to_hash
266
+ end
267
+ end
268
+
269
+ class DebtorAddress < Increase::Internal::Type::BaseModel
270
+ OrHash =
271
+ T.type_alias do
272
+ T.any(
273
+ Increase::SwiftTransferCreateParams::DebtorAddress,
274
+ Increase::Internal::AnyHash
275
+ )
276
+ end
277
+
278
+ # The city, district, town, or village of the address.
279
+ sig { returns(String) }
280
+ attr_accessor :city
281
+
282
+ # The two-letter
283
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
284
+ # the country of the address.
285
+ sig { returns(String) }
286
+ attr_accessor :country
287
+
288
+ # The first line of the address. This is usually the street number and street.
289
+ sig { returns(String) }
290
+ attr_accessor :line1
291
+
292
+ # The second line of the address. This might be the floor or room number.
293
+ sig { returns(T.nilable(String)) }
294
+ attr_reader :line2
295
+
296
+ sig { params(line2: String).void }
297
+ attr_writer :line2
298
+
299
+ # The ZIP or postal code of the address. Required in certain countries.
300
+ sig { returns(T.nilable(String)) }
301
+ attr_reader :postal_code
302
+
303
+ sig { params(postal_code: String).void }
304
+ attr_writer :postal_code
305
+
306
+ # The state, province, or region of the address. Required in certain countries.
307
+ sig { returns(T.nilable(String)) }
308
+ attr_reader :state
309
+
310
+ sig { params(state: String).void }
311
+ attr_writer :state
312
+
313
+ # The debtor's address.
314
+ sig do
315
+ params(
316
+ city: String,
317
+ country: String,
318
+ line1: String,
319
+ line2: String,
320
+ postal_code: String,
321
+ state: String
322
+ ).returns(T.attached_class)
323
+ end
324
+ def self.new(
325
+ # The city, district, town, or village of the address.
326
+ city:,
327
+ # The two-letter
328
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
329
+ # the country of the address.
330
+ country:,
331
+ # The first line of the address. This is usually the street number and street.
332
+ line1:,
333
+ # The second line of the address. This might be the floor or room number.
334
+ line2: nil,
335
+ # The ZIP or postal code of the address. Required in certain countries.
336
+ postal_code: nil,
337
+ # The state, province, or region of the address. Required in certain countries.
338
+ state: nil
339
+ )
340
+ end
341
+
342
+ sig do
343
+ override.returns(
344
+ {
345
+ city: String,
346
+ country: String,
347
+ line1: String,
348
+ line2: String,
349
+ postal_code: String,
350
+ state: String
351
+ }
352
+ )
353
+ end
354
+ def to_hash
355
+ end
356
+ end
357
+
358
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
359
+ # instructed amount.
360
+ module InstructedCurrency
361
+ extend Increase::Internal::Type::Enum
362
+
363
+ TaggedSymbol =
364
+ T.type_alias do
365
+ T.all(
366
+ Symbol,
367
+ Increase::SwiftTransferCreateParams::InstructedCurrency
368
+ )
369
+ end
370
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
371
+
372
+ # United States Dollar
373
+ USD =
374
+ T.let(
375
+ :USD,
376
+ Increase::SwiftTransferCreateParams::InstructedCurrency::TaggedSymbol
377
+ )
378
+
379
+ sig do
380
+ override.returns(
381
+ T::Array[
382
+ Increase::SwiftTransferCreateParams::InstructedCurrency::TaggedSymbol
383
+ ]
384
+ )
385
+ end
386
+ def self.values
387
+ end
388
+ end
389
+ end
390
+ end
391
+ end