increase 1.304.0 → 1.306.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +21 -3
  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 -5
  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 -6
  30. data/rbi/increase/client.rbi +5 -2
  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/{lockbox_retrieve_params.rbi → lockbox_address_retrieve_params.rbi} +14 -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/lockbox_recipient_retrieve_params.rbi +46 -0
  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 -5
  50. data/rbi/increase/resources/inbound_mail_items.rbi +6 -3
  51. data/rbi/increase/resources/lockbox_addresses.rbi +86 -0
  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 -1
  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_address_create_params.rbs +25 -0
  63. data/sig/increase/models/{lockbox_list_params.rbs → lockbox_address_list_params.rbs} +8 -15
  64. data/sig/increase/models/{lockbox_retrieve_params.rbs → lockbox_address_retrieve_params.rbs} +7 -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/lockbox_recipient_retrieve_params.rbs +24 -0
  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 -5
  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 -20
  79. data/lib/increase/models/lockbox.rb +0 -185
  80. data/lib/increase/models/lockbox_create_params.rb +0 -38
  81. data/lib/increase/models/lockbox_retrieve_params.rb +0 -22
  82. data/lib/increase/models/lockbox_update_params.rb +0 -63
  83. data/lib/increase/resources/lockboxes.rb +0 -123
  84. data/rbi/increase/models/lockbox.rbi +0 -251
  85. data/rbi/increase/models/lockbox_update_params.rbi +0 -131
  86. data/sig/increase/models/lockbox.rbs +0 -129
  87. data/sig/increase/models/lockbox_update_params.rbs +0 -66
@@ -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.304.0"
4
+ VERSION = "1.306.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -236,11 +236,16 @@ require_relative "increase/models/intrafi_exclusion_archive_params"
236
236
  require_relative "increase/models/intrafi_exclusion_create_params"
237
237
  require_relative "increase/models/intrafi_exclusion_list_params"
238
238
  require_relative "increase/models/intrafi_exclusion_retrieve_params"
239
- require_relative "increase/models/lockbox"
240
- require_relative "increase/models/lockbox_create_params"
241
- require_relative "increase/models/lockbox_list_params"
242
- require_relative "increase/models/lockbox_retrieve_params"
243
- 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"
244
249
  require_relative "increase/models/oauth_application"
245
250
  require_relative "increase/models/oauth_application_list_params"
246
251
  require_relative "increase/models/oauth_application_retrieve_params"
@@ -389,7 +394,8 @@ require_relative "increase/resources/inbound_wire_transfers"
389
394
  require_relative "increase/resources/intrafi_account_enrollments"
390
395
  require_relative "increase/resources/intrafi_balances"
391
396
  require_relative "increase/resources/intrafi_exclusions"
392
- require_relative "increase/resources/lockboxes"
397
+ require_relative "increase/resources/lockbox_addresses"
398
+ require_relative "increase/resources/lockbox_recipients"
393
399
  require_relative "increase/resources/oauth_applications"
394
400
  require_relative "increase/resources/oauth_connections"
395
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
@@ -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
  )
