increase 1.367.0 → 1.369.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/card_payment.rb +30 -0
  4. data/lib/increase/models/declined_transaction.rb +3 -0
  5. data/lib/increase/models/digital_wallet_token.rb +63 -1
  6. data/lib/increase/models/digital_wallet_token_request.rb +327 -1
  7. data/lib/increase/models/export.rb +19 -5
  8. data/lib/increase/models/export_create_params.rb +36 -13
  9. data/lib/increase/models/inbound_check_deposit.rb +0 -3
  10. data/lib/increase/models/inbound_fednow_transfer.rb +3 -0
  11. data/lib/increase/models/pending_transaction.rb +76 -1
  12. data/lib/increase/models/pending_transaction_list_params.rb +3 -0
  13. data/lib/increase/models/real_time_decision.rb +330 -1
  14. data/lib/increase/models/simulations/card_refund_create_params.rb +2 -2
  15. data/lib/increase/models/transaction.rb +86 -1
  16. data/lib/increase/models/transaction_list_params.rb +3 -0
  17. data/lib/increase/resources/exports.rb +5 -1
  18. data/lib/increase/resources/simulations/card_refunds.rb +1 -1
  19. data/lib/increase/version.rb +1 -1
  20. data/rbi/increase/models/card_payment.rbi +70 -0
  21. data/rbi/increase/models/declined_transaction.rbi +7 -0
  22. data/rbi/increase/models/digital_wallet_token.rbi +114 -3
  23. data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
  24. data/rbi/increase/models/export.rbi +18 -6
  25. data/rbi/increase/models/export_create_params.rbi +44 -15
  26. data/rbi/increase/models/inbound_check_deposit.rbi +0 -3
  27. data/rbi/increase/models/inbound_fednow_transfer.rbi +7 -0
  28. data/rbi/increase/models/pending_transaction.rbi +162 -0
  29. data/rbi/increase/models/pending_transaction_list_params.rbi +7 -0
  30. data/rbi/increase/models/real_time_decision.rbi +623 -3
  31. data/rbi/increase/models/simulations/card_refund_create_params.rbi +2 -2
  32. data/rbi/increase/models/transaction.rbi +179 -0
  33. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  34. data/rbi/increase/resources/exports.rbi +5 -1
  35. data/rbi/increase/resources/simulations/card_refunds.rbi +1 -1
  36. data/sig/increase/models/card_payment.rbs +40 -0
  37. data/sig/increase/models/declined_transaction.rbs +4 -0
  38. data/sig/increase/models/digital_wallet_token.rbs +40 -3
  39. data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
  40. data/sig/increase/models/export.rbs +13 -4
  41. data/sig/increase/models/export_create_params.rbs +16 -5
  42. data/sig/increase/models/inbound_fednow_transfer.rbs +4 -0
  43. data/sig/increase/models/pending_transaction.rbs +63 -0
  44. data/sig/increase/models/pending_transaction_list_params.rbs +4 -0
  45. data/sig/increase/models/real_time_decision.rbs +245 -3
  46. data/sig/increase/models/transaction.rbs +71 -0
  47. data/sig/increase/models/transaction_list_params.rbs +4 -0
  48. metadata +2 -2
@@ -377,9 +377,15 @@ module Increase
377
377
  sig { returns(T.nilable(String)) }
378
378
  attr_accessor :account_id
379
379
 
380
- # The UTC date for which to retrieve the balance.
380
+ # The first as-of date (UTC) reported in the BAI2 file. If null, the report
381
+ # started from the earliest included Account.
381
382
  sig { returns(T.nilable(Date)) }
382
- attr_accessor :effective_date
383
+ attr_accessor :on_or_after_date
384
+
385
+ # The last as-of date (UTC) reported in the BAI2 file. If null, the report ran
386
+ # through the date the Export was created.
387
+ sig { returns(T.nilable(Date)) }
388
+ attr_accessor :on_or_before_date
383
389
 
384
390
  # Filter results by Program.
