increase 1.8.0 → 1.10.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.
@@ -12,8 +12,8 @@ module Increase
12
12
  sig { returns(String) }
13
13
  attr_accessor :id
14
14
 
15
- # The Account Number to which the recipient of this request is being requested to
16
- # send funds.
15
+ # The Account Number to which the debtor—the recipient of this requestis being
16
+ # requested to send funds.
17
17
  sig { returns(String) }
18
18
  attr_accessor :account_number_id
19
19
 
@@ -26,65 +26,60 @@ module Increase
26
26
  sig { returns(Time) }
27
27
  attr_accessor :created_at
28
28
 
29
+ # The creditor's address.
30
+ sig { returns(Increase::WireDrawdownRequest::CreditorAddress) }
31
+ attr_reader :creditor_address
32
+
33
+ sig do
34
+ params(
35
+ creditor_address:
36
+ Increase::WireDrawdownRequest::CreditorAddress::OrHash
37
+ ).void
38
+ end
39
+ attr_writer :creditor_address
40
+
41
+ # The creditor's name.
42
+ sig { returns(String) }
43
+ attr_accessor :creditor_name
44
+
29
45
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
30
46
  # requested. Will always be "USD".
31
47
  sig { returns(String) }
32
48
  attr_accessor :currency
33
49
 
34
- # If the recipient fulfills the drawdown request by sending funds, then this will
35
- # be the identifier of the corresponding Transaction.
36
- sig { returns(T.nilable(String)) }
37
- attr_accessor :fulfillment_inbound_wire_transfer_id
38
-
39
- # The idempotency key you chose for this object. This value is unique across
40
- # Increase and is used to ensure that a request is only processed once. Learn more
41
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
42
- sig { returns(T.nilable(String)) }
43
- attr_accessor :idempotency_key
44
-
45
- # The message the recipient will see as part of the drawdown request.
50
+ # The debtor's account number.
46
51
  sig { returns(String) }
47
- attr_accessor :message_to_recipient
52
+ attr_accessor :debtor_account_number
48
53
 
49
- # The originator's address line 1.
50
- sig { returns(T.nilable(String)) }
51
- attr_accessor :originator_address_line1
54
+ # The debtor's address.
55
+ sig { returns(Increase::WireDrawdownRequest::DebtorAddress) }
56
+ attr_reader :debtor_address
52
57
 
53
- # The originator's address line 2.
54
- sig { returns(T.nilable(String)) }
55
- attr_accessor :originator_address_line2
56
-
57
- # The originator's address line 3.
58
- sig { returns(T.nilable(String)) }
59
- attr_accessor :originator_address_line3
60
-
61
- # The originator's name.
62
- sig { returns(T.nilable(String)) }
63
- attr_accessor :originator_name
58
+ sig do
59
+ params(
60
+ debtor_address: Increase::WireDrawdownRequest::DebtorAddress::OrHash
61
+ ).void
62
+ end
63
+ attr_writer :debtor_address
64
64
 
65
- # The drawdown request's recipient's account number.
65
+ # The debtor's name.
66
66
  sig { returns(String) }
67
- attr_accessor :recipient_account_number
67
+ attr_accessor :debtor_name
68
68
 
69
- # Line 1 of the drawdown request's recipient's address.
70
- sig { returns(T.nilable(String)) }
71
- attr_accessor :recipient_address_line1
72
-
73
- # Line 2 of the drawdown request's recipient's address.
74
- sig { returns(T.nilable(String)) }
75
- attr_accessor :recipient_address_line2
69
+ # The debtor's routing number.
70
+ sig { returns(String) }
71
+ attr_accessor :debtor_routing_number
76
72
 
77
- # Line 3 of the drawdown request's recipient's address.
73
+ # If the recipient fulfills the drawdown request by sending funds, then this will
74
+ # be the identifier of the corresponding Transaction.
78
75
  sig { returns(T.nilable(String)) }
79
- attr_accessor :recipient_address_line3
76
+ attr_accessor :fulfillment_inbound_wire_transfer_id
80
77
 
