increase 1.195.0 → 1.196.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.
@@ -10,6 +10,70 @@ module Increase
10
10
  sig { returns(String) }
11
11
  attr_accessor :id
12
12
 
13
+ # Details of the account statement BAI2 export. This field will be present when
14
+ # the `category` is equal to `account_statement_bai2`.
15
+ sig { returns(T.nilable(Increase::Export::AccountStatementBai2)) }
16
+ attr_reader :account_statement_bai2
17
+
18
+ sig do
19
+ params(
20
+ account_statement_bai2:
21
+ T.nilable(Increase::Export::AccountStatementBai2::OrHash)
22
+ ).void
23
+ end
24
+ attr_writer :account_statement_bai2
25
+
26
+ # Details of the account statement OFX export. This field will be present when the
27
+ # `category` is equal to `account_statement_ofx`.
28
+ sig { returns(T.nilable(Increase::Export::AccountStatementOfx)) }
29
+ attr_reader :account_statement_ofx
30
+
31
+ sig do
32
+ params(
33
+ account_statement_ofx:
34
+ T.nilable(Increase::Export::AccountStatementOfx::OrHash)
35
+ ).void
36
+ end
37
+ attr_writer :account_statement_ofx
38
+
39
+ # Details of the account verification letter export. This field will be present
40
+ # when the `category` is equal to `account_verification_letter`.
41
+ sig { returns(T.nilable(Increase::Export::AccountVerificationLetter)) }
42
+ attr_reader :account_verification_letter
43
+
44
+ sig do
45
+ params(
46
+ account_verification_letter:
47
+ T.nilable(Increase::Export::AccountVerificationLetter::OrHash)
48
+ ).void
49
+ end
50
+ attr_writer :account_verification_letter
51
+
52
+ # Details of the balance CSV export. This field will be present when the
53
+ # `category` is equal to `balance_csv`.
54
+ sig { returns(T.nilable(Increase::Export::BalanceCsv)) }
55
+ attr_reader :balance_csv
56
+
57
+ sig do
58
+ params(
59
+ balance_csv: T.nilable(Increase::Export::BalanceCsv::OrHash)
60
+ ).void
61
+ end
62
+ attr_writer :balance_csv
63
+
64
+ # Details of the bookkeeping account balance CSV export. This field will be
65
+ # present when the `category` is equal to `bookkeeping_account_balance_csv`.
66
+ sig { returns(T.nilable(Increase::Export::BookkeepingAccountBalanceCsv)) }
67
+ attr_reader :bookkeeping_account_balance_csv
68
+
69
+ sig do
70
+ params(
71
+ bookkeeping_account_balance_csv:
72
+ T.nilable(Increase::Export::BookkeepingAccountBalanceCsv::OrHash)
73
+ ).void
74
+ end
75
+ attr_writer :bookkeeping_account_balance_csv
76
+
13
77
  # The category of the Export. We may add additional possible values for this enum
14
78
  # over time; your application should be able to handle that gracefully.
15
79
  sig { returns(Increase::Export::Category::TaggedSymbol) }
@@ -19,6 +83,29 @@ module Increase
19
83
  sig { returns(Time) }
20
84
  attr_accessor :created_at
21
85
 
86
+ # Details of the dashboard table CSV export. This field will be present when the
87
+ # `category` is equal to `dashboard_table_csv`.
88
+ sig { returns(T.nilable(Increase::Export::DashboardTableCsv)) }
89
+ attr_reader :dashboard_table_csv
90
+
91
+ sig do
92
+ params(
93
+ dashboard_table_csv:
94
+ T.nilable(Increase::Export::DashboardTableCsv::OrHash)
95
+ ).void
96
+ end
97
+ attr_writer :dashboard_table_csv
98
+
99
+ # Details of the entity CSV export. This field will be present when the `category`
100
+ # is equal to `entity_csv`.
101
+ sig { returns(T.nilable(Increase::Export::EntityCsv)) }
102
+ attr_reader :entity_csv
103
+
104
+ sig do
105
+ params(entity_csv: T.nilable(Increase::Export::EntityCsv::OrHash)).void
106
+ end
107
+ attr_writer :entity_csv
108
+
22
109
  # A URL at which the Export's file can be downloaded. This will be present when
23
110
  # the Export's status transitions to `complete`.
24
111
  sig { returns(T.nilable(String)) }
@@ -29,6 +116,43 @@ module Increase
29
116
  sig { returns(T.nilable(String)) }
30
117
  attr_accessor :file_id
31
118
 
