increase 1.112.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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +8 -0
  5. data/lib/increase/internal/transport/pooled_net_requester.rb +30 -24
  6. data/lib/increase/models/check_transfer.rb +1 -1
  7. data/lib/increase/models/fednow_transfer.rb +516 -0
  8. data/lib/increase/models/fednow_transfer_approve_params.rb +14 -0
  9. data/lib/increase/models/fednow_transfer_cancel_params.rb +14 -0
  10. data/lib/increase/models/fednow_transfer_create_params.rb +188 -0
  11. data/lib/increase/models/fednow_transfer_list_params.rb +170 -0
  12. data/lib/increase/models/fednow_transfer_retrieve_params.rb +14 -0
  13. data/lib/increase/models/inbound_fednow_transfer.rb +278 -0
  14. data/lib/increase/models/inbound_fednow_transfer_list_params.rb +100 -0
  15. data/lib/increase/models/inbound_fednow_transfer_retrieve_params.rb +14 -0
  16. data/lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb +64 -0
  17. data/lib/increase/models.rb +18 -0
  18. data/lib/increase/resources/fednow_transfers.rb +159 -0
  19. data/lib/increase/resources/inbound_fednow_transfers.rb +68 -0
  20. data/lib/increase/resources/simulations/inbound_fednow_transfers.rb +49 -0
  21. data/lib/increase/resources/simulations.rb +4 -0
  22. data/lib/increase/version.rb +1 -1
  23. data/lib/increase.rb +13 -0
  24. data/rbi/increase/client.rbi +6 -0
  25. data/rbi/increase/models/check_transfer.rbi +1 -1
  26. data/rbi/increase/models/fednow_transfer.rbi +877 -0
  27. data/rbi/increase/models/fednow_transfer_approve_params.rbi +30 -0
  28. data/rbi/increase/models/fednow_transfer_cancel_params.rbi +30 -0
  29. data/rbi/increase/models/fednow_transfer_create_params.rbi +289 -0
  30. data/rbi/increase/models/fednow_transfer_list_params.rbi +334 -0
  31. data/rbi/increase/models/fednow_transfer_retrieve_params.rbi +30 -0
  32. data/rbi/increase/models/inbound_fednow_transfer.rbi +444 -0
  33. data/rbi/increase/models/inbound_fednow_transfer_list_params.rbi +177 -0
  34. data/rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi +30 -0
  35. data/rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi +100 -0
  36. data/rbi/increase/models.rbi +20 -0
  37. data/rbi/increase/resources/fednow_transfers.rbi +138 -0
  38. data/rbi/increase/resources/inbound_fednow_transfers.rbi +54 -0
  39. data/rbi/increase/resources/simulations/inbound_fednow_transfers.rbi +44 -0
  40. data/rbi/increase/resources/simulations.rbi +3 -0
  41. data/sig/increase/client.rbs +4 -0
  42. data/sig/increase/models/check_transfer.rbs +1 -1
  43. data/sig/increase/models/fednow_transfer.rbs +404 -0
  44. data/sig/increase/models/fednow_transfer_approve_params.rbs +15 -0
  45. data/sig/increase/models/fednow_transfer_cancel_params.rbs +15 -0
  46. data/sig/increase/models/fednow_transfer_create_params.rbs +155 -0
  47. data/sig/increase/models/fednow_transfer_list_params.rbs +174 -0
  48. data/sig/increase/models/fednow_transfer_retrieve_params.rbs +15 -0
  49. data/sig/increase/models/inbound_fednow_transfer.rbs +223 -0
  50. data/sig/increase/models/inbound_fednow_transfer_list_params.rbs +93 -0
  51. data/sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs +15 -0
  52. data/sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs +61 -0
  53. data/sig/increase/models.rbs +18 -0
  54. data/sig/increase/resources/fednow_transfers.rbs +49 -0
  55. data/sig/increase/resources/inbound_fednow_transfers.rbs +21 -0
  56. data/sig/increase/resources/simulations/inbound_fednow_transfers.rbs +19 -0
  57. data/sig/increase/resources/simulations.rbs +2 -0
  58. metadata +41 -2
