increase 1.303.0 → 1.305.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +7 -15
  5. data/lib/increase/models/card_push_transfer.rb +3 -0
  6. data/lib/increase/models/card_token_capabilities.rb +3 -0
  7. data/lib/increase/models/card_validation.rb +3 -0
  8. data/lib/increase/models/check_deposit.rb +7 -6
  9. data/lib/increase/models/inbound_mail_item.rb +22 -7
  10. data/lib/increase/models/inbound_mail_item_list_params.rb +13 -5
  11. data/lib/increase/models/lockbox_address.rb +162 -0
  12. data/lib/increase/models/lockbox_address_create_params.rb +22 -0
  13. data/lib/increase/models/{lockbox_list_params.rb → lockbox_address_list_params.rb} +8 -16
  14. data/lib/increase/models/lockbox_address_retrieve_params.rb +22 -0
  15. data/lib/increase/models/lockbox_address_update_params.rb +55 -0
  16. data/lib/increase/models/lockbox_recipient.rb +135 -0
  17. data/lib/increase/models/lockbox_recipient_create_params.rb +49 -0
  18. data/lib/increase/models/lockbox_recipient_list_params.rb +110 -0
  19. data/lib/increase/models/lockbox_recipient_retrieve_params.rb +22 -0
  20. data/lib/increase/models/lockbox_recipient_update_params.rb +63 -0
  21. data/lib/increase/models/simulations/card_token_create_params.rb +3 -0
  22. data/lib/increase/models/simulations/inbound_mail_item_create_params.rb +17 -9
  23. data/lib/increase/models.rb +15 -31
  24. data/lib/increase/resources/inbound_mail_items.rb +4 -2
  25. data/lib/increase/resources/lockbox_addresses.rb +115 -0
  26. data/lib/increase/resources/lockbox_recipients.rb +130 -0
  27. data/lib/increase/resources/simulations/inbound_mail_items.rb +5 -3
  28. data/lib/increase/version.rb +1 -1
  29. data/lib/increase.rb +12 -22
  30. data/rbi/increase/client.rbi +5 -11
  31. data/rbi/increase/models/card_push_transfer.rbi +3 -0
  32. data/rbi/increase/models/card_token_capabilities.rbi +7 -0
  33. data/rbi/increase/models/card_validation.rbi +3 -0
  34. data/rbi/increase/models/check_deposit.rbi +10 -8
  35. data/rbi/increase/models/inbound_mail_item.rbi +32 -9
  36. data/rbi/increase/models/inbound_mail_item_list_params.rbi +19 -8
  37. data/rbi/increase/models/lockbox_address.rbi +228 -0
  38. data/rbi/increase/models/lockbox_address_create_params.rbi +46 -0
  39. data/rbi/increase/models/{lockbox_list_params.rbi → lockbox_address_list_params.rbi} +9 -18
  40. data/rbi/increase/models/{bookkeeping_entry_set_retrieve_params.rbi → lockbox_address_retrieve_params.rbi} +8 -8
  41. data/rbi/increase/models/lockbox_address_update_params.rbi +116 -0
  42. data/rbi/increase/models/lockbox_recipient.rbi +182 -0
  43. data/rbi/increase/models/{lockbox_create_params.rbi → lockbox_recipient_create_params.rbi} +19 -8
  44. data/rbi/increase/models/lockbox_recipient_list_params.rbi +190 -0
  45. data/rbi/increase/models/{bookkeeping_entry_retrieve_params.rbi → lockbox_recipient_retrieve_params.rbi} +8 -8
  46. data/rbi/increase/models/lockbox_recipient_update_params.rbi +129 -0
  47. data/rbi/increase/models/simulations/card_token_create_params.rbi +7 -0
  48. data/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi +22 -8
  49. data/rbi/increase/models.rbi +16 -38
  50. data/rbi/increase/resources/inbound_mail_items.rbi +6 -3
  51. data/rbi/increase/resources/{bookkeeping_entry_sets.rbi → lockbox_addresses.rbi} +35 -24
  52. data/rbi/increase/resources/{lockboxes.rbi → lockbox_recipients.rbi} +31 -26
  53. data/rbi/increase/resources/simulations/inbound_mail_items.rbi +6 -3
  54. data/sig/increase/client.rbs +3 -7
  55. data/sig/increase/models/card_push_transfer.rbs +4 -1
  56. data/sig/increase/models/card_token_capabilities.rbs +4 -1
  57. data/sig/increase/models/card_validation.rbs +4 -1
  58. data/sig/increase/models/check_deposit.rbs +4 -4
  59. data/sig/increase/models/inbound_mail_item.rbs +20 -5
  60. data/sig/increase/models/inbound_mail_item_list_params.rbs +12 -5
  61. data/sig/increase/models/lockbox_address.rbs +117 -0
  62. data/sig/increase/models/{lockbox_retrieve_params.rbs → lockbox_address_create_params.rbs} +8 -6
  63. data/sig/increase/models/{lockbox_list_params.rbs → lockbox_address_list_params.rbs} +8 -15
  64. data/sig/increase/models/{bookkeeping_entry_set_retrieve_params.rbs → lockbox_address_retrieve_params.rbs} +6 -6
  65. data/sig/increase/models/lockbox_address_update_params.rbs +59 -0
  66. data/sig/increase/models/lockbox_recipient.rbs +92 -0
  67. data/sig/increase/models/{lockbox_create_params.rbs → lockbox_recipient_create_params.rbs} +12 -3
  68. data/sig/increase/models/lockbox_recipient_list_params.rbs +100 -0
  69. data/sig/increase/models/{bookkeeping_entry_retrieve_params.rbs → lockbox_recipient_retrieve_params.rbs} +6 -6
  70. data/sig/increase/models/lockbox_recipient_update_params.rbs +66 -0
  71. data/sig/increase/models/simulations/card_token_create_params.rbs +4 -1
  72. data/sig/increase/models/simulations/inbound_mail_item_create_params.rbs +18 -5
  73. data/sig/increase/models.rbs +15 -31
  74. data/sig/increase/resources/inbound_mail_items.rbs +2 -1
  75. data/sig/increase/resources/lockbox_addresses.rbs +32 -0
  76. data/sig/increase/resources/{lockboxes.rbs → lockbox_recipients.rbs} +11 -9
  77. data/sig/increase/resources/simulations/inbound_mail_items.rbs +2 -1
  78. metadata +38 -68
  79. data/lib/increase/models/bookkeeping_account.rb +0 -104
  80. data/lib/increase/models/bookkeeping_account_balance_params.rb +0 -30
  81. data/lib/increase/models/bookkeeping_account_create_params.rb +0 -60
  82. data/lib/increase/models/bookkeeping_account_list_params.rb +0 -45
  83. data/lib/increase/models/bookkeeping_account_update_params.rb +0 -30
  84. data/lib/increase/models/bookkeeping_balance_lookup.rb +0 -54
  85. data/lib/increase/models/bookkeeping_entry.rb +0 -79
  86. data/lib/increase/models/bookkeeping_entry_list_params.rb +0 -42
  87. data/lib/increase/models/bookkeeping_entry_retrieve_params.rb +0 -22
  88. data/lib/increase/models/bookkeeping_entry_set.rb +0 -116
  89. data/lib/increase/models/bookkeeping_entry_set_create_params.rb +0 -67
  90. data/lib/increase/models/bookkeeping_entry_set_list_params.rb +0 -53
  91. data/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb +0 -22
  92. data/lib/increase/models/lockbox.rb +0 -185
  93. data/lib/increase/models/lockbox_create_params.rb +0 -38
  94. data/lib/increase/models/lockbox_retrieve_params.rb +0 -22
  95. data/lib/increase/models/lockbox_update_params.rb +0 -63
  96. data/lib/increase/resources/bookkeeping_accounts.rb +0 -122
  97. data/lib/increase/resources/bookkeeping_entries.rb +0 -65
  98. data/lib/increase/resources/bookkeeping_entry_sets.rb +0 -96
  99. data/lib/increase/resources/lockboxes.rb +0 -123
  100. data/rbi/increase/models/bookkeeping_account.rbi +0 -165
  101. data/rbi/increase/models/bookkeeping_account_balance_params.rbi +0 -57
  102. data/rbi/increase/models/bookkeeping_account_create_params.rbi +0 -130
  103. data/rbi/increase/models/bookkeeping_account_list_params.rbi +0 -79
  104. data/rbi/increase/models/bookkeeping_account_update_params.rbi +0 -54
  105. data/rbi/increase/models/bookkeeping_balance_lookup.rbi +0 -85
  106. data/rbi/increase/models/bookkeeping_entry.rbi +0 -108
  107. data/rbi/increase/models/bookkeeping_entry_list_params.rbi +0 -73
  108. data/rbi/increase/models/bookkeeping_entry_set.rbi +0 -162
  109. data/rbi/increase/models/bookkeeping_entry_set_create_params.rbi +0 -110
  110. data/rbi/increase/models/bookkeeping_entry_set_list_params.rbi +0 -90
  111. data/rbi/increase/models/lockbox.rbi +0 -251
  112. data/rbi/increase/models/lockbox_retrieve_params.rbi +0 -40
  113. data/rbi/increase/models/lockbox_update_params.rbi +0 -131
  114. data/rbi/increase/resources/bookkeeping_accounts.rbi +0 -94
  115. data/rbi/increase/resources/bookkeeping_entries.rbi +0 -47
  116. data/sig/increase/models/bookkeeping_account.rbs +0 -74
  117. data/sig/increase/models/bookkeeping_account_balance_params.rbs +0 -30
  118. data/sig/increase/models/bookkeeping_account_create_params.rbs +0 -63
  119. data/sig/increase/models/bookkeeping_account_list_params.rbs +0 -38
  120. data/sig/increase/models/bookkeeping_account_update_params.rbs +0 -28
  121. data/sig/increase/models/bookkeeping_balance_lookup.rbs +0 -40
  122. data/sig/increase/models/bookkeeping_entry.rbs +0 -55
  123. data/sig/increase/models/bookkeeping_entry_list_params.rbs +0 -38
  124. data/sig/increase/models/bookkeeping_entry_set.rbs +0 -78
  125. data/sig/increase/models/bookkeeping_entry_set_create_params.rbs +0 -52
  126. data/sig/increase/models/bookkeeping_entry_set_list_params.rbs +0 -49
  127. data/sig/increase/models/lockbox.rbs +0 -129
  128. data/sig/increase/models/lockbox_update_params.rbs +0 -66
  129. data/sig/increase/resources/bookkeeping_accounts.rbs +0 -34
  130. data/sig/increase/resources/bookkeeping_entries.rbs +0 -19
  131. data/sig/increase/resources/bookkeeping_entry_sets.rbs +0 -27
