increase 1.50.0 → 1.52.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card_payment.rb +22 -1
- data/lib/increase/models/simulations/{inbound_funds_hold_release_params.rb → pending_transaction_release_inbound_funds_hold_params.rb} +2 -2
- data/lib/increase/models/transaction.rb +22 -1
- data/lib/increase/resources/simulations/pending_transactions.rb +44 -0
- data/lib/increase/resources/simulations.rb +3 -3
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -3
- data/rbi/increase/models/card_payment.rbi +45 -0
- data/rbi/increase/models/simulations/{inbound_funds_hold_release_params.rbi → pending_transaction_release_inbound_funds_hold_params.rbi} +2 -2
- data/rbi/increase/models/transaction.rbi +45 -0
- data/rbi/increase/resources/simulations/{inbound_funds_holds.rbi → pending_transactions.rbi} +8 -9
- data/rbi/increase/resources/simulations.rbi +2 -2
- data/sig/increase/models/card_payment.rbs +16 -0
- data/sig/increase/models/simulations/{inbound_funds_hold_release_params.rbs → pending_transaction_release_inbound_funds_hold_params.rbs} +2 -2
- data/sig/increase/models/transaction.rbs +16 -0
- data/sig/increase/resources/simulations/{inbound_funds_holds.rbs → pending_transactions.rbs} +4 -4
- data/sig/increase/resources/simulations.rbs +1 -1
- metadata +7 -10
- data/lib/increase/models/simulations/inbound_funds_hold_release_response.rb +0 -161
- data/lib/increase/resources/simulations/inbound_funds_holds.rb +0 -37
- data/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi +0 -280
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550d7b8e8d5187b1b4114f6d660f1ed237d0bc61894e590b72ece057cdf51cf6
|
4
|
+
data.tar.gz: 6e277feb0f1cffd99c8fd9de135a364188f4148acd7f34ddf689d71bb38a03e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a449e675c43b935523fbc545cd319e67219cc6404417a7be40641faab863c5c7e66f5279b5e645dcf70ba14cd69f729dd2e84d965d4cdb34660fe8446c199b7f
|
7
|
+
data.tar.gz: f591c3cabd504e5d16ec7f11a35f2899b755e47f58db9382dffc1b608012b9e28f0f2c5a5e6be772bf5f5e1d8ab889c5f1ec2e5aefb0f76151f699e64f005ebe
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.52.0 (2025-08-26)
|
4
|
+
|
5
|
+
Full Changelog: [v1.51.0...v1.52.0](https://github.com/Increase/increase-ruby/compare/v1.51.0...v1.52.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([d7242c9](https://github.com/Increase/increase-ruby/commit/d7242c9324279e98e91c12da50e85a330e83c149))
|
10
|
+
|
11
|
+
## 1.51.0 (2025-08-26)
|
12
|
+
|
13
|
+
Full Changelog: [v1.50.0...v1.51.0](https://github.com/Increase/increase-ruby/compare/v1.50.0...v1.51.0)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **api:** api update ([fe80d84](https://github.com/Increase/increase-ruby/commit/fe80d84ae9ab5a11bd2e4cabd44f7cdb79af8e50))
|
18
|
+
|
3
19
|
## 1.50.0 (2025-08-26)
|
4
20
|
|
5
21
|
Full Changelog: [v1.49.0...v1.50.0](https://github.com/Increase/increase-ruby/compare/v1.49.0...v1.50.0)
|
data/README.md
CHANGED
@@ -5577,6 +5577,12 @@ module Increase
|
|
5577
5577
|
# @return [String, nil]
|
5578
5578
|
required :merchant_state, String, nil?: true
|
5579
5579
|
|
5580
|
+
# @!attribute network
|
5581
|
+
# The card network on which this transaction was processed.
|
5582
|
+
#
|
5583
|
+
# @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Network]
|
5584
|
+
required :network, enum: -> { Increase::CardPayment::Element::CardSettlement::Network }
|
5585
|
+
|
5580
5586
|
# @!attribute network_identifiers
|
5581
5587
|
# Network-specific identifiers for this refund.
|
5582
5588
|
#
|
@@ -5624,7 +5630,7 @@ module Increase
|
|
5624
5630
|
# @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Type]
|
5625
5631
|
required :type, enum: -> { Increase::CardPayment::Element::CardSettlement::Type }
|
5626
5632
|
|
5627
|
-
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
|
5633
|
+
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
|
5628
5634
|
# Some parameter documentations has been truncated, see
|
5629
5635
|
# {Increase::Models::CardPayment::Element::CardSettlement} for more details.
|
5630
5636
|
#
|
@@ -5662,6 +5668,8 @@ module Increase
|
|
5662
5668
|
#
|
5663
5669
|
# @param merchant_state [String, nil] The state the merchant resides in.
|
5664
5670
|
#
|
5671
|
+
# @param network [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Network] The card network on which this transaction was processed.
|
5672
|
+
#
|
5665
5673
|
# @param network_identifiers [Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers] Network-specific identifiers for this refund.
|
5666
5674
|
#
|
5667
5675
|
# @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Transaction.
|
@@ -5829,6 +5837,19 @@ module Increase
|
|
5829
5837
|
end
|
5830
5838
|
end
|
5831
5839
|
|
5840
|
+
# The card network on which this transaction was processed.
|
5841
|
+
#
|
5842
|
+
# @see Increase::Models::CardPayment::Element::CardSettlement#network
|
5843
|
+
module Network
|
5844
|
+
extend Increase::Internal::Type::Enum
|
5845
|
+
|
5846
|
+
# Visa
|
5847
|
+
VISA = :visa
|
5848
|
+
|
5849
|
+
# @!method self.values
|
5850
|
+
# @return [Array<Symbol>]
|
5851
|
+
end
|
5852
|
+
|
5832
5853
|
# @see Increase::Models::CardPayment::Element::CardSettlement#network_identifiers
|
5833
5854
|
class NetworkIdentifiers < Increase::Internal::Type::BaseModel
|
5834
5855
|
# @!attribute acquirer_business_id
|
@@ -3,8 +3,8 @@
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
5
|
module Simulations
|
6
|
-
# @see Increase::Resources::Simulations::
|
7
|
-
class
|
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
|
|
@@ -2772,6 +2772,12 @@ module Increase
|
|
2772
2772
|
# @return [String, nil]
|
2773
2773
|
required :merchant_state, String, nil?: true
|
2774
2774
|
|
2775
|
+
# @!attribute network
|
2776
|
+
# The card network on which this transaction was processed.
|
2777
|
+
#
|
2778
|
+
# @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Network]
|
2779
|
+
required :network, enum: -> { Increase::Transaction::Source::CardSettlement::Network }
|
2780
|
+
|
2775
2781
|
# @!attribute network_identifiers
|
2776
2782
|
# Network-specific identifiers for this refund.
|
2777
2783
|
#
|
@@ -2819,7 +2825,7 @@ module Increase
|
|
2819
2825
|
# @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Type]
|
2820
2826
|
required :type, enum: -> { Increase::Transaction::Source::CardSettlement::Type }
|
2821
2827
|
|
2822
|
-
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
|
2828
|
+
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
|
2823
2829
|
# Some parameter documentations has been truncated, see
|
2824
2830
|
# {Increase::Models::Transaction::Source::CardSettlement} for more details.
|
2825
2831
|
#
|
@@ -2857,6 +2863,8 @@ module Increase
|
|
2857
2863
|
#
|
2858
2864
|
# @param merchant_state [String, nil] The state the merchant resides in.
|
2859
2865
|
#
|
2866
|
+
# @param network [Symbol, Increase::Models::Transaction::Source::CardSettlement::Network] The card network on which this transaction was processed.
|
2867
|
+
#
|
2860
2868
|
# @param network_identifiers [Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers] Network-specific identifiers for this refund.
|
2861
2869
|
#
|
2862
2870
|
# @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Transaction.
|
@@ -3024,6 +3032,19 @@ module Increase
|
|
3024
3032
|
end
|
3025
3033
|
end
|
3026
3034
|
|
3035
|
+
# The card network on which this transaction was processed.
|
3036
|
+
#
|
3037
|
+
# @see Increase::Models::Transaction::Source::CardSettlement#network
|
3038
|
+
module Network
|
3039
|
+
extend Increase::Internal::Type::Enum
|
3040
|
+
|
3041
|
+
# Visa
|
3042
|
+
VISA = :visa
|
3043
|
+
|
3044
|
+
# @!method self.values
|
3045
|
+
# @return [Array<Symbol>]
|
3046
|
+
end
|
3047
|
+
|
3027
3048
|
# @see Increase::Models::Transaction::Source::CardSettlement#network_identifiers
|
3028
3049
|
class NetworkIdentifiers < Increase::Internal::Type::BaseModel
|
3029
3050
|
# @!attribute acquirer_business_id
|
@@ -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::
|
40
|
-
attr_reader :
|
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
|
-
@
|
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)
|
data/lib/increase/version.rb
CHANGED
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"
|
@@ -10289,6 +10289,14 @@ module Increase
|
|
10289
10289
|
sig { returns(T.nilable(String)) }
|
10290
10290
|
attr_accessor :merchant_state
|
10291
10291
|
|
10292
|
+
# The card network on which this transaction was processed.
|
10293
|
+
sig do
|
10294
|
+
returns(
|
10295
|
+
Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol
|
10296
|
+
)
|
10297
|
+
end
|
10298
|
+
attr_accessor :network
|
10299
|
+
|
10292
10300
|
# Network-specific identifiers for this refund.
|
10293
10301
|
sig do
|
10294
10302
|
returns(
|
@@ -10380,6 +10388,8 @@ module Increase
|
|
10380
10388
|
merchant_name: String,
|
10381
10389
|
merchant_postal_code: T.nilable(String),
|
10382
10390
|
merchant_state: T.nilable(String),
|
10391
|
+
network:
|
10392
|
+
Increase::CardPayment::Element::CardSettlement::Network::OrSymbol,
|
10383
10393
|
network_identifiers:
|
10384
10394
|
Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers::OrHash,
|
10385
10395
|
pending_transaction_id: T.nilable(String),
|
@@ -10428,6 +10438,8 @@ module Increase
|
|
10428
10438
|
merchant_postal_code:,
|
10429
10439
|
# The state the merchant resides in.
|
10430
10440
|
merchant_state:,
|
10441
|
+
# The card network on which this transaction was processed.
|
10442
|
+
network:,
|
10431
10443
|
# Network-specific identifiers for this refund.
|
10432
10444
|
network_identifiers:,
|
10433
10445
|
# The identifier of the Pending Transaction associated with this Transaction.
|
@@ -10472,6 +10484,8 @@ module Increase
|
|
10472
10484
|
merchant_name: String,
|
10473
10485
|
merchant_postal_code: T.nilable(String),
|
10474
10486
|
merchant_state: T.nilable(String),
|
10487
|
+
network:
|
10488
|
+
Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol,
|
10475
10489
|
network_identifiers:
|
10476
10490
|
Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers,
|
10477
10491
|
pending_transaction_id: T.nilable(String),
|
@@ -10811,6 +10825,37 @@ module Increase
|
|
10811
10825
|
end
|
10812
10826
|
end
|
10813
10827
|
|
10828
|
+
# The card network on which this transaction was processed.
|
10829
|
+
module Network
|
10830
|
+
extend Increase::Internal::Type::Enum
|
10831
|
+
|
10832
|
+
TaggedSymbol =
|
10833
|
+
T.type_alias do
|
10834
|
+
T.all(
|
10835
|
+
Symbol,
|
10836
|
+
Increase::CardPayment::Element::CardSettlement::Network
|
10837
|
+
)
|
10838
|
+
end
|
10839
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
10840
|
+
|
10841
|
+
# Visa
|
10842
|
+
VISA =
|
10843
|
+
T.let(
|
10844
|
+
:visa,
|
10845
|
+
Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol
|
10846
|
+
)
|
10847
|
+
|
10848
|
+
sig do
|
10849
|
+
override.returns(
|
10850
|
+
T::Array[
|
10851
|
+
Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol
|
10852
|
+
]
|
10853
|
+
)
|
10854
|
+
end
|
10855
|
+
def self.values
|
10856
|
+
end
|
10857
|
+
end
|
10858
|
+
|
10814
10859
|
class NetworkIdentifiers < Increase::Internal::Type::BaseModel
|
10815
10860
|
OrHash =
|
10816
10861
|
T.type_alias do
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
5
|
module Simulations
|
6
|
-
class
|
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::
|
13
|
+
Increase::Simulations::PendingTransactionReleaseInboundFundsHoldParams,
|
14
14
|
Increase::Internal::AnyHash
|
15
15
|
)
|
16
16
|
end
|
@@ -5165,6 +5165,14 @@ module Increase
|
|
5165
5165
|
sig { returns(T.nilable(String)) }
|
5166
5166
|
attr_accessor :merchant_state
|
5167
5167
|
|
5168
|
+
# The card network on which this transaction was processed.
|
5169
|
+
sig do
|
5170
|
+
returns(
|
5171
|
+
Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol
|
5172
|
+
)
|
5173
|
+
end
|
5174
|
+
attr_accessor :network
|
5175
|
+
|
5168
5176
|
# Network-specific identifiers for this refund.
|
5169
5177
|
sig do
|
5170
5178
|
returns(
|
@@ -5256,6 +5264,8 @@ module Increase
|
|
5256
5264
|
merchant_name: String,
|
5257
5265
|
merchant_postal_code: T.nilable(String),
|
5258
5266
|
merchant_state: T.nilable(String),
|
5267
|
+
network:
|
5268
|
+
Increase::Transaction::Source::CardSettlement::Network::OrSymbol,
|
5259
5269
|
network_identifiers:
|
5260
5270
|
Increase::Transaction::Source::CardSettlement::NetworkIdentifiers::OrHash,
|
5261
5271
|
pending_transaction_id: T.nilable(String),
|
@@ -5304,6 +5314,8 @@ module Increase
|
|
5304
5314
|
merchant_postal_code:,
|
5305
5315
|
# The state the merchant resides in.
|
5306
5316
|
merchant_state:,
|
5317
|
+
# The card network on which this transaction was processed.
|
5318
|
+
network:,
|
5307
5319
|
# Network-specific identifiers for this refund.
|
5308
5320
|
network_identifiers:,
|
5309
5321
|
# The identifier of the Pending Transaction associated with this Transaction.
|
@@ -5348,6 +5360,8 @@ module Increase
|
|
5348
5360
|
merchant_name: String,
|
5349
5361
|
merchant_postal_code: T.nilable(String),
|
5350
5362
|
merchant_state: T.nilable(String),
|
5363
|
+
network:
|
5364
|
+
Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol,
|
5351
5365
|
network_identifiers:
|
5352
5366
|
Increase::Transaction::Source::CardSettlement::NetworkIdentifiers,
|
5353
5367
|
pending_transaction_id: T.nilable(String),
|
@@ -5687,6 +5701,37 @@ module Increase
|
|
5687
5701
|
end
|
5688
5702
|
end
|
5689
5703
|
|
5704
|
+
# The card network on which this transaction was processed.
|
5705
|
+
module Network
|
5706
|
+
extend Increase::Internal::Type::Enum
|
5707
|
+
|
5708
|
+
TaggedSymbol =
|
5709
|
+
T.type_alias do
|
5710
|
+
T.all(
|
5711
|
+
Symbol,
|
5712
|
+
Increase::Transaction::Source::CardSettlement::Network
|
5713
|
+
)
|
5714
|
+
end
|
5715
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5716
|
+
|
5717
|
+
# Visa
|
5718
|
+
VISA =
|
5719
|
+
T.let(
|
5720
|
+
:visa,
|
5721
|
+
Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol
|
5722
|
+
)
|
5723
|
+
|
5724
|
+
sig do
|
5725
|
+
override.returns(
|
5726
|
+
T::Array[
|
5727
|
+
Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol
|
5728
|
+
]
|
5729
|
+
)
|
5730
|
+
end
|
5731
|
+
def self.values
|
5732
|
+
end
|
5733
|
+
end
|
5734
|
+
|
5690
5735
|
class NetworkIdentifiers < Increase::Internal::Type::BaseModel
|
5691
5736
|
OrHash =
|
5692
5737
|
T.type_alias do
|
data/rbi/increase/resources/simulations/{inbound_funds_holds.rbi → pending_transactions.rbi}
RENAMED
@@ -3,20 +3,19 @@
|
|
3
3
|
module Increase
|
4
4
|
module Resources
|
5
5
|
class Simulations
|
6
|
-
class
|
6
|
+
class PendingTransactions
|
7
7
|
# This endpoint simulates immediately releasing an Inbound Funds Hold, which might
|
8
|
-
# be created as a result of
|
8
|
+
# be created as a result of, for example, an ACH debit.
|
9
9
|
sig do
|
10
10
|
params(
|
11
|
-
|
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
|
18
|
-
# The
|
19
|
-
|
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::
|
44
|
-
attr_reader :
|
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
|
@@ -3894,6 +3894,7 @@ module Increase
|
|
3894
3894
|
merchant_name: String,
|
3895
3895
|
merchant_postal_code: String?,
|
3896
3896
|
merchant_state: String?,
|
3897
|
+
network: Increase::Models::CardPayment::Element::CardSettlement::network,
|
3897
3898
|
network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers,
|
3898
3899
|
pending_transaction_id: String?,
|
3899
3900
|
presentment_amount: Integer,
|
@@ -3932,6 +3933,8 @@ module Increase
|
|
3932
3933
|
|
3933
3934
|
attr_accessor merchant_state: String?
|
3934
3935
|
|
3936
|
+
attr_accessor network: Increase::Models::CardPayment::Element::CardSettlement::network
|
3937
|
+
|
3935
3938
|
attr_accessor network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers
|
3936
3939
|
|
3937
3940
|
attr_accessor pending_transaction_id: String?
|
@@ -3961,6 +3964,7 @@ module Increase
|
|
3961
3964
|
merchant_name: String,
|
3962
3965
|
merchant_postal_code: String?,
|
3963
3966
|
merchant_state: String?,
|
3967
|
+
network: Increase::Models::CardPayment::Element::CardSettlement::network,
|
3964
3968
|
network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers,
|
3965
3969
|
pending_transaction_id: String?,
|
3966
3970
|
presentment_amount: Integer,
|
@@ -3985,6 +3989,7 @@ module Increase
|
|
3985
3989
|
merchant_name: String,
|
3986
3990
|
merchant_postal_code: String?,
|
3987
3991
|
merchant_state: String?,
|
3992
|
+
network: Increase::Models::CardPayment::Element::CardSettlement::network,
|
3988
3993
|
network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers,
|
3989
3994
|
pending_transaction_id: String?,
|
3990
3995
|
presentment_amount: Integer,
|
@@ -4121,6 +4126,17 @@ module Increase
|
|
4121
4126
|
end
|
4122
4127
|
end
|
4123
4128
|
|
4129
|
+
type network = :visa
|
4130
|
+
|
4131
|
+
module Network
|
4132
|
+
extend Increase::Internal::Type::Enum
|
4133
|
+
|
4134
|
+
# Visa
|
4135
|
+
VISA: :visa
|
4136
|
+
|
4137
|
+
def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardSettlement::network]
|
4138
|
+
end
|
4139
|
+
|
4124
4140
|
type network_identifiers =
|
4125
4141
|
{
|
4126
4142
|
acquirer_business_id: String,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
3
|
module Simulations
|
4
|
-
type
|
4
|
+
type pending_transaction_release_inbound_funds_hold_params =
|
5
5
|
{ } & Increase::Internal::Type::request_parameters
|
6
6
|
|
7
|
-
class
|
7
|
+
class PendingTransactionReleaseInboundFundsHoldParams < Increase::Internal::Type::BaseModel
|
8
8
|
extend Increase::Internal::Type::RequestParameters::Converter
|
9
9
|
include Increase::Internal::Type::RequestParameters
|
10
10
|
|
@@ -1999,6 +1999,7 @@ module Increase
|
|
1999
1999
|
merchant_name: String,
|
2000
2000
|
merchant_postal_code: String?,
|
2001
2001
|
merchant_state: String?,
|
2002
|
+
network: Increase::Models::Transaction::Source::CardSettlement::network,
|
2002
2003
|
network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers,
|
2003
2004
|
pending_transaction_id: String?,
|
2004
2005
|
presentment_amount: Integer,
|
@@ -2037,6 +2038,8 @@ module Increase
|
|
2037
2038
|
|
2038
2039
|
attr_accessor merchant_state: String?
|
2039
2040
|
|
2041
|
+
attr_accessor network: Increase::Models::Transaction::Source::CardSettlement::network
|
2042
|
+
|
2040
2043
|
attr_accessor network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers
|
2041
2044
|
|
2042
2045
|
attr_accessor pending_transaction_id: String?
|
@@ -2066,6 +2069,7 @@ module Increase
|
|
2066
2069
|
merchant_name: String,
|
2067
2070
|
merchant_postal_code: String?,
|
2068
2071
|
merchant_state: String?,
|
2072
|
+
network: Increase::Models::Transaction::Source::CardSettlement::network,
|
2069
2073
|
network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers,
|
2070
2074
|
pending_transaction_id: String?,
|
2071
2075
|
presentment_amount: Integer,
|
@@ -2090,6 +2094,7 @@ module Increase
|
|
2090
2094
|
merchant_name: String,
|
2091
2095
|
merchant_postal_code: String?,
|
2092
2096
|
merchant_state: String?,
|
2097
|
+
network: Increase::Models::Transaction::Source::CardSettlement::network,
|
2093
2098
|
network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers,
|
2094
2099
|
pending_transaction_id: String?,
|
2095
2100
|
presentment_amount: Integer,
|
@@ -2226,6 +2231,17 @@ module Increase
|
|
2226
2231
|
end
|
2227
2232
|
end
|
2228
2233
|
|
2234
|
+
type network = :visa
|
2235
|
+
|
2236
|
+
module Network
|
2237
|
+
extend Increase::Internal::Type::Enum
|
2238
|
+
|
2239
|
+
# Visa
|
2240
|
+
VISA: :visa
|
2241
|
+
|
2242
|
+
def self?.values: -> ::Array[Increase::Models::Transaction::Source::CardSettlement::network]
|
2243
|
+
end
|
2244
|
+
|
2229
2245
|
type network_identifiers =
|
2230
2246
|
{
|
2231
2247
|
acquirer_business_id: String,
|
data/sig/increase/resources/simulations/{inbound_funds_holds.rbs → pending_transactions.rbs}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
module Increase
|
2
2
|
module Resources
|
3
3
|
class Simulations
|
4
|
-
class
|
5
|
-
def
|
6
|
-
String
|
4
|
+
class PendingTransactions
|
5
|
+
def release_inbound_funds_hold: (
|
6
|
+
String pending_transaction_id,
|
7
7
|
?request_options: Increase::request_opts
|
8
|
-
) -> Increase::
|
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
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: increase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Increase
|
@@ -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
|