increase 1.363.0 → 1.365.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 -0
- 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 +9 -2
- data/lib/increase/models/ach_transfer_create_params.rb +31 -50
- data/lib/increase/models/card_create_params.rb +10 -3
- data/lib/increase/models/card_payment.rb +6 -0
- data/lib/increase/models/card_update_params.rb +21 -11
- 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/fednow_transfer.rb +10 -1
- data/lib/increase/models/inbound_ach_transfer.rb +6 -6
- data/lib/increase/models/inbound_check_deposit.rb +12 -1
- data/lib/increase/models/real_time_decision.rb +65 -1
- data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
- data/lib/increase/models/transaction.rb +24 -2
- data/lib/increase/models.rb +18 -0
- data/lib/increase/resources/account_numbers.rb +19 -16
- data/lib/increase/resources/ach_transfers.rb +14 -22
- data/lib/increase/resources/cards.rb +7 -2
- 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/simulations/checkbooks.rb +38 -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/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 +8 -2
- data/rbi/increase/models/ach_transfer_create_params.rbi +30 -54
- data/rbi/increase/models/card_create_params.rbi +9 -3
- data/rbi/increase/models/card_payment.rbi +14 -0
- data/rbi/increase/models/card_update_params.rbi +26 -18
- 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/checkbook_check_retrieve_params.rbi +46 -0
- data/rbi/increase/models/checkbook_check_stop_params.rbi +43 -0
- 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/fednow_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
- data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
- data/rbi/increase/models/real_time_decision.rbi +134 -3
- data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
- data/rbi/increase/models/transaction.rbi +30 -0
- data/rbi/increase/models.rbi +18 -0
- data/rbi/increase/resources/account_numbers.rbi +24 -19
- data/rbi/increase/resources/ach_transfers.rbi +14 -22
- data/rbi/increase/resources/cards.rbi +6 -2
- 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/simulations/checkbooks.rbi +30 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -0
- 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_create_params.rbs +9 -18
- data/sig/increase/models/card_payment.rbs +8 -0
- data/sig/increase/models/card_update_params.rbs +7 -11
- 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/checkbook_check_retrieve_params.rbs +24 -0
- data/sig/increase/models/checkbook_check_stop_params.rbs +24 -0
- 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/fednow_transfer.rbs +5 -0
- data/sig/increase/models/inbound_check_deposit.rbs +5 -0
- data/sig/increase/models/real_time_decision.rbs +69 -3
- data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
- data/sig/increase/models/transaction.rbs +22 -1
- data/sig/increase/models.rbs +18 -0
- data/sig/increase/resources/account_numbers.rbs +5 -5
- data/sig/increase/resources/ach_transfers.rbs +2 -3
- 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/simulations/checkbooks.rbs +14 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +41 -2
|
@@ -12,7 +12,10 @@ module Increase
|
|
|
12
12
|
# @param authorization_controls [Increase::Models::CardCreateParams::AuthorizationControls]
|
|
13
13
|
# Controls that restrict how this card can be used.
|
|
14
14
|
#
|
|
15
|
-
# @param billing_address [Increase::Models::CardCreateParams::BillingAddress]
|
|
15
|
+
# @param billing_address [Increase::Models::CardCreateParams::BillingAddress]
|
|
16
|
+
# The card's billing address. This is used in card authorizations to
|
|
17
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
18
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
16
19
|
#
|
|
17
20
|
# @param cardholder_name [Increase::Models::CardCreateParams::CardholderName]
|
|
18
21
|
# The name of the cardholder. Used to respond to Account Name Inquiry requests
|
|
@@ -75,7 +78,9 @@ module Increase
|
|
|
75
78
|
# Controls that restrict how this card can be used.
|
|
76
79
|
#
|
|
77
80
|
# @param billing_address [Increase::Models::CardUpdateParams::BillingAddress]
|
|
78
|
-
# The card's
|
|
81
|
+
# The card's billing address. This is used in card authorizations to
|
|
82
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
83
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
79
84
|
#
|
|
80
85
|
# @param description [String] The description you choose to give the card.
|
|
81
86
|
#
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class CheckbookChecks
|
|
6
|
+
# Retrieve a Checkbook Check
|
|
7
|
+
#
|
|
8
|
+
# @overload retrieve(checkbook_check_id, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param checkbook_check_id [String] The identifier of the Checkbook Check.
|
|
11
|
+
#
|
|
12
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
+
#
|
|
14
|
+
# @return [Increase::Models::CheckbookCheck]
|
|
15
|
+
#
|
|
16
|
+
# @see Increase::Models::CheckbookCheckRetrieveParams
|
|
17
|
+
def retrieve(checkbook_check_id, params = {})
|
|
18
|
+
@client.request(
|
|
19
|
+
method: :get,
|
|
20
|
+
path: ["checkbook_checks/%1$s", checkbook_check_id],
|
|
21
|
+
model: Increase::CheckbookCheck,
|
|
22
|
+
options: params[:request_options]
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# List Checkbook Checks
|
|
27
|
+
#
|
|
28
|
+
# @overload list(account_number_id: nil, check_number: nil, checkbook_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
29
|
+
#
|
|
30
|
+
# @param account_number_id [String] Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
31
|
+
#
|
|
32
|
+
# @param check_number [Integer] Filter Checkbook Checks to the one with the specified check number.
|
|
33
|
+
#
|
|
34
|
+
# @param checkbook_id [String] Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
35
|
+
#
|
|
36
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
37
|
+
#
|
|
38
|
+
# @param limit [Integer]
|
|
39
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
40
|
+
# objects.
|
|
41
|
+
#
|
|
42
|
+
# Defaults to `100`.
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
45
|
+
#
|
|
46
|
+
# @return [Increase::Internal::Page<Increase::Models::CheckbookCheck>]
|
|
47
|
+
#
|
|
48
|
+
# @see Increase::Models::CheckbookCheckListParams
|
|
49
|
+
def list(params = {})
|
|
50
|
+
parsed, options = Increase::CheckbookCheckListParams.dump_request(params)
|
|
51
|
+
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
52
|
+
@client.request(
|
|
53
|
+
method: :get,
|
|
54
|
+
path: "checkbook_checks",
|
|
55
|
+
query: query,
|
|
56
|
+
page: Increase::Internal::Page,
|
|
57
|
+
model: Increase::CheckbookCheck,
|
|
58
|
+
options: options
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Stop a Checkbook Check. A stopped check cannot be deposited.
|
|
63
|
+
#
|
|
64
|
+
# @overload stop(checkbook_check_id, request_options: {})
|
|
65
|
+
#
|
|
66
|
+
# @param checkbook_check_id [String] The identifier of the Checkbook Check to stop.
|
|
67
|
+
#
|
|
68
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
69
|
+
#
|
|
70
|
+
# @return [Increase::Models::CheckbookCheck]
|
|
71
|
+
#
|
|
72
|
+
# @see Increase::Models::CheckbookCheckStopParams
|
|
73
|
+
def stop(checkbook_check_id, params = {})
|
|
74
|
+
@client.request(
|
|
75
|
+
method: :post,
|
|
76
|
+
path: ["checkbook_checks/%1$s/stop", checkbook_check_id],
|
|
77
|
+
model: Increase::CheckbookCheck,
|
|
78
|
+
options: params[:request_options]
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @api private
|
|
83
|
+
#
|
|
84
|
+
# @param client [Increase::Client]
|
|
85
|
+
def initialize(client:)
|
|
86
|
+
@client = client
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Checkbooks
|
|
6
|
+
# Create a Checkbook
|
|
7
|
+
#
|
|
8
|
+
# @overload create(account_number_id:, mailing_address:, payer:, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param account_number_id [String]
|
|
11
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
12
|
+
# Number must be active.
|
|
13
|
+
#
|
|
14
|
+
# @param mailing_address [Increase::Models::CheckbookCreateParams::MailingAddress]
|
|
15
|
+
# The destination address that the Checkbook will be mailed to.
|
|
16
|
+
#
|
|
17
|
+
# @param payer [Array<Increase::Models::CheckbookCreateParams::Payer>]
|
|
18
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
19
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
20
|
+
# line of the payer.
|
|
21
|
+
#
|
|
22
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
|
+
#
|
|
24
|
+
# @return [Increase::Models::Checkbook]
|
|
25
|
+
#
|
|
26
|
+
# @see Increase::Models::CheckbookCreateParams
|
|
27
|
+
def create(params)
|
|
28
|
+
parsed, options = Increase::CheckbookCreateParams.dump_request(params)
|
|
29
|
+
@client.request(
|
|
30
|
+
method: :post,
|
|
31
|
+
path: "checkbooks",
|
|
32
|
+
body: parsed,
|
|
33
|
+
model: Increase::Checkbook,
|
|
34
|
+
options: options
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Retrieve a Checkbook
|
|
39
|
+
#
|
|
40
|
+
# @overload retrieve(checkbook_id, request_options: {})
|
|
41
|
+
#
|
|
42
|
+
# @param checkbook_id [String] The identifier of the Checkbook.
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
45
|
+
#
|
|
46
|
+
# @return [Increase::Models::Checkbook]
|
|
47
|
+
#
|
|
48
|
+
# @see Increase::Models::CheckbookRetrieveParams
|
|
49
|
+
def retrieve(checkbook_id, params = {})
|
|
50
|
+
@client.request(
|
|
51
|
+
method: :get,
|
|
52
|
+
path: ["checkbooks/%1$s", checkbook_id],
|
|
53
|
+
model: Increase::Checkbook,
|
|
54
|
+
options: params[:request_options]
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# List Checkbooks
|
|
59
|
+
#
|
|
60
|
+
# @overload list(account_number_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
|
61
|
+
#
|
|
62
|
+
# @param account_number_id [String] Filter Checkbooks to those attached to the specified Account Number.
|
|
63
|
+
#
|
|
64
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
65
|
+
#
|
|
66
|
+
# @param idempotency_key [String]
|
|
67
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
68
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
69
|
+
# request is only processed once. Learn more about
|
|
70
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
71
|
+
#
|
|
72
|
+
# @param limit [Integer]
|
|
73
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
74
|
+
# objects.
|
|
75
|
+
#
|
|
76
|
+
# Defaults to `100`.
|
|
77
|
+
#
|
|
78
|
+
# @param status [Increase::Models::CheckbookListParams::Status]
|
|
79
|
+
#
|
|
80
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
81
|
+
#
|
|
82
|
+
# @return [Increase::Internal::Page<Increase::Models::Checkbook>]
|
|
83
|
+
#
|
|
84
|
+
# @see Increase::Models::CheckbookListParams
|
|
85
|
+
def list(params = {})
|
|
86
|
+
parsed, options = Increase::CheckbookListParams.dump_request(params)
|
|
87
|
+
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
88
|
+
@client.request(
|
|
89
|
+
method: :get,
|
|
90
|
+
path: "checkbooks",
|
|
91
|
+
query: query,
|
|
92
|
+
page: Increase::Internal::Page,
|
|
93
|
+
model: Increase::Checkbook,
|
|
94
|
+
options: options
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Stop a Checkbook. Stopping a Checkbook stops all of its checks that have not yet
|
|
99
|
+
# been deposited.
|
|
100
|
+
#
|
|
101
|
+
# @overload stop(checkbook_id, request_options: {})
|
|
102
|
+
#
|
|
103
|
+
# @param checkbook_id [String] The identifier of the Checkbook to stop.
|
|
104
|
+
#
|
|
105
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
106
|
+
#
|
|
107
|
+
# @return [Increase::Models::Checkbook]
|
|
108
|
+
#
|
|
109
|
+
# @see Increase::Models::CheckbookStopParams
|
|
110
|
+
def stop(checkbook_id, params = {})
|
|
111
|
+
@client.request(
|
|
112
|
+
method: :post,
|
|
113
|
+
path: ["checkbooks/%1$s/stop", checkbook_id],
|
|
114
|
+
model: Increase::Checkbook,
|
|
115
|
+
options: params[:request_options]
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @api private
|
|
120
|
+
#
|
|
121
|
+
# @param client [Increase::Client]
|
|
122
|
+
def initialize(client:)
|
|
123
|
+
@client = client
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -5,7 +5,7 @@ module Increase
|
|
|
5
5
|
class Entities
|
|
6
6
|
# Create an Entity
|
|
7
7
|
#
|
|
8
|
-
# @overload create(structure:, corporation: nil,
|
|
8
|
+
# @overload create(structure:, corporation: nil, government_authority: nil, joint: nil, natural_person: nil, sole_proprietorship: nil, supplemental_documents: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
|
|
9
9
|
#
|
|
10
10
|
# @param structure [Symbol, Increase::Models::EntityCreateParams::Structure] The type of Entity to create.
|
|
11
11
|
#
|
|
@@ -13,8 +13,6 @@ module Increase
|
|
|
13
13
|
# Details of the corporation entity to create. Required if `structure` is equal to
|
|
14
14
|
# `corporation`.
|
|
15
15
|
#
|
|
16
|
-
# @param description [String] The description you choose to give the entity.
|
|
17
|
-
#
|
|
18
16
|
# @param government_authority [Increase::Models::EntityCreateParams::GovernmentAuthority]
|
|
19
17
|
# Details of the Government Authority entity to create. Required if `structure` is
|
|
20
18
|
# equal to `government_authority`.
|
|
@@ -29,10 +27,6 @@ module Increase
|
|
|
29
27
|
# `social_security_number` or `individual_taxpayer_identification_number`
|
|
30
28
|
# identification methods.
|
|
31
29
|
#
|
|
32
|
-
# @param risk_rating [Increase::Models::EntityCreateParams::RiskRating]
|
|
33
|
-
# An assessment of the entity's potential risk of involvement in financial crimes,
|
|
34
|
-
# such as money laundering.
|
|
35
|
-
#
|
|
36
30
|
# @param sole_proprietorship [Increase::Models::EntityCreateParams::SoleProprietorship]
|
|
37
31
|
# Details of the sole proprietorship entity to create. Required if `structure` is
|
|
38
32
|
# equal to `sole_proprietorship`.
|
|
@@ -91,7 +85,7 @@ module Increase
|
|
|
91
85
|
|
|
92
86
|
# Update an Entity
|
|
93
87
|
#
|
|
94
|
-
# @overload update(entity_id, corporation: nil, details_confirmed_at: nil, government_authority: nil, natural_person: nil,
|
|
88
|
+
# @overload update(entity_id, corporation: nil, details_confirmed_at: nil, government_authority: nil, natural_person: nil, sole_proprietorship: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
|
|
95
89
|
#
|
|
96
90
|
# @param entity_id [String] The entity identifier.
|
|
97
91
|
#
|
|
@@ -112,10 +106,6 @@ module Increase
|
|
|
112
106
|
# Details of the natural person entity to update. If you specify this parameter
|
|
113
107
|
# and the entity is not a natural person, the request will fail.
|
|
114
108
|
#
|
|
115
|
-
# @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating]
|
|
116
|
-
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
117
|
-
# such as money laundering.
|
|
118
|
-
#
|
|
119
109
|
# @param sole_proprietorship [Increase::Models::EntityUpdateParams::SoleProprietorship]
|
|
120
110
|
# Details of the sole proprietorship entity to update. If you specify this
|
|
121
111
|
# parameter and the entity is not a sole proprietorship, the request will fail.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
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
|
+
#
|
|
11
|
+
# @overload mail(checkbook_id, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param checkbook_id [String] The identifier of the Checkbook you wish to mail.
|
|
14
|
+
#
|
|
15
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
|
+
#
|
|
17
|
+
# @return [Increase::Models::Checkbook]
|
|
18
|
+
#
|
|
19
|
+
# @see Increase::Models::Simulations::CheckbookMailParams
|
|
20
|
+
def mail(checkbook_id, params = {})
|
|
21
|
+
@client.request(
|
|
22
|
+
method: :post,
|
|
23
|
+
path: ["simulations/checkbooks/%1$s/mail", checkbook_id],
|
|
24
|
+
model: Increase::Checkbook,
|
|
25
|
+
options: params[:request_options]
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @api private
|
|
30
|
+
#
|
|
31
|
+
# @param client [Increase::Client]
|
|
32
|
+
def initialize(client:)
|
|
33
|
+
@client = client
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -72,6 +72,9 @@ module Increase
|
|
|
72
72
|
# @return [Increase::Resources::Simulations::CheckTransfers]
|
|
73
73
|
attr_reader :check_transfers
|
|
74
74
|
|
|
75
|
+
# @return [Increase::Resources::Simulations::Checkbooks]
|
|
76
|
+
attr_reader :checkbooks
|
|
77
|
+
|
|
75
78
|
# @return [Increase::Resources::Simulations::InboundCheckDeposits]
|
|
76
79
|
attr_reader :inbound_check_deposits
|
|
77
80
|
|
|
@@ -143,6 +146,7 @@ module Increase
|
|
|
143
146
|
@inbound_wire_drawdown_requests =
|
|
144
147
|
Increase::Resources::Simulations::InboundWireDrawdownRequests.new(client: client)
|
|
145
148
|
@check_transfers = Increase::Resources::Simulations::CheckTransfers.new(client: client)
|
|
149
|
+
@checkbooks = Increase::Resources::Simulations::Checkbooks.new(client: client)
|
|
146
150
|
@inbound_check_deposits = Increase::Resources::Simulations::InboundCheckDeposits.new(client: client)
|
|
147
151
|
@real_time_payments_transfers =
|
|
148
152
|
Increase::Resources::Simulations::RealTimePaymentsTransfers.new(client: client)
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -131,6 +131,15 @@ require_relative "increase/models/card_validation"
|
|
|
131
131
|
require_relative "increase/models/card_validation_create_params"
|
|
132
132
|
require_relative "increase/models/card_validation_list_params"
|
|
133
133
|
require_relative "increase/models/card_validation_retrieve_params"
|
|
134
|
+
require_relative "increase/models/checkbook"
|
|
135
|
+
require_relative "increase/models/checkbook_check"
|
|
136
|
+
require_relative "increase/models/checkbook_check_list_params"
|
|
137
|
+
require_relative "increase/models/checkbook_check_retrieve_params"
|
|
138
|
+
require_relative "increase/models/checkbook_check_stop_params"
|
|
139
|
+
require_relative "increase/models/checkbook_create_params"
|
|
140
|
+
require_relative "increase/models/checkbook_list_params"
|
|
141
|
+
require_relative "increase/models/checkbook_retrieve_params"
|
|
142
|
+
require_relative "increase/models/checkbook_stop_params"
|
|
134
143
|
require_relative "increase/models/check_deposit"
|
|
135
144
|
require_relative "increase/models/check_deposit_create_params"
|
|
136
145
|
require_relative "increase/models/check_deposit_list_params"
|
|
@@ -317,6 +326,7 @@ require_relative "increase/models/simulations/card_refund_create_params"
|
|
|
317
326
|
require_relative "increase/models/simulations/card_reversal_create_params"
|
|
318
327
|
require_relative "increase/models/simulations/card_settlement_create_params"
|
|
319
328
|
require_relative "increase/models/simulations/card_token_create_params"
|
|
329
|
+
require_relative "increase/models/simulations/checkbook_mail_params"
|
|
320
330
|
require_relative "increase/models/simulations/check_deposit_adjustment_params"
|
|
321
331
|
require_relative "increase/models/simulations/check_deposit_reject_params"
|
|
322
332
|
require_relative "increase/models/simulations/check_deposit_return_params"
|
|
@@ -384,6 +394,8 @@ require_relative "increase/resources/card_push_transfers"
|
|
|
384
394
|
require_relative "increase/resources/cards"
|
|
385
395
|
require_relative "increase/resources/card_tokens"
|
|
386
396
|
require_relative "increase/resources/card_validations"
|
|
397
|
+
require_relative "increase/resources/checkbook_checks"
|
|
398
|
+
require_relative "increase/resources/checkbooks"
|
|
387
399
|
require_relative "increase/resources/check_deposits"
|
|
388
400
|
require_relative "increase/resources/check_transfers"
|
|
389
401
|
require_relative "increase/resources/declined_transactions"
|
|
@@ -437,6 +449,7 @@ require_relative "increase/resources/simulations/card_refunds"
|
|
|
437
449
|
require_relative "increase/resources/simulations/card_reversals"
|
|
438
450
|
require_relative "increase/resources/simulations/card_settlements"
|
|
439
451
|
require_relative "increase/resources/simulations/card_tokens"
|
|
452
|
+
require_relative "increase/resources/simulations/checkbooks"
|
|
440
453
|
require_relative "increase/resources/simulations/check_deposits"
|
|
441
454
|
require_relative "increase/resources/simulations/check_transfers"
|
|
442
455
|
require_relative "increase/resources/simulations/digital_wallet_token_requests"
|
data/rbi/increase/client.rbi
CHANGED
|
@@ -94,6 +94,12 @@ module Increase
|
|
|
94
94
|
sig { returns(Increase::Resources::CheckTransfers) }
|
|
95
95
|
attr_reader :check_transfers
|
|
96
96
|
|
|
97
|
+
sig { returns(Increase::Resources::Checkbooks) }
|
|
98
|
+
attr_reader :checkbooks
|
|
99
|
+
|
|
100
|
+
sig { returns(Increase::Resources::CheckbookChecks) }
|
|
101
|
+
attr_reader :checkbook_checks
|
|
102
|
+
|
|
97
103
|
sig { returns(Increase::Resources::InboundCheckDeposits) }
|
|
98
104
|
attr_reader :inbound_check_deposits
|
|
99
105
|
|