stackone_client 0.36.0 → 0.36.1

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +597 -3
  3. data/lib/stack_one/documents.rb +1 -1
  4. data/lib/stack_one/hris.rb +61 -59
  5. data/lib/stack_one/messaging.rb +1 -1
  6. data/lib/stack_one/models/operations/ats_download_application_document_response.rb +13 -5
  7. data/lib/stack_one/models/operations/ats_download_application_document_response.rbi +6 -2
  8. data/lib/stack_one/models/operations/documents_download_file_response.rb +6 -6
  9. data/lib/stack_one/models/operations/documents_download_file_response.rbi +2 -2
  10. data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +12 -152
  11. data/lib/stack_one/models/operations/hris_download_employee_document_response.rbi +6 -76
  12. data/lib/stack_one/models/operations/messaging_download_messaging_attachment_response.rb +6 -6
  13. data/lib/stack_one/models/operations/messaging_download_messaging_attachment_response.rbi +2 -2
  14. data/lib/stack_one/models/operations/ticketing_download_ticketing_attachment_response.rb +6 -6
  15. data/lib/stack_one/models/operations/ticketing_download_ticketing_attachment_response.rbi +2 -2
  16. data/lib/stack_one/models/shared/customfieldoption.rb +2 -2
  17. data/lib/stack_one/models/shared/customfieldoption_4.rb +28 -0
  18. data/lib/stack_one/models/shared/customfieldoption_4.rbi +11 -0
  19. data/lib/stack_one/models/shared/customfieldoption_value.rb +28 -0
  20. data/lib/stack_one/models/shared/customfieldoption_value.rbi +11 -0
  21. data/lib/stack_one/models/shared/customfields.rb +2 -2
  22. data/lib/stack_one/models/shared/downloadapimodel.rb +37 -0
  23. data/lib/stack_one/models/shared/downloadapimodel.rbi +15 -0
  24. data/lib/stack_one/models/shared/downloadheadersapimodel.rb +53 -0
  25. data/lib/stack_one/models/shared/downloadheadersapimodel.rbi +23 -0
  26. data/lib/stack_one/models/shared.rb +4 -0
  27. data/lib/stack_one/sdkconfiguration.rb +3 -3
  28. data/lib/stack_one/ticketing.rb +1 -1
  29. metadata +10 -2
@@ -2298,23 +2298,7 @@ module StackOne
2298
2298
  content_type: content_type,
2299
2299
  raw_response: http_response,
2300
2300
  headers: {},
2301
- two_hundred_application_gzip_bytes: T.unsafe(obj)
2302
- )
2303
- elsif Utils.match_content_type(content_type, 'application/json')
2304
- http_response = @sdk_configuration.hooks.after_success(
2305
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2306
- hook_ctx: hook_ctx
2307
- ),
2308
- response: http_response
2309
- )
2310
- obj = http_response.env.body
2311
-
2312
- return Models::Operations::HrisDownloadEmployeeDocumentResponse.new(
2313
- status_code: http_response.status,
2314
- content_type: content_type,
2315
- raw_response: http_response,
2316
- headers: {},
2317
- two_hundred_application_json_bytes: T.unsafe(obj)
2301
+ body: T.unsafe(obj)
2318
2302
  )
2319
2303
  elsif Utils.match_content_type(content_type, 'application/msword')
2320
2304
  http_response = @sdk_configuration.hooks.after_success(
@@ -2330,7 +2314,7 @@ module StackOne
2330
2314
  content_type: content_type,
2331
2315
  raw_response: http_response,
2332
2316
  headers: {},
2333
- two_hundred_application_msword_bytes: T.unsafe(obj)
2317
+ body: T.unsafe(obj)
2334
2318
  )
2335
2319
  elsif Utils.match_content_type(content_type, 'application/octet-stream')
2336
2320
  http_response = @sdk_configuration.hooks.after_success(
@@ -2346,7 +2330,7 @@ module StackOne
2346
2330
  content_type: content_type,
2347
2331
  raw_response: http_response,
2348
2332
  headers: {},
2349
- two_hundred_application_octet_stream_bytes: T.unsafe(obj)
2333
+ body: T.unsafe(obj)
2350
2334
  )
2351
2335
  elsif Utils.match_content_type(content_type, 'application/pdf')
