increase 1.214.0 → 1.216.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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +174 -0
  3. data/README.md +1 -1
  4. data/lib/increase/internal/util.rb +31 -0
  5. data/lib/increase/models/event_subscription.rb +246 -234
  6. data/lib/increase/models/fednow_transfer.rb +47 -1
  7. data/lib/increase/models/real_time_decision_action_params.rb +38 -1
  8. data/lib/increase/resources/account_numbers.rb +2 -1
  9. data/lib/increase/resources/account_statements.rb +2 -1
  10. data/lib/increase/resources/account_transfers.rb +2 -1
  11. data/lib/increase/resources/accounts.rb +4 -2
  12. data/lib/increase/resources/ach_prenotifications.rb +2 -1
  13. data/lib/increase/resources/ach_transfers.rb +2 -1
  14. data/lib/increase/resources/bookkeeping_accounts.rb +4 -2
  15. data/lib/increase/resources/bookkeeping_entries.rb +2 -1
  16. data/lib/increase/resources/bookkeeping_entry_sets.rb +2 -1
  17. data/lib/increase/resources/card_disputes.rb +2 -1
  18. data/lib/increase/resources/card_payments.rb +2 -1
  19. data/lib/increase/resources/card_purchase_supplements.rb +2 -1
  20. data/lib/increase/resources/card_push_transfers.rb +2 -1
  21. data/lib/increase/resources/card_tokens.rb +2 -1
  22. data/lib/increase/resources/card_validations.rb +2 -1
  23. data/lib/increase/resources/cards.rb +2 -1
  24. data/lib/increase/resources/check_deposits.rb +2 -1
  25. data/lib/increase/resources/check_transfers.rb +2 -1
  26. data/lib/increase/resources/declined_transactions.rb +2 -1
  27. data/lib/increase/resources/digital_card_profiles.rb +2 -1
  28. data/lib/increase/resources/digital_wallet_tokens.rb +2 -1
  29. data/lib/increase/resources/entities.rb +2 -1
  30. data/lib/increase/resources/event_subscriptions.rb +2 -1
  31. data/lib/increase/resources/events.rb +2 -1
  32. data/lib/increase/resources/exports.rb +2 -1
  33. data/lib/increase/resources/external_accounts.rb +2 -1
  34. data/lib/increase/resources/fednow_transfers.rb +2 -1
  35. data/lib/increase/resources/files.rb +2 -1
  36. data/lib/increase/resources/inbound_ach_transfers.rb +2 -1
  37. data/lib/increase/resources/inbound_check_deposits.rb +2 -1
  38. data/lib/increase/resources/inbound_fednow_transfers.rb +2 -1
  39. data/lib/increase/resources/inbound_mail_items.rb +2 -1
  40. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +2 -1
  41. data/lib/increase/resources/inbound_wire_drawdown_requests.rb +2 -1
  42. data/lib/increase/resources/inbound_wire_transfers.rb +2 -1
  43. data/lib/increase/resources/intrafi_account_enrollments.rb +2 -1
  44. data/lib/increase/resources/intrafi_exclusions.rb +2 -1
  45. data/lib/increase/resources/lockboxes.rb +2 -1
  46. data/lib/increase/resources/oauth_applications.rb +2 -1
  47. data/lib/increase/resources/oauth_connections.rb +2 -1
  48. data/lib/increase/resources/pending_transactions.rb +2 -1
  49. data/lib/increase/resources/physical_card_profiles.rb +2 -1
  50. data/lib/increase/resources/physical_cards.rb +2 -1
  51. data/lib/increase/resources/programs.rb +2 -1
  52. data/lib/increase/resources/real_time_payments_transfers.rb +2 -1
  53. data/lib/increase/resources/routing_numbers.rb +2 -1
  54. data/lib/increase/resources/supplemental_documents.rb +2 -1
  55. data/lib/increase/resources/swift_transfers.rb +2 -1
  56. data/lib/increase/resources/transactions.rb +2 -1
  57. data/lib/increase/resources/wire_drawdown_requests.rb +2 -1
  58. data/lib/increase/resources/wire_transfers.rb +2 -1
  59. data/lib/increase/version.rb +1 -1
  60. data/rbi/increase/internal/util.rbi +20 -0
  61. data/rbi/increase/models/event_subscription.rbi +830 -779
  62. data/rbi/increase/models/fednow_transfer.rbi +78 -0
  63. data/rbi/increase/models/real_time_decision_action_params.rbi +70 -3
  64. data/sig/increase/internal/util.rbs +10 -0
  65. data/sig/increase/models/event_subscription.rbs +367 -350
  66. data/sig/increase/models/fednow_transfer.rbs +37 -0
  67. data/sig/increase/models/real_time_decision_action_params.rbs +28 -3
  68. metadata +2 -2