119
+ # Details of the Form 1099-INT export. This field will be present when the
120
+ # `category` is equal to `form_1099_int`.
121
+ sig { returns(T.nilable(Increase::Export::Form1099Int)) }
122
+ attr_reader :form_1099_int
123
+
124
+ sig do
125
+ params(
126
+ form_1099_int: T.nilable(Increase::Export::Form1099Int::OrHash)
127
+ ).void
128
+ end
129
+ attr_writer :form_1099_int
130
+
131
+ # Details of the Form 1099-MISC export. This field will be present when the
132
+ # `category` is equal to `form_1099_misc`.
133
+ sig { returns(T.nilable(Increase::Export::Form1099Misc)) }
134
+ attr_reader :form_1099_misc
135
+
136
+ sig do
137
+ params(
138
+ form_1099_misc: T.nilable(Increase::Export::Form1099Misc::OrHash)
139
+ ).void
140
+ end
141
+ attr_writer :form_1099_misc
142
+
143
+ # Details of the funding instructions export. This field will be present when the
144
+ # `category` is equal to `funding_instructions`.
145
+ sig { returns(T.nilable(Increase::Export::FundingInstructions)) }
146
+ attr_reader :funding_instructions
147
+
148
+ sig do
149
+ params(
150
+ funding_instructions:
151
+ T.nilable(Increase::Export::FundingInstructions::OrHash)
152
+ ).void
153
+ end
154
+ attr_writer :funding_instructions
155
+
32
156
  # The idempotency key you chose for this object. This value is unique across
33
157
  # Increase and is used to ensure that a request is only processed once. Learn more
34
158
  # about [idempotency](https://increase.com/documentation/idempotency-keys).
@@ -39,11 +163,33 @@ module Increase
39
163
  sig { returns(Increase::Export::Status::TaggedSymbol) }
40
164
  attr_accessor :status
41
165
 
166
+ # Details of the transaction CSV export. This field will be present when the
167
+ # `category` is equal to `transaction_csv`.
168
+ sig { returns(T.nilable(Increase::Export::TransactionCsv)) }
169
+ attr_reader :transaction_csv
170
+
171
+ sig do
172
+ params(
173
+ transaction_csv: T.nilable(Increase::Export::TransactionCsv::OrHash)
174
+ ).void
175
+ end
176
+ attr_writer :transaction_csv
177
+
42
178
  # A constant representing the object's type. For this resource it will always be
43
179
  # `export`.
44
180
  sig { returns(Increase::Export::Type::TaggedSymbol) }
45
181
  attr_accessor :type
46
182
 
183
+ # Details of the vendor CSV export. This field will be present when the `category`
184
+ # is equal to `vendor_csv`.
185
+ sig { returns(T.nilable(Increase::Export::VendorCsv)) }
186
+ attr_reader :vendor_csv
187
+
188
+ sig do
189
+ params(vendor_csv: T.nilable(Increase::Export::VendorCsv::OrHash)).void
190
+ end
191
+ attr_writer :vendor_csv
192
+
47
193
  # Exports are generated files. Some exports can contain a lot of data, like a CSV
48
194
  # of your transactions. Others can be a single document, like a tax form. Since
49
195
  # they can take a while, they are generated asynchronously. We send a webhook when
@@ -52,38 +198,92 @@ module Increase
52
198
  sig do
53
199
  params(
54
200
  id: String,
201
+ account_statement_bai2:
202
+ T.nilable(Increase::Export::AccountStatementBai2::OrHash),
203
+ account_statement_ofx:
204
+ T.nilable(Increase::Export::AccountStatementOfx::OrHash),
205
+ account_verification_letter:
206
+ T.nilable(Increase::Export::AccountVerificationLetter::OrHash),
207
+ balance_csv: T.nilable(Increase::Export::BalanceCsv::OrHash),
208
+ bookkeeping_account_balance_csv:
209
+ T.nilable(Increase::Export::BookkeepingAccountBalanceCsv::OrHash),
55
210
  category: Increase::Export::Category::OrSymbol,
56
211
  created_at: Time,
212
+ dashboard_table_csv:
213
+ T.nilable(Increase::Export::DashboardTableCsv::OrHash),
214
+ entity_csv: T.nilable(Increase::Export::EntityCsv::OrHash),
57
215
  file_download_url: T.nilable(String),
58
216
  file_id: T.nilable(String),
217
+ form_1099_int: T.nilable(Increase::Export::Form1099Int::OrHash),
218
+ form_1099_misc: T.nilable(Increase::Export::Form1099Misc::OrHash),
219
+ funding_instructions:
220
+ T.nilable(Increase::Export::FundingInstructions::OrHash),
59
221
  idempotency_key: T.nilable(String),
60
222
  status: Increase::Export::Status::OrSymbol,
61
- type: Increase::Export::Type::OrSymbol
223
+ transaction_csv: T.nilable(Increase::Export::TransactionCsv::OrHash),
224
+ type: Increase::Export::Type::OrSymbol,
225
+ vendor_csv: T.nilable(Increase::Export::VendorCsv::OrHash)
62
226
  ).returns(T.attached_class)
