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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::CheckbookChecks#retrieve
|
|
6
|
+
class CheckbookCheck < Increase::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The Checkbook Check's identifier.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute check_number
|
|
14
|
+
# The check number printed on the check.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :check_number, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute checkbook_id
|
|
20
|
+
# The identifier of the Checkbook the check belongs to.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :checkbook_id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute created_at
|
|
26
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
27
|
+
# the Checkbook Check was created.
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
32
|
+
# @!attribute status
|
|
33
|
+
# The status of the Checkbook Check.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Increase::Models::CheckbookCheck::Status]
|
|
36
|
+
required :status, enum: -> { Increase::CheckbookCheck::Status }
|
|
37
|
+
|
|
38
|
+
# @!attribute type
|
|
39
|
+
# A constant representing the object's type. For this resource it will always be
|
|
40
|
+
# `checkbook_check`.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, Increase::Models::CheckbookCheck::Type]
|
|
43
|
+
required :type, enum: -> { Increase::CheckbookCheck::Type }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, check_number:, checkbook_id:, created_at:, status:, type:)
|
|
46
|
+
# A Checkbook Check is a single check within a Checkbook.
|
|
47
|
+
#
|
|
48
|
+
# @param id [String] The Checkbook Check's identifier.
|
|
49
|
+
#
|
|
50
|
+
# @param check_number [Integer] The check number printed on the check.
|
|
51
|
+
#
|
|
52
|
+
# @param checkbook_id [String] The identifier of the Checkbook the check belongs to.
|
|
53
|
+
#
|
|
54
|
+
# @param created_at [Time]
|
|
55
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
56
|
+
# the Checkbook Check was created.
|
|
57
|
+
#
|
|
58
|
+
# @param status [Symbol, Increase::Models::CheckbookCheck::Status] The status of the Checkbook Check.
|
|
59
|
+
#
|
|
60
|
+
# @param type [Symbol, Increase::Models::CheckbookCheck::Type]
|
|
61
|
+
# A constant representing the object's type. For this resource it will always be
|
|
62
|
+
# `checkbook_check`.
|
|
63
|
+
|
|
64
|
+
# The status of the Checkbook Check.
|
|
65
|
+
#
|
|
66
|
+
# @see Increase::Models::CheckbookCheck#status
|
|
67
|
+
module Status
|
|
68
|
+
extend Increase::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
# The check has not yet been deposited.
|
|
71
|
+
PENDING_DEPOSIT = :pending_deposit
|
|
72
|
+
|
|
73
|
+
# The check has been deposited.
|
|
74
|
+
DEPOSITED = :deposited
|
|
75
|
+
|
|
76
|
+
# The check has been stopped and can no longer be deposited.
|
|
77
|
+
STOPPED = :stopped
|
|
78
|
+
|
|
79
|
+
# The check requires attention from an Increase operator.
|
|
80
|
+
REQUIRES_ATTENTION = :requires_attention
|
|
81
|
+
|
|
82
|
+
# @!method self.values
|
|
83
|
+
# @return [Array<Symbol>]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# A constant representing the object's type. For this resource it will always be
|
|
87
|
+
# `checkbook_check`.
|
|
88
|
+
#
|
|
89
|
+
# @see Increase::Models::CheckbookCheck#type
|
|
90
|
+
module Type
|
|
91
|
+
extend Increase::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
CHECKBOOK_CHECK = :checkbook_check
|
|
94
|
+
|
|
95
|
+
# @!method self.values
|
|
96
|
+
# @return [Array<Symbol>]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::CheckbookChecks#list
|
|
6
|
+
class CheckbookCheckListParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_number_id
|
|
11
|
+
# Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :account_number_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute check_number
|
|
17
|
+
# Filter Checkbook Checks to the one with the specified check number.
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :check_number, Integer
|
|
21
|
+
|
|
22
|
+
# @!attribute checkbook_id
|
|
23
|
+
# Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :checkbook_id, String
|
|
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
|
+
# Defaults to `100`.
|
|
39
|
+
#
|
|
40
|
+
# @return [Integer, nil]
|
|
41
|
+
optional :limit, Integer
|
|
42
|
+
|
|
43
|
+
# @!method initialize(account_number_id: nil, check_number: nil, checkbook_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
44
|
+
# @param account_number_id [String] Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
45
|
+
#
|
|
46
|
+
# @param check_number [Integer] Filter Checkbook Checks to the one with the specified check number.
|
|
47
|
+
#
|
|
48
|
+
# @param checkbook_id [String] Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
49
|
+
#
|
|
50
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
51
|
+
#
|
|
52
|
+
# @param limit [Integer]
|
|
53
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
54
|
+
# objects.
|
|
55
|
+
#
|
|
56
|
+
# Defaults to `100`.
|
|
57
|
+
#
|
|
58
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::CheckbookChecks#retrieve
|
|
6
|
+
class CheckbookCheckRetrieveParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute checkbook_check_id
|
|
11
|
+
# The identifier of the Checkbook Check.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :checkbook_check_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(checkbook_check_id:, request_options: {})
|
|
17
|
+
# @param checkbook_check_id [String] The identifier of the Checkbook Check.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::CheckbookChecks#stop
|
|
6
|
+
class CheckbookCheckStopParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute checkbook_check_id
|
|
11
|
+
# The identifier of the Checkbook Check to stop.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :checkbook_check_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(checkbook_check_id:, request_options: {})
|
|
17
|
+
# @param checkbook_check_id [String] The identifier of the Checkbook Check to stop.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Checkbooks#create
|
|
6
|
+
class CheckbookCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_number_id
|
|
11
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
12
|
+
# Number must be active.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :account_number_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute mailing_address
|
|
18
|
+
# The destination address that the Checkbook will be mailed to.
|
|
19
|
+
#
|
|
20
|
+
# @return [Increase::Models::CheckbookCreateParams::MailingAddress]
|
|
21
|
+
required :mailing_address, -> { Increase::CheckbookCreateParams::MailingAddress }
|
|
22
|
+
|
|
23
|
+
# @!attribute payer
|
|
24
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
25
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
26
|
+
# line of the payer.
|
|
27
|
+
#
|
|
28
|
+
# @return [Array<Increase::Models::CheckbookCreateParams::Payer>]
|
|
29
|
+
required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::CheckbookCreateParams::Payer] }
|
|
30
|
+
|
|
31
|
+
# @!method initialize(account_number_id:, mailing_address:, payer:, request_options: {})
|
|
32
|
+
# @param account_number_id [String]
|
|
33
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
34
|
+
# Number must be active.
|
|
35
|
+
#
|
|
36
|
+
# @param mailing_address [Increase::Models::CheckbookCreateParams::MailingAddress]
|
|
37
|
+
# The destination address that the Checkbook will be mailed to.
|
|
38
|
+
#
|
|
39
|
+
# @param payer [Array<Increase::Models::CheckbookCreateParams::Payer>]
|
|
40
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
41
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
42
|
+
# line of the payer.
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
45
|
+
|
|
46
|
+
class MailingAddress < Increase::Internal::Type::BaseModel
|
|
47
|
+
# @!attribute city
|
|
48
|
+
# The city of the destination address.
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
required :city, String
|
|
52
|
+
|
|
53
|
+
# @!attribute line1
|
|
54
|
+
# The first line of the destination address.
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :line1, String
|
|
58
|
+
|
|
59
|
+
# @!attribute name
|
|
60
|
+
# The recipient at the destination address.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
required :name, String
|
|
64
|
+
|
|
65
|
+
# @!attribute postal_code
|
|
66
|
+
# The postal code of the destination address.
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
required :postal_code, String
|
|
70
|
+
|
|
71
|
+
# @!attribute state
|
|
72
|
+
# The US state of the destination address.
|
|
73
|
+
#
|
|
74
|
+
# @return [String]
|
|
75
|
+
required :state, String
|
|
76
|
+
|
|
77
|
+
# @!attribute line2
|
|
78
|
+
# The second line of the destination address.
|
|
79
|
+
#
|
|
80
|
+
# @return [String, nil]
|
|
81
|
+
optional :line2, String
|
|
82
|
+
|
|
83
|
+
# @!method initialize(city:, line1:, name:, postal_code:, state:, line2: nil)
|
|
84
|
+
# The destination address that the Checkbook will be mailed to.
|
|
85
|
+
#
|
|
86
|
+
# @param city [String] The city of the destination address.
|
|
87
|
+
#
|
|
88
|
+
# @param line1 [String] The first line of the destination address.
|
|
89
|
+
#
|
|
90
|
+
# @param name [String] The recipient at the destination address.
|
|
91
|
+
#
|
|
92
|
+
# @param postal_code [String] The postal code of the destination address.
|
|
93
|
+
#
|
|
94
|
+
# @param state [String] The US state of the destination address.
|
|
95
|
+
#
|
|
96
|
+
# @param line2 [String] The second line of the destination address.
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
class Payer < Increase::Internal::Type::BaseModel
|
|
100
|
+
# @!attribute contents
|
|
101
|
+
# The contents of the line.
|
|
102
|
+
#
|
|
103
|
+
# @return [String]
|
|
104
|
+
required :contents, String
|
|
105
|
+
|
|
106
|
+
# @!method initialize(contents:)
|
|
107
|
+
# @param contents [String] The contents of the line.
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Checkbooks#list
|
|
6
|
+
class CheckbookListParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_number_id
|
|
11
|
+
# Filter Checkbooks to those attached to the specified Account Number.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :account_number_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute cursor
|
|
17
|
+
# Return the page of entries after this one.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :cursor, String
|
|
21
|
+
|
|
22
|
+
# @!attribute idempotency_key
|
|
23
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
24
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
25
|
+
# request is only processed once. Learn more about
|
|
26
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :idempotency_key, String
|
|
30
|
+
|
|
31
|
+
# @!attribute limit
|
|
32
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
33
|
+
# objects.
|
|
34
|
+
#
|
|
35
|
+
# Defaults to `100`.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :limit, Integer
|
|
39
|
+
|
|
40
|
+
# @!attribute status
|
|
41
|
+
#
|
|
42
|
+
# @return [Increase::Models::CheckbookListParams::Status, nil]
|
|
43
|
+
optional :status, -> { Increase::CheckbookListParams::Status }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(account_number_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
|
46
|
+
# @param account_number_id [String] Filter Checkbooks to those attached to the specified Account Number.
|
|
47
|
+
#
|
|
48
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
49
|
+
#
|
|
50
|
+
# @param idempotency_key [String]
|
|
51
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
52
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
53
|
+
# request is only processed once. Learn more about
|
|
54
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
55
|
+
#
|
|
56
|
+
# @param limit [Integer]
|
|
57
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
58
|
+
# objects.
|
|
59
|
+
#
|
|
60
|
+
# Defaults to `100`.
|
|
61
|
+
#
|
|
62
|
+
# @param status [Increase::Models::CheckbookListParams::Status]
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
65
|
+
|
|
66
|
+
class Status < Increase::Internal::Type::BaseModel
|
|
67
|
+
# @!attribute in_
|
|
68
|
+
# Filter Checkbooks for those with the specified status or statuses. For GET
|
|
69
|
+
# requests, this should be encoded as a comma-delimited string, such as
|
|
70
|
+
# `?in=one,two,three`.
|
|
71
|
+
#
|
|
72
|
+
# @return [Array<Symbol, Increase::Models::CheckbookListParams::Status::In>, nil]
|
|
73
|
+
optional :in_,
|
|
74
|
+
-> { Increase::Internal::Type::ArrayOf[enum: Increase::CheckbookListParams::Status::In] },
|
|
75
|
+
api_name: :in
|
|
76
|
+
|
|
77
|
+
# @!method initialize(in_: nil)
|
|
78
|
+
# @param in_ [Array<Symbol, Increase::Models::CheckbookListParams::Status::In>]
|
|
79
|
+
# Filter Checkbooks for those with the specified status or statuses. For GET
|
|
80
|
+
# requests, this should be encoded as a comma-delimited string, such as
|
|
81
|
+
# `?in=one,two,three`.
|
|
82
|
+
|
|
83
|
+
module In
|
|
84
|
+
extend Increase::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
# The Checkbook is pending submission to the printer.
|
|
87
|
+
PENDING_SUBMISSION = :pending_submission
|
|
88
|
+
|
|
89
|
+
# The Checkbook has been submitted to the printer and is pending mailing.
|
|
90
|
+
PENDING_MAILING = :pending_mailing
|
|
91
|
+
|
|
92
|
+
# The Checkbook has been mailed.
|
|
93
|
+
MAILED = :mailed
|
|
94
|
+
|
|
95
|
+
# The Checkbook has been stopped and its checks can no longer be deposited.
|
|
96
|
+
STOPPED = :stopped
|
|
97
|
+
|
|
98
|
+
# @!method self.values
|
|
99
|
+
# @return [Array<Symbol>]
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Checkbooks#retrieve
|
|
6
|
+
class CheckbookRetrieveParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute checkbook_id
|
|
11
|
+
# The identifier of the Checkbook.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :checkbook_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(checkbook_id:, request_options: {})
|
|
17
|
+
# @param checkbook_id [String] The identifier of the Checkbook.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Checkbooks#stop
|
|
6
|
+
class CheckbookStopParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute checkbook_id
|
|
11
|
+
# The identifier of the Checkbook to stop.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :checkbook_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(checkbook_id:, request_options: {})
|
|
17
|
+
# @param checkbook_id [String] The identifier of the Checkbook to stop.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -2166,6 +2166,12 @@ module Increase
|
|
|
2166
2166
|
# @return [String, nil]
|
|
2167
2167
|
required :check_transfer_id, String, nil?: true
|
|
2168
2168
|
|
|
2169
|
+
# @!attribute checkbook_check_id
|
|
2170
|
+
# The identifier of the Checkbook Check object associated with this decline.
|
|
2171
|
+
#
|
|
2172
|
+
# @return [String, nil]
|
|
2173
|
+
required :checkbook_check_id, String, nil?: true
|
|
2174
|
+
|
|
2169
2175
|
# @!attribute front_image_file_id
|
|
2170
2176
|
# The identifier of the API File object containing an image of the front of the
|
|
2171
2177
|
# declined check.
|
|
@@ -2185,7 +2191,7 @@ module Increase
|
|
|
2185
2191
|
# @return [Symbol, Increase::Models::DeclinedTransaction::Source::CheckDecline::Reason]
|
|
2186
2192
|
required :reason, enum: -> { Increase::DeclinedTransaction::Source::CheckDecline::Reason }
|
|
2187
2193
|
|
|
2188
|
-
# @!method initialize(amount:, auxiliary_on_us:, back_image_file_id:, check_transfer_id:, front_image_file_id:, inbound_check_deposit_id:, reason:)
|
|
2194
|
+
# @!method initialize(amount:, auxiliary_on_us:, back_image_file_id:, check_transfer_id:, checkbook_check_id:, front_image_file_id:, inbound_check_deposit_id:, reason:)
|
|
2189
2195
|
# A Check Decline object. This field will be present in the JSON response if and
|
|
2190
2196
|
# only if `category` is equal to `check_decline`.
|
|
2191
2197
|
#
|
|
@@ -2203,6 +2209,9 @@ module Increase
|
|
|
2203
2209
|
# @param check_transfer_id [String, nil]
|
|
2204
2210
|
# The identifier of the Check Transfer object associated with this decline.
|
|
2205
2211
|
#
|
|
2212
|
+
# @param checkbook_check_id [String, nil]
|
|
2213
|
+
# The identifier of the Checkbook Check object associated with this decline.
|
|
2214
|
+
#
|
|
2206
2215
|
# @param front_image_file_id [String, nil]
|
|
2207
2216
|
# The identifier of the API File object containing an image of the front of the
|
|
2208
2217
|
# declined check.
|
|
@@ -31,12 +31,6 @@ module Increase
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
required :creating_entity_onboarding_session_id, String, nil?: true
|
|
33
33
|
|
|
34
|
-
# @!attribute description
|
|
35
|
-
# The entity's description for display purposes.
|
|
36
|
-
#
|
|
37
|
-
# @return [String, nil]
|
|
38
|
-
required :description, String, nil?: true
|
|
39
|
-
|
|
40
34
|
# @!attribute details_confirmed_at
|
|
41
35
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
42
36
|
# Entity's details were most recently confirmed.
|
|
@@ -72,13 +66,6 @@ module Increase
|
|
|
72
66
|
# @return [Increase::Models::Entity::NaturalPerson, nil]
|
|
73
67
|
required :natural_person, -> { Increase::Entity::NaturalPerson }, nil?: true
|
|
74
68
|
|
|
75
|
-
# @!attribute risk_rating
|
|
76
|
-
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
77
|
-
# such as money laundering.
|
|
78
|
-
#
|
|
79
|
-
# @return [Increase::Models::Entity::RiskRating, nil]
|
|
80
|
-
required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true
|
|
81
|
-
|
|
82
69
|
# @!attribute sole_proprietorship
|
|
83
70
|
# Details of the sole proprietorship entity. Will be present if `structure` is
|
|
84
71
|
# equal to `sole_proprietorship`.
|
|
@@ -142,7 +129,7 @@ module Increase
|
|
|
142
129
|
# @return [Increase::Models::Entity::Validation, nil]
|
|
143
130
|
required :validation, -> { Increase::Entity::Validation }, nil?: true
|
|
144
131
|
|
|
145
|
-
# @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:,
|
|
132
|
+
# @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, sole_proprietorship:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
|
|
146
133
|
# Entities are the legal entities that own accounts. They can be people,
|
|
147
134
|
# corporations, joint accounts, trusts, or government authorities. To learn more,
|
|
148
135
|
# see [Entities](/documentation/entities).
|
|
@@ -161,8 +148,6 @@ module Increase
|
|
|
161
148
|
# The identifier of the Entity Onboarding Session that was used to create this
|
|
162
149
|
# Entity, if any.
|
|
163
150
|
#
|
|
164
|
-
# @param description [String, nil] The entity's description for display purposes.
|
|
165
|
-
#
|
|
166
151
|
# @param details_confirmed_at [Time, nil]
|
|
167
152
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
168
153
|
# Entity's details were most recently confirmed.
|
|
@@ -183,10 +168,6 @@ module Increase
|
|
|
183
168
|
# Details of the natural person entity. Will be present if `structure` is equal to
|
|
184
169
|
# `natural_person`.
|
|
185
170
|
#
|
|
186
|
-
# @param risk_rating [Increase::Models::Entity::RiskRating, nil]
|
|
187
|
-
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
188
|
-
# such as money laundering.
|
|
189
|
-
#
|
|
190
171
|
# @param sole_proprietorship [Increase::Models::Entity::SoleProprietorship, nil]
|
|
191
172
|
# Details of the sole proprietorship entity. Will be present if `structure` is
|
|
192
173
|
# equal to `sole_proprietorship`.
|
|
@@ -1129,51 +1110,6 @@ module Increase
|
|
|
1129
1110
|
end
|
|
1130
1111
|
end
|
|
1131
1112
|
|
|
1132
|
-
# @see Increase::Models::Entity#risk_rating
|
|
1133
|
-
class RiskRating < Increase::Internal::Type::BaseModel
|
|
1134
|
-
# @!attribute rated_at
|
|
1135
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
|
1136
|
-
# rating was performed.
|
|
1137
|
-
#
|
|
1138
|
-
# @return [Time]
|
|
1139
|
-
required :rated_at, Time
|
|
1140
|
-
|
|
1141
|
-
# @!attribute rating
|
|
1142
|
-
# The rating given to this entity.
|
|
1143
|
-
#
|
|
1144
|
-
# @return [Symbol, Increase::Models::Entity::RiskRating::Rating]
|
|
1145
|
-
required :rating, enum: -> { Increase::Entity::RiskRating::Rating }
|
|
1146
|
-
|
|
1147
|
-
# @!method initialize(rated_at:, rating:)
|
|
1148
|
-
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
1149
|
-
# such as money laundering.
|
|
1150
|
-
#
|
|
1151
|
-
# @param rated_at [Time]
|
|
1152
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
|
|
1153
|
-
# rating was performed.
|
|
1154
|
-
#
|
|
1155
|
-
# @param rating [Symbol, Increase::Models::Entity::RiskRating::Rating] The rating given to this entity.
|
|
1156
|
-
|
|
1157
|
-
# The rating given to this entity.
|
|
1158
|
-
#
|
|
1159
|
-
# @see Increase::Models::Entity::RiskRating#rating
|
|
1160
|
-
module Rating
|
|
1161
|
-
extend Increase::Internal::Type::Enum
|
|
1162
|
-
|
|
1163
|
-
# Minimal risk of involvement in financial crime.
|
|
1164
|
-
LOW = :low
|
|
1165
|
-
|
|
1166
|
-
# Moderate risk of involvement in financial crime.
|
|
1167
|
-
MEDIUM = :medium
|
|
1168
|
-
|
|
1169
|
-
# Elevated risk of involvement in financial crime.
|
|
1170
|
-
HIGH = :high
|
|
1171
|
-
|
|
1172
|
-
# @!method self.values
|
|
1173
|
-
# @return [Array<Symbol>]
|
|
1174
|
-
end
|
|
1175
|
-
end
|
|
1176
|
-
|
|
1177
1113
|
# @see Increase::Models::Entity#sole_proprietorship
|
|
1178
1114
|
class SoleProprietorship < Increase::Internal::Type::BaseModel
|
|
1179
1115
|
# @!attribute address
|