2352
2336
  http_response = @sdk_configuration.hooks.after_success(
@@ -2362,7 +2346,7 @@ module StackOne
2362
2346
  content_type: content_type,
2363
2347
  raw_response: http_response,
2364
2348
  headers: {},
2365
- two_hundred_application_pdf_bytes: T.unsafe(obj)
2349
+ body: T.unsafe(obj)
2366
2350
  )
2367
2351
  elsif Utils.match_content_type(content_type, 'application/rtf')
2368
2352
  http_response = @sdk_configuration.hooks.after_success(
@@ -2378,7 +2362,7 @@ module StackOne
2378
2362
  content_type: content_type,
2379
2363
  raw_response: http_response,
2380
2364
  headers: {},
2381
- two_hundred_application_rtf_bytes: T.unsafe(obj)
2365
+ body: T.unsafe(obj)
2382
2366
  )
2383
2367
  elsif Utils.match_content_type(content_type, 'application/vnd.ms-excel')
2384
2368
  http_response = @sdk_configuration.hooks.after_success(
@@ -2394,7 +2378,7 @@ module StackOne
2394
2378
  content_type: content_type,
2395
2379
  raw_response: http_response,
2396
2380
  headers: {},
2397
- two_hundred_application_vnd_ms_excel_bytes: T.unsafe(obj)
2381
+ body: T.unsafe(obj)
2398
2382
  )
2399
2383
  elsif Utils.match_content_type(content_type, 'application/vnd.ms-outlook')
2400
2384
  http_response = @sdk_configuration.hooks.after_success(
@@ -2410,7 +2394,7 @@ module StackOne
2410
2394
  content_type: content_type,
2411
2395
  raw_response: http_response,
2412
2396
  headers: {},
2413
- two_hundred_application_vnd_ms_outlook_bytes: T.unsafe(obj)
2397
+ body: T.unsafe(obj)
2414
2398
  )
2415
2399
  elsif Utils.match_content_type(content_type, 'application/vnd.ms-powerpoint')
2416
2400
  http_response = @sdk_configuration.hooks.after_success(
@@ -2426,7 +2410,7 @@ module StackOne
2426
2410
  content_type: content_type,
2427
2411
  raw_response: http_response,
2428
2412
  headers: {},
2429
- two_hundred_application_vnd_ms_powerpoint_bytes: T.unsafe(obj)
2413
+ body: T.unsafe(obj)
2430
2414
  )
2431
2415
  elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.presentation')
2432
2416
  http_response = @sdk_configuration.hooks.after_success(
@@ -2442,7 +2426,7 @@ module StackOne
2442
2426
  content_type: content_type,
2443
2427
  raw_response: http_response,
2444
2428
  headers: {},
2445
- two_hundred_application_vnd_oasis_opendocument_presentation_bytes: T.unsafe(obj)
2429
+ body: T.unsafe(obj)
2446
2430
  )
2447
2431
  elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.spreadsheet')
2448
2432
  http_response = @sdk_configuration.hooks.after_success(
@@ -2458,7 +2442,7 @@ module StackOne
2458
2442
  content_type: content_type,
2459
2443
  raw_response: http_response,
2460
2444
  headers: {},
2461
- two_hundred_application_vnd_oasis_opendocument_spreadsheet_bytes: T.unsafe(obj)
2445
+ body: T.unsafe(obj)
2462
2446
  )
2463
2447
  elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.text')
2464
2448
  http_response = @sdk_configuration.hooks.after_success(
@@ -2474,7 +2458,7 @@ module StackOne
2474
2458
  content_type: content_type,
2475
2459
  raw_response: http_response,
2476
2460
  headers: {},
2477
- two_hundred_application_vnd_oasis_opendocument_text_bytes: T.unsafe(obj)
2461
+ body: T.unsafe(obj)
2478
2462
  )
2479
2463
  elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.presentationml.presentation')
2480
2464
  http_response = @sdk_configuration.hooks.after_success(
@@ -2490,7 +2474,7 @@ module StackOne
2490
2474
  content_type: content_type,
2491
2475
  raw_response: http_response,
2492
2476
  headers: {},
2493
- two_hundred_application_vnd_openxmlformats_officedocument_presentationml_presentation_bytes: T.unsafe(obj)
2477
+ body: T.unsafe(obj)
2494
2478
  )
2495
2479
  elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
2496
2480
  http_response = @sdk_configuration.hooks.after_success(
@@ -2506,7 +2490,7 @@ module StackOne
2506
2490
  content_type: content_type,
2507
2491
  raw_response: http_response,
2508
2492
  headers: {},
2509
- two_hundred_application_vnd_openxmlformats_officedocument_spreadsheetml_sheet_bytes: T.unsafe(obj)
2493
+ body: T.unsafe(obj)
2510
2494
  )
