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
|
@@ -10120,6 +10120,9 @@ module Increase
|
|
|
10120
10120
|
# Electric vehicle charging level 3 480 volt
|
|
10121
10121
|
ELECTRIC_VEHICLE_CHARGING_LEVEL_3_480_VOLT = :electric_vehicle_charging_level_3_480_volt
|
|
10122
10122
|
|
|
10123
|
+
# Diesel 1 off-road non-taxable
|
|
10124
|
+
DIESEL_1_OFF_ROAD_NON_TAXABLE = :diesel_1_off_road_non_taxable
|
|
10125
|
+
|
|
10123
10126
|
# Renewable diesel R95 or greater off-road non-taxable
|
|
10124
10127
|
RENEWABLE_DIESEL_R95_OR_GREATER_OFF_ROAD_NON_TAXABLE =
|
|
10125
10128
|
:renewable_diesel_r95_or_greater_off_road_non_taxable
|
|
@@ -12859,6 +12862,9 @@ module Increase
|
|
|
12859
12862
|
# Electric vehicle charging level 3 480 volt
|
|
12860
12863
|
ELECTRIC_VEHICLE_CHARGING_LEVEL_3_480_VOLT = :electric_vehicle_charging_level_3_480_volt
|
|
12861
12864
|
|
|
12865
|
+
# Diesel 1 off-road non-taxable
|
|
12866
|
+
DIESEL_1_OFF_ROAD_NON_TAXABLE = :diesel_1_off_road_non_taxable
|
|
12867
|
+
|
|
12862
12868
|
# Renewable diesel R95 or greater off-road non-taxable
|
|
12863
12869
|
RENEWABLE_DIESEL_R95_OR_GREATER_OFF_ROAD_NON_TAXABLE =
|
|
12864
12870
|
:renewable_diesel_r95_or_greater_off_road_non_taxable
|
|
@@ -533,18 +533,20 @@ module Increase
|
|
|
533
533
|
|
|
534
534
|
# @!attribute email
|
|
535
535
|
# An email address that can be used to verify the cardholder via one-time passcode
|
|
536
|
-
# over email.
|
|
536
|
+
# over email. Send `null` to clear the email address. Omit this field to leave it
|
|
537
|
+
# unchanged.
|
|
537
538
|
#
|
|
538
539
|
# @return [String, nil]
|
|
539
|
-
optional :email, String
|
|
540
|
+
optional :email, String, nil?: true
|
|
540
541
|
|
|
541
542
|
# @!attribute phone
|
|
542
543
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
543
544
|
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
544
|
-
# `(415) 555-0123`.
|
|
545
|
+
# `(415) 555-0123`. Send `null` to clear the phone number. Omit this field to
|
|
546
|
+
# leave it unchanged.
|
|
545
547
|
#
|
|
546
548
|
# @return [String, nil]
|
|
547
|
-
optional :phone, String
|
|
549
|
+
optional :phone, String, nil?: true
|
|
548
550
|
|
|
549
551
|
# @!method initialize(digital_card_profile_id: nil, email: nil, phone: nil)
|
|
550
552
|
# The contact information used in the two-factor steps for digital wallet card
|
|
@@ -553,14 +555,16 @@ module Increase
|
|
|
553
555
|
#
|
|
554
556
|
# @param digital_card_profile_id [String] The digital card profile assigned to this digital card.
|
|
555
557
|
#
|
|
556
|
-
# @param email [String]
|
|
558
|
+
# @param email [String, nil]
|
|
557
559
|
# An email address that can be used to verify the cardholder via one-time passcode
|
|
558
|
-
# over email.
|
|
560
|
+
# over email. Send `null` to clear the email address. Omit this field to leave it
|
|
561
|
+
# unchanged.
|
|
559
562
|
#
|
|
560
|
-
# @param phone [String]
|
|
563
|
+
# @param phone [String, nil]
|
|
561
564
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
562
565
|
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
563
|
-
# `(415) 555-0123`.
|
|
566
|
+
# `(415) 555-0123`. Send `null` to clear the phone number. Omit this field to
|
|
567
|
+
# leave it unchanged.
|
|
564
568
|
end
|
|
565
569
|
|
|
566
570
|
# The status to update the Card with.
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Checkbooks#create
|
|
6
|
+
class Checkbook < Increase::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The Checkbook's identifier.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute account_number_id
|
|
14
|
+
# The identifier of the Account Number the Checkbook is attached to.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :account_number_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
21
|
+
# the Checkbook was created.
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute idempotency_key
|
|
27
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
28
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
29
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
required :idempotency_key, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute mailing_address
|
|
35
|
+
# The destination address that the Checkbook will be mailed to.
|
|
36
|
+
#
|
|
37
|
+
# @return [Increase::Models::Checkbook::MailingAddress]
|
|
38
|
+
required :mailing_address, -> { Increase::Checkbook::MailingAddress }
|
|
39
|
+
|
|
40
|
+
# @!attribute payer
|
|
41
|
+
# The payer information printed on the top-left corner of each check.
|
|
42
|
+
#
|
|
43
|
+
# @return [Array<Increase::Models::Checkbook::Payer>]
|
|
44
|
+
required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::Checkbook::Payer] }
|
|
45
|
+
|
|
46
|
+
# @!attribute return_address
|
|
47
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
48
|
+
#
|
|
49
|
+
# @return [Increase::Models::Checkbook::ReturnAddress]
|
|
50
|
+
required :return_address, -> { Increase::Checkbook::ReturnAddress }
|
|
51
|
+
|
|
52
|
+
# @!attribute status
|
|
53
|
+
# The lifecycle status of the Checkbook.
|
|
54
|
+
#
|
|
55
|
+
# @return [Symbol, Increase::Models::Checkbook::Status]
|
|
56
|
+
required :status, enum: -> { Increase::Checkbook::Status }
|
|
57
|
+
|
|
58
|
+
# @!attribute style
|
|
59
|
+
# The physical format of the Checkbook.
|
|
60
|
+
#
|
|
61
|
+
# @return [Symbol, Increase::Models::Checkbook::Style]
|
|
62
|
+
required :style, enum: -> { Increase::Checkbook::Style }
|
|
63
|
+
|
|
64
|
+
# @!attribute tracking_updates
|
|
65
|
+
# Tracking updates relating to the Checkbook's delivery.
|
|
66
|
+
#
|
|
67
|
+
# @return [Array<Increase::Models::Checkbook::TrackingUpdate>]
|
|
68
|
+
required :tracking_updates, -> { Increase::Internal::Type::ArrayOf[Increase::Checkbook::TrackingUpdate] }
|
|
69
|
+
|
|
70
|
+
# @!attribute type
|
|
71
|
+
# A constant representing the object's type. For this resource it will always be
|
|
72
|
+
# `checkbook`.
|
|
73
|
+
#
|
|
74
|
+
# @return [Symbol, Increase::Models::Checkbook::Type]
|
|
75
|
+
required :type, enum: -> { Increase::Checkbook::Type }
|
|
76
|
+
|
|
77
|
+
# @!method initialize(id:, account_number_id:, created_at:, idempotency_key:, mailing_address:, payer:, return_address:, status:, style:, tracking_updates:, type:)
|
|
78
|
+
# Checkbooks are sets of blank checks that Increase prints and mails on your
|
|
79
|
+
# behalf.
|
|
80
|
+
#
|
|
81
|
+
# @param id [String] The Checkbook's identifier.
|
|
82
|
+
#
|
|
83
|
+
# @param account_number_id [String] The identifier of the Account Number the Checkbook is attached to.
|
|
84
|
+
#
|
|
85
|
+
# @param created_at [Time]
|
|
86
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
87
|
+
# the Checkbook was created.
|
|
88
|
+
#
|
|
89
|
+
# @param idempotency_key [String, nil]
|
|
90
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
91
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
92
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
93
|
+
#
|
|
94
|
+
# @param mailing_address [Increase::Models::Checkbook::MailingAddress]
|
|
95
|
+
# The destination address that the Checkbook will be mailed to.
|
|
96
|
+
#
|
|
97
|
+
# @param payer [Array<Increase::Models::Checkbook::Payer>]
|
|
98
|
+
# The payer information printed on the top-left corner of each check.
|
|
99
|
+
#
|
|
100
|
+
# @param return_address [Increase::Models::Checkbook::ReturnAddress]
|
|
101
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
102
|
+
#
|
|
103
|
+
# @param status [Symbol, Increase::Models::Checkbook::Status] The lifecycle status of the Checkbook.
|
|
104
|
+
#
|
|
105
|
+
# @param style [Symbol, Increase::Models::Checkbook::Style] The physical format of the Checkbook.
|
|
106
|
+
#
|
|
107
|
+
# @param tracking_updates [Array<Increase::Models::Checkbook::TrackingUpdate>]
|
|
108
|
+
# Tracking updates relating to the Checkbook's delivery.
|
|
109
|
+
#
|
|
110
|
+
# @param type [Symbol, Increase::Models::Checkbook::Type]
|
|
111
|
+
# A constant representing the object's type. For this resource it will always be
|
|
112
|
+
# `checkbook`.
|
|
113
|
+
|
|
114
|
+
# @see Increase::Models::Checkbook#mailing_address
|
|
115
|
+
class MailingAddress < Increase::Internal::Type::BaseModel
|
|
116
|
+
# @!attribute city
|
|
117
|
+
# The city of the destination address.
|
|
118
|
+
#
|
|
119
|
+
# @return [String]
|
|
120
|
+
required :city, String
|
|
121
|
+
|
|
122
|
+
# @!attribute line1
|
|
123
|
+
# The first line of the destination address.
|
|
124
|
+
#
|
|
125
|
+
# @return [String]
|
|
126
|
+
required :line1, String
|
|
127
|
+
|
|
128
|
+
# @!attribute line2
|
|
129
|
+
# The second line of the destination address.
|
|
130
|
+
#
|
|
131
|
+
# @return [String, nil]
|
|
132
|
+
required :line2, String, nil?: true
|
|
133
|
+
|
|
134
|
+
# @!attribute name
|
|
135
|
+
# The recipient at the destination address.
|
|
136
|
+
#
|
|
137
|
+
# @return [String]
|
|
138
|
+
required :name, String
|
|
139
|
+
|
|
140
|
+
# @!attribute postal_code
|
|
141
|
+
# The postal code of the destination address.
|
|
142
|
+
#
|
|
143
|
+
# @return [String]
|
|
144
|
+
required :postal_code, String
|
|
145
|
+
|
|
146
|
+
# @!attribute state
|
|
147
|
+
# The state of the destination address.
|
|
148
|
+
#
|
|
149
|
+
# @return [String]
|
|
150
|
+
required :state, String
|
|
151
|
+
|
|
152
|
+
# @!method initialize(city:, line1:, line2:, name:, postal_code:, state:)
|
|
153
|
+
# The destination address that the Checkbook will be mailed to.
|
|
154
|
+
#
|
|
155
|
+
# @param city [String] The city of the destination address.
|
|
156
|
+
#
|
|
157
|
+
# @param line1 [String] The first line of the destination address.
|
|
158
|
+
#
|
|
159
|
+
# @param line2 [String, nil] The second line of the destination address.
|
|
160
|
+
#
|
|
161
|
+
# @param name [String] The recipient at the destination address.
|
|
162
|
+
#
|
|
163
|
+
# @param postal_code [String] The postal code of the destination address.
|
|
164
|
+
#
|
|
165
|
+
# @param state [String] The state of the destination address.
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class Payer < Increase::Internal::Type::BaseModel
|
|
169
|
+
# @!attribute contents
|
|
170
|
+
# The contents of the line.
|
|
171
|
+
#
|
|
172
|
+
# @return [String]
|
|
173
|
+
required :contents, String
|
|
174
|
+
|
|
175
|
+
# @!method initialize(contents:)
|
|
176
|
+
# @param contents [String] The contents of the line.
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see Increase::Models::Checkbook#return_address
|
|
180
|
+
class ReturnAddress < Increase::Internal::Type::BaseModel
|
|
181
|
+
# @!attribute city
|
|
182
|
+
# The city of the return address.
|
|
183
|
+
#
|
|
184
|
+
# @return [String]
|
|
185
|
+
required :city, String
|
|
186
|
+
|
|
187
|
+
# @!attribute line1
|
|
188
|
+
# The first line of the return address.
|
|
189
|
+
#
|
|
190
|
+
# @return [String]
|
|
191
|
+
required :line1, String
|
|
192
|
+
|
|
193
|
+
# @!attribute line2
|
|
194
|
+
# The second line of the return address.
|
|
195
|
+
#
|
|
196
|
+
# @return [String, nil]
|
|
197
|
+
required :line2, String, nil?: true
|
|
198
|
+
|
|
199
|
+
# @!attribute name
|
|
200
|
+
# The recipient at the return address.
|
|
201
|
+
#
|
|
202
|
+
# @return [String]
|
|
203
|
+
required :name, String
|
|
204
|
+
|
|
205
|
+
# @!attribute postal_code
|
|
206
|
+
# The postal code of the return address.
|
|
207
|
+
#
|
|
208
|
+
# @return [String]
|
|
209
|
+
required :postal_code, String
|
|
210
|
+
|
|
211
|
+
# @!attribute state
|
|
212
|
+
# The state of the return address.
|
|
213
|
+
#
|
|
214
|
+
# @return [String]
|
|
215
|
+
required :state, String
|
|
216
|
+
|
|
217
|
+
# @!method initialize(city:, line1:, line2:, name:, postal_code:, state:)
|
|
218
|
+
# The address the Checkbook will return to if there is a delivery issue.
|
|
219
|
+
#
|
|
220
|
+
# @param city [String] The city of the return address.
|
|
221
|
+
#
|
|
222
|
+
# @param line1 [String] The first line of the return address.
|
|
223
|
+
#
|
|
224
|
+
# @param line2 [String, nil] The second line of the return address.
|
|
225
|
+
#
|
|
226
|
+
# @param name [String] The recipient at the return address.
|
|
227
|
+
#
|
|
228
|
+
# @param postal_code [String] The postal code of the return address.
|
|
229
|
+
#
|
|
230
|
+
# @param state [String] The state of the return address.
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# The lifecycle status of the Checkbook.
|
|
234
|
+
#
|
|
235
|
+
# @see Increase::Models::Checkbook#status
|
|
236
|
+
module Status
|
|
237
|
+
extend Increase::Internal::Type::Enum
|
|
238
|
+
|
|
239
|
+
# The Checkbook is pending submission to the printer.
|
|
240
|
+
PENDING_SUBMISSION = :pending_submission
|
|
241
|
+
|
|
242
|
+
# The Checkbook has been submitted to the printer and is pending mailing.
|
|
243
|
+
PENDING_MAILING = :pending_mailing
|
|
244
|
+
|
|
245
|
+
# The Checkbook has been mailed.
|
|
246
|
+
MAILED = :mailed
|
|
247
|
+
|
|
248
|
+
# The Checkbook has been stopped and its checks can no longer be deposited.
|
|
249
|
+
STOPPED = :stopped
|
|
250
|
+
|
|
251
|
+
# @!method self.values
|
|
252
|
+
# @return [Array<Symbol>]
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# The physical format of the Checkbook.
|
|
256
|
+
#
|
|
257
|
+
# @see Increase::Models::Checkbook#style
|
|
258
|
+
module Style
|
|
259
|
+
extend Increase::Internal::Type::Enum
|
|
260
|
+
|
|
261
|
+
# A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
|
|
262
|
+
THREE_RING_BINDER = :three_ring_binder
|
|
263
|
+
|
|
264
|
+
# A folder holding 15 pages of checks with 3 checks per page.
|
|
265
|
+
FOLDER = :folder
|
|
266
|
+
|
|
267
|
+
# @!method self.values
|
|
268
|
+
# @return [Array<Symbol>]
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
class TrackingUpdate < Increase::Internal::Type::BaseModel
|
|
272
|
+
# @!attribute category
|
|
273
|
+
# The type of tracking event.
|
|
274
|
+
#
|
|
275
|
+
# @return [Symbol, Increase::Models::Checkbook::TrackingUpdate::Category]
|
|
276
|
+
required :category, enum: -> { Increase::Checkbook::TrackingUpdate::Category }
|
|
277
|
+
|
|
278
|
+
# @!attribute country
|
|
279
|
+
# The ISO 3166-1 alpha-2 country code for the country where the event took place.
|
|
280
|
+
#
|
|
281
|
+
# @return [String]
|
|
282
|
+
required :country, String
|
|
283
|
+
|
|
284
|
+
# @!attribute created_at
|
|
285
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
286
|
+
# the tracking event took place.
|
|
287
|
+
#
|
|
288
|
+
# @return [Time]
|
|
289
|
+
required :created_at, Time
|
|
290
|
+
|
|
291
|
+
# @!attribute postal_code
|
|
292
|
+
# The postal code where the event took place.
|
|
293
|
+
#
|
|
294
|
+
# @return [String]
|
|
295
|
+
required :postal_code, String
|
|
296
|
+
|
|
297
|
+
# @!method initialize(category:, country:, created_at:, postal_code:)
|
|
298
|
+
# @param category [Symbol, Increase::Models::Checkbook::TrackingUpdate::Category]
|
|
299
|
+
# The type of tracking event.
|
|
300
|
+
#
|
|
301
|
+
# @param country [String] The ISO 3166-1 alpha-2 country code for the country where the event took place.
|
|
302
|
+
#
|
|
303
|
+
# @param created_at [Time]
|
|
304
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
305
|
+
# the tracking event took place.
|
|
306
|
+
#
|
|
307
|
+
# @param postal_code [String] The postal code where the event took place.
|
|
308
|
+
|
|
309
|
+
# The type of tracking event.
|
|
310
|
+
#
|
|
311
|
+
# @see Increase::Models::Checkbook::TrackingUpdate#category
|
|
312
|
+
module Category
|
|
313
|
+
extend Increase::Internal::Type::Enum
|
|
314
|
+
|
|
315
|
+
# The checkbook is in transit.
|
|
316
|
+
IN_TRANSIT = :in_transit
|
|
317
|
+
|
|
318
|
+
# The checkbook has been processed for delivery.
|
|
319
|
+
PROCESSED_FOR_DELIVERY = :processed_for_delivery
|
|
320
|
+
|
|
321
|
+
# 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.
|
|
322
|
+
DELIVERED = :delivered
|
|
323
|
+
|
|
324
|
+
# 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.
|
|
325
|
+
DELIVERY_ISSUE = :delivery_issue
|
|
326
|
+
|
|
327
|
+
# The checkbook has been rerouted to the return address.
|
|
328
|
+
RETURNING_TO_SENDER = :returning_to_sender
|
|
329
|
+
|
|
330
|
+
# The checkbook has been delivered to the return address.
|
|
331
|
+
RETURNED_TO_SENDER = :returned_to_sender
|
|
332
|
+
|
|
333
|
+
# @!method self.values
|
|
334
|
+
# @return [Array<Symbol>]
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# A constant representing the object's type. For this resource it will always be
|
|
339
|
+
# `checkbook`.
|
|
340
|
+
#
|
|
341
|
+
# @see Increase::Models::Checkbook#type
|
|
342
|
+
module Type
|
|
343
|
+
extend Increase::Internal::Type::Enum
|
|
344
|
+
|
|
345
|
+
CHECKBOOK = :checkbook
|
|
346
|
+
|
|
347
|
+
# @!method self.values
|
|
348
|
+
# @return [Array<Symbol>]
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
end
|
|
@@ -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
|