@@ -0,0 +1,100 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ class InboundFednowTransferCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Increase::Simulations::InboundFednowTransferCreateParams,
14
+ Increase::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # The identifier of the Account Number the inbound FedNow Transfer is for.
19
+ sig { returns(String) }
20
+ attr_accessor :account_number_id
21
+
22
+ # The transfer amount in USD cents. Must be positive.
23
+ sig { returns(Integer) }
24
+ attr_accessor :amount
25
+
26
+ # The account number of the account that sent the transfer.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_reader :debtor_account_number
29
+
30
+ sig { params(debtor_account_number: String).void }
31
+ attr_writer :debtor_account_number
32
+
33
+ # The name provided by the sender of the transfer.
34
+ sig { returns(T.nilable(String)) }
35
+ attr_reader :debtor_name
36
+
37
+ sig { params(debtor_name: String).void }
38
+ attr_writer :debtor_name
39
+
40
+ # The routing number of the account that sent the transfer.
41
+ sig { returns(T.nilable(String)) }
42
+ attr_reader :debtor_routing_number
43
+
44
+ sig { params(debtor_routing_number: String).void }
45
+ attr_writer :debtor_routing_number
46
+
47
+ # Additional information included with the transfer.
48
+ sig { returns(T.nilable(String)) }
49
+ attr_reader :unstructured_remittance_information
50
+
51
+ sig { params(unstructured_remittance_information: String).void }
52
+ attr_writer :unstructured_remittance_information
53
+
54
+ sig do
55
+ params(
56
+ account_number_id: String,
57
+ amount: Integer,
58
+ debtor_account_number: String,
59
+ debtor_name: String,
60
+ debtor_routing_number: String,
61
+ unstructured_remittance_information: String,
62
+ request_options: Increase::RequestOptions::OrHash
63
+ ).returns(T.attached_class)
64
+ end
65
+ def self.new(
66
+ # The identifier of the Account Number the inbound FedNow Transfer is for.
67
+ account_number_id:,
68
+ # The transfer amount in USD cents. Must be positive.
69
+ amount:,
70
+ # The account number of the account that sent the transfer.
71
+ debtor_account_number: nil,
72
+ # The name provided by the sender of the transfer.
73
+ debtor_name: nil,
74
+ # The routing number of the account that sent the transfer.
75
+ debtor_routing_number: nil,
76
+ # Additional information included with the transfer.
77
+ unstructured_remittance_information: nil,
78
+ request_options: {}
79
+ )
80
+ end
81
+
82
+ sig do
83
+ override.returns(
84
+ {
85
+ account_number_id: String,
86
+ amount: Integer,
87
+ debtor_account_number: String,
88
+ debtor_name: String,
89
+ debtor_routing_number: String,
90
+ unstructured_remittance_information: String,
91
+ request_options: Increase::RequestOptions
92
+ }
93
+ )
94
+ end
95
+ def to_hash
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -312,6 +312,18 @@ module Increase
312
312
 
313
313
  ExternalAccountUpdateParams = Increase::Models::ExternalAccountUpdateParams
314
314
 
315
+ FednowTransfer = Increase::Models::FednowTransfer
316
+
317
+ FednowTransferApproveParams = Increase::Models::FednowTransferApproveParams
318
+
319
+ FednowTransferCancelParams = Increase::Models::FednowTransferCancelParams
320
+
321
+ FednowTransferCreateParams = Increase::Models::FednowTransferCreateParams
322
+
323
+ FednowTransferListParams = Increase::Models::FednowTransferListParams
324
+
325
+ FednowTransferRetrieveParams = Increase::Models::FednowTransferRetrieveParams
326
+
315
327
  File = Increase::Models::File
316
328
 
317
329
  FileCreateParams = Increase::Models::FileCreateParams
@@ -358,6 +370,14 @@ module Increase
358
370
  InboundCheckDepositReturnParams =
359
371
  Increase::Models::InboundCheckDepositReturnParams
360
372
 
373
+ InboundFednowTransfer = Increase::Models::InboundFednowTransfer
374
+
375
+ InboundFednowTransferListParams =
376
+ Increase::Models::InboundFednowTransferListParams
377
+
378
+ InboundFednowTransferRetrieveParams =
379
+ Increase::Models::InboundFednowTransferRetrieveParams
380
+
361
381
  InboundMailItem = Increase::Models::InboundMailItem
362
382
 
363
383
  InboundMailItemListParams = Increase::Models::InboundMailItemListParams
