increase 1.335.0 → 1.337.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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/ach_prenotification.rb +3 -3
  5. data/lib/increase/models/balance_lookup.rb +31 -1
  6. data/lib/increase/models/event.rb +6 -0
  7. data/lib/increase/models/event_list_params.rb +6 -0
  8. data/lib/increase/models/event_subscription.rb +6 -3
  9. data/lib/increase/models/event_subscription_create_params.rb +6 -0
  10. data/lib/increase/models/simulations/card_authorization_create_params.rb +155 -1
  11. data/lib/increase/models/unwrap_webhook_event.rb +6 -0
  12. data/lib/increase/version.rb +1 -1
  13. data/rbi/increase/models/ach_prenotification.rbi +7 -7
  14. data/rbi/increase/models/balance_lookup.rbi +61 -3
  15. data/rbi/increase/models/event.rbi +14 -0
  16. data/rbi/increase/models/event_list_params.rbi +14 -0
  17. data/rbi/increase/models/event_subscription.rbi +14 -7
  18. data/rbi/increase/models/event_subscription_create_params.rbi +14 -0
  19. data/rbi/increase/models/simulations/card_authorization_create_params.rbi +350 -3
  20. data/rbi/increase/models/unwrap_webhook_event.rbi +14 -0
  21. data/sig/increase/models/ach_prenotification.rbs +4 -4
  22. data/sig/increase/models/balance_lookup.rbs +31 -3
  23. data/sig/increase/models/event.rbs +8 -0
  24. data/sig/increase/models/event_list_params.rbs +8 -0
  25. data/sig/increase/models/event_subscription.rbs +9 -4
  26. data/sig/increase/models/event_subscription_create_params.rbs +8 -0
  27. data/sig/increase/models/simulations/card_authorization_create_params.rbs +158 -3
  28. data/sig/increase/models/unwrap_webhook_event.rbs +8 -0
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fc22de92c329bbd0c21bdf33a84eb2a88cc071b0cdd727aac925c60d2934a9f
4
- data.tar.gz: 2417aeb99f89e5507f223477aac5946ee8469cf022f2fd628c29a0eb445f3bd5
3
+ metadata.gz: 629be8d8f9a8b45280dfc906082d5554f2a91b56c459e4fca2a69300c7c4aec3
4
+ data.tar.gz: e59403bc2d905200628519800d96919f4ad6206cf5deb9d8cc1dda729df430f6
5
5
  SHA512:
