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,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
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class LockboxAddressCreateParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::LockboxAddressCreateParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The description you choose for the Lockbox Address.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :description
20
+
21
+ sig { params(description: String).void }
22
+ attr_writer :description
23
+
24
+ sig do
25
+ params(
26
+ description: String,
27
+ request_options: Increase::RequestOptions::OrHash
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(
31
+ # The description you choose for the Lockbox Address.
32
+ description: nil,
33
+ request_options: {}
34
+ )
35
+ end
36
+
37
+ sig do
38
+ override.returns(
39
+ { description: String, request_options: Increase::RequestOptions }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
@@ -2,27 +2,22 @@
2
2
 
3
3
  module Increase
4
4
  module Models
5
- class LockboxListParams < Increase::Internal::Type::BaseModel
5
+ class LockboxAddressListParams < Increase::Internal::Type::BaseModel
6
6
  extend Increase::Internal::Type::RequestParameters::Converter
7
7
  include Increase::Internal::Type::RequestParameters
8
8
 
9
9
  OrHash =
10
10
  T.type_alias do
11
- T.any(Increase::LockboxListParams, Increase::Internal::AnyHash)
11
+ T.any(Increase::LockboxAddressListParams, Increase::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Filter Lockboxes to those associated with the provided Account.
15
- sig { returns(T.nilable(String)) }
16
- attr_reader :account_id
17
-
18
- sig { params(account_id: String).void }
19
- attr_writer :account_id
20
-
21
- sig { returns(T.nilable(Increase::LockboxListParams::CreatedAt)) }
14
+ sig { returns(T.nilable(Increase::LockboxAddressListParams::CreatedAt)) }
22
15
  attr_reader :created_at
23
16
 
24
17
  sig do
25
- params(created_at: Increase::LockboxListParams::CreatedAt::OrHash).void
18
+ params(
19
+ created_at: Increase::LockboxAddressListParams::CreatedAt::OrHash
20
+ ).void
26
21
  end
27
22
  attr_writer :created_at
28
23
 
@@ -53,8 +48,7 @@ module Increase
53
48
 
54
49
  sig do
55
50
  params(
56
- account_id: String,
57
- created_at: Increase::LockboxListParams::CreatedAt::OrHash,
51
+ created_at: Increase::LockboxAddressListParams::CreatedAt::OrHash,
58
52
  cursor: String,
59
53
  idempotency_key: String,
60
54
  limit: Integer,
@@ -62,8 +56,6 @@ module Increase
62
56
  ).returns(T.attached_class)
63
57
  end
64
58
  def self.new(
65
- # Filter Lockboxes to those associated with the provided Account.
66
- account_id: nil,
67
59
  created_at: nil,
68
60
  # Return the page of entries after this one.
69
61
  cursor: nil,
@@ -82,8 +74,7 @@ module Increase
82
74
  sig do
83
75
  override.returns(
84
76
  {
85
- account_id: String,
86
- created_at: Increase::LockboxListParams::CreatedAt,
77
+ created_at: Increase::LockboxAddressListParams::CreatedAt,
87
78
  cursor: String,
88
79
  idempotency_key: String,
89
80
  limit: Integer,
@@ -98,7 +89,7 @@ module Increase
98
89
  OrHash =
99
90
  T.type_alias do
100
91
  T.any(
101
- Increase::LockboxListParams::CreatedAt,
92
+ Increase::LockboxAddressListParams::CreatedAt,
102
93
  Increase::Internal::AnyHash
103
94
  )
104
95
  end
@@ -2,31 +2,31 @@
2
2
 
3
3
  module Increase
4
4
  module Models
5
- class BookkeepingEntrySetRetrieveParams < Increase::Internal::Type::BaseModel
5
+ class LockboxAddressRetrieveParams < Increase::Internal::Type::BaseModel
6
6
  extend Increase::Internal::Type::RequestParameters::Converter
7
7
  include Increase::Internal::Type::RequestParameters
8
8
 
9
9
  OrHash =
10
10
  T.type_alias do
11
11
  T.any(
12
- Increase::BookkeepingEntrySetRetrieveParams,
12
+ Increase::LockboxAddressRetrieveParams,
13
13
  Increase::Internal::AnyHash
14
14
  )
15
15
  end
16
16
 
17
- # The identifier of the Bookkeeping Entry Set.
17
+ # The identifier of the Lockbox Address to retrieve.
18
18
  sig { returns(String) }
19
- attr_accessor :bookkeeping_entry_set_id
19
+ attr_accessor :lockbox_address_id
20
20
 
21
21
  sig do
22
22
  params(
23
- bookkeeping_entry_set_id: String,
23
+ lockbox_address_id: String,
24
24
  request_options: Increase::RequestOptions::OrHash
25
25
  ).returns(T.attached_class)
26
26
  end
27
27
  def self.new(
28
- # The identifier of the Bookkeeping Entry Set.
29
- bookkeeping_entry_set_id:,
28
+ # The identifier of the Lockbox Address to retrieve.
29
+ lockbox_address_id:,
30
30
  request_options: {}
31
31
  )
32
32
  end
@@ -34,7 +34,7 @@ module Increase
34
34
  sig do
35
35
  override.returns(
36
36
  {
37
- bookkeeping_entry_set_id: String,
37
+ lockbox_address_id: String,
38
38
  request_options: Increase::RequestOptions
39
39
  }
40
40
  )
@@ -0,0 +1,116 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class LockboxAddressUpdateParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::LockboxAddressUpdateParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Lockbox Address.
18
+ sig { returns(String) }
19
+ attr_accessor :lockbox_address_id
20
+
21
+ # The description you choose for the Lockbox Address.
22
+ sig { returns(T.nilable(String)) }
23
+ attr_reader :description
24
+
25
+ sig { params(description: String).void }
26
+ attr_writer :description
27
+
28
+ # The status of the Lockbox Address.
29
+ sig do
30
+ returns(
31
+ T.nilable(Increase::LockboxAddressUpdateParams::Status::OrSymbol)
32
+ )
33
+ end
34
+ attr_reader :status
35
+
36
+ sig do
37
+ params(
38
+ status: Increase::LockboxAddressUpdateParams::Status::OrSymbol
39
+ ).void
40
+ end
41
+ attr_writer :status
42
+
43
+ sig do
44
+ params(
45
+ lockbox_address_id: String,
46
+ description: String,
47
+ status: Increase::LockboxAddressUpdateParams::Status::OrSymbol,
48
+ request_options: Increase::RequestOptions::OrHash
49
+ ).returns(T.attached_class)
50
+ end
51
+ def self.new(
52
+ # The identifier of the Lockbox Address.
53
+ lockbox_address_id:,
54
+ # The description you choose for the Lockbox Address.
55
+ description: nil,
56
+ # The status of the Lockbox Address.
57
+ status: nil,
58
+ request_options: {}
59
+ )
60
+ end
61
+
62
+ sig do
63
+ override.returns(
64
+ {
65
+ lockbox_address_id: String,
66
+ description: String,
67
+ status: Increase::LockboxAddressUpdateParams::Status::OrSymbol,
68
+ request_options: Increase::RequestOptions
69
+ }
70
+ )
71
+ end
72
+ def to_hash
73
+ end
74
+
75
+ # The status of the Lockbox Address.
76
+ module Status
77
+ extend Increase::Internal::Type::Enum
78
+
79
+ TaggedSymbol =
80
+ T.type_alias do
81
+ T.all(Symbol, Increase::LockboxAddressUpdateParams::Status)
82
+ end
83
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
84
+
85
+ # This Lockbox Address is active.
86
+ ACTIVE =
87
+ T.let(
88
+ :active,
89
+ Increase::LockboxAddressUpdateParams::Status::TaggedSymbol
90
+ )
91
+
92
+ # This Lockbox Address is disabled.
93
+ DISABLED =
94
+ T.let(
95
+ :disabled,
96
+ Increase::LockboxAddressUpdateParams::Status::TaggedSymbol
97
+ )
98
+
99
+ # This Lockbox Address is permanently disabled.
100
+ CANCELED =
101
+ T.let(
102
+ :canceled,
103
+ Increase::LockboxAddressUpdateParams::Status::TaggedSymbol
104
+ )
105
+
106
+ sig do
107
+ override.returns(
108
+ T::Array[Increase::LockboxAddressUpdateParams::Status::TaggedSymbol]
109
+ )
110
+ end
111
+ def self.values
112
+ end
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,182 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class LockboxRecipient < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::LockboxRecipient, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The Lockbox Recipient identifier.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The identifier for the Account that checks sent to this Lockbox Recipient will
16
+ # be deposited into.
17
+ sig { returns(String) }
18
+ attr_accessor :account_id
19
+
20
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
21
+ # Recipient was created.
22
+ sig { returns(Time) }
23
+ attr_accessor :created_at
24
+
25
+ # The description of the Lockbox Recipient.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_accessor :description
28
+
29
+ # The idempotency key you chose for this object. This value is unique across
30
+ # Increase and is used to ensure that a request is only processed once. Learn more
31
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
32
+ sig { returns(T.nilable(String)) }
33
+ attr_accessor :idempotency_key
34
+
35
+ # The identifier for the Lockbox Address where this Lockbox Recipient may receive
36
+ # physical mail.
37
+ sig { returns(String) }
38
+ attr_accessor :lockbox_address_id
39
+
40
+ # The mail stop code uniquely identifying this Lockbox Recipient at its Lockbox
41
+ # Address. It should be included in the mailing address intended for this Lockbox
42
+ # Recipient.
43
+ sig { returns(String) }
44
+ attr_accessor :mail_stop_code
45
+
46
+ # The name of the Lockbox Recipient.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :recipient_name
49
+
50
+ # The status of the Lockbox Recipient.
51
+ sig do
52
+ returns(T.nilable(Increase::LockboxRecipient::Status::TaggedSymbol))
53
+ end
54
+ attr_accessor :status
55
+
56
+ # A constant representing the object's type. For this resource it will always be
57
+ # `lockbox_recipient`.
58
+ sig { returns(Increase::LockboxRecipient::Type::TaggedSymbol) }
59
+ attr_accessor :type
60
+
61
+ # Lockbox Recipients represent an inbox at a Lockbox Address. Checks received for
62
+ # a Lockbox Recipient are deposited into its associated Account.
63
+ sig do
64
+ params(
65
+ id: String,
66
+ account_id: String,
67
+ created_at: Time,
68
+ description: T.nilable(String),
69
+ idempotency_key: T.nilable(String),
70
+ lockbox_address_id: String,
71
+ mail_stop_code: String,
72
+ recipient_name: T.nilable(String),
73
+ status: T.nilable(Increase::LockboxRecipient::Status::OrSymbol),
74
+ type: Increase::LockboxRecipient::Type::OrSymbol
75
+ ).returns(T.attached_class)
76
+ end
77
+ def self.new(
78
+ # The Lockbox Recipient identifier.
79
+ id:,
80
+ # The identifier for the Account that checks sent to this Lockbox Recipient will
81
+ # be deposited into.
82
+ account_id:,
83
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
84
+ # Recipient was created.
85
+ created_at:,
86
+ # The description of the Lockbox Recipient.
87
+ description:,
88
+ # The idempotency key you chose for this object. This value is unique across
89
+ # Increase and is used to ensure that a request is only processed once. Learn more
90
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
91
+ idempotency_key:,
92
+ # The identifier for the Lockbox Address where this Lockbox Recipient may receive
93
+ # physical mail.
94
+ lockbox_address_id:,
95
+ # The mail stop code uniquely identifying this Lockbox Recipient at its Lockbox
96
+ # Address. It should be included in the mailing address intended for this Lockbox
97
+ # Recipient.
98
+ mail_stop_code:,
99
+ # The name of the Lockbox Recipient.
100
+ recipient_name:,
101
+ # The status of the Lockbox Recipient.
102
+ status:,
103
+ # A constant representing the object's type. For this resource it will always be
104
+ # `lockbox_recipient`.
105
+ type:
106
+ )
107
+ end
108
+
109
+ sig do
110
+ override.returns(
111
+ {
112
+ id: String,
113
+ account_id: String,
114
+ created_at: Time,
115
+ description: T.nilable(String),
116
+ idempotency_key: T.nilable(String),
117
+ lockbox_address_id: String,
118
+ mail_stop_code: String,
119
+ recipient_name: T.nilable(String),
120
+ status: T.nilable(Increase::LockboxRecipient::Status::TaggedSymbol),
121
+ type: Increase::LockboxRecipient::Type::TaggedSymbol
122
+ }
123
+ )
124
+ end
125
+ def to_hash
126
+ end
127
+
128
+ # The status of the Lockbox Recipient.
129
+ module Status
130
+ extend Increase::Internal::Type::Enum
131
+
132
+ TaggedSymbol =
133
+ T.type_alias { T.all(Symbol, Increase::LockboxRecipient::Status) }
134
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
135
+
136
+ # This Lockbox Recipient is active.
137
+ ACTIVE =
138
+ T.let(:active, Increase::LockboxRecipient::Status::TaggedSymbol)
139
+
140
+ # This Lockbox Recipient is disabled. Checks mailed to this Lockbox Recipient will be rejected.
141
+ DISABLED =
142
+ T.let(:disabled, Increase::LockboxRecipient::Status::TaggedSymbol)
143
+
144
+ # This Lockbox Recipient is canceled and cannot be modified. Checks mailed to this Lockbox Recipient will be rejected.
145
+ CANCELED =
146
+ T.let(:canceled, Increase::LockboxRecipient::Status::TaggedSymbol)
147
+
148
+ sig do
149
+ override.returns(
150
+ T::Array[Increase::LockboxRecipient::Status::TaggedSymbol]
151
+ )
152
+ end
153
+ def self.values
154
+ end
155
+ end
156
+
157
+ # A constant representing the object's type. For this resource it will always be
158
+ # `lockbox_recipient`.
159
+ module Type
160
+ extend Increase::Internal::Type::Enum
161
+
162
+ TaggedSymbol =
163
+ T.type_alias { T.all(Symbol, Increase::LockboxRecipient::Type) }
164
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
165
+
166
+ LOCKBOX_RECIPIENT =
167
+ T.let(
168
+ :lockbox_recipient,
169
+ Increase::LockboxRecipient::Type::TaggedSymbol
170
+ )
171
+
172
+ sig do
173
+ override.returns(
174
+ T::Array[Increase::LockboxRecipient::Type::TaggedSymbol]
175
+ )
176
+ end
177
+ def self.values
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end