@@ -53,6 +53,18 @@ module Increase
53
53
  end
54
54
  attr_writer :created_by
55
55
 
56
+ # The creditor's address.
57
+ sig { returns(T.nilable(Increase::FednowTransfer::CreditorAddress)) }
58
+ attr_reader :creditor_address
59
+
60
+ sig do
61
+ params(
62
+ creditor_address:
63
+ T.nilable(Increase::FednowTransfer::CreditorAddress::OrHash)
64
+ ).void
65
+ end
66
+ attr_writer :creditor_address
67
+
56
68
  # The name of the transfer's recipient. This is set by the sender when creating
57
69
  # the transfer.
58
70
  sig { returns(String) }
@@ -150,6 +162,8 @@ module Increase
150
162
  amount: Integer,
151
163
  created_at: Time,
152
164
  created_by: T.nilable(Increase::FednowTransfer::CreatedBy::OrHash),
165
+ creditor_address:
166
+ T.nilable(Increase::FednowTransfer::CreditorAddress::OrHash),
153
167
  creditor_name: String,
154
168
  currency: Increase::FednowTransfer::Currency::OrSymbol,
155
169
  debtor_name: String,
@@ -184,6 +198,8 @@ module Increase
184
198
  created_at:,
185
199
  # What object created the transfer, either via the API or the dashboard.
186
200
  created_by:,
201
+ # The creditor's address.
202
+ creditor_address:,
187
203
  # The name of the transfer's recipient. This is set by the sender when creating
188
204
  # the transfer.
189
205
  creditor_name:,
@@ -239,6 +255,8 @@ module Increase
239
255
  amount: Integer,
240
256
  created_at: Time,
241
257
  created_by: T.nilable(Increase::FednowTransfer::CreatedBy),
258
+ creditor_address:
259
+ T.nilable(Increase::FednowTransfer::CreditorAddress),
242
260
  creditor_name: String,
243
261
  currency: Increase::FednowTransfer::Currency::TaggedSymbol,
244
262
  debtor_name: String,
@@ -508,6 +526,66 @@ module Increase
508
526
  end
509
527
  end
510
528
 
529
+ class CreditorAddress < Increase::Internal::Type::BaseModel
530
+ OrHash =
531
+ T.type_alias do
532
+ T.any(
533
+ Increase::FednowTransfer::CreditorAddress,
534
+ Increase::Internal::AnyHash
535
+ )
536
+ end
537
+
538
+ # The city, district, town, or village of the address.
539
+ sig { returns(T.nilable(String)) }
540
+ attr_accessor :city
541
+
542
+ # The first line of the address.
543
+ sig { returns(T.nilable(String)) }
544
+ attr_accessor :line1
545
+
546
+ # The ZIP code of the address.
547
+ sig { returns(T.nilable(String)) }
548
+ attr_accessor :postal_code
549
+
550
+ # The address state.
551
+ sig { returns(T.nilable(String)) }
552
+ attr_accessor :state
553
+
554
+ # The creditor's address.
555
+ sig do
556
+ params(
557
+ city: T.nilable(String),
558
+ line1: T.nilable(String),
559
+ postal_code: T.nilable(String),
560
+ state: T.nilable(String)
561
+ ).returns(T.attached_class)
562
+ end
563
+ def self.new(
564
+ # The city, district, town, or village of the address.
565
+ city:,
566
+ # The first line of the address.
567
+ line1:,
568
+ # The ZIP code of the address.
569
+ postal_code:,
570
+ # The address state.
571
+ state:
572
+ )
573
+ end
574
+
575
+ sig do
576
+ override.returns(
577
+ {
578
+ city: T.nilable(String),
579
+ line1: T.nilable(String),
580
+ postal_code: T.nilable(String),
581
+ state: T.nilable(String)
582
+ }
583
+ )
584
+ end
585
+ def to_hash
586
+ end
587
+ end
588
+
511
589
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
512
590
  # currency. For FedNow transfers this is always equal to `USD`.