81
- # The drawdown request's recipient's name.
78
+ # The idempotency key you chose for this object. This value is unique across
79
+ # Increase and is used to ensure that a request is only processed once. Learn more
80
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
82
81
  sig { returns(T.nilable(String)) }
83
- attr_accessor :recipient_name
84
-
85
- # The drawdown request's recipient's routing number.
86
- sig { returns(String) }
87
- attr_accessor :recipient_routing_number
82
+ attr_accessor :idempotency_key
88
83
 
89
84
  # The lifecycle status of the drawdown request.
90
85
  sig { returns(Increase::WireDrawdownRequest::Status::TaggedSymbol) }
@@ -108,6 +103,10 @@ module Increase
108
103
  sig { returns(Increase::WireDrawdownRequest::Type::TaggedSymbol) }
109
104
  attr_accessor :type
110
105
 
106
+ # Remittance information the debtor will see as part of the drawdown request.
107
+ sig { returns(String) }
108
+ attr_accessor :unstructured_remittance_information
109
+
111
110
  # Wire drawdown requests enable you to request that someone else send you a wire.
112
111
  # Because there is nuance to making sure your counterparty's bank processes these
113
112
  # correctly, we ask that you reach out to
@@ -120,40 +119,49 @@ module Increase
120
119
  account_number_id: String,
121
120
  amount: Integer,
122
121
  created_at: Time,
122
+ creditor_address:
123
+ Increase::WireDrawdownRequest::CreditorAddress::OrHash,
124
+ creditor_name: String,
123
125
  currency: String,
126
+ debtor_account_number: String,
127
+ debtor_address: Increase::WireDrawdownRequest::DebtorAddress::OrHash,
128
+ debtor_name: String,
129
+ debtor_routing_number: String,
124
130
  fulfillment_inbound_wire_transfer_id: T.nilable(String),
125
131
  idempotency_key: T.nilable(String),
126
- message_to_recipient: String,
127
- originator_address_line1: T.nilable(String),
128
- originator_address_line2: T.nilable(String),
129
- originator_address_line3: T.nilable(String),
130
- originator_name: T.nilable(String),
131
- recipient_account_number: String,
132
- recipient_address_line1: T.nilable(String),
133
- recipient_address_line2: T.nilable(String),
134
- recipient_address_line3: T.nilable(String),
135
- recipient_name: T.nilable(String),
136
- recipient_routing_number: String,
137
132
  status: Increase::WireDrawdownRequest::Status::OrSymbol,
138
133
  submission:
139
134
  T.nilable(Increase::WireDrawdownRequest::Submission::OrHash),
140
- type: Increase::WireDrawdownRequest::Type::OrSymbol
135
+ type: Increase::WireDrawdownRequest::Type::OrSymbol,
136
+ unstructured_remittance_information: String
141
137
  ).returns(T.attached_class)
142
138
  end