385
391
  sig { returns(T.nilable(String)) }
@@ -390,15 +396,20 @@ module Increase
390
396
  sig do
391
397
  params(
392
398
  account_id: T.nilable(String),
393
- effective_date: T.nilable(Date),
399
+ on_or_after_date: T.nilable(Date),
400
+ on_or_before_date: T.nilable(Date),
394
401
  program_id: T.nilable(String)
395
402
  ).returns(T.attached_class)
396
403
  end
397
404
  def self.new(
398
405
  # Filter results by Account.
399
406
  account_id:,
400
- # The UTC date for which to retrieve the balance.
401
- effective_date:,
407
+ # The first as-of date (UTC) reported in the BAI2 file. If null, the report
408
+ # started from the earliest included Account.
409
+ on_or_after_date:,
410
+ # The last as-of date (UTC) reported in the BAI2 file. If null, the report ran
411
+ # through the date the Export was created.
412
+ on_or_before_date:,
402
413
  # Filter results by Program.
403
414
  program_id:
404
415
  )
@@ -408,7 +419,8 @@ module Increase
408
419
  override.returns(
409
420
  {
410
421
  account_id: T.nilable(String),
411
- effective_date: T.nilable(Date),
422
+ on_or_after_date: T.nilable(Date),
423
+ on_or_before_date: T.nilable(Date),
412
424
  program_id: T.nilable(String)
413
425
  }
414
426
  )
@@ -16,7 +16,11 @@ module Increase
16
16
  attr_accessor :category
17
17
 
18
18
  # Options for the created export. Required if `category` is equal to
19
- # `account_statement_bai2`.
19
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
20
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
21
+ # group's as-of date is before the UTC date the Export was created, it has
22
+ # end-of-day balances. If it's the UTC date the Export was created, it has
23
+ # intraday balances as of the time the Export was created.
20
24
  sig do
21
25
  returns(T.nilable(Increase::ExportCreateParams::AccountStatementBai2))
22
26
  end
@@ -185,7 +189,11 @@ module Increase
185
189
  # The type of Export to create.
186
190
  category:,
187
191
  # Options for the created export. Required if `category` is equal to
188
- # `account_statement_bai2`.
192
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
193
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
194
+ # group's as-of date is before the UTC date the Export was created, it has
195
+ # end-of-day balances. If it's the UTC date the Export was created, it has
196
+ # intraday balances as of the time the Export was created.
189
197
  account_statement_bai2: nil,
190
198
  # Options for the created export. Required if `category` is equal to
191
199
  # `account_statement_ofx`.
@@ -361,14 +369,22 @@ module Increase
361
369
  sig { params(account_id: String).void }
362
370
  attr_writer :account_id
363
371
 
364
- # The UTC date to create a BAI2 report for. If not provided, the current date will
365
- # be used. If the current date is used, the report will include intraday balances,
366
- # otherwise it will include end-of-day balances for the provided date.
372
+ # The first as-of date (UTC) to report. Each as-of date gets its own group in the
373
+ # BAI2 file. If not provided, the report starts from the earliest included
374
+ # Account.
367
375
  sig { returns(T.nilable(Date)) }
368
- attr_reader :effective_date
376
+ attr_reader :on_or_after_date
377
+
378
+ sig { params(on_or_after_date: Date).void }
379
+ attr_writer :on_or_after_date
369
380
 
370
- sig { params(effective_date: Date).void }
371
- attr_writer :effective_date
381
+ # The last as-of date (UTC) to report. If not provided, the report runs through
382
+ # the current UTC date.
383
+ sig { returns(T.nilable(Date)) }
384
+ attr_reader :on_or_before_date
385
+
386
+ sig { params(on_or_before_date: Date).void }
387
+ attr_writer :on_or_before_date
372
388
 
373
389
  # The Program to create a BAI2 report for. If not provided, all open accounts will
374
390
  # be included.
@@ -379,11 +395,16 @@ module Increase
379
395
  attr_writer :program_id
380
396
 
