increase 1.354.0 → 1.355.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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +18 -0
  4. data/lib/increase/models/card_create_details_token_params.rb +22 -0
  5. data/lib/increase/models/card_details_token.rb +57 -0
  6. data/lib/increase/models/card_payment.rb +26 -1
  7. data/lib/increase/models/digital_wallet_token.rb +3 -0
  8. data/lib/increase/models/digital_wallet_token_request.rb +307 -0
  9. data/lib/increase/models/digital_wallet_token_request_list_params.rb +99 -0
  10. data/lib/increase/models/digital_wallet_token_request_retrieve_params.rb +22 -0
  11. data/lib/increase/models/digital_wallet_token_transition_params.rb +48 -0
  12. data/lib/increase/models/inbound_real_time_payments_request_for_payment.rb +318 -0
  13. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rb +113 -0
  14. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rb +25 -0
  15. data/lib/increase/models/physical_check_batch.rb +266 -0
  16. data/lib/increase/models/physical_check_batch_cancel_params.rb +22 -0
  17. data/lib/increase/models/physical_check_batch_complete_params.rb +22 -0
  18. data/lib/increase/models/physical_check_batch_create_params.rb +189 -0
  19. data/lib/increase/models/real_time_decision.rb +6 -0
  20. data/lib/increase/models/real_time_payments_request_for_payment.rb +658 -0
  21. data/lib/increase/models/real_time_payments_requests_for_payment_cancel_params.rb +64 -0
  22. data/lib/increase/models/real_time_payments_requests_for_payment_create_params.rb +194 -0
  23. data/lib/increase/models/real_time_payments_requests_for_payment_list_params.rb +117 -0
  24. data/lib/increase/models/real_time_payments_requests_for_payment_retrieve_params.rb +23 -0
  25. data/lib/increase/models/simulations/fednow_transfer_complete_params.rb +103 -0
  26. data/lib/increase/models/simulations/inbound_check_deposit_accept_params.rb +24 -0
  27. data/lib/increase/models/transaction.rb +26 -1
  28. data/lib/increase/models.rb +42 -0
  29. data/lib/increase/resources/cards.rb +23 -0
  30. data/lib/increase/resources/digital_wallet_token_requests.rb +68 -0
  31. data/lib/increase/resources/digital_wallet_tokens.rb +28 -0
  32. data/lib/increase/resources/inbound_real_time_payments_requests_for_payment.rb +79 -0
  33. data/lib/increase/resources/physical_check_batches.rb +86 -0
  34. data/lib/increase/resources/real_time_payments_requests_for_payment.rb +159 -0
  35. data/lib/increase/resources/simulations/fednow_transfers.rb +43 -0
  36. data/lib/increase/resources/simulations/inbound_check_deposits.rb +22 -0
  37. data/lib/increase/resources/simulations.rb +4 -0
  38. data/lib/increase/version.rb +1 -1
  39. data/lib/increase.rb +25 -0
  40. data/rbi/increase/client.rbi +14 -0
  41. data/rbi/increase/models/card_create_details_token_params.rbi +43 -0
  42. data/rbi/increase/models/card_details_token.rbi +85 -0
  43. data/rbi/increase/models/card_payment.rbi +52 -0
  44. data/rbi/increase/models/digital_wallet_token.rbi +7 -0
  45. data/rbi/increase/models/digital_wallet_token_request.rbi +586 -0
  46. data/rbi/increase/models/digital_wallet_token_request_list_params.rbi +171 -0
  47. data/rbi/increase/models/digital_wallet_token_request_retrieve_params.rbi +46 -0
  48. data/rbi/increase/models/digital_wallet_token_transition_params.rbi +100 -0
  49. data/rbi/increase/models/inbound_real_time_payments_request_for_payment.rbi +442 -0
  50. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbi +188 -0
  51. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbi +48 -0
  52. data/rbi/increase/models/physical_check_batch.rbi +382 -0
  53. data/rbi/increase/models/physical_check_batch_cancel_params.rbi +46 -0
  54. data/rbi/increase/models/physical_check_batch_complete_params.rbi +46 -0
  55. data/rbi/increase/models/physical_check_batch_create_params.rbi +326 -0
  56. data/rbi/increase/models/real_time_decision.rbi +14 -0
  57. data/rbi/increase/models/real_time_payments_request_for_payment.rbi +1166 -0
  58. data/rbi/increase/models/real_time_payments_requests_for_payment_cancel_params.rbi +136 -0
  59. data/rbi/increase/models/real_time_payments_requests_for_payment_create_params.rbi +303 -0
  60. data/rbi/increase/models/real_time_payments_requests_for_payment_list_params.rbi +192 -0
  61. data/rbi/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbi +46 -0
  62. data/rbi/increase/models/simulations/fednow_transfer_complete_params.rbi +243 -0
  63. data/rbi/increase/models/simulations/inbound_check_deposit_accept_params.rbi +48 -0
  64. data/rbi/increase/models/transaction.rbi +52 -0
  65. data/rbi/increase/models.rbi +50 -0
  66. data/rbi/increase/resources/cards.rbi +17 -0
  67. data/rbi/increase/resources/digital_wallet_token_requests.rbi +52 -0
  68. data/rbi/increase/resources/digital_wallet_tokens.rbi +21 -0
  69. data/rbi/increase/resources/inbound_real_time_payments_requests_for_payment.rbi +62 -0
  70. data/rbi/increase/resources/physical_check_batches.rbi +66 -0
  71. data/rbi/increase/resources/real_time_payments_requests_for_payment.rbi +127 -0
  72. data/rbi/increase/resources/simulations/fednow_transfers.rbi +34 -0
  73. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +16 -0
  74. data/rbi/increase/resources/simulations.rbi +3 -0
  75. data/sig/increase/client.rbs +8 -0
  76. data/sig/increase/models/card_create_details_token_params.rbs +23 -0
  77. data/sig/increase/models/card_details_token.rbs +40 -0
  78. data/sig/increase/models/card_payment.rbs +19 -0
  79. data/sig/increase/models/digital_wallet_token.rbs +5 -1
  80. data/sig/increase/models/digital_wallet_token_request.rbs +260 -0
  81. data/sig/increase/models/digital_wallet_token_request_list_params.rbs +86 -0
  82. data/sig/increase/models/digital_wallet_token_request_retrieve_params.rbs +24 -0
  83. data/sig/increase/models/digital_wallet_token_transition_params.rbs +48 -0
  84. data/sig/increase/models/inbound_real_time_payments_request_for_payment.rbs +200 -0
  85. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbs +93 -0
  86. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  87. data/sig/increase/models/physical_check_batch.rbs +193 -0
  88. data/sig/increase/models/physical_check_batch_cancel_params.rbs +24 -0
  89. data/sig/increase/models/physical_check_batch_complete_params.rbs +24 -0
  90. data/sig/increase/models/physical_check_batch_create_params.rbs +156 -0
  91. data/sig/increase/models/real_time_decision.rbs +10 -2
  92. data/sig/increase/models/real_time_payments_request_for_payment.rbs +513 -0
  93. data/sig/increase/models/real_time_payments_requests_for_payment_cancel_params.rbs +66 -0
  94. data/sig/increase/models/real_time_payments_requests_for_payment_create_params.rbs +149 -0
  95. data/sig/increase/models/real_time_payments_requests_for_payment_list_params.rbs +93 -0
  96. data/sig/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  97. data/sig/increase/models/simulations/fednow_transfer_complete_params.rbs +122 -0
  98. data/sig/increase/models/simulations/inbound_check_deposit_accept_params.rbs +26 -0
  99. data/sig/increase/models/transaction.rbs +19 -0
  100. data/sig/increase/models.rbs +36 -0
  101. data/sig/increase/resources/cards.rbs +5 -0
  102. data/sig/increase/resources/digital_wallet_token_requests.rbs +20 -0
  103. data/sig/increase/resources/digital_wallet_tokens.rbs +6 -0
  104. data/sig/increase/resources/inbound_real_time_payments_requests_for_payment.rbs +21 -0
  105. data/sig/increase/resources/physical_check_batches.rbs +24 -0
  106. data/sig/increase/resources/real_time_payments_requests_for_payment.rbs +41 -0
  107. data/sig/increase/resources/simulations/fednow_transfers.rbs +15 -0
  108. data/sig/increase/resources/simulations/inbound_check_deposits.rbs +5 -0
  109. data/sig/increase/resources/simulations.rbs +2 -0
  110. metadata +77 -2
