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,507 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class Checkbook < Increase::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Increase::Checkbook, Increase::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
# The Checkbook's identifier.
|
|
10
|
+
sig { returns(String) }
|
|
11
|
+
attr_accessor :id
|
|
12
|
+
|
|
13
|
+
# The identifier of the Account Number the Checkbook is attached to.
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :account_number_id
|
|
16
|
+
|
|
17
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
18
|
+
# the Checkbook was created.
|
|
19
|
+
sig { returns(Time) }
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
|
|
22
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
23
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
24
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_accessor :idempotency_key
|
|
27
|
+
|
|
28
|
+
# The destination address that the Checkbook will be mailed to.
|
|
29
|
+
sig { returns(Increase::Checkbook::MailingAddress) }
|
|
30
|
+
attr_reader :mailing_address
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
mailing_address: Increase::Checkbook::MailingAddress::OrHash
|
|
35
|
+
).void
|
|
36
|
+
end
|
|
37
|
+
attr_writer :mailing_address
|
|
38
|
+
|
|
39
|
+
# The payer information printed on the top-left corner of each check.
|
|
40
|
+
sig { returns(T::Array[Increase::Checkbook::Payer]) }
|
|
41
|
+
attr_accessor :payer
|
|
42
|
+
|
|
43
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
44
|
+
sig { returns(Increase::Checkbook::ReturnAddress) }
|
|
45
|
+
attr_reader :return_address
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
params(return_address: Increase::Checkbook::ReturnAddress::OrHash).void
|
|
49
|
+
end
|
|
50
|
+
attr_writer :return_address
|
|
51
|
+
|
|
52
|
+
# The lifecycle status of the Checkbook.
|
|
53
|
+
sig { returns(Increase::Checkbook::Status::TaggedSymbol) }
|
|
54
|
+
attr_accessor :status
|
|
55
|
+
|
|
56
|
+
# The physical format of the Checkbook.
|
|
57
|
+
sig { returns(Increase::Checkbook::Style::TaggedSymbol) }
|
|
58
|
+
attr_accessor :style
|
|
59
|
+
|
|
60
|
+
# Tracking updates relating to the Checkbook's delivery.
|
|
61
|
+
sig { returns(T::Array[Increase::Checkbook::TrackingUpdate]) }
|
|
62
|
+
attr_accessor :tracking_updates
|
|
63
|
+
|
|
64
|
+
# A constant representing the object's type. For this resource it will always be
|
|
65
|
+
# `checkbook`.
|
|
66
|
+
sig { returns(Increase::Checkbook::Type::TaggedSymbol) }
|
|
67
|
+
attr_accessor :type
|
|
68
|
+
|
|
69
|
+
# Checkbooks are sets of blank checks that Increase prints and mails on your
|
|
70
|
+
# behalf.
|
|
71
|
+
sig do
|
|
72
|
+
params(
|
|
73
|
+
id: String,
|
|
74
|
+
account_number_id: String,
|
|
75
|
+
created_at: Time,
|
|
76
|
+
idempotency_key: T.nilable(String),
|
|
77
|
+
mailing_address: Increase::Checkbook::MailingAddress::OrHash,
|
|
78
|
+
payer: T::Array[Increase::Checkbook::Payer::OrHash],
|
|
79
|
+
return_address: Increase::Checkbook::ReturnAddress::OrHash,
|
|
80
|
+
status: Increase::Checkbook::Status::OrSymbol,
|
|
81
|
+
style: Increase::Checkbook::Style::OrSymbol,
|
|
82
|
+
tracking_updates:
|
|
83
|
+
T::Array[Increase::Checkbook::TrackingUpdate::OrHash],
|
|
84
|
+
type: Increase::Checkbook::Type::OrSymbol
|
|
85
|
+
).returns(T.attached_class)
|
|
86
|
+
end
|
|
87
|
+
def self.new(
|
|
88
|
+
# The Checkbook's identifier.
|
|
89
|
+
id:,
|
|
90
|
+
# The identifier of the Account Number the Checkbook is attached to.
|
|
91
|
+
account_number_id:,
|
|
92
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
93
|
+
# the Checkbook was created.
|
|
94
|
+
created_at:,
|
|
95
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
96
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
97
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
98
|
+
idempotency_key:,
|
|
99
|
+
# The destination address that the Checkbook will be mailed to.
|
|
100
|
+
mailing_address:,
|
|
101
|
+
# The payer information printed on the top-left corner of each check.
|
|
102
|
+
payer:,
|
|
103
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
104
|
+
return_address:,
|
|
105
|
+
# The lifecycle status of the Checkbook.
|
|
106
|
+
status:,
|
|
107
|
+
# The physical format of the Checkbook.
|
|
108
|
+
style:,
|
|
109
|
+
# Tracking updates relating to the Checkbook's delivery.
|
|
110
|
+
tracking_updates:,
|
|
111
|
+
# A constant representing the object's type. For this resource it will always be
|
|
112
|
+
# `checkbook`.
|
|
113
|
+
type:
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
sig do
|
|
118
|
+
override.returns(
|
|
119
|
+
{
|
|
120
|
+
id: String,
|
|
121
|
+
account_number_id: String,
|
|
122
|
+
created_at: Time,
|
|
123
|
+
idempotency_key: T.nilable(String),
|
|
124
|
+
mailing_address: Increase::Checkbook::MailingAddress,
|
|
125
|
+
payer: T::Array[Increase::Checkbook::Payer],
|
|
126
|
+
return_address: Increase::Checkbook::ReturnAddress,
|
|
127
|
+
status: Increase::Checkbook::Status::TaggedSymbol,
|
|
128
|
+
style: Increase::Checkbook::Style::TaggedSymbol,
|
|
129
|
+
tracking_updates: T::Array[Increase::Checkbook::TrackingUpdate],
|
|
130
|
+
type: Increase::Checkbook::Type::TaggedSymbol
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
def to_hash
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class MailingAddress < Increase::Internal::Type::BaseModel
|
|
138
|
+
OrHash =
|
|
139
|
+
T.type_alias do
|
|
140
|
+
T.any(
|
|
141
|
+
Increase::Checkbook::MailingAddress,
|
|
142
|
+
Increase::Internal::AnyHash
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# The city of the destination address.
|
|
147
|
+
sig { returns(String) }
|
|
148
|
+
attr_accessor :city
|
|
149
|
+
|
|
150
|
+
# The first line of the destination address.
|
|
151
|
+
sig { returns(String) }
|
|
152
|
+
attr_accessor :line1
|
|
153
|
+
|
|
154
|
+
# The second line of the destination address.
|
|
155
|
+
sig { returns(T.nilable(String)) }
|
|
156
|
+
attr_accessor :line2
|
|
157
|
+
|
|
158
|
+
# The recipient at the destination address.
|
|
159
|
+
sig { returns(String) }
|
|
160
|
+
attr_accessor :name
|
|
161
|
+
|
|
162
|
+
# The postal code of the destination address.
|
|
163
|
+
sig { returns(String) }
|
|
164
|
+
attr_accessor :postal_code
|
|
165
|
+
|
|
166
|
+
# The state of the destination address.
|
|
167
|
+
sig { returns(String) }
|
|
168
|
+
attr_accessor :state
|
|
169
|
+
|
|
170
|
+
# The destination address that the Checkbook will be mailed to.
|
|
171
|
+
sig do
|
|
172
|
+
params(
|
|
173
|
+
city: String,
|
|
174
|
+
line1: String,
|
|
175
|
+
line2: T.nilable(String),
|
|
176
|
+
name: String,
|
|
177
|
+
postal_code: String,
|
|
178
|
+
state: String
|
|
179
|
+
).returns(T.attached_class)
|
|
180
|
+
end
|
|
181
|
+
def self.new(
|
|
182
|
+
# The city of the destination address.
|
|
183
|
+
city:,
|
|
184
|
+
# The first line of the destination address.
|
|
185
|
+
line1:,
|
|
186
|
+
# The second line of the destination address.
|
|
187
|
+
line2:,
|
|
188
|
+
# The recipient at the destination address.
|
|
189
|
+
name:,
|
|
190
|
+
# The postal code of the destination address.
|
|
191
|
+
postal_code:,
|
|
192
|
+
# The state of the destination address.
|
|
193
|
+
state:
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
sig do
|
|
198
|
+
override.returns(
|
|
199
|
+
{
|
|
200
|
+
city: String,
|
|
201
|
+
line1: String,
|
|
202
|
+
line2: T.nilable(String),
|
|
203
|
+
name: String,
|
|
204
|
+
postal_code: String,
|
|
205
|
+
state: String
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
end
|
|
209
|
+
def to_hash
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
class Payer < Increase::Internal::Type::BaseModel
|
|
214
|
+
OrHash =
|
|
215
|
+
T.type_alias do
|
|
216
|
+
T.any(Increase::Checkbook::Payer, Increase::Internal::AnyHash)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# The contents of the line.
|
|
220
|
+
sig { returns(String) }
|
|
221
|
+
attr_accessor :contents
|
|
222
|
+
|
|
223
|
+
sig { params(contents: String).returns(T.attached_class) }
|
|
224
|
+
def self.new(
|
|
225
|
+
# The contents of the line.
|
|
226
|
+
contents:
|
|
227
|
+
)
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
sig { override.returns({ contents: String }) }
|
|
231
|
+
def to_hash
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
class ReturnAddress < Increase::Internal::Type::BaseModel
|
|
236
|
+
OrHash =
|
|
237
|
+
T.type_alias do
|
|
238
|
+
T.any(
|
|
239
|
+
Increase::Checkbook::ReturnAddress,
|
|
240
|
+
Increase::Internal::AnyHash
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# The city of the return address.
|
|
245
|
+
sig { returns(String) }
|
|
246
|
+
attr_accessor :city
|
|
247
|
+
|
|
248
|
+
# The first line of the return address.
|
|
249
|
+
sig { returns(String) }
|
|
250
|
+
attr_accessor :line1
|
|
251
|
+
|
|
252
|
+
# The second line of the return address.
|
|
253
|
+
sig { returns(T.nilable(String)) }
|
|
254
|
+
attr_accessor :line2
|
|
255
|
+
|
|
256
|
+
# The recipient at the return address.
|
|
257
|
+
sig { returns(String) }
|
|
258
|
+
attr_accessor :name
|
|
259
|
+
|
|
260
|
+
# The postal code of the return address.
|
|
261
|
+
sig { returns(String) }
|
|
262
|
+
attr_accessor :postal_code
|
|
263
|
+
|
|
264
|
+
# The state of the return address.
|
|
265
|
+
sig { returns(String) }
|
|
266
|
+
attr_accessor :state
|
|
267
|
+
|
|
268
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
269
|
+
sig do
|
|
270
|
+
params(
|
|
271
|
+
city: String,
|
|
272
|
+
line1: String,
|
|
273
|
+
line2: T.nilable(String),
|
|
274
|
+
name: String,
|
|
275
|
+
postal_code: String,
|
|
276
|
+
state: String
|
|
277
|
+
).returns(T.attached_class)
|
|
278
|
+
end
|
|
279
|
+
def self.new(
|
|
280
|
+
# The city of the return address.
|
|
281
|
+
city:,
|
|
282
|
+
# The first line of the return address.
|
|
283
|
+
line1:,
|
|
284
|
+
# The second line of the return address.
|
|
285
|
+
line2:,
|
|
286
|
+
# The recipient at the return address.
|
|
287
|
+
name:,
|
|
288
|
+
# The postal code of the return address.
|
|
289
|
+
postal_code:,
|
|
290
|
+
# The state of the return address.
|
|
291
|
+
state:
|
|
292
|
+
)
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
sig do
|
|
296
|
+
override.returns(
|
|
297
|
+
{
|
|
298
|
+
city: String,
|
|
299
|
+
line1: String,
|
|
300
|
+
line2: T.nilable(String),
|
|
301
|
+
name: String,
|
|
302
|
+
postal_code: String,
|
|
303
|
+
state: String
|
|
304
|
+
}
|
|
305
|
+
)
|
|
306
|
+
end
|
|
307
|
+
def to_hash
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# The lifecycle status of the Checkbook.
|
|
312
|
+
module Status
|
|
313
|
+
extend Increase::Internal::Type::Enum
|
|
314
|
+
|
|
315
|
+
TaggedSymbol =
|
|
316
|
+
T.type_alias { T.all(Symbol, Increase::Checkbook::Status) }
|
|
317
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
318
|
+
|
|
319
|
+
# The Checkbook is pending submission to the printer.
|
|
320
|
+
PENDING_SUBMISSION =
|
|
321
|
+
T.let(:pending_submission, Increase::Checkbook::Status::TaggedSymbol)
|
|
322
|
+
|
|
323
|
+
# The Checkbook has been submitted to the printer and is pending mailing.
|
|
324
|
+
PENDING_MAILING =
|
|
325
|
+
T.let(:pending_mailing, Increase::Checkbook::Status::TaggedSymbol)
|
|
326
|
+
|
|
327
|
+
# The Checkbook has been mailed.
|
|
328
|
+
MAILED = T.let(:mailed, Increase::Checkbook::Status::TaggedSymbol)
|
|
329
|
+
|
|
330
|
+
# The Checkbook has been stopped and its checks can no longer be deposited.
|
|
331
|
+
STOPPED = T.let(:stopped, Increase::Checkbook::Status::TaggedSymbol)
|
|
332
|
+
|
|
333
|
+
sig do
|
|
334
|
+
override.returns(T::Array[Increase::Checkbook::Status::TaggedSymbol])
|
|
335
|
+
end
|
|
336
|
+
def self.values
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# The physical format of the Checkbook.
|
|
341
|
+
module Style
|
|
342
|
+
extend Increase::Internal::Type::Enum
|
|
343
|
+
|
|
344
|
+
TaggedSymbol =
|
|
345
|
+
T.type_alias { T.all(Symbol, Increase::Checkbook::Style) }
|
|
346
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
347
|
+
|
|
348
|
+
# A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
|
|
349
|
+
THREE_RING_BINDER =
|
|
350
|
+
T.let(:three_ring_binder, Increase::Checkbook::Style::TaggedSymbol)
|
|
351
|
+
|
|
352
|
+
# A folder holding 15 pages of checks with 3 checks per page.
|
|
353
|
+
FOLDER = T.let(:folder, Increase::Checkbook::Style::TaggedSymbol)
|
|
354
|
+
|
|
355
|
+
sig do
|
|
356
|
+
override.returns(T::Array[Increase::Checkbook::Style::TaggedSymbol])
|
|
357
|
+
end
|
|
358
|
+
def self.values
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class TrackingUpdate < Increase::Internal::Type::BaseModel
|
|
363
|
+
OrHash =
|
|
364
|
+
T.type_alias do
|
|
365
|
+
T.any(
|
|
366
|
+
Increase::Checkbook::TrackingUpdate,
|
|
367
|
+
Increase::Internal::AnyHash
|
|
368
|
+
)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# The type of tracking event.
|
|
372
|
+
sig do
|
|
373
|
+
returns(Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol)
|
|
374
|
+
end
|
|
375
|
+
attr_accessor :category
|
|
376
|
+
|
|
377
|
+
# The ISO 3166-1 alpha-2 country code for the country where the event took place.
|
|
378
|
+
sig { returns(String) }
|
|
379
|
+
attr_accessor :country
|
|
380
|
+
|
|
381
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
382
|
+
# the tracking event took place.
|
|
383
|
+
sig { returns(Time) }
|
|
384
|
+
attr_accessor :created_at
|
|
385
|
+
|
|
386
|
+
# The postal code where the event took place.
|
|
387
|
+
sig { returns(String) }
|
|
388
|
+
attr_accessor :postal_code
|
|
389
|
+
|
|
390
|
+
sig do
|
|
391
|
+
params(
|
|
392
|
+
category: Increase::Checkbook::TrackingUpdate::Category::OrSymbol,
|
|
393
|
+
country: String,
|
|
394
|
+
created_at: Time,
|
|
395
|
+
postal_code: String
|
|
396
|
+
).returns(T.attached_class)
|
|
397
|
+
end
|
|
398
|
+
def self.new(
|
|
399
|
+
# The type of tracking event.
|
|
400
|
+
category:,
|
|
401
|
+
# The ISO 3166-1 alpha-2 country code for the country where the event took place.
|
|
402
|
+
country:,
|
|
403
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
404
|
+
# the tracking event took place.
|
|
405
|
+
created_at:,
|
|
406
|
+
# The postal code where the event took place.
|
|
407
|
+
postal_code:
|
|
408
|
+
)
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
sig do
|
|
412
|
+
override.returns(
|
|
413
|
+
{
|
|
414
|
+
category:
|
|
415
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol,
|
|
416
|
+
country: String,
|
|
417
|
+
created_at: Time,
|
|
418
|
+
postal_code: String
|
|
419
|
+
}
|
|
420
|
+
)
|
|
421
|
+
end
|
|
422
|
+
def to_hash
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# The type of tracking event.
|
|
426
|
+
module Category
|
|
427
|
+
extend Increase::Internal::Type::Enum
|
|
428
|
+
|
|
429
|
+
TaggedSymbol =
|
|
430
|
+
T.type_alias do
|
|
431
|
+
T.all(Symbol, Increase::Checkbook::TrackingUpdate::Category)
|
|
432
|
+
end
|
|
433
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
434
|
+
|
|
435
|
+
# The checkbook is in transit.
|
|
436
|
+
IN_TRANSIT =
|
|
437
|
+
T.let(
|
|
438
|
+
:in_transit,
|
|
439
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
# The checkbook has been processed for delivery.
|
|
443
|
+
PROCESSED_FOR_DELIVERY =
|
|
444
|
+
T.let(
|
|
445
|
+
:processed_for_delivery,
|
|
446
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
# The checkbook has been delivered. Note that some couriers track delivery status based on driver location data rather than an explicit scan. While uncommon, a single checkbook may have more than one delivered event.
|
|
450
|
+
DELIVERED =
|
|
451
|
+
T.let(
|
|
452
|
+
:delivered,
|
|
453
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
# There is an issue preventing delivery. The delivery will be attempted again if possible. If the issue cannot be resolved, the checkbook will be rerouted to the return address.
|
|
457
|
+
DELIVERY_ISSUE =
|
|
458
|
+
T.let(
|
|
459
|
+
:delivery_issue,
|
|
460
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
461
|
+
)
|
|
462
|
+
|
|
463
|
+
# The checkbook has been rerouted to the return address.
|
|
464
|
+
RETURNING_TO_SENDER =
|
|
465
|
+
T.let(
|
|
466
|
+
:returning_to_sender,
|
|
467
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
# The checkbook has been delivered to the return address.
|
|
471
|
+
RETURNED_TO_SENDER =
|
|
472
|
+
T.let(
|
|
473
|
+
:returned_to_sender,
|
|
474
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
sig do
|
|
478
|
+
override.returns(
|
|
479
|
+
T::Array[
|
|
480
|
+
Increase::Checkbook::TrackingUpdate::Category::TaggedSymbol
|
|
481
|
+
]
|
|
482
|
+
)
|
|
483
|
+
end
|
|
484
|
+
def self.values
|
|
485
|
+
end
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# A constant representing the object's type. For this resource it will always be
|
|
490
|
+
# `checkbook`.
|
|
491
|
+
module Type
|
|
492
|
+
extend Increase::Internal::Type::Enum
|
|
493
|
+
|
|
494
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Checkbook::Type) }
|
|
495
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
496
|
+
|
|
497
|
+
CHECKBOOK = T.let(:checkbook, Increase::Checkbook::Type::TaggedSymbol)
|
|
498
|
+
|
|
499
|
+
sig do
|
|
500
|
+
override.returns(T::Array[Increase::Checkbook::Type::TaggedSymbol])
|
|
501
|
+
end
|
|
502
|
+
def self.values
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
end
|
|
@@ -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
|