increase 1.369.0 → 1.370.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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/errors.rb +6 -0
  4. data/lib/increase/models/checkbook.rb +3 -0
  5. data/lib/increase/models/checkbook_create_params.rb +24 -1
  6. data/lib/increase/models/event.rb +15 -0
  7. data/lib/increase/models/event_list_params.rb +15 -0
  8. data/lib/increase/models/event_subscription.rb +15 -0
  9. data/lib/increase/models/event_subscription_create_params.rb +15 -0
  10. data/lib/increase/models/inbound_wire_transfer.rb +12 -1
  11. data/lib/increase/models/inbound_wire_transfer_reverse_params.rb +17 -1
  12. data/lib/increase/models/real_time_payments_transfer.rb +75 -1
  13. data/lib/increase/models/real_time_payments_transfer_create_params.rb +82 -1
  14. data/lib/increase/models/unwrap_webhook_event.rb +15 -0
  15. data/lib/increase/resources/checkbooks.rb +4 -1
  16. data/lib/increase/resources/inbound_wire_transfers.rb +6 -1
  17. data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
  18. data/lib/increase/version.rb +1 -1
  19. data/rbi/increase/errors.rbi +4 -0
  20. data/rbi/increase/models/checkbook.rbi +4 -0
  21. data/rbi/increase/models/checkbook_create_params.rbi +39 -0
  22. data/rbi/increase/models/event.rbi +26 -0
  23. data/rbi/increase/models/event_list_params.rbi +35 -0
  24. data/rbi/increase/models/event_subscription.rbi +35 -0
  25. data/rbi/increase/models/event_subscription_create_params.rbi +35 -0
  26. data/rbi/increase/models/inbound_wire_transfer.rbi +15 -0
  27. data/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +22 -0
  28. data/rbi/increase/models/real_time_payments_transfer.rbi +108 -0
  29. data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +123 -0
  30. data/rbi/increase/models/unwrap_webhook_event.rbi +35 -0
  31. data/rbi/increase/resources/checkbooks.rbi +3 -0
  32. data/rbi/increase/resources/inbound_wire_transfers.rbi +5 -0
  33. data/rbi/increase/resources/real_time_payments_transfers.rbi +5 -0
  34. data/sig/increase/errors.rbs +4 -0
  35. data/sig/increase/models/checkbook.rbs +4 -1
  36. data/sig/increase/models/checkbook_create_params.rbs +20 -1
  37. data/sig/increase/models/event.rbs +20 -0
  38. data/sig/increase/models/event_list_params.rbs +20 -0
  39. data/sig/increase/models/event_subscription.rbs +20 -0
  40. data/sig/increase/models/event_subscription_create_params.rbs +20 -0
  41. data/sig/increase/models/inbound_wire_transfer.rbs +10 -1
  42. data/sig/increase/models/inbound_wire_transfer_reverse_params.rbs +13 -2
  43. data/sig/increase/models/real_time_payments_transfer.rbs +52 -0
  44. data/sig/increase/models/real_time_payments_transfer_create_params.rbs +60 -0
  45. data/sig/increase/models/unwrap_webhook_event.rbs +20 -0
  46. data/sig/increase/resources/checkbooks.rbs +1 -0
  47. data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
  48. data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
  49. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51dda6e70e9003f0282f9d4c721adcdeefda26ec6ee1d50aba405d43212b31a1
4
- data.tar.gz: 524ee7f4348a1452eaba9c1cfbb40b76aeb50e47a2d6c099f23f7b9a61505f95
3
+ metadata.gz: 12b98259124559124597028e090507889ee6419ee0b6930a472e67dc4bea5789
4
+ data.tar.gz: 9c6f8cffd8e761126c758e988f06c10cbed1b543b287ad458f41cae0c45b6f2c
5
5
  SHA512:
6
- metadata.gz: f26f45e0c4978b99d1fd2f2f2ca3b76dde6b7dfa1fc1e90e551aa0a62f367329410daa1a10968b7611c2320e0a97da6211d0d88f3628d079bafabf17be79989a
7
- data.tar.gz: aa97a72158c9c3a3fb847ad06cc5b445b00c9764ff59875a892be5a2d3f3c62f8547366adeda73b8238706b9041002668bc831d7cc3ad3a4d842670c65ca024b
6
+ metadata.gz: b06cad278a999ced661cf2502991c61b72486bf5ff4d98817b70c5f52f18319cc45a80aaa1802e6f9e007825ed46b71373393a9332c2a15263db2b6479b6ceff
7
+ data.tar.gz: fe8db2a9718ecc4add97d96998236ec45c0ab0d0e45b46274c827b834a717d49151db7f3884e508b5b6205212c181e0e92134c8613de3229c0f02a70eb4bb998
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.369.0"
18
+ gem "increase", "~> 1.370.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -162,6 +162,8 @@ module Increase
162
162
  Increase::Errors::APIMethodNotFoundError.new(**kwargs)
163
163
  in [404, Increase::Errors::ObjectNotFoundError::TYPE]
164
164
  Increase::Errors::ObjectNotFoundError.new(**kwargs)
165
+ in [408, Increase::Errors::RequestTimeoutError::TYPE]
166
+ Increase::Errors::RequestTimeoutError.new(**kwargs)
165
167
  in [409, Increase::Errors::IdempotencyKeyAlreadyUsedError::TYPE]
166
168
  Increase::Errors::IdempotencyKeyAlreadyUsedError.new(**kwargs)
167
169
  in [409, Increase::Errors::InvalidOperationError::TYPE]
@@ -276,6 +278,10 @@ module Increase
276
278
  TYPE = "object_not_found_error"
277
279
  end
278
280
 
281
+ class RequestTimeoutError < Increase::Errors::APIStatusError
282
+ TYPE = "request_timeout_error"
283
+ end
284
+
279
285
  class IdempotencyKeyAlreadyUsedError < Increase::Errors::ConflictError
280
286
  TYPE = "idempotency_key_already_used_error"
281
287
  end
@@ -258,6 +258,9 @@ module Increase
258
258
  module Style
259
259
  extend Increase::Internal::Type::Enum
260
260
 
261
+ # A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
262
+ TOP_TEAR_PAD = :top_tear_pad
263
+
261
264
  # A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
262
265
  THREE_RING_BINDER = :three_ring_binder
263
266
 
@@ -28,7 +28,13 @@ module Increase
28
28
  # @return [Array<Increase::Models::CheckbookCreateParams::Payer>]
29
29
  required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::CheckbookCreateParams::Payer] }
30
30
 
31
- # @!method initialize(account_number_id:, mailing_address:, payer:, request_options: {})
31
+ # @!attribute style
32
+ # The physical format of the Checkbook.
33
+ #
34
+ # @return [Symbol, Increase::Models::CheckbookCreateParams::Style]
35
+ required :style, enum: -> { Increase::CheckbookCreateParams::Style }
36
+
37
+ # @!method initialize(account_number_id:, mailing_address:, payer:, style:, request_options: {})
32
38
  # @param account_number_id [String]
33
39
  # The identifier of the Account Number that the checks will draw from. The Account
34
40
  # Number must be active.
@@ -41,6 +47,9 @@ module Increase
41
47
  # check. This should be an array of up to 4 elements, each of which represents a
42
48
  # line of the payer.
43
49
  #
50
+ # @param style [Symbol, Increase::Models::CheckbookCreateParams::Style]
51
+ # The physical format of the Checkbook.
52
+ #
44
53
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
45
54
 
46
55
  class MailingAddress < Increase::Internal::Type::BaseModel
@@ -106,6 +115,20 @@ module Increase
106
115
  # @!method initialize(contents:)
107
116
  # @param contents [String] The contents of the line.
108
117
  end
118
+
119
+ # The physical format of the Checkbook.
120
+ module Style
121
+ extend Increase::Internal::Type::Enum
122
+
123
+ # A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
124
+ TOP_TEAR_PAD = :top_tear_pad
125
+
126
+ # A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
127
+ THREE_RING_BINDER = :three_ring_binder
128
+
129
+ # @!method self.values
130
+ # @return [Array<Symbol>]
131
+ end
109
132
  end
110
133
  end
111
134
  end