2511
2495
  elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.wordprocessingml.document')
2512
2496
  http_response = @sdk_configuration.hooks.after_success(
@@ -2522,7 +2506,7 @@ module StackOne
2522
2506
  content_type: content_type,
2523
2507
  raw_response: http_response,
2524
2508
  headers: {},
2525
- two_hundred_application_vnd_openxmlformats_officedocument_wordprocessingml_document_bytes: T.unsafe(obj)
2509
+ body: T.unsafe(obj)
2526
2510
  )
2527
2511
  elsif Utils.match_content_type(content_type, 'application/x-7z-compressed')
2528
2512
  http_response = @sdk_configuration.hooks.after_success(
@@ -2538,7 +2522,7 @@ module StackOne
2538
2522
  content_type: content_type,
2539
2523
  raw_response: http_response,
2540
2524
  headers: {},
2541
- two_hundred_application_x_7z_compressed_bytes: T.unsafe(obj)
2525
+ body: T.unsafe(obj)
2542
2526
  )
2543
2527
  elsif Utils.match_content_type(content_type, 'application/x-rar-compressed')
2544
2528
  http_response = @sdk_configuration.hooks.after_success(
@@ -2554,7 +2538,7 @@ module StackOne
2554
2538
  content_type: content_type,
2555
2539
  raw_response: http_response,
2556
2540
  headers: {},
2557
- two_hundred_application_x_rar_compressed_bytes: T.unsafe(obj)
2541
+ body: T.unsafe(obj)
2558
2542
  )
2559
2543
  elsif Utils.match_content_type(content_type, 'application/xml')
2560
2544
  http_response = @sdk_configuration.hooks.after_success(
@@ -2570,7 +2554,7 @@ module StackOne
2570
2554
  content_type: content_type,
2571
2555
  raw_response: http_response,
2572
2556
  headers: {},
2573
- two_hundred_application_xml_bytes: T.unsafe(obj)
2557
+ body: T.unsafe(obj)
2574
2558
  )
2575
2559
  elsif Utils.match_content_type(content_type, 'application/zip')
2576
2560
  http_response = @sdk_configuration.hooks.after_success(
@@ -2586,7 +2570,7 @@ module StackOne
2586
2570
  content_type: content_type,
2587
2571
  raw_response: http_response,
2588
2572
  headers: {},
2589
- two_hundred_application_zip_bytes: T.unsafe(obj)
2573
+ body: T.unsafe(obj)
2590
2574
  )
2591
2575
  elsif Utils.match_content_type(content_type, 'audio/mp4')
2592
2576
  http_response = @sdk_configuration.hooks.after_success(
@@ -2602,7 +2586,7 @@ module StackOne
2602
2586
  content_type: content_type,
2603
2587
  raw_response: http_response,
2604
2588
  headers: {},
2605
- two_hundred_audio_mp4_bytes: T.unsafe(obj)
2589
+ body: T.unsafe(obj)
2606
2590
  )
2607
2591
  elsif Utils.match_content_type(content_type, 'audio/mpeg')
2608
2592
  http_response = @sdk_configuration.hooks.after_success(
@@ -2618,7 +2602,7 @@ module StackOne
2618
2602
  content_type: content_type,
2619
2603
  raw_response: http_response,
2620
2604
  headers: {},
2621
- two_hundred_audio_mpeg_bytes: T.unsafe(obj)
2605
+ body: T.unsafe(obj)
2622
2606
  )
2623
2607
  elsif Utils.match_content_type(content_type, 'audio/wav')
2624
2608
  http_response = @sdk_configuration.hooks.after_success(
@@ -2634,7 +2618,7 @@ module StackOne
2634
2618
  content_type: content_type,
2635
2619
  raw_response: http_response,
2636
2620
  headers: {},
2637
- two_hundred_audio_wav_bytes: T.unsafe(obj)
2621
+ body: T.unsafe(obj)
2638
2622
  )
2639
2623
  elsif Utils.match_content_type(content_type, 'image/bmp')
2640
2624
  http_response = @sdk_configuration.hooks.after_success(
@@ -2650,7 +2634,7 @@ module StackOne
2650
2634
  content_type: content_type,
2651
2635
  raw_response: http_response,
2652
2636
  headers: {},
2653
- two_hundred_image_bmp_bytes: T.unsafe(obj)
2637
+ body: T.unsafe(obj)
2654
2638
  )