@@ -0,0 +1,130 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class LockboxRecipients
6
+ # Some parameter documentations has been truncated, see
7
+ # {Increase::Models::LockboxRecipientCreateParams} for more details.
8
+ #
9
+ # Create a Lockbox Recipient
10
+ #
11
+ # @overload create(account_id:, lockbox_address_id:, description: nil, recipient_name: nil, request_options: {})
12
+ #
13
+ # @param account_id [String] The Account that checks sent to this Lockbox Recipient should be deposited into.
14
+ #
15
+ # @param lockbox_address_id [String] The Lockbox Address where this Lockbox Recipient may receive mail.
16
+ #
17
+ # @param description [String] The description you choose for the Lockbox Recipient.
18
+ #
19
+ # @param recipient_name [String] The name of the Lockbox Recipient
20
+ #
21
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
22
+ #
23
+ # @return [Increase::Models::LockboxRecipient]
24
+ #
25
+ # @see Increase::Models::LockboxRecipientCreateParams
26
+ def create(params)
27
+ parsed, options = Increase::LockboxRecipientCreateParams.dump_request(params)
28
+ @client.request(
29
+ method: :post,
30
+ path: "lockbox_recipients",
31
+ body: parsed,
32
+ model: Increase::LockboxRecipient,
33
+ options: options
34
+ )
35
+ end
36
+
37
+ # Retrieve a Lockbox Recipient
38
+ #
39
+ # @overload retrieve(lockbox_recipient_id, request_options: {})
40
+ #
41
+ # @param lockbox_recipient_id [String] The identifier of the Lockbox Recipient to retrieve.
42
+ #
43
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
44
+ #
45
+ # @return [Increase::Models::LockboxRecipient]
46
+ #
47
+ # @see Increase::Models::LockboxRecipientRetrieveParams
48
+ def retrieve(lockbox_recipient_id, params = {})
49
+ @client.request(
50
+ method: :get,
51
+ path: ["lockbox_recipients/%1$s", lockbox_recipient_id],
52
+ model: Increase::LockboxRecipient,
53
+ options: params[:request_options]
54
+ )
55
+ end
56
+
57
+ # Update a Lockbox Recipient
58
+ #
59
+ # @overload update(lockbox_recipient_id, description: nil, recipient_name: nil, status: nil, request_options: {})
60
+ #
61
+ # @param lockbox_recipient_id [String] The identifier of the Lockbox Recipient.
62
+ #
63
+ # @param description [String] The description you choose for the Lockbox Recipient.
64
+ #
65
+ # @param recipient_name [String] The name of the Lockbox Recipient.
66
+ #
67
+ # @param status [Symbol, Increase::Models::LockboxRecipientUpdateParams::Status] The status of the Lockbox Recipient.
68
+ #
69
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
70
+ #
71
+ # @return [Increase::Models::LockboxRecipient]
72
+ #
73
+ # @see Increase::Models::LockboxRecipientUpdateParams
74
+ def update(lockbox_recipient_id, params = {})
75
+ parsed, options = Increase::LockboxRecipientUpdateParams.dump_request(params)
76
+ @client.request(
77
+ method: :patch,
78
+ path: ["lockbox_recipients/%1$s", lockbox_recipient_id],
79
+ body: parsed,
80
+ model: Increase::LockboxRecipient,
81
+ options: options
82
+ )
83
+ end
84
+
85
+ # Some parameter documentations has been truncated, see
86
+ # {Increase::Models::LockboxRecipientListParams} for more details.
87
+ #
88
+ # List Lockbox Recipients
89
+ #
90
+ # @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, lockbox_address_id: nil, request_options: {})
91
+ #
92
+ # @param account_id [String] Filter Lockbox Recipients to those associated with the provided Account.
93
+ #
94
+ # @param created_at [Increase::Models::LockboxRecipientListParams::CreatedAt]
95
+ #
96
+ # @param cursor [String] Return the page of entries after this one.
97
+ #
98
+ # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
99
+ #
100
+ # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
101
+ #
102
+ # @param lockbox_address_id [String] Filter Lockbox Recipients to those associated with the provided Lockbox Address.
103
+ #
104
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
105
+ #
106
+ # @return [Increase::Internal::Page<Increase::Models::LockboxRecipient>]
107
+ #
108
+ # @see Increase::Models::LockboxRecipientListParams
109
+ def list(params = {})
110
+ parsed, options = Increase::LockboxRecipientListParams.dump_request(params)
111
+ query = Increase::Internal::Util.encode_query_params(parsed)
112
+ @client.request(
113
+ method: :get,
114
+ path: "lockbox_recipients",
115
+ query: query,
116
+ page: Increase::Internal::Page,
117
+ model: Increase::LockboxRecipient,
118
+ options: options
119
+ )
120
+ end
121
+
122
+ # @api private
123
+ #
124
+ # @param client [Increase::Client]
125
+ def initialize(client:)
126
+ @client = client
127
+ end
128
+ end
129
+ end
130
+ end
@@ -10,14 +10,16 @@ module Increase
10
10
  # Simulates an inbound mail item to your account, as if someone had mailed a