381
397
  # Options for the created export. Required if `category` is equal to
382
- # `account_statement_bai2`.
398
+ # `account_statement_bai2`. Each as-of date from `on_or_after_date` through
399
+ # `on_or_before_date` gets its own BAI2 group (`02` record) in the file. If a
400
+ # group's as-of date is before the UTC date the Export was created, it has
401
+ # end-of-day balances. If it's the UTC date the Export was created, it has
402
+ # intraday balances as of the time the Export was created.
383
403
  sig do
384
404
  params(
385
405
  account_id: String,
386
- effective_date: Date,
406
+ on_or_after_date: Date,
407
+ on_or_before_date: Date,
387
408
  program_id: String
388
409
  ).returns(T.attached_class)
389
410
  end
@@ -391,10 +412,13 @@ module Increase
391
412
  # The Account to create a BAI2 report for. If not provided, all open accounts will
392
413
  # be included.
393
414
  account_id: nil,
394
- # The UTC date to create a BAI2 report for. If not provided, the current date will
395
- # be used. If the current date is used, the report will include intraday balances,
396
- # otherwise it will include end-of-day balances for the provided date.
397
- effective_date: nil,
415
+ # The first as-of date (UTC) to report. Each as-of date gets its own group in the
416
+ # BAI2 file. If not provided, the report starts from the earliest included
417
+ # Account.
418
+ on_or_after_date: nil,
419
+ # The last as-of date (UTC) to report. If not provided, the report runs through
420
+ # the current UTC date.
421
+ on_or_before_date: nil,
398
422
  # The Program to create a BAI2 report for. If not provided, all open accounts will
399
423
  # be included.
400
424
  program_id: nil
@@ -403,7 +427,12 @@ module Increase
403
427
 
404
428
  sig do
405
429
  override.returns(
406
- { account_id: String, effective_date: Date, program_id: String }
430
+ {
431
+ account_id: String,
432
+ on_or_after_date: Date,
433
+ on_or_before_date: Date,
434
+ program_id: String
435
+ }
407
436
  )
408
437
  end
409
438
  def to_hash
@@ -103,7 +103,6 @@ module Increase
103
103
  attr_accessor :front_image_file_id
104
104
 
105
105
  # Whether the details on the check match the recipient name of the check transfer.
106
- # This is an optional feature, contact sales to enable.
107
106
  sig do
108
107
  returns(Increase::InboundCheckDeposit::PayeeNameAnalysis::TaggedSymbol)
109
108
  end
@@ -206,7 +205,6 @@ module Increase
206
205
  # The ID for the File containing the image of the front of the check.
207
206
  front_image_file_id:,
208
207
  # Whether the details on the check match the recipient name of the check transfer.
209
- # This is an optional feature, contact sales to enable.
210
208
  payee_name_analysis:,
211
209
  # The status of the Inbound Check Deposit.
212
210
  status:,
@@ -508,7 +506,6 @@ module Increase
508
506
  end
509
507
 
510
508
  # Whether the details on the check match the recipient name of the check transfer.
511
- # This is an optional feature, contact sales to enable.
512
509
  module PayeeNameAnalysis
513
510
  extend Increase::Internal::Type::Enum
514
511
 
@@ -423,6 +423,13 @@ module Increase
423
423
  Increase::InboundFednowTransfer::Status::TaggedSymbol
424
424
  )
425
425
 
426
+ # The transfer has been returned, in full or in part, to its sender.
427
+ RETURNED =
428
+ T.let(
429
+ :returned,
430
+ Increase::InboundFednowTransfer::Status::TaggedSymbol
431
+ )
432
+
426
433
  # The transfer requires attention from an Increase operator.
427
434
  REQUIRES_ATTENTION =
