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.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +8 -16
  4. data/lib/increase/models/account_number.rb +51 -81
  5. data/lib/increase/models/account_number_create_params.rb +41 -75
  6. data/lib/increase/models/account_number_list_params.rb +39 -39
  7. data/lib/increase/models/account_number_update_params.rb +48 -79
  8. data/lib/increase/models/ach_transfer.rb +38 -23
  9. data/lib/increase/models/card_payment.rb +6 -0
  10. data/lib/increase/models/card_update_params.rb +12 -8
  11. data/lib/increase/models/check_transfer.rb +58 -44
  12. data/lib/increase/models/check_transfer_create_params.rb +35 -21
  13. data/lib/increase/models/checkbook.rb +352 -0
  14. data/lib/increase/models/checkbook_check.rb +100 -0
  15. data/lib/increase/models/checkbook_check_list_params.rb +61 -0
  16. data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
  17. data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
  18. data/lib/increase/models/checkbook_create_params.rb +111 -0
  19. data/lib/increase/models/checkbook_list_params.rb +104 -0
  20. data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
  21. data/lib/increase/models/checkbook_stop_params.rb +22 -0
  22. data/lib/increase/models/declined_transaction.rb +10 -1
  23. data/lib/increase/models/entity.rb +1 -65
  24. data/lib/increase/models/entity_create_params.rb +1 -65
  25. data/lib/increase/models/entity_update_params.rb +1 -57
  26. data/lib/increase/models/export.rb +12 -1
  27. data/lib/increase/models/export_create_params.rb +26 -4
  28. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  29. data/lib/increase/models/inbound_check_deposit.rb +12 -1
  30. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  31. data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
  32. data/lib/increase/models/real_time_decision.rb +65 -1
  33. data/lib/increase/models/real_time_payments_transfer.rb +21 -1
  34. data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
  35. data/lib/increase/models/transaction.rb +27 -5
  36. data/lib/increase/models.rb +21 -20
  37. data/lib/increase/resources/account_numbers.rb +19 -16
  38. data/lib/increase/resources/checkbook_checks.rb +90 -0
  39. data/lib/increase/resources/checkbooks.rb +127 -0
  40. data/lib/increase/resources/entities.rb +2 -12
  41. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
  42. data/lib/increase/resources/simulations/checkbooks.rb +38 -0
  43. data/lib/increase/resources/simulations.rb +4 -0
  44. data/lib/increase/version.rb +1 -1
  45. data/lib/increase.rb +14 -14
  46. data/rbi/increase/client.rbi +6 -12
  47. data/rbi/increase/models/account_number.rbi +86 -173
  48. data/rbi/increase/models/account_number_create_params.rbi +87 -165
  49. data/rbi/increase/models/account_number_list_params.rbi +106 -105
  50. data/rbi/increase/models/account_number_update_params.rbi +105 -190
  51. data/rbi/increase/models/ach_transfer.rbi +35 -23
  52. data/rbi/increase/models/card_payment.rbi +14 -0
  53. data/rbi/increase/models/card_update_params.rbi +17 -15
  54. data/rbi/increase/models/check_transfer.rbi +72 -54
  55. data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
  56. data/rbi/increase/models/checkbook.rbi +507 -0
  57. data/rbi/increase/models/checkbook_check.rbi +142 -0
  58. data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
  59. data/rbi/increase/models/{oauth_connection_retrieve_params.rbi → checkbook_check_retrieve_params.rbi} +8 -8
  60. data/rbi/increase/models/{oauth_application_retrieve_params.rbi → checkbook_check_stop_params.rbi} +8 -11
  61. data/rbi/increase/models/checkbook_create_params.rbi +178 -0
  62. data/rbi/increase/models/checkbook_list_params.rbi +198 -0
  63. data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
  64. data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
  65. data/rbi/increase/models/declined_transaction.rbi +8 -0
  66. data/rbi/increase/models/entity.rbi +0 -97
  67. data/rbi/increase/models/entity_create_params.rbi +0 -119
  68. data/rbi/increase/models/entity_update_params.rbi +0 -108
  69. data/rbi/increase/models/export.rbi +15 -3
  70. data/rbi/increase/models/export_create_params.rbi +27 -3
  71. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  72. data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
  73. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  74. data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
  75. data/rbi/increase/models/real_time_decision.rbi +134 -3
  76. data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
  77. data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
  78. data/rbi/increase/models/transaction.rbi +33 -3
  79. data/rbi/increase/models.rbi +21 -22
  80. data/rbi/increase/resources/account_numbers.rbi +24 -19
  81. data/rbi/increase/resources/checkbook_checks.rbi +69 -0
  82. data/rbi/increase/resources/checkbooks.rbi +96 -0
  83. data/rbi/increase/resources/entities.rbi +0 -11
  84. data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
  85. data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
  86. data/rbi/increase/resources/simulations.rbi +3 -0
  87. data/sig/increase/client.rbs +4 -8
  88. data/sig/increase/models/account_number.rbs +34 -66
  89. data/sig/increase/models/account_number_create_params.rbs +30 -64
  90. data/sig/increase/models/account_number_list_params.rbs +44 -44
  91. data/sig/increase/models/account_number_update_params.rbs +39 -77
  92. data/sig/increase/models/ach_transfer.rbs +4 -4
  93. data/sig/increase/models/card_payment.rbs +8 -0
  94. data/sig/increase/models/card_update_params.rbs +7 -11
  95. data/sig/increase/models/check_transfer.rbs +59 -49
  96. data/sig/increase/models/check_transfer_create_params.rbs +20 -12
  97. data/sig/increase/models/checkbook.rbs +272 -0
  98. data/sig/increase/models/checkbook_check.rbs +76 -0
  99. data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
  100. data/sig/increase/models/{oauth_connection_retrieve_params.rbs → checkbook_check_retrieve_params.rbs} +6 -6
  101. data/sig/increase/models/{oauth_application_retrieve_params.rbs → checkbook_check_stop_params.rbs} +6 -6
  102. data/sig/increase/models/checkbook_create_params.rbs +90 -0
  103. data/sig/increase/models/checkbook_list_params.rbs +97 -0
  104. data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
  105. data/sig/increase/models/checkbook_stop_params.rbs +23 -0
  106. data/sig/increase/models/declined_transaction.rbs +5 -0
  107. data/sig/increase/models/entity.rbs +0 -46
  108. data/sig/increase/models/entity_create_params.rbs +0 -55
  109. data/sig/increase/models/entity_update_params.rbs +0 -48
  110. data/sig/increase/models/export.rbs +13 -3
  111. data/sig/increase/models/export_create_params.rbs +7 -0
  112. data/sig/increase/models/inbound_check_deposit.rbs +5 -0
  113. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  114. data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
  115. data/sig/increase/models/real_time_decision.rbs +69 -3
  116. data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
  117. data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
  118. data/sig/increase/models/transaction.rbs +26 -5
  119. data/sig/increase/models.rbs +20 -20
  120. data/sig/increase/resources/account_numbers.rbs +5 -5
  121. data/sig/increase/resources/checkbook_checks.rbs +26 -0
  122. data/sig/increase/resources/checkbooks.rbs +33 -0
  123. data/sig/increase/resources/entities.rbs +0 -3
  124. data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
  125. data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
  126. data/sig/increase/resources/simulations.rbs +2 -0
  127. metadata +45 -45
  128. data/lib/increase/models/group.rb +0 -57
  129. data/lib/increase/models/group_retrieve_params.rb +0 -14
  130. data/lib/increase/models/oauth_application.rb +0 -111
  131. data/lib/increase/models/oauth_application_list_params.rb +0 -129
  132. data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
  133. data/lib/increase/models/oauth_connection.rb +0 -107
  134. data/lib/increase/models/oauth_connection_list_params.rb +0 -88
  135. data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
  136. data/lib/increase/models/oauth_token.rb +0 -76
  137. data/lib/increase/models/oauth_token_create_params.rb +0 -85
  138. data/lib/increase/resources/groups.rb +0 -32
  139. data/lib/increase/resources/oauth_applications.rb +0 -68
  140. data/lib/increase/resources/oauth_connections.rb +0 -70
  141. data/lib/increase/resources/oauth_tokens.rb +0 -54
  142. data/rbi/increase/models/group.rbi +0 -74
  143. data/rbi/increase/models/group_retrieve_params.rbi +0 -27
  144. data/rbi/increase/models/oauth_application.rbi +0 -146
  145. data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
  146. data/rbi/increase/models/oauth_connection.rbi +0 -142
  147. data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
  148. data/rbi/increase/models/oauth_token.rbi +0 -106
  149. data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
  150. data/rbi/increase/resources/groups.rbi +0 -21
  151. data/rbi/increase/resources/oauth_applications.rbi +0 -50
  152. data/rbi/increase/resources/oauth_connections.rbi +0 -52
  153. data/rbi/increase/resources/oauth_tokens.rbi +0 -44
  154. data/sig/increase/models/group.rbs +0 -36
  155. data/sig/increase/models/group_retrieve_params.rbs +0 -15
  156. data/sig/increase/models/oauth_application.rbs +0 -74
  157. data/sig/increase/models/oauth_application_list_params.rbs +0 -123
  158. data/sig/increase/models/oauth_connection.rbs +0 -74
  159. data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
  160. data/sig/increase/models/oauth_token.rbs +0 -55
  161. data/sig/increase/models/oauth_token_create_params.rbs +0 -68
  162. data/sig/increase/resources/groups.rbs +0 -11
  163. data/sig/increase/resources/oauth_applications.rbs +0 -20
  164. data/sig/increase/resources/oauth_connections.rbs +0 -20
  165. data/sig/increase/resources/oauth_tokens.rbs +0 -16