63
227
  end
64
228
  def self.new(
65
229
  # The Export identifier.
66
230
  id:,
231
+ # Details of the account statement BAI2 export. This field will be present when
232
+ # the `category` is equal to `account_statement_bai2`.
233
+ account_statement_bai2:,
234
+ # Details of the account statement OFX export. This field will be present when the
235
+ # `category` is equal to `account_statement_ofx`.
236
+ account_statement_ofx:,
237
+ # Details of the account verification letter export. This field will be present
238
+ # when the `category` is equal to `account_verification_letter`.
239
+ account_verification_letter:,
240
+ # Details of the balance CSV export. This field will be present when the
241
+ # `category` is equal to `balance_csv`.
242
+ balance_csv:,
243
+ # Details of the bookkeeping account balance CSV export. This field will be
244
+ # present when the `category` is equal to `bookkeeping_account_balance_csv`.
245
+ bookkeeping_account_balance_csv:,
67
246
  # The category of the Export. We may add additional possible values for this enum
68
247
  # over time; your application should be able to handle that gracefully.
69
248
  category:,
70
249
  # The time the Export was created.
71
250
  created_at:,
251
+ # Details of the dashboard table CSV export. This field will be present when the
252
+ # `category` is equal to `dashboard_table_csv`.
253
+ dashboard_table_csv:,
254
+ # Details of the entity CSV export. This field will be present when the `category`
255
+ # is equal to `entity_csv`.
256
+ entity_csv:,
72
257
  # A URL at which the Export's file can be downloaded. This will be present when
73
258
  # the Export's status transitions to `complete`.
74
259
  file_download_url:,
75
260
  # The File containing the contents of the Export. This will be present when the
76
261
  # Export's status transitions to `complete`.
77
262
  file_id:,
263
+ # Details of the Form 1099-INT export. This field will be present when the
264
+ # `category` is equal to `form_1099_int`.
265
+ form_1099_int:,
266
+ # Details of the Form 1099-MISC export. This field will be present when the
267
+ # `category` is equal to `form_1099_misc`.
268
+ form_1099_misc:,
269
+ # Details of the funding instructions export. This field will be present when the
270
+ # `category` is equal to `funding_instructions`.
271
+ funding_instructions:,
78
272
  # The idempotency key you chose for this object. This value is unique across
79
273
  # Increase and is used to ensure that a request is only processed once. Learn more
80
274
  # about [idempotency](https://increase.com/documentation/idempotency-keys).
81
275
  idempotency_key:,
82
276
  # The status of the Export.
83
277
  status:,
278
+ # Details of the transaction CSV export. This field will be present when the
279
+ # `category` is equal to `transaction_csv`.
280
+ transaction_csv:,
84
281
  # A constant representing the object's type. For this resource it will always be
85
282
  # `export`.
86
- type:
283
+ type:,
284
+ # Details of the vendor CSV export. This field will be present when the `category`
285
+ # is equal to `vendor_csv`.
286
+ vendor_csv:
87
287
  )
88
288
  end
89
289
 
@@ -91,19 +291,428 @@ module Increase
91
291
  override.returns(
92
292
  {
93
293
  id: String,
294
+ account_statement_bai2:
295
+ T.nilable(Increase::Export::AccountStatementBai2),
296
+ account_statement_ofx:
297
+ T.nilable(Increase::Export::AccountStatementOfx),
298
+ account_verification_letter:
299
+ T.nilable(Increase::Export::AccountVerificationLetter),
300
+ balance_csv: T.nilable(Increase::Export::BalanceCsv),
301
+ bookkeeping_account_balance_csv:
302
+ T.nilable(Increase::Export::BookkeepingAccountBalanceCsv),
94
303
  category: Increase::Export::Category::TaggedSymbol,
95
304
  created_at: Time,
305
+ dashboard_table_csv: T.nilable(Increase::Export::DashboardTableCsv),
306
+ entity_csv: T.nilable(Increase::Export::EntityCsv),
96
307
  file_download_url: T.nilable(String),
97
308
  file_id: T.nilable(String),
309
+ form_1099_int: T.nilable(Increase::Export::Form1099Int),
310
+ form_1099_misc: T.nilable(Increase::Export::Form1099Misc),
311
+ funding_instructions:
312
+ T.nilable(Increase::Export::FundingInstructions),
98
313
  idempotency_key: T.nilable(String),
99
314
  status: Increase::Export::Status::TaggedSymbol,
100
- type: Increase::Export::Type::TaggedSymbol
315
+ transaction_csv: T.nilable(Increase::Export::TransactionCsv),
316
+ type: Increase::Export::Type::TaggedSymbol,
317
+ vendor_csv: T.nilable(Increase::Export::VendorCsv)
101
318
  }
102
319
  )