428
435
  T.let(
@@ -440,6 +440,29 @@ module Increase
440
440
  end
441
441
  attr_writer :fednow_transfer_instruction
442
442
 
443
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
444
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
445
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
446
+ # transfer and the User requests that it be returned.
447
+ sig do
448
+ returns(
449
+ T.nilable(
450
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn
451
+ )
452
+ )
453
+ end
454
+ attr_reader :inbound_fednow_transfer_return
455
+
456
+ sig do
457
+ params(
458
+ inbound_fednow_transfer_return:
459
+ T.nilable(
460
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::OrHash
461
+ )
462
+ ).void
463
+ end
464
+ attr_writer :inbound_fednow_transfer_return
465
+
443
466
  # An Inbound Funds Hold object. This field will be present in the JSON response if
444
467
  # and only if `category` is equal to `inbound_funds_hold`. We hold funds for
445
468
  # certain transaction types to account for return windows where funds might still
@@ -653,6 +676,10 @@ module Increase
653
676
  T.nilable(
654
677
  Increase::PendingTransaction::Source::FednowTransferInstruction::OrHash
655
678
  ),
679
+ inbound_fednow_transfer_return:
680
+ T.nilable(
681
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::OrHash
682
+ ),
656
683
  inbound_funds_hold:
657
684
  T.nilable(
658
685
  Increase::PendingTransaction::Source::InboundFundsHold::OrHash
@@ -722,6 +749,11 @@ module Increase
722
749
  # A FedNow Transfer Instruction object. This field will be present in the JSON
723
750
  # response if and only if `category` is equal to `fednow_transfer_instruction`.
724
751
  fednow_transfer_instruction: nil,
752
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
753
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
754
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
755
+ # transfer and the User requests that it be returned.
756
+ inbound_fednow_transfer_return: nil,
725
757
  # An Inbound Funds Hold object. This field will be present in the JSON response if
726
758
  # and only if `category` is equal to `inbound_funds_hold`. We hold funds for
727
759
  # certain transaction types to account for return windows where funds might still
@@ -801,6 +833,10 @@ module Increase
801
833
  T.nilable(
802
834
  Increase::PendingTransaction::Source::FednowTransferInstruction
803
835
  ),
836
+ inbound_fednow_transfer_return:
837
+ T.nilable(
838
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn
839
+ ),
804
840
  inbound_funds_hold:
805
841
  T.nilable(
806
842
  Increase::PendingTransaction::Source::InboundFundsHold
@@ -890,6 +926,13 @@ module Increase
890
926
  Increase::PendingTransaction::Source::Category::TaggedSymbol
891
927
  )
892
928
 
929
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
930
+ INBOUND_FEDNOW_TRANSFER_RETURN =
931
+ T.let(
932
+ :inbound_fednow_transfer_return,
933
+ Increase::PendingTransaction::Source::Category::TaggedSymbol
934
+ )
935
+
893
936
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
894
937
  INBOUND_FUNDS_HOLD =
895
938
  T.let(
@@ -3969,6 +4012,13 @@ module Increase
3969
4012
  Increase::PendingTransaction::Source::CardAuthorization::SchemeFee::FeeType::TaggedSymbol
3970
4013
  )
3971
4014
 
4015
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
4016
+ PULSE_SWITCH_FEE_CREDIT =
4017
+ T.let(
4018
+ :pulse_switch_fee_credit,
4019
+ Increase::PendingTransaction::Source::CardAuthorization::SchemeFee::FeeType::TaggedSymbol
4020
+ )
4021
+
3972
4022
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
3973
4023
  PULSE_TOKENIZATION_FEE =
3974
4024
  T.let(
@@ -4679,6 +4729,118 @@ module Increase
4679
4729
  end
4680
4730
  end
4681
4731
 
4732
+ class InboundFednowTransferReturn < Increase::Internal::Type::BaseModel
4733
+ OrHash =
4734
+ T.type_alias do
4735
+ T.any(
4736
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn,
4737
+ Increase::Internal::AnyHash
4738
+ )
4739
+ end
4740
+
4741
+ # The identifier of the Inbound FedNow Transfer that is being returned.
4742
+ sig { returns(String) }
4743
+ attr_accessor :inbound_fednow_transfer_id
4744
+
4745
+ # The reason for the return.
4746
+ sig do
4747
+ returns(
4748
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4749
+ )
4750
+ end
4751
+ attr_accessor :reason
4752
+
4753
+ # An Inbound FedNow Transfer Return object. This field will be present in the JSON
4754
+ # response if and only if `category` is equal to `inbound_fednow_transfer_return`.
4755
+ # An Inbound FedNow Transfer Return is created when Increase has received a FedNow
4756
+ # transfer and the User requests that it be returned.
4757
+ sig do
4758
+ params(
4759
+ inbound_fednow_transfer_id: String,
4760
+ reason:
4761
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::OrSymbol
4762
+ ).returns(T.attached_class)
4763
+ end
4764
+ def self.new(
4765
+ # The identifier of the Inbound FedNow Transfer that is being returned.
4766
+ inbound_fednow_transfer_id:,
4767
+ # The reason for the return.
4768
+ reason:
4769
+ )
4770
+ end
4771
+
4772
+ sig do
4773
+ override.returns(
4774
+ {
4775
+ inbound_fednow_transfer_id: String,
4776
+ reason:
4777
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4778
+ }
4779
+ )
4780
+ end
4781
+ def to_hash
4782
+ end
4783
+
4784
+ # The reason for the return.
4785
+ module Reason
4786
+ extend Increase::Internal::Type::Enum
4787
+
4788
+ TaggedSymbol =
4789
+ T.type_alias do
4790
+ T.all(
4791
+ Symbol,
4792
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason
4793
+ )
4794
+ end
4795
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
4796
+
4797
+ # The inbound FedNow transfer was a duplicate. Corresponds to the FedNow reason code `DUPL`.
4798
+ DUPLICATE =
4799
+ T.let(
4800
+ :duplicate,
4801
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4802
+ )
4803
+
4804
+ # The recipient of the inbound FedNow transfer requested the funds be returned to the sender. Corresponds to the FedNow reason code `CUST`.
4805
+ CREDITOR_REQUEST =
4806
+ T.let(
4807
+ :creditor_request,
4808
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4809
+ )
4810
+
4811
+ # The inbound FedNow transfer was for the wrong amount. Corresponds to the FedNow reason code `AM09`.
4812
+ WRONG_AMOUNT =
4813
+ T.let(
4814
+ :wrong_amount,
4815
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4816
+ )
4817
+
4818
+ # The recipient of the inbound FedNow transfer was not owed the funds. Corresponds to the FedNow reason code `UPAY`.
4819
+ UNDUE_PAYMENT =
4820
+ T.let(
4821
+ :undue_payment,
4822
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4823
+ )
4824
+
4825
+ # The inbound FedNow transfer was determined to be fraudulent. Corresponds to the FedNow reason code `FR01`, and reports the fraud to the Federal Reserve and the sending bank.
4826
+ FRAUD =
4827
+ T.let(
4828
+ :fraud,
4829
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4830
+ )
4831
+
4832
+ sig do
4833
+ override.returns(
4834
+ T::Array[
4835
+ Increase::PendingTransaction::Source::InboundFednowTransferReturn::Reason::TaggedSymbol
4836
+ ]
4837
+ )
4838
+ end
4839
+ def self.values
4840
+ end
4841
+ end
4842
+ end
4843
+
4682
4844
  class InboundFundsHold < Increase::Internal::Type::BaseModel
4683
4845
  OrHash =
4684
4846
  T.type_alias do
@@ -241,6 +241,13 @@ module Increase
241
241
  Increase::PendingTransactionListParams::Category::In::TaggedSymbol
242
242
  )
243
243
 
244
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
245
+ INBOUND_FEDNOW_TRANSFER_RETURN =
246
+ T.let(
247
+ :inbound_fednow_transfer_return,
248
+ Increase::PendingTransactionListParams::Category::In::TaggedSymbol
249
+ )
250
+
244
251
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
245
252
  INBOUND_FUNDS_HOLD =
246
253
  T.let(