11
11
  # physical check to one of your account's Lockboxes.
12
12
  #
13
- # @overload create(amount:, lockbox_id:, contents_file_id: nil, request_options: {})
13
+ # @overload create(amount:, contents_file_id: nil, lockbox_address_id: nil, lockbox_recipient_id: nil, request_options: {})
14
14
  #
15
15
  # @param amount [Integer] The amount of the check to be simulated, in cents.
16
16
  #
17
- # @param lockbox_id [String] The identifier of the Lockbox to simulate inbound mail to.
18
- #
19
17
  # @param contents_file_id [String] The file containing the PDF contents. If not present, a default check image file
20
18
  #
19
+ # @param lockbox_address_id [String] The identifier of the Lockbox Address to simulate inbound mail to.
20
+ #
21
+ # @param lockbox_recipient_id [String] The identifier of the Lockbox Recipient to simulate inbound mail to.
22
+ #
21
23
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
22
24
  #
23
25
  # @return [Increase::Models::InboundMailItem]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.303.0"
4
+ VERSION = "1.305.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -91,19 +91,6 @@ require_relative "increase/models/beneficial_owner_create_params"
91
91
  require_relative "increase/models/beneficial_owner_list_params"
92
92
  require_relative "increase/models/beneficial_owner_retrieve_params"
