increase 1.363.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 -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/card_payment.rb +6 -0
- data/lib/increase/models/card_update_params.rb +12 -8
- 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/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/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/card_payment.rbi +14 -0
- data/rbi/increase/models/card_update_params.rbi +17 -15
- 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/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/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/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/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/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,142 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookCheck < Increase::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Increase::CheckbookCheck, Increase::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The Checkbook Check's identifier.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The check number printed on the check.
|
|
16
|
+
sig { returns(Integer) }
|
|
17
|
+
attr_accessor :check_number
|
|
18
|
+
|
|
19
|
+
# The identifier of the Checkbook the check belongs to.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :checkbook_id
|
|
22
|
+
|
|
23
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
24
|
+
# the Checkbook Check was created.
|
|
25
|
+
sig { returns(Time) }
|
|
26
|
+
attr_accessor :created_at
|
|
27
|
+
|
|
28
|
+
# The status of the Checkbook Check.
|
|
29
|
+
sig { returns(Increase::CheckbookCheck::Status::TaggedSymbol) }
|
|
30
|
+
attr_accessor :status
|
|
31
|
+
|
|
32
|
+
# A constant representing the object's type. For this resource it will always be
|
|
33
|
+
# `checkbook_check`.
|
|
34
|
+
sig { returns(Increase::CheckbookCheck::Type::TaggedSymbol) }
|
|
35
|
+
attr_accessor :type
|
|
36
|
+
|
|
37
|
+
# A Checkbook Check is a single check within a Checkbook.
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
id: String,
|
|
41
|
+
check_number: Integer,
|
|
42
|
+
checkbook_id: String,
|
|
43
|
+
created_at: Time,
|
|
44
|
+
status: Increase::CheckbookCheck::Status::OrSymbol,
|
|
45
|
+
type: Increase::CheckbookCheck::Type::OrSymbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The Checkbook Check's identifier.
|
|
50
|
+
id:,
|
|
51
|
+
# The check number printed on the check.
|
|
52
|
+
check_number:,
|
|
53
|
+
# The identifier of the Checkbook the check belongs to.
|
|
54
|
+
checkbook_id:,
|
|
55
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
56
|
+
# the Checkbook Check was created.
|
|
57
|
+
created_at:,
|
|
58
|
+
# The status of the Checkbook Check.
|
|
59
|
+
status:,
|
|
60
|
+
# A constant representing the object's type. For this resource it will always be
|
|
61
|
+
# `checkbook_check`.
|
|
62
|
+
type:
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
override.returns(
|
|
68
|
+
{
|
|
69
|
+
id: String,
|
|
70
|
+
check_number: Integer,
|
|
71
|
+
checkbook_id: String,
|
|
72
|
+
created_at: Time,
|
|
73
|
+
status: Increase::CheckbookCheck::Status::TaggedSymbol,
|
|
74
|
+
type: Increase::CheckbookCheck::Type::TaggedSymbol
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# The status of the Checkbook Check.
|
|
82
|
+
module Status
|
|
83
|
+
extend Increase::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
TaggedSymbol =
|
|
86
|
+
T.type_alias { T.all(Symbol, Increase::CheckbookCheck::Status) }
|
|
87
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
88
|
+
|
|
89
|
+
# The check has not yet been deposited.
|
|
90
|
+
PENDING_DEPOSIT =
|
|
91
|
+
T.let(
|
|
92
|
+
:pending_deposit,
|
|
93
|
+
Increase::CheckbookCheck::Status::TaggedSymbol
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
# The check has been deposited.
|
|
97
|
+
DEPOSITED =
|
|
98
|
+
T.let(:deposited, Increase::CheckbookCheck::Status::TaggedSymbol)
|
|
99
|
+
|
|
100
|
+
# The check has been stopped and can no longer be deposited.
|
|
101
|
+
STOPPED =
|
|
102
|
+
T.let(:stopped, Increase::CheckbookCheck::Status::TaggedSymbol)
|
|
103
|
+
|
|
104
|
+
# The check requires attention from an Increase operator.
|
|
105
|
+
REQUIRES_ATTENTION =
|
|
106
|
+
T.let(
|
|
107
|
+
:requires_attention,
|
|
108
|
+
Increase::CheckbookCheck::Status::TaggedSymbol
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
sig do
|
|
112
|
+
override.returns(
|
|
113
|
+
T::Array[Increase::CheckbookCheck::Status::TaggedSymbol]
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
def self.values
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# A constant representing the object's type. For this resource it will always be
|
|
121
|
+
# `checkbook_check`.
|
|
122
|
+
module Type
|
|
123
|
+
extend Increase::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
TaggedSymbol =
|
|
126
|
+
T.type_alias { T.all(Symbol, Increase::CheckbookCheck::Type) }
|
|
127
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
128
|
+
|
|
129
|
+
CHECKBOOK_CHECK =
|
|
130
|
+
T.let(:checkbook_check, Increase::CheckbookCheck::Type::TaggedSymbol)
|
|
131
|
+
|
|
132
|
+
sig do
|
|
133
|
+
override.returns(
|
|
134
|
+
T::Array[Increase::CheckbookCheck::Type::TaggedSymbol]
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
def self.values
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookCheckListParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::CheckbookCheckListParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :account_number_id
|
|
17
|
+
|
|
18
|
+
sig { params(account_number_id: String).void }
|
|
19
|
+
attr_writer :account_number_id
|
|
20
|
+
|
|
21
|
+
# Filter Checkbook Checks to the one with the specified check number.
|
|
22
|
+
sig { returns(T.nilable(Integer)) }
|
|
23
|
+
attr_reader :check_number
|
|
24
|
+
|
|
25
|
+
sig { params(check_number: Integer).void }
|
|
26
|
+
attr_writer :check_number
|
|
27
|
+
|
|
28
|
+
# Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_reader :checkbook_id
|
|
31
|
+
|
|
32
|
+
sig { params(checkbook_id: String).void }
|
|
33
|
+
attr_writer :checkbook_id
|
|
34
|
+
|
|
35
|
+
# Return the page of entries after this one.
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
attr_reader :cursor
|
|
38
|
+
|
|
39
|
+
sig { params(cursor: String).void }
|
|
40
|
+
attr_writer :cursor
|
|
41
|
+
|
|
42
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
43
|
+
# objects.
|
|
44
|
+
#
|
|
45
|
+
# Defaults to `100`.
|
|
46
|
+
sig { returns(T.nilable(Integer)) }
|
|
47
|
+
attr_reader :limit
|
|
48
|
+
|
|
49
|
+
sig { params(limit: Integer).void }
|
|
50
|
+
attr_writer :limit
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
account_number_id: String,
|
|
55
|
+
check_number: Integer,
|
|
56
|
+
checkbook_id: String,
|
|
57
|
+
cursor: String,
|
|
58
|
+
limit: Integer,
|
|
59
|
+
request_options: Increase::RequestOptions::OrHash
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# Filter Checkbook Checks to those drawn on the specified Account Number.
|
|
64
|
+
account_number_id: nil,
|
|
65
|
+
# Filter Checkbook Checks to the one with the specified check number.
|
|
66
|
+
check_number: nil,
|
|
67
|
+
# Filter Checkbook Checks to those belonging to the specified Checkbook.
|
|
68
|
+
checkbook_id: nil,
|
|
69
|
+
# Return the page of entries after this one.
|
|
70
|
+
cursor: nil,
|
|
71
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
72
|
+
# objects.
|
|
73
|
+
#
|
|
74
|
+
# Defaults to `100`.
|
|
75
|
+
limit: nil,
|
|
76
|
+
request_options: {}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
override.returns(
|
|
82
|
+
{
|
|
83
|
+
account_number_id: String,
|
|
84
|
+
check_number: Integer,
|
|
85
|
+
checkbook_id: String,
|
|
86
|
+
cursor: String,
|
|
87
|
+
limit: Integer,
|
|
88
|
+
request_options: Increase::RequestOptions
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookCheckRetrieveParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CheckbookCheckRetrieveParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Checkbook Check.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :checkbook_check_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
checkbook_check_id: String,
|
|
24
|
+
request_options: Increase::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# The identifier of the Checkbook Check.
|
|
29
|
+
checkbook_check_id:,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
override.returns(
|
|
36
|
+
{
|
|
37
|
+
checkbook_check_id: String,
|
|
38
|
+
request_options: Increase::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
def to_hash
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookCheckStopParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::CheckbookCheckStopParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The identifier of the Checkbook Check to stop.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :checkbook_check_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
checkbook_check_id: String,
|
|
21
|
+
request_options: Increase::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
# The identifier of the Checkbook Check to stop.
|
|
26
|
+
checkbook_check_id:,
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{
|
|
34
|
+
checkbook_check_id: String,
|
|
35
|
+
request_options: Increase::RequestOptions
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookCreateParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::CheckbookCreateParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
15
|
+
# Number must be active.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :account_number_id
|
|
18
|
+
|
|
19
|
+
# The destination address that the Checkbook will be mailed to.
|
|
20
|
+
sig { returns(Increase::CheckbookCreateParams::MailingAddress) }
|
|
21
|
+
attr_reader :mailing_address
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
mailing_address:
|
|
26
|
+
Increase::CheckbookCreateParams::MailingAddress::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :mailing_address
|
|
30
|
+
|
|
31
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
32
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
33
|
+
# line of the payer.
|
|
34
|
+
sig { returns(T::Array[Increase::CheckbookCreateParams::Payer]) }
|
|
35
|
+
attr_accessor :payer
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
account_number_id: String,
|
|
40
|
+
mailing_address:
|
|
41
|
+
Increase::CheckbookCreateParams::MailingAddress::OrHash,
|
|
42
|
+
payer: T::Array[Increase::CheckbookCreateParams::Payer::OrHash],
|
|
43
|
+
request_options: Increase::RequestOptions::OrHash
|
|
44
|
+
).returns(T.attached_class)
|
|
45
|
+
end
|
|
46
|
+
def self.new(
|
|
47
|
+
# The identifier of the Account Number that the checks will draw from. The Account
|
|
48
|
+
# Number must be active.
|
|
49
|
+
account_number_id:,
|
|
50
|
+
# The destination address that the Checkbook will be mailed to.
|
|
51
|
+
mailing_address:,
|
|
52
|
+
# The payer of the checks. This will be printed on the top-left corner of each
|
|
53
|
+
# check. This should be an array of up to 4 elements, each of which represents a
|
|
54
|
+
# line of the payer.
|
|
55
|
+
payer:,
|
|
56
|
+
request_options: {}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
override.returns(
|
|
62
|
+
{
|
|
63
|
+
account_number_id: String,
|
|
64
|
+
mailing_address: Increase::CheckbookCreateParams::MailingAddress,
|
|
65
|
+
payer: T::Array[Increase::CheckbookCreateParams::Payer],
|
|
66
|
+
request_options: Increase::RequestOptions
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
def to_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class MailingAddress < Increase::Internal::Type::BaseModel
|
|
74
|
+
OrHash =
|
|
75
|
+
T.type_alias do
|
|
76
|
+
T.any(
|
|
77
|
+
Increase::CheckbookCreateParams::MailingAddress,
|
|
78
|
+
Increase::Internal::AnyHash
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# The city of the destination address.
|
|
83
|
+
sig { returns(String) }
|
|
84
|
+
attr_accessor :city
|
|
85
|
+
|
|
86
|
+
# The first line of the destination address.
|
|
87
|
+
sig { returns(String) }
|
|
88
|
+
attr_accessor :line1
|
|
89
|
+
|
|
90
|
+
# The recipient at the destination address.
|
|
91
|
+
sig { returns(String) }
|
|
92
|
+
attr_accessor :name
|
|
93
|
+
|
|
94
|
+
# The postal code of the destination address.
|
|
95
|
+
sig { returns(String) }
|
|
96
|
+
attr_accessor :postal_code
|
|
97
|
+
|
|
98
|
+
# The US state of the destination address.
|
|
99
|
+
sig { returns(String) }
|
|
100
|
+
attr_accessor :state
|
|
101
|
+
|
|
102
|
+
# The second line of the destination address.
|
|
103
|
+
sig { returns(T.nilable(String)) }
|
|
104
|
+
attr_reader :line2
|
|
105
|
+
|
|
106
|
+
sig { params(line2: String).void }
|
|
107
|
+
attr_writer :line2
|
|
108
|
+
|
|
109
|
+
# The destination address that the Checkbook will be mailed to.
|
|
110
|
+
sig do
|
|
111
|
+
params(
|
|
112
|
+
city: String,
|
|
113
|
+
line1: String,
|
|
114
|
+
name: String,
|
|
115
|
+
postal_code: String,
|
|
116
|
+
state: String,
|
|
117
|
+
line2: String
|
|
118
|
+
).returns(T.attached_class)
|
|
119
|
+
end
|
|
120
|
+
def self.new(
|
|
121
|
+
# The city of the destination address.
|
|
122
|
+
city:,
|
|
123
|
+
# The first line of the destination address.
|
|
124
|
+
line1:,
|
|
125
|
+
# The recipient at the destination address.
|
|
126
|
+
name:,
|
|
127
|
+
# The postal code of the destination address.
|
|
128
|
+
postal_code:,
|
|
129
|
+
# The US state of the destination address.
|
|
130
|
+
state:,
|
|
131
|
+
# The second line of the destination address.
|
|
132
|
+
line2: nil
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
override.returns(
|
|
138
|
+
{
|
|
139
|
+
city: String,
|
|
140
|
+
line1: String,
|
|
141
|
+
name: String,
|
|
142
|
+
postal_code: String,
|
|
143
|
+
state: String,
|
|
144
|
+
line2: String
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def to_hash
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
class Payer < Increase::Internal::Type::BaseModel
|
|
153
|
+
OrHash =
|
|
154
|
+
T.type_alias do
|
|
155
|
+
T.any(
|
|
156
|
+
Increase::CheckbookCreateParams::Payer,
|
|
157
|
+
Increase::Internal::AnyHash
|
|
158
|
+
)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# The contents of the line.
|
|
162
|
+
sig { returns(String) }
|
|
163
|
+
attr_accessor :contents
|
|
164
|
+
|
|
165
|
+
sig { params(contents: String).returns(T.attached_class) }
|
|
166
|
+
def self.new(
|
|
167
|
+
# The contents of the line.
|
|
168
|
+
contents:
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
sig { override.returns({ contents: String }) }
|
|
173
|
+
def to_hash
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CheckbookListParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::CheckbookListParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Filter Checkbooks to those attached to the specified Account Number.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :account_number_id
|
|
17
|
+
|
|
18
|
+
sig { params(account_number_id: String).void }
|
|
19
|
+
attr_writer :account_number_id
|
|
20
|
+
|
|
21
|
+
# Return the page of entries after this one.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :cursor
|
|
24
|
+
|
|
25
|
+
sig { params(cursor: String).void }
|
|
26
|
+
attr_writer :cursor
|
|
27
|
+
|
|
28
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
29
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
30
|
+
# request is only processed once. Learn more about
|
|
31
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :idempotency_key
|
|
34
|
+
|
|
35
|
+
sig { params(idempotency_key: String).void }
|
|
36
|
+
attr_writer :idempotency_key
|
|
37
|
+
|
|
38
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
39
|
+
# objects.
|
|
40
|
+
#
|
|
41
|
+
# Defaults to `100`.
|
|
42
|
+
sig { returns(T.nilable(Integer)) }
|
|
43
|
+
attr_reader :limit
|
|
44
|
+
|
|
45
|
+
sig { params(limit: Integer).void }
|
|
46
|
+
attr_writer :limit
|
|
47
|
+
|
|
48
|
+
sig { returns(T.nilable(Increase::CheckbookListParams::Status)) }
|
|
49
|
+
attr_reader :status
|
|
50
|
+
|
|
51
|
+
sig { params(status: Increase::CheckbookListParams::Status::OrHash).void }
|
|
52
|
+
attr_writer :status
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
account_number_id: String,
|
|
57
|
+
cursor: String,
|
|
58
|
+
idempotency_key: String,
|
|
59
|
+
limit: Integer,
|
|
60
|
+
status: Increase::CheckbookListParams::Status::OrHash,
|
|
61
|
+
request_options: Increase::RequestOptions::OrHash
|
|
62
|
+
).returns(T.attached_class)
|
|
63
|
+
end
|
|
64
|
+
def self.new(
|
|
65
|
+
# Filter Checkbooks to those attached to the specified Account Number.
|
|
66
|
+
account_number_id: nil,
|
|
67
|
+
# Return the page of entries after this one.
|
|
68
|
+
cursor: nil,
|
|
69
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
70
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
71
|
+
# request is only processed once. Learn more about
|
|
72
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
73
|
+
idempotency_key: nil,
|
|
74
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
75
|
+
# objects.
|
|
76
|
+
#
|
|
77
|
+
# Defaults to `100`.
|
|
78
|
+
limit: nil,
|
|
79
|
+
status: nil,
|
|
80
|
+
request_options: {}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
sig do
|
|
85
|
+
override.returns(
|
|
86
|
+
{
|
|
87
|
+
account_number_id: String,
|
|
88
|
+
cursor: String,
|
|
89
|
+
idempotency_key: String,
|
|
90
|
+
limit: Integer,
|
|
91
|
+
status: Increase::CheckbookListParams::Status,
|
|
92
|
+
request_options: Increase::RequestOptions
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
def to_hash
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
class Status < Increase::Internal::Type::BaseModel
|
|
100
|
+
OrHash =
|
|
101
|
+
T.type_alias do
|
|
102
|
+
T.any(
|
|
103
|
+
Increase::CheckbookListParams::Status,
|
|
104
|
+
Increase::Internal::AnyHash
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Filter Checkbooks for those with the specified status or statuses. For GET
|
|
109
|
+
# requests, this should be encoded as a comma-delimited string, such as
|
|
110
|
+
# `?in=one,two,three`.
|
|
111
|
+
sig do
|
|
112
|
+
returns(
|
|
113
|
+
T.nilable(
|
|
114
|
+
T::Array[Increase::CheckbookListParams::Status::In::OrSymbol]
|
|
115
|
+
)
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
attr_reader :in_
|
|
119
|
+
|
|
120
|
+
sig do
|
|
121
|
+
params(
|
|
122
|
+
in_: T::Array[Increase::CheckbookListParams::Status::In::OrSymbol]
|
|
123
|
+
).void
|
|
124
|
+
end
|
|
125
|
+
attr_writer :in_
|
|
126
|
+
|
|
127
|
+
sig do
|
|
128
|
+
params(
|
|
129
|
+
in_: T::Array[Increase::CheckbookListParams::Status::In::OrSymbol]
|
|
130
|
+
).returns(T.attached_class)
|
|
131
|
+
end
|
|
132
|
+
def self.new(
|
|
133
|
+
# Filter Checkbooks for those with the specified status or statuses. For GET
|
|
134
|
+
# requests, this should be encoded as a comma-delimited string, such as
|
|
135
|
+
# `?in=one,two,three`.
|
|
136
|
+
in_: nil
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
sig do
|
|
141
|
+
override.returns(
|
|
142
|
+
{
|
|
143
|
+
in_: T::Array[Increase::CheckbookListParams::Status::In::OrSymbol]
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
def to_hash
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
module In
|
|
151
|
+
extend Increase::Internal::Type::Enum
|
|
152
|
+
|
|
153
|
+
TaggedSymbol =
|
|
154
|
+
T.type_alias do
|
|
155
|
+
T.all(Symbol, Increase::CheckbookListParams::Status::In)
|
|
156
|
+
end
|
|
157
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
158
|
+
|
|
159
|
+
# The Checkbook is pending submission to the printer.
|
|
160
|
+
PENDING_SUBMISSION =
|
|
161
|
+
T.let(
|
|
162
|
+
:pending_submission,
|
|
163
|
+
Increase::CheckbookListParams::Status::In::TaggedSymbol
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
# The Checkbook has been submitted to the printer and is pending mailing.
|
|
167
|
+
PENDING_MAILING =
|
|
168
|
+
T.let(
|
|
169
|
+
:pending_mailing,
|
|
170
|
+
Increase::CheckbookListParams::Status::In::TaggedSymbol
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
# The Checkbook has been mailed.
|
|
174
|
+
MAILED =
|
|
175
|
+
T.let(
|
|
176
|
+
:mailed,
|
|
177
|
+
Increase::CheckbookListParams::Status::In::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
# The Checkbook has been stopped and its checks can no longer be deposited.
|
|
181
|
+
STOPPED =
|
|
182
|
+
T.let(
|
|
183
|
+
:stopped,
|
|
184
|
+
Increase::CheckbookListParams::Status::In::TaggedSymbol
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
sig do
|
|
188
|
+
override.returns(
|
|
189
|
+
T::Array[Increase::CheckbookListParams::Status::In::TaggedSymbol]
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
def self.values
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|