6
- metadata.gz: 85a1b699cf6399f16b9c21083e75125d1c974787d49ea1a6238bb6771d091eb54524215f4e112fb49ddde7f0025367069bb64afd8fa2b32aff53296d5aea1408
7
- data.tar.gz: ad9b6471bead2acbe265d8eadbe81051e5c0379324284c8eae73271b346e131fae4c7ddd2eac51b04179e68f50b9cf32fca66afa9e20a40818efbb541d19665e
6
+ metadata.gz: c8a7f0ed0a6ab7316f32b9e07d474113fde870c216788c1107e9afa9d46013b0b965e7d3b76ada5ad45076f00b3bee538df9c8d9db818fc523a502f5819ddb8e
7
+ data.tar.gz: 331152ce71672804632ccfb3b8b376146a9e6f59b581b70c4b70a5d0ade09452126146e50022f04830587304f9babf892d2807e44c722d6daa384da268890bb4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.337.0](https://github.com/Increase/increase-ruby/compare/v1.336.0...v1.337.0) (2026-06-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add Visa network fields to card authorization simulations ([135a241](https://github.com/Increase/increase-ruby/commit/135a2418a47ae155ae2fa143331aab3fc7237148))
9
+
10
+ ## [1.336.0](https://github.com/Increase/increase-ruby/compare/v1.335.0...v1.336.0) (2026-06-18)
11
+
12
+
13
+ ### Features
14
+
15
+ * **api:** api update ([#455](https://github.com/Increase/increase-ruby/issues/455)) ([31c679b](https://github.com/Increase/increase-ruby/commit/31c679bc21197a84a1f773b8d1a4f00cb0c7a07a))
16
+
3
17
  ## [1.335.0](https://github.com/Increase/increase-ruby/compare/v1.334.1...v1.335.0) (2026-06-17)
4
18
 
5
19
 
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.335.0"
18
+ gem "increase", "~> 1.337.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -639,15 +639,15 @@ module Increase
639
639
  # The Prenotification is pending submission.
640
640
  PENDING_SUBMITTING = :pending_submitting
641
641
 
642
- # The Prenotification requires attention.
643
- REQUIRES_ATTENTION = :requires_attention
644
-
645
642
  # The Prenotification has been returned.
646
643
  RETURNED = :returned
647
644
 
648
645
  # The Prenotification is complete.
649
646
  SUBMITTED = :submitted
650
647
 
648
+ # The Prenotification requires attention.
649
+ REQUIRES_ATTENTION = :requires_attention
650
+
651
651
  # @!method self.values
652
652
  # @return [Array<Symbol>]
653
653
  end
@@ -75,7 +75,13 @@ module Increase
75
75
  # @return [Integer]
76
76
  required :past_due_balance, Integer
77
77
 
78
- # @!method initialize(due_at:, due_balance:, past_due_balance:)
78
+ # @!attribute receivables
79
+ # The receivables balances for the loan.
80
+ #
81
+ # @return [Increase::Models::BalanceLookup::Loan::Receivables, nil]
82
+ required :receivables, -> { Increase::BalanceLookup::Loan::Receivables }, nil?: true
83
+
84
+ # @!method initialize(due_at:, due_balance:, past_due_balance:, receivables:)
79
85
  # Some parameter documentations has been truncated, see
80
86
  # {Increase::Models::BalanceLookup::Loan} for more details.
81
87
  #
@@ -86,6 +92,30 @@ module Increase
86
92
  # @param due_balance [Integer] The total amount due on the loan.
87
93
  #
88
94
  # @param past_due_balance [Integer] The amount past due on the loan.
95
+ #
96
+ # @param receivables [Increase::Models::BalanceLookup::Loan::Receivables, nil] The receivables balances for the loan.
97
+
98
+ # @see Increase::Models::BalanceLookup::Loan#receivables
99
+ class Receivables < Increase::Internal::Type::BaseModel
100
+ # @!attribute purchasable_balance
101
+ # The balance of seasoned receivables available to be purchased.
102
+ #
103
+ # @return [Integer]
104
+ required :purchasable_balance, Integer
105
+
106
+ # @!attribute purchased_balance
107
+ # The balance of receivables that have been purchased.
108
+ #
109
+ # @return [Integer]
110
+ required :purchased_balance, Integer
111
+
112
+ # @!method initialize(purchasable_balance:, purchased_balance:)
113
+ # The receivables balances for the loan.
114
+ #
115
+ # @param purchasable_balance [Integer] The balance of seasoned receivables available to be purchased.
116
+ #
117
+ # @param purchased_balance [Integer] The balance of receivables that have been purchased.
118
+ end
89
119
  end
90
120
 
91
121
  # A constant representing the object's type. For this resource it will always be
@@ -286,12 +286,18 @@ module Increase
286
286
  # Occurs whenever a Loan Application is updated.
287
287
  LOAN_APPLICATION_UPDATED = :"loan_application.updated"
288
288
 
289
+ # Occurs whenever a Loan Distribution is created.
290
+ LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
291
+
289
292
  # Occurs whenever a Loan Offer is created.
290
293
  LOAN_OFFER_CREATED = :"loan_offer.created"
291
294
 
292
295
  # Occurs whenever a Loan Offer is updated.
293
296
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
294
297
 
298
+ # Occurs whenever a Loan Purchase is created.
299
+ LOAN_PURCHASE_CREATED = :"loan_purchase.created"
300
+
295
301
  # Occurs whenever a Lockbox is created.
296
302
  LOCKBOX_CREATED = :"lockbox.created"
297
303
 
@@ -295,12 +295,18 @@ module Increase
295
295
  # Occurs whenever a Loan Application is updated.
296
296
  LOAN_APPLICATION_UPDATED = :"loan_application.updated"
297
297
 
298
+ # Occurs whenever a Loan Distribution is created.
299
+ LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
300
+
298
301
  # Occurs whenever a Loan Offer is created.
299
302
  LOAN_OFFER_CREATED = :"loan_offer.created"
300
303
 
301
304
  # Occurs whenever a Loan Offer is updated.
302
305
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
303
306
 
307
+ # Occurs whenever a Loan Purchase is created.
308
+ LOAN_PURCHASE_CREATED = :"loan_purchase.created"
309
+
304
310
  # Occurs whenever a Lockbox is created.
305
311
  LOCKBOX_CREATED = :"lockbox.created"
306
312
 
@@ -320,12 +320,18 @@ module Increase
320
320
  # Occurs whenever a Loan Application is updated.
321
321
  LOAN_APPLICATION_UPDATED = :"loan_application.updated"
322
322
 
323
+ # Occurs whenever a Loan Distribution is created.
324
+ LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
325
+
323
326
  # Occurs whenever a Loan Offer is created.
324
327
  LOAN_OFFER_CREATED = :"loan_offer.created"
325
328
 
326
329
  # Occurs whenever a Loan Offer is updated.
327
330
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
328
331
 
332
+ # Occurs whenever a Loan Purchase is created.
333
+ LOAN_PURCHASE_CREATED = :"loan_purchase.created"
334
+
329
335
  # Occurs whenever a Lockbox is created.
330
336
  LOCKBOX_CREATED = :"lockbox.created"
331
337
 
@@ -459,9 +465,6 @@ module Increase
459
465
  # The subscription is permanently disabled and Events will not be delivered.
460
466
  DELETED = :deleted
461
467
 
462
- # The subscription is temporarily disabled due to delivery errors and Events will not be delivered.
463
- REQUIRES_ATTENTION = :requires_attention
464
-
465
468
  # @!method self.values
466
469
  # @return [Array<Symbol>]
467
470
  end
@@ -291,12 +291,18 @@ module Increase
291
291
  # Occurs whenever a Loan Application is updated.
292
292
  LOAN_APPLICATION_UPDATED = :"loan_application.updated"
293
293
 
294
+ # Occurs whenever a Loan Distribution is created.
295
+ LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
296
+
294
297
  # Occurs whenever a Loan Offer is created.
295
298
  LOAN_OFFER_CREATED = :"loan_offer.created"
296
299
 
297
300
  # Occurs whenever a Loan Offer is updated.
298
301
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
299
302
 
303
+ # Occurs whenever a Loan Purchase is created.
304
+ LOAN_PURCHASE_CREATED = :"loan_purchase.created"
305
+
300
306
  # Occurs whenever a Lockbox is created.
301
307
  LOCKBOX_CREATED = :"lockbox.created"
302
308
 
@@ -247,6 +247,23 @@ module Increase
247
247
 
248
248
  # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails#visa
249
249
  class Visa < Increase::Internal::Type::BaseModel
250
+ # @!attribute electronic_commerce_indicator
251
+ # For electronic commerce transactions, this identifies the level of security used
252
+ # in obtaining the customer's payment credential. For mail or telephone order
253
+ # transactions, identifies the type of mail or telephone order.
254
+ #
255
+ # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::ElectronicCommerceIndicator, nil]
256
+ optional :electronic_commerce_indicator,
257
+ enum: -> { Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::ElectronicCommerceIndicator }
258
+
259
+ # @!attribute point_of_service_entry_mode
260
+ # The method used to enter the cardholder's primary account number and card
261
+ # expiration date.
262
+ #
263
+ # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::PointOfServiceEntryMode, nil]
264
+ optional :point_of_service_entry_mode,
265
+ enum: -> { Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::PointOfServiceEntryMode }
266
+
250
267
  # @!attribute stand_in_processing_reason
251
268
  # The reason code for the stand-in processing.
252
269
  #
@@ -254,10 +271,109 @@ module Increase
254
271
  optional :stand_in_processing_reason,
255
272
  enum: -> { Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::StandInProcessingReason }
256
273
 
257
- # @!method initialize(stand_in_processing_reason: nil)
274
+ # @!attribute terminal_entry_capability
275
+ # The capability of the terminal being used to read the card. Shows whether a
276
+ # terminal can e.g., accept chip cards or if it only supports magnetic stripe
277
+ # reads. This reflects the highest capability of the terminal — for example, a
278
+ # terminal that supports both chip and magnetic stripe will be identified as
279
+ # chip-capable.
280
+ #
281
+ # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::TerminalEntryCapability, nil]
282
+ optional :terminal_entry_capability,
283
+ enum: -> { Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::TerminalEntryCapability }
284
+
285
+ # @!method initialize(electronic_commerce_indicator: nil, point_of_service_entry_mode: nil, stand_in_processing_reason: nil, terminal_entry_capability: nil)
286
+ # Some parameter documentations has been truncated, see
287
+ # {Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa}
288
+ # for more details.
289
+ #
258
290
  # Fields specific to the Visa network.
259
291
  #
292
+ # @param electronic_commerce_indicator [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::ElectronicCommerceIndicator] For electronic commerce transactions, this identifies the level of security used
293
+ #
294
+ # @param point_of_service_entry_mode [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::PointOfServiceEntryMode] The method used to enter the cardholder's primary account number and card expira
295
+ #
260
296
  # @param stand_in_processing_reason [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::StandInProcessingReason] The reason code for the stand-in processing.
297
+ #
298
+ # @param terminal_entry_capability [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::TerminalEntryCapability] The capability of the terminal being used to read the card. Shows whether a term
299
+
300
+ # For electronic commerce transactions, this identifies the level of security used
301
+ # in obtaining the customer's payment credential. For mail or telephone order
302
+ # transactions, identifies the type of mail or telephone order.
303
+ #
304
+ # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa#electronic_commerce_indicator
305
+ module ElectronicCommerceIndicator
306
+ extend Increase::Internal::Type::Enum
307
+
308
+ # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments.
309
+ MAIL_PHONE_ORDER = :mail_phone_order
310
+
311
+ # Recurring transaction: Payment indicator used to indicate a recurring transaction that originates from an acquirer in the US region.
312
+ RECURRING = :recurring
313
+
314
+ # Installment payment: Payment indicator used to indicate one purchase of goods or services that is billed to the account in multiple charges over a period of time agreed upon by the cardholder and merchant from transactions that originate from an acquirer in the US region.
315
+ INSTALLMENT = :installment
316
+
317
+ # Unknown classification: other mail order: Use to indicate that the type of mail/telephone order is unknown.
318
+ UNKNOWN_MAIL_PHONE_ORDER = :unknown_mail_phone_order
319
+
320
+ # Secure electronic commerce transaction: Use to indicate that the electronic commerce transaction has been authenticated using e.g., 3-D Secure
321
+ SECURE_ELECTRONIC_COMMERCE = :secure_electronic_commerce
322
+
323
+ # Non-authenticated security transaction at a 3-D Secure-capable merchant, and merchant attempted to authenticate the cardholder using 3-D Secure: Use to identify an electronic commerce transaction where the merchant attempted to authenticate the cardholder using 3-D Secure, but was unable to complete the authentication because the issuer or cardholder does not participate in the 3-D Secure program.
324
+ NON_AUTHENTICATED_SECURITY_TRANSACTION_AT_3DS_CAPABLE_MERCHANT =
325
+ :non_authenticated_security_transaction_at_3ds_capable_merchant
326
+
327
+ # Non-authenticated security transaction: Use to identify an electronic commerce transaction that uses data encryption for security however, cardholder authentication is not performed using 3-D Secure.
328
+ NON_AUTHENTICATED_SECURITY_TRANSACTION = :non_authenticated_security_transaction
329
+
330
+ # Non-secure transaction: Use to identify an electronic commerce transaction that has no data protection.
331
+ NON_SECURE_TRANSACTION = :non_secure_transaction
332
+
333
+ # @!method self.values
334
+ # @return [Array<Symbol>]
335
+ end
336
+
337
+ # The method used to enter the cardholder's primary account number and card
338
+ # expiration date.
339
+ #
340
+ # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa#point_of_service_entry_mode
341
+ module PointOfServiceEntryMode
342
+ extend Increase::Internal::Type::Enum
343
+
344
+ # Unknown
345
+ UNKNOWN = :unknown
346
+
347
+ # Manual key entry
348
+ MANUAL = :manual
349
+
350
+ # Magnetic stripe read, without card verification value
351
+ MAGNETIC_STRIPE_NO_CVV = :magnetic_stripe_no_cvv
352
+
353
+ # Optical code
354
+ OPTICAL_CODE = :optical_code
355
+
356
+ # Contact chip card
357
+ INTEGRATED_CIRCUIT_CARD = :integrated_circuit_card
358
+
359
+ # Contactless read of chip card
360
+ CONTACTLESS = :contactless
361
+
362
+ # Transaction initiated using a credential that has previously been stored on file
363
+ CREDENTIAL_ON_FILE = :credential_on_file
364
+
365
+ # Magnetic stripe read
366
+ MAGNETIC_STRIPE = :magnetic_stripe
367
+
368
+ # Contactless read of magnetic stripe data
369
+ CONTACTLESS_MAGNETIC_STRIPE = :contactless_magnetic_stripe
370
+
371
+ # Contact chip card, without card verification value
372
+ INTEGRATED_CIRCUIT_CARD_NO_CVV = :integrated_circuit_card_no_cvv
373
+
374
+ # @!method self.values
375
+ # @return [Array<Symbol>]
376
+ end
261
377
 
262
378
  # The reason code for the stand-in processing.
263
379
  #
@@ -294,6 +410,44 @@ module Increase
294
410
  # @!method self.values
295
411
  # @return [Array<Symbol>]
296
412
  end
413
+
414
+ # The capability of the terminal being used to read the card. Shows whether a
415
+ # terminal can e.g., accept chip cards or if it only supports magnetic stripe
416
+ # reads. This reflects the highest capability of the terminal — for example, a
417
+ # terminal that supports both chip and magnetic stripe will be identified as
418
+ # chip-capable.
419
+ #
420
+ # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa#terminal_entry_capability
421
+ module TerminalEntryCapability
422
+ extend Increase::Internal::Type::Enum
423
+
424
+ # Unknown
425
+ UNKNOWN = :unknown
426
+
427
+ # No terminal was used for this transaction.
428
+ TERMINAL_NOT_USED = :terminal_not_used
429
+
430
+ # The terminal can only read magnetic stripes and does not have chip or contactless reading capability.
431
+ MAGNETIC_STRIPE = :magnetic_stripe
432
+
433
+ # The terminal can only read barcodes.
434
+ BARCODE = :barcode
435
+
436
+ # The terminal can only read cards via Optical Character Recognition.
437
+ OPTICAL_CHARACTER_RECOGNITION = :optical_character_recognition
438
+
439
+ # The terminal supports contact chip cards and can also read the magnetic stripe. If contact chip is supported, this value is used regardless of whether contactless is also supported.
440
+ CHIP_OR_CONTACTLESS = :chip_or_contactless
441
+
442
+ # The terminal supports contactless reads but does not support contact chip. Only used when the terminal lacks contact chip capability.
443
+ CONTACTLESS_ONLY = :contactless_only
444
+
445
+ # The terminal has no card reading capability.
446
+ NO_CAPABILITY = :no_capability
447
+
448
+ # @!method self.values
449
+ # @return [Array<Symbol>]
450
+ end
297
451
  end
298
452
  end
299
453
 
@@ -285,12 +285,18 @@ module Increase
285
285
  # Occurs whenever a Loan Application is updated.
286
286
  LOAN_APPLICATION_UPDATED = :"loan_application.updated"
287
287
 
288
+ # Occurs whenever a Loan Distribution is created.
289
+ LOAN_DISTRIBUTION_CREATED = :"loan_distribution.created"
290
+
288
291
  # Occurs whenever a Loan Offer is created.
289
292
  LOAN_OFFER_CREATED = :"loan_offer.created"
290
293
 
291
294
  # Occurs whenever a Loan Offer is updated.
292
295
  LOAN_OFFER_UPDATED = :"loan_offer.updated"
293
296
 
297
+ # Occurs whenever a Loan Purchase is created.
298
+ LOAN_PURCHASE_CREATED = :"loan_purchase.created"
299
+
294
300
  # Occurs whenever a Lockbox is created.
295
301
  LOCKBOX_CREATED = :"lockbox.created"
296
302
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.335.0"
4
+ VERSION = "1.337.0"
5
5
  end
@@ -1226,13 +1226,6 @@ module Increase
1226
1226
  Increase::ACHPrenotification::Status::TaggedSymbol
1227
1227
  )
1228
1228
 
1229
- # The Prenotification requires attention.
1230
- REQUIRES_ATTENTION =
1231
- T.let(
1232
- :requires_attention,
1233
- Increase::ACHPrenotification::Status::TaggedSymbol
1234
- )
1235
-
1236
1229
  # The Prenotification has been returned.
1237
1230
  RETURNED =
1238
1231
  T.let(:returned, Increase::ACHPrenotification::Status::TaggedSymbol)
@@ -1241,6 +1234,13 @@ module Increase
1241
1234
  SUBMITTED =
1242
1235
  T.let(:submitted, Increase::ACHPrenotification::Status::TaggedSymbol)
1243
1236
 
1237
+ # The Prenotification requires attention.
1238
+ REQUIRES_ATTENTION =
1239
+ T.let(
1240
+ :requires_attention,
1241
+ Increase::ACHPrenotification::Status::TaggedSymbol
1242
+ )
1243
+
1244
1244
  sig do
1245
1245
  override.returns(
1246
1246
  T::Array[Increase::ACHPrenotification::Status::TaggedSymbol]
@@ -97,12 +97,26 @@ module Increase
97
97
  sig { returns(Integer) }
98
98
  attr_accessor :past_due_balance
99
99
 
100
+ # The receivables balances for the loan.
101
+ sig { returns(T.nilable(Increase::BalanceLookup::Loan::Receivables)) }
102
+ attr_reader :receivables
103
+
104
+ sig do
105
+ params(
106
+ receivables:
107
+ T.nilable(Increase::BalanceLookup::Loan::Receivables::OrHash)
108
+ ).void
109
+ end
110
+ attr_writer :receivables
111
+
100
112
  # The loan balances for the Account.
101
113
  sig do
102
114
  params(
103
115
  due_at: T.nilable(Time),
104
116
  due_balance: Integer,
105
- past_due_balance: Integer
117
+ past_due_balance: Integer,
118
+ receivables:
119
+ T.nilable(Increase::BalanceLookup::Loan::Receivables::OrHash)
106
120
  ).returns(T.attached_class)
107
121
  end
108
122
  def self.new(
@@ -112,7 +126,9 @@ module Increase
112
126
  # The total amount due on the loan.
113
127
  due_balance:,
114
128
  # The amount past due on the loan.
115
- past_due_balance:
129
+ past_due_balance:,
130
+ # The receivables balances for the loan.
131
+ receivables:
116
132
  )
117
133
  end
118
134
 
@@ -121,12 +137,54 @@ module Increase
121
137
  {
122
138
  due_at: T.nilable(Time),
123
139
  due_balance: Integer,
124
- past_due_balance: Integer
140
+ past_due_balance: Integer,
141
+ receivables: T.nilable(Increase::BalanceLookup::Loan::Receivables)
125
142
  }
126
143
  )
127
144
  end
128
145
  def to_hash
129
146
  end
147
+
148
+ class Receivables < Increase::Internal::Type::BaseModel
149
+ OrHash =
150
+ T.type_alias do
151
+ T.any(
152
+ Increase::BalanceLookup::Loan::Receivables,
153
+ Increase::Internal::AnyHash
154
+ )
155
+ end
156
+
157
+ # The balance of seasoned receivables available to be purchased.
158
+ sig { returns(Integer) }
159
+ attr_accessor :purchasable_balance
160
+
161
+ # The balance of receivables that have been purchased.
162
+ sig { returns(Integer) }
163
+ attr_accessor :purchased_balance
164
+
165
+ # The receivables balances for the loan.
166
+ sig do
167
+ params(
168
+ purchasable_balance: Integer,
169
+ purchased_balance: Integer
170
+ ).returns(T.attached_class)
171
+ end
172
+ def self.new(
173
+ # The balance of seasoned receivables available to be purchased.
174
+ purchasable_balance:,
175
+ # The balance of receivables that have been purchased.
176
+ purchased_balance:
177
+ )
178
+ end
179
+
180
+ sig do
181
+ override.returns(
182
+ { purchasable_balance: Integer, purchased_balance: Integer }
183
+ )
184
+ end
185
+ def to_hash
186
+ end
187
+ end
130
188
  end
131
189
 
132
190
  # A constant representing the object's type. For this resource it will always be
@@ -558,6 +558,13 @@ module Increase
558
558
  Increase::Event::Category::TaggedSymbol
559
559
  )
560
560
 
561
+ # Occurs whenever a Loan Distribution is created.
562
+ LOAN_DISTRIBUTION_CREATED =
563
+ T.let(
564
+ :"loan_distribution.created",
565
+ Increase::Event::Category::TaggedSymbol
566
+ )
567
+
561
568
  # Occurs whenever a Loan Offer is created.
562
569
  LOAN_OFFER_CREATED =
563
570
  T.let(:"loan_offer.created", Increase::Event::Category::TaggedSymbol)
@@ -566,6 +573,13 @@ module Increase
566
573
  LOAN_OFFER_UPDATED =
567
574
  T.let(:"loan_offer.updated", Increase::Event::Category::TaggedSymbol)
568
575
 
576
+ # Occurs whenever a Loan Purchase is created.
577
+ LOAN_PURCHASE_CREATED =
578
+ T.let(
579
+ :"loan_purchase.created",
580
+ Increase::Event::Category::TaggedSymbol
581
+ )
582
+
569
583
  # Occurs whenever a Lockbox is created.
570
584
  LOCKBOX_CREATED =
571
585
  T.let(:"lockbox.created", Increase::Event::Category::TaggedSymbol)
@@ -657,6 +657,13 @@ module Increase
657
657
  Increase::EventListParams::Category::In::TaggedSymbol
658
658
  )