@@ -307,6 +307,15 @@ module Increase
307
307
  # Occurs whenever a Loan Distribution is created.
308
308
  LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
309
309
 
310
+ # Occurs whenever a Loan Draw is created.
311
+ LOAN_DRAW_CREATED = :"loan_draw.created"
312
+
313
+ # Occurs whenever a Loan Hold is created.
314
+ LOAN_HOLD_CREATED = :"loan_hold.created"
315
+
316
+ # Occurs whenever a Loan Hold is updated.
317
+ LOAN_HOLD_UPDATED = :"loan_hold.updated"
318
+
310
319
  # Occurs whenever a Loan Obligation is created.
311
320
  LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
312
321
 
@@ -316,12 +325,18 @@ module Increase
316
325
  # Occurs whenever a Loan Offer is updated.
317
326
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
318
327
 
328
+ # Occurs whenever a Loan Payment is created.
329
+ LOAN_PAYMENT_CREATED = :"loan_payment.created"
330
+
319
331
  # Occurs whenever a Loan Purchase Offer is created.
320
332
  LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
321
333
 
322
334
  # Occurs whenever a Loan Purchase Offer is updated.
323
335
  LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
324
336
 
337
+ # Occurs whenever a Loan Statement is created.
338
+ LOAN_STATEMENT_CREATED = :"loan_statement.created"
339
+
325
340
  # Occurs whenever a Lockbox is created.
326
341
  LOCKBOX_CREATED = :"lockbox.created"
327
342
 
@@ -319,6 +319,15 @@ module Increase
319
319
  # Occurs whenever a Loan Distribution is created.
320
320
  LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
321
321
 
322
+ # Occurs whenever a Loan Draw is created.
323
+ LOAN_DRAW_CREATED = :"loan_draw.created"
324
+
325
+ # Occurs whenever a Loan Hold is created.
326
+ LOAN_HOLD_CREATED = :"loan_hold.created"
327
+
328
+ # Occurs whenever a Loan Hold is updated.
329
+ LOAN_HOLD_UPDATED = :"loan_hold.updated"
330
+
322
331
  # Occurs whenever a Loan Obligation is created.
323
332
  LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
324
333
 
@@ -328,12 +337,18 @@ module Increase
328
337
  # Occurs whenever a Loan Offer is updated.
329
338
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
330
339
 
340
+ # Occurs whenever a Loan Payment is created.
341
+ LOAN_PAYMENT_CREATED = :"loan_payment.created"
342
+
331
343
  # Occurs whenever a Loan Purchase Offer is created.
332
344
  LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
333
345
 
334
346
  # Occurs whenever a Loan Purchase Offer is updated.
335
347
  LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
336
348
 
349
+ # Occurs whenever a Loan Statement is created.
350
+ LOAN_STATEMENT_CREATED = :"loan_statement.created"
351
+
337
352
  # Occurs whenever a Lockbox is created.
338
353
  LOCKBOX_CREATED = :"lockbox.created"
339
354
 
@@ -348,6 +348,15 @@ module Increase
348
348
  # Occurs whenever a Loan Distribution is created.
349
349
  LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
350
350
 
351
+ # Occurs whenever a Loan Draw is created.
352
+ LOAN_DRAW_CREATED = :"loan_draw.created"
353
+
354
+ # Occurs whenever a Loan Hold is created.
355
+ LOAN_HOLD_CREATED = :"loan_hold.created"
356
+
357
+ # Occurs whenever a Loan Hold is updated.
358
+ LOAN_HOLD_UPDATED = :"loan_hold.updated"
359
+
351
360
  # Occurs whenever a Loan Obligation is created.
352
361
  LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
353
362
 
@@ -357,12 +366,18 @@ module Increase
357
366
  # Occurs whenever a Loan Offer is updated.
358
367
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
359
368
 
369
+ # Occurs whenever a Loan Payment is created.
370
+ LOAN_PAYMENT_CREATED = :"loan_payment.created"
371
+
360
372
  # Occurs whenever a Loan Purchase Offer is created.
361
373
  LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
362
374
 
363
375
  # Occurs whenever a Loan Purchase Offer is updated.
364
376
  LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
365
377
 
