increase 1.113.0 → 1.114.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +8 -0
- data/lib/increase/models/fednow_transfer.rb +516 -0
- data/lib/increase/models/fednow_transfer_approve_params.rb +14 -0
- data/lib/increase/models/fednow_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/fednow_transfer_create_params.rb +188 -0
- data/lib/increase/models/fednow_transfer_list_params.rb +170 -0
- data/lib/increase/models/fednow_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/inbound_fednow_transfer.rb +278 -0
- data/lib/increase/models/inbound_fednow_transfer_list_params.rb +100 -0
- data/lib/increase/models/inbound_fednow_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb +64 -0
- data/lib/increase/models.rb +18 -0
- data/lib/increase/resources/fednow_transfers.rb +159 -0
- data/lib/increase/resources/inbound_fednow_transfers.rb +68 -0
- data/lib/increase/resources/simulations/inbound_fednow_transfers.rb +49 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +13 -0
- data/rbi/increase/client.rbi +6 -0
- data/rbi/increase/models/fednow_transfer.rbi +877 -0
- data/rbi/increase/models/fednow_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/fednow_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/fednow_transfer_create_params.rbi +289 -0
- data/rbi/increase/models/fednow_transfer_list_params.rbi +334 -0
- data/rbi/increase/models/fednow_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/inbound_fednow_transfer.rbi +444 -0
- data/rbi/increase/models/inbound_fednow_transfer_list_params.rbi +177 -0
- data/rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi +100 -0
- data/rbi/increase/models.rbi +20 -0
- data/rbi/increase/resources/fednow_transfers.rbi +138 -0
- data/rbi/increase/resources/inbound_fednow_transfers.rbi +54 -0
- data/rbi/increase/resources/simulations/inbound_fednow_transfers.rbi +44 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -0
- data/sig/increase/models/fednow_transfer.rbs +404 -0
- data/sig/increase/models/fednow_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/fednow_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/fednow_transfer_create_params.rbs +155 -0
- data/sig/increase/models/fednow_transfer_list_params.rbs +174 -0
- data/sig/increase/models/fednow_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/inbound_fednow_transfer.rbs +223 -0
- data/sig/increase/models/inbound_fednow_transfer_list_params.rbs +93 -0
- data/sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs +61 -0
- data/sig/increase/models.rbs +18 -0
- data/sig/increase/resources/fednow_transfers.rbs +49 -0
- data/sig/increase/resources/inbound_fednow_transfers.rbs +21 -0
- data/sig/increase/resources/simulations/inbound_fednow_transfers.rbs +19 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +41 -2
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::InboundFednowTransfers#list
|
|
6
|
+
class InboundFednowTransferListParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_id
|
|
11
|
+
# Filter Inbound FedNow Transfers to those belonging to the specified Account.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :account_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute account_number_id
|
|
17
|
+
# Filter Inbound FedNow Transfers to ones belonging to the specified Account
|
|
18
|
+
# Number.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :account_number_id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute created_at
|
|
24
|
+
#
|
|
25
|
+
# @return [Increase::Models::InboundFednowTransferListParams::CreatedAt, nil]
|
|
26
|
+
optional :created_at, -> { Increase::InboundFednowTransferListParams::CreatedAt }
|
|
27
|
+
|
|
28
|
+
# @!attribute cursor
|
|
29
|
+
# Return the page of entries after this one.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :cursor, String
|
|
33
|
+
|
|
34
|
+
# @!attribute limit
|
|
35
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
36
|
+
# objects.
|
|
37
|
+
#
|
|
38
|
+
# @return [Integer, nil]
|
|
39
|
+
optional :limit, Integer
|
|
40
|
+
|
|
41
|
+
# @!method initialize(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {})
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {Increase::Models::InboundFednowTransferListParams} for more details.
|
|
44
|
+
#
|
|
45
|
+
# @param account_id [String] Filter Inbound FedNow Transfers to those belonging to the specified Account.
|
|
46
|
+
#
|
|
47
|
+
# @param account_number_id [String] Filter Inbound FedNow Transfers to ones belonging to the specified Account Numbe
|
|
48
|
+
#
|
|
49
|
+
# @param created_at [Increase::Models::InboundFednowTransferListParams::CreatedAt]
|
|
50
|
+
#
|
|
51
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
52
|
+
#
|
|
53
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
54
|
+
#
|
|
55
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
56
|
+
|
|
57
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
58
|
+
# @!attribute after
|
|
59
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
60
|
+
# timestamp.
|
|
61
|
+
#
|
|
62
|
+
# @return [Time, nil]
|
|
63
|
+
optional :after, Time
|
|
64
|
+
|
|
65
|
+
# @!attribute before
|
|
66
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
67
|
+
# timestamp.
|
|
68
|
+
#
|
|
69
|
+
# @return [Time, nil]
|
|
70
|
+
optional :before, Time
|
|
71
|
+
|
|
72
|
+
# @!attribute on_or_after
|
|
73
|
+
# Return results on or after this
|
|
74
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
75
|
+
#
|
|
76
|
+
# @return [Time, nil]
|
|
77
|
+
optional :on_or_after, Time
|
|
78
|
+
|
|
79
|
+
# @!attribute on_or_before
|
|
80
|
+
# Return results on or before this
|
|
81
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
82
|
+
#
|
|
83
|
+
# @return [Time, nil]
|
|
84
|
+
optional :on_or_before, Time
|
|
85
|
+
|
|
86
|
+
# @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
|
|
87
|
+
# Some parameter documentations has been truncated, see
|
|
88
|
+
# {Increase::Models::InboundFednowTransferListParams::CreatedAt} for more details.
|
|
89
|
+
#
|
|
90
|
+
# @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
|
|
91
|
+
#
|
|
92
|
+
# @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
|
|
93
|
+
#
|
|
94
|
+
# @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
|
|
95
|
+
#
|
|
96
|
+
# @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::InboundFednowTransfers#retrieve
|
|
6
|
+
class InboundFednowTransferRetrieveParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
# @see Increase::Resources::Simulations::InboundFednowTransfers#create
|
|
7
|
+
class InboundFednowTransferCreateParams < Increase::Internal::Type::BaseModel
|
|
8
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Increase::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute account_number_id
|
|
12
|
+
# The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :account_number_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute amount
|
|
18
|
+
# The transfer amount in USD cents. Must be positive.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :amount, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute debtor_account_number
|
|
24
|
+
# The account number of the account that sent the transfer.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :debtor_account_number, String
|
|
28
|
+
|
|
29
|
+
# @!attribute debtor_name
|
|
30
|
+
# The name provided by the sender of the transfer.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :debtor_name, String
|
|
34
|
+
|
|
35
|
+
# @!attribute debtor_routing_number
|
|
36
|
+
# The routing number of the account that sent the transfer.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :debtor_routing_number, String
|
|
40
|
+
|
|
41
|
+
# @!attribute unstructured_remittance_information
|
|
42
|
+
# Additional information included with the transfer.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :unstructured_remittance_information, String
|
|
46
|
+
|
|
47
|
+
# @!method initialize(account_number_id:, amount:, debtor_account_number: nil, debtor_name: nil, debtor_routing_number: nil, unstructured_remittance_information: nil, request_options: {})
|
|
48
|
+
# @param account_number_id [String] The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
49
|
+
#
|
|
50
|
+
# @param amount [Integer] The transfer amount in USD cents. Must be positive.
|
|
51
|
+
#
|
|
52
|
+
# @param debtor_account_number [String] The account number of the account that sent the transfer.
|
|
53
|
+
#
|
|
54
|
+
# @param debtor_name [String] The name provided by the sender of the transfer.
|
|
55
|
+
#
|
|
56
|
+
# @param debtor_routing_number [String] The routing number of the account that sent the transfer.
|
|
57
|
+
#
|
|
58
|
+
# @param unstructured_remittance_information [String] Additional information included with the transfer.
|
|
59
|
+
#
|
|
60
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
data/lib/increase/models.rb
CHANGED
|
@@ -317,6 +317,18 @@ module Increase
|
|
|
317
317
|
|
|
318
318
|
ExternalAccountUpdateParams = Increase::Models::ExternalAccountUpdateParams
|
|
319
319
|
|
|
320
|
+
FednowTransfer = Increase::Models::FednowTransfer
|
|
321
|
+
|
|
322
|
+
FednowTransferApproveParams = Increase::Models::FednowTransferApproveParams
|
|
323
|
+
|
|
324
|
+
FednowTransferCancelParams = Increase::Models::FednowTransferCancelParams
|
|
325
|
+
|
|
326
|
+
FednowTransferCreateParams = Increase::Models::FednowTransferCreateParams
|
|
327
|
+
|
|
328
|
+
FednowTransferListParams = Increase::Models::FednowTransferListParams
|
|
329
|
+
|
|
330
|
+
FednowTransferRetrieveParams = Increase::Models::FednowTransferRetrieveParams
|
|
331
|
+
|
|
320
332
|
File = Increase::Models::File
|
|
321
333
|
|
|
322
334
|
FileCreateParams = Increase::Models::FileCreateParams
|
|
@@ -356,6 +368,12 @@ module Increase
|
|
|
356
368
|
|
|
357
369
|
InboundCheckDepositReturnParams = Increase::Models::InboundCheckDepositReturnParams
|
|
358
370
|
|
|
371
|
+
InboundFednowTransfer = Increase::Models::InboundFednowTransfer
|
|
372
|
+
|
|
373
|
+
InboundFednowTransferListParams = Increase::Models::InboundFednowTransferListParams
|
|
374
|
+
|
|
375
|
+
InboundFednowTransferRetrieveParams = Increase::Models::InboundFednowTransferRetrieveParams
|
|
376
|
+
|
|
359
377
|
InboundMailItem = Increase::Models::InboundMailItem
|
|
360
378
|
|
|
361
379
|
InboundMailItemListParams = Increase::Models::InboundMailItemListParams
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class FednowTransfers
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Increase::Models::FednowTransferCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Create a FedNow Transfer
|
|
10
|
+
#
|
|
11
|
+
# @overload create(account_id:, amount:, creditor_name:, debtor_name:, source_account_number_id:, unstructured_remittance_information:, account_number: nil, creditor_address: nil, debtor_address: nil, external_account_id: nil, require_approval: nil, routing_number: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param account_id [String] The identifier for the account that will send the transfer.
|
|
14
|
+
#
|
|
15
|
+
# @param amount [Integer] The amount, in minor units, to send to the creditor.
|
|
16
|
+
#
|
|
17
|
+
# @param creditor_name [String] The creditor's name.
|
|
18
|
+
#
|
|
19
|
+
# @param debtor_name [String] The debtor's name.
|
|
20
|
+
#
|
|
21
|
+
# @param source_account_number_id [String] The Account Number to include in the transfer as the debtor's account number.
|
|
22
|
+
#
|
|
23
|
+
# @param unstructured_remittance_information [String] Unstructured remittance information to include in the transfer.
|
|
24
|
+
#
|
|
25
|
+
# @param account_number [String] The creditor's account number.
|
|
26
|
+
#
|
|
27
|
+
# @param creditor_address [Increase::Models::FednowTransferCreateParams::CreditorAddress] The creditor's address.
|
|
28
|
+
#
|
|
29
|
+
# @param debtor_address [Increase::Models::FednowTransferCreateParams::DebtorAddress] The debtor's address.
|
|
30
|
+
#
|
|
31
|
+
# @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr
|
|
32
|
+
#
|
|
33
|
+
# @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
|
|
34
|
+
#
|
|
35
|
+
# @param routing_number [String] The creditor's bank account routing number.
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
|
+
#
|
|
39
|
+
# @return [Increase::Models::FednowTransfer]
|
|
40
|
+
#
|
|
41
|
+
# @see Increase::Models::FednowTransferCreateParams
|
|
42
|
+
def create(params)
|
|
43
|
+
parsed, options = Increase::FednowTransferCreateParams.dump_request(params)
|
|
44
|
+
@client.request(
|
|
45
|
+
method: :post,
|
|
46
|
+
path: "fednow_transfers",
|
|
47
|
+
body: parsed,
|
|
48
|
+
model: Increase::FednowTransfer,
|
|
49
|
+
options: options
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Retrieve a FedNow Transfer
|
|
54
|
+
#
|
|
55
|
+
# @overload retrieve(fednow_transfer_id, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param fednow_transfer_id [String] The identifier of the FedNow Transfer.
|
|
58
|
+
#
|
|
59
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
60
|
+
#
|
|
61
|
+
# @return [Increase::Models::FednowTransfer]
|
|
62
|
+
#
|
|
63
|
+
# @see Increase::Models::FednowTransferRetrieveParams
|
|
64
|
+
def retrieve(fednow_transfer_id, params = {})
|
|
65
|
+
@client.request(
|
|
66
|
+
method: :get,
|
|
67
|
+
path: ["fednow_transfers/%1$s", fednow_transfer_id],
|
|
68
|
+
model: Increase::FednowTransfer,
|
|
69
|
+
options: params[:request_options]
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Some parameter documentations has been truncated, see
|
|
74
|
+
# {Increase::Models::FednowTransferListParams} for more details.
|
|
75
|
+
#
|
|
76
|
+
# List FedNow Transfers
|
|
77
|
+
#
|
|
78
|
+
# @overload list(account_id: nil, created_at: nil, cursor: nil, external_account_id: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
|
79
|
+
#
|
|
80
|
+
# @param account_id [String] Filter FedNow Transfers to those that originated from the specified Account.
|
|
81
|
+
#
|
|
82
|
+
# @param created_at [Increase::Models::FednowTransferListParams::CreatedAt]
|
|
83
|
+
#
|
|
84
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
85
|
+
#
|
|
86
|
+
# @param external_account_id [String] Filter FedNow Transfers to those made to the specified External Account.
|
|
87
|
+
#
|
|
88
|
+
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
89
|
+
#
|
|
90
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
91
|
+
#
|
|
92
|
+
# @param status [Increase::Models::FednowTransferListParams::Status]
|
|
93
|
+
#
|
|
94
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
95
|
+
#
|
|
96
|
+
# @return [Increase::Internal::Page<Increase::Models::FednowTransfer>]
|
|
97
|
+
#
|
|
98
|
+
# @see Increase::Models::FednowTransferListParams
|
|
99
|
+
def list(params = {})
|
|
100
|
+
parsed, options = Increase::FednowTransferListParams.dump_request(params)
|
|
101
|
+
@client.request(
|
|
102
|
+
method: :get,
|
|
103
|
+
path: "fednow_transfers",
|
|
104
|
+
query: parsed,
|
|
105
|
+
page: Increase::Internal::Page,
|
|
106
|
+
model: Increase::FednowTransfer,
|
|
107
|
+
options: options
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Approve a FedNow Transfer
|
|
112
|
+
#
|
|
113
|
+
# @overload approve(fednow_transfer_id, request_options: {})
|
|
114
|
+
#
|
|
115
|
+
# @param fednow_transfer_id [String] The identifier of the FedNow Transfer to approve.
|
|
116
|
+
#
|
|
117
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
118
|
+
#
|
|
119
|
+
# @return [Increase::Models::FednowTransfer]
|
|
120
|
+
#
|
|
121
|
+
# @see Increase::Models::FednowTransferApproveParams
|
|
122
|
+
def approve(fednow_transfer_id, params = {})
|
|
123
|
+
@client.request(
|
|
124
|
+
method: :post,
|
|
125
|
+
path: ["fednow_transfers/%1$s/approve", fednow_transfer_id],
|
|
126
|
+
model: Increase::FednowTransfer,
|
|
127
|
+
options: params[:request_options]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Cancel a pending FedNow Transfer
|
|
132
|
+
#
|
|
133
|
+
# @overload cancel(fednow_transfer_id, request_options: {})
|
|
134
|
+
#
|
|
135
|
+
# @param fednow_transfer_id [String] The identifier of the pending FedNow Transfer to cancel.
|
|
136
|
+
#
|
|
137
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
138
|
+
#
|
|
139
|
+
# @return [Increase::Models::FednowTransfer]
|
|
140
|
+
#
|
|
141
|
+
# @see Increase::Models::FednowTransferCancelParams
|
|
142
|
+
def cancel(fednow_transfer_id, params = {})
|
|
143
|
+
@client.request(
|
|
144
|
+
method: :post,
|
|
145
|
+
path: ["fednow_transfers/%1$s/cancel", fednow_transfer_id],
|
|
146
|
+
model: Increase::FednowTransfer,
|
|
147
|
+
options: params[:request_options]
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @api private
|
|
152
|
+
#
|
|
153
|
+
# @param client [Increase::Client]
|
|
154
|
+
def initialize(client:)
|
|
155
|
+
@client = client
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class InboundFednowTransfers
|
|
6
|
+
# Retrieve an Inbound FedNow Transfer
|
|
7
|
+
#
|
|
8
|
+
# @overload retrieve(inbound_fednow_transfer_id, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param inbound_fednow_transfer_id [String] The identifier of the Inbound FedNow Transfer to get details for.
|
|
11
|
+
#
|
|
12
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
+
#
|
|
14
|
+
# @return [Increase::Models::InboundFednowTransfer]
|
|
15
|
+
#
|
|
16
|
+
# @see Increase::Models::InboundFednowTransferRetrieveParams
|
|
17
|
+
def retrieve(inbound_fednow_transfer_id, params = {})
|
|
18
|
+
@client.request(
|
|
19
|
+
method: :get,
|
|
20
|
+
path: ["inbound_fednow_transfers/%1$s", inbound_fednow_transfer_id],
|
|
21
|
+
model: Increase::InboundFednowTransfer,
|
|
22
|
+
options: params[:request_options]
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Increase::Models::InboundFednowTransferListParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# List Inbound FedNow Transfers
|
|
30
|
+
#
|
|
31
|
+
# @overload list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {})
|
|
32
|
+
#
|
|
33
|
+
# @param account_id [String] Filter Inbound FedNow Transfers to those belonging to the specified Account.
|
|
34
|
+
#
|
|
35
|
+
# @param account_number_id [String] Filter Inbound FedNow Transfers to ones belonging to the specified Account Numbe
|
|
36
|
+
#
|
|
37
|
+
# @param created_at [Increase::Models::InboundFednowTransferListParams::CreatedAt]
|
|
38
|
+
#
|
|
39
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
40
|
+
#
|
|
41
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
42
|
+
#
|
|
43
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
44
|
+
#
|
|
45
|
+
# @return [Increase::Internal::Page<Increase::Models::InboundFednowTransfer>]
|
|
46
|
+
#
|
|
47
|
+
# @see Increase::Models::InboundFednowTransferListParams
|
|
48
|
+
def list(params = {})
|
|
49
|
+
parsed, options = Increase::InboundFednowTransferListParams.dump_request(params)
|
|
50
|
+
@client.request(
|
|
51
|
+
method: :get,
|
|
52
|
+
path: "inbound_fednow_transfers",
|
|
53
|
+
query: parsed,
|
|
54
|
+
page: Increase::Internal::Page,
|
|
55
|
+
model: Increase::InboundFednowTransfer,
|
|
56
|
+
options: options
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# @api private
|
|
61
|
+
#
|
|
62
|
+
# @param client [Increase::Client]
|
|
63
|
+
def initialize(client:)
|
|
64
|
+
@client = client
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class InboundFednowTransfers
|
|
7
|
+
# Simulates an [Inbound FedNow Transfer](#inbound-fednow-transfers) to your
|
|
8
|
+
# account.
|
|
9
|
+
#
|
|
10
|
+
# @overload create(account_number_id:, amount:, debtor_account_number: nil, debtor_name: nil, debtor_routing_number: nil, unstructured_remittance_information: nil, request_options: {})
|
|
11
|
+
#
|
|
12
|
+
# @param account_number_id [String] The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
13
|
+
#
|
|
14
|
+
# @param amount [Integer] The transfer amount in USD cents. Must be positive.
|
|
15
|
+
#
|
|
16
|
+
# @param debtor_account_number [String] The account number of the account that sent the transfer.
|
|
17
|
+
#
|
|
18
|
+
# @param debtor_name [String] The name provided by the sender of the transfer.
|
|
19
|
+
#
|
|
20
|
+
# @param debtor_routing_number [String] The routing number of the account that sent the transfer.
|
|
21
|
+
#
|
|
22
|
+
# @param unstructured_remittance_information [String] Additional information included with the transfer.
|
|
23
|
+
#
|
|
24
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
|
+
#
|
|
26
|
+
# @return [Increase::Models::InboundFednowTransfer]
|
|
27
|
+
#
|
|
28
|
+
# @see Increase::Models::Simulations::InboundFednowTransferCreateParams
|
|
29
|
+
def create(params)
|
|
30
|
+
parsed, options = Increase::Simulations::InboundFednowTransferCreateParams.dump_request(params)
|
|
31
|
+
@client.request(
|
|
32
|
+
method: :post,
|
|
33
|
+
path: "simulations/inbound_fednow_transfers",
|
|
34
|
+
body: parsed,
|
|
35
|
+
model: Increase::InboundFednowTransfer,
|
|
36
|
+
options: options
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# @api private
|
|
41
|
+
#
|
|
42
|
+
# @param client [Increase::Client]
|
|
43
|
+
def initialize(client:)
|
|
44
|
+
@client = client
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -72,6 +72,9 @@ module Increase
|
|
|
72
72
|
# @return [Increase::Resources::Simulations::InboundRealTimePaymentsTransfers]
|
|
73
73
|
attr_reader :inbound_real_time_payments_transfers
|
|
74
74
|
|
|
75
|
+
# @return [Increase::Resources::Simulations::InboundFednowTransfers]
|
|
76
|
+
attr_reader :inbound_fednow_transfers
|
|
77
|
+
|
|
75
78
|
# @return [Increase::Resources::Simulations::CheckDeposits]
|
|
76
79
|
attr_reader :check_deposits
|
|
77
80
|
|
|
@@ -123,6 +126,7 @@ module Increase
|
|
|
123
126
|
Increase::Resources::Simulations::RealTimePaymentsTransfers.new(client: client)
|
|
124
127
|
@inbound_real_time_payments_transfers =
|
|
125
128
|
Increase::Resources::Simulations::InboundRealTimePaymentsTransfers.new(client: client)
|
|
129
|
+
@inbound_fednow_transfers = Increase::Resources::Simulations::InboundFednowTransfers.new(client: client)
|
|
126
130
|
@check_deposits = Increase::Resources::Simulations::CheckDeposits.new(client: client)
|
|
127
131
|
@inbound_mail_items = Increase::Resources::Simulations::InboundMailItems.new(client: client)
|
|
128
132
|
@programs = Increase::Resources::Simulations::Programs.new(client: client)
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -190,6 +190,12 @@ require_relative "increase/models/external_account_create_params"
|
|
|
190
190
|
require_relative "increase/models/external_account_list_params"
|
|
191
191
|
require_relative "increase/models/external_account_retrieve_params"
|
|
192
192
|
require_relative "increase/models/external_account_update_params"
|
|
193
|
+
require_relative "increase/models/fednow_transfer"
|
|
194
|
+
require_relative "increase/models/fednow_transfer_approve_params"
|
|
195
|
+
require_relative "increase/models/fednow_transfer_cancel_params"
|
|
196
|
+
require_relative "increase/models/fednow_transfer_create_params"
|
|
197
|
+
require_relative "increase/models/fednow_transfer_list_params"
|
|
198
|
+
require_relative "increase/models/fednow_transfer_retrieve_params"
|
|
193
199
|
require_relative "increase/models/file"
|
|
194
200
|
require_relative "increase/models/file_create_params"
|
|
195
201
|
require_relative "increase/models/file_link"
|
|
@@ -209,6 +215,9 @@ require_relative "increase/models/inbound_check_deposit_decline_params"
|
|
|
209
215
|
require_relative "increase/models/inbound_check_deposit_list_params"
|
|
210
216
|
require_relative "increase/models/inbound_check_deposit_retrieve_params"
|
|
211
217
|
require_relative "increase/models/inbound_check_deposit_return_params"
|
|
218
|
+
require_relative "increase/models/inbound_fednow_transfer"
|
|
219
|
+
require_relative "increase/models/inbound_fednow_transfer_list_params"
|
|
220
|
+
require_relative "increase/models/inbound_fednow_transfer_retrieve_params"
|
|
212
221
|
require_relative "increase/models/inbound_mail_item"
|
|
213
222
|
require_relative "increase/models/inbound_mail_item_list_params"
|
|
214
223
|
require_relative "increase/models/inbound_mail_item_retrieve_params"
|
|
@@ -303,6 +312,7 @@ require_relative "increase/models/simulations/digital_wallet_token_request_creat
|
|
|
303
312
|
require_relative "increase/models/simulations/document_create_params"
|
|
304
313
|
require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
|
|
305
314
|
require_relative "increase/models/simulations/inbound_check_deposit_create_params"
|
|
315
|
+
require_relative "increase/models/simulations/inbound_fednow_transfer_create_params"
|
|
306
316
|
require_relative "increase/models/simulations/inbound_mail_item_create_params"
|
|
307
317
|
require_relative "increase/models/simulations/inbound_real_time_payments_transfer_create_params"
|
|
308
318
|
require_relative "increase/models/simulations/inbound_wire_drawdown_request_create_params"
|
|
@@ -360,11 +370,13 @@ require_relative "increase/resources/events"
|
|
|
360
370
|
require_relative "increase/resources/event_subscriptions"
|
|
361
371
|
require_relative "increase/resources/exports"
|
|
362
372
|
require_relative "increase/resources/external_accounts"
|
|
373
|
+
require_relative "increase/resources/fednow_transfers"
|
|
363
374
|
require_relative "increase/resources/file_links"
|
|
364
375
|
require_relative "increase/resources/files"
|
|
365
376
|
require_relative "increase/resources/groups"
|
|
366
377
|
require_relative "increase/resources/inbound_ach_transfers"
|
|
367
378
|
require_relative "increase/resources/inbound_check_deposits"
|
|
379
|
+
require_relative "increase/resources/inbound_fednow_transfers"
|
|
368
380
|
require_relative "increase/resources/inbound_mail_items"
|
|
369
381
|
require_relative "increase/resources/inbound_real_time_payments_transfers"
|
|
370
382
|
require_relative "increase/resources/inbound_wire_drawdown_requests"
|
|
@@ -402,6 +414,7 @@ require_relative "increase/resources/simulations/digital_wallet_token_requests"
|
|
|
402
414
|
require_relative "increase/resources/simulations/documents"
|
|
403
415
|
require_relative "increase/resources/simulations/inbound_ach_transfers"
|
|
404
416
|
require_relative "increase/resources/simulations/inbound_check_deposits"
|
|
417
|
+
require_relative "increase/resources/simulations/inbound_fednow_transfers"
|
|
405
418
|
require_relative "increase/resources/simulations/inbound_mail_items"
|
|
406
419
|
require_relative "increase/resources/simulations/inbound_real_time_payments_transfers"
|
|
407
420
|
require_relative "increase/resources/simulations/inbound_wire_drawdown_requests"
|
data/rbi/increase/client.rbi
CHANGED
|
@@ -97,6 +97,12 @@ module Increase
|
|
|
97
97
|
sig { returns(Increase::Resources::InboundRealTimePaymentsTransfers) }
|
|
98
98
|
attr_reader :inbound_real_time_payments_transfers
|
|
99
99
|
|
|
100
|
+
sig { returns(Increase::Resources::FednowTransfers) }
|
|
101
|
+
attr_reader :fednow_transfers
|
|
102
|
+
|
|
103
|
+
sig { returns(Increase::Resources::InboundFednowTransfers) }
|
|
104
|
+
attr_reader :inbound_fednow_transfers
|
|
105
|
+
|
|
100
106
|
sig { returns(Increase::Resources::CheckDeposits) }
|
|
101
107
|
attr_reader :check_deposits
|
|
102
108
|
|