93
93
  require_relative "increase/models/beneficial_owner_update_params"
94
- require_relative "increase/models/bookkeeping_account"
95
- require_relative "increase/models/bookkeeping_account_balance_params"
96
- require_relative "increase/models/bookkeeping_account_create_params"
97
- require_relative "increase/models/bookkeeping_account_list_params"
98
- require_relative "increase/models/bookkeeping_account_update_params"
99
- require_relative "increase/models/bookkeeping_balance_lookup"
100
- require_relative "increase/models/bookkeeping_entry"
101
- require_relative "increase/models/bookkeeping_entry_list_params"
102
- require_relative "increase/models/bookkeeping_entry_retrieve_params"
103
- require_relative "increase/models/bookkeeping_entry_set"
104
- require_relative "increase/models/bookkeeping_entry_set_create_params"
105
- require_relative "increase/models/bookkeeping_entry_set_list_params"
106
- require_relative "increase/models/bookkeeping_entry_set_retrieve_params"
107
94
  require_relative "increase/models/card"
108
95
  require_relative "increase/models/card_create_details_iframe_params"
109
96
  require_relative "increase/models/card_create_params"
@@ -249,11 +236,16 @@ require_relative "increase/models/intrafi_exclusion_archive_params"
249
236
  require_relative "increase/models/intrafi_exclusion_create_params"