103
320
  end
104
321
  def to_hash
105
322
  end
106
323
 
324
+ class AccountStatementBai2 < Increase::Internal::Type::BaseModel
325
+ OrHash =
326
+ T.type_alias do
327
+ T.any(
328
+ Increase::Export::AccountStatementBai2,
329
+ Increase::Internal::AnyHash
330
+ )
331
+ end
332
+
333
+ # Filter results by Account.
334
+ sig { returns(T.nilable(String)) }
335
+ attr_accessor :account_id
336
+
337
+ # The date for which to retrieve the balance.
338
+ sig { returns(T.nilable(Date)) }
339
+ attr_accessor :effective_date
340
+
341
+ # Filter results by Program.
342
+ sig { returns(T.nilable(String)) }
343
+ attr_accessor :program_id
344
+
345
+ # Details of the account statement BAI2 export. This field will be present when
346
+ # the `category` is equal to `account_statement_bai2`.
347
+ sig do
348
+ params(
349
+ account_id: T.nilable(String),
350
+ effective_date: T.nilable(Date),
351
+ program_id: T.nilable(String)
352
+ ).returns(T.attached_class)
353
+ end
354
+ def self.new(
355
+ # Filter results by Account.
356
+ account_id:,
357
+ # The date for which to retrieve the balance.
358
+ effective_date:,
359
+ # Filter results by Program.
360
+ program_id:
361
+ )
362
+ end
363
+
364
+ sig do
365
+ override.returns(
366
+ {
367
+ account_id: T.nilable(String),
368
+ effective_date: T.nilable(Date),
369
+ program_id: T.nilable(String)
370
+ }
371
+ )
372
+ end
373
+ def to_hash
374
+ end
375
+ end
376
+
377
+ class AccountStatementOfx < Increase::Internal::Type::BaseModel
378
+ OrHash =
379
+ T.type_alias do
380
+ T.any(
381
+ Increase::Export::AccountStatementOfx,
382
+ Increase::Internal::AnyHash
383
+ )
384
+ end
385
+
386
+ # The Account to create a statement for.
387
+ sig { returns(String) }
388
+ attr_accessor :account_id
389
+
390
+ # Filter transactions by their created date.
391
+ sig do
392
+ returns(T.nilable(Increase::Export::AccountStatementOfx::CreatedAt))
393
+ end
394
+ attr_reader :created_at
395
+
396
+ sig do
397
+ params(
398
+ created_at:
399
+ T.nilable(
400
+ Increase::Export::AccountStatementOfx::CreatedAt::OrHash
401
+ )
402
+ ).void
403
+ end
404
+ attr_writer :created_at
405
+
406
+ # Details of the account statement OFX export. This field will be present when the
407
+ # `category` is equal to `account_statement_ofx`.
408
+ sig do
409
+ params(
410
+ account_id: String,
411
+ created_at:
412
+ T.nilable(
413
+ Increase::Export::AccountStatementOfx::CreatedAt::OrHash
414
+ )
415
+ ).returns(T.attached_class)
416
+ end
417
+ def self.new(
418
+ # The Account to create a statement for.
419
+ account_id:,
420
+ # Filter transactions by their created date.
421
+ created_at:
422
+ )
423
+ end
424
+
425
+ sig do
426
+ override.returns(
427
+ {
428
+ account_id: String,
429
+ created_at:
430
+ T.nilable(Increase::Export::AccountStatementOfx::CreatedAt)
431
+ }
432
+ )
433
+ end
434
+ def to_hash
435
+ end
436
+
437
+ class CreatedAt < Increase::Internal::Type::BaseModel
438
+ OrHash =
439
+ T.type_alias do
440
+ T.any(
441
+ Increase::Export::AccountStatementOfx::CreatedAt,
442
+ Increase::Internal::AnyHash
443
+ )
444
+ end
445
+
446
+ # Filter results to transactions created after this time.
447
+ sig { returns(T.nilable(Time)) }
448
+ attr_accessor :after
449
+
450
+ # Filter results to transactions created before this time.
451
+ sig { returns(T.nilable(Time)) }
452
+ attr_accessor :before
453
+
454
+ # Filter transactions by their created date.
455
+ sig do
456
+ params(after: T.nilable(Time), before: T.nilable(Time)).returns(
457
+ T.attached_class
458
+ )
459
+ end
460
+ def self.new(
461
+ # Filter results to transactions created after this time.
462
+ after:,
463
+ # Filter results to transactions created before this time.
464
+ before:
465
+ )
466
+ end
467
+
468
+ sig do
469
+ override.returns(
470
+ { after: T.nilable(Time), before: T.nilable(Time) }
471
+ )
472
+ end
473
+ def to_hash
474
+ end
475
+ end
476
+ end
477
+
478
+ class AccountVerificationLetter < Increase::Internal::Type::BaseModel
479
+ OrHash =
480
+ T.type_alias do
481
+ T.any(
482
+ Increase::Export::AccountVerificationLetter,
483
+ Increase::Internal::AnyHash
484
+ )
485
+ end
486
+
487
+ # The Account Number to create a letter for.
488
+ sig { returns(String) }
489
+ attr_accessor :account_number_id
490
+
491
+ # The date of the balance to include in the letter.
492
+ sig { returns(T.nilable(Date)) }
493
+ attr_accessor :balance_date
494
+
495
+ # Details of the account verification letter export. This field will be present
496
+ # when the `category` is equal to `account_verification_letter`.
497
+ sig do
498
+ params(
499
+ account_number_id: String,
500
+ balance_date: T.nilable(Date)
501
+ ).returns(T.attached_class)
502
+ end
503
+ def self.new(
504
+ # The Account Number to create a letter for.
505
+ account_number_id:,
506
+ # The date of the balance to include in the letter.
507
+ balance_date:
508
+ )
509
+ end
510
+
511
+ sig do
512
+ override.returns(
513
+ { account_number_id: String, balance_date: T.nilable(Date) }
514
+ )
515
+ end
516
+ def to_hash
517
+ end
518
+ end
519
+
520
+ class BalanceCsv < Increase::Internal::Type::BaseModel
521
+ OrHash =
522
+ T.type_alias do
523
+ T.any(Increase::Export::BalanceCsv, Increase::Internal::AnyHash)
524
+ end
525
+
526
+ # Filter results by Account.
527
+ sig { returns(T.nilable(String)) }
528
+ attr_accessor :account_id
529
+
530
+ # Filter balances by their created date.
531
+ sig { returns(T.nilable(Increase::Export::BalanceCsv::CreatedAt)) }
532
+ attr_reader :created_at
533
+
534
+ sig do
535
+ params(
536
+ created_at:
537
+ T.nilable(Increase::Export::BalanceCsv::CreatedAt::OrHash)
538
+ ).void
539
+ end
540
+ attr_writer :created_at
541
+
542
+ # Details of the balance CSV export. This field will be present when the
543
+ # `category` is equal to `balance_csv`.
544
+ sig do
545
+ params(
546
+ account_id: T.nilable(String),
547
+ created_at:
548
+ T.nilable(Increase::Export::BalanceCsv::CreatedAt::OrHash)
549
+ ).returns(T.attached_class)
550
+ end
551
+ def self.new(
552
+ # Filter results by Account.
553
+ account_id:,
554
+ # Filter balances by their created date.
555
+ created_at:
556
+ )
557
+ end
558
+
559
+ sig do
560
+ override.returns(
561
+ {
562
+ account_id: T.nilable(String),
563
+ created_at: T.nilable(Increase::Export::BalanceCsv::CreatedAt)
564
+ }
565
+ )
566
+ end
567
+ def to_hash
568
+ end
569
+
570
+ class CreatedAt < Increase::Internal::Type::BaseModel
571
+ OrHash =
572
+ T.type_alias do
573
+ T.any(
574
+ Increase::Export::BalanceCsv::CreatedAt,
575
+ Increase::Internal::AnyHash
576
+ )
577
+ end
578
+
579
+ # Filter balances created after this time.
580
+ sig { returns(T.nilable(Time)) }
581
+ attr_accessor :after
582
+
583
+ # Filter balances created before this time.
584
+ sig { returns(T.nilable(Time)) }
585
+ attr_accessor :before
586
+
587
+ # Filter balances by their created date.
588
+ sig do
589
+ params(after: T.nilable(Time), before: T.nilable(Time)).returns(
590
+ T.attached_class
591
+ )
592
+ end
593
+ def self.new(
594
+ # Filter balances created after this time.
595
+ after:,
596
+ # Filter balances created before this time.
597
+ before:
598
+ )
599
+ end
600
+
601
+ sig do
602
+ override.returns(
603
+ { after: T.nilable(Time), before: T.nilable(Time) }
604
+ )
605
+ end
606
+ def to_hash
607
+ end
608
+ end
609
+ end
610
+
611
+ class BookkeepingAccountBalanceCsv < Increase::Internal::Type::BaseModel
612
+ OrHash =
613
+ T.type_alias do
614
+ T.any(
615
+ Increase::Export::BookkeepingAccountBalanceCsv,
616
+ Increase::Internal::AnyHash
617
+ )
618
+ end
619
+
620
+ # Filter results by Bookkeeping Account.
621
+ sig { returns(T.nilable(String)) }
622
+ attr_accessor :bookkeeping_account_id
623
+
624
+ # Filter balances by their created date.
625
+ sig do
626
+ returns(
627
+ T.nilable(Increase::Export::BookkeepingAccountBalanceCsv::CreatedAt)
628
+ )
629
+ end
630
+ attr_reader :created_at
631
+
632
+ sig do
633
+ params(
634
+ created_at:
635
+ T.nilable(
636
+ Increase::Export::BookkeepingAccountBalanceCsv::CreatedAt::OrHash
637
+ )
638
+ ).void
639
+ end
640
+ attr_writer :created_at
641
+
642
+ # Details of the bookkeeping account balance CSV export. This field will be
643
+ # present when the `category` is equal to `bookkeeping_account_balance_csv`.
644
+ sig do
645
+ params(
646
+ bookkeeping_account_id: T.nilable(String),
647
+ created_at:
648
+ T.nilable(
649
+ Increase::Export::BookkeepingAccountBalanceCsv::CreatedAt::OrHash
650
+ )
651
+ ).returns(T.attached_class)
652
+ end
653
+ def self.new(
654
+ # Filter results by Bookkeeping Account.
655
+ bookkeeping_account_id:,
656
+ # Filter balances by their created date.
657
+ created_at:
658
+ )
659
+ end
660
+
661
+ sig do
662
+ override.returns(
663
+ {
664
+ bookkeeping_account_id: T.nilable(String),
665
+ created_at:
666
+ T.nilable(
667
+ Increase::Export::BookkeepingAccountBalanceCsv::CreatedAt
668
+ )
669
+ }
670
+ )
671
+ end
672
+ def to_hash
673
+ end
674
+
675
+ class CreatedAt < Increase::Internal::Type::BaseModel
676
+ OrHash =
677
+ T.type_alias do
678
+ T.any(
679
+ Increase::Export::BookkeepingAccountBalanceCsv::CreatedAt,
680
+ Increase::Internal::AnyHash
681
+ )
682
+ end
683
+
684
+ # Filter balances created after this time.
685
+ sig { returns(T.nilable(Time)) }
686
+ attr_accessor :after
687
+
688
+ # Filter balances created before this time.
689
+ sig { returns(T.nilable(Time)) }
690
+ attr_accessor :before
691
+
692
+ # Filter balances by their created date.
693
+ sig do
694
+ params(after: T.nilable(Time), before: T.nilable(Time)).returns(
695
+ T.attached_class
696
+ )
697
+ end
698
+ def self.new(
699
+ # Filter balances created after this time.
700
+ after:,
701
+ # Filter balances created before this time.
702
+ before:
703
+ )
704
+ end
705
+
706
+ sig do
707
+ override.returns(
708
+ { after: T.nilable(Time), before: T.nilable(Time) }
709
+ )
710
+ end
711
+ def to_hash
712
+ end
713
+ end
714
+ end
715
+
107
716
  # The category of the Export. We may add additional possible values for this enum