378
+ # Occurs whenever a Loan Statement is created.
379
+ LOAN_STATEMENT_CREATED = :"loan_statement.created"
380
+
366
381
  # Occurs whenever a Lockbox is created.
367
382
  LOCKBOX_CREATED = :"lockbox.created"
368
383
 
@@ -317,6 +317,15 @@ module Increase
317
317
  # Occurs whenever a Loan Distribution is created.
318
318
  LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
319
319
 
320
+ # Occurs whenever a Loan Draw is created.
321
+ LOAN_DRAW_CREATED = :"loan_draw.created"
322
+
323
+ # Occurs whenever a Loan Hold is created.
324
+ LOAN_HOLD_CREATED = :"loan_hold.created"
325
+
326
+ # Occurs whenever a Loan Hold is updated.
327
+ LOAN_HOLD_UPDATED = :"loan_hold.updated"
328
+
320
329
  # Occurs whenever a Loan Obligation is created.
321
330
  LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
322
331
 
@@ -326,12 +335,18 @@ module Increase
326
335
  # Occurs whenever a Loan Offer is updated.
327
336
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
328
337
 
338
+ # Occurs whenever a Loan Payment is created.
339
+ LOAN_PAYMENT_CREATED = :"loan_payment.created"
340
+
329
341
  # Occurs whenever a Loan Purchase Offer is created.
330
342
  LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
331
343
 
332
344
  # Occurs whenever a Loan Purchase Offer is updated.
333
345
  LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
334
346
 
347
+ # Occurs whenever a Loan Statement is created.
348
+ LOAN_STATEMENT_CREATED = :"loan_statement.created"
349
+
335
350
  # Occurs whenever a Lockbox is created.
336
351
  LOCKBOX_CREATED = :"lockbox.created"
337
352
 
@@ -292,6 +292,12 @@ module Increase
292
292
 
293
293
  # @see Increase::Models::InboundWireTransfer#reversal
294
294
  class Reversal < Increase::Internal::Type::BaseModel
295
+ # @!attribute amount
296
+ # The amount that was reversed in USD cents.
297
+ #
298
+ # @return [Integer]
299
+ required :amount, Integer
300
+
295
301
  # @!attribute reason
296
302
  # The reason for the reversal.
297
303
  #
@@ -305,9 +311,11 @@ module Increase
305
311
  # @return [Time]
306
312
  required :reversed_at, Time
307
313
 
308
- # @!method initialize(reason:, reversed_at:)
314
+ # @!method initialize(amount:, reason:, reversed_at:)
309
315
  # If the transfer is reversed, this will contain details of the reversal.
310
316
  #
317
+ # @param amount [Integer] The amount that was reversed in USD cents.
318
+ #
311
319
  # @param reason [Symbol, Increase::Models::InboundWireTransfer::Reversal::Reason]
312
320
  # The reason for the reversal.
313
321
  #
@@ -330,6 +338,9 @@ module Increase
330
338
  # The account cannot currently receive inbound wires.
331
339
  TRANSACTION_FORBIDDEN = :transaction_forbidden
332
340
 
341
+ # The inbound wire transfer was fraudulent.
342
+ FRAUD = :fraud
343
+
333
344
  # @!method self.values
334
345
  # @return [Array<Symbol>]
335
346
  end
@@ -19,12 +19,25 @@ module Increase
19
19
  # @return [Symbol, Increase::Models::InboundWireTransferReverseParams::Reason]
20
20
  required :reason, enum: -> { Increase::InboundWireTransferReverseParams::Reason }
21
21
 
22
- # @!method initialize(inbound_wire_transfer_id:, reason:, request_options: {})
22
+ # @!attribute amount
23
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
24
+ # Wire Transfer. A transfer can only be reversed once, so any amount you don't
25
+ # return now stays with the recipient.
26
+ #
27
+ # @return [Integer, nil]
28
+ optional :amount, Integer
29
+
30
+ # @!method initialize(inbound_wire_transfer_id:, reason:, amount: nil, request_options: {})
23
31
  # @param inbound_wire_transfer_id [String] The identifier of the Inbound Wire Transfer to reverse.
24
32
  #