2655
2639
  elsif Utils.match_content_type(content_type, 'image/gif')
2656
2640
  http_response = @sdk_configuration.hooks.after_success(
@@ -2666,7 +2650,7 @@ module StackOne
2666
2650
  content_type: content_type,
2667
2651
  raw_response: http_response,
2668
2652
  headers: {},
2669
- two_hundred_image_gif_bytes: T.unsafe(obj)
2653
+ body: T.unsafe(obj)
2670
2654
  )
2671
2655
  elsif Utils.match_content_type(content_type, 'image/heic')
2672
2656
  http_response = @sdk_configuration.hooks.after_success(
@@ -2682,7 +2666,7 @@ module StackOne
2682
2666
  content_type: content_type,
2683
2667
  raw_response: http_response,
2684
2668
  headers: {},
2685
- two_hundred_image_heic_bytes: T.unsafe(obj)
2669
+ body: T.unsafe(obj)
2686
2670
  )
2687
2671
  elsif Utils.match_content_type(content_type, 'image/jpeg')
2688
2672
  http_response = @sdk_configuration.hooks.after_success(
@@ -2698,7 +2682,7 @@ module StackOne
2698
2682
  content_type: content_type,
2699
2683
  raw_response: http_response,
2700
2684
  headers: {},
2701
- two_hundred_image_jpeg_bytes: T.unsafe(obj)
2685
+ body: T.unsafe(obj)
2702
2686
  )
2703
2687
  elsif Utils.match_content_type(content_type, 'image/png')
2704
2688
  http_response = @sdk_configuration.hooks.after_success(
@@ -2714,7 +2698,7 @@ module StackOne
2714
2698
  content_type: content_type,
2715
2699
  raw_response: http_response,
2716
2700
  headers: {},
2717
- two_hundred_image_png_bytes: T.unsafe(obj)
2701
+ body: T.unsafe(obj)
2718
2702
  )
2719
2703
  elsif Utils.match_content_type(content_type, 'image/tiff')
2720
2704
  http_response = @sdk_configuration.hooks.after_success(
@@ -2730,7 +2714,7 @@ module StackOne
2730
2714
  content_type: content_type,
2731
2715
  raw_response: http_response,
2732
2716
  headers: {},
2733
- two_hundred_image_tiff_bytes: T.unsafe(obj)
2717
+ body: T.unsafe(obj)
2734
2718
  )
2735
2719
  elsif Utils.match_content_type(content_type, 'image/webp')
2736
2720
  http_response = @sdk_configuration.hooks.after_success(
@@ -2746,7 +2730,7 @@ module StackOne
2746
2730
  content_type: content_type,
2747
2731
  raw_response: http_response,
2748
2732
  headers: {},
2749
- two_hundred_image_webp_bytes: T.unsafe(obj)
2733
+ body: T.unsafe(obj)
2750
2734
  )
2751
2735
  elsif Utils.match_content_type(content_type, 'message/rfc822')
2752
2736
  http_response = @sdk_configuration.hooks.after_success(
@@ -2762,7 +2746,7 @@ module StackOne
2762
2746
  content_type: content_type,
2763
2747
  raw_response: http_response,
2764
2748
  headers: {},
2765
- two_hundred_message_rfc822_bytes: T.unsafe(obj)
2749
+ body: T.unsafe(obj)
2766
2750
  )
2767
2751
  elsif Utils.match_content_type(content_type, 'text/csv')
2768
2752
  http_response = @sdk_configuration.hooks.after_success(
@@ -2778,7 +2762,7 @@ module StackOne
2778
2762
  content_type: content_type,
2779
2763
  raw_response: http_response,
2780
2764
  headers: {},
2781
- two_hundred_text_csv_bytes: T.unsafe(obj)
2765
+ body: T.unsafe(obj)
2782
2766
  )
2783
2767
  elsif Utils.match_content_type(content_type, 'text/html')
2784
2768
  http_response = @sdk_configuration.hooks.after_success(
@@ -2794,9 +2778,9 @@ module StackOne
2794
2778
  content_type: content_type,
2795
2779
  raw_response: http_response,
2796
2780
  headers: {},
2797
- two_hundred_text_html_bytes: T.unsafe(obj)
2781
+ body: T.unsafe(obj)
2798
2782
  )