108
717
  # over time; your application should be able to handle that gracefully.
109
718
  module Category
@@ -180,6 +789,174 @@ module Increase
180
789
  end
181
790
  end
182
791
 
792
+ class DashboardTableCsv < Increase::Internal::Type::BaseModel
793
+ OrHash =
794
+ T.type_alias do
795
+ T.any(
796
+ Increase::Export::DashboardTableCsv,
797
+ Increase::Internal::AnyHash
798
+ )
799
+ end
800
+
801
+ # Details of the dashboard table CSV export. This field will be present when the
802
+ # `category` is equal to `dashboard_table_csv`.
803
+ sig { returns(T.attached_class) }
804
+ def self.new
805
+ end
806
+
807
+ sig { override.returns({}) }
808
+ def to_hash
809
+ end
810
+ end
811
+
812
+ class EntityCsv < Increase::Internal::Type::BaseModel
813
+ OrHash =
814
+ T.type_alias do
815
+ T.any(Increase::Export::EntityCsv, Increase::Internal::AnyHash)
816
+ end
817
+
818
+ # Details of the entity CSV export. This field will be present when the `category`
819
+ # is equal to `entity_csv`.
820
+ sig { returns(T.attached_class) }
821
+ def self.new
822
+ end
823
+
824
+ sig { override.returns({}) }
825
+ def to_hash
826
+ end
827
+ end
828
+
829
+ class Form1099Int < Increase::Internal::Type::BaseModel
830
+ OrHash =
831
+ T.type_alias do
832
+ T.any(Increase::Export::Form1099Int, Increase::Internal::AnyHash)
833
+ end
834
+
835
+ # The Account the tax form is for.
836
+ sig { returns(String) }
837
+ attr_accessor :account_id
838
+
839
+ # Whether the tax form is a corrected form.
840
+ sig { returns(T::Boolean) }
841
+ attr_accessor :corrected
842
+
843
+ # A description of the tax form.
844
+ sig { returns(String) }
845
+ attr_accessor :description
846
+
847
+ # The tax year for the tax form.
848
+ sig { returns(Integer) }
849
+ attr_accessor :year
850
+
851
+ # Details of the Form 1099-INT export. This field will be present when the
852
+ # `category` is equal to `form_1099_int`.
853
+ sig do
854
+ params(
855
+ account_id: String,
856
+ corrected: T::Boolean,
857
+ description: String,
858
+ year: Integer
859
+ ).returns(T.attached_class)
860
+ end
861
+ def self.new(
862
+ # The Account the tax form is for.
863
+ account_id:,
864
+ # Whether the tax form is a corrected form.
865
+ corrected:,
866
+ # A description of the tax form.
867
+ description:,
868
+ # The tax year for the tax form.
869
+ year:
870
+ )
871
+ end
872
+
873
+ sig do
874
+ override.returns(
875
+ {
876
+ account_id: String,
877
+ corrected: T::Boolean,
878
+ description: String,
879
+ year: Integer
880
+ }
881
+ )
882
+ end
883
+ def to_hash
884
+ end
885
+ end
886
+
887
+ class Form1099Misc < Increase::Internal::Type::BaseModel
888
+ OrHash =
889
+ T.type_alias do
890
+ T.any(Increase::Export::Form1099Misc, Increase::Internal::AnyHash)
891
+ end
892
+
893
+ # The Account the tax form is for.
894
+ sig { returns(String) }
895
+ attr_accessor :account_id
896
+
897
+ # Whether the tax form is a corrected form.
898
+ sig { returns(T::Boolean) }
899
+ attr_accessor :corrected
900
+
901
+ # The tax year for the tax form.
902
+ sig { returns(Integer) }
903
+ attr_accessor :year
904
+
905
+ # Details of the Form 1099-MISC export. This field will be present when the
906
+ # `category` is equal to `form_1099_misc`.
907
+ sig do
908
+ params(
909
+ account_id: String,
910
+ corrected: T::Boolean,
911
+ year: Integer
912
+ ).returns(T.attached_class)
913
+ end
914
+ def self.new(
915
+ # The Account the tax form is for.
916
+ account_id:,
917
+ # Whether the tax form is a corrected form.
918
+ corrected:,
919
+ # The tax year for the tax form.
920
+ year:
921
+ )
922
+ end
923
+
924
+ sig do
925
+ override.returns(
926
+ { account_id: String, corrected: T::Boolean, year: Integer }
927
+ )
928
+ end
929
+ def to_hash
930
+ end
931
+ end
932
+
933
+ class FundingInstructions < Increase::Internal::Type::BaseModel
934
+ OrHash =
935
+ T.type_alias do
936
+ T.any(
937
+ Increase::Export::FundingInstructions,
938
+ Increase::Internal::AnyHash
939
+ )
940
+ end
941
+
942
+ # The Account Number to create funding instructions for.
943
+ sig { returns(String) }
944
+ attr_accessor :account_number_id
945
+
946
+ # Details of the funding instructions export. This field will be present when the
947
+ # `category` is equal to `funding_instructions`.
948
+ sig { params(account_number_id: String).returns(T.attached_class) }
949
+ def self.new(
950
+ # The Account Number to create funding instructions for.
951
+ account_number_id:
952
+ )
953
+ end
954
+
955
+ sig { override.returns({ account_number_id: String }) }
956
+ def to_hash
957
+ end
958
+ end
959
+
183
960
  # The status of the Export.
