groupdocs_signature_cloud 24.12 → 25.6

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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_signature_cloud/api/file_api.rb +6 -6
  3. data/lib/groupdocs_signature_cloud/api/folder_api.rb +6 -6
  4. data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
  5. data/lib/groupdocs_signature_cloud/api/license_api.rb +1 -1
  6. data/lib/groupdocs_signature_cloud/api/preview_api.rb +2 -2
  7. data/lib/groupdocs_signature_cloud/api/sign_api.rb +6 -6
  8. data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_signature_cloud/api_client_error.rb +1 -1
  11. data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_signature_cloud/models/api_error.rb +267 -0
  13. data/lib/groupdocs_signature_cloud/models/api_error_response.rb +243 -0
  14. data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +1 -1
  15. data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
  16. data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
  17. data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
  18. data/lib/groupdocs_signature_cloud/models/border_line.rb +1 -1
  19. data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
  20. data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +1 -1
  21. data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
  22. data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +1 -1
  23. data/lib/groupdocs_signature_cloud/models/consumption_result.rb +20 -5
  24. data/lib/groupdocs_signature_cloud/models/delete_options.rb +1 -1
  25. data/lib/groupdocs_signature_cloud/models/delete_result.rb +1 -1
  26. data/lib/groupdocs_signature_cloud/models/delete_settings.rb +1 -1
  27. data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +1 -1
  28. data/lib/groupdocs_signature_cloud/models/digital_signature.rb +1 -1
  29. data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +1 -1
  30. data/lib/groupdocs_signature_cloud/models/digital_vba.rb +1 -1
  31. data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
  32. data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
  33. data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
  34. data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
  35. data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
  36. data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
  37. data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
  38. data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
  39. data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +1 -1
  40. data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
  41. data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
  42. data/lib/groupdocs_signature_cloud/models/image_appearance.rb +1 -1
  43. data/lib/groupdocs_signature_cloud/models/image_signature.rb +1 -1
  44. data/lib/groupdocs_signature_cloud/models/info_result.rb +1 -1
  45. data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
  46. data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
  47. data/lib/groupdocs_signature_cloud/models/metadata_signature.rb +1 -1
  48. data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
  49. data/lib/groupdocs_signature_cloud/models/options_base.rb +1 -1
  50. data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
  51. data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
  52. data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
  53. data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +1 -1
  54. data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +1 -1
  55. data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +1 -1
  56. data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +1 -1
  57. data/lib/groupdocs_signature_cloud/models/preview_page.rb +1 -1
  58. data/lib/groupdocs_signature_cloud/models/preview_result.rb +1 -1
  59. data/lib/groupdocs_signature_cloud/models/preview_settings.rb +1 -1
  60. data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +1 -1
  61. data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
  62. data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
  63. data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
  64. data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +1 -1
  65. data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
  66. data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +1 -1
  67. data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +1 -1
  68. data/lib/groupdocs_signature_cloud/models/search_options.rb +1 -1
  69. data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +1 -1
  70. data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
  71. data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
  72. data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +1 -1
  73. data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +1 -1
  74. data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +1 -1
  75. data/lib/groupdocs_signature_cloud/models/sign_options.rb +1 -1
  76. data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +1 -1
  77. data/lib/groupdocs_signature_cloud/models/sign_result.rb +1 -1
  78. data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
  79. data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +1 -1
  80. data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +1 -1
  81. data/lib/groupdocs_signature_cloud/models/signature.rb +1 -1
  82. data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +1 -1
  83. data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
  84. data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
  85. data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
  86. data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
  87. data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
  88. data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +1 -1
  89. data/lib/groupdocs_signature_cloud/models/text_signature.rb +1 -1
  90. data/lib/groupdocs_signature_cloud/models/texture_brush.rb +1 -1
  91. data/lib/groupdocs_signature_cloud/models/time_stamp.rb +1 -1
  92. data/lib/groupdocs_signature_cloud/models/update_options.rb +1 -1
  93. data/lib/groupdocs_signature_cloud/models/update_result.rb +1 -1
  94. data/lib/groupdocs_signature_cloud/models/update_settings.rb +1 -1
  95. data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +1 -1
  96. data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +1 -1
  97. data/lib/groupdocs_signature_cloud/models/verify_options.rb +1 -1
  98. data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +1 -1
  99. data/lib/groupdocs_signature_cloud/models/verify_result.rb +1 -1
  100. data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
  101. data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +1 -1
  102. data/lib/groupdocs_signature_cloud/version.rb +2 -2
  103. data/lib/groupdocs_signature_cloud.rb +3 -1
  104. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4a2fd2af003dad352c93d25c0fa681342cc73a585b60338c55866560a4a03f0