2799
- elsif Utils.match_content_type(content_type, 'text/plain')
2783
+ elsif Utils.match_content_type(content_type, 'text/rtf')
2800
2784
  http_response = @sdk_configuration.hooks.after_success(
2801
2785
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2802
2786
  hook_ctx: hook_ctx
@@ -2810,9 +2794,9 @@ module StackOne
2810
2794
  content_type: content_type,
2811
2795
  raw_response: http_response,
2812
2796
  headers: {},
2813
- two_hundred_text_plain_bytes: T.unsafe(obj)
2797
+ body: T.unsafe(obj)
2814
2798
  )
2815
- elsif Utils.match_content_type(content_type, 'text/rtf')
2799
+ elsif Utils.match_content_type(content_type, 'video/avi')
2816
2800
  http_response = @sdk_configuration.hooks.after_success(
2817
2801
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2818
2802
  hook_ctx: hook_ctx
@@ -2826,9 +2810,9 @@ module StackOne
2826
2810
  content_type: content_type,
2827
2811
  raw_response: http_response,
2828
2812
  headers: {},
2829
- two_hundred_text_rtf_bytes: T.unsafe(obj)
2813
+ body: T.unsafe(obj)
2830
2814
  )
2831
- elsif Utils.match_content_type(content_type, 'video/avi')
2815
+ elsif Utils.match_content_type(content_type, 'video/mp4')
2832
2816
  http_response = @sdk_configuration.hooks.after_success(
2833
2817
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2834
2818
  hook_ctx: hook_ctx
@@ -2842,9 +2826,9 @@ module StackOne
2842
2826
  content_type: content_type,
2843
2827
  raw_response: http_response,
2844
2828
  headers: {},
2845
- two_hundred_video_avi_bytes: T.unsafe(obj)
2829
+ body: T.unsafe(obj)
2846
2830
  )
2847
- elsif Utils.match_content_type(content_type, 'video/mp4')
2831
+ elsif Utils.match_content_type(content_type, 'video/quicktime')
2848
2832
  http_response = @sdk_configuration.hooks.after_success(
2849
2833
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2850
2834
  hook_ctx: hook_ctx
@@ -2858,9 +2842,9 @@ module StackOne
2858
2842
  content_type: content_type,
2859
2843
  raw_response: http_response,
2860
2844
  headers: {},
2861
- two_hundred_video_mp4_bytes: T.unsafe(obj)
2845
+ body: T.unsafe(obj)
2862
2846
  )
2863
- elsif Utils.match_content_type(content_type, 'video/quicktime')
2847
+ elsif Utils.match_content_type(content_type, 'video/webm')
2864
2848
  http_response = @sdk_configuration.hooks.after_success(
2865
2849
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2866
2850
  hook_ctx: hook_ctx
@@ -2874,9 +2858,27 @@ module StackOne
2874
2858
  content_type: content_type,
2875
2859
  raw_response: http_response,
2876
2860
  headers: {},
2877
- two_hundred_video_quicktime_bytes: T.unsafe(obj)
2861
+ body: T.unsafe(obj)
2878
2862
  )
2879
- elsif Utils.match_content_type(content_type, 'video/webm')
2863
+ elsif Utils.match_content_type(content_type, 'application/json')
2864
+ http_response = @sdk_configuration.hooks.after_success(
2865
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2866
+ hook_ctx: hook_ctx
2867
+ ),
2868
+ response: http_response
2869
+ )
2870
+ response_data = http_response.env.response_body
2871
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::DownloadApiModel)
2872
+ response = Models::Operations::HrisDownloadEmployeeDocumentResponse.new(
2873
+ status_code: http_response.status,
2874
+ content_type: content_type,
2875
+ raw_response: http_response,
2876
+ headers: {},
2877
+ download_api_model: T.unsafe(obj)
2878
+ )
2879
+
2880
+ return response
2881
+ elsif Utils.match_content_type(content_type, 'text/plain')
2880
2882
  http_response = @sdk_configuration.hooks.after_success(
2881
2883
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
2882
2884
  hook_ctx: hook_ctx
@@ -2890,7 +2892,7 @@ module StackOne
2890
2892
  content_type: content_type,
2891
2893
  raw_response: http_response,
2892
2894
  headers: {},
2893
- two_hundred_video_webm_bytes: T.unsafe(obj)
2895
+ download_api_model1: T.unsafe(obj)
2894
2896
  )
2895
2897
  else