25
33
  # @param reason [Symbol, Increase::Models::InboundWireTransferReverseParams::Reason]
26
34
  # Reason for the reversal.
27
35
  #
36
+ # @param amount [Integer]
37
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
38
+ # Wire Transfer. A transfer can only be reversed once, so any amount you don't
39
+ # return now stays with the recipient.
40
+ #
28
41
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
29
42
 
30
43
  # Reason for the reversal.
@@ -40,6 +53,9 @@ module Increase
40
53
  # The account cannot currently receive inbound wires.
41
54
  TRANSACTION_FORBIDDEN = :transaction_forbidden
42
55
 
56
+ # The inbound wire transfer was fraudulent.
57
+ FRAUD = :fraud
58
+
43
59
  # @!method self.values
44
60
  # @return [Array<Symbol>]
45
61
  end
@@ -76,6 +76,12 @@ module Increase
76
76
  # @return [Symbol, Increase::Models::RealTimePaymentsTransfer::Currency]
77
77
  required :currency, enum: -> { Increase::RealTimePaymentsTransfer::Currency }
78
78
 
79
+ # @!attribute debtor_address
80
+ # The address of the transfer's sender.
81
+ #
82
+ # @return [Increase::Models::RealTimePaymentsTransfer::DebtorAddress, nil]
83
+ required :debtor_address, -> { Increase::RealTimePaymentsTransfer::DebtorAddress }, nil?: true
84
+
79
85
  # @!attribute debtor_name
80
86
  # The name of the transfer's sender. If not provided, defaults to the name of the
81
87
  # account's entity.
@@ -192,7 +198,7 @@ module Increase
192
198
  # @return [String]
193
199
  required :unstructured_remittance_information, String
194
200
 
195
- # @!method initialize(id:, account_id:, account_number:, acknowledgement:, amount:, approval:, cancellation:, created_at:, created_by:, creditor_name:, currency:, debtor_name:, end_to_end_identification:, external_account_id:, idempotency_key:, inbound_real_time_payments_request_for_payment_id:, pending_transaction_id:, rejection:, return_of_inbound_real_time_payments_transfer_id:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:, ultimate_creditor_name:, ultimate_debtor_name:, unstructured_remittance_information:)
201
+ # @!method initialize(id:, account_id:, account_number:, acknowledgement:, amount:, approval:, cancellation:, created_at:, created_by:, creditor_name:, currency:, debtor_address:, debtor_name:, end_to_end_identification:, external_account_id:, idempotency_key:, inbound_real_time_payments_request_for_payment_id:, pending_transaction_id:, rejection:, return_of_inbound_real_time_payments_transfer_id:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:, ultimate_creditor_name:, ultimate_debtor_name:, unstructured_remittance_information:)
196
202
  # Real-Time Payments transfers move funds, within seconds, between your Increase
197
203
  # account and any other account on the Real-Time Payments network.
198
204
  #
@@ -231,6 +237,9 @@ module Increase
231
237
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
232
238
  # currency. For real-time payments transfers this is always equal to `USD`.
233
239
  #
240
+ # @param debtor_address [Increase::Models::RealTimePaymentsTransfer::DebtorAddress, nil]
241
+ # The address of the transfer's sender.
242
+ #
234
243
  # @param debtor_name [String, nil]
235
244
  # The name of the transfer's sender. If not provided, defaults to the name of the
236
245
  # account's entity.
@@ -487,6 +496,71 @@ module Increase
487
496
  # @return [Array<Symbol>]
488
497
  end
489
498
 