184
961
  module Status
185
962
  extend Increase::Internal::Type::Enum
@@ -203,6 +980,97 @@ module Increase
203
980
  end
204
981
  end
205
982
 
983
+ class TransactionCsv < Increase::Internal::Type::BaseModel
984
+ OrHash =
985
+ T.type_alias do
986
+ T.any(Increase::Export::TransactionCsv, Increase::Internal::AnyHash)
987
+ end
988
+
989
+ # Filter results by Account.
990
+ sig { returns(T.nilable(String)) }
991
+ attr_accessor :account_id
992
+
993
+ # Filter transactions by their created date.
994
+ sig { returns(T.nilable(Increase::Export::TransactionCsv::CreatedAt)) }
995
+ attr_reader :created_at
996
+
997
+ sig do
998
+ params(
999
+ created_at:
1000
+ T.nilable(Increase::Export::TransactionCsv::CreatedAt::OrHash)
1001
+ ).void
1002
+ end
1003
+ attr_writer :created_at
1004
+
1005
+ # Details of the transaction CSV export. This field will be present when the
1006
+ # `category` is equal to `transaction_csv`.
1007
+ sig do
1008
+ params(
1009
+ account_id: T.nilable(String),
1010
+ created_at:
1011
+ T.nilable(Increase::Export::TransactionCsv::CreatedAt::OrHash)
1012
+ ).returns(T.attached_class)
1013
+ end
1014
+ def self.new(
1015
+ # Filter results by Account.
1016
+ account_id:,
1017
+ # Filter transactions by their created date.
1018
+ created_at:
1019
+ )
1020
+ end
1021
+
1022
+ sig do
1023
+ override.returns(
1024
+ {
1025
+ account_id: T.nilable(String),
1026
+ created_at: T.nilable(Increase::Export::TransactionCsv::CreatedAt)
1027
+ }
1028
+ )
1029
+ end
1030
+ def to_hash
1031
+ end
1032
+
1033
+ class CreatedAt < Increase::Internal::Type::BaseModel
1034
+ OrHash =
1035
+ T.type_alias do
1036
+ T.any(
1037
+ Increase::Export::TransactionCsv::CreatedAt,
1038
+ Increase::Internal::AnyHash
1039
+ )
1040
+ end
1041
+
1042
+ # Filter transactions created after this time.
1043
+ sig { returns(T.nilable(Time)) }
1044
+ attr_accessor :after
1045
+
1046
+ # Filter transactions created before this time.
1047
+ sig { returns(T.nilable(Time)) }
1048
+ attr_accessor :before
1049
+
1050
+ # Filter transactions by their created date.
1051
+ sig do
1052
+ params(after: T.nilable(Time), before: T.nilable(Time)).returns(
1053
+ T.attached_class
1054
+ )
1055
+ end
1056
+ def self.new(
1057
+ # Filter transactions created after this time.
1058
+ after:,
1059
+ # Filter transactions created before this time.
1060
+ before:
1061
+ )
1062
+ end
1063
+
1064
+ sig do
1065
+ override.returns(
1066
+ { after: T.nilable(Time), before: T.nilable(Time) }
1067
+ )
1068
+ end
1069
+ def to_hash
1070
+ end
1071
+ end
1072
+ end
1073
+
206
1074
  # A constant representing the object's type. For this resource it will always be
207
1075
  # `export`.
208
1076
  module Type
@@ -217,6 +1085,23 @@ module Increase
217
1085
  def self.values
218
1086
  end
219
1087
  end
1088
+
1089
+ class VendorCsv < Increase::Internal::Type::BaseModel
1090
+ OrHash =
1091
+ T.type_alias do
1092
+ T.any(Increase::Export::VendorCsv, Increase::Internal::AnyHash)
1093
+ end
1094
+
1095
+ # Details of the vendor CSV export. This field will be present when the `category`
1096
+ # is equal to `vendor_csv`.
1097
+ sig { returns(T.attached_class) }
1098
+ def self.new
1099
+ end
1100
+
1101
+ sig { override.returns({}) }
1102
+ def to_hash
1103
+ end
1104
+ end
220
1105
  end
221
1106
  end
222
1107
  end