659
659
 
660
+ # Occurs whenever a Loan Distribution is created.
661
+ LOAN_DISTRIBUTION_CREATED =
662
+ T.let(
663
+ :"loan_distribution.created",
664
+ Increase::EventListParams::Category::In::TaggedSymbol
665
+ )
666
+
660
667
  # Occurs whenever a Loan Offer is created.
661
668
  LOAN_OFFER_CREATED =
662
669
  T.let(
@@ -671,6 +678,13 @@ module Increase
671
678
  Increase::EventListParams::Category::In::TaggedSymbol
672
679
  )
673
680
 
681
+ # Occurs whenever a Loan Purchase is created.
682
+ LOAN_PURCHASE_CREATED =
683
+ T.let(
684
+ :"loan_purchase.created",
685
+ Increase::EventListParams::Category::In::TaggedSymbol
686
+ )
687
+
674
688
  # Occurs whenever a Lockbox is created.
675
689
  LOCKBOX_CREATED =
676
690
  T.let(
@@ -682,6 +682,13 @@ module Increase
682
682
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
683
683
  )
684
684
 
685
+ # Occurs whenever a Loan Distribution is created.
686
+ LOAN_DISTRIBUTION_CREATED =
687
+ T.let(
688
+ :"loan_distribution.created",
689
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
690
+ )
691
+
685
692
  # Occurs whenever a Loan Offer is created.
