increase 1.362.0 → 1.364.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/README.md +1 -1
- data/lib/increase/client.rb +8 -16
- data/lib/increase/models/account_number.rb +51 -81
- data/lib/increase/models/account_number_create_params.rb +41 -75
- data/lib/increase/models/account_number_list_params.rb +39 -39
- data/lib/increase/models/account_number_update_params.rb +48 -79
- data/lib/increase/models/ach_transfer.rb +38 -23
- data/lib/increase/models/card_payment.rb +6 -0
- data/lib/increase/models/card_update_params.rb +12 -8
- data/lib/increase/models/check_transfer.rb +58 -44
- data/lib/increase/models/check_transfer_create_params.rb +35 -21
- data/lib/increase/models/checkbook.rb +352 -0
- data/lib/increase/models/checkbook_check.rb +100 -0
- data/lib/increase/models/checkbook_check_list_params.rb +61 -0
- data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
- data/lib/increase/models/checkbook_create_params.rb +111 -0
- data/lib/increase/models/checkbook_list_params.rb +104 -0
- data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_stop_params.rb +22 -0
- data/lib/increase/models/declined_transaction.rb +10 -1
- data/lib/increase/models/entity.rb +1 -65
- data/lib/increase/models/entity_create_params.rb +1 -65
- data/lib/increase/models/entity_update_params.rb +1 -57
- data/lib/increase/models/export.rb +12 -1
- data/lib/increase/models/export_create_params.rb +26 -4
- data/lib/increase/models/inbound_ach_transfer.rb +6 -6
- data/lib/increase/models/inbound_check_deposit.rb +12 -1
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
- data/lib/increase/models/real_time_decision.rb +65 -1
- data/lib/increase/models/real_time_payments_transfer.rb +21 -1
- data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
- data/lib/increase/models/transaction.rb +27 -5
- data/lib/increase/models.rb +21 -20
- data/lib/increase/resources/account_numbers.rb +19 -16
- data/lib/increase/resources/checkbook_checks.rb +90 -0
- data/lib/increase/resources/checkbooks.rb +127 -0
- data/lib/increase/resources/entities.rb +2 -12
- data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
- data/lib/increase/resources/simulations/checkbooks.rb +38 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +14 -14
- data/rbi/increase/client.rbi +6 -12
- data/rbi/increase/models/account_number.rbi +86 -173
- data/rbi/increase/models/account_number_create_params.rbi +87 -165
- data/rbi/increase/models/account_number_list_params.rbi +106 -105
- data/rbi/increase/models/account_number_update_params.rbi +105 -190
- data/rbi/increase/models/ach_transfer.rbi +35 -23
- data/rbi/increase/models/card_payment.rbi +14 -0
- data/rbi/increase/models/card_update_params.rbi +17 -15
- data/rbi/increase/models/check_transfer.rbi +72 -54
- data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
- data/rbi/increase/models/checkbook.rbi +507 -0
- data/rbi/increase/models/checkbook_check.rbi +142 -0
- data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
- data/rbi/increase/models/{oauth_connection_retrieve_params.rbi → checkbook_check_retrieve_params.rbi} +8 -8
- data/rbi/increase/models/{oauth_application_retrieve_params.rbi → checkbook_check_stop_params.rbi} +8 -11
- data/rbi/increase/models/checkbook_create_params.rbi +178 -0
- data/rbi/increase/models/checkbook_list_params.rbi +198 -0
- data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
- data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
- data/rbi/increase/models/declined_transaction.rbi +8 -0
- data/rbi/increase/models/entity.rbi +0 -97
- data/rbi/increase/models/entity_create_params.rbi +0 -119
- data/rbi/increase/models/entity_update_params.rbi +0 -108
- data/rbi/increase/models/export.rbi +15 -3
- data/rbi/increase/models/export_create_params.rbi +27 -3
- data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
- data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
- data/rbi/increase/models/real_time_decision.rbi +134 -3
- data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
- data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
- data/rbi/increase/models/transaction.rbi +33 -3
- data/rbi/increase/models.rbi +21 -22
- data/rbi/increase/resources/account_numbers.rbi +24 -19
- data/rbi/increase/resources/checkbook_checks.rbi +69 -0
- data/rbi/increase/resources/checkbooks.rbi +96 -0
- data/rbi/increase/resources/entities.rbi +0 -11
- data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
- data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -8
- data/sig/increase/models/account_number.rbs +34 -66
- data/sig/increase/models/account_number_create_params.rbs +30 -64
- data/sig/increase/models/account_number_list_params.rbs +44 -44
- data/sig/increase/models/account_number_update_params.rbs +39 -77
- data/sig/increase/models/ach_transfer.rbs +4 -4
- data/sig/increase/models/card_payment.rbs +8 -0
- data/sig/increase/models/card_update_params.rbs +7 -11
- data/sig/increase/models/check_transfer.rbs +59 -49
- data/sig/increase/models/check_transfer_create_params.rbs +20 -12
- data/sig/increase/models/checkbook.rbs +272 -0
- data/sig/increase/models/checkbook_check.rbs +76 -0
- data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
- data/sig/increase/models/{oauth_connection_retrieve_params.rbs → checkbook_check_retrieve_params.rbs} +6 -6
- data/sig/increase/models/{oauth_application_retrieve_params.rbs → checkbook_check_stop_params.rbs} +6 -6
- data/sig/increase/models/checkbook_create_params.rbs +90 -0
- data/sig/increase/models/checkbook_list_params.rbs +97 -0
- data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
- data/sig/increase/models/checkbook_stop_params.rbs +23 -0
- data/sig/increase/models/declined_transaction.rbs +5 -0
- data/sig/increase/models/entity.rbs +0 -46
- data/sig/increase/models/entity_create_params.rbs +0 -55
- data/sig/increase/models/entity_update_params.rbs +0 -48
- data/sig/increase/models/export.rbs +13 -3
- data/sig/increase/models/export_create_params.rbs +7 -0
- data/sig/increase/models/inbound_check_deposit.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
- data/sig/increase/models/real_time_decision.rbs +69 -3
- data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
- data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
- data/sig/increase/models/transaction.rbs +26 -5
- data/sig/increase/models.rbs +20 -20
- data/sig/increase/resources/account_numbers.rbs +5 -5
- data/sig/increase/resources/checkbook_checks.rbs +26 -0
- data/sig/increase/resources/checkbooks.rbs +33 -0
- data/sig/increase/resources/entities.rbs +0 -3
- data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
- data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +45 -45
- data/lib/increase/models/group.rb +0 -57
- data/lib/increase/models/group_retrieve_params.rb +0 -14
- data/lib/increase/models/oauth_application.rb +0 -111
- data/lib/increase/models/oauth_application_list_params.rb +0 -129
- data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_connection.rb +0 -107
- data/lib/increase/models/oauth_connection_list_params.rb +0 -88
- data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_token.rb +0 -76
- data/lib/increase/models/oauth_token_create_params.rb +0 -85
- data/lib/increase/resources/groups.rb +0 -32
- data/lib/increase/resources/oauth_applications.rb +0 -68
- data/lib/increase/resources/oauth_connections.rb +0 -70
- data/lib/increase/resources/oauth_tokens.rb +0 -54
- data/rbi/increase/models/group.rbi +0 -74
- data/rbi/increase/models/group_retrieve_params.rbi +0 -27
- data/rbi/increase/models/oauth_application.rbi +0 -146
- data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
- data/rbi/increase/models/oauth_connection.rbi +0 -142
- data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
- data/rbi/increase/models/oauth_token.rbi +0 -106
- data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
- data/rbi/increase/resources/groups.rbi +0 -21
- data/rbi/increase/resources/oauth_applications.rbi +0 -50
- data/rbi/increase/resources/oauth_connections.rbi +0 -52
- data/rbi/increase/resources/oauth_tokens.rbi +0 -44
- data/sig/increase/models/group.rbs +0 -36
- data/sig/increase/models/group_retrieve_params.rbs +0 -15
- data/sig/increase/models/oauth_application.rbs +0 -74
- data/sig/increase/models/oauth_application_list_params.rbs +0 -123
- data/sig/increase/models/oauth_connection.rbs +0 -74
- data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
- data/sig/increase/models/oauth_token.rbs +0 -55
- data/sig/increase/models/oauth_token_create_params.rbs +0 -68
- data/sig/increase/resources/groups.rbs +0 -11
- data/sig/increase/resources/oauth_applications.rbs +0 -20
- data/sig/increase/resources/oauth_connections.rbs +0 -20
- data/sig/increase/resources/oauth_tokens.rbs +0 -16
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class CheckbookChecks
|
|
6
|
+
# Retrieve a Checkbook Check
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
checkbook_check_id: String,
|
|
10
|
+
request_options: Increase::RequestOptions::OrHash
|
|
11
|
+
).returns(Increase::CheckbookCheck)
|
|
12
|
+
end
|
|
13
|
+
def retrieve(
|
|
14
|
+
# The identifier of the Checkbook Check.
|
|
15
|
+
checkbook_check_id,
|
|
16
|
+
request_options: {}
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# List Checkbook Checks
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
account_number_id: String,
|
|
24
|
+
check_number: Integer,
|
|
25
|
+
checkbook_id: String,
|
|
26
|
+
cursor: String,
|
|
27
|
+
limit: Integer,
|
|
28
|
+
request_options: Increase::RequestOptions::OrHash
|
|
29
|
+
).returns(Increase::Internal::Page[Increase::CheckbookCheck])
|
|
30
|
+
end
|
|
31
|
+
def list(
|
|
32
|
+
# Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
33
|
+
account_number_id: nil,
|
|
34
|
+
# Filter Checkbook Checks to the one with the specified check number.
|
|
35
|
+
check_number: nil,
|
|
36
|
+
# Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
37
|
+
checkbook_id: nil,
|
|
38
|
+
# Return the page of entries after this one.
|
|
39
|
+
cursor: nil,
|
|
40
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
41
|
+
# objects.
|
|
42
|
+
#
|
|
43
|
+
# Defaults to `100`.
|
|
44
|
+
limit: nil,
|
|
45
|
+
request_options: {}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Stop a Checkbook Check. A stopped check cannot be deposited.
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
checkbook_check_id: String,
|
|
53
|
+
request_options: Increase::RequestOptions::OrHash
|
|
54
|
+
).returns(Increase::CheckbookCheck)
|
|
55
|
+
end
|
|
56
|
+
def stop(
|
|
57
|
+
# The identifier of the Checkbook Check to stop.
|
|
58
|
+
checkbook_check_id,
|
|
59
|
+
request_options: {}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# @api private
|
|
64
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
65
|
+
def self.new(client:)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Checkbooks
|
|
6
|
+
# Create a Checkbook
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
account_number_id: String,
|
|
10
|
+
mailing_address:
|
|
11
|
+
Increase::CheckbookCreateParams::MailingAddress::OrHash,
|
|
12
|
+
payer: T::Array[Increase::CheckbookCreateParams::Payer::OrHash],
|
|
13
|
+
request_options: Increase::RequestOptions::OrHash
|
|
14
|
+
).returns(Increase::Checkbook)
|
|
15
|
+
end
|
|
16
|
+
def create(
|
|
17
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
18
|
+
# Number must be active.
|
|
19
|
+
account_number_id:,
|
|
20
|
+
# The destination address that the Checkbook will be mailed to.
|
|
21
|
+
mailing_address:,
|
|
22
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
23
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
24
|
+
# line of the payer.
|
|
25
|
+
payer:,
|
|
26
|
+
request_options: {}
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Retrieve a Checkbook
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
checkbook_id: String,
|
|
34
|
+
request_options: Increase::RequestOptions::OrHash
|
|
35
|
+
).returns(Increase::Checkbook)
|
|
36
|
+
end
|
|
37
|
+
def retrieve(
|
|
38
|
+
# The identifier of the Checkbook.
|
|
39
|
+
checkbook_id,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List Checkbooks
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
account_number_id: String,
|
|
48
|
+
cursor: String,
|
|
49
|
+
idempotency_key: String,
|
|
50
|
+
limit: Integer,
|
|
51
|
+
status: Increase::CheckbookListParams::Status::OrHash,
|
|
52
|
+
request_options: Increase::RequestOptions::OrHash
|
|
53
|
+
).returns(Increase::Internal::Page[Increase::Checkbook])
|
|
54
|
+
end
|
|
55
|
+
def list(
|
|
56
|
+
# Filter Checkbooks to those attached to the specified Account Number.
|
|
57
|
+
account_number_id: nil,
|
|
58
|
+
# Return the page of entries after this one.
|
|
59
|
+
cursor: nil,
|
|
60
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
61
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
62
|
+
# request is only processed once. Learn more about
|
|
63
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
64
|
+
idempotency_key: nil,
|
|
65
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
66
|
+
# objects.
|
|
67
|
+
#
|
|
68
|
+
# Defaults to `100`.
|
|
69
|
+
limit: nil,
|
|
70
|
+
status: nil,
|
|
71
|
+
request_options: {}
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Stop a Checkbook. Stopping a Checkbook stops all of its checks that have not yet
|
|
76
|
+
# been deposited.
|
|
77
|
+
sig do
|
|
78
|
+
params(
|
|
79
|
+
checkbook_id: String,
|
|
80
|
+
request_options: Increase::RequestOptions::OrHash
|
|
81
|
+
).returns(Increase::Checkbook)
|
|
82
|
+
end
|
|
83
|
+
def stop(
|
|
84
|
+
# The identifier of the Checkbook to stop.
|
|
85
|
+
checkbook_id,
|
|
86
|
+
request_options: {}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# @api private
|
|
91
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
92
|
+
def self.new(client:)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -8,12 +8,10 @@ module Increase
|
|
|
8
8
|
params(
|
|
9
9
|
structure: Increase::EntityCreateParams::Structure::OrSymbol,
|
|
10
10
|
corporation: Increase::EntityCreateParams::Corporation::OrHash,
|
|
11
|
-
description: String,
|
|
12
11
|
government_authority:
|
|
13
12
|
Increase::EntityCreateParams::GovernmentAuthority::OrHash,
|
|
14
13
|
joint: Increase::EntityCreateParams::Joint::OrHash,
|
|
15
14
|
natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash,
|
|
16
|
-
risk_rating: Increase::EntityCreateParams::RiskRating::OrHash,
|
|
17
15
|
sole_proprietorship:
|
|
18
16
|
Increase::EntityCreateParams::SoleProprietorship::OrHash,
|
|
19
17
|
supplemental_documents:
|
|
@@ -34,8 +32,6 @@ module Increase
|
|
|
34
32
|
# Details of the corporation entity to create. Required if `structure` is equal to
|
|
35
33
|
# `corporation`.
|
|
36
34
|
corporation: nil,
|
|
37
|
-
# The description you choose to give the entity.
|
|
38
|
-
description: nil,
|
|
39
35
|
# Details of the Government Authority entity to create. Required if `structure` is
|
|
40
36
|
# equal to `government_authority`.
|
|
41
37
|
government_authority: nil,
|
|
@@ -47,9 +43,6 @@ module Increase
|
|
|
47
43
|
# `social_security_number` or `individual_taxpayer_identification_number`
|
|
48
44
|
# identification methods.
|
|
49
45
|
natural_person: nil,
|
|
50
|
-
# An assessment of the entity's potential risk of involvement in financial crimes,
|
|
51
|
-
# such as money laundering.
|
|
52
|
-
risk_rating: nil,
|
|
53
46
|
# Details of the sole proprietorship entity to create. Required if `structure` is
|
|
54
47
|
# equal to `sole_proprietorship`.
|
|
55
48
|
sole_proprietorship: nil,
|
|
@@ -92,7 +85,6 @@ module Increase
|
|
|
92
85
|
government_authority:
|
|
93
86
|
Increase::EntityUpdateParams::GovernmentAuthority::OrHash,
|
|
94
87
|
natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash,
|
|
95
|
-
risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash,
|
|
96
88
|
sole_proprietorship:
|
|
97
89
|
Increase::EntityUpdateParams::SoleProprietorship::OrHash,
|
|
98
90
|
terms_agreements:
|
|
@@ -119,9 +111,6 @@ module Increase
|
|
|
119
111
|
# Details of the natural person entity to update. If you specify this parameter
|
|
120
112
|
# and the entity is not a natural person, the request will fail.
|
|
121
113
|
natural_person: nil,
|
|
122
|
-
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
123
|
-
# such as money laundering.
|
|
124
|
-
risk_rating: nil,
|
|
125
114
|
# Details of the sole proprietorship entity to update. If you specify this
|
|
126
115
|
# parameter and the entity is not a sole proprietorship, the request will fail.
|
|
127
116
|
sole_proprietorship: nil,
|
|
@@ -50,6 +50,25 @@ module Increase
|
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Return an Inbound Real-Time Payments Transfer
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
inbound_real_time_payments_transfer_id: String,
|
|
57
|
+
amount: Integer,
|
|
58
|
+
request_options: Increase::RequestOptions::OrHash
|
|
59
|
+
).returns(Increase::RealTimePaymentsTransfer)
|
|
60
|
+
end
|
|
61
|
+
def return_(
|
|
62
|
+
# The identifier of the Inbound Real-Time Payments Transfer to return to its
|
|
63
|
+
# sender.
|
|
64
|
+
inbound_real_time_payments_transfer_id,
|
|
65
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
66
|
+
# Real-Time Payments Transfer, and can't be higher than it.
|
|
67
|
+
amount: nil,
|
|
68
|
+
request_options: {}
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
53
72
|
# @api private
|
|
54
73
|
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
55
74
|
def self.new(client:)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class Checkbooks
|
|
7
|
+
# Simulates the mailing of a [Checkbook](#checkbooks), which happens periodically
|
|
8
|
+
# throughout the day in production but can be sped up in sandbox. This Checkbook
|
|
9
|
+
# must have a `status` of `pending_submission` or `pending_mailing`.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
checkbook_id: String,
|
|
13
|
+
request_options: Increase::RequestOptions::OrHash
|
|
14
|
+
).returns(Increase::Checkbook)
|
|
15
|
+
end
|
|
16
|
+
def mail(
|
|
17
|
+
# The identifier of the Checkbook you wish to mail.
|
|
18
|
+
checkbook_id,
|
|
19
|
+
request_options: {}
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @api private
|
|
24
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
25
|
+
def self.new(client:)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -78,6 +78,9 @@ module Increase
|
|
|
78
78
|
sig { returns(Increase::Resources::Simulations::CheckTransfers) }
|
|
79
79
|
attr_reader :check_transfers
|
|
80
80
|
|
|
81
|
+
sig { returns(Increase::Resources::Simulations::Checkbooks) }
|
|
82
|
+
attr_reader :checkbooks
|
|
83
|
+
|
|
81
84
|
sig { returns(Increase::Resources::Simulations::InboundCheckDeposits) }
|
|
82
85
|
attr_reader :inbound_check_deposits
|
|
83
86
|
|
data/sig/increase/client.rbs
CHANGED
|
@@ -63,6 +63,10 @@ module Increase
|
|
|
63
63
|
|
|
64
64
|
attr_reader check_transfers: Increase::Resources::CheckTransfers
|
|
65
65
|
|
|
66
|
+
attr_reader checkbooks: Increase::Resources::Checkbooks
|
|
67
|
+
|
|
68
|
+
attr_reader checkbook_checks: Increase::Resources::CheckbookChecks
|
|
69
|
+
|
|
66
70
|
attr_reader inbound_check_deposits: Increase::Resources::InboundCheckDeposits
|
|
67
71
|
|
|
68
72
|
attr_reader real_time_payments_transfers: Increase::Resources::RealTimePaymentsTransfers
|
|
@@ -115,14 +119,6 @@ module Increase
|
|
|
115
119
|
|
|
116
120
|
attr_reader real_time_decisions: Increase::Resources::RealTimeDecisions
|
|
117
121
|
|
|
118
|
-
attr_reader groups: Increase::Resources::Groups
|
|
119
|
-
|
|
120
|
-
attr_reader oauth_applications: Increase::Resources::OAuthApplications
|
|
121
|
-
|
|
122
|
-
attr_reader oauth_connections: Increase::Resources::OAuthConnections
|
|
123
|
-
|
|
124
|
-
attr_reader oauth_tokens: Increase::Resources::OAuthTokens
|
|
125
|
-
|
|
126
122
|
attr_reader intrafi_account_enrollments: Increase::Resources::IntrafiAccountEnrollments
|
|
127
123
|
|
|
128
124
|
attr_reader intrafi_balances: Increase::Resources::IntrafiBalances
|
|
@@ -7,12 +7,12 @@ module Increase
|
|
|
7
7
|
account_number: String,
|
|
8
8
|
created_at: Time,
|
|
9
9
|
idempotency_key: String?,
|
|
10
|
-
|
|
11
|
-
inbound_checks: Increase::AccountNumber::InboundChecks,
|
|
10
|
+
inbound_ach_debits: Increase::Models::AccountNumber::inbound_ach_debits,
|
|
12
11
|
name: String,
|
|
13
12
|
routing_number: String,
|
|
14
13
|
status: Increase::Models::AccountNumber::status,
|
|
15
|
-
type: Increase::Models::AccountNumber::type_
|
|
14
|
+
type: Increase::Models::AccountNumber::type_,
|
|
15
|
+
unregistered_inbound_checks: Increase::Models::AccountNumber::unregistered_inbound_checks
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
class AccountNumber < Increase::Internal::Type::BaseModel
|
|
@@ -26,9 +26,7 @@ module Increase
|
|
|
26
26
|
|
|
27
27
|
attr_accessor idempotency_key: String?
|
|
28
28
|
|
|
29
|
-
attr_accessor
|
|
30
|
-
|
|
31
|
-
attr_accessor inbound_checks: Increase::AccountNumber::InboundChecks
|
|
29
|
+
attr_accessor inbound_ach_debits: Increase::Models::AccountNumber::inbound_ach_debits
|
|
32
30
|
|
|
33
31
|
attr_accessor name: String
|
|
34
32
|
|
|
@@ -38,18 +36,20 @@ module Increase
|
|
|
38
36
|
|
|
39
37
|
attr_accessor type: Increase::Models::AccountNumber::type_
|
|
40
38
|
|
|
39
|
+
attr_accessor unregistered_inbound_checks: Increase::Models::AccountNumber::unregistered_inbound_checks
|
|
40
|
+
|
|
41
41
|
def initialize: (
|
|
42
42
|
id: String,
|
|
43
43
|
account_id: String,
|
|
44
44
|
account_number: String,
|
|
45
45
|
created_at: Time,
|
|
46
46
|
idempotency_key: String?,
|
|
47
|
-
|
|
48
|
-
inbound_checks: Increase::AccountNumber::InboundChecks,
|
|
47
|
+
inbound_ach_debits: Increase::Models::AccountNumber::inbound_ach_debits,
|
|
49
48
|
name: String,
|
|
50
49
|
routing_number: String,
|
|
51
50
|
status: Increase::Models::AccountNumber::status,
|
|
52
|
-
type: Increase::Models::AccountNumber::type_
|
|
51
|
+
type: Increase::Models::AccountNumber::type_,
|
|
52
|
+
unregistered_inbound_checks: Increase::Models::AccountNumber::unregistered_inbound_checks
|
|
53
53
|
) -> void
|
|
54
54
|
|
|
55
55
|
def to_hash: -> {
|
|
@@ -58,72 +58,26 @@ module Increase
|
|
|
58
58
|
account_number: String,
|
|
59
59
|
created_at: Time,
|
|
60
60
|
idempotency_key: String?,
|
|
61
|
-
|
|
62
|
-
inbound_checks: Increase::AccountNumber::InboundChecks,
|
|
61
|
+
inbound_ach_debits: Increase::Models::AccountNumber::inbound_ach_debits,
|
|
63
62
|
name: String,
|
|
64
63
|
routing_number: String,
|
|
65
64
|
status: Increase::Models::AccountNumber::status,
|
|
66
|
-
type: Increase::Models::AccountNumber::type_
|
|
65
|
+
type: Increase::Models::AccountNumber::type_,
|
|
66
|
+
unregistered_inbound_checks: Increase::Models::AccountNumber::unregistered_inbound_checks
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
type
|
|
70
|
-
{
|
|
71
|
-
debit_status: Increase::Models::AccountNumber::InboundACH::debit_status
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
class InboundACH < Increase::Internal::Type::BaseModel
|
|
75
|
-
attr_accessor debit_status: Increase::Models::AccountNumber::InboundACH::debit_status
|
|
76
|
-
|
|
77
|
-
def initialize: (
|
|
78
|
-
debit_status: Increase::Models::AccountNumber::InboundACH::debit_status
|
|
79
|
-
) -> void
|
|
80
|
-
|
|
81
|
-
def to_hash: -> {
|
|
82
|
-
debit_status: Increase::Models::AccountNumber::InboundACH::debit_status
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
type debit_status = :allowed | :blocked
|
|
86
|
-
|
|
87
|
-
module DebitStatus
|
|
88
|
-
extend Increase::Internal::Type::Enum
|
|
89
|
-
|
|
90
|
-
# ACH Debits are allowed.
|
|
91
|
-
ALLOWED: :allowed
|
|
92
|
-
|
|
93
|
-
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
94
|
-
BLOCKED: :blocked
|
|
95
|
-
|
|
96
|
-
def self?.values: -> ::Array[Increase::Models::AccountNumber::InboundACH::debit_status]
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
type inbound_checks =
|
|
101
|
-
{ status: Increase::Models::AccountNumber::InboundChecks::status }
|
|
69
|
+
type inbound_ach_debits = :allowed | :blocked
|
|
102
70
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
def initialize: (
|
|
107
|
-
status: Increase::Models::AccountNumber::InboundChecks::status
|
|
108
|
-
) -> void
|
|
109
|
-
|
|
110
|
-
def to_hash: -> {
|
|
111
|
-
status: Increase::Models::AccountNumber::InboundChecks::status
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
type status = :allowed | :check_transfers_only
|
|
115
|
-
|
|
116
|
-
module Status
|
|
117
|
-
extend Increase::Internal::Type::Enum
|
|
71
|
+
module InboundACHDebits
|
|
72
|
+
extend Increase::Internal::Type::Enum
|
|
118
73
|
|
|
119
|
-
|
|
120
|
-
|
|
74
|
+
# ACH Debits are allowed.
|
|
75
|
+
ALLOWED: :allowed
|
|
121
76
|
|
|
122
|
-
|
|
123
|
-
|
|
77
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
78
|
+
BLOCKED: :blocked
|
|
124
79
|
|
|
125
|
-
|
|
126
|
-
end
|
|
80
|
+
def self?.values: -> ::Array[Increase::Models::AccountNumber::inbound_ach_debits]
|
|
127
81
|
end
|
|
128
82
|
|
|
129
83
|
type status = :active | :disabled | :canceled
|
|
@@ -152,6 +106,20 @@ module Increase
|
|
|
152
106
|
|
|
153
107
|
def self?.values: -> ::Array[Increase::Models::AccountNumber::type_]
|
|
154
108
|
end
|
|
109
|
+
|
|
110
|
+
type unregistered_inbound_checks = :allowed | :blocked
|
|
111
|
+
|
|
112
|
+
module UnregisteredInboundChecks
|
|
113
|
+
extend Increase::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
# Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
|
|
116
|
+
ALLOWED: :allowed
|
|
117
|
+
|
|
118
|
+
# Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
|
|
119
|
+
BLOCKED: :blocked
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Increase::Models::AccountNumber::unregistered_inbound_checks]
|
|
122
|
+
end
|
|
155
123
|
end
|
|
156
124
|
end
|
|
157
125
|
end
|
|
@@ -4,8 +4,8 @@ module Increase
|
|
|
4
4
|
{
|
|
5
5
|
account_id: String,
|
|
6
6
|
name: String,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
inbound_ach_debits: Increase::Models::AccountNumberCreateParams::inbound_ach_debits,
|
|
8
|
+
unregistered_inbound_checks: Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks
|
|
9
9
|
}
|
|
10
10
|
& Increase::Internal::Type::request_parameters
|
|
11
11
|
|
|
@@ -17,94 +17,60 @@ module Increase
|
|
|
17
17
|
|
|
18
18
|
attr_accessor name: String
|
|
19
19
|
|
|
20
|
-
attr_reader
|
|
20
|
+
attr_reader inbound_ach_debits: Increase::Models::AccountNumberCreateParams::inbound_ach_debits?
|
|
21
21
|
|
|
22
|
-
def
|
|
23
|
-
Increase::AccountNumberCreateParams::
|
|
24
|
-
) -> Increase::AccountNumberCreateParams::
|
|
22
|
+
def inbound_ach_debits=: (
|
|
23
|
+
Increase::Models::AccountNumberCreateParams::inbound_ach_debits
|
|
24
|
+
) -> Increase::Models::AccountNumberCreateParams::inbound_ach_debits
|
|
25
25
|
|
|
26
|
-
attr_reader
|
|
26
|
+
attr_reader unregistered_inbound_checks: Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks?
|
|
27
27
|
|
|
28
|
-
def
|
|
29
|
-
Increase::AccountNumberCreateParams::
|
|
30
|
-
) -> Increase::AccountNumberCreateParams::
|
|
28
|
+
def unregistered_inbound_checks=: (
|
|
29
|
+
Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks
|
|
30
|
+
) -> Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks
|
|
31
31
|
|
|
32
32
|
def initialize: (
|
|
33
33
|
account_id: String,
|
|
34
34
|
name: String,
|
|
35
|
-
?
|
|
36
|
-
?
|
|
35
|
+
?inbound_ach_debits: Increase::Models::AccountNumberCreateParams::inbound_ach_debits,
|
|
36
|
+
?unregistered_inbound_checks: Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks,
|
|
37
37
|
?request_options: Increase::request_opts
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
41
|
account_id: String,
|
|
42
42
|
name: String,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
inbound_ach_debits: Increase::Models::AccountNumberCreateParams::inbound_ach_debits,
|
|
44
|
+
unregistered_inbound_checks: Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks,
|
|
45
45
|
request_options: Increase::RequestOptions
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
type
|
|
49
|
-
{
|
|
50
|
-
debit_status: Increase::Models::AccountNumberCreateParams::InboundACH::debit_status
|
|
51
|
-
}
|
|
48
|
+
type inbound_ach_debits = :allowed | :blocked
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
module InboundACHDebits
|
|
51
|
+
extend Increase::Internal::Type::Enum
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
) -> void
|
|
53
|
+
# ACH Debits are allowed.
|
|
54
|
+
ALLOWED: :allowed
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
56
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
57
|
+
BLOCKED: :blocked
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
module DebitStatus
|
|
67
|
-
extend Increase::Internal::Type::Enum
|
|
68
|
-
|
|
69
|
-
# ACH Debits are allowed.
|
|
70
|
-
ALLOWED: :allowed
|
|
71
|
-
|
|
72
|
-
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
73
|
-
BLOCKED: :blocked
|
|
74
|
-
|
|
75
|
-
def self?.values: -> ::Array[Increase::Models::AccountNumberCreateParams::InboundACH::debit_status]
|
|
76
|
-
end
|
|
59
|
+
def self?.values: -> ::Array[Increase::Models::AccountNumberCreateParams::inbound_ach_debits]
|
|
77
60
|
end
|
|
78
61
|
|
|
79
|
-
type
|
|
80
|
-
{
|
|
81
|
-
status: Increase::Models::AccountNumberCreateParams::InboundChecks::status
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
class InboundChecks < Increase::Internal::Type::BaseModel
|
|
85
|
-
attr_accessor status: Increase::Models::AccountNumberCreateParams::InboundChecks::status
|
|
86
|
-
|
|
87
|
-
def initialize: (
|
|
88
|
-
status: Increase::Models::AccountNumberCreateParams::InboundChecks::status
|
|
89
|
-
) -> void
|
|
90
|
-
|
|
91
|
-
def to_hash: -> {
|
|
92
|
-
status: Increase::Models::AccountNumberCreateParams::InboundChecks::status
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
type status = :allowed | :check_transfers_only
|
|
62
|
+
type unregistered_inbound_checks = :allowed | :blocked
|
|
96
63
|
|
|
97
|
-
|
|
98
|
-
|
|
64
|
+
module UnregisteredInboundChecks
|
|
65
|
+
extend Increase::Internal::Type::Enum
|
|
99
66
|
|
|
100
|
-
|
|
101
|
-
|
|
67
|
+
# Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
|
|
68
|
+
ALLOWED: :allowed
|
|
102
69
|
|
|
103
|
-
|
|
104
|
-
|
|
70
|
+
# Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
|
|
71
|
+
BLOCKED: :blocked
|
|
105
72
|
|
|
106
|
-
|
|
107
|
-
end
|
|
73
|
+
def self?.values: -> ::Array[Increase::Models::AccountNumberCreateParams::unregistered_inbound_checks]
|
|
108
74
|
end
|
|
109
75
|
end
|
|
110
76
|
end
|