250
237
  require_relative "increase/models/intrafi_exclusion_list_params"
251
238
  require_relative "increase/models/intrafi_exclusion_retrieve_params"
252
- require_relative "increase/models/lockbox"
253
- require_relative "increase/models/lockbox_create_params"
254
- require_relative "increase/models/lockbox_list_params"
255
- require_relative "increase/models/lockbox_retrieve_params"
256
- require_relative "increase/models/lockbox_update_params"
239
+ require_relative "increase/models/lockbox_address"
240
+ require_relative "increase/models/lockbox_address_create_params"
241
+ require_relative "increase/models/lockbox_address_list_params"
242
+ require_relative "increase/models/lockbox_address_retrieve_params"
243
+ require_relative "increase/models/lockbox_address_update_params"
244
+ require_relative "increase/models/lockbox_recipient"
245
+ require_relative "increase/models/lockbox_recipient_create_params"
246
+ require_relative "increase/models/lockbox_recipient_list_params"
247
+ require_relative "increase/models/lockbox_recipient_retrieve_params"
248
+ require_relative "increase/models/lockbox_recipient_update_params"
257
249
  require_relative "increase/models/oauth_application"
258
250
  require_relative "increase/models/oauth_application_list_params"
259
251
  require_relative "increase/models/oauth_application_retrieve_params"
@@ -370,9 +362,6 @@ require_relative "increase/resources/account_transfers"
370
362
  require_relative "increase/resources/ach_prenotifications"
371
363
  require_relative "increase/resources/ach_transfers"
372
364
  require_relative "increase/resources/beneficial_owners"
373
- require_relative "increase/resources/bookkeeping_accounts"
374
- require_relative "increase/resources/bookkeeping_entries"
375
- require_relative "increase/resources/bookkeeping_entry_sets"
376
365
  require_relative "increase/resources/card_disputes"
377
366
  require_relative "increase/resources/card_payments"
378
367
  require_relative "increase/resources/card_purchase_supplements"
@@ -405,7 +394,8 @@ require_relative "increase/resources/inbound_wire_transfers"
405
394
  require_relative "increase/resources/intrafi_account_enrollments"