143
139
  def self.new(
144
140
  # The Wire drawdown request identifier.
145
141
  id:,
146
- # The Account Number to which the recipient of this request is being requested to
147
- # send funds.
142
+ # The Account Number to which the debtor—the recipient of this requestis being
143
+ # requested to send funds.
148
144
  account_number_id:,
149
145
  # The amount being requested in cents.
150
146
  amount:,
151
147
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
152
148
  # the wire drawdown request was created.
153
149
  created_at:,
150
+ # The creditor's address.
151
+ creditor_address:,
152
+ # The creditor's name.
153
+ creditor_name:,
154
154
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
155
155
  # requested. Will always be "USD".
156
156
  currency:,
157
+ # The debtor's account number.
158
+ debtor_account_number:,
159
+ # The debtor's address.
160
+ debtor_address:,
161
+ # The debtor's name.
162
+ debtor_name:,
163
+ # The debtor's routing number.
164
+ debtor_routing_number:,
157
165
  # If the recipient fulfills the drawdown request by sending funds, then this will
158
166
  # be the identifier of the corresponding Transaction.
159
167
  fulfillment_inbound_wire_transfer_id:,
@@ -161,28 +169,6 @@ module Increase
161
169
  # Increase and is used to ensure that a request is only processed once. Learn more
162
170
  # about [idempotency](https://increase.com/documentation/idempotency-keys).
163
171
  idempotency_key:,
164
- # The message the recipient will see as part of the drawdown request.
165
- message_to_recipient:,
166
- # The originator's address line 1.
167
- originator_address_line1:,
168
- # The originator's address line 2.
169
- originator_address_line2:,
170
- # The originator's address line 3.
171
- originator_address_line3:,
172
- # The originator's name.
173
- originator_name:,
174
- # The drawdown request's recipient's account number.
175
- recipient_account_number:,
176
- # Line 1 of the drawdown request's recipient's address.
177
- recipient_address_line1:,
178
- # Line 2 of the drawdown request's recipient's address.
179
- recipient_address_line2:,
180
- # Line 3 of the drawdown request's recipient's address.
181
- recipient_address_line3:,
182
- # The drawdown request's recipient's name.
183
- recipient_name:,
184
- # The drawdown request's recipient's routing number.
185
- recipient_routing_number:,
186
172
  # The lifecycle status of the drawdown request.
187
173
  status:,
188
174
  # After the drawdown request is submitted to Fedwire, this will contain
@@ -190,7 +176,9 @@ module Increase
190
176
  submission:,
191
177
  # A constant representing the object's type. For this resource it will always be
192
178
  # `wire_drawdown_request`.
193
- type:
179
+ type:,
180
+ # Remittance information the debtor will see as part of the drawdown request.
181
+ unstructured_remittance_information:
194
182
  )
195
183
  end
196
184
 
@@ -201,29 +189,185 @@ module Increase
201
189
  account_number_id: String,
202
190
  amount: Integer,
203
191
  created_at: Time,
192
+ creditor_address: Increase::WireDrawdownRequest::CreditorAddress,
193
+ creditor_name: String,
204
194
  currency: String,
195
+ debtor_account_number: String,
196
+ debtor_address: Increase::WireDrawdownRequest::DebtorAddress,
197
+ debtor_name: String,
198
+ debtor_routing_number: String,
205
199
  fulfillment_inbound_wire_transfer_id: T.nilable(String),
206
200
  idempotency_key: T.nilable(String),
207
- message_to_recipient: String,
208
- originator_address_line1: T.nilable(String),
209
- originator_address_line2: T.nilable(String),
210
- originator_address_line3: T.nilable(String),
211
- originator_name: T.nilable(String),
212
- recipient_account_number: String,
213
- recipient_address_line1: T.nilable(String),
214
- recipient_address_line2: T.nilable(String),
215
- recipient_address_line3: T.nilable(String),
216
- recipient_name: T.nilable(String),
217
- recipient_routing_number: String,
218
201
  status: Increase::WireDrawdownRequest::Status::TaggedSymbol,
219
202
  submission: T.nilable(Increase::WireDrawdownRequest::Submission),
220
- type: Increase::WireDrawdownRequest::Type::TaggedSymbol
203
+ type: Increase::WireDrawdownRequest::Type::TaggedSymbol,
204
+ unstructured_remittance_information: String
221
205
  }
222
206
  )
223
207
  end
224
208
  def to_hash
225
209
  end
226
210
 