@@ -0,0 +1,138 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class FednowTransfers
6
+ # Create a FedNow Transfer
7
+ sig do
8
+ params(
9
+ account_id: String,
10
+ amount: Integer,
11
+ creditor_name: String,
12
+ debtor_name: String,
13
+ source_account_number_id: String,
14
+ unstructured_remittance_information: String,
15
+ account_number: String,
16
+ creditor_address:
17
+ Increase::FednowTransferCreateParams::CreditorAddress::OrHash,
18
+ debtor_address:
19
+ Increase::FednowTransferCreateParams::DebtorAddress::OrHash,
20
+ external_account_id: String,
21
+ require_approval: T::Boolean,
22
+ routing_number: String,
23
+ request_options: Increase::RequestOptions::OrHash
24
+ ).returns(Increase::FednowTransfer)
25
+ end
26
+ def create(
27
+ # The identifier for the account that will send the transfer.
28
+ account_id:,
29
+ # The amount, in minor units, to send to the creditor.
30
+ amount:,
31
+ # The creditor's name.
32
+ creditor_name:,
33
+ # The debtor's name.
34
+ debtor_name:,
35
+ # The Account Number to include in the transfer as the debtor's account number.
36
+ source_account_number_id:,
37
+ # Unstructured remittance information to include in the transfer.
38
+ unstructured_remittance_information:,
39
+ # The creditor's account number.
40
+ account_number: nil,
41
+ # The creditor's address.
42
+ creditor_address: nil,
43
+ # The debtor's address.
44
+ debtor_address: nil,
45
+ # The ID of an External Account to initiate a transfer to. If this parameter is
46
+ # provided, `account_number` and `routing_number` must be absent.
47
+ external_account_id: nil,
48
+ # Whether the transfer requires explicit approval via the dashboard or API.
49
+ require_approval: nil,
50
+ # The creditor's bank account routing number.
51
+ routing_number: nil,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ # Retrieve a FedNow Transfer
57
+ sig do
58
+ params(
59
+ fednow_transfer_id: String,
60
+ request_options: Increase::RequestOptions::OrHash
61
+ ).returns(Increase::FednowTransfer)
62
+ end
63
+ def retrieve(
64
+ # The identifier of the FedNow Transfer.
65
+ fednow_transfer_id,
66
+ request_options: {}
67
+ )
68
+ end
69
+
70
+ # List FedNow Transfers
71
+ sig do
72
+ params(
73
+ account_id: String,
74
+ created_at: Increase::FednowTransferListParams::CreatedAt::OrHash,
75
+ cursor: String,
76
+ external_account_id: String,
77
+ idempotency_key: String,
78
+ limit: Integer,
79
+ status: Increase::FednowTransferListParams::Status::OrHash,
80
+ request_options: Increase::RequestOptions::OrHash
81
+ ).returns(Increase::Internal::Page[Increase::FednowTransfer])
82
+ end
83
+ def list(
84
+ # Filter FedNow Transfers to those that originated from the specified Account.
85
+ account_id: nil,
86
+ created_at: nil,
87
+ # Return the page of entries after this one.
88
+ cursor: nil,
89
+ # Filter FedNow Transfers to those made to the specified External Account.
90
+ external_account_id: nil,
91
+ # Filter records to the one with the specified `idempotency_key` you chose for
92
+ # that object. This value is unique across Increase and is used to ensure that a
93
+ # request is only processed once. Learn more about
94
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
95
+ idempotency_key: nil,
96
+ # Limit the size of the list that is returned. The default (and maximum) is 100
97
+ # objects.
98
+ limit: nil,
99
+ status: nil,
100
+ request_options: {}
101
+ )
102
+ end
103
+
104
+ # Approve a FedNow Transfer
105
+ sig do
106
+ params(
107
+ fednow_transfer_id: String,
108
+ request_options: Increase::RequestOptions::OrHash
109
+ ).returns(Increase::FednowTransfer)
110
+ end
111
+ def approve(
112
+ # The identifier of the FedNow Transfer to approve.
113
+ fednow_transfer_id,
114
+ request_options: {}
115
+ )
116
+ end
117
+
118
+ # Cancel a pending FedNow Transfer
119
+ sig do
120
+ params(
121
+ fednow_transfer_id: String,
122
+ request_options: Increase::RequestOptions::OrHash
123
+ ).returns(Increase::FednowTransfer)
124
+ end
125
+ def cancel(
126
+ # The identifier of the pending FedNow Transfer to cancel.
127
+ fednow_transfer_id,
128
+ request_options: {}
129
+ )
130
+ end
131
+
132
+ # @api private
133
+ sig { params(client: Increase::Client).returns(T.attached_class) }
134
+ def self.new(client:)
135
+ end
136
+ end
137
+ end
138
+ end
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class InboundFednowTransfers
6
+ # Retrieve an Inbound FedNow Transfer
7
+ sig do
8
+ params(
9
+ inbound_fednow_transfer_id: String,
10
+ request_options: Increase::RequestOptions::OrHash
11
+ ).returns(Increase::InboundFednowTransfer)
12
+ end
13
+ def retrieve(
14
+ # The identifier of the Inbound FedNow Transfer to get details for.
15
+ inbound_fednow_transfer_id,
16
+ request_options: {}
17
+ )
18
+ end
19
+
20
+ # List Inbound FedNow Transfers
21
+ sig do
22
+ params(
23
+ account_id: String,
24
+ account_number_id: String,
25
+ created_at:
26
+ Increase::InboundFednowTransferListParams::CreatedAt::OrHash,
27
+ cursor: String,
28
+ limit: Integer,
29
+ request_options: Increase::RequestOptions::OrHash
30
+ ).returns(Increase::Internal::Page[Increase::InboundFednowTransfer])
31
+ end
32
+ def list(
33
+ # Filter Inbound FedNow Transfers to those belonging to the specified Account.
34
+ account_id: nil,
35
+ # Filter Inbound FedNow Transfers to ones belonging to the specified Account
36
+ # Number.
37
+ account_number_id: nil,
38
+ created_at: nil,
39
+ # Return the page of entries after this one.
40
+ cursor: nil,
41
+ # Limit the size of the list that is returned. The default (and maximum) is 100
42
+ # objects.
43
+ limit: nil,
44
+ request_options: {}
45
+ )
46
+ end
47
+
48
+ # @api private
49
+ sig { params(client: Increase::Client).returns(T.attached_class) }
50
+ def self.new(client:)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,44 @@
1
+ # typed: strong
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
+ sig do
10
+ params(
11
+ account_number_id: String,
12
+ amount: Integer,
13
+ debtor_account_number: String,
14
+ debtor_name: String,
15
+ debtor_routing_number: String,
16
+ unstructured_remittance_information: String,
17
+ request_options: Increase::RequestOptions::OrHash
18
+ ).returns(Increase::InboundFednowTransfer)
19
+ end
20
+ def create(
21
+ # The identifier of the Account Number the inbound FedNow Transfer is for.
22
+ account_number_id:,
23
+ # The transfer amount in USD cents. Must be positive.
24
+ amount:,
25
+ # The account number of the account that sent the transfer.
26
+ debtor_account_number: nil,
27
+ # The name provided by the sender of the transfer.
28
+ debtor_name: nil,
29
+ # The routing number of the account that sent the transfer.
30
+ debtor_routing_number: nil,
31
+ # Additional information included with the transfer.
32
+ unstructured_remittance_information: nil,
33
+ request_options: {}
34
+ )
35
+ end
36
+
37
+ # @api private
38
+ sig { params(client: Increase::Client).returns(T.attached_class) }
39
+ def self.new(client:)
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -84,6 +84,9 @@ module Increase
84
84
  end
85
85
  attr_reader :inbound_real_time_payments_transfers
86
86
 
87
+ sig { returns(Increase::Resources::Simulations::InboundFednowTransfers) }
88
+ attr_reader :inbound_fednow_transfers
89
+
87
90
  sig { returns(Increase::Resources::Simulations::CheckDeposits) }
88
91
  attr_reader :check_deposits
89
92
 
@@ -65,6 +65,10 @@ module Increase
65
65
 
66
66
  attr_reader inbound_real_time_payments_transfers: Increase::Resources::InboundRealTimePaymentsTransfers
67
67
 
68
+ attr_reader fednow_transfers: Increase::Resources::FednowTransfers
69
+
70
+ attr_reader inbound_fednow_transfers: Increase::Resources::InboundFednowTransfers
71
+
68
72
  attr_reader check_deposits: Increase::Resources::CheckDeposits
69
73
 
70
74
  attr_reader lockboxes: Increase::Resources::Lockboxes
@@ -151,7 +151,7 @@ module Increase
151
151
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
152
152
  FULL: :full
153
153
 
154
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
154
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
155
155
  NONE: :none
156
156
 
157
157
  def self?.values: -> ::Array[Increase::Models::CheckTransfer::balance_check]