499
+ # @see Increase::Models::RealTimePaymentsTransfer#debtor_address
500
+ class DebtorAddress < Increase::Internal::Type::BaseModel
501
+ # @!attribute address_line2
502
+ # A second address line, such as an apartment or suite number. The first address
503
+ # line is separated into `building_number` and `street_name`.
504
+ #
505
+ # @return [String, nil]
506
+ required :address_line2, String, nil?: true
507
+
508
+ # @!attribute building_number
509
+ # The number identifying the position of the building on the street.
510
+ #
511
+ # @return [String, nil]
512
+ required :building_number, String, nil?: true
513
+
514
+ # @!attribute city
515
+ # The town or city.
516
+ #
517
+ # @return [String, nil]
518
+ required :city, String, nil?: true
519
+
520
+ # @!attribute country
521
+ # The ISO 3166, Alpha-2 country code.
522
+ #
523
+ # @return [String, nil]
524
+ required :country, String, nil?: true
525
+
526
+ # @!attribute postal_code
527
+ # The postal code or zip.
528
+ #
529
+ # @return [String, nil]
530
+ required :postal_code, String, nil?: true
531
+
532
+ # @!attribute state
533
+ # The US state component of the address.
534
+ #
535
+ # @return [String, nil]
536
+ required :state, String, nil?: true
537
+
538
+ # @!attribute street_name
539
+ # The street name without the street number.
540
+ #
541
+ # @return [String, nil]
542
+ required :street_name, String, nil?: true
543
+
544
+ # @!method initialize(address_line2:, building_number:, city:, country:, postal_code:, state:, street_name:)
545
+ # The address of the transfer's sender.
546
+ #
547
+ # @param address_line2 [String, nil]
548
+ # A second address line, such as an apartment or suite number. The first address
549
+ # line is separated into `building_number` and `street_name`.
550
+ #
551
+ # @param building_number [String, nil] The number identifying the position of the building on the street.
552
+ #
553
+ # @param city [String, nil] The town or city.
554
+ #
555
+ # @param country [String, nil] The ISO 3166, Alpha-2 country code.
556
+ #
557
+ # @param postal_code [String, nil] The postal code or zip.
558
+ #
559
+ # @param state [String, nil] The US state component of the address.
560
+ #
561
+ # @param street_name [String, nil] The street name without the street number.
562
+ end
563
+
490
564
  # @see Increase::Models::RealTimePaymentsTransfer#rejection
491
565
  class Rejection < Increase::Internal::Type::BaseModel
492
566
  # @!attribute reject_reason_additional_information
@@ -38,6 +38,13 @@ module Increase
38
38
  # @return [String, nil]
39
39
  optional :account_number, String
40
40
 
41
+ # @!attribute debtor_address
42
+ # The address of the transfer's sender. If not provided, no debtor address is sent
43
+ # with the transfer.
44
+ #
45
+ # @return [Increase::Models::RealTimePaymentsTransferCreateParams::DebtorAddress, nil]
46
+ optional :debtor_address, -> { Increase::RealTimePaymentsTransferCreateParams::DebtorAddress }
47
+
41
48
  # @!attribute debtor_name
42
49
  # The name of the transfer's sender. If not provided, defaults to the name of the
43
50
  # account's entity.
@@ -86,7 +93,7 @@ module Increase
86
93
  # @return [String, nil]
87
94
  optional :ultimate_debtor_name, String
88
95
 
89
- # @!method initialize(amount:, creditor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, debtor_name: nil, external_account_id: nil, inbound_real_time_payments_request_for_payment_id: nil, require_approval: nil, routing_number: nil, ultimate_creditor_name: nil, ultimate_debtor_name: nil, request_options: {})
96
+ # @!method initialize(amount:, creditor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, debtor_address: nil, debtor_name: nil, external_account_id: nil, inbound_real_time_payments_request_for_payment_id: nil, require_approval: nil, routing_number: nil, ultimate_creditor_name: nil, ultimate_debtor_name: nil, request_options: {})
90
97
  # @param amount [Integer]
91
98
  # The transfer amount in USD cents. For Real-Time Payments transfers, must be
92
99
  # positive.
@@ -101,6 +108,10 @@ module Increase
101
108
  #
102
109
  # @param account_number [String] The destination account number.
103
110
  #
111
+ # @param debtor_address [Increase::Models::RealTimePaymentsTransferCreateParams::DebtorAddress]
112
+ # The address of the transfer's sender. If not provided, no debtor address is sent
113
+ # with the transfer.
114
+ #
104
115
  # @param debtor_name [String]
105
116
  # The name of the transfer's sender. If not provided, defaults to the name of the
106
117
  # account's entity.
@@ -129,6 +140,76 @@ module Increase
129
140
  # sent on behalf of someone who is not the account holder at Increase.