513
591
  module Currency
@@ -288,18 +288,42 @@ module Increase
288
288
  end
289
289
  attr_accessor :result
290
290
 
291
+ # If your application was able to deliver the one-time code, this contains
292
+ # metadata about the delivery.
293
+ sig do
294
+ returns(
295
+ T.nilable(
296
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success
297
+ )
298
+ )
299
+ end
300
+ attr_reader :success
301
+
302
+ sig do
303
+ params(
304
+ success:
305
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success::OrHash
306
+ ).void
307
+ end
308
+ attr_writer :success
309
+
291
310
  # If the Real-Time Decision relates to 3DS card authentication challenge delivery,
292
311
  # this object contains your response.
293
312
  sig do
294
313
  params(
295
314
  result:
296
- Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol
315
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol,
316
+ success:
317
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success::OrHash
297
318
  ).returns(T.attached_class)
298
319
  end
299
320
  def self.new(
300
321
  # Whether the card authentication challenge was successfully delivered to the
301
322
  # cardholder.
302
- result:
323
+ result:,
324
+ # If your application was able to deliver the one-time code, this contains
325
+ # metadata about the delivery.
326
+ success: nil
303
327
  )
304
328
  end
305
329
 
@@ -307,7 +331,9 @@ module Increase
307
331
  override.returns(
308
332
  {
309
333
  result:
310
- Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol
334
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol,
335
+ success:
336
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success
311
337
  }
312
338
  )
313
339
  end
@@ -352,6 +378,47 @@ module Increase
352
378
  def self.values
353
379
  end
354
380
  end
381
+
382
+ class Success < Increase::Internal::Type::BaseModel
383
+ OrHash =
384
+ T.type_alias do
385
+ T.any(
386
+ Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success,
387
+ Increase::Internal::AnyHash
388
+ )
389
+ end
390
+
391
+ # The email address that was used to deliver the one-time code to the cardholder.
392
+ sig { returns(T.nilable(String)) }
393
+ attr_reader :email
394
+
395
+ sig { params(email: String).void }
396
+ attr_writer :email
397
+
398
+ # The phone number that was used to deliver the one-time code to the cardholder
399
+ # via SMS.
400
+ sig { returns(T.nilable(String)) }
401
+ attr_reader :phone
402
+
403
+ sig { params(phone: String).void }
404
+ attr_writer :phone
405
+
406
+ # If your application was able to deliver the one-time code, this contains
407
+ # metadata about the delivery.
408
+ sig { params(email: String, phone: String).returns(T.attached_class) }
409
+ def self.new(
410
+ # The email address that was used to deliver the one-time code to the cardholder.
411
+ email: nil,
412
+ # The phone number that was used to deliver the one-time code to the cardholder
413
+ # via SMS.
414
+ phone: nil
415
+ )
416
+ end
417
+
418
+ sig { override.returns({ email: String, phone: String }) }
419
+ def to_hash
420
+ end
421
+ end
355
422
  end
356
423
 
357
424
  class CardAuthorization < Increase::Internal::Type::BaseModel
@@ -106,6 +106,16 @@ module Increase
106
106
  JSON_CONTENT: Regexp
107
107
  JSONL_CONTENT: Regexp
108
108
 
109
+ def encode_query_params: (
110
+ ::Hash[Symbol, top] query
111
+ ) -> ::Hash[Symbol, top]
112
+
113
+ private def write_query_param_element!: (
114
+ ::Hash[Symbol, top] collection,
115
+ String key,
116
+ top element
117
+ ) -> nil
118
+
109
119
  def self?.write_multipart_content: (
110
120
  Enumerator::Yielder y,
111
121
  val: top,