211
+ class CreditorAddress < Increase::Internal::Type::BaseModel
212
+ OrHash =
213
+ T.type_alias do
214
+ T.any(
215
+ Increase::WireDrawdownRequest::CreditorAddress,
216
+ Increase::Internal::AnyHash
217
+ )
218
+ end
219
+
220
+ # The city, district, town, or village of the address.
221
+ sig { returns(String) }
222
+ attr_accessor :city
223
+
224
+ # The two-letter
225
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
226
+ # the country of the address.
227
+ sig { returns(String) }
228
+ attr_accessor :country
229
+
230
+ # The first line of the address.
231
+ sig { returns(String) }
232
+ attr_accessor :line1
233
+
234
+ # The second line of the address.
235
+ sig { returns(T.nilable(String)) }
236
+ attr_accessor :line2
237
+
238
+ # The ZIP code of the address.
239
+ sig { returns(T.nilable(String)) }
240
+ attr_accessor :postal_code
241
+
242
+ # The address state.
243
+ sig { returns(T.nilable(String)) }
244
+ attr_accessor :state
245
+
246
+ # The creditor's address.
247
+ sig do
248
+ params(
249
+ city: String,
250
+ country: String,
251
+ line1: String,
252
+ line2: T.nilable(String),
253
+ postal_code: T.nilable(String),
254
+ state: T.nilable(String)
255
+ ).returns(T.attached_class)
256
+ end
257
+ def self.new(
258
+ # The city, district, town, or village of the address.
259
+ city:,
260
+ # The two-letter
261
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
262
+ # the country of the address.
263
+ country:,
264
+ # The first line of the address.
265
+ line1:,
266
+ # The second line of the address.
267
+ line2:,
268
+ # The ZIP code of the address.
269
+ postal_code:,
270
+ # The address state.
271
+ state:
272
+ )
273
+ end
274
+
275
+ sig do
276
+ override.returns(
277
+ {
278
+ city: String,
279
+ country: String,
280
+ line1: String,
281
+ line2: T.nilable(String),
282
+ postal_code: T.nilable(String),
283
+ state: T.nilable(String)
284
+ }
285
+ )
286
+ end
287
+ def to_hash
288
+ end
289
+ end
290
+
291
+ class DebtorAddress < Increase::Internal::Type::BaseModel
292
+ OrHash =
293
+ T.type_alias do
294
+ T.any(
295
+ Increase::WireDrawdownRequest::DebtorAddress,
296
+ Increase::Internal::AnyHash
297
+ )
298
+ end
299
+
300
+ # The city, district, town, or village of the address.
301
+ sig { returns(String) }
302
+ attr_accessor :city
303
+
304
+ # The two-letter
305
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
306
+ # the country of the address.
307
+ sig { returns(String) }
308
+ attr_accessor :country
309
+
310
+ # The first line of the address.
311
+ sig { returns(String) }
312
+ attr_accessor :line1
313
+
314
+ # The second line of the address.
315
+ sig { returns(T.nilable(String)) }
316
+ attr_accessor :line2
317
+
318
+ # The ZIP code of the address.
319
+ sig { returns(T.nilable(String)) }
320
+ attr_accessor :postal_code
321
+
322
+ # The address state.
323
+ sig { returns(T.nilable(String)) }
324
+ attr_accessor :state
325
+
326
+ # The debtor's address.
327
+ sig do
328
+ params(
329
+ city: String,
330
+ country: String,
331
+ line1: String,
332
+ line2: T.nilable(String),
333
+ postal_code: T.nilable(String),
334
+ state: T.nilable(String)
335
+ ).returns(T.attached_class)
336
+ end
337
+ def self.new(
338
+ # The city, district, town, or village of the address.
339
+ city:,
340
+ # The two-letter
341
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
342
+ # the country of the address.
343
+ country:,
344
+ # The first line of the address.
345
+ line1:,
346
+ # The second line of the address.
347
+ line2:,
348
+ # The ZIP code of the address.
349
+ postal_code:,
350
+ # The address state.
351
+ state:
352
+ )
353
+ end
354
+
355
+ sig do
356
+ override.returns(
357
+ {
358
+ city: String,
359
+ country: String,
360
+ line1: String,
361
+ line2: T.nilable(String),
362
+ postal_code: T.nilable(String),
363
+ state: T.nilable(String)
364
+ }
365
+ )
366
+ end
367
+ def to_hash
368
+ end
369
+ end
370
+
227
371
  # The lifecycle status of the drawdown request.
228
372
  module Status
229
373
  extend Increase::Internal::Type::Enum