130
141
  #
131
142
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
143
+
144
+ class DebtorAddress < Increase::Internal::Type::BaseModel
145
+ # @!attribute city
146
+ # The town or city.
147
+ #
148
+ # @return [String]
149
+ required :city, String
150
+
151
+ # @!attribute country
152
+ # The ISO 3166, Alpha-2 country code.
153
+ #
154
+ # Defaults to `US`.
155
+ #
156
+ # @return [String]
157
+ required :country, String
158
+
159
+ # @!attribute postal_code
160
+ # The postal code or zip.
161
+ #
162
+ # @return [String]
163
+ required :postal_code, String
164
+
165
+ # @!attribute state
166
+ # The US state component of the address.
167
+ #
168
+ # @return [String]
169
+ required :state, String
170
+
171
+ # @!attribute street_name
172
+ # The street name without the street number.
173
+ #
174
+ # @return [String]
175
+ required :street_name, String
176
+
177
+ # @!attribute address_line2
178
+ # A second address line, such as an apartment or suite number. The first address
179
+ # line is separated into `building_number` and `street_name`.
180
+ #
181
+ # @return [String, nil]
182
+ optional :address_line2, String
183
+
184
+ # @!attribute building_number
185
+ # The number identifying the position of the building on the street.
186
+ #
187
+ # @return [String, nil]
188
+ optional :building_number, String
189
+
190
+ # @!method initialize(city:, country:, postal_code:, state:, street_name:, address_line2: nil, building_number: nil)
191
+ # The address of the transfer's sender. If not provided, no debtor address is sent
192
+ # with the transfer.
193
+ #
194
+ # @param city [String] The town or city.
195
+ #
196
+ # @param country [String]
197
+ # The ISO 3166, Alpha-2 country code.
198
+ #
199
+ # Defaults to `US`.
200
+ #
201
+ # @param postal_code [String] The postal code or zip.
202
+ #
203
+ # @param state [String] The US state component of the address.
204
+ #
205
+ # @param street_name [String] The street name without the street number.
206
+ #
207
+ # @param address_line2 [String]
208
+ # A second address line, such as an apartment or suite number. The first address
209
+ # line is separated into `building_number` and `street_name`.
210
+ #
211
+ # @param building_number [String] The number identifying the position of the building on the street.
212
+ end
132
213
  end
133
214
  end
134
215
  end
@@ -306,6 +306,15 @@ module Increase
306
306
  # Occurs whenever a Loan Distribution is created.
307
307
  LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
308
308
 
309
+ # Occurs whenever a Loan Draw is created.
310
+ LOAN_DRAW_CREATED = :"loan_draw.created"
311
+
312
+ # Occurs whenever a Loan Hold is created.
313
+ LOAN_HOLD_CREATED = :"loan_hold.created"
314
+
315
+ # Occurs whenever a Loan Hold is updated.
316
+ LOAN_HOLD_UPDATED = :"loan_hold.updated"
317
+
309
318
  # Occurs whenever a Loan Obligation is created.
310
319
  LOAN_OBLIGATION_CREATED = :"loan_obligation.created"
311
320
 
@@ -315,12 +324,18 @@ module Increase
315
324
  # Occurs whenever a Loan Offer is updated.
316
325
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
317
326
 
327
+ # Occurs whenever a Loan Payment is created.
328
+ LOAN_PAYMENT_CREATED = :"loan_payment.created"
329
+
318
330
  # Occurs whenever a Loan Purchase Offer is created.
319
331
  LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
320
332
 
321
333
  # Occurs whenever a Loan Purchase Offer is updated.
322
334
  LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
323
335
 
336
+ # Occurs whenever a Loan Statement is created.
337
+ LOAN_STATEMENT_CREATED = :"loan_statement.created"
338
+
324
339
  # Occurs whenever a Lockbox is created.
325
340
  LOCKBOX_CREATED = :"lockbox.created"
326
341
 
@@ -5,7 +5,7 @@ module Increase
5
5
  class Checkbooks
6
6
  # Create a Checkbook
7
7
  #