4
- data.tar.gz: ddba9aca00c5da8675e28e926a9da7f38d1f281ed389c844dc304c659d60cab8
3
+ metadata.gz: 886444f9bf29a22b27b20d395e1dab4162b32633f8cd25282e5875cd7f226d7f
4
+ data.tar.gz: 985c2bf9b0db284fb6bcc2bd44622b61583b33404acfb5095683ba7ee18355be
5
5
  SHA512:
6
- metadata.gz: df0d2667ae2beb91ca0b0bf5421f56357124926e996f457408465a33018e254cd35c4d4647cd5d78aaf038b4c54adde26ee4007ff0bedfc4b48aae22f4a6cc03
7
- data.tar.gz: 9573573744365b42233c2f0e08bf4a1d2c16acbb04b3c9f979365dde24531c9cddc12dd2cd5578abe66f27f96e10fc607a2a4b3f0bfc01b1b580a0e5f19ae62b
6
+ metadata.gz: 520030e28844411690f41cb7387e3a5e8ef2b456a8707943773dff4b6bd8e138afb8d597a132b226279dfe7a31c90e75918b399e48285599f28c4f03cc8541a6
7
+ data.tar.gz: a79d3cb92220e052b6a2e2e150504838d1cbaf6dc280dce5dd7e39f8f1d0288114f8edf963465e416c9ff13908b58945de820a0324ddf14f461f233718c25e61
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="file.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -454,7 +454,7 @@ end
454
454
  #
455
455
  # --------------------------------------------------------------------------------------------------------------------
456
456
  # <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
457
- # Copyright (c) 2003-2023 Aspose Pty Ltd
457
+ # Copyright (c) Aspose Pty Ltd
458
458
  # </copyright>
459
459
  # <summary>
460
460
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -515,7 +515,7 @@ end
515
515
  #
516
516
  # --------------------------------------------------------------------------------------------------------------------
517
517
  # <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
518
- # Copyright (c) 2003-2023 Aspose Pty Ltd
518
+ # Copyright (c) Aspose Pty Ltd
519
519
  # </copyright>
520
520
  # <summary>
521
521
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -568,7 +568,7 @@ end
568
568
  #
569
569
  # --------------------------------------------------------------------------------------------------------------------
570
570
  # <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
571
- # Copyright (c) 2003-2023 Aspose Pty Ltd
571
+ # Copyright (c) Aspose Pty Ltd
572
572
  # </copyright>
573
573
  # <summary>
574
574
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -621,7 +621,7 @@ end
621
621
  #
622
622
  # --------------------------------------------------------------------------------------------------------------------
623
623
  # <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
624
- # Copyright (c) 2003-2023 Aspose Pty Ltd
624
+ # Copyright (c) Aspose Pty Ltd
625
625
  # </copyright>
626
626
  # <summary>
627
627
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -682,7 +682,7 @@ end
682
682
  #
683
683
  # --------------------------------------------------------------------------------------------------------------------
684
684
  # <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
685
- # Copyright (c) 2003-2023 Aspose Pty Ltd
685
+ # Copyright (c) Aspose Pty Ltd
686
686
  # </copyright>
687
687
  # <summary>
688
688
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="folder.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -435,7 +435,7 @@ end
435
435
  #
436
436
  # --------------------------------------------------------------------------------------------------------------------
437
437
  # <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