@@ -0,0 +1,382 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class PhysicalCheckBatch < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::PhysicalCheckBatch, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The Physical Check Batch's identifier.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
16
+ # the Physical Check Batch was created.
17
+ sig { returns(Time) }
18
+ attr_accessor :created_at
19
+
20
+ # The idempotency key you chose for this object. This value is unique across
21
+ # Increase and is used to ensure that a request is only processed once. Learn more
22
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
23
+ sig { returns(T.nilable(String)) }
24
+ attr_accessor :idempotency_key
25
+
26
+ # The mailing address of the parcel.
27
+ sig { returns(Increase::PhysicalCheckBatch::MailingAddress) }
28
+ attr_reader :mailing_address
29
+
30
+ sig do
31
+ params(
32
+ mailing_address: Increase::PhysicalCheckBatch::MailingAddress::OrHash
33
+ ).void
34
+ end
35
+ attr_writer :mailing_address
36
+
37
+ # The return address of the parcel.
38
+ sig { returns(Increase::PhysicalCheckBatch::ReturnAddress) }
39
+ attr_reader :return_address
40
+
41
+ sig do
42
+ params(
43
+ return_address: Increase::PhysicalCheckBatch::ReturnAddress::OrHash
44
+ ).void
45
+ end
46
+ attr_writer :return_address
47
+
48
+ # The shipping method for the parcel.
49
+ sig do
50
+ returns(Increase::PhysicalCheckBatch::ShippingMethod::TaggedSymbol)
51
+ end
52
+ attr_accessor :shipping_method
53
+
54
+ # The lifecycle status of the Physical Check Batch.
55
+ sig { returns(Increase::PhysicalCheckBatch::Status::TaggedSymbol) }
56
+ attr_accessor :status
57
+
58
+ # A constant representing the object's type. For this resource it will always be
59
+ # `physical_check_batch`.
60
+ sig { returns(Increase::PhysicalCheckBatch::Type::TaggedSymbol) }
61
+ attr_accessor :type
62
+
63
+ # Physical Check Batches are groups of checks that are mailed in the same parcel.
64
+ # Tracking updates are propagated to every related Check Transfer.
65
+ sig do
66
+ params(
67
+ id: String,
68
+ created_at: Time,
69
+ idempotency_key: T.nilable(String),
70
+ mailing_address: Increase::PhysicalCheckBatch::MailingAddress::OrHash,
71
+ return_address: Increase::PhysicalCheckBatch::ReturnAddress::OrHash,
72
+ shipping_method:
73
+ Increase::PhysicalCheckBatch::ShippingMethod::OrSymbol,
74
+ status: Increase::PhysicalCheckBatch::Status::OrSymbol,
75
+ type: Increase::PhysicalCheckBatch::Type::OrSymbol
76
+ ).returns(T.attached_class)
77
+ end
78
+ def self.new(
79
+ # The Physical Check Batch's identifier.
80
+ id:,
81
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
82
+ # the Physical Check Batch was created.
83
+ created_at:,
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 mailing address of the parcel.
89
+ mailing_address:,
90
+ # The return address of the parcel.
91
+ return_address:,
92
+ # The shipping method for the parcel.
93
+ shipping_method:,
94
+ # The lifecycle status of the Physical Check Batch.
95
+ status:,
96
+ # A constant representing the object's type. For this resource it will always be
97
+ # `physical_check_batch`.
98
+ type:
99
+ )
100
+ end
101
+
102
+ sig do
103
+ override.returns(
104
+ {
105
+ id: String,
106
+ created_at: Time,
107
+ idempotency_key: T.nilable(String),
108
+ mailing_address: Increase::PhysicalCheckBatch::MailingAddress,
109
+ return_address: Increase::PhysicalCheckBatch::ReturnAddress,
110
+ shipping_method:
111
+ Increase::PhysicalCheckBatch::ShippingMethod::TaggedSymbol,
112
+ status: Increase::PhysicalCheckBatch::Status::TaggedSymbol,
113
+ type: Increase::PhysicalCheckBatch::Type::TaggedSymbol
114
+ }
115
+ )
116
+ end
117
+ def to_hash
118
+ end
119
+
120
+ class MailingAddress < Increase::Internal::Type::BaseModel
121
+ OrHash =
122
+ T.type_alias do
123
+ T.any(
124
+ Increase::PhysicalCheckBatch::MailingAddress,
125
+ Increase::Internal::AnyHash
126
+ )
127
+ end
128
+
129
+ # The city of the address.
130
+ sig { returns(String) }
131
+ attr_accessor :city
132
+
133
+ # The first line of the address.
134
+ sig { returns(String) }
135
+ attr_accessor :line1
136
+
137
+ # The second line of the address.
138
+ sig { returns(T.nilable(String)) }
139
+ attr_accessor :line2
140
+
141
+ # The name component of the address.
142
+ sig { returns(String) }
143
+ attr_accessor :name
144
+
145
+ # The phone number that is used for delivery issues.
146
+ sig { returns(T.nilable(String)) }
147
+ attr_accessor :phone
148
+
149
+ # The postal code of the address.
150
+ sig { returns(String) }
151
+ attr_accessor :postal_code
152
+
153
+ # The state of the address.
154
+ sig { returns(String) }
155
+ attr_accessor :state
156
+
157
+ # The mailing address of the parcel.
158
+ sig do
159
+ params(
160
+ city: String,
161
+ line1: String,
162
+ line2: T.nilable(String),
163
+ name: String,
164
+ phone: T.nilable(String),
165
+ postal_code: String,
166
+ state: String
167
+ ).returns(T.attached_class)
168
+ end
169
+ def self.new(
170
+ # The city of the address.
171
+ city:,
172
+ # The first line of the address.
173
+ line1:,
174
+ # The second line of the address.
175
+ line2:,
176
+ # The name component of the address.
177
+ name:,
178
+ # The phone number that is used for delivery issues.
179
+ phone:,
180
+ # The postal code of the address.
181
+ postal_code:,
182
+ # The state of the address.
183
+ state:
184
+ )
185
+ end
186
+
187
+ sig do
188
+ override.returns(
189
+ {
190
+ city: String,
191
+ line1: String,
192
+ line2: T.nilable(String),
193
+ name: String,
194
+ phone: T.nilable(String),
195
+ postal_code: String,
196
+ state: String
197
+ }
198
+ )
199
+ end
200
+ def to_hash
201
+ end
202
+ end
203
+
204
+ class ReturnAddress < Increase::Internal::Type::BaseModel
205
+ OrHash =
206
+ T.type_alias do
207
+ T.any(
208
+ Increase::PhysicalCheckBatch::ReturnAddress,
209
+ Increase::Internal::AnyHash
210
+ )
211
+ end
212
+
213
+ # The city of the return address.
214
+ sig { returns(String) }
215
+ attr_accessor :city
216
+
217
+ # The first line of the return address.
218
+ sig { returns(String) }
219
+ attr_accessor :line1
220
+
221
+ # The second line of the return address.
222
+ sig { returns(T.nilable(String)) }
223
+ attr_accessor :line2
224
+
225
+ # The name component of the return address.
226
+ sig { returns(String) }
227
+ attr_accessor :name
228
+
229
+ # The phone number that is used for delivery issues.
230
+ sig { returns(T.nilable(String)) }
231
+ attr_accessor :phone
232
+
233
+ # The postal code of the return address.
234
+ sig { returns(String) }
235
+ attr_accessor :postal_code
236
+
237
+ # The state of the return address.
238
+ sig { returns(String) }
239
+ attr_accessor :state
240
+
241
+ # The return address of the parcel.
242
+ sig do
243
+ params(
244
+ city: String,
245
+ line1: String,
246
+ line2: T.nilable(String),
247
+ name: String,
248
+ phone: T.nilable(String),
249
+ postal_code: String,
250
+ state: String
251
+ ).returns(T.attached_class)
252
+ end
253
+ def self.new(
254
+ # The city of the return address.
255
+ city:,
256
+ # The first line of the return address.
257
+ line1:,
258
+ # The second line of the return address.
259
+ line2:,
260
+ # The name component of the return address.
261
+ name:,
262
+ # The phone number that is used for delivery issues.
263
+ phone:,
264
+ # The postal code of the return address.
265
+ postal_code:,
266
+ # The state of the return address.
267
+ state:
268
+ )
269
+ end
270
+
271
+ sig do
272
+ override.returns(
273
+ {
274
+ city: String,
275
+ line1: String,
276
+ line2: T.nilable(String),
277
+ name: String,
278
+ phone: T.nilable(String),
279
+ postal_code: String,
280
+ state: String
281
+ }
282
+ )
283
+ end
284
+ def to_hash
285
+ end
286
+ end
287
+
288
+ # The shipping method for the parcel.
289
+ module ShippingMethod
290
+ extend Increase::Internal::Type::Enum
291
+
292
+ TaggedSymbol =
293
+ T.type_alias do
294
+ T.all(Symbol, Increase::PhysicalCheckBatch::ShippingMethod)
295
+ end
296
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
297
+
298
+ # USPS First Class
299
+ USPS_FIRST_CLASS =
300
+ T.let(
301
+ :usps_first_class,
302
+ Increase::PhysicalCheckBatch::ShippingMethod::TaggedSymbol
303
+ )
304
+
305
+ # FedEx Overnight
306
+ FEDEX_OVERNIGHT =
307
+ T.let(
308
+ :fedex_overnight,
309
+ Increase::PhysicalCheckBatch::ShippingMethod::TaggedSymbol
310
+ )
311
+
312
+ sig do
313
+ override.returns(
314
+ T::Array[Increase::PhysicalCheckBatch::ShippingMethod::TaggedSymbol]
315
+ )
316
+ end
317
+ def self.values
318
+ end
319
+ end
320
+
321
+ # The lifecycle status of the Physical Check Batch.
322
+ module Status
323
+ extend Increase::Internal::Type::Enum
324
+
325
+ TaggedSymbol =
326
+ T.type_alias { T.all(Symbol, Increase::PhysicalCheckBatch::Status) }
327
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
328
+
329
+ # The batch is pending completion and is open to accepting new checks.
330
+ PENDING =
331
+ T.let(:pending, Increase::PhysicalCheckBatch::Status::TaggedSymbol)
332
+
333
+ # The batch has been completed.
334
+ COMPLETED =
335
+ T.let(:completed, Increase::PhysicalCheckBatch::Status::TaggedSymbol)
336
+
337
+ # The batch and all checks related to it have been canceled.
338
+ CANCELED =
339
+ T.let(:canceled, Increase::PhysicalCheckBatch::Status::TaggedSymbol)
340
+
341
+ # The batch requires attention from an Increase operator.
342
+ REQUIRES_ATTENTION =
343
+ T.let(
344
+ :requires_attention,
345
+ Increase::PhysicalCheckBatch::Status::TaggedSymbol
346
+ )
347
+
348
+ sig do
349
+ override.returns(
350
+ T::Array[Increase::PhysicalCheckBatch::Status::TaggedSymbol]
351
+ )
352
+ end
353
+ def self.values
354
+ end
355
+ end
356
+
357
+ # A constant representing the object's type. For this resource it will always be
358
+ # `physical_check_batch`.
359
+ module Type
360
+ extend Increase::Internal::Type::Enum
361
+
362
+ TaggedSymbol =
363
+ T.type_alias { T.all(Symbol, Increase::PhysicalCheckBatch::Type) }
364
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
365
+
366
+ PHYSICAL_CHECK_BATCH =
367
+ T.let(
368
+ :physical_check_batch,
369
+ Increase::PhysicalCheckBatch::Type::TaggedSymbol
370
+ )
371
+
372
+ sig do
373
+ override.returns(
374
+ T::Array[Increase::PhysicalCheckBatch::Type::TaggedSymbol]
375
+ )
376
+ end
377
+ def self.values
378
+ end
379
+ end
380
+ end
381
+ end
382
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class PhysicalCheckBatchCancelParams < 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::PhysicalCheckBatchCancelParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the pending Physical Check Batch to cancel.
18
+ sig { returns(String) }
19
+ attr_accessor :physical_check_batch_id
20
+
21
+ sig do
22
+ params(
23
+ physical_check_batch_id: String,
24
+ request_options: Increase::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # The identifier of the pending Physical Check Batch to cancel.
29
+ physical_check_batch_id:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ physical_check_batch_id: String,
38
+ request_options: Increase::RequestOptions
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class PhysicalCheckBatchCompleteParams < 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::PhysicalCheckBatchCompleteParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Physical Check Batch to complete.
18
+ sig { returns(String) }
19
+ attr_accessor :physical_check_batch_id
20
+
21
+ sig do
22
+ params(
23
+ physical_check_batch_id: String,
24
+ request_options: Increase::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # The identifier of the Physical Check Batch to complete.
29
+ physical_check_batch_id:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ physical_check_batch_id: String,
38
+ request_options: Increase::RequestOptions
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end