2896
2898
  raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
@@ -449,7 +449,7 @@ module StackOne
449
449
  content_type: content_type,
450
450
  raw_response: http_response,
451
451
  headers: {},
452
- bytes: T.unsafe(obj)
452
+ body: T.unsafe(obj)
453
453
  )
454
454
  else
455
455
  raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
@@ -21,16 +21,22 @@ module StackOne
21
21
  field :status_code, ::Integer
22
22
  # Raw HTTP response; suitable for custom response parsing
23
23
  field :raw_response, ::Faraday::Response
24
+
25
+ field :body, Crystalline::Nilable.new(::String)
26
+ # The document related to the application with the given identifiers was retrieved.
27
+ field :download_api_model, Crystalline::Nilable.new(Models::Shared::DownloadApiModel)
24
28
  # The document related to the application with the given identifiers was retrieved.
25
- field :bytes, Crystalline::Nilable.new(::String)
29
+ field :download_api_model1, Crystalline::Nilable.new(::String)
26
30
 
27
- sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, bytes: T.nilable(::String)).void }
28
- def initialize(content_type:, headers:, status_code:, raw_response:, bytes: nil)
31
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, body: T.nilable(::String), download_api_model: T.nilable(Models::Shared::DownloadApiModel), download_api_model1: T.nilable(::String)).void }
32
+ def initialize(content_type:, headers:, status_code:, raw_response:, body: nil, download_api_model: nil, download_api_model1: nil)
29
33
  @content_type = content_type
30
34
  @headers = headers
31
35
  @status_code = status_code
32
36
  @raw_response = raw_response
33
- @bytes = bytes
37
+ @body = body
38
+ @download_api_model = download_api_model
39
+ @download_api_model1 = download_api_model1
34
40
  end
35
41
 
36
42
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -40,7 +46,9 @@ module StackOne
40
46
  return false unless @headers == other.headers
41
47
  return false unless @status_code == other.status_code
42
48
  return false unless @raw_response == other.raw_response
43
- return false unless @bytes == other.bytes
49
+ return false unless @body == other.body
50
+ return false unless @download_api_model == other.download_api_model
51
+ return false unless @download_api_model1 == other.download_api_model1
44
52
  true
45
53
  end
46
54
  end
@@ -16,6 +16,10 @@ class StackOne::Models::Operations::AtsDownloadApplicationDocumentResponse
16
16
  def status_code=(str_); end
17
17
  def raw_response(); end
18
18
  def raw_response=(str_); end
19
- def bytes(); end
20
- def bytes=(str_); end
19
+ def body(); end
20
+ def body=(str_); end
21
+ def download_api_model(); end
22
+ def download_api_model=(str_); end
23
+ def download_api_model1(); end
24
+ def download_api_model1=(str_); end
21
25
  end
@@ -21,16 +21,16 @@ module StackOne
21
21
  field :status_code, ::Integer
22
22
  # Raw HTTP response; suitable for custom response parsing
23
23
  field :raw_response, ::Faraday::Response
24
- # The file with the given identifiers was retrieved.
25
- field :bytes, Crystalline::Nilable.new(::String)
26
24
 
27
- sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, bytes: T.nilable(::String)).void }
28
- def initialize(content_type:, headers:, status_code:, raw_response:, bytes: nil)
25
+ field :body, Crystalline::Nilable.new(::String)
26
+
27
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, body: T.nilable(::String)).void }
28
+ def initialize(content_type:, headers:, status_code:, raw_response:, body: nil)
29
29
  @content_type = content_type
30
30
  @headers = headers
31
31
  @status_code = status_code
32
32
  @raw_response = raw_response
33
- @bytes = bytes
33
+ @body = body
34
34
  end
35
35
 
36
36
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -40,7 +40,7 @@ module StackOne
40
40
  return false unless @headers == other.headers
41
41
  return false unless @status_code == other.status_code
42
42
  return false unless @raw_response == other.raw_response
43
- return false unless @bytes == other.bytes
43
+ return false unless @body == other.body
44
44
  true
45
45
  end
46
46
  end
@@ -16,6 +16,6 @@ class StackOne::Models::Operations::DocumentsDownloadFileResponse
16
16
  def status_code=(str_); end
17
17
  def raw_response(); end
18
18
  def raw_response=(str_); end
19
- def bytes(); end
20
- def bytes=(str_); end
19
+ def body(); end
20
+ def body=(str_); end
21
21
  end