438
- # Copyright (c) 2003-2023 Aspose Pty Ltd
438
+ # Copyright (c) Aspose Pty Ltd
439
439
  # </copyright>
440
440
  # <summary>
441
441
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -492,7 +492,7 @@ end
492
492
  #
493
493
  # --------------------------------------------------------------------------------------------------------------------
494
494
  # <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
495
- # Copyright (c) 2003-2023 Aspose Pty Ltd
495
+ # Copyright (c) Aspose Pty Ltd
496
496
  # </copyright>
497
497
  # <summary>
498
498
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -541,7 +541,7 @@ end
541
541
  #
542
542
  # --------------------------------------------------------------------------------------------------------------------
543
543
  # <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
544
- # Copyright (c) 2003-2023 Aspose Pty Ltd
544
+ # Copyright (c) Aspose Pty Ltd
545
545
  # </copyright>
546
546
  # <summary>
547
547
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -594,7 +594,7 @@ end
594
594
  #
595
595
  # --------------------------------------------------------------------------------------------------------------------
596
596
  # <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
597
- # Copyright (c) 2003-2023 Aspose Pty Ltd
597
+ # Copyright (c) Aspose Pty Ltd
598
598
  # </copyright>
599
599
  # <summary>
600
600
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -643,7 +643,7 @@ end
643
643
  #
644
644
  # --------------------------------------------------------------------------------------------------------------------
645
645
  # <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
646
- # Copyright (c) 2003-2023 Aspose Pty Ltd
646
+ # Copyright (c) Aspose Pty Ltd
647
647
  # </copyright>
648
648
  # <summary>
649
649
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="info.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -320,7 +320,7 @@ end
320
320
  #
321
321
  # --------------------------------------------------------------------------------------------------------------------
322
322
  # <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
323
- # Copyright (c) 2003-2023 Aspose Pty Ltd
323
+ # Copyright (c) Aspose Pty Ltd
324
324
  # </copyright>
325
325
  # <summary>
326
326
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="license.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="preview.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -173,7 +173,7 @@ end
173
173
  #
174
174
  # --------------------------------------------------------------------------------------------------------------------
175
175
  # <copyright company="Aspose Pty Ltd" file="preview_document_request.rb">
176
- # Copyright (c) 2003-2023 Aspose Pty Ltd
176
+ # Copyright (c) Aspose Pty Ltd
177
177
  # </copyright>
178
178
  # <summary>
179
179
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="sign.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -381,7 +381,7 @@ end
381
381
  #
382
382
  # --------------------------------------------------------------------------------------------------------------------
383
383
  # <copyright company="Aspose Pty Ltd" file="create_signatures_request.rb">
384
- # Copyright (c) 2003-2023 Aspose Pty Ltd
384
+ # Copyright (c) Aspose Pty Ltd
385
385
  # </copyright>
386
386
  # <summary>
387
387
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -426,7 +426,7 @@ end
426
426
  #
427
427
  # --------------------------------------------------------------------------------------------------------------------
428
428
  # <copyright company="Aspose Pty Ltd" file="delete_signatures_request.rb">
429
- # Copyright (c) 2003-2023 Aspose Pty Ltd
429
+ # Copyright (c) Aspose Pty Ltd
430
430
  # </copyright>
431
431
  # <summary>
432
432
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -471,7 +471,7 @@ end
471
471
  #
472
472
  # --------------------------------------------------------------------------------------------------------------------
473
473
  # <copyright company="Aspose Pty Ltd" file="search_signatures_request.rb">
474
- # Copyright (c) 2003-2023 Aspose Pty Ltd
474
+ # Copyright (c) Aspose Pty Ltd
475
475
  # </copyright>
476
476
  # <summary>
477
477
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -516,7 +516,7 @@ end
516
516
  #
517
517
  # --------------------------------------------------------------------------------------------------------------------
518
518
  # <copyright company="Aspose Pty Ltd" file="update_signatures_request.rb">
519
- # Copyright (c) 2003-2023 Aspose Pty Ltd
519
+ # Copyright (c) Aspose Pty Ltd
520
520
  # </copyright>
