increase 1.51.0 → 1.53.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/ach_transfer.rb +1 -9
  5. data/lib/increase/models/check_deposit.rb +1 -9
  6. data/lib/increase/models/pending_transaction.rb +1 -9
  7. data/lib/increase/models/simulations/{inbound_funds_hold_release_params.rb → pending_transaction_release_inbound_funds_hold_params.rb} +2 -2
  8. data/lib/increase/resources/simulations/pending_transactions.rb +44 -0
  9. data/lib/increase/resources/simulations.rb +3 -3
  10. data/lib/increase/version.rb +1 -1
  11. data/lib/increase.rb +2 -3
  12. data/rbi/increase/models/ach_transfer.rbi +0 -8
  13. data/rbi/increase/models/check_deposit.rbi +0 -8
  14. data/rbi/increase/models/pending_transaction.rbi +0 -8
  15. data/rbi/increase/models/simulations/{inbound_funds_hold_release_params.rbi → pending_transaction_release_inbound_funds_hold_params.rbi} +2 -2
  16. data/rbi/increase/resources/simulations/{inbound_funds_holds.rbi → pending_transactions.rbi} +8 -9
  17. data/rbi/increase/resources/simulations.rbi +2 -2
  18. data/sig/increase/models/ach_transfer.rbs +0 -5
  19. data/sig/increase/models/check_deposit.rbs +0 -5
  20. data/sig/increase/models/pending_transaction.rbs +0 -5
  21. data/sig/increase/models/simulations/{inbound_funds_hold_release_params.rbs → pending_transaction_release_inbound_funds_hold_params.rbs} +2 -2
  22. data/sig/increase/resources/simulations/{inbound_funds_holds.rbs → pending_transactions.rbs} +4 -4
  23. data/sig/increase/resources/simulations.rbs +1 -1
  24. metadata +8 -11
  25. data/lib/increase/models/simulations/inbound_funds_hold_release_response.rb +0 -161
  26. data/lib/increase/resources/simulations/inbound_funds_holds.rb +0 -37
  27. data/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi +0 -280
  28. data/sig/increase/models/simulations/inbound_funds_hold_release_response.rbs +0 -117
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35f15f70c6bee0af29eb8a94dcf44474ce310e27c8c43c25eac1c4eea6b071ed
4
- data.tar.gz: 6b0972ebbee0c91913b8e07b5c3092e5b9481b2f974c04f9408e3d50a4b4d70a
3
+ metadata.gz: e57f72955c10a22b6754deef8612bcab8cfa8e1d3b16b728e46670cb86c3eb73
4
+ data.tar.gz: 6cc5fbb117f5dfa1e8621efcac0da0a6680ff0bd594b86016ffb500efbdd22da
5
5
  SHA512:
6
- metadata.gz: d14547292bb14f65b61f88b31a29d02e22872a7f1db050f4af14b5290b3226a70203fabcf5a758b7916fcb2e315f4b5bbd6bdb9461bd0eb0a04a914616bb082f
7
- data.tar.gz: '0795c218aefe6869818b24d2d5d782dd7c6dc679ef6c5507e0e586509f9950528b2a6843cc5e097a1414421257cb31b067c79724ec5455cba1814b047340de34'
6
+ metadata.gz: 7913751d0a1c092d47f0a94a0e955f9ffc0d8bd1345e3a1ac2c336e66a837cde8d5662fb13f1f5fd2a9063ce4c9eff16b2eed8c2bd7c44f881dceadee04e9a51
7
+ data.tar.gz: 1622ec122004a8d024e8cbf450e68d7e8c5f6369bf51f64bead6eb48ec1a7620125c7563dcd38f2fdfad840cb95a21351651bd8375f391dffed321cf0033944b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.53.0 (2025-08-26)
4
+
5
+ Full Changelog: [v1.52.0...v1.53.0](https://github.com/Increase/increase-ruby/compare/v1.52.0...v1.53.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([0978f47](https://github.com/Increase/increase-ruby/commit/0978f470ead5ad55589045b5f9317e7aff10cb65))
10
+
11
+ ## 1.52.0 (2025-08-26)
12
+
13
+ Full Changelog: [v1.51.0...v1.52.0](https://github.com/Increase/increase-ruby/compare/v1.51.0...v1.52.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([d7242c9](https://github.com/Increase/increase-ruby/commit/d7242c9324279e98e91c12da50e85a330e83c149))
18
+
3
19
  ## 1.51.0 (2025-08-26)
4
20
 
5
21
  Full Changelog: [v1.50.0...v1.51.0](https://github.com/Increase/increase-ruby/compare/v1.50.0...v1.51.0)
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.51.0"
18
+ gem "increase", "~> 1.53.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -694,12 +694,6 @@ module Increase
694
694
 
695
695
  # @see Increase::Models::ACHTransfer#inbound_funds_hold
696
696
  class InboundFundsHold < Increase::Internal::Type::BaseModel
697
- # @!attribute id
698
- # The Inbound Funds Hold identifier.
699
- #
700
- # @return [String]
701
- required :id, String
702
-
703
697
  # @!attribute amount
704
698
  # The held amount in the minor unit of the account's currency. For dollars, for
705
699
  # example, this is cents.
@@ -759,15 +753,13 @@ module Increase
759
753
  # @return [Symbol, Increase::Models::ACHTransfer::InboundFundsHold::Type]
760
754
  required :type, enum: -> { Increase::ACHTransfer::InboundFundsHold::Type }
761
755
 
762
- # @!method initialize(id:, amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
756
+ # @!method initialize(amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
763
757
  # Some parameter documentations has been truncated, see
764
758
  # {Increase::Models::ACHTransfer::InboundFundsHold} for more details.
765
759
  #
766
760
  # Increase will sometimes hold the funds for ACH debit transfers. If funds are
767
761
  # held, this sub-object will contain details of the hold.
768
762
  #
769
- # @param id [String] The Inbound Funds Hold identifier.
770
- #
771
763
  # @param amount [Integer] The held amount in the minor unit of the account's currency. For dollars, for ex
772
764
  #
773
765
  # @param automatically_releases_at [Time] When the hold will be released automatically. Certain conditions may cause it to
@@ -617,12 +617,6 @@ module Increase
617
617
 
618
618
  # @see Increase::Models::CheckDeposit#inbound_funds_hold
619
619
  class InboundFundsHold < Increase::Internal::Type::BaseModel
620
- # @!attribute id
621
- # The Inbound Funds Hold identifier.
622
- #
623
- # @return [String]
624
- required :id, String
625
-
626
620
  # @!attribute amount
627
621
  # The held amount in the minor unit of the account's currency. For dollars, for
628
622
  # example, this is cents.
@@ -682,15 +676,13 @@ module Increase
682
676
  # @return [Symbol, Increase::Models::CheckDeposit::InboundFundsHold::Type]
683
677
  required :type, enum: -> { Increase::CheckDeposit::InboundFundsHold::Type }
684
678
 
685
- # @!method initialize(id:, amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
679
+ # @!method initialize(amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
686
680
  # Some parameter documentations has been truncated, see
687
681
  # {Increase::Models::CheckDeposit::InboundFundsHold} for more details.
688
682
  #
689
683
  # Increase will sometimes hold the funds for Check Deposits. If funds are held,
690
684
  # this sub-object will contain details of the hold.
691
685
  #
692
- # @param id [String] The Inbound Funds Hold identifier.
693
- #
694
686
  # @param amount [Integer] The held amount in the minor unit of the account's currency. For dollars, for ex
695
687
  #
696
688
  # @param automatically_releases_at [Time] When the hold will be released automatically. Certain conditions may cause it to
@@ -1801,12 +1801,6 @@ module Increase
1801
1801
 
1802
1802
  # @see Increase::Models::PendingTransaction::Source#inbound_funds_hold
1803
1803
  class InboundFundsHold < Increase::Internal::Type::BaseModel
1804
- # @!attribute id
1805
- # The Inbound Funds Hold identifier.
1806
- #
1807
- # @return [String]
1808
- required :id, String
1809
-
1810
1804
  # @!attribute amount
1811
1805
  # The held amount in the minor unit of the account's currency. For dollars, for
1812
1806
  # example, this is cents.
@@ -1866,7 +1860,7 @@ module Increase
1866
1860
  # @return [Symbol, Increase::Models::PendingTransaction::Source::InboundFundsHold::Type]
1867
1861
  required :type, enum: -> { Increase::PendingTransaction::Source::InboundFundsHold::Type }
1868
1862
 
1869
- # @!method initialize(id:, amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
1863
+ # @!method initialize(amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
1870
1864
  # Some parameter documentations has been truncated, see
1871
1865
  # {Increase::Models::PendingTransaction::Source::InboundFundsHold} for more
1872
1866
  # details.
@@ -1876,8 +1870,6 @@ module Increase
1876
1870
  # certain transaction types to account for return windows where funds might still
1877
1871
  # be clawed back by the sending institution.
1878
1872
  #
1879
- # @param id [String] The Inbound Funds Hold identifier.
1880
- #
1881
1873
  # @param amount [Integer] The held amount in the minor unit of the account's currency. For dollars, for ex
1882
1874
  #
1883
1875
  # @param automatically_releases_at [Time] When the hold will be released automatically. Certain conditions may cause it to
@@ -3,8 +3,8 @@
3
3
  module Increase
4
4
  module Models
5
5
  module Simulations
6
- # @see Increase::Resources::Simulations::InboundFundsHolds#release
7
- class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel
6
+ # @see Increase::Resources::Simulations::PendingTransactions#release_inbound_funds_hold
7
+ class PendingTransactionReleaseInboundFundsHoldParams < Increase::Internal::Type::BaseModel
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class PendingTransactions
7
+ # Some parameter documentations has been truncated, see
8
+ # {Increase::Models::Simulations::PendingTransactionReleaseInboundFundsHoldParams}
9
+ # for more details.
10
+ #
11
+ # This endpoint simulates immediately releasing an Inbound Funds Hold, which might
12
+ # be created as a result of, for example, an ACH debit.
13
+ #
14
+ # @overload release_inbound_funds_hold(pending_transaction_id, request_options: {})
15
+ #
16
+ # @param pending_transaction_id [String] The pending transaction to release. The pending transaction must have a `inbound
17
+ #
18
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
19
+ #
20
+ # @return [Increase::Models::PendingTransaction]
21
+ #
22
+ # @see Increase::Models::Simulations::PendingTransactionReleaseInboundFundsHoldParams
23
+ def release_inbound_funds_hold(pending_transaction_id, params = {})
24
+ @client.request(
25
+ method: :post,
26
+ path: [
27
+ "simulations/pending_transactions/%1$s/release_inbound_funds_hold",
28
+ pending_transaction_id
29
+ ],
30
+ model: Increase::PendingTransaction,
31
+ options: params[:request_options]
32
+ )
33
+ end
34
+
35
+ # @api private
36
+ #
37
+ # @param client [Increase::Client]
38
+ def initialize(client:)
39
+ @client = client
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -36,8 +36,8 @@ module Increase
36
36
  # @return [Increase::Resources::Simulations::DigitalWalletTokenRequests]
37
37
  attr_reader :digital_wallet_token_requests
38
38
 
39
- # @return [Increase::Resources::Simulations::InboundFundsHolds]
40
- attr_reader :inbound_funds_holds
39
+ # @return [Increase::Resources::Simulations::PendingTransactions]
40
+ attr_reader :pending_transactions
41
41
 
42
42
  # @return [Increase::Resources::Simulations::AccountTransfers]
43
43
  attr_reader :account_transfers
@@ -108,7 +108,7 @@ module Increase
108
108
  @physical_cards = Increase::Resources::Simulations::PhysicalCards.new(client: client)
109
109
  @digital_wallet_token_requests =
110
110
  Increase::Resources::Simulations::DigitalWalletTokenRequests.new(client: client)
111
- @inbound_funds_holds = Increase::Resources::Simulations::InboundFundsHolds.new(client: client)
111
+ @pending_transactions = Increase::Resources::Simulations::PendingTransactions.new(client: client)
112
112
  @account_transfers = Increase::Resources::Simulations::AccountTransfers.new(client: client)
113
113
  @ach_transfers = Increase::Resources::Simulations::ACHTransfers.new(client: client)
114
114
  @inbound_ach_transfers = Increase::Resources::Simulations::InboundACHTransfers.new(client: client)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.51.0"
4
+ VERSION = "1.53.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -299,13 +299,12 @@ require_relative "increase/models/simulations/digital_wallet_token_request_creat
299
299
  require_relative "increase/models/simulations/document_create_params"
300
300
  require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
301
301
  require_relative "increase/models/simulations/inbound_check_deposit_create_params"
302
- require_relative "increase/models/simulations/inbound_funds_hold_release_params"
303
- require_relative "increase/models/simulations/inbound_funds_hold_release_response"
304
302
  require_relative "increase/models/simulations/inbound_mail_item_create_params"
305
303
  require_relative "increase/models/simulations/inbound_real_time_payments_transfer_create_params"
306
304
  require_relative "increase/models/simulations/inbound_wire_drawdown_request_create_params"
307
305
  require_relative "increase/models/simulations/inbound_wire_transfer_create_params"
308
306
  require_relative "increase/models/simulations/interest_payment_create_params"
307
+ require_relative "increase/models/simulations/pending_transaction_release_inbound_funds_hold_params"
309
308
  require_relative "increase/models/simulations/physical_card_advance_shipment_params"
310
309
  require_relative "increase/models/simulations/physical_card_tracking_updates_params"
311
310
  require_relative "increase/models/simulations/program_create_params"
@@ -399,12 +398,12 @@ require_relative "increase/resources/simulations/digital_wallet_token_requests"
399
398
  require_relative "increase/resources/simulations/documents"
400
399
  require_relative "increase/resources/simulations/inbound_ach_transfers"
401
400
  require_relative "increase/resources/simulations/inbound_check_deposits"
402
- require_relative "increase/resources/simulations/inbound_funds_holds"
403
401
  require_relative "increase/resources/simulations/inbound_mail_items"
404
402
  require_relative "increase/resources/simulations/inbound_real_time_payments_transfers"
405
403
  require_relative "increase/resources/simulations/inbound_wire_drawdown_requests"
406
404
  require_relative "increase/resources/simulations/inbound_wire_transfers"
407
405
  require_relative "increase/resources/simulations/interest_payments"
406
+ require_relative "increase/resources/simulations/pending_transactions"
408
407
  require_relative "increase/resources/simulations/physical_cards"
409
408
  require_relative "increase/resources/simulations/programs"
410
409
  require_relative "increase/resources/simulations/real_time_payments_transfers"
@@ -1179,10 +1179,6 @@ module Increase
1179
1179
  )
1180
1180
  end
1181
1181
 
1182
- # The Inbound Funds Hold identifier.
1183
- sig { returns(String) }
1184
- attr_accessor :id
1185
-
1186
1182
  # The held amount in the minor unit of the account's currency. For dollars, for
1187
1183
  # example, this is cents.
1188
1184
  sig { returns(Integer) }
@@ -1236,7 +1232,6 @@ module Increase
1236
1232
  # held, this sub-object will contain details of the hold.
1237
1233
  sig do
1238
1234
  params(
1239
- id: String,
1240
1235
  amount: Integer,
1241
1236
  automatically_releases_at: Time,
1242
1237
  created_at: Time,
@@ -1250,8 +1245,6 @@ module Increase
1250
1245
  ).returns(T.attached_class)
1251
1246
  end
1252
1247
  def self.new(
1253
- # The Inbound Funds Hold identifier.
1254
- id:,
1255
1248
  # The held amount in the minor unit of the account's currency. For dollars, for
1256
1249
  # example, this is cents.
1257
1250
  amount:,
@@ -1281,7 +1274,6 @@ module Increase
1281
1274
  sig do
1282
1275
  override.returns(
1283
1276
  {
1284
- id: String,
1285
1277
  amount: Integer,
1286
1278
  automatically_releases_at: Time,
1287
1279
  created_at: Time,
@@ -1088,10 +1088,6 @@ module Increase
1088
1088
  )
1089
1089
  end
1090
1090
 
1091
- # The Inbound Funds Hold identifier.
1092
- sig { returns(String) }
1093
- attr_accessor :id
1094
-
1095
1091
  # The held amount in the minor unit of the account's currency. For dollars, for
1096
1092
  # example, this is cents.
1097
1093
  sig { returns(Integer) }
@@ -1147,7 +1143,6 @@ module Increase
1147
1143
  # this sub-object will contain details of the hold.
1148
1144
  sig do
1149
1145
  params(
1150
- id: String,
1151
1146
  amount: Integer,
1152
1147
  automatically_releases_at: Time,
1153
1148
  created_at: Time,
@@ -1161,8 +1156,6 @@ module Increase
1161
1156
  ).returns(T.attached_class)
1162
1157
  end
1163
1158
  def self.new(
1164
- # The Inbound Funds Hold identifier.
1165
- id:,
1166
1159
  # The held amount in the minor unit of the account's currency. For dollars, for
1167
1160
  # example, this is cents.
1168
1161
  amount:,
@@ -1192,7 +1185,6 @@ module Increase
1192
1185
  sig do
1193
1186
  override.returns(
1194
1187
  {
1195
- id: String,
1196
1188
  amount: Integer,
1197
1189
  automatically_releases_at: Time,
1198
1190
  created_at: Time,
@@ -3409,10 +3409,6 @@ module Increase
3409
3409
  )
3410
3410
  end
3411
3411
 
3412
- # The Inbound Funds Hold identifier.
3413
- sig { returns(String) }
3414
- attr_accessor :id
3415
-
3416
3412
  # The held amount in the minor unit of the account's currency. For dollars, for
3417
3413
  # example, this is cents.
3418
3414
  sig { returns(Integer) }
@@ -3472,7 +3468,6 @@ module Increase
3472
3468
  # be clawed back by the sending institution.
3473
3469
  sig do
3474
3470
  params(
3475
- id: String,
3476
3471
  amount: Integer,
3477
3472
  automatically_releases_at: Time,
3478
3473
  created_at: Time,
@@ -3488,8 +3483,6 @@ module Increase
3488
3483
  ).returns(T.attached_class)
3489
3484
  end
3490
3485
  def self.new(
3491
- # The Inbound Funds Hold identifier.
3492
- id:,
3493
3486
  # The held amount in the minor unit of the account's currency. For dollars, for
3494
3487
  # example, this is cents.
3495
3488
  amount:,
@@ -3519,7 +3512,6 @@ module Increase
3519
3512
  sig do
3520
3513
  override.returns(
3521
3514
  {
3522
- id: String,
3523
3515
  amount: Integer,
3524
3516
  automatically_releases_at: Time,
3525
3517
  created_at: Time,
@@ -3,14 +3,14 @@
3
3
  module Increase
4
4
  module Models
5
5
  module Simulations
6
- class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel
6
+ class PendingTransactionReleaseInboundFundsHoldParams < Increase::Internal::Type::BaseModel
7
7
  extend Increase::Internal::Type::RequestParameters::Converter
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
10
10
  OrHash =
11
11
  T.type_alias do
12
12
  T.any(
13
- Increase::Simulations::InboundFundsHoldReleaseParams,
13
+ Increase::Simulations::PendingTransactionReleaseInboundFundsHoldParams,
14
14
  Increase::Internal::AnyHash
15
15
  )
16
16
  end
@@ -3,20 +3,19 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class Simulations
6
- class InboundFundsHolds
6
+ class PendingTransactions
7
7
  # This endpoint simulates immediately releasing an Inbound Funds Hold, which might
8
- # be created as a result of e.g., an ACH debit.
8
+ # be created as a result of, for example, an ACH debit.
9
9
  sig do
10
10
  params(
11
- inbound_funds_hold_id: String,
11
+ pending_transaction_id: String,
12
12
  request_options: Increase::RequestOptions::OrHash
13
- ).returns(
14
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse
15
- )
13
+ ).returns(Increase::PendingTransaction)
16
14
  end
17
- def release(
18
- # The inbound funds hold to release.
19
- inbound_funds_hold_id,
15
+ def release_inbound_funds_hold(
16
+ # The pending transaction to release. The pending transaction must have a
17
+ # `inbound_funds_hold` source.
18
+ pending_transaction_id,
20
19
  request_options: {}
21
20
  )
22
21
  end
@@ -40,8 +40,8 @@ module Increase
40
40
  end
41
41
  attr_reader :digital_wallet_token_requests
42
42
 
43
- sig { returns(Increase::Resources::Simulations::InboundFundsHolds) }
44
- attr_reader :inbound_funds_holds
43
+ sig { returns(Increase::Resources::Simulations::PendingTransactions) }
44
+ attr_reader :pending_transactions
45
45
 
46
46
  sig { returns(Increase::Resources::Simulations::AccountTransfers) }
47
47
  attr_reader :account_transfers
@@ -467,7 +467,6 @@ module Increase
467
467
 
468
468
  type inbound_funds_hold =
469
469
  {
470
- id: String,
471
470
  amount: Integer,
472
471
  automatically_releases_at: Time,
473
472
  created_at: Time,
@@ -480,8 +479,6 @@ module Increase
480
479
  }
481
480
 
482
481
  class InboundFundsHold < Increase::Internal::Type::BaseModel
483
- attr_accessor id: String
484
-
485
482
  attr_accessor amount: Integer
486
483
 
487
484
  attr_accessor automatically_releases_at: Time
@@ -501,7 +498,6 @@ module Increase
501
498
  attr_accessor type: Increase::Models::ACHTransfer::InboundFundsHold::type_
502
499
 
503
500
  def initialize: (
504
- id: String,
505
501
  amount: Integer,
506
502
  automatically_releases_at: Time,
507
503
  created_at: Time,
@@ -514,7 +510,6 @@ module Increase
514
510
  ) -> void
515
511
 
516
512
  def to_hash: -> {
517
- id: String,
518
513
  amount: Integer,
519
514
  automatically_releases_at: Time,
520
515
  created_at: Time,
@@ -499,7 +499,6 @@ module Increase
499
499
 
500
500
  type inbound_funds_hold =
501
501
  {
502
- id: String,
503
502
  amount: Integer,
504
503
  automatically_releases_at: Time,
505
504
  created_at: Time,
@@ -512,8 +511,6 @@ module Increase
512
511
  }
513
512
 
514
513
  class InboundFundsHold < Increase::Internal::Type::BaseModel
515
- attr_accessor id: String
516
-
517
514
  attr_accessor amount: Integer
518
515
 
519
516
  attr_accessor automatically_releases_at: Time
@@ -533,7 +530,6 @@ module Increase
533
530
  attr_accessor type: Increase::Models::CheckDeposit::InboundFundsHold::type_
534
531
 
535
532
  def initialize: (
536
- id: String,
537
533
  amount: Integer,
538
534
  automatically_releases_at: Time,
539
535
  created_at: Time,
@@ -546,7 +542,6 @@ module Increase
546
542
  ) -> void
547
543
 
548
544
  def to_hash: -> {
549
- id: String,
550
545
  amount: Integer,
551
546
  automatically_releases_at: Time,
552
547
  created_at: Time,
@@ -1234,7 +1234,6 @@ module Increase
1234
1234
 
1235
1235
  type inbound_funds_hold =
1236
1236
  {
1237
- id: String,
1238
1237
  amount: Integer,
1239
1238
  automatically_releases_at: Time,
1240
1239
  created_at: Time,
@@ -1247,8 +1246,6 @@ module Increase
1247
1246
  }
1248
1247
 
1249
1248
  class InboundFundsHold < Increase::Internal::Type::BaseModel
1250
- attr_accessor id: String
1251
-
1252
1249
  attr_accessor amount: Integer
1253
1250
 
1254
1251
  attr_accessor automatically_releases_at: Time
@@ -1268,7 +1265,6 @@ module Increase
1268
1265
  attr_accessor type: Increase::Models::PendingTransaction::Source::InboundFundsHold::type_
1269
1266
 
1270
1267
  def initialize: (
1271
- id: String,
1272
1268
  amount: Integer,
1273
1269
  automatically_releases_at: Time,
1274
1270
  created_at: Time,
@@ -1281,7 +1277,6 @@ module Increase
1281
1277
  ) -> void
1282
1278
 
1283
1279
  def to_hash: -> {
1284
- id: String,
1285
1280
  amount: Integer,
1286
1281
  automatically_releases_at: Time,
1287
1282
  created_at: Time,
@@ -1,10 +1,10 @@
1
1
  module Increase
2
2
  module Models
3
3
  module Simulations
4
- type inbound_funds_hold_release_params =
4
+ type pending_transaction_release_inbound_funds_hold_params =
5
5
  { } & Increase::Internal::Type::request_parameters
6
6
 
7
- class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel
7
+ class PendingTransactionReleaseInboundFundsHoldParams < Increase::Internal::Type::BaseModel
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
@@ -1,11 +1,11 @@
1
1
  module Increase
2
2
  module Resources
3
3
  class Simulations
4
- class InboundFundsHolds
5
- def release: (
6
- String inbound_funds_hold_id,
4
+ class PendingTransactions
5
+ def release_inbound_funds_hold: (
6
+ String pending_transaction_id,
7
7
  ?request_options: Increase::request_opts
8
- ) -> Increase::Models::Simulations::InboundFundsHoldReleaseResponse
8
+ ) -> Increase::PendingTransaction
9
9
 
10
10
  def initialize: (client: Increase::Client) -> void
11
11
  end
@@ -23,7 +23,7 @@ module Increase
23
23
 
24
24
  attr_reader digital_wallet_token_requests: Increase::Resources::Simulations::DigitalWalletTokenRequests
25
25
 
26
- attr_reader inbound_funds_holds: Increase::Resources::Simulations::InboundFundsHolds
26
+ attr_reader pending_transactions: Increase::Resources::Simulations::PendingTransactions
27
27
 
28
28
  attr_reader account_transfers: Increase::Resources::Simulations::AccountTransfers
29
29
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -304,13 +304,12 @@ files:
304
304
  - lib/increase/models/simulations/document_create_params.rb
305
305
  - lib/increase/models/simulations/inbound_ach_transfer_create_params.rb
306
306
  - lib/increase/models/simulations/inbound_check_deposit_create_params.rb
307
- - lib/increase/models/simulations/inbound_funds_hold_release_params.rb
308
- - lib/increase/models/simulations/inbound_funds_hold_release_response.rb
309
307
  - lib/increase/models/simulations/inbound_mail_item_create_params.rb
310
308
  - lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rb
311
309
  - lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rb
312
310
  - lib/increase/models/simulations/inbound_wire_transfer_create_params.rb
313
311
  - lib/increase/models/simulations/interest_payment_create_params.rb
312
+ - lib/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rb
314
313
  - lib/increase/models/simulations/physical_card_advance_shipment_params.rb
315
314
  - lib/increase/models/simulations/physical_card_tracking_updates_params.rb
316
315
  - lib/increase/models/simulations/program_create_params.rb
@@ -404,12 +403,12 @@ files:
404
403
  - lib/increase/resources/simulations/documents.rb
405
404
  - lib/increase/resources/simulations/inbound_ach_transfers.rb
406
405
  - lib/increase/resources/simulations/inbound_check_deposits.rb
407
- - lib/increase/resources/simulations/inbound_funds_holds.rb
408
406
  - lib/increase/resources/simulations/inbound_mail_items.rb
409
407
  - lib/increase/resources/simulations/inbound_real_time_payments_transfers.rb
410
408
  - lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb
411
409
  - lib/increase/resources/simulations/inbound_wire_transfers.rb
412
410
  - lib/increase/resources/simulations/interest_payments.rb
411
+ - lib/increase/resources/simulations/pending_transactions.rb
413
412
  - lib/increase/resources/simulations/physical_cards.rb
414
413
  - lib/increase/resources/simulations/programs.rb
415
414
  - lib/increase/resources/simulations/real_time_payments_transfers.rb
@@ -689,13 +688,12 @@ files:
689
688
  - rbi/increase/models/simulations/document_create_params.rbi
690
689
  - rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi
691
690
  - rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi
692
- - rbi/increase/models/simulations/inbound_funds_hold_release_params.rbi
693
- - rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi
694
691
  - rbi/increase/models/simulations/inbound_mail_item_create_params.rbi
695
692
  - rbi/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi
696
693
  - rbi/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi
697
694
  - rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi
698
695
  - rbi/increase/models/simulations/interest_payment_create_params.rbi
696
+ - rbi/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rbi
699
697
  - rbi/increase/models/simulations/physical_card_advance_shipment_params.rbi
700
698
  - rbi/increase/models/simulations/physical_card_tracking_updates_params.rbi
701
699
  - rbi/increase/models/simulations/program_create_params.rbi
@@ -789,12 +787,12 @@ files:
789
787
  - rbi/increase/resources/simulations/documents.rbi
790
788
  - rbi/increase/resources/simulations/inbound_ach_transfers.rbi
791
789
  - rbi/increase/resources/simulations/inbound_check_deposits.rbi
792
- - rbi/increase/resources/simulations/inbound_funds_holds.rbi
793
790
  - rbi/increase/resources/simulations/inbound_mail_items.rbi
794
791
  - rbi/increase/resources/simulations/inbound_real_time_payments_transfers.rbi
795
792
  - rbi/increase/resources/simulations/inbound_wire_drawdown_requests.rbi
796
793
  - rbi/increase/resources/simulations/inbound_wire_transfers.rbi
797
794
  - rbi/increase/resources/simulations/interest_payments.rbi
795
+ - rbi/increase/resources/simulations/pending_transactions.rbi
798
796
  - rbi/increase/resources/simulations/physical_cards.rbi
799
797
  - rbi/increase/resources/simulations/programs.rbi
800
798
  - rbi/increase/resources/simulations/real_time_payments_transfers.rbi
@@ -1073,13 +1071,12 @@ files:
1073
1071
  - sig/increase/models/simulations/document_create_params.rbs
1074
1072
  - sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs
1075
1073
  - sig/increase/models/simulations/inbound_check_deposit_create_params.rbs
1076
- - sig/increase/models/simulations/inbound_funds_hold_release_params.rbs
1077
- - sig/increase/models/simulations/inbound_funds_hold_release_response.rbs
1078
1074
  - sig/increase/models/simulations/inbound_mail_item_create_params.rbs
1079
1075
  - sig/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbs
1080
1076
  - sig/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbs
1081
1077
  - sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs
1082
1078
  - sig/increase/models/simulations/interest_payment_create_params.rbs
1079
+ - sig/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rbs
1083
1080
  - sig/increase/models/simulations/physical_card_advance_shipment_params.rbs
1084
1081
  - sig/increase/models/simulations/physical_card_tracking_updates_params.rbs
1085
1082
  - sig/increase/models/simulations/program_create_params.rbs
@@ -1173,12 +1170,12 @@ files:
1173
1170
  - sig/increase/resources/simulations/documents.rbs
1174
1171
  - sig/increase/resources/simulations/inbound_ach_transfers.rbs
1175
1172
  - sig/increase/resources/simulations/inbound_check_deposits.rbs
1176
- - sig/increase/resources/simulations/inbound_funds_holds.rbs
1177
1173
  - sig/increase/resources/simulations/inbound_mail_items.rbs
1178
1174
  - sig/increase/resources/simulations/inbound_real_time_payments_transfers.rbs
1179
1175
  - sig/increase/resources/simulations/inbound_wire_drawdown_requests.rbs
1180
1176
  - sig/increase/resources/simulations/inbound_wire_transfers.rbs
1181
1177
  - sig/increase/resources/simulations/interest_payments.rbs
1178
+ - sig/increase/resources/simulations/pending_transactions.rbs
1182
1179
  - sig/increase/resources/simulations/physical_cards.rbs
1183
1180
  - sig/increase/resources/simulations/programs.rbs
1184
1181
  - sig/increase/resources/simulations/real_time_payments_transfers.rbs
@@ -1,161 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- module Simulations
6
- # @see Increase::Resources::Simulations::InboundFundsHolds#release
7
- class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel
8
- # @!attribute id
9
- # The Inbound Funds Hold identifier.
10
- #
11
- # @return [String]
12
- required :id, String
13
-
14
- # @!attribute amount
15
- # The held amount in the minor unit of the account's currency. For dollars, for
16
- # example, this is cents.
17
- #
18
- # @return [Integer]
19
- required :amount, Integer
20
-
21
- # @!attribute automatically_releases_at
22
- # When the hold will be released automatically. Certain conditions may cause it to
23
- # be released before this time.
24
- #
25
- # @return [Time]
26
- required :automatically_releases_at, Time
27
-
28
- # @!attribute created_at
29
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
30
- # was created.
31
- #
32
- # @return [Time]
33
- required :created_at, Time
34
-
35
- # @!attribute currency
36
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
37
- # currency.
38
- #
39
- # @return [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency]
40
- required :currency, enum: -> { Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency }
41
-
42
- # @!attribute held_transaction_id
43
- # The ID of the Transaction for which funds were held.
44
- #
45
- # @return [String, nil]
46
- required :held_transaction_id, String, nil?: true
47
-
48
- # @!attribute pending_transaction_id
49
- # The ID of the Pending Transaction representing the held funds.
50
- #
51
- # @return [String, nil]
52
- required :pending_transaction_id, String, nil?: true
53
-
54
- # @!attribute released_at
55
- # When the hold was released (if it has been released).
56
- #
57
- # @return [Time, nil]
58
- required :released_at, Time, nil?: true
59
-
60
- # @!attribute status
61
- # The status of the hold.
62
- #
63
- # @return [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status]
64
- required :status, enum: -> { Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status }
65
-
66
- # @!attribute type
67
- # A constant representing the object's type. For this resource it will always be
68
- # `inbound_funds_hold`.
69
- #
70
- # @return [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type]
71
- required :type, enum: -> { Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type }
72
-
73
- # @!method initialize(id:, amount:, automatically_releases_at:, created_at:, currency:, held_transaction_id:, pending_transaction_id:, released_at:, status:, type:)
74
- # Some parameter documentations has been truncated, see
75
- # {Increase::Models::Simulations::InboundFundsHoldReleaseResponse} for more
76
- # details.
77
- #
78
- # We hold funds for certain transaction types to account for return windows where
79
- # funds might still be clawed back by the sending institution.
80
- #
81
- # @param id [String] The Inbound Funds Hold identifier.
82
- #
83
- # @param amount [Integer] The held amount in the minor unit of the account's currency. For dollars, for ex
84
- #
85
- # @param automatically_releases_at [Time] When the hold will be released automatically. Certain conditions may cause it to
86
- #
87
- # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold wa
88
- #
89
- # @param currency [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's curre
90
- #
91
- # @param held_transaction_id [String, nil] The ID of the Transaction for which funds were held.
92
- #
93
- # @param pending_transaction_id [String, nil] The ID of the Pending Transaction representing the held funds.
94
- #
95
- # @param released_at [Time, nil] When the hold was released (if it has been released).
96
- #
97
- # @param status [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status] The status of the hold.
98
- #
99
- # @param type [Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type] A constant representing the object's type. For this resource it will always be `
100
-
101
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
102
- # currency.
103
- #
104
- # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#currency
105
- module Currency
106
- extend Increase::Internal::Type::Enum
107
-
108
- # Canadian Dollar (CAD)
109
- CAD = :CAD
110
-
111
- # Swiss Franc (CHF)
112
- CHF = :CHF
113
-
114
- # Euro (EUR)
115
- EUR = :EUR
116
-
117
- # British Pound (GBP)
118
- GBP = :GBP
119
-
120
- # Japanese Yen (JPY)
121
- JPY = :JPY
122
-
123
- # US Dollar (USD)
124
- USD = :USD
125
-
126
- # @!method self.values
127
- # @return [Array<Symbol>]
128
- end
129
-
130
- # The status of the hold.
131
- #
132
- # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#status
133
- module Status
134
- extend Increase::Internal::Type::Enum
135
-
136
- # Funds are still being held.
137
- HELD = :held
138
-
139
- # Funds have been released.
140
- COMPLETE = :complete
141
-
142
- # @!method self.values
143
- # @return [Array<Symbol>]
144
- end
145
-
146
- # A constant representing the object's type. For this resource it will always be
147
- # `inbound_funds_hold`.
148
- #
149
- # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#type
150
- module Type
151
- extend Increase::Internal::Type::Enum
152
-
153
- INBOUND_FUNDS_HOLD = :inbound_funds_hold
154
-
155
- # @!method self.values
156
- # @return [Array<Symbol>]
157
- end
158
- end
159
- end
160
- end
161
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Resources
5
- class Simulations
6
- class InboundFundsHolds
7
- # This endpoint simulates immediately releasing an Inbound Funds Hold, which might
8
- # be created as a result of e.g., an ACH debit.
9
- #
10
- # @overload release(inbound_funds_hold_id, request_options: {})
11
- #
12
- # @param inbound_funds_hold_id [String] The inbound funds hold to release.
13
- #
14
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
15
- #
16
- # @return [Increase::Models::Simulations::InboundFundsHoldReleaseResponse]
17
- #
18
- # @see Increase::Models::Simulations::InboundFundsHoldReleaseParams
19
- def release(inbound_funds_hold_id, params = {})
20
- @client.request(
21
- method: :post,
22
- path: ["simulations/inbound_funds_holds/%1$s/release", inbound_funds_hold_id],
23
- model: Increase::Models::Simulations::InboundFundsHoldReleaseResponse,
24
- options: params[:request_options]
25
- )
26
- end
27
-
28
- # @api private
29
- #
30
- # @param client [Increase::Client]
31
- def initialize(client:)
32
- @client = client
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,280 +0,0 @@
1
- # typed: strong
2
-
3
- module Increase
4
- module Models
5
- module Simulations
6
- class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse,
11
- Increase::Internal::AnyHash
12
- )
13
- end
14
-
15
- # The Inbound Funds Hold identifier.
16
- sig { returns(String) }
17
- attr_accessor :id
18
-
19
- # The held amount in the minor unit of the account's currency. For dollars, for
20
- # example, this is cents.
21
- sig { returns(Integer) }
22
- attr_accessor :amount
23
-
24
- # When the hold will be released automatically. Certain conditions may cause it to
25
- # be released before this time.
26
- sig { returns(Time) }
27
- attr_accessor :automatically_releases_at
28
-
29
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
30
- # was created.
31
- sig { returns(Time) }
32
- attr_accessor :created_at
33
-
34
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
35
- # currency.
36
- sig do
37
- returns(
38
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
39
- )
40
- end
41
- attr_accessor :currency
42
-
43
- # The ID of the Transaction for which funds were held.
44
- sig { returns(T.nilable(String)) }
45
- attr_accessor :held_transaction_id
46
-
47
- # The ID of the Pending Transaction representing the held funds.
48
- sig { returns(T.nilable(String)) }
49
- attr_accessor :pending_transaction_id
50
-
51
- # When the hold was released (if it has been released).
52
- sig { returns(T.nilable(Time)) }
53
- attr_accessor :released_at
54
-
55
- # The status of the hold.
56
- sig do
57
- returns(
58
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::TaggedSymbol
59
- )
60
- end
61
- attr_accessor :status
62
-
63
- # A constant representing the object's type. For this resource it will always be
64
- # `inbound_funds_hold`.
65
- sig do
66
- returns(
67
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type::TaggedSymbol
68
- )
69
- end
70
- attr_accessor :type
71
-
72
- # We hold funds for certain transaction types to account for return windows where
73
- # funds might still be clawed back by the sending institution.
74
- sig do
75
- params(
76
- id: String,
77
- amount: Integer,
78
- automatically_releases_at: Time,
79
- created_at: Time,
80
- currency:
81
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::OrSymbol,
82
- held_transaction_id: T.nilable(String),
83
- pending_transaction_id: T.nilable(String),
84
- released_at: T.nilable(Time),
85
- status:
86
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::OrSymbol,
87
- type:
88
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type::OrSymbol
89
- ).returns(T.attached_class)
90
- end
91
- def self.new(
92
- # The Inbound Funds Hold identifier.
93
- id:,
94
- # The held amount in the minor unit of the account's currency. For dollars, for
95
- # example, this is cents.
96
- amount:,
97
- # When the hold will be released automatically. Certain conditions may cause it to
98
- # be released before this time.
99
- automatically_releases_at:,
100
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
101
- # was created.
102
- created_at:,
103
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
104
- # currency.
105
- currency:,
106
- # The ID of the Transaction for which funds were held.
107
- held_transaction_id:,
108
- # The ID of the Pending Transaction representing the held funds.
109
- pending_transaction_id:,
110
- # When the hold was released (if it has been released).
111
- released_at:,
112
- # The status of the hold.
113
- status:,
114
- # A constant representing the object's type. For this resource it will always be
115
- # `inbound_funds_hold`.
116
- type:
117
- )
118
- end
119
-
120
- sig do
121
- override.returns(
122
- {
123
- id: String,
124
- amount: Integer,
125
- automatically_releases_at: Time,
126
- created_at: Time,
127
- currency:
128
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol,
129
- held_transaction_id: T.nilable(String),
130
- pending_transaction_id: T.nilable(String),
131
- released_at: T.nilable(Time),
132
- status:
133
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::TaggedSymbol,
134
- type:
135
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type::TaggedSymbol
136
- }
137
- )
138
- end
139
- def to_hash
140
- end
141
-
142
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
143
- # currency.
144
- module Currency
145
- extend Increase::Internal::Type::Enum
146
-
147
- TaggedSymbol =
148
- T.type_alias do
149
- T.all(
150
- Symbol,
151
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency
152
- )
153
- end
154
- OrSymbol = T.type_alias { T.any(Symbol, String) }
155
-
156
- # Canadian Dollar (CAD)
157
- CAD =
158
- T.let(
159
- :CAD,
160
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
161
- )
162
-
163
- # Swiss Franc (CHF)
164
- CHF =
165
- T.let(
166
- :CHF,
167
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
168
- )
169
-
170
- # Euro (EUR)
171
- EUR =
172
- T.let(
173
- :EUR,
174
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
175
- )
176
-
177
- # British Pound (GBP)
178
- GBP =
179
- T.let(
180
- :GBP,
181
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
182
- )
183
-
184
- # Japanese Yen (JPY)
185
- JPY =
186
- T.let(
187
- :JPY,
188
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
189
- )
190
-
191
- # US Dollar (USD)
192
- USD =
193
- T.let(
194
- :USD,
195
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
196
- )
197
-
198
- sig do
199
- override.returns(
200
- T::Array[
201
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency::TaggedSymbol
202
- ]
203
- )
204
- end
205
- def self.values
206
- end
207
- end
208
-
209
- # The status of the hold.
210
- module Status
211
- extend Increase::Internal::Type::Enum
212
-
213
- TaggedSymbol =
214
- T.type_alias do
215
- T.all(
216
- Symbol,
217
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status
218
- )
219
- end
220
- OrSymbol = T.type_alias { T.any(Symbol, String) }
221
-
222
- # Funds are still being held.
223
- HELD =
224
- T.let(
225
- :held,
226
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::TaggedSymbol
227
- )
228
-
229
- # Funds have been released.
230
- COMPLETE =
231
- T.let(
232
- :complete,
233
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::TaggedSymbol
234
- )
235
-
236
- sig do
237
- override.returns(
238
- T::Array[
239
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status::TaggedSymbol
240
- ]
241
- )
242
- end
243
- def self.values
244
- end
245
- end
246
-
247
- # A constant representing the object's type. For this resource it will always be
248
- # `inbound_funds_hold`.
249
- module Type
250
- extend Increase::Internal::Type::Enum
251
-
252
- TaggedSymbol =
253
- T.type_alias do
254
- T.all(
255
- Symbol,
256
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type
257
- )
258
- end
259
- OrSymbol = T.type_alias { T.any(Symbol, String) }
260
-
261
- INBOUND_FUNDS_HOLD =
262
- T.let(
263
- :inbound_funds_hold,
264
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type::TaggedSymbol
265
- )
266
-
267
- sig do
268
- override.returns(
269
- T::Array[
270
- Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type::TaggedSymbol
271
- ]
272
- )
273
- end
274
- def self.values
275
- end
276
- end
277
- end
278
- end
279
- end
280
- end
@@ -1,117 +0,0 @@
1
- module Increase
2
- module Models
3
- module Simulations
4
- type inbound_funds_hold_release_response =
5
- {
6
- id: String,
7
- amount: Integer,
8
- automatically_releases_at: Time,
9
- created_at: Time,
10
- currency: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::currency,
11
- held_transaction_id: String?,
12
- pending_transaction_id: String?,
13
- released_at: Time?,
14
- status: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::status,
15
- type: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_
16
- }
17
-
18
- class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel
19
- attr_accessor id: String
20
-
21
- attr_accessor amount: Integer
22
-
23
- attr_accessor automatically_releases_at: Time
24
-
25
- attr_accessor created_at: Time
26
-
27
- attr_accessor currency: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::currency
28
-
29
- attr_accessor held_transaction_id: String?
30
-
31
- attr_accessor pending_transaction_id: String?
32
-
33
- attr_accessor released_at: Time?
34
-
35
- attr_accessor status: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::status
36
-
37
- attr_accessor type: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_
38
-
39
- def initialize: (
40
- id: String,
41
- amount: Integer,
42
- automatically_releases_at: Time,
43
- created_at: Time,
44
- currency: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::currency,
45
- held_transaction_id: String?,
46
- pending_transaction_id: String?,
47
- released_at: Time?,
48
- status: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::status,
49
- type: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_
50
- ) -> void
51
-
52
- def to_hash: -> {
53
- id: String,
54
- amount: Integer,
55
- automatically_releases_at: Time,
56
- created_at: Time,
57
- currency: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::currency,
58
- held_transaction_id: String?,
59
- pending_transaction_id: String?,
60
- released_at: Time?,
61
- status: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::status,
62
- type: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_
63
- }
64
-
65
- type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD
66
-
67
- module Currency
68
- extend Increase::Internal::Type::Enum
69
-
70
- # Canadian Dollar (CAD)
71
- CAD: :CAD
72
-
73
- # Swiss Franc (CHF)
74
- CHF: :CHF
75
-
76
- # Euro (EUR)
77
- EUR: :EUR
78
-
79
- # British Pound (GBP)
80
- GBP: :GBP
81
-
82
- # Japanese Yen (JPY)
83
- JPY: :JPY
84
-
85
- # US Dollar (USD)
86
- USD: :USD
87
-
88
- def self?.values: -> ::Array[Increase::Models::Simulations::InboundFundsHoldReleaseResponse::currency]
89
- end
90
-
91
- type status = :held | :complete
92
-
93
- module Status
94
- extend Increase::Internal::Type::Enum
95
-
96
- # Funds are still being held.
97
- HELD: :held
98
-
99
- # Funds have been released.
100
- COMPLETE: :complete
101
-
102
- def self?.values: -> ::Array[Increase::Models::Simulations::InboundFundsHoldReleaseResponse::status]
103
- end
104
-
105
- type type_ = :inbound_funds_hold
106
-
107
- module Type
108
- extend Increase::Internal::Type::Enum
109
-
110
- INBOUND_FUNDS_HOLD: :inbound_funds_hold
111
-
112
- def self?.values: -> ::Array[Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_]
113
- end
114
- end
115
- end
116
- end
117
- end