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
@@ -163,6 +163,15 @@ module Increase
163
163
  # @return [String]
164
164
  required :memo, String
165
165
 
166
+ # @!attribute payee
167
+ # The payee of the check. This will be printed in the Pay to the Order Of portion
168
+ # of the check. This should be an array of up to 4 elements, each of which
169
+ # represents a line of the payee.
170
+ #
171
+ # @return [Array<Increase::Models::CheckTransferCreateParams::PhysicalCheck::Payee>]
172
+ required :payee,
173
+ -> { Increase::Internal::Type::ArrayOf[Increase::CheckTransferCreateParams::PhysicalCheck::Payee] }
174
+
166
175
  # @!attribute payer
167
176
  # The payer of the check. This will be printed on the top-left portion of the
168
177
  # check. This should be an array of up to 4 elements, each of which represents a
@@ -172,12 +181,6 @@ module Increase
172
181
  required :payer,
173
182
  -> { Increase::Internal::Type::ArrayOf[Increase::CheckTransferCreateParams::PhysicalCheck::Payer] }
174
183
 
175
- # @!attribute recipient_name
176
- # The name that will be printed on the check in the 'To:' field.
177
- #
178
- # @return [String]
179
- required :recipient_name, String
180
-
181
184
  # @!attribute attachment_file_id
182
185
  # The ID of a File to be attached to the check. This must have
183
186
  # `purpose: check_attachment`. For details on pricing and restrictions, see
@@ -238,7 +241,7 @@ module Increase
238
241
  # @return [Increase::Models::CheckTransferCreateParams::PhysicalCheck::Signature, nil]
239
242
  optional :signature, -> { Increase::CheckTransferCreateParams::PhysicalCheck::Signature }
240
243
 
241
- # @!method initialize(mailing_address:, memo:, payer:, recipient_name:, attachment_file_id: nil, check_voucher_image_file_id: nil, note: nil, physical_check_batch_id: nil, return_address: nil, return_address_name: nil, shipping_method: nil, signature: nil)
244
+ # @!method initialize(mailing_address:, memo:, payee:, payer:, attachment_file_id: nil, check_voucher_image_file_id: nil, note: nil, physical_check_batch_id: nil, return_address: nil, return_address_name: nil, shipping_method: nil, signature: nil)
242
245
  # Details relating to the physical check that Increase will print and mail. This
243
246
  # is required if `fulfillment_method` is equal to `physical_check`. It must not be
244
247
  # included if any other `fulfillment_method` is provided.
@@ -249,13 +252,16 @@ module Increase
249
252
  #
250
253
  # @param memo [String] The descriptor that will be printed on the memo field on the check.
251
254
  #
255
+ # @param payee [Array<Increase::Models::CheckTransferCreateParams::PhysicalCheck::Payee>]
256
+ # The payee of the check. This will be printed in the Pay to the Order Of portion
257
+ # of the check. This should be an array of up to 4 elements, each of which
258
+ # represents a line of the payee.
259
+ #
252
260
  # @param payer [Array<Increase::Models::CheckTransferCreateParams::PhysicalCheck::Payer>]
253
261
  # The payer of the check. This will be printed on the top-left portion of the
254
262
  # check. This should be an array of up to 4 elements, each of which represents a
255
263
  # line of the payer.
256
264
  #
257
- # @param recipient_name [String] The name that will be printed on the check in the 'To:' field.
258
- #
259
265
  # @param attachment_file_id [String]
260
266
  # The ID of a File to be attached to the check. This must have
261
267
  # `purpose: check_attachment`. For details on pricing and restrictions, see
@@ -306,6 +312,12 @@ module Increase
306
312
  # @return [String]
307
313
  required :line1, String
308
314
 
315
+ # @!attribute name
316
+ # The name component of the check's destination address.
317
+ #
318
+ # @return [String]
319
+ required :name, String
320
+
309
321
  # @!attribute postal_code
310
322
  # The postal code component of the check's destination address.
311
323
  #
@@ -324,13 +336,6 @@ module Increase
324
336
  # @return [String, nil]
325
337
  optional :line2, String
326
338
 
327
- # @!attribute name
328
- # The name component of the check's destination address. Defaults to the provided
329
- # `recipient_name` parameter if `name` is not provided.
330
- #
331
- # @return [String, nil]
332
- optional :name, String
333
-
334
339
  # @!attribute phone
335
340
  # The phone number to associate with the check's destination address. The phone
336
341
  # number is only used when `shipping_method` is `fedex_overnight` and will be
@@ -339,7 +344,7 @@ module Increase
339
344
  # @return [String, nil]
340
345
  optional :phone, String
341
346
 
342
- # @!method initialize(city:, line1:, postal_code:, state:, line2: nil, name: nil, phone: nil)
347
+ # @!method initialize(city:, line1:, name:, postal_code:, state:, line2: nil, phone: nil)
343
348
  # Details for where Increase will mail the check. When `physical_check_batch_id`
344
349
  # is set, the address must match the Physical Check Batch.
345
350
  #
@@ -347,22 +352,31 @@ module Increase
347
352
  #
348
353
  # @param line1 [String] The first line of the address component of the check's destination address.
349
354
  #
355
+ # @param name [String] The name component of the check's destination address.
356
+ #
350
357
  # @param postal_code [String] The postal code component of the check's destination address.
351
358
  #
352
359
  # @param state [String] The US state component of the check's destination address.
353
360
  #
354
361
  # @param line2 [String] The second line of the address component of the check's destination address.
355
362
  #
356
- # @param name [String]
357
- # The name component of the check's destination address. Defaults to the provided
358
- # `recipient_name` parameter if `name` is not provided.
359
- #
360
363
  # @param phone [String]
361
364
  # The phone number to associate with the check's destination address. The phone
362
365
  # number is only used when `shipping_method` is `fedex_overnight` and will be
363
366
  # supplied to FedEx to be used in case of delivery issues.
364
367
  end
365
368
 
369
+ class Payee < Increase::Internal::Type::BaseModel
370
+ # @!attribute contents
371
+ # The contents of the line.
372
+ #
373
+ # @return [String]
374
+ required :contents, String
375
+
376
+ # @!method initialize(contents:)
377
+ # @param contents [String] The contents of the line.
378
+ end
379
+
366
380
  class Payer < Increase::Internal::Type::BaseModel
367
381
  # @!attribute contents
368
382
  # The contents of the line.
@@ -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