406
395
  require_relative "increase/resources/intrafi_balances"
407
396
  require_relative "increase/resources/intrafi_exclusions"
408
- require_relative "increase/resources/lockboxes"
397
+ require_relative "increase/resources/lockbox_addresses"
398
+ require_relative "increase/resources/lockbox_recipients"
409
399
  require_relative "increase/resources/oauth_applications"
410
400
  require_relative "increase/resources/oauth_connections"
411
401
  require_relative "increase/resources/oauth_tokens"
@@ -112,8 +112,11 @@ module Increase
112
112
  sig { returns(Increase::Resources::CheckDeposits) }
113
113
  attr_reader :check_deposits
114
114
 
115
- sig { returns(Increase::Resources::Lockboxes) }
116
- attr_reader :lockboxes
115
+ sig { returns(Increase::Resources::LockboxAddresses) }
116
+ attr_reader :lockbox_addresses
117
+
118
+ sig { returns(Increase::Resources::LockboxRecipients) }
119
+ attr_reader :lockbox_recipients
117
120
 
118
121
  sig { returns(Increase::Resources::InboundMailItems) }
119
122
  attr_reader :inbound_mail_items
@@ -160,15 +163,6 @@ module Increase
160
163
  sig { returns(Increase::Resources::RealTimeDecisions) }
161
164
  attr_reader :real_time_decisions
162
165
 
163
- sig { returns(Increase::Resources::BookkeepingAccounts) }
164
- attr_reader :bookkeeping_accounts
165
-
166
- sig { returns(Increase::Resources::BookkeepingEntrySets) }
167
- attr_reader :bookkeeping_entry_sets
168
-
169
- sig { returns(Increase::Resources::BookkeepingEntries) }
170
- attr_reader :bookkeeping_entries
171
-
172
166
  sig { returns(Increase::Resources::Groups) }
173
167
  attr_reader :groups
174
168
 
@@ -2638,6 +2638,9 @@ module Increase
2638
2638
  MASTERCARD =
2639
2639
  T.let(:mastercard, Increase::CardPushTransfer::Route::TaggedSymbol)
2640
2640
 
2641
+ # Pulse
2642
+ PULSE = T.let(:pulse, Increase::CardPushTransfer::Route::TaggedSymbol)
2643
+
2641
2644
  sig do
2642
2645
  override.returns(
2643
2646
  T::Array[Increase::CardPushTransfer::Route::TaggedSymbol]
@@ -218,6 +218,13 @@ module Increase
218
218
  Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
219
219
  )
220
220
 
221
+ # Pulse
222
+ PULSE =
223
+ T.let(
224
+ :pulse,
225
+ Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
226
+ )
227
+
221
228
  sig do