@@ -117,8 +117,8 @@ module Increase
117
117
  {
118
118
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
119
119
  memo: String,
120
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
120
121
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
121
- recipient_name: String,
122
122
  attachment_file_id: String,
123
123
  check_voucher_image_file_id: String,
124
124
  note: String,
@@ -134,9 +134,9 @@ module Increase
134
134
 
135
135
  attr_accessor memo: String
136
136
 
137
- attr_accessor payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
137
+ attr_accessor payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee]
138
138
 
139
- attr_accessor recipient_name: String
139
+ attr_accessor payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
140
140
 
141
141
  attr_reader attachment_file_id: String?
142
142
 
@@ -179,8 +179,8 @@ module Increase
179
179
  def initialize: (
180
180
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
181
181
  memo: String,
182
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
182
183
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
183
- recipient_name: String,
184
184
  ?attachment_file_id: String,
185
185
  ?check_voucher_image_file_id: String,
186
186
  ?note: String,
@@ -194,8 +194,8 @@ module Increase
194
194
  def to_hash: -> {
195
195
  mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
196
196
  memo: String,
197
+ payee: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee],
197
198
  payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
198
- recipient_name: String,
199
199
  attachment_file_id: String,
200
200
  check_voucher_image_file_id: String,
201
201
  note: String,
@@ -210,10 +210,10 @@ module Increase
210
210
  {
211
211
  city: String,
212
212
  :line1 => String,
213
+ name: String,
213
214
  postal_code: String,
214
215
  state: String,
215
216
  :line2 => String,
216
- name: String,
217
217
  phone: String
218
218
  }
219
219
 
@@ -222,6 +222,8 @@ module Increase
222
222
 
223
223
  attr_accessor line1: String
224
224
 
225
+ attr_accessor name: String
226
+
225
227
  attr_accessor postal_code: String
226
228
 
227
229
  attr_accessor state: String
@@ -230,10 +232,6 @@ module Increase
230
232
 
231
233
  def line2=: (String) -> String
232
234
 
233
- attr_reader name: String?
234
-
235
- def name=: (String) -> String
236
-
237
235
  attr_reader phone: String?
238
236
 
239
237
  def phone=: (String) -> String
@@ -241,24 +239,34 @@ module Increase
241
239
  def initialize: (
242
240
  city: String,
243
241
  line1: String,
242
+ name: String,
244
243
  postal_code: String,
245
244
  state: String,
246
245
  ?line2: String,
247
- ?name: String,
248
246
  ?phone: String
249
247
  ) -> void
250
248
 
251
249
  def to_hash: -> {
252
250
  city: String,
253
251
  :line1 => String,
252
+ name: String,
254
253
  postal_code: String,
255
254
  state: String,
256
255
  :line2 => String,
257
- name: String,
258
256
  phone: String
259
257
  }
260
258
  end
261
259
 
260
+ type payee = { contents: String }
261
+
262
+ class Payee < Increase::Internal::Type::BaseModel
263
+ attr_accessor contents: String
264
+
265
+ def initialize: (contents: String) -> void
266
+
267
+ def to_hash: -> { contents: String }
268
+ end
269
+
262
270
  type payer = { contents: String }
263
271
 
264
272
  class Payer < Increase::Internal::Type::BaseModel
@@ -0,0 +1,272 @@
1
+ module Increase
2
+ module Models
3
+ type checkbook =
4
+ {
5
+ id: String,
6
+ account_number_id: String,
7
+ created_at: Time,
8
+ idempotency_key: String?,
9
+ mailing_address: Increase::Checkbook::MailingAddress,
10
+ payer: ::Array[Increase::Checkbook::Payer],
11
+ return_address: Increase::Checkbook::ReturnAddress,
12
+ status: Increase::Models::Checkbook::status,
13
+ style: Increase::Models::Checkbook::style,
14
+ tracking_updates: ::Array[Increase::Checkbook::TrackingUpdate],
15
+ type: Increase::Models::Checkbook::type_
16
+ }
17
+
18
+ class Checkbook < Increase::Internal::Type::BaseModel
19
+ attr_accessor id: String
20
+
21
+ attr_accessor account_number_id: String
22
+
23
+ attr_accessor created_at: Time
24
+
25
+ attr_accessor idempotency_key: String?
26
+
27
+ attr_accessor mailing_address: Increase::Checkbook::MailingAddress
28
+
29
+ attr_accessor payer: ::Array[Increase::Checkbook::Payer]
30
+
31
+ attr_accessor return_address: Increase::Checkbook::ReturnAddress
32
+
33
+ attr_accessor status: Increase::Models::Checkbook::status
34
+
35
+ attr_accessor style: Increase::Models::Checkbook::style
36
+
37
+ attr_accessor tracking_updates: ::Array[Increase::Checkbook::TrackingUpdate]
38
+
39
+ attr_accessor type: Increase::Models::Checkbook::type_
40
+
41
+ def initialize: (
42
+ id: String,
43
+ account_number_id: String,
44
+ created_at: Time,
45
+ idempotency_key: String?,
46
+ mailing_address: Increase::Checkbook::MailingAddress,
47
+ payer: ::Array[Increase::Checkbook::Payer],
48
+ return_address: Increase::Checkbook::ReturnAddress,
49
+ status: Increase::Models::Checkbook::status,
50
+ style: Increase::Models::Checkbook::style,
51
+ tracking_updates: ::Array[Increase::Checkbook::TrackingUpdate],
52
+ type: Increase::Models::Checkbook::type_
53
+ ) -> void
54
+
55
+ def to_hash: -> {
56
+ id: String,
57
+ account_number_id: String,
58
+ created_at: Time,
59
+ idempotency_key: String?,
60
+ mailing_address: Increase::Checkbook::MailingAddress,
61
+ payer: ::Array[Increase::Checkbook::Payer],
62
+ return_address: Increase::Checkbook::ReturnAddress,
63
+ status: Increase::Models::Checkbook::status,
64
+ style: Increase::Models::Checkbook::style,
65
+ tracking_updates: ::Array[Increase::Checkbook::TrackingUpdate],
66
+ type: Increase::Models::Checkbook::type_
67
+ }
68
+
69
+ type mailing_address =
70
+ {
71
+ city: String,
72
+ :line1 => String,
73
+ :line2 => String?,
74
+ name: String,
75
+ postal_code: String,
76
+ state: String
77
+ }
78
+
79
+ class MailingAddress < Increase::Internal::Type::BaseModel
80
+ attr_accessor city: String
81
+
82
+ attr_accessor line1: String
83
+
84
+ attr_accessor line2: String?
85
+
86
+ attr_accessor name: String
87
+
88
+ attr_accessor postal_code: String
89
+
90
+ attr_accessor state: String
91
+
92
+ def initialize: (
93
+ city: String,
94
+ line1: String,
95
+ line2: String?,
96
+ name: String,
97
+ postal_code: String,
98
+ state: String
99
+ ) -> void
100
+
101
+ def to_hash: -> {
102
+ city: String,
103
+ :line1 => String,
104
+ :line2 => String?,
105
+ name: String,
106
+ postal_code: String,
107
+ state: String
108
+ }
109
+ end
110
+
111
+ type payer = { contents: String }
112
+
113
+ class Payer < Increase::Internal::Type::BaseModel
114
+ attr_accessor contents: String
115
+
116
+ def initialize: (contents: String) -> void
117
+
118
+ def to_hash: -> { contents: String }
119
+ end
120
+
121
+ type return_address =
122
+ {
123
+ city: String,
124
+ :line1 => String,
125
+ :line2 => String?,
126
+ name: String,
127
+ postal_code: String,
128
+ state: String
129
+ }
130
+
131
+ class ReturnAddress < Increase::Internal::Type::BaseModel
132
+ attr_accessor city: String
133
+
134
+ attr_accessor line1: String
135
+
136
+ attr_accessor line2: String?
137
+
138
+ attr_accessor name: String
139
+
140
+ attr_accessor postal_code: String
141
+
142
+ attr_accessor state: String
143
+
144
+ def initialize: (
145
+ city: String,
146
+ line1: String,
147
+ line2: String?,
148
+ name: String,
149
+ postal_code: String,
150
+ state: String
151
+ ) -> void
152
+
153
+ def to_hash: -> {
154
+ city: String,
155
+ :line1 => String,
156
+ :line2 => String?,
157
+ name: String,
158
+ postal_code: String,
159
+ state: String
160
+ }
161
+ end
162
+
163
+ type status = :pending_submission | :pending_mailing | :mailed | :stopped
164
+
165
+ module Status
166
+ extend Increase::Internal::Type::Enum
167
+
168
+ # The Checkbook is pending submission to the printer.
169
+ PENDING_SUBMISSION: :pending_submission
170
+
171
+ # The Checkbook has been submitted to the printer and is pending mailing.
172
+ PENDING_MAILING: :pending_mailing
173
+
174
+ # The Checkbook has been mailed.
175
+ MAILED: :mailed
176
+
177
+ # The Checkbook has been stopped and its checks can no longer be deposited.
178
+ STOPPED: :stopped
179
+
180
+ def self?.values: -> ::Array[Increase::Models::Checkbook::status]
181
+ end
182
+
183
+ type style = :three_ring_binder | :folder
184
+
185
+ module Style
186
+ extend Increase::Internal::Type::Enum
187
+
188
+ # A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
189
+ THREE_RING_BINDER: :three_ring_binder
190
+
191
+ # A folder holding 15 pages of checks with 3 checks per page.
192
+ FOLDER: :folder
193
+
194
+ def self?.values: -> ::Array[Increase::Models::Checkbook::style]
195
+ end
196
+
197
+ type tracking_update =
198
+ {
199
+ category: Increase::Models::Checkbook::TrackingUpdate::category,
200
+ country: String,
201
+ created_at: Time,
202
+ postal_code: String
203
+ }
204
+
205
+ class TrackingUpdate < Increase::Internal::Type::BaseModel
206
+ attr_accessor category: Increase::Models::Checkbook::TrackingUpdate::category
207
+
208
+ attr_accessor country: String
209
+
210
+ attr_accessor created_at: Time
211
+
212
+ attr_accessor postal_code: String
213
+
214
+ def initialize: (
215
+ category: Increase::Models::Checkbook::TrackingUpdate::category,
216
+ country: String,
217
+ created_at: Time,
218
+ postal_code: String
219
+ ) -> void
220
+
221
+ def to_hash: -> {
222
+ category: Increase::Models::Checkbook::TrackingUpdate::category,
223
+ country: String,
224
+ created_at: Time,
225
+ postal_code: String
226
+ }
227
+
228
+ type category =
229
+ :in_transit
230
+ | :processed_for_delivery
231
+ | :delivered
232
+ | :delivery_issue
233
+ | :returning_to_sender
234
+ | :returned_to_sender
235
+
236
+ module Category
237
+ extend Increase::Internal::Type::Enum
238
+
239
+ # The checkbook is in transit.
240
+ IN_TRANSIT: :in_transit
241
+
242
+ # The checkbook has been processed for delivery.
243
+ PROCESSED_FOR_DELIVERY: :processed_for_delivery
244
+
245
+ # 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.
246
+ DELIVERED: :delivered
247
+
248
+ # 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.
249
+ DELIVERY_ISSUE: :delivery_issue
250
+
251
+ # The checkbook has been rerouted to the return address.
252
+ RETURNING_TO_SENDER: :returning_to_sender
253
+
254
+ # The checkbook has been delivered to the return address.
255
+ RETURNED_TO_SENDER: :returned_to_sender
256
+
257
+ def self?.values: -> ::Array[Increase::Models::Checkbook::TrackingUpdate::category]
258
+ end
259
+ end
260
+
261
+ type type_ = :checkbook
262
+
263
+ module Type
264
+ extend Increase::Internal::Type::Enum
265
+
266
+ CHECKBOOK: :checkbook
267
+
268
+ def self?.values: -> ::Array[Increase::Models::Checkbook::type_]
269
+ end
270
+ end
271
+ end
272
+ end
@@ -0,0 +1,76 @@
1
+ module Increase
2
+ module Models
3
+ type checkbook_check =
4
+ {
5
+ id: String,
6
+ check_number: Integer,
7
+ checkbook_id: String,
8
+ created_at: Time,
9
+ status: Increase::Models::CheckbookCheck::status,
10
+ type: Increase::Models::CheckbookCheck::type_
11
+ }
12
+
13
+ class CheckbookCheck < Increase::Internal::Type::BaseModel
14
+ attr_accessor id: String
15
+
16
+ attr_accessor check_number: Integer
17
+
18
+ attr_accessor checkbook_id: String
19
+
20
+ attr_accessor created_at: Time
21
+
22
+ attr_accessor status: Increase::Models::CheckbookCheck::status
23
+
24
+ attr_accessor type: Increase::Models::CheckbookCheck::type_
25
+
26
+ def initialize: (
27
+ id: String,
28
+ check_number: Integer,
29
+ checkbook_id: String,
30
+ created_at: Time,
31
+ status: Increase::Models::CheckbookCheck::status,
32
+ type: Increase::Models::CheckbookCheck::type_
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ id: String,
37
+ check_number: Integer,
38
+ checkbook_id: String,
39
+ created_at: Time,
40
+ status: Increase::Models::CheckbookCheck::status,
41
+ type: Increase::Models::CheckbookCheck::type_
42
+ }
43
+
44
+ type status =
45
+ :pending_deposit | :deposited | :stopped | :requires_attention
46
+
47
+ module Status
48
+ extend Increase::Internal::Type::Enum
49
+
50
+ # The check has not yet been deposited.
51
+ PENDING_DEPOSIT: :pending_deposit
52
+
53
+ # The check has been deposited.
54
+ DEPOSITED: :deposited
55
+
56
+ # The check has been stopped and can no longer be deposited.
57
+ STOPPED: :stopped
58
+
59
+ # The check requires attention from an Increase operator.
60
+ REQUIRES_ATTENTION: :requires_attention
61
+
62
+ def self?.values: -> ::Array[Increase::Models::CheckbookCheck::status]
63
+ end
64
+
65
+ type type_ = :checkbook_check
66
+
67
+ module Type
68
+ extend Increase::Internal::Type::Enum
69
+
70
+ CHECKBOOK_CHECK: :checkbook_check
71
+
72
+ def self?.values: -> ::Array[Increase::Models::CheckbookCheck::type_]
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,56 @@
1
+ module Increase
2
+ module Models
3
+ type checkbook_check_list_params =
4
+ {
5
+ account_number_id: String,
6
+ check_number: Integer,
7
+ checkbook_id: String,
8
+ cursor: String,
9
+ limit: Integer
10
+ }
11
+ & Increase::Internal::Type::request_parameters
12
+
13
+ class CheckbookCheckListParams < Increase::Internal::Type::BaseModel
14
+ extend Increase::Internal::Type::RequestParameters::Converter
15
+ include Increase::Internal::Type::RequestParameters
16
+
17
+ attr_reader account_number_id: String?
18
+
19
+ def account_number_id=: (String) -> String
20
+
21
+ attr_reader check_number: Integer?
22
+
23
+ def check_number=: (Integer) -> Integer
24
+
25
+ attr_reader checkbook_id: String?
26
+
27
+ def checkbook_id=: (String) -> String
28
+
29
+ attr_reader cursor: String?
30
+
31
+ def cursor=: (String) -> String
32
+
33
+ attr_reader limit: Integer?
34
+
35
+ def limit=: (Integer) -> Integer
36
+
37
+ def initialize: (
38
+ ?account_number_id: String,
39
+ ?check_number: Integer,
40
+ ?checkbook_id: String,
41
+ ?cursor: String,
42
+ ?limit: Integer,
43
+ ?request_options: Increase::request_opts
44
+ ) -> void
45
+
46
+ def to_hash: -> {
47
+ account_number_id: String,
48
+ check_number: Integer,
49
+ checkbook_id: String,
50
+ cursor: String,
51
+ limit: Integer,
52
+ request_options: Increase::RequestOptions
53
+ }
54
+ end
55
+ end
56
+ end
@@ -1,22 +1,22 @@
1
1
  module Increase
2
2
  module Models
3
- type oauth_connection_retrieve_params =
4
- { oauth_connection_id: String }
3
+ type checkbook_check_retrieve_params =
4
+ { checkbook_check_id: String }
5
5
  & Increase::Internal::Type::request_parameters
6
6
 
7
- class OAuthConnectionRetrieveParams < Increase::Internal::Type::BaseModel
7
+ class CheckbookCheckRetrieveParams < Increase::Internal::Type::BaseModel
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
- attr_accessor oauth_connection_id: String
11
+ attr_accessor checkbook_check_id: String
12
12
 
13
13
  def initialize: (
14
- oauth_connection_id: String,
14
+ checkbook_check_id: String,
15
15
  ?request_options: Increase::request_opts
16
16
  ) -> void
17
17
 
18
18
  def to_hash: -> {
19
- oauth_connection_id: String,
19
+ checkbook_check_id: String,
20
20
  request_options: Increase::RequestOptions
21
21
  }
22
22
  end
@@ -1,22 +1,22 @@
1
1
  module Increase
2
2
  module Models
3
- type oauth_application_retrieve_params =
4
- { oauth_application_id: String }
3
+ type checkbook_check_stop_params =
4
+ { checkbook_check_id: String }
5
5
  & Increase::Internal::Type::request_parameters
6
6
 
7
- class OAuthApplicationRetrieveParams < Increase::Internal::Type::BaseModel
7
+ class CheckbookCheckStopParams < Increase::Internal::Type::BaseModel
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
- attr_accessor oauth_application_id: String
11
+ attr_accessor checkbook_check_id: String
12
12
 
13
13
  def initialize: (
14
- oauth_application_id: String,
14
+ checkbook_check_id: String,
15
15
  ?request_options: Increase::request_opts
16
16
  ) -> void
17
17
 
18
18
  def to_hash: -> {
19
- oauth_application_id: String,
19
+ checkbook_check_id: String,
20
20
  request_options: Increase::RequestOptions
21
21
  }
22
22
  end
@@ -0,0 +1,90 @@
1
+ module Increase
2
+ module Models
3
+ type checkbook_create_params =
4
+ {
5
+ account_number_id: String,
6
+ mailing_address: Increase::CheckbookCreateParams::MailingAddress,
7
+ payer: ::Array[Increase::CheckbookCreateParams::Payer]
8
+ }
9
+ & Increase::Internal::Type::request_parameters
10
+
11
+ class CheckbookCreateParams < Increase::Internal::Type::BaseModel
12
+ extend Increase::Internal::Type::RequestParameters::Converter
13
+ include Increase::Internal::Type::RequestParameters
14
+
15
+ attr_accessor account_number_id: String
16
+
17
+ attr_accessor mailing_address: Increase::CheckbookCreateParams::MailingAddress
18
+
19
+ attr_accessor payer: ::Array[Increase::CheckbookCreateParams::Payer]
20
+
21
+ def initialize: (
22
+ account_number_id: String,
23
+ mailing_address: Increase::CheckbookCreateParams::MailingAddress,
24
+ payer: ::Array[Increase::CheckbookCreateParams::Payer],
25
+ ?request_options: Increase::request_opts
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ account_number_id: String,
30
+ mailing_address: Increase::CheckbookCreateParams::MailingAddress,
31
+ payer: ::Array[Increase::CheckbookCreateParams::Payer],
32
+ request_options: Increase::RequestOptions
33
+ }
34
+
35
+ type mailing_address =
36
+ {
37
+ city: String,
38
+ :line1 => String,
39
+ name: String,
40
+ postal_code: String,
41
+ state: String,
42
+ :line2 => String
43
+ }
44
+
45
+ class MailingAddress < Increase::Internal::Type::BaseModel
46
+ attr_accessor city: String
47
+
48
+ attr_accessor line1: String
49
+
50
+ attr_accessor name: String
51
+
52
+ attr_accessor postal_code: String
53
+
54
+ attr_accessor state: String
55
+
56
+ attr_reader line2: String?
57
+
58
+ def line2=: (String) -> String
59
+
60
+ def initialize: (
61
+ city: String,
62
+ line1: String,
63
+ name: String,
64
+ postal_code: String,
65
+ state: String,
66
+ ?line2: String
67
+ ) -> void
68
+
69
+ def to_hash: -> {
70
+ city: String,
71
+ :line1 => String,
72
+ name: String,
73
+ postal_code: String,
74
+ state: String,
75
+ :line2 => String
76
+ }
77
+ end
78
+
79
+ type payer = { contents: String }
80
+
81
+ class Payer < Increase::Internal::Type::BaseModel
82
+ attr_accessor contents: String
83
+
84
+ def initialize: (contents: String) -> void
85
+
86
+ def to_hash: -> { contents: String }
87
+ end
88
+ end
89
+ end
90
+ end