@@ -0,0 +1,228 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class LockboxAddress < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::LockboxAddress, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The Lockbox Address identifier.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The mailing address for the Lockbox Address. It will be present after Increase
16
+ # generates it.
17
+ sig { returns(T.nilable(Increase::LockboxAddress::Address)) }
18
+ attr_reader :address
19
+
20
+ sig do
21
+ params(
22
+ address: T.nilable(Increase::LockboxAddress::Address::OrHash)
23
+ ).void
24
+ end
25
+ attr_writer :address
26
+
27
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
28
+ # Address was created.
29
+ sig { returns(Time) }
30
+ attr_accessor :created_at
31
+
32
+ # The description you choose for the Lockbox Address.
33
+ sig { returns(T.nilable(String)) }
34
+ attr_accessor :description
35
+
36
+ # The idempotency key you chose for this object. This value is unique across
37
+ # Increase and is used to ensure that a request is only processed once. Learn more
38
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
39
+ sig { returns(T.nilable(String)) }
40
+ attr_accessor :idempotency_key
41
+
42
+ # The status of the Lockbox Address.
43
+ sig { returns(Increase::LockboxAddress::Status::TaggedSymbol) }
44
+ attr_accessor :status
45
+
46
+ # A constant representing the object's type. For this resource it will always be
47
+ # `lockbox_address`.
48
+ sig { returns(Increase::LockboxAddress::Type::TaggedSymbol) }
49
+ attr_accessor :type
50
+
51
+ # Lockbox Addresses are physical locations that can receive mail containing paper
52
+ # checks.
53
+ sig do
54
+ params(
55
+ id: String,
56
+ address: T.nilable(Increase::LockboxAddress::Address::OrHash),
57
+ created_at: Time,
58
+ description: T.nilable(String),
59
+ idempotency_key: T.nilable(String),
60
+ status: Increase::LockboxAddress::Status::OrSymbol,
61
+ type: Increase::LockboxAddress::Type::OrSymbol
62
+ ).returns(T.attached_class)
63
+ end
64
+ def self.new(
65
+ # The Lockbox Address identifier.
66
+ id:,
67
+ # The mailing address for the Lockbox Address. It will be present after Increase
68
+ # generates it.
69
+ address:,
70
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
71
+ # Address was created.
72
+ created_at:,
73
+ # The description you choose for the Lockbox Address.
74
+ description:,
75
+ # The idempotency key you chose for this object. This value is unique across
76
+ # Increase and is used to ensure that a request is only processed once. Learn more
77
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
78
+ idempotency_key:,
79
+ # The status of the Lockbox Address.
80
+ status:,
81
+ # A constant representing the object's type. For this resource it will always be
82
+ # `lockbox_address`.
83
+ type:
84
+ )
85
+ end
86
+
87
+ sig do
88
+ override.returns(
89
+ {
90
+ id: String,
91
+ address: T.nilable(Increase::LockboxAddress::Address),
92
+ created_at: Time,
93
+ description: T.nilable(String),
94
+ idempotency_key: T.nilable(String),
95
+ status: Increase::LockboxAddress::Status::TaggedSymbol,
96
+ type: Increase::LockboxAddress::Type::TaggedSymbol
97
+ }
98
+ )
99
+ end
100
+ def to_hash
101
+ end
102
+
103
+ class Address < Increase::Internal::Type::BaseModel
104
+ OrHash =
105
+ T.type_alias do
106
+ T.any(
107
+ Increase::LockboxAddress::Address,
108
+ Increase::Internal::AnyHash
109
+ )
110
+ end
111
+
112
+ # The city of the address.
113
+ sig { returns(String) }
114
+ attr_accessor :city
115
+
116
+ # The first line of the address.
117
+ sig { returns(String) }
118
+ attr_accessor :line1
119
+
120
+ # The second line of the address.
121
+ sig { returns(String) }
122
+ attr_accessor :line2
123
+
124
+ # The postal code of the address.
125
+ sig { returns(String) }
126
+ attr_accessor :postal_code
127
+
128
+ # The two-letter United States Postal Service (USPS) abbreviation for the state of
129
+ # the address.
130
+ sig { returns(String) }
131
+ attr_accessor :state
132
+
133
+ # The mailing address for the Lockbox Address. It will be present after Increase
134
+ # generates it.
135
+ sig do
136
+ params(
137
+ city: String,
138
+ line1: String,
139
+ line2: String,
140
+ postal_code: String,
141
+ state: String
142
+ ).returns(T.attached_class)
143
+ end
144
+ def self.new(
145
+ # The city of the address.
146
+ city:,
147
+ # The first line of the address.
148
+ line1:,
149
+ # The second line of the address.
150
+ line2:,
151
+ # The postal code of the address.
152
+ postal_code:,
153
+ # The two-letter United States Postal Service (USPS) abbreviation for the state of
154
+ # the address.
155
+ state:
156
+ )
157
+ end
158
+
159
+ sig do
160
+ override.returns(
161
+ {
162
+ city: String,
163
+ line1: String,
164
+ line2: String,
165
+ postal_code: String,
166
+ state: String
167
+ }
168
+ )
169
+ end
170
+ def to_hash
171
+ end
172
+ end
173
+
174
+ # The status of the Lockbox Address.
175
+ module Status
176
+ extend Increase::Internal::Type::Enum
177
+
178
+ TaggedSymbol =
179
+ T.type_alias { T.all(Symbol, Increase::LockboxAddress::Status) }
180
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
181
+
182
+ # Increase is generating this Lockbox Address.
183
+ PENDING =
184
+ T.let(:pending, Increase::LockboxAddress::Status::TaggedSymbol)
185
+
186
+ # This Lockbox Address is active.
187
+ ACTIVE = T.let(:active, Increase::LockboxAddress::Status::TaggedSymbol)
188
+
189
+ # This Lockbox Address is disabled.
190
+ DISABLED =
191
+ T.let(:disabled, Increase::LockboxAddress::Status::TaggedSymbol)
192
+
193
+ # This Lockbox Address is permanently disabled.
194
+ CANCELED =
195
+ T.let(:canceled, Increase::LockboxAddress::Status::TaggedSymbol)
196
+
197
+ sig do
198
+ override.returns(
199
+ T::Array[Increase::LockboxAddress::Status::TaggedSymbol]
200
+ )
201
+ end
202
+ def self.values
203
+ end
204
+ end
205
+
206
+ # A constant representing the object's type. For this resource it will always be
207
+ # `lockbox_address`.
208
+ module Type
209
+ extend Increase::Internal::Type::Enum
210
+
211
+ TaggedSymbol =
212
+ T.type_alias { T.all(Symbol, Increase::LockboxAddress::Type) }
213
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
214
+
215
+ LOCKBOX_ADDRESS =
216
+ T.let(:lockbox_address, Increase::LockboxAddress::Type::TaggedSymbol)
217
+
218
+ sig do
219
+ override.returns(
220
+ T::Array[Increase::LockboxAddress::Type::TaggedSymbol]
221
+ )
222
+ end
223
+ def self.values
224
+ end
225
+ end
226
+ end
227
+ end
228
+ end