521
521
  # <summary>
522
522
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -561,7 +561,7 @@ end
561
561
  #
562
562
  # --------------------------------------------------------------------------------------------------------------------
563
563
  # <copyright company="Aspose Pty Ltd" file="verify_signatures_request.rb">
564
- # Copyright (c) 2003-2023 Aspose Pty Ltd
564
+ # Copyright (c) Aspose Pty Ltd
565
565
  # </copyright>
566
566
  # <summary>
567
567
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="storage.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -353,7 +353,7 @@ end
353
353
  #
354
354
  # --------------------------------------------------------------------------------------------------------------------
355
355
  # <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
356
- # Copyright (c) 2003-2023 Aspose Pty Ltd
356
+ # Copyright (c) Aspose Pty Ltd
357
357
  # </copyright>
358
358
  # <summary>
359
359
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -398,7 +398,7 @@ end
398
398
  #
399
399
  # --------------------------------------------------------------------------------------------------------------------
400
400
  # <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
401
- # Copyright (c) 2003-2023 Aspose Pty Ltd
401
+ # Copyright (c) Aspose Pty Ltd
402
402
  # </copyright>
403
403
  # <summary>
404
404
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -447,7 +447,7 @@ end
447
447
  #
448
448
  # --------------------------------------------------------------------------------------------------------------------
449
449
  # <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
450
- # Copyright (c) 2003-2023 Aspose Pty Ltd
450
+ # Copyright (c) Aspose Pty Ltd
451
451
  # </copyright>
452
452
  # <summary>
453
453
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -500,7 +500,7 @@ end
500
500
  #
501
501
  # --------------------------------------------------------------------------------------------------------------------
502
502
  # <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
503
- # Copyright (c) 2003-2023 Aspose Pty Ltd
503
+ # Copyright (c) Aspose Pty Ltd
504
504
  # </copyright>
505
505
  # <summary>