8
- # @overload create(account_number_id:, mailing_address:, payer:, request_options: {})
8
+ # @overload create(account_number_id:, mailing_address:, payer:, style:, request_options: {})
9
9
  #
10
10
  # @param account_number_id [String]
11
11
  # The identifier of the Account Number that the checks will draw from. The Account
@@ -19,6 +19,9 @@ module Increase
19
19
  # check. This should be an array of up to 4 elements, each of which represents a
20
20
  # line of the payer.
21
21
  #
22
+ # @param style [Symbol, Increase::Models::CheckbookCreateParams::Style]
23
+ # The physical format of the Checkbook.
24
+ #
22
25
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
23
26
  #
24
27
  # @return [Increase::Models::Checkbook]
@@ -68,13 +68,18 @@ module Increase
68
68
 
69
69
  # Reverse an Inbound Wire Transfer
70
70
  #
71
- # @overload reverse(inbound_wire_transfer_id, reason:, request_options: {})
71
+ # @overload reverse(inbound_wire_transfer_id, reason:, amount: nil, request_options: {})
72
72
  #
73
73
  # @param inbound_wire_transfer_id [String] The identifier of the Inbound Wire Transfer to reverse.
74
74
  #
75
75
  # @param reason [Symbol, Increase::Models::InboundWireTransferReverseParams::Reason]
76
76
  # Reason for the reversal.
77
77
  #
78
+ # @param amount [Integer]
79
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
80
+ # Wire Transfer. A transfer can only be reversed once, so any amount you don't
81
+ # return now stays with the recipient.
82
+ #
78
83
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
79
84
  #
80
85
  # @return [Increase::Models::InboundWireTransfer]
@@ -5,7 +5,7 @@ module Increase
5
5
  class RealTimePaymentsTransfers
6
6
  # Create a Real-Time Payments Transfer
7
7
  #
8
- # @overload create(amount:, creditor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, debtor_name: nil, external_account_id: nil, inbound_real_time_payments_request_for_payment_id: nil, require_approval: nil, routing_number: nil, ultimate_creditor_name: nil, ultimate_debtor_name: nil, request_options: {})
8
+ # @overload create(amount:, creditor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, debtor_address: nil, debtor_name: nil, external_account_id: nil, inbound_real_time_payments_request_for_payment_id: nil, require_approval: nil, routing_number: nil, ultimate_creditor_name: nil, ultimate_debtor_name: nil, request_options: {})
9
9
  #
10
10
  # @param amount [Integer]
11
11
  # The transfer amount in USD cents. For Real-Time Payments transfers, must be
@@ -21,6 +21,10 @@ module Increase
21
21
  #
22
22
  # @param account_number [String] The destination account number.
23
23
  #
24
+ # @param debtor_address [Increase::Models::RealTimePaymentsTransferCreateParams::DebtorAddress]
25
+ # The address of the transfer's sender. If not provided, no debtor address is sent
26
+ # with the transfer.
27
+ #
24
28
  # @param debtor_name [String]
25
29
  # The name of the transfer's sender. If not provided, defaults to the name of the
26
30
  # account's entity.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.369.0"
4
+ VERSION = "1.370.0"
5
5
  end
@@ -230,6 +230,10 @@ module Increase
230
230
  TYPE = "object_not_found_error"
231
231
  end
232
232
 
233
+ class RequestTimeoutError < Increase::Errors::APIStatusError
234
+ TYPE = "request_timeout_error"
235
+ end
236
+
233
237
  class IdempotencyKeyAlreadyUsedError < Increase::Errors::ConflictError
234
238
  TYPE = "idempotency_key_already_used_error"
235
239
  end
@@ -345,6 +345,10 @@ module Increase
345
345
  T.type_alias { T.all(Symbol, Increase::Checkbook::Style) }
346
346
  OrSymbol = T.type_alias { T.any(Symbol, String) }
347
347
 
348
+ # A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
349
+ TOP_TEAR_PAD =
350
+ T.let(:top_tear_pad, Increase::Checkbook::Style::TaggedSymbol)
351
+
348
352
  # A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
349
353
  THREE_RING_BINDER =
350
354
  T.let(:three_ring_binder, Increase::Checkbook::Style::TaggedSymbol)