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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5a24c2bf9b617389a57b3d1c6ff966113f1707095b2abcd3434d7f1d06b9a82
|
|
4
|
+
data.tar.gz: 89c489eb9f24dbabb9f314efa289856c51a21e60d119bafdf6db3d14492dc6a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 675c61fe9095ed60fc1d2ea8084fb9815e2c1f665b065f80a95014bb9d1a1623c3f64a9fb2631d0cd09d8bb20e40d9207b7d2b5ce37c7262a0a9bbab221dc926
|
|
7
|
+
data.tar.gz: e7d90a41a46f79bf3236395a4ee4bcd00dc29a162f279d906b60623a48a9794d71d503c2fe1a05defc40a1da47acc8c276d0ed64c54406b77107c665c6b2efcd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.175.0 (2026-01-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.174.0...v1.175.0](https://github.com/Increase/increase-ruby/compare/v1.174.0...v1.175.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ed14e6f](https://github.com/Increase/increase-ruby/commit/ed14e6fa7f59dd24228c316142c864b602d67bf6))
|
|
10
|
+
|
|
3
11
|
## 1.174.0 (2026-01-07)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.173.0...v1.174.0](https://github.com/Increase/increase-ruby/compare/v1.173.0...v1.174.0)
|
data/README.md
CHANGED
data/lib/increase/client.rb
CHANGED
|
@@ -104,6 +104,9 @@ module Increase
|
|
|
104
104
|
# @return [Increase::Resources::InboundFednowTransfers]
|
|
105
105
|
attr_reader :inbound_fednow_transfers
|
|
106
106
|
|
|
107
|
+
# @return [Increase::Resources::SwiftTransfers]
|
|
108
|
+
attr_reader :swift_transfers
|
|
109
|
+
|
|
107
110
|
# @return [Increase::Resources::CheckDeposits]
|
|
108
111
|
attr_reader :check_deposits
|
|
109
112
|
|
|
@@ -281,6 +284,7 @@ module Increase
|
|
|
281
284
|
Increase::Resources::InboundRealTimePaymentsTransfers.new(client: self)
|
|
282
285
|
@fednow_transfers = Increase::Resources::FednowTransfers.new(client: self)
|
|
283
286
|
@inbound_fednow_transfers = Increase::Resources::InboundFednowTransfers.new(client: self)
|
|
287
|
+
@swift_transfers = Increase::Resources::SwiftTransfers.new(client: self)
|
|
284
288
|
@check_deposits = Increase::Resources::CheckDeposits.new(client: self)
|
|
285
289
|
@lockboxes = Increase::Resources::Lockboxes.new(client: self)
|
|
286
290
|
@inbound_mail_items = Increase::Resources::InboundMailItems.new(client: self)
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::SwiftTransfers#create
|
|
6
|
+
class SwiftTransfer < Increase::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The Swift transfer's identifier.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute account_id
|
|
14
|
+
# The Account to which the transfer belongs.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :account_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute account_number
|
|
20
|
+
# The creditor's account number.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :account_number, String
|
|
24
|
+
|
|
25
|
+
# @!attribute amount
|
|
26
|
+
# The transfer amount in USD cents.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
required :amount, Integer
|
|
30
|
+
|
|
31
|
+
# @!attribute bank_identification_code
|
|
32
|
+
# The bank identification code (BIC) of the creditor.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :bank_identification_code, String
|
|
36
|
+
|
|
37
|
+
# @!attribute created_at
|
|
38
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
39
|
+
# the transfer was created.
|
|
40
|
+
#
|
|
41
|
+
# @return [Time]
|
|
42
|
+
required :created_at, Time
|
|
43
|
+
|
|
44
|
+
# @!attribute created_by
|
|
45
|
+
# What object created the transfer, either via the API or the dashboard.
|
|
46
|
+
#
|
|
47
|
+
# @return [Increase::Models::SwiftTransfer::CreatedBy]
|
|
48
|
+
required :created_by, -> { Increase::SwiftTransfer::CreatedBy }
|
|
49
|
+
|
|
50
|
+
# @!attribute creditor_address
|
|
51
|
+
# The creditor's address.
|
|
52
|
+
#
|
|
53
|
+
# @return [Increase::Models::SwiftTransfer::CreditorAddress]
|
|
54
|
+
required :creditor_address, -> { Increase::SwiftTransfer::CreditorAddress }
|
|
55
|
+
|
|
56
|
+
# @!attribute creditor_name
|
|
57
|
+
# The creditor's name.
|
|
58
|
+
#
|
|
59
|
+
# @return [String]
|
|
60
|
+
required :creditor_name, String
|
|
61
|
+
|
|
62
|
+
# @!attribute debtor_address
|
|
63
|
+
# The debtor's address.
|
|
64
|
+
#
|
|
65
|
+
# @return [Increase::Models::SwiftTransfer::DebtorAddress]
|
|
66
|
+
required :debtor_address, -> { Increase::SwiftTransfer::DebtorAddress }
|
|
67
|
+
|
|
68
|
+
# @!attribute debtor_name
|
|
69
|
+
# The debtor's name.
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :debtor_name, String
|
|
73
|
+
|
|
74
|
+
# @!attribute idempotency_key
|
|
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
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
required :idempotency_key, String, nil?: true
|
|
81
|
+
|
|
82
|
+
# @!attribute instructed_amount
|
|
83
|
+
# The amount that was instructed to be transferred in minor units of the
|
|
84
|
+
# `instructed_currency`.
|
|
85
|
+
#
|
|
86
|
+
# @return [Integer]
|
|
87
|
+
required :instructed_amount, Integer
|
|
88
|
+
|
|
89
|
+
# @!attribute instructed_currency
|
|
90
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
91
|
+
# instructed amount.
|
|
92
|
+
#
|
|
93
|
+
# @return [Symbol, Increase::Models::SwiftTransfer::InstructedCurrency]
|
|
94
|
+
required :instructed_currency, enum: -> { Increase::SwiftTransfer::InstructedCurrency }
|
|
95
|
+
|
|
96
|
+
# @!attribute pending_transaction_id
|
|
97
|
+
# The ID for the pending transaction representing the transfer.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
required :pending_transaction_id, String, nil?: true
|
|
101
|
+
|
|
102
|
+
# @!attribute routing_number
|
|
103
|
+
# The creditor's bank account routing or transit number. Required in certain
|
|
104
|
+
# countries.
|
|
105
|
+
#
|
|
106
|
+
# @return [String, nil]
|
|
107
|
+
required :routing_number, String, nil?: true
|
|
108
|
+
|
|
109
|
+
# @!attribute source_account_number_id
|
|
110
|
+
# The Account Number included in the transfer as the debtor's account number.
|
|
111
|
+
#
|
|
112
|
+
# @return [String]
|
|
113
|
+
required :source_account_number_id, String
|
|
114
|
+
|
|
115
|
+
# @!attribute status
|
|
116
|
+
# The lifecycle status of the transfer.
|
|
117
|
+
#
|
|
118
|
+
# @return [Symbol, Increase::Models::SwiftTransfer::Status]
|
|
119
|
+
required :status, enum: -> { Increase::SwiftTransfer::Status }
|
|
120
|
+
|
|
121
|
+
# @!attribute transaction_id
|
|
122
|
+
# The ID for the transaction funding the transfer. This will be populated after
|
|
123
|
+
# the transfer is initiated.
|
|
124
|
+
#
|
|
125
|
+
# @return [String, nil]
|
|
126
|
+
required :transaction_id, String, nil?: true
|
|
127
|
+
|
|
128
|
+
# @!attribute type
|
|
129
|
+
# A constant representing the object's type. For this resource it will always be
|
|
130
|
+
# `swift_transfer`.
|
|
131
|
+
#
|
|
132
|
+
# @return [Symbol, Increase::Models::SwiftTransfer::Type]
|
|
133
|
+
required :type, enum: -> { Increase::SwiftTransfer::Type }
|
|
134
|
+
|
|
135
|
+
# @!attribute unique_end_to_end_transaction_reference
|
|
136
|
+
# The Unique End-to-end Transaction Reference
|
|
137
|
+
# ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
|
|
138
|
+
# for the transfer.
|
|
139
|
+
#
|
|
140
|
+
# @return [String]
|
|
141
|
+
required :unique_end_to_end_transaction_reference, String
|
|
142
|
+
|
|
143
|
+
# @!attribute unstructured_remittance_information
|
|
144
|
+
# The unstructured remittance information that was included with the transfer.
|
|
145
|
+
#
|
|
146
|
+
# @return [String]
|
|
147
|
+
required :unstructured_remittance_information, String
|
|
148
|
+
|
|
149
|
+
# @!method initialize(id:, account_id:, account_number:, amount:, bank_identification_code:, created_at:, created_by:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, idempotency_key:, instructed_amount:, instructed_currency:, pending_transaction_id:, routing_number:, source_account_number_id:, status:, transaction_id:, type:, unique_end_to_end_transaction_reference:, unstructured_remittance_information:)
|
|
150
|
+
# Some parameter documentations has been truncated, see
|
|
151
|
+
# {Increase::Models::SwiftTransfer} for more details.
|
|
152
|
+
#
|
|
153
|
+
# Swift Transfers send funds internationally.
|
|
154
|
+
#
|
|
155
|
+
# @param id [String] The Swift transfer's identifier.
|
|
156
|
+
#
|
|
157
|
+
# @param account_id [String] The Account to which the transfer belongs.
|
|
158
|
+
#
|
|
159
|
+
# @param account_number [String] The creditor's account number.
|
|
160
|
+
#
|
|
161
|
+
# @param amount [Integer] The transfer amount in USD cents.
|
|
162
|
+
#
|
|
163
|
+
# @param bank_identification_code [String] The bank identification code (BIC) of the creditor.
|
|
164
|
+
#
|
|
165
|
+
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
|
|
166
|
+
#
|
|
167
|
+
# @param created_by [Increase::Models::SwiftTransfer::CreatedBy] What object created the transfer, either via the API or the dashboard.
|
|
168
|
+
#
|
|
169
|
+
# @param creditor_address [Increase::Models::SwiftTransfer::CreditorAddress] The creditor's address.
|
|
170
|
+
#
|
|
171
|
+
# @param creditor_name [String] The creditor's name.
|
|
172
|
+
#
|
|
173
|
+
# @param debtor_address [Increase::Models::SwiftTransfer::DebtorAddress] The debtor's address.
|
|
174
|
+
#
|
|
175
|
+
# @param debtor_name [String] The debtor's name.
|
|
176
|
+
#
|
|
177
|
+
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
|
178
|
+
#
|
|
179
|
+
# @param instructed_amount [Integer] The amount that was instructed to be transferred in minor units of the `instruct
|
|
180
|
+
#
|
|
181
|
+
# @param instructed_currency [Symbol, Increase::Models::SwiftTransfer::InstructedCurrency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the inst
|
|
182
|
+
#
|
|
183
|
+
# @param pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer.
|
|
184
|
+
#
|
|
185
|
+
# @param routing_number [String, nil] The creditor's bank account routing or transit number. Required in certain count
|
|
186
|
+
#
|
|
187
|
+
# @param source_account_number_id [String] The Account Number included in the transfer as the debtor's account number.
|
|
188
|
+
#
|
|
189
|
+
# @param status [Symbol, Increase::Models::SwiftTransfer::Status] The lifecycle status of the transfer.
|
|
190
|
+
#
|
|
191
|
+
# @param transaction_id [String, nil] The ID for the transaction funding the transfer. This will be populated after th
|
|
192
|
+
#
|
|
193
|
+
# @param type [Symbol, Increase::Models::SwiftTransfer::Type] A constant representing the object's type. For this resource it will always be `
|
|
194
|
+
#
|
|
195
|
+
# @param unique_end_to_end_transaction_reference [String] The Unique End-to-end Transaction Reference ([UETR](https://www.swift.com/paymen
|
|
196
|
+
#
|
|
197
|
+
# @param unstructured_remittance_information [String] The unstructured remittance information that was included with the transfer.
|
|
198
|
+
|
|
199
|
+
# @see Increase::Models::SwiftTransfer#created_by
|
|
200
|
+
class CreatedBy < Increase::Internal::Type::BaseModel
|
|
201
|
+
# @!attribute api_key
|
|
202
|
+
# If present, details about the API key that created the transfer.
|
|
203
|
+
#
|
|
204
|
+
# @return [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil]
|
|
205
|
+
required :api_key, -> { Increase::SwiftTransfer::CreatedBy::APIKey }, nil?: true
|
|
206
|
+
|
|
207
|
+
# @!attribute category
|
|
208
|
+
# The type of object that created this transfer.
|
|
209
|
+
#
|
|
210
|
+
# @return [Symbol, Increase::Models::SwiftTransfer::CreatedBy::Category]
|
|
211
|
+
required :category, enum: -> { Increase::SwiftTransfer::CreatedBy::Category }
|
|
212
|
+
|
|
213
|
+
# @!attribute oauth_application
|
|
214
|
+
# If present, details about the OAuth Application that created the transfer.
|
|
215
|
+
#
|
|
216
|
+
# @return [Increase::Models::SwiftTransfer::CreatedBy::OAuthApplication, nil]
|
|
217
|
+
required :oauth_application, -> { Increase::SwiftTransfer::CreatedBy::OAuthApplication }, nil?: true
|
|
218
|
+
|
|
219
|
+
# @!attribute user
|
|
220
|
+
# If present, details about the User that created the transfer.
|
|
221
|
+
#
|
|
222
|
+
# @return [Increase::Models::SwiftTransfer::CreatedBy::User, nil]
|
|
223
|
+
required :user, -> { Increase::SwiftTransfer::CreatedBy::User }, nil?: true
|
|
224
|
+
|
|
225
|
+
# @!method initialize(api_key:, category:, oauth_application:, user:)
|
|
226
|
+
# What object created the transfer, either via the API or the dashboard.
|
|
227
|
+
#
|
|
228
|
+
# @param api_key [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer.
|
|
229
|
+
#
|
|
230
|
+
# @param category [Symbol, Increase::Models::SwiftTransfer::CreatedBy::Category] The type of object that created this transfer.
|
|
231
|
+
#
|
|
232
|
+
# @param oauth_application [Increase::Models::SwiftTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer.
|
|
233
|
+
#
|
|
234
|
+
# @param user [Increase::Models::SwiftTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer.
|
|
235
|
+
|
|
236
|
+
# @see Increase::Models::SwiftTransfer::CreatedBy#api_key
|
|
237
|
+
class APIKey < Increase::Internal::Type::BaseModel
|
|
238
|
+
# @!attribute description
|
|
239
|
+
# The description set for the API key when it was created.
|
|
240
|
+
#
|
|
241
|
+
# @return [String, nil]
|
|
242
|
+
required :description, String, nil?: true
|
|
243
|
+
|
|
244
|
+
# @!method initialize(description:)
|
|
245
|
+
# If present, details about the API key that created the transfer.
|
|
246
|
+
#
|
|
247
|
+
# @param description [String, nil] The description set for the API key when it was created.
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# The type of object that created this transfer.
|
|
251
|
+
#
|
|
252
|
+
# @see Increase::Models::SwiftTransfer::CreatedBy#category
|
|
253
|
+
module Category
|
|
254
|
+
extend Increase::Internal::Type::Enum
|
|
255
|
+
|
|
256
|
+
# An API key. Details will be under the `api_key` object.
|
|
257
|
+
API_KEY = :api_key
|
|
258
|
+
|
|
259
|
+
# An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
|
|
260
|
+
OAUTH_APPLICATION = :oauth_application
|
|
261
|
+
|
|
262
|
+
# A User in the Increase dashboard. Details will be under the `user` object.
|
|
263
|
+
USER = :user
|
|
264
|
+
|
|
265
|
+
# @!method self.values
|
|
266
|
+
# @return [Array<Symbol>]
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @see Increase::Models::SwiftTransfer::CreatedBy#oauth_application
|
|
270
|
+
class OAuthApplication < Increase::Internal::Type::BaseModel
|
|
271
|
+
# @!attribute name
|
|
272
|
+
# The name of the OAuth Application.
|
|
273
|
+
#
|
|
274
|
+
# @return [String]
|
|
275
|
+
required :name, String
|
|
276
|
+
|
|
277
|
+
# @!method initialize(name:)
|
|
278
|
+
# If present, details about the OAuth Application that created the transfer.
|
|
279
|
+
#
|
|
280
|
+
# @param name [String] The name of the OAuth Application.
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# @see Increase::Models::SwiftTransfer::CreatedBy#user
|
|
284
|
+
class User < Increase::Internal::Type::BaseModel
|
|
285
|
+
# @!attribute email
|
|
286
|
+
# The email address of the User.
|
|
287
|
+
#
|
|
288
|
+
# @return [String]
|
|
289
|
+
required :email, String
|
|
290
|
+
|
|
291
|
+
# @!method initialize(email:)
|
|
292
|
+
# If present, details about the User that created the transfer.
|
|
293
|
+
#
|
|
294
|
+
# @param email [String] The email address of the User.
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# @see Increase::Models::SwiftTransfer#creditor_address
|
|
299
|
+
class CreditorAddress < Increase::Internal::Type::BaseModel
|
|
300
|
+
# @!attribute city
|
|
301
|
+
# The city, district, town, or village of the address.
|
|
302
|
+
#
|
|
303
|
+
# @return [String, nil]
|
|
304
|
+
required :city, String, nil?: true
|
|
305
|
+
|
|
306
|
+
# @!attribute country
|
|
307
|
+
# The two-letter
|
|
308
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
309
|
+
# the country of the address.
|
|
310
|
+
#
|
|
311
|
+
# @return [String]
|
|
312
|
+
required :country, String
|
|
313
|
+
|
|
314
|
+
# @!attribute line1
|
|
315
|
+
# The first line of the address.
|
|
316
|
+
#
|
|
317
|
+
# @return [String]
|
|
318
|
+
required :line1, String
|
|
319
|
+
|
|
320
|
+
# @!attribute line2
|
|
321
|
+
# The second line of the address.
|
|
322
|
+
#
|
|
323
|
+
# @return [String, nil]
|
|
324
|
+
required :line2, String, nil?: true
|
|
325
|
+
|
|
326
|
+
# @!attribute postal_code
|
|
327
|
+
# The ZIP or postal code of the address.
|
|
328
|
+
#
|
|
329
|
+
# @return [String, nil]
|
|
330
|
+
required :postal_code, String, nil?: true
|
|
331
|
+
|
|
332
|
+
# @!attribute state
|
|
333
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
334
|
+
#
|
|
335
|
+
# @return [String, nil]
|
|
336
|
+
required :state, String, nil?: true
|
|
337
|
+
|
|
338
|
+
# @!method initialize(city:, country:, line1:, line2:, postal_code:, state:)
|
|
339
|
+
# Some parameter documentations has been truncated, see
|
|
340
|
+
# {Increase::Models::SwiftTransfer::CreditorAddress} for more details.
|
|
341
|
+
#
|
|
342
|
+
# The creditor's address.
|
|
343
|
+
#
|
|
344
|
+
# @param city [String, nil] The city, district, town, or village of the address.
|
|
345
|
+
#
|
|
346
|
+
# @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
|
|
347
|
+
#
|
|
348
|
+
# @param line1 [String] The first line of the address.
|
|
349
|
+
#
|
|
350
|
+
# @param line2 [String, nil] The second line of the address.
|
|
351
|
+
#
|
|
352
|
+
# @param postal_code [String, nil] The ZIP or postal code of the address.
|
|
353
|
+
#
|
|
354
|
+
# @param state [String, nil] The state, province, or region of the address. Required in certain countries.
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# @see Increase::Models::SwiftTransfer#debtor_address
|
|
358
|
+
class DebtorAddress < Increase::Internal::Type::BaseModel
|
|
359
|
+
# @!attribute city
|
|
360
|
+
# The city, district, town, or village of the address.
|
|
361
|
+
#
|
|
362
|
+
# @return [String, nil]
|
|
363
|
+
required :city, String, nil?: true
|
|
364
|
+
|
|
365
|
+
# @!attribute country
|
|
366
|
+
# The two-letter
|
|
367
|
+
# [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
368
|
+
# the country of the address.
|
|
369
|
+
#
|
|
370
|
+
# @return [String]
|
|
371
|
+
required :country, String
|
|
372
|
+
|
|
373
|
+
# @!attribute line1
|
|
374
|
+
# The first line of the address.
|
|
375
|
+
#
|
|
376
|
+
# @return [String]
|
|
377
|
+
required :line1, String
|
|
378
|
+
|
|
379
|
+
# @!attribute line2
|
|
380
|
+
# The second line of the address.
|
|
381
|
+
#
|
|
382
|
+
# @return [String, nil]
|
|
383
|
+
required :line2, String, nil?: true
|
|
384
|
+
|
|
385
|
+
# @!attribute postal_code
|
|
386
|
+
# The ZIP or postal code of the address.
|
|
387
|
+
#
|
|
388
|
+
# @return [String, nil]
|
|
389
|
+
required :postal_code, String, nil?: true
|
|
390
|
+
|
|
391
|
+
# @!attribute state
|
|
392
|
+
# The state, province, or region of the address. Required in certain countries.
|
|
393
|
+
#
|
|
394
|
+
# @return [String, nil]
|
|
395
|
+
required :state, String, nil?: true
|
|
396
|
+
|
|
397
|
+
# @!method initialize(city:, country:, line1:, line2:, postal_code:, state:)
|
|
398
|
+
# Some parameter documentations has been truncated, see
|
|
399
|
+
# {Increase::Models::SwiftTransfer::DebtorAddress} for more details.
|
|
400
|
+
#
|
|
401
|
+
# The debtor's address.
|
|
402
|
+
#
|
|
403
|
+
# @param city [String, nil] The city, district, town, or village of the address.
|
|
404
|
+
#
|
|
405
|
+
# @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
|
|
406
|
+
#
|
|
407
|
+
# @param line1 [String] The first line of the address.
|
|
408
|
+
#
|
|
409
|
+
# @param line2 [String, nil] The second line of the address.
|
|
410
|
+
#
|
|
411
|
+
# @param postal_code [String, nil] The ZIP or postal code of the address.
|
|
412
|
+
#
|
|
413
|
+
# @param state [String, nil] The state, province, or region of the address. Required in certain countries.
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
417
|
+
# instructed amount.
|
|
418
|
+
#
|
|
419
|
+
# @see Increase::Models::SwiftTransfer#instructed_currency
|
|
420
|
+
module InstructedCurrency
|
|
421
|
+
extend Increase::Internal::Type::Enum
|
|
422
|
+
|
|
423
|
+
# United States Dollar
|
|
424
|
+
USD = :USD
|
|
425
|
+
|
|
426
|
+
# @!method self.values
|
|
427
|
+
# @return [Array<Symbol>]
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# The lifecycle status of the transfer.
|
|
431
|
+
#
|
|
432
|
+
# @see Increase::Models::SwiftTransfer#status
|
|
433
|
+
module Status
|
|
434
|
+
extend Increase::Internal::Type::Enum
|
|
435
|
+
|
|
436
|
+
# The transfer is pending approval.
|
|
437
|
+
PENDING_APPROVAL = :pending_approval
|
|
438
|
+
|
|
439
|
+
# The transfer has been canceled.
|
|
440
|
+
CANCELED = :canceled
|
|
441
|
+
|
|
442
|
+
# The transfer is pending review by Increase.
|
|
443
|
+
PENDING_REVIEWING = :pending_reviewing
|
|
444
|
+
|
|
445
|
+
# The transfer requires attention from an Increase operator.
|
|
446
|
+
REQUIRES_ATTENTION = :requires_attention
|
|
447
|
+
|
|
448
|
+
# The transfer is pending initiation.
|
|
449
|
+
PENDING_INITIATING = :pending_initiating
|
|
450
|
+
|
|
451
|
+
# The transfer has been initiated.
|
|
452
|
+
INITIATED = :initiated
|
|
453
|
+
|
|
454
|
+
# The transfer has been rejected by Increase.
|
|
455
|
+
REJECTED = :rejected
|
|
456
|
+
|
|
457
|
+
# The transfer has been returned.
|
|
458
|
+
RETURNED = :returned
|
|
459
|
+
|
|
460
|
+
# @!method self.values
|
|
461
|
+
# @return [Array<Symbol>]
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# A constant representing the object's type. For this resource it will always be
|
|
465
|
+
# `swift_transfer`.
|
|
466
|
+
#
|
|
467
|
+
# @see Increase::Models::SwiftTransfer#type
|
|
468
|
+
module Type
|
|
469
|
+
extend Increase::Internal::Type::Enum
|
|
470
|
+
|
|
471
|
+
SWIFT_TRANSFER = :swift_transfer
|
|
472
|
+
|
|
473
|
+
# @!method self.values
|
|
474
|
+
# @return [Array<Symbol>]
|
|
475
|
+
end
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::SwiftTransfers#approve
|
|
6
|
+
class SwiftTransferApproveParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::SwiftTransfers#cancel
|
|
6
|
+
class SwiftTransferCancelParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|