506
506
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="api_client.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="api_error.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="configuration.rb">
3
- # Copyright (c) 2003-2023 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -0,0 +1,267 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="api_error.rb">
4
+ # Copyright (c) Aspose Pty Ltd
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ require 'date'
29
+
30
+ module GroupDocsSignatureCloud
31
+
32
+ class ApiError
33
+ attr_accessor :code
34
+ attr_accessor :message
35
+ attr_accessor :description
36
+ attr_accessor :date_time
37
+ attr_accessor :inner_error
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'code' => :'Code',
43
+ :'message' => :'Message',
44
+ :'description' => :'Description',
45
+ :'date_time' => :'DateTime',
46
+ :'inner_error' => :'InnerError'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'code' => :'String',
54
+ :'message' => :'String',
55
+ :'description' => :'String',
56
+ :'date_time' => :'DateTime',
57
+ :'inner_error' => :'ApiError'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.key?(:'Code')
70
+ self.code = attributes[:'Code']
71
+ end
72
+
73
+ if attributes.key?(:'Message')
74
+ self.message = attributes[:'Message']
75
+ end
76
+
77
+ if attributes.key?(:'Description')
78
+ self.description = attributes[:'Description']
79
+ end
80
+
81
+ if attributes.key?(:'DateTime')
82
+ self.date_time = attributes[:'DateTime']
83
+ end
84
+
85
+ if attributes.key?(:'InnerError')
86
+ self.inner_error = attributes[:'InnerError']
87
+ end
88
+
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properies with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = []
95
+ return invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ return true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(other)
107
+ return true if self.equal?(other)
108
+ self.class == other.class &&
109
+ code == other.code &&
110
+ message == other.message &&
111
+ description == other.description &&
112
+ date_time == other.date_time &&
113
+ inner_error == other.inner_error
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(other)
119
+ self == other
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [code, message, description, date_time, inner_error].hash
126
+ end
127
+
128
+ # Downcases first letter.
129
+ # @return downcased string
130
+ def uncap(str)
131
+ str[0, 1].downcase + str[1..-1]
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ self.class.swagger_types.each_pair do |key, type|
140
+ pname = uncap(self.class.attribute_map[key]).intern
141
+ value = attributes[pname]
142
+ if type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the the attribute
144
+ # is documented as an array but the input is not
145
+ if value.is_a?(Array)
146
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
147
+ end
148
+ elsif !value.nil?
149
+ self.send("#{key}=", _deserialize(type, value))
150
+ end
151
+ # or else data not found in attributes(hash), not an issue as the data can be optional
152
+ end
153
+
154
+ self
155
+ end
156
+
157
+ # Deserializes the data based on type
158
+ # @param string type Data type
159
+ # @param string value Value to be deserialized
160
+ # @return [Object] Deserialized data
161
+ def _deserialize(type, value)
162
+ case type.to_sym
163
+ when :DateTime
164
+ Date.parse value
165
+ when :Date
166
+ Date.parse value
167
+ when :String
168
+ value.to_s
169
+ when :Integer
170
+ value.to_i
171
+ when :Float
172
+ value.to_f
173
+ when :BOOLEAN
174
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
175
+ true
176
+ else
177
+ false
178
+ end
179
+ when :Object
180
+ # generic object (usually a Hash), return directly
181
+ value
182
+ when /\AArray<(?<inner_type>.+)>\z/
183
+ inner_type = Regexp.last_match[:inner_type]
184
+ value.map { |v| _deserialize(inner_type, v) }
185
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
186
+ k_type = Regexp.last_match[:k_type]
187
+ v_type = Regexp.last_match[:v_type]
188
+ {}.tap do |hash|
189
+ value.each do |k, v|
190
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
191
+ end
192
+ end
193
+ else
194
+ # model
195
+ # Signature type fix
196
+ ttype = type
197
+ if value.is_a?(Hash) and !value[:signatureType].nil?
198
+ ttype = value[:signatureType] + 'Signature'
199
+ if value[:signatureType] == 'FormField' and !value[:type].nil?
200
+ type = value[:type]
201
+ if type == 'Checkbox'
202
+ ttype = 'CheckboxFormFieldSignature'
203
+ end
204
+ if type == 'Text'
205
+ ttype = 'TextFormFieldSignature'
206
+ end
207
+ if type == 'Combobox'
208
+ ttype = 'ComboboxFormFieldSignature'
209
+ end
210
+ if type == 'DigitalSignature'
211
+ ttype = 'DigitalFormFieldSignature'
212
+ end
213
+ if type == 'Radio'
214
+ ttype = 'RadioButtonFormFieldSignature'
215
+ end
216
+ end
217
+ end
218
+ temp_model = GroupDocsSignatureCloud.const_get(ttype).new
219
+ temp_model.build_from_hash(value)
220
+ end
221
+ end
222
+
223
+ # Returns the string representation of the object
224
+ # @return [String] String presentation of the object
225
+ def to_s
226
+ to_hash.to_s
227
+ end
228
+
229
+ # to_body is an alias to to_hash (backward compatibility)
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_body
232
+ to_hash
233
+ end
234
+
235
+ # Returns the object in the form of hash
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_hash
238
+ hash = {}
239
+ self.class.attribute_map.each_pair do |attr, param|
240
+ value = self.send(attr)
241
+ next if value.nil?
242
+ hash[param] = _to_hash(value)
243
+ end
244
+ hash
245
+ end
246
+
247
+ # Outputs non-array value in the form of hash
248
+ # For object, use to_hash. Otherwise, just return the value
249
+ # @param [Object] value Any valid value
250
+ # @return [Hash] Returns the value in the form of hash
251
+ def _to_hash(value)
252
+ if value.is_a?(Array)
253
+ value.compact.map { |v| _to_hash(v) }
254
+ elsif value.is_a?(Hash)
255
+ {}.tap do |hash|
256
+ value.each { |k, v| hash[k] = _to_hash(v) }
257
+ end
258
+ elsif value.respond_to? :to_hash
259
+ value.to_hash
260
+ else
261
+ value
262
+ end
263
+ end
264
+
265
+ end
266
+
267
+ end