222
229
  override.returns(
223
230
  T::Array[
@@ -1482,6 +1482,9 @@ module Increase
1482
1482
  MASTERCARD =
1483
1483
  T.let(:mastercard, Increase::CardValidation::Route::TaggedSymbol)
1484
1484
 
1485
+ # Pulse
1486
+ PULSE = T.let(:pulse, Increase::CardValidation::Route::TaggedSymbol)
1487
+
1485
1488
  sig do
1486
1489
  override.returns(
1487
1490
  T::Array[Increase::CardValidation::Route::TaggedSymbol]
@@ -118,10 +118,11 @@ module Increase
118
118
  sig { returns(T.nilable(String)) }
119
119
  attr_accessor :inbound_mail_item_id
120
120
 
121
- # If the Check Deposit was the result of an Inbound Mail Item, this will contain
122
- # the identifier of the Lockbox that received it.
121
+ # If the Check Deposit was the result of an Inbound Mail Item routed to a Lockbox
122
+ # Recipient, this will contain the identifier of the Lockbox Recipient that
123
+ # received it.
123
124
  sig { returns(T.nilable(String)) }
124
- attr_accessor :lockbox_id
125
+ attr_accessor :lockbox_recipient_id
125
126
 
126
127
  # The status of the Check Deposit.
127
128
  sig { returns(Increase::CheckDeposit::Status::TaggedSymbol) }
@@ -160,7 +161,7 @@ module Increase
160
161
  inbound_funds_hold:
161
162
  T.nilable(Increase::CheckDeposit::InboundFundsHold::OrHash),
162
163
  inbound_mail_item_id: T.nilable(String),
163
- lockbox_id: T.nilable(String),
164
+ lockbox_recipient_id: T.nilable(String),
164
165
  status: Increase::CheckDeposit::Status::OrSymbol,
165
166
  transaction_id: T.nilable(String),
166
167
  type: Increase::CheckDeposit::Type::OrSymbol
@@ -207,9 +208,10 @@ module Increase
207
208
  # If the Check Deposit was the result of an Inbound Mail Item, this will contain
208
209
  # the identifier of the Inbound Mail Item.
209
210
  inbound_mail_item_id:,
210
- # If the Check Deposit was the result of an Inbound Mail Item, this will contain
211
- # the identifier of the Lockbox that received it.
212
- lockbox_id:,
211
+ # If the Check Deposit was the result of an Inbound Mail Item routed to a Lockbox
212
+ # Recipient, this will contain the identifier of the Lockbox Recipient that
213
+ # received it.
214
+ lockbox_recipient_id:,
213
215
  # The status of the Check Deposit.
214
216
  status:,
215
217
  # The ID for the Transaction created by the deposit.
@@ -243,7 +245,7 @@ module Increase
243
245
  inbound_funds_hold:
244
246
  T.nilable(Increase::CheckDeposit::InboundFundsHold),
245
247
  inbound_mail_item_id: T.nilable(String),
246
- lockbox_id: T.nilable(String),
248
+ lockbox_recipient_id: T.nilable(String),
247
249
  status: Increase::CheckDeposit::Status::TaggedSymbol,
248
250
  transaction_id: T.nilable(String),
249
251
  type: Increase::CheckDeposit::Type::TaggedSymbol
@@ -25,10 +25,14 @@ module Increase
25
25
  sig { returns(String) }
26
26
  attr_accessor :file_id
27
27
 
28
- # The identifier for the Lockbox that received this mail item. For mail items that
29
- # could not be processed due to an invalid address, this will be null.
28
+ # The identifier for the Lockbox Address that received this mail item.
30
29
  sig { returns(T.nilable(String)) }
31
- attr_accessor :lockbox_id
30
+ attr_accessor :lockbox_address_id
31
+
32
+ # The identifier for the Lockbox Recipient that received this mail item. For mail
33
+ # items that could not be routed to a Lockbox Recipient, this will be null.
34
+ sig { returns(T.nilable(String)) }
35
+ attr_accessor :lockbox_recipient_id
32
36
 
33
37
  # The recipient name as written on the mail item.
34
38
  sig { returns(T.nilable(String)) }
@@ -51,14 +55,16 @@ module Increase
51
55
  sig { returns(Increase::InboundMailItem::Type::TaggedSymbol) }
52
56
  attr_accessor :type
53
57
 
54
- # Inbound Mail Items represent pieces of physical mail delivered to a Lockbox.
58
+ # Inbound Mail Items represent pieces of physical mail delivered to a Lockbox
59
+ # Address.
55
60
  sig do
56
61
  params(
57
62
  id: String,
58
63
  checks: T::Array[Increase::InboundMailItem::Check::OrHash],
59
64
  created_at: Time,
60
65
  file_id: String,
61
- lockbox_id: T.nilable(String),
66
+ lockbox_address_id: T.nilable(String),
67
+ lockbox_recipient_id: T.nilable(String),
62
68
  recipient_name: T.nilable(String),
63
69
  rejection_reason:
64
70
  T.nilable(Increase::InboundMailItem::RejectionReason::OrSymbol),
@@ -76,9 +82,11 @@ module Increase
76
82
  created_at:,
77
83
  # The identifier for the File containing the scanned contents of the mail item.
78
84
  file_id:,
79
- # The identifier for the Lockbox that received this mail item. For mail items that
80
- # could not be processed due to an invalid address, this will be null.
81
- lockbox_id:,
85
+ # The identifier for the Lockbox Address that received this mail item.
86
+ lockbox_address_id:,
87
+ # The identifier for the Lockbox Recipient that received this mail item. For mail
88
+ # items that could not be routed to a Lockbox Recipient, this will be null.
89
+ lockbox_recipient_id:,
82
90
  # The recipient name as written on the mail item.
83
91
  recipient_name:,
84
92
  # If the mail item has been rejected, why it was rejected.
@@ -98,7 +106,8 @@ module Increase
98
106
  checks: T::Array[Increase::InboundMailItem::Check],
99
107
  created_at: Time,
100
108
  file_id: String,
101
- lockbox_id: T.nilable(String),
109
+ lockbox_address_id: T.nilable(String),
110
+ lockbox_recipient_id: T.nilable(String),
102
111
  recipient_name: T.nilable(String),
103
112
  rejection_reason:
104
113
  T.nilable(
@@ -256,6 +265,20 @@ module Increase
256
265
  Increase::InboundMailItem::RejectionReason::TaggedSymbol
257
266
  )
258
267
 
268
+ # The Lockbox Address is not active.
269
+ LOCKBOX_ADDRESS_NOT_ACTIVE =
270
+ T.let(
271
+ :lockbox_address_not_active,
272
+ Increase::InboundMailItem::RejectionReason::TaggedSymbol
273
+ )
274
+
275
+ # The Lockbox Recipient or its associated Account is not active.
276
+ LOCKBOX_RECIPIENT_NOT_ACTIVE =
277
+ T.let(
278
+ :lockbox_recipient_not_active,
279
+ Increase::InboundMailItem::RejectionReason::TaggedSymbol
280
+ )
281
+
259
282
  sig do
260
283
  override.returns(
261
284
  T::Array[Increase::InboundMailItem::RejectionReason::TaggedSymbol]
@@ -39,19 +39,27 @@ module Increase
39
39
  sig { params(limit: Integer).void }
40
40
  attr_writer :limit
41
41
 
42
- # Filter Inbound Mail Items to ones sent to the provided Lockbox.
42
+ # Filter Inbound Mail Items to ones sent to the provided Lockbox Address.
43
43
  sig { returns(T.nilable(String)) }
44
- attr_reader :lockbox_id
44
+ attr_reader :lockbox_address_id
45
45
 
46
- sig { params(lockbox_id: String).void }
47
- attr_writer :lockbox_id
46
+ sig { params(lockbox_address_id: String).void }
47
+ attr_writer :lockbox_address_id
48
+
49
+ # Filter Inbound Mail Items to ones sent to the provided Lockbox Recipient.
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :lockbox_recipient_id
52
+
53
+ sig { params(lockbox_recipient_id: String).void }
54
+ attr_writer :lockbox_recipient_id
48
55
 
49
56
  sig do
50
57
  params(
51
58
  created_at: Increase::InboundMailItemListParams::CreatedAt::OrHash,
52
59
  cursor: String,
53
60
  limit: Integer,
54
- lockbox_id: String,
61
+ lockbox_address_id: String,
62
+ lockbox_recipient_id: String,
55
63
  request_options: Increase::RequestOptions::OrHash
56
64
  ).returns(T.attached_class)
57
65
  end
@@ -62,8 +70,10 @@ module Increase
62
70
  # Limit the size of the list that is returned. The default (and maximum) is 100
63
71
  # objects.
64
72
  limit: nil,
65
- # Filter Inbound Mail Items to ones sent to the provided Lockbox.
66
- lockbox_id: nil,
73
+ # Filter Inbound Mail Items to ones sent to the provided Lockbox Address.
74
+ lockbox_address_id: nil,
75
+ # Filter Inbound Mail Items to ones sent to the provided Lockbox Recipient.
76
+ lockbox_recipient_id: nil,
67
77
  request_options: {}
68
78
  )
69
79
  end
@@ -74,7 +84,8 @@ module Increase
74
84
  created_at: Increase::InboundMailItemListParams::CreatedAt,
75
85
  cursor: String,
76
86
  limit: Integer,
77
- lockbox_id: String,
87
+ lockbox_address_id: String,
88
+ lockbox_recipient_id: String,
78
89
  request_options: Increase::RequestOptions
79
90
  }
80
91
  )