686
693
  LOAN_OFFER_CREATED =
687
694
  T.let(
@@ -696,6 +703,13 @@ module Increase
696
703
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
697
704
  )
698
705
 
706
+ # Occurs whenever a Loan Purchase is created.
707
+ LOAN_PURCHASE_CREATED =
708
+ T.let(
709
+ :"loan_purchase.created",
710
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
711
+ )
712
+
699
713
  # Occurs whenever a Lockbox is created.
700
714
  LOCKBOX_CREATED =
701
715
  T.let(
@@ -987,13 +1001,6 @@ module Increase
987
1001
  DELETED =
988
1002
  T.let(:deleted, Increase::EventSubscription::Status::TaggedSymbol)
989
1003
 
990
- # The subscription is temporarily disabled due to delivery errors and Events will not be delivered.
991
- REQUIRES_ATTENTION =
992
- T.let(
993
- :requires_attention,
994
- Increase::EventSubscription::Status::TaggedSymbol
995
- )
996
-
997
1004
  sig do
998
1005
  override.returns(
999
1006
  T::Array[Increase::EventSubscription::Status::TaggedSymbol]
@@ -680,6 +680,13 @@ module Increase
680
680
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
681
681
  )
682
682
 
683
+ # Occurs whenever a Loan Distribution is created.
684
+ LOAN_DISTRIBUTION_CREATED =
685
+ T.let(
686
+ :"loan_distribution.created",
687
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
688
+ )
689
+
683
690
  # Occurs whenever a Loan Offer is created.
684
691
  LOAN_OFFER_CREATED =
685
692
  T.let(
@@ -694,6 +701,13 @@ module Increase
694
701
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
695
702
  )
696
703
 
704
+ # Occurs whenever a Loan Purchase is created.
705
+ LOAN_PURCHASE_CREATED =
706
+ T.let(
707
+ :"loan_purchase.created",
708
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
709
+ )
710
+
697
711
  # Occurs whenever a Lockbox is created.
698
712
  LOCKBOX_CREATED =
699
713
  T.let(