increase 1.304.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +7 -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
@@ -1,185 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Lockboxes#create
6
- class Lockbox < Increase::Internal::Type::BaseModel
7
- # @!attribute id
8
- # The Lockbox identifier.
9
- #
10
- # @return [String]
11
- required :id, String
12
-
13
- # @!attribute account_id
14
- # The identifier for the Account checks sent to this lockbox will be deposited
15
- # into.
16
- #
17
- # @return [String]
18
- required :account_id, String
19
-
20
- # @!attribute address
21
- # The mailing address for the Lockbox.
22
- #
23
- # @return [Increase::Models::Lockbox::Address]
24
- required :address, -> { Increase::Lockbox::Address }
25
-
26
- # @!attribute check_deposit_behavior
27
- # Indicates if checks mailed to this lockbox will be deposited.
28
- #
29
- # @return [Symbol, Increase::Models::Lockbox::CheckDepositBehavior]
30
- required :check_deposit_behavior, enum: -> { Increase::Lockbox::CheckDepositBehavior }
31
-
32
- # @!attribute created_at
33
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
34
- # was created.
35
- #
36
- # @return [Time]
37
- required :created_at, Time
38
-
39
- # @!attribute description
40
- # The description you choose for the Lockbox.
41
- #
42
- # @return [String, nil]
43
- required :description, String, nil?: true
44
-
45
- # @!attribute idempotency_key
46
- # The idempotency key you chose for this object. This value is unique across
47
- # Increase and is used to ensure that a request is only processed once. Learn more
48
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
49
- #
50
- # @return [String, nil]
51
- required :idempotency_key, String, nil?: true
52
-
53
- # @!attribute recipient_name
54
- # The recipient name you choose for the Lockbox.
55
- #
56
- # @return [String, nil]
57
- required :recipient_name, String, nil?: true
58
-
59
- # @!attribute type
60
- # A constant representing the object's type. For this resource it will always be
61
- # `lockbox`.
62
- #
63
- # @return [Symbol, Increase::Models::Lockbox::Type]
64
- required :type, enum: -> { Increase::Lockbox::Type }
65
-
66
- # @!method initialize(id:, account_id:, address:, check_deposit_behavior:, created_at:, description:, idempotency_key:, recipient_name:, type:)
67
- # Some parameter documentations has been truncated, see
68
- # {Increase::Models::Lockbox} for more details.
69
- #
70
- # Lockboxes are physical locations that can receive mail containing paper checks.
71
- # Increase will automatically create a Check Deposit for checks received this way.
72
- #
73
- # @param id [String] The Lockbox identifier.
74
- #
75
- # @param account_id [String] The identifier for the Account checks sent to this lockbox will be deposited int
76
- #
77
- # @param address [Increase::Models::Lockbox::Address] The mailing address for the Lockbox.
78
- #
79
- # @param check_deposit_behavior [Symbol, Increase::Models::Lockbox::CheckDepositBehavior] Indicates if checks mailed to this lockbox will be deposited.
80
- #
81
- # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
82
- #
83
- # @param description [String, nil] The description you choose for the Lockbox.
84
- #
85
- # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
86
- #
87
- # @param recipient_name [String, nil] The recipient name you choose for the Lockbox.
88
- #
89
- # @param type [Symbol, Increase::Models::Lockbox::Type] A constant representing the object's type. For this resource it will always be `
90
-
91
- # @see Increase::Models::Lockbox#address
92
- class Address < Increase::Internal::Type::BaseModel
93
- # @!attribute city
94
- # The city of the address.
95
- #
96
- # @return [String]
97
- required :city, String
98
-
99
- # @!attribute line1
100
- # The first line of the address.
101
- #
102
- # @return [String]
103
- required :line1, String
104
-
105
- # @!attribute line2
106
- # The second line of the address.
107
- #
108
- # @return [String]
109
- required :line2, String
110
-
111
- # @!attribute postal_code
112
- # The postal code of the address.
113
- #
114
- # @return [String]
115
- required :postal_code, String
116
-
117
- # @!attribute recipient
118
- # The recipient line of the address. This will include the recipient name you
119
- # provide when creating the address, as well as an ATTN suffix to help route the
120
- # mail to your lockbox. Mail senders must include this ATTN line to receive mail
121
- # at this Lockbox.
122
- #
123
- # @return [String, nil]
124
- required :recipient, String, nil?: true
125
-
126
- # @!attribute state
127
- # The two-letter United States Postal Service (USPS) abbreviation for the state of
128
- # the address.
129
- #
130
- # @return [String]
131
- required :state, String
132
-
133
- # @!method initialize(city:, line1:, line2:, postal_code:, recipient:, state:)
134
- # Some parameter documentations has been truncated, see
135
- # {Increase::Models::Lockbox::Address} for more details.
136
- #
137
- # The mailing address for the Lockbox.
138
- #
139
- # @param city [String] The city of the address.
140
- #
141
- # @param line1 [String] The first line of the address.
142
- #
143
- # @param line2 [String] The second line of the address.
144
- #
145
- # @param postal_code [String] The postal code of the address.
146
- #
147
- # @param recipient [String, nil] The recipient line of the address. This will include the recipient name you prov
148
- #
149
- # @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the state of
150
- end
151
-
152
- # Indicates if checks mailed to this lockbox will be deposited.
153
- #
154
- # @see Increase::Models::Lockbox#check_deposit_behavior
155
- module CheckDepositBehavior
156
- extend Increase::Internal::Type::Enum
157
-
158
- # Checks mailed to this Lockbox will be deposited.
159
- ENABLED = :enabled
160
-
161
- # Checks mailed to this Lockbox will not be deposited.
162
- DISABLED = :disabled
163
-
164
- # Checks mailed to this Lockbox will be pending until actioned.
165
- PEND_FOR_PROCESSING = :pend_for_processing
166
-
167
- # @!method self.values
168
- # @return [Array<Symbol>]
169
- end
170
-
171
- # A constant representing the object's type. For this resource it will always be
172
- # `lockbox`.
173
- #
174
- # @see Increase::Models::Lockbox#type
175
- module Type
176
- extend Increase::Internal::Type::Enum
177
-
178
- LOCKBOX = :lockbox
179
-
180
- # @!method self.values
181
- # @return [Array<Symbol>]
182
- end
183
- end
184
- end
185
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Lockboxes#create
6
- class LockboxCreateParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!attribute account_id
11
- # The Account checks sent to this Lockbox should be deposited into.
12
- #
13
- # @return [String]
14
- required :account_id, String
15
-
16
- # @!attribute description
17
- # The description you choose for the Lockbox, for display purposes.
18
- #
19
- # @return [String, nil]
20
- optional :description, String
21
-
22
- # @!attribute recipient_name
23
- # The name of the recipient that will receive mail at this location.
24
- #
25
- # @return [String, nil]
26
- optional :recipient_name, String
27
-
28
- # @!method initialize(account_id:, description: nil, recipient_name: nil, request_options: {})
29
- # @param account_id [String] The Account checks sent to this Lockbox should be deposited into.
30
- #
31
- # @param description [String] The description you choose for the Lockbox, for display purposes.
32
- #
33
- # @param recipient_name [String] The name of the recipient that will receive mail at this location.
34
- #
35
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
36
- end
37
- end
38
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Lockboxes#retrieve
6
- class LockboxRetrieveParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!attribute lockbox_id
11
- # The identifier of the Lockbox to retrieve.
12
- #
13
- # @return [String]
14
- required :lockbox_id, String
15
-
16
- # @!method initialize(lockbox_id:, request_options: {})
17
- # @param lockbox_id [String] The identifier of the Lockbox to retrieve.
18
- #
19
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
- end
21
- end
22
- end
@@ -1,63 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::Lockboxes#update
6
- class LockboxUpdateParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!attribute lockbox_id
11
- # The identifier of the Lockbox.
12
- #
13
- # @return [String]
14
- required :lockbox_id, String
15
-
16
- # @!attribute check_deposit_behavior
17
- # This indicates if checks mailed to this lockbox will be deposited.
18
- #
19
- # @return [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior, nil]
20
- optional :check_deposit_behavior, enum: -> { Increase::LockboxUpdateParams::CheckDepositBehavior }
21
-
22
- # @!attribute description
23
- # The description you choose for the Lockbox.
24
- #
25
- # @return [String, nil]
26
- optional :description, String
27
-
28
- # @!attribute recipient_name
29
- # The recipient name you choose for the Lockbox.
30
- #
31
- # @return [String, nil]
32
- optional :recipient_name, String
33
-
34
- # @!method initialize(lockbox_id:, check_deposit_behavior: nil, description: nil, recipient_name: nil, request_options: {})
35
- # @param lockbox_id [String] The identifier of the Lockbox.
36
- #
37
- # @param check_deposit_behavior [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior] This indicates if checks mailed to this lockbox will be deposited.
38
- #
39
- # @param description [String] The description you choose for the Lockbox.
40
- #
41
- # @param recipient_name [String] The recipient name you choose for the Lockbox.
42
- #
43
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
44
-
45
- # This indicates if checks mailed to this lockbox will be deposited.
46
- module CheckDepositBehavior
47
- extend Increase::Internal::Type::Enum
48
-
49
- # Checks mailed to this Lockbox will be deposited.
50
- ENABLED = :enabled
51
-
52
- # Checks mailed to this Lockbox will not be deposited.
53
- DISABLED = :disabled
54
-
55
- # Checks mailed to this Lockbox will be pending until actioned.
56
- PEND_FOR_PROCESSING = :pend_for_processing
57
-
58
- # @!method self.values
59
- # @return [Array<Symbol>]
60
- end
61
- end
62
- end
63
- end
@@ -1,123 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Resources
5
- class Lockboxes
6
- # Create a Lockbox
7
- #
8
- # @overload create(account_id:, description: nil, recipient_name: nil, request_options: {})
9
- #
10
- # @param account_id [String] The Account checks sent to this Lockbox should be deposited into.
11
- #
12
- # @param description [String] The description you choose for the Lockbox, for display purposes.
13
- #
14
- # @param recipient_name [String] The name of the recipient that will receive mail at this location.
15
- #
16
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
17
- #
18
- # @return [Increase::Models::Lockbox]
19
- #
20
- # @see Increase::Models::LockboxCreateParams
21
- def create(params)
22
- parsed, options = Increase::LockboxCreateParams.dump_request(params)
23
- @client.request(
24
- method: :post,
25
- path: "lockboxes",
26
- body: parsed,
27
- model: Increase::Lockbox,
28
- options: options
29
- )
30
- end
31
-
32
- # Retrieve a Lockbox
33
- #
34
- # @overload retrieve(lockbox_id, request_options: {})
35
- #
36
- # @param lockbox_id [String] The identifier of the Lockbox to retrieve.
37
- #
38
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
39
- #
40
- # @return [Increase::Models::Lockbox]
41
- #
42
- # @see Increase::Models::LockboxRetrieveParams
43
- def retrieve(lockbox_id, params = {})
44
- @client.request(
45
- method: :get,
46
- path: ["lockboxes/%1$s", lockbox_id],
47
- model: Increase::Lockbox,
48
- options: params[:request_options]
49
- )
50
- end
51
-
52
- # Update a Lockbox
53
- #
54
- # @overload update(lockbox_id, check_deposit_behavior: nil, description: nil, recipient_name: nil, request_options: {})
55
- #
56
- # @param lockbox_id [String] The identifier of the Lockbox.
57
- #
58
- # @param check_deposit_behavior [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior] This indicates if checks mailed to this lockbox will be deposited.
59
- #
60
- # @param description [String] The description you choose for the Lockbox.
61
- #
62
- # @param recipient_name [String] The recipient name you choose for the Lockbox.
63
- #
64
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
65
- #
66
- # @return [Increase::Models::Lockbox]
67
- #
68
- # @see Increase::Models::LockboxUpdateParams
69
- def update(lockbox_id, params = {})
70
- parsed, options = Increase::LockboxUpdateParams.dump_request(params)
71
- @client.request(
72
- method: :patch,
73
- path: ["lockboxes/%1$s", lockbox_id],
74
- body: parsed,
75
- model: Increase::Lockbox,
76
- options: options
77
- )
78
- end
79
-
80
- # Some parameter documentations has been truncated, see
81
- # {Increase::Models::LockboxListParams} for more details.
82
- #
83
- # List Lockboxes
84
- #
85
- # @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {})
86
- #
87
- # @param account_id [String] Filter Lockboxes to those associated with the provided Account.
88
- #
89
- # @param created_at [Increase::Models::LockboxListParams::CreatedAt]
90
- #
91
- # @param cursor [String] Return the page of entries after this one.
92
- #
93
- # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
94
- #
95
- # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
96
- #
97
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
98
- #
99
- # @return [Increase::Internal::Page<Increase::Models::Lockbox>]
100
- #
101
- # @see Increase::Models::LockboxListParams
102
- def list(params = {})
103
- parsed, options = Increase::LockboxListParams.dump_request(params)
104
- query = Increase::Internal::Util.encode_query_params(parsed)
105
- @client.request(
106
- method: :get,
107
- path: "lockboxes",
108
- query: query,
109
- page: Increase::Internal::Page,
110
- model: Increase::Lockbox,
111
- options: options
112
- )
113
- end
114
-
115
- # @api private
116
- #
117
- # @param client [Increase::Client]
118
- def initialize(client:)
119
- @client = client
120
- end
121
- end
122
- end
123
- end
@@ -1,251 +0,0 @@
1
- # typed: strong
2
-
3
- module Increase
4
- module Models
5
- class Lockbox < Increase::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias { T.any(Increase::Lockbox, Increase::Internal::AnyHash) }
8
-
9
- # The Lockbox identifier.
10
- sig { returns(String) }
11
- attr_accessor :id
12
-
13
- # The identifier for the Account checks sent to this lockbox will be deposited
14
- # into.
15
- sig { returns(String) }
16
- attr_accessor :account_id
17
-
18
- # The mailing address for the Lockbox.
19
- sig { returns(Increase::Lockbox::Address) }
20
- attr_reader :address
21
-
22
- sig { params(address: Increase::Lockbox::Address::OrHash).void }
23
- attr_writer :address
24
-
25
- # Indicates if checks mailed to this lockbox will be deposited.
26
- sig { returns(Increase::Lockbox::CheckDepositBehavior::TaggedSymbol) }
27
- attr_accessor :check_deposit_behavior
28
-
29
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
30
- # was created.
31
- sig { returns(Time) }
32
- attr_accessor :created_at
33
-
34
- # The description you choose for the Lockbox.
35
- sig { returns(T.nilable(String)) }
36
- attr_accessor :description
37
-
38
- # The idempotency key you chose for this object. This value is unique across
39
- # Increase and is used to ensure that a request is only processed once. Learn more
40
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
41
- sig { returns(T.nilable(String)) }
42
- attr_accessor :idempotency_key
43
-
44
- # The recipient name you choose for the Lockbox.
45
- sig { returns(T.nilable(String)) }
46
- attr_accessor :recipient_name
47
-
48
- # A constant representing the object's type. For this resource it will always be
49
- # `lockbox`.
50
- sig { returns(Increase::Lockbox::Type::TaggedSymbol) }
51
- attr_accessor :type
52
-
53
- # Lockboxes are physical locations that can receive mail containing paper checks.
54
- # Increase will automatically create a Check Deposit for checks received this way.
55
- sig do
56
- params(
57
- id: String,
58
- account_id: String,
59
- address: Increase::Lockbox::Address::OrHash,
60
- check_deposit_behavior:
61
- Increase::Lockbox::CheckDepositBehavior::OrSymbol,
62
- created_at: Time,
63
- description: T.nilable(String),
64
- idempotency_key: T.nilable(String),
65
- recipient_name: T.nilable(String),
66
- type: Increase::Lockbox::Type::OrSymbol
67
- ).returns(T.attached_class)
68
- end
69
- def self.new(
70
- # The Lockbox identifier.
71
- id:,
72
- # The identifier for the Account checks sent to this lockbox will be deposited
73
- # into.
74
- account_id:,
75
- # The mailing address for the Lockbox.
76
- address:,
77
- # Indicates if checks mailed to this lockbox will be deposited.
78
- check_deposit_behavior:,
79
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
80
- # was created.
81
- created_at:,
82
- # The description you choose for the Lockbox.
83
- description:,
84
- # The idempotency key you chose for this object. This value is unique across
85
- # Increase and is used to ensure that a request is only processed once. Learn more
86
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
87
- idempotency_key:,
88
- # The recipient name you choose for the Lockbox.
89
- recipient_name:,
90
- # A constant representing the object's type. For this resource it will always be
91
- # `lockbox`.
92
- type:
93
- )
94
- end
95
-
96
- sig do
97
- override.returns(
98
- {
99
- id: String,
100
- account_id: String,
101
- address: Increase::Lockbox::Address,
102
- check_deposit_behavior:
103
- Increase::Lockbox::CheckDepositBehavior::TaggedSymbol,
104
- created_at: Time,
105
- description: T.nilable(String),
106
- idempotency_key: T.nilable(String),
107
- recipient_name: T.nilable(String),
108
- type: Increase::Lockbox::Type::TaggedSymbol
109
- }
110
- )
111
- end
112
- def to_hash
113
- end
114
-
115
- class Address < Increase::Internal::Type::BaseModel
116
- OrHash =
117
- T.type_alias do
118
- T.any(Increase::Lockbox::Address, Increase::Internal::AnyHash)
119
- end
120
-
121
- # The city of the address.
122
- sig { returns(String) }
123
- attr_accessor :city
124
-
125
- # The first line of the address.
126
- sig { returns(String) }
127
- attr_accessor :line1
128
-
129
- # The second line of the address.
130
- sig { returns(String) }
131
- attr_accessor :line2
132
-
133
- # The postal code of the address.
134
- sig { returns(String) }
135
- attr_accessor :postal_code
136
-
137
- # The recipient line of the address. This will include the recipient name you
138
- # provide when creating the address, as well as an ATTN suffix to help route the
139
- # mail to your lockbox. Mail senders must include this ATTN line to receive mail
140
- # at this Lockbox.
141
- sig { returns(T.nilable(String)) }
142
- attr_accessor :recipient
143
-
144
- # The two-letter United States Postal Service (USPS) abbreviation for the state of
145
- # the address.
146
- sig { returns(String) }
147
- attr_accessor :state
148
-
149
- # The mailing address for the Lockbox.
150
- sig do
151
- params(
152
- city: String,
153
- line1: String,
154
- line2: String,
155
- postal_code: String,
156
- recipient: T.nilable(String),
157
- state: String
158
- ).returns(T.attached_class)
159
- end
160
- def self.new(
161
- # The city of the address.
162
- city:,
163
- # The first line of the address.
164
- line1:,
165
- # The second line of the address.
166
- line2:,
167
- # The postal code of the address.
168
- postal_code:,
169
- # The recipient line of the address. This will include the recipient name you
170
- # provide when creating the address, as well as an ATTN suffix to help route the
171
- # mail to your lockbox. Mail senders must include this ATTN line to receive mail
172
- # at this Lockbox.
173
- recipient:,
174
- # The two-letter United States Postal Service (USPS) abbreviation for the state of
175
- # the address.
176
- state:
177
- )
178
- end
179
-
180
- sig do
181
- override.returns(
182
- {
183
- city: String,
184
- line1: String,
185
- line2: String,
186
- postal_code: String,
187
- recipient: T.nilable(String),
188
- state: String
189
- }
190
- )
191
- end
192
- def to_hash
193
- end
194
- end
195
-
196
- # Indicates if checks mailed to this lockbox will be deposited.
197
- module CheckDepositBehavior
198
- extend Increase::Internal::Type::Enum
199
-
200
- TaggedSymbol =
201
- T.type_alias do
202
- T.all(Symbol, Increase::Lockbox::CheckDepositBehavior)
203
- end
204
- OrSymbol = T.type_alias { T.any(Symbol, String) }
205
-
206
- # Checks mailed to this Lockbox will be deposited.
207
- ENABLED =
208
- T.let(:enabled, Increase::Lockbox::CheckDepositBehavior::TaggedSymbol)
209
-
210
- # Checks mailed to this Lockbox will not be deposited.
211
- DISABLED =
212
- T.let(
213
- :disabled,
214
- Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
215
- )
216
-
217
- # Checks mailed to this Lockbox will be pending until actioned.
218
- PEND_FOR_PROCESSING =
219
- T.let(
220
- :pend_for_processing,
221
- Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
222
- )
223
-
224
- sig do
225
- override.returns(
226
- T::Array[Increase::Lockbox::CheckDepositBehavior::TaggedSymbol]
227
- )
228
- end
229
- def self.values
230
- end
231
- end
232
-
233
- # A constant representing the object's type. For this resource it will always be
234
- # `lockbox`.
235
- module Type
236
- extend Increase::Internal::Type::Enum
237
-
238
- TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Lockbox::Type) }
239
- OrSymbol = T.type_alias { T.any(Symbol, String) }
240
-
241
- LOCKBOX = T.let(:lockbox, Increase::Lockbox::Type::TaggedSymbol)
242
-
243
- sig do
244
- override.returns(T::Array[Increase::Lockbox::Type::TaggedSymbol])
245
- end
246
- def self.values
247
- end
248
- end
249
- end
250
- end
251
- end