groupdocs_signature_cloud 18.8.1 → 19.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/groupdocs_signature_cloud.rb +99 -191
- data/lib/groupdocs_signature_cloud/api/file_api.rb +734 -0
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +699 -0
- data/lib/groupdocs_signature_cloud/api/info_api.rb +364 -0
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +411 -0
- data/lib/groupdocs_signature_cloud/api/storage_api.rb +544 -0
- data/lib/groupdocs_signature_cloud/api_client.rb +382 -380
- data/lib/groupdocs_signature_cloud/api_error.rb +58 -58
- data/lib/groupdocs_signature_cloud/configuration.rb +95 -110
- data/lib/groupdocs_signature_cloud/models/{digital_signature_data.rb → barcode_signature.rb} +312 -307
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +219 -230
- data/lib/groupdocs_signature_cloud/models/{barcode_collection.rb → barcodes_result.rb} +221 -232
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +219 -0
- data/lib/groupdocs_signature_cloud/models/{border_line_data.rb → border_line.rb} +301 -312
- data/lib/groupdocs_signature_cloud/models/{brush_data.rb → brush.rb} +219 -230
- data/lib/groupdocs_signature_cloud/models/color.rb +219 -245
- data/lib/groupdocs_signature_cloud/models/{pdf_digital_signature_data.rb → digital_signature.rb} +363 -307
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +239 -0
- data/lib/groupdocs_signature_cloud/models/error.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/error_details.rb +234 -0
- data/lib/groupdocs_signature_cloud/models/file_info.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/{document_info.rb → file_version.rb} +294 -300
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +221 -0
- data/lib/groupdocs_signature_cloud/models/files_list.rb +221 -0
- data/lib/groupdocs_signature_cloud/models/{base_signature_data.rb → files_upload_result.rb} +233 -230
- data/lib/groupdocs_signature_cloud/models/format.rb +229 -240
- data/lib/groupdocs_signature_cloud/models/{format_collection.rb → formats_result.rb} +221 -232
- data/lib/groupdocs_signature_cloud/models/{search_document_response.rb → info_result.rb} +339 -303
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +219 -0
- data/lib/groupdocs_signature_cloud/models/{linear_gradient_brush_data.rb → linear_gradient_brush.rb} +254 -260
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +239 -0
- data/lib/groupdocs_signature_cloud/models/options_base.rb +327 -0
- data/lib/groupdocs_signature_cloud/models/{padding_data.rb → padding.rb} +284 -295
- data/lib/groupdocs_signature_cloud/models/page_info.rb +294 -305
- data/lib/groupdocs_signature_cloud/models/{pages_setup_data.rb → pages_setup.rb} +281 -292
- data/lib/groupdocs_signature_cloud/models/{words_digital_signature_data.rb → qr_code_signature.rb} +312 -307
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +219 -230
- data/lib/groupdocs_signature_cloud/models/{qr_code_collection.rb → qr_codes_result.rb} +221 -232
- data/lib/groupdocs_signature_cloud/models/{radial_gradient_brush_data.rb → radial_gradient_brush.rb} +239 -250
- data/lib/groupdocs_signature_cloud/models/save_options.rb +244 -0
- data/lib/groupdocs_signature_cloud/models/{search_barcode_options_data.rb → search_barcode_options.rb} +378 -332
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +327 -0
- data/lib/groupdocs_signature_cloud/models/search_options.rb +327 -0
- data/lib/groupdocs_signature_cloud/models/{pdf_search_barcode_options_data.rb → search_qr_code_options.rb} +378 -332
- data/lib/groupdocs_signature_cloud/models/{sign_options_collection_data.rb → search_result.rb} +246 -232
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +231 -0
- data/lib/groupdocs_signature_cloud/models/{images_sign_text_options_data.rb → sign_barcode_options.rb} +857 -706
- data/lib/groupdocs_signature_cloud/models/{sign_digital_options_data.rb → sign_digital_options.rb} +612 -516
- data/lib/groupdocs_signature_cloud/models/{sign_stamp_options_data.rb → sign_image_options.rb} +592 -592
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +327 -0
- data/lib/groupdocs_signature_cloud/models/{words_sign_text_options_data.rb → sign_qr_code_options.rb} +872 -696
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +244 -0
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +241 -0
- data/lib/groupdocs_signature_cloud/models/{slides_sign_stamp_options_data.rb → sign_stamp_options.rb} +698 -592
- data/lib/groupdocs_signature_cloud/models/{cells_sign_text_options_data.rb → sign_text_options.rb} +781 -736
- data/lib/groupdocs_signature_cloud/models/{signature_document_response.rb → signature.rb} +292 -290
- data/lib/groupdocs_signature_cloud/models/{signature_font_data.rb → signature_font.rb} +279 -290
- data/lib/groupdocs_signature_cloud/models/{solid_brush_data.rb → solid_brush.rb} +229 -240
- data/lib/groupdocs_signature_cloud/models/{stamp_line_data.rb → stamp_line.rb} +366 -377
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +224 -0
- data/lib/groupdocs_signature_cloud/models/{pdf_qr_code_signature_data.rb → storage_file.rb} +269 -250
- data/lib/groupdocs_signature_cloud/models/{texture_brush_data.rb → texture_brush.rb} +229 -240
- data/lib/groupdocs_signature_cloud/models/{verify_barcode_options_data.rb → verify_barcode_options.rb} +378 -342
- data/lib/groupdocs_signature_cloud/models/{cells_verify_digital_options_data.rb → verify_digital_options.rb} +407 -315
- data/lib/groupdocs_signature_cloud/models/{cells_digital_signature_data.rb → verify_options.rb} +327 -307
- data/lib/groupdocs_signature_cloud/models/{verify_qr_code_options_data.rb → verify_qr_code_options.rb} +378 -342
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +231 -0
- data/lib/groupdocs_signature_cloud/models/{cells_verify_barcode_options_data.rb → verify_text_options.rb} +368 -342
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- metadata +63 -171
- data/lib/groupdocs_signature_cloud/api/signature_api.rb +0 -2590
- data/lib/groupdocs_signature_cloud/models/barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/cells_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/cells_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/cells_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/cells_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/cells_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/cells_sign_barcode_options_data.rb +0 -694
- data/lib/groupdocs_signature_cloud/models/cells_sign_digital_options_data.rb +0 -546
- data/lib/groupdocs_signature_cloud/models/cells_sign_image_options_data.rb +0 -526
- data/lib/groupdocs_signature_cloud/models/cells_sign_qr_code_options_data.rb +0 -704
- data/lib/groupdocs_signature_cloud/models/cells_sign_stamp_options_data.rb +0 -622
- data/lib/groupdocs_signature_cloud/models/cells_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/cells_verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/document_response.rb +0 -302
- data/lib/groupdocs_signature_cloud/models/images_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/images_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/images_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/images_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/images_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/images_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/images_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/images_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/images_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/images_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pages_info.rb +0 -247
- data/lib/groupdocs_signature_cloud/models/pdf_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/pdf_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/pdf_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/pdf_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/pdf_sign_digital_options_data.rb +0 -556
- data/lib/groupdocs_signature_cloud/models/pdf_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/pdf_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/pdf_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/pdf_sign_text_options_data.rb +0 -696
- data/lib/groupdocs_signature_cloud/models/pdf_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pdf_verify_digital_options_data.rb +0 -315
- data/lib/groupdocs_signature_cloud/models/pdf_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pdf_verify_text_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/requests/get_document_info_from_url_request.rb +0 -55
- data/lib/groupdocs_signature_cloud/models/requests/get_document_info_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_digital_from_url_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_digital_request.rb +0 -71
- data/lib/groupdocs_signature_cloud/models/requests/post_image_from_url_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_image_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_digital_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_digital_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_stamp_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_stamp_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_text_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_text_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_digital_from_url_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_digital_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_text_from_url_request.rb +0 -57
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_text_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/search_options_collection_data.rb +0 -232
- data/lib/groupdocs_signature_cloud/models/search_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/sign_options_data.rb +0 -255
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/sign_text_options_data.rb +0 -562
- data/lib/groupdocs_signature_cloud/models/slides_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/slides_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/slides_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/slides_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/slides_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/slides_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/slides_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/slides_sign_text_options_data.rb +0 -670
- data/lib/groupdocs_signature_cloud/models/slides_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/slides_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/slides_verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/verified_document_response.rb +0 -300
- data/lib/groupdocs_signature_cloud/models/verify_digital_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/verify_options_collection_data.rb +0 -247
- data/lib/groupdocs_signature_cloud/models/verify_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/words_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/words_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/words_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/words_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/words_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/words_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/words_sign_digital_options_data.rb +0 -516
- data/lib/groupdocs_signature_cloud/models/words_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/words_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/words_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/words_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/words_verify_digital_options_data.rb +0 -315
- data/lib/groupdocs_signature_cloud/models/words_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/words_verify_text_options_data.rb +0 -285
@@ -1,622 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="cells_sign_stamp_options_data.rb">
|
4
|
-
# Copyright (c) 2003-2018 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
|
-
# Represents the Stamp Signature Options for Cells Documents.
|
32
|
-
class CellsSignStampOptionsData
|
33
|
-
|
34
|
-
# Gets or sets worksheet number for signing. Minimal value is 1.
|
35
|
-
attr_accessor :document_page_number
|
36
|
-
|
37
|
-
# Page Options to specify pages to be verified.
|
38
|
-
attr_accessor :pages_setup
|
39
|
-
|
40
|
-
# Internal property that specify the name of Options.
|
41
|
-
attr_accessor :options_type
|
42
|
-
|
43
|
-
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified.
|
44
|
-
attr_accessor :image_guid
|
45
|
-
|
46
|
-
# Gets or sets the position of the left edge of the Signature area in pixels. This property is mutually exclusive with Column property. If Left property is set ColumnNumber will be reset to 0.
|
47
|
-
attr_accessor :left
|
48
|
-
|
49
|
-
# Gets or sets the position of the top edge of the Signature area in pixels. This property is mutually exclusive with Row property. If Top property is set RowNumber will be reset to 0.
|
50
|
-
attr_accessor :top
|
51
|
-
|
52
|
-
# Width of Signature on Document Page in Measure values (pixels or percent see SizeMeasureType).
|
53
|
-
attr_accessor :width
|
54
|
-
|
55
|
-
# Height of Signature on Document Page in Measure values (pixels or percent see SizeMeasureType).
|
56
|
-
attr_accessor :height
|
57
|
-
|
58
|
-
# Measure type (pixels or percent) for Left and Top properties.
|
59
|
-
attr_accessor :location_measure_type
|
60
|
-
|
61
|
-
# Measure type (pixels or percent) for Width and Height properties.
|
62
|
-
attr_accessor :size_measure_type
|
63
|
-
|
64
|
-
# Rotation angle of signature on document page (clockwise).
|
65
|
-
attr_accessor :rotation_angle
|
66
|
-
|
67
|
-
# Horizontal alignment of signature on document page.
|
68
|
-
attr_accessor :horizontal_alignment
|
69
|
-
|
70
|
-
# Vertical alignment of signature on document page.
|
71
|
-
attr_accessor :vertical_alignment
|
72
|
-
|
73
|
-
# Gets or sets the space between Sign and worksheet edges. (works ONLY if horizontal or vertical alignment are specified).
|
74
|
-
attr_accessor :margin
|
75
|
-
|
76
|
-
# Gets or sets the measure type (pixels or percent) for Margin.
|
77
|
-
attr_accessor :margin_measure_type
|
78
|
-
|
79
|
-
# Gets or sets the additional opacity for sign image (value from 0.0 (clear) through 1.0 (opaque)). By default the value is 1.0.
|
80
|
-
attr_accessor :opacity
|
81
|
-
|
82
|
-
# Put signature on all document pages.
|
83
|
-
attr_accessor :sign_all_pages
|
84
|
-
|
85
|
-
# List of Outer Lines rendered as concentric circles.
|
86
|
-
attr_accessor :outer_lines
|
87
|
-
|
88
|
-
# List of Inner Lines rendered as set of rectangles.
|
89
|
-
attr_accessor :inner_lines
|
90
|
-
|
91
|
-
# Gets or sets the background color of signature.
|
92
|
-
attr_accessor :background_color
|
93
|
-
|
94
|
-
# Gets or sets the signature background brush. Value by default is null. When property has a value it is used instead BackgroundBrush property.
|
95
|
-
attr_accessor :background_brush
|
96
|
-
|
97
|
-
# Gets or sets the background color crop type of signature.
|
98
|
-
attr_accessor :background_color_crop_type
|
99
|
-
|
100
|
-
# Gets or sets the background image crop type of signature.
|
101
|
-
attr_accessor :background_image_crop_type
|
102
|
-
|
103
|
-
# Gets or sets worksheet number for signing. DocumentPageNumber parameter contains the same value.
|
104
|
-
attr_accessor :sheet_number
|
105
|
-
|
106
|
-
# Gets or sets the top row number of signature (min value is 0). Top parameter contains the same value.
|
107
|
-
attr_accessor :row_number
|
108
|
-
|
109
|
-
# Gets or sets the left column number of signature (min value is 0). Left parameter contains the same value.
|
110
|
-
attr_accessor :column_number
|
111
|
-
class EnumAttributeValidator
|
112
|
-
attr_reader :datatype
|
113
|
-
attr_reader :allowable_values
|
114
|
-
|
115
|
-
def initialize(datatype, allowable_values)
|
116
|
-
@allowable_values = allowable_values.map do |value|
|
117
|
-
case datatype.to_s
|
118
|
-
when /Integer/i
|
119
|
-
value.to_i
|
120
|
-
when /Float/i
|
121
|
-
value.to_f
|
122
|
-
else
|
123
|
-
value
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
def valid?(value)
|
129
|
-
!value || allowable_values.include?(value)
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
134
|
-
def self.attribute_map
|
135
|
-
{
|
136
|
-
:'document_page_number' => :'DocumentPageNumber',
|
137
|
-
:'pages_setup' => :'PagesSetup',
|
138
|
-
:'options_type' => :'OptionsType',
|
139
|
-
:'image_guid' => :'ImageGuid',
|
140
|
-
:'left' => :'Left',
|
141
|
-
:'top' => :'Top',
|
142
|
-
:'width' => :'Width',
|
143
|
-
:'height' => :'Height',
|
144
|
-
:'location_measure_type' => :'LocationMeasureType',
|
145
|
-
:'size_measure_type' => :'SizeMeasureType',
|
146
|
-
:'rotation_angle' => :'RotationAngle',
|
147
|
-
:'horizontal_alignment' => :'HorizontalAlignment',
|
148
|
-
:'vertical_alignment' => :'VerticalAlignment',
|
149
|
-
:'margin' => :'Margin',
|
150
|
-
:'margin_measure_type' => :'MarginMeasureType',
|
151
|
-
:'opacity' => :'Opacity',
|
152
|
-
:'sign_all_pages' => :'SignAllPages',
|
153
|
-
:'outer_lines' => :'OuterLines',
|
154
|
-
:'inner_lines' => :'InnerLines',
|
155
|
-
:'background_color' => :'BackgroundColor',
|
156
|
-
:'background_brush' => :'BackgroundBrush',
|
157
|
-
:'background_color_crop_type' => :'BackgroundColorCropType',
|
158
|
-
:'background_image_crop_type' => :'BackgroundImageCropType',
|
159
|
-
:'sheet_number' => :'SheetNumber',
|
160
|
-
:'row_number' => :'RowNumber',
|
161
|
-
:'column_number' => :'ColumnNumber'
|
162
|
-
}
|
163
|
-
end
|
164
|
-
|
165
|
-
# Attribute type mapping.
|
166
|
-
def self.swagger_types
|
167
|
-
{
|
168
|
-
:'document_page_number' => :'Integer',
|
169
|
-
:'pages_setup' => :'PagesSetupData',
|
170
|
-
:'options_type' => :'String',
|
171
|
-
:'image_guid' => :'String',
|
172
|
-
:'left' => :'Integer',
|
173
|
-
:'top' => :'Integer',
|
174
|
-
:'width' => :'Integer',
|
175
|
-
:'height' => :'Integer',
|
176
|
-
:'location_measure_type' => :'String',
|
177
|
-
:'size_measure_type' => :'String',
|
178
|
-
:'rotation_angle' => :'Integer',
|
179
|
-
:'horizontal_alignment' => :'String',
|
180
|
-
:'vertical_alignment' => :'String',
|
181
|
-
:'margin' => :'PaddingData',
|
182
|
-
:'margin_measure_type' => :'String',
|
183
|
-
:'opacity' => :'Float',
|
184
|
-
:'sign_all_pages' => :'BOOLEAN',
|
185
|
-
:'outer_lines' => :'Array<StampLineData>',
|
186
|
-
:'inner_lines' => :'Array<StampLineData>',
|
187
|
-
:'background_color' => :'Color',
|
188
|
-
:'background_brush' => :'BrushData',
|
189
|
-
:'background_color_crop_type' => :'String',
|
190
|
-
:'background_image_crop_type' => :'String',
|
191
|
-
:'sheet_number' => :'Integer',
|
192
|
-
:'row_number' => :'Integer',
|
193
|
-
:'column_number' => :'Integer'
|
194
|
-
}
|
195
|
-
end
|
196
|
-
|
197
|
-
# Initializes the object
|
198
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
-
def initialize(attributes = {})
|
200
|
-
return unless attributes.is_a?(Hash)
|
201
|
-
|
202
|
-
# convert string to symbol for hash key
|
203
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
204
|
-
|
205
|
-
if attributes.key?(:'DocumentPageNumber')
|
206
|
-
self.document_page_number = attributes[:'DocumentPageNumber']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.key?(:'PagesSetup')
|
210
|
-
self.pages_setup = attributes[:'PagesSetup']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.key?(:'OptionsType')
|
214
|
-
self.options_type = attributes[:'OptionsType']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.key?(:'ImageGuid')
|
218
|
-
self.image_guid = attributes[:'ImageGuid']
|
219
|
-
end
|
220
|
-
|
221
|
-
if attributes.key?(:'Left')
|
222
|
-
self.left = attributes[:'Left']
|
223
|
-
end
|
224
|
-
|
225
|
-
if attributes.key?(:'Top')
|
226
|
-
self.top = attributes[:'Top']
|
227
|
-
end
|
228
|
-
|
229
|
-
if attributes.key?(:'Width')
|
230
|
-
self.width = attributes[:'Width']
|
231
|
-
end
|
232
|
-
|
233
|
-
if attributes.key?(:'Height')
|
234
|
-
self.height = attributes[:'Height']
|
235
|
-
end
|
236
|
-
|
237
|
-
if attributes.key?(:'LocationMeasureType')
|
238
|
-
self.location_measure_type = attributes[:'LocationMeasureType']
|
239
|
-
end
|
240
|
-
|
241
|
-
if attributes.key?(:'SizeMeasureType')
|
242
|
-
self.size_measure_type = attributes[:'SizeMeasureType']
|
243
|
-
end
|
244
|
-
|
245
|
-
if attributes.key?(:'RotationAngle')
|
246
|
-
self.rotation_angle = attributes[:'RotationAngle']
|
247
|
-
end
|
248
|
-
|
249
|
-
if attributes.key?(:'HorizontalAlignment')
|
250
|
-
self.horizontal_alignment = attributes[:'HorizontalAlignment']
|
251
|
-
end
|
252
|
-
|
253
|
-
if attributes.key?(:'VerticalAlignment')
|
254
|
-
self.vertical_alignment = attributes[:'VerticalAlignment']
|
255
|
-
end
|
256
|
-
|
257
|
-
if attributes.key?(:'Margin')
|
258
|
-
self.margin = attributes[:'Margin']
|
259
|
-
end
|
260
|
-
|
261
|
-
if attributes.key?(:'MarginMeasureType')
|
262
|
-
self.margin_measure_type = attributes[:'MarginMeasureType']
|
263
|
-
end
|
264
|
-
|
265
|
-
if attributes.key?(:'Opacity')
|
266
|
-
self.opacity = attributes[:'Opacity']
|
267
|
-
end
|
268
|
-
|
269
|
-
if attributes.key?(:'SignAllPages')
|
270
|
-
self.sign_all_pages = attributes[:'SignAllPages']
|
271
|
-
end
|
272
|
-
|
273
|
-
if attributes.key?(:'OuterLines')
|
274
|
-
if (value = attributes[:'OuterLines']).is_a?(Array)
|
275
|
-
self.outer_lines = value
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
if attributes.key?(:'InnerLines')
|
280
|
-
if (value = attributes[:'InnerLines']).is_a?(Array)
|
281
|
-
self.inner_lines = value
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
if attributes.key?(:'BackgroundColor')
|
286
|
-
self.background_color = attributes[:'BackgroundColor']
|
287
|
-
end
|
288
|
-
|
289
|
-
if attributes.key?(:'BackgroundBrush')
|
290
|
-
self.background_brush = attributes[:'BackgroundBrush']
|
291
|
-
end
|
292
|
-
|
293
|
-
if attributes.key?(:'BackgroundColorCropType')
|
294
|
-
self.background_color_crop_type = attributes[:'BackgroundColorCropType']
|
295
|
-
end
|
296
|
-
|
297
|
-
if attributes.key?(:'BackgroundImageCropType')
|
298
|
-
self.background_image_crop_type = attributes[:'BackgroundImageCropType']
|
299
|
-
end
|
300
|
-
|
301
|
-
if attributes.key?(:'SheetNumber')
|
302
|
-
self.sheet_number = attributes[:'SheetNumber']
|
303
|
-
end
|
304
|
-
|
305
|
-
if attributes.key?(:'RowNumber')
|
306
|
-
self.row_number = attributes[:'RowNumber']
|
307
|
-
end
|
308
|
-
|
309
|
-
if attributes.key?(:'ColumnNumber')
|
310
|
-
self.column_number = attributes[:'ColumnNumber']
|
311
|
-
end
|
312
|
-
|
313
|
-
|
314
|
-
if !((defined? options_type) == nil)
|
315
|
-
self.options_type = "CellsSignStampOptionsData"
|
316
|
-
end
|
317
|
-
|
318
|
-
end
|
319
|
-
|
320
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
321
|
-
# @return Array for valid properies with the reasons
|
322
|
-
def list_invalid_properties
|
323
|
-
invalid_properties = []
|
324
|
-
if @document_page_number.nil?
|
325
|
-
invalid_properties.push("invalid value for 'document_page_number', document_page_number cannot be nil.")
|
326
|
-
end
|
327
|
-
|
328
|
-
return invalid_properties
|
329
|
-
end
|
330
|
-
|
331
|
-
# Check to see if the all the properties in the model are valid
|
332
|
-
# @return true if the model is valid
|
333
|
-
def valid?
|
334
|
-
return false if @document_page_number.nil?
|
335
|
-
location_measure_type_validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
336
|
-
return false unless location_measure_type_validator.valid?(@location_measure_type)
|
337
|
-
size_measure_type_validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
338
|
-
return false unless size_measure_type_validator.valid?(@size_measure_type)
|
339
|
-
horizontal_alignment_validator = EnumAttributeValidator.new('String', ["Default", "None", "Left", "Center", "Right"])
|
340
|
-
return false unless horizontal_alignment_validator.valid?(@horizontal_alignment)
|
341
|
-
vertical_alignment_validator = EnumAttributeValidator.new('String', ["Default", "None", "Top", "Center", "Bottom"])
|
342
|
-
return false unless vertical_alignment_validator.valid?(@vertical_alignment)
|
343
|
-
margin_measure_type_validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
344
|
-
return false unless margin_measure_type_validator.valid?(@margin_measure_type)
|
345
|
-
background_color_crop_type_validator = EnumAttributeValidator.new('String', ["None", "OuterArea", "MiddleArea", "InnerArea"])
|
346
|
-
return false unless background_color_crop_type_validator.valid?(@background_color_crop_type)
|
347
|
-
background_image_crop_type_validator = EnumAttributeValidator.new('String', ["None", "OuterArea", "MiddleArea", "InnerArea"])
|
348
|
-
return false unless background_image_crop_type_validator.valid?(@background_image_crop_type)
|
349
|
-
return true
|
350
|
-
end
|
351
|
-
|
352
|
-
# Custom attribute writer method checking allowed values (enum).
|
353
|
-
# @param [Object] location_measure_type Object to be assigned
|
354
|
-
def location_measure_type=(location_measure_type)
|
355
|
-
validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
356
|
-
if location_measure_type.to_i == 0
|
357
|
-
unless validator.valid?(location_measure_type)
|
358
|
-
raise ArgumentError, "invalid value for 'location_measure_type', must be one of #{validator.allowable_values}."
|
359
|
-
end
|
360
|
-
@location_measure_type = location_measure_type
|
361
|
-
else
|
362
|
-
@location_measure_type = validator.allowable_values[location_measure_type.to_i]
|
363
|
-
end
|
364
|
-
end
|
365
|
-
|
366
|
-
# Custom attribute writer method checking allowed values (enum).
|
367
|
-
# @param [Object] size_measure_type Object to be assigned
|
368
|
-
def size_measure_type=(size_measure_type)
|
369
|
-
validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
370
|
-
if size_measure_type.to_i == 0
|
371
|
-
unless validator.valid?(size_measure_type)
|
372
|
-
raise ArgumentError, "invalid value for 'size_measure_type', must be one of #{validator.allowable_values}."
|
373
|
-
end
|
374
|
-
@size_measure_type = size_measure_type
|
375
|
-
else
|
376
|
-
@size_measure_type = validator.allowable_values[size_measure_type.to_i]
|
377
|
-
end
|
378
|
-
end
|
379
|
-
|
380
|
-
# Custom attribute writer method checking allowed values (enum).
|
381
|
-
# @param [Object] horizontal_alignment Object to be assigned
|
382
|
-
def horizontal_alignment=(horizontal_alignment)
|
383
|
-
validator = EnumAttributeValidator.new('String', ["Default", "None", "Left", "Center", "Right"])
|
384
|
-
if horizontal_alignment.to_i == 0
|
385
|
-
unless validator.valid?(horizontal_alignment)
|
386
|
-
raise ArgumentError, "invalid value for 'horizontal_alignment', must be one of #{validator.allowable_values}."
|
387
|
-
end
|
388
|
-
@horizontal_alignment = horizontal_alignment
|
389
|
-
else
|
390
|
-
@horizontal_alignment = validator.allowable_values[horizontal_alignment.to_i]
|
391
|
-
end
|
392
|
-
end
|
393
|
-
|
394
|
-
# Custom attribute writer method checking allowed values (enum).
|
395
|
-
# @param [Object] vertical_alignment Object to be assigned
|
396
|
-
def vertical_alignment=(vertical_alignment)
|
397
|
-
validator = EnumAttributeValidator.new('String', ["Default", "None", "Top", "Center", "Bottom"])
|
398
|
-
if vertical_alignment.to_i == 0
|
399
|
-
unless validator.valid?(vertical_alignment)
|
400
|
-
raise ArgumentError, "invalid value for 'vertical_alignment', must be one of #{validator.allowable_values}."
|
401
|
-
end
|
402
|
-
@vertical_alignment = vertical_alignment
|
403
|
-
else
|
404
|
-
@vertical_alignment = validator.allowable_values[vertical_alignment.to_i]
|
405
|
-
end
|
406
|
-
end
|
407
|
-
|
408
|
-
# Custom attribute writer method checking allowed values (enum).
|
409
|
-
# @param [Object] margin_measure_type Object to be assigned
|
410
|
-
def margin_measure_type=(margin_measure_type)
|
411
|
-
validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
412
|
-
if margin_measure_type.to_i == 0
|
413
|
-
unless validator.valid?(margin_measure_type)
|
414
|
-
raise ArgumentError, "invalid value for 'margin_measure_type', must be one of #{validator.allowable_values}."
|
415
|
-
end
|
416
|
-
@margin_measure_type = margin_measure_type
|
417
|
-
else
|
418
|
-
@margin_measure_type = validator.allowable_values[margin_measure_type.to_i]
|
419
|
-
end
|
420
|
-
end
|
421
|
-
|
422
|
-
# Custom attribute writer method checking allowed values (enum).
|
423
|
-
# @param [Object] background_color_crop_type Object to be assigned
|
424
|
-
def background_color_crop_type=(background_color_crop_type)
|
425
|
-
validator = EnumAttributeValidator.new('String', ["None", "OuterArea", "MiddleArea", "InnerArea"])
|
426
|
-
if background_color_crop_type.to_i == 0
|
427
|
-
unless validator.valid?(background_color_crop_type)
|
428
|
-
raise ArgumentError, "invalid value for 'background_color_crop_type', must be one of #{validator.allowable_values}."
|
429
|
-
end
|
430
|
-
@background_color_crop_type = background_color_crop_type
|
431
|
-
else
|
432
|
-
@background_color_crop_type = validator.allowable_values[background_color_crop_type.to_i]
|
433
|
-
end
|
434
|
-
end
|
435
|
-
|
436
|
-
# Custom attribute writer method checking allowed values (enum).
|
437
|
-
# @param [Object] background_image_crop_type Object to be assigned
|
438
|
-
def background_image_crop_type=(background_image_crop_type)
|
439
|
-
validator = EnumAttributeValidator.new('String', ["None", "OuterArea", "MiddleArea", "InnerArea"])
|
440
|
-
if background_image_crop_type.to_i == 0
|
441
|
-
unless validator.valid?(background_image_crop_type)
|
442
|
-
raise ArgumentError, "invalid value for 'background_image_crop_type', must be one of #{validator.allowable_values}."
|
443
|
-
end
|
444
|
-
@background_image_crop_type = background_image_crop_type
|
445
|
-
else
|
446
|
-
@background_image_crop_type = validator.allowable_values[background_image_crop_type.to_i]
|
447
|
-
end
|
448
|
-
end
|
449
|
-
|
450
|
-
# Checks equality by comparing each attribute.
|
451
|
-
# @param [Object] Object to be compared
|
452
|
-
def ==(other)
|
453
|
-
return true if self.equal?(other)
|
454
|
-
self.class == other.class &&
|
455
|
-
document_page_number == other.document_page_number &&
|
456
|
-
pages_setup == other.pages_setup &&
|
457
|
-
options_type == other.options_type &&
|
458
|
-
image_guid == other.image_guid &&
|
459
|
-
left == other.left &&
|
460
|
-
top == other.top &&
|
461
|
-
width == other.width &&
|
462
|
-
height == other.height &&
|
463
|
-
location_measure_type == other.location_measure_type &&
|
464
|
-
size_measure_type == other.size_measure_type &&
|
465
|
-
rotation_angle == other.rotation_angle &&
|
466
|
-
horizontal_alignment == other.horizontal_alignment &&
|
467
|
-
vertical_alignment == other.vertical_alignment &&
|
468
|
-
margin == other.margin &&
|
469
|
-
margin_measure_type == other.margin_measure_type &&
|
470
|
-
opacity == other.opacity &&
|
471
|
-
sign_all_pages == other.sign_all_pages &&
|
472
|
-
outer_lines == other.outer_lines &&
|
473
|
-
inner_lines == other.inner_lines &&
|
474
|
-
background_color == other.background_color &&
|
475
|
-
background_brush == other.background_brush &&
|
476
|
-
background_color_crop_type == other.background_color_crop_type &&
|
477
|
-
background_image_crop_type == other.background_image_crop_type &&
|
478
|
-
sheet_number == other.sheet_number &&
|
479
|
-
row_number == other.row_number &&
|
480
|
-
column_number == other.column_number
|
481
|
-
end
|
482
|
-
|
483
|
-
# @see the `==` method
|
484
|
-
# @param [Object] Object to be compared
|
485
|
-
def eql?(other)
|
486
|
-
self == other
|
487
|
-
end
|
488
|
-
|
489
|
-
# Calculates hash code according to all attributes.
|
490
|
-
# @return [Fixnum] Hash code
|
491
|
-
def hash
|
492
|
-
[document_page_number, pages_setup, options_type, image_guid, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, opacity, sign_all_pages, outer_lines, inner_lines, background_color, background_brush, background_color_crop_type, background_image_crop_type, sheet_number, row_number, column_number].hash
|
493
|
-
end
|
494
|
-
|
495
|
-
# Builds the object from hash
|
496
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
497
|
-
# @return [Object] Returns the model itself
|
498
|
-
def build_from_hash(attributes)
|
499
|
-
return nil unless attributes.is_a?(Hash)
|
500
|
-
self.class.swagger_types.each_pair do |key, type|
|
501
|
-
|
502
|
-
attributeName = self.class.attribute_map[key]
|
503
|
-
attributeNameLowerStr = attributeName.to_s
|
504
|
-
attributeNameLowerStr[0] = attributeNameLowerStr[0].downcase
|
505
|
-
attributeNameLower = attributeNameLowerStr.to_sym
|
506
|
-
attributeNameLowerStr2 = attributeName.to_s
|
507
|
-
attributeNameLowerStr2[0] = attributeNameLowerStr[0].downcase
|
508
|
-
attributeNameLowerStr2[1] = attributeNameLowerStr[1].downcase
|
509
|
-
attributeNameLower2 = attributeNameLowerStr2.to_sym
|
510
|
-
|
511
|
-
if type =~ /\AArray<(.*)>/i
|
512
|
-
# check to ensure the input is an array given that the the attribute
|
513
|
-
# is documented as an array but the input is not
|
514
|
-
if attributes[attributeName].is_a?(Array)
|
515
|
-
self.send("#{key}=", attributes[attributeName].map { |v| _deserialize($1, v) })
|
516
|
-
end
|
517
|
-
if attributes[attributeNameLower].is_a?(Array)
|
518
|
-
self.send("#{key}=", attributes[attributeNameLower].map { |v| _deserialize($1, v) })
|
519
|
-
end
|
520
|
-
if attributes[attributeNameLower2].is_a?(Array)
|
521
|
-
self.send("#{key}=", attributes[attributeNameLower2].map { |v| _deserialize($1, v) })
|
522
|
-
end
|
523
|
-
elsif !attributes[attributeName].nil?
|
524
|
-
self.send("#{key}=", _deserialize(type, attributes[attributeName]))
|
525
|
-
elsif !attributes[attributeNameLower].nil?
|
526
|
-
self.send("#{key}=", _deserialize(type, attributes[attributeNameLower]))
|
527
|
-
elsif !attributes[attributeNameLower2].nil?
|
528
|
-
self.send("#{key}=", _deserialize(type, attributes[attributeNameLower2]))
|
529
|
-
end
|
530
|
-
# or else data not found in attributes(hash), not an issue as the data can be optional
|
531
|
-
end
|
532
|
-
self
|
533
|
-
end
|
534
|
-
|
535
|
-
# Deserializes the data based on type
|
536
|
-
# @param string type Data type
|
537
|
-
# @param string value Value to be deserialized
|
538
|
-
# @return [Object] Deserialized data
|
539
|
-
def _deserialize(type, value)
|
540
|
-
case type.to_sym
|
541
|
-
when :DateTime
|
542
|
-
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
543
|
-
when :Date
|
544
|
-
Time.at(/\d/.match(value)[0].to_f).to_date
|
545
|
-
when :String
|
546
|
-
value.to_s
|
547
|
-
when :Integer
|
548
|
-
value.to_i
|
549
|
-
when :Float
|
550
|
-
value.to_f
|
551
|
-
when :BOOLEAN
|
552
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
553
|
-
true
|
554
|
-
else
|
555
|
-
false
|
556
|
-
end
|
557
|
-
when :Object
|
558
|
-
# generic object (usually a Hash), return directly
|
559
|
-
value
|
560
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
561
|
-
inner_type = Regexp.last_match[:inner_type]
|
562
|
-
value.map { |v| _deserialize(inner_type, v) }
|
563
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
564
|
-
k_type = Regexp.last_match[:k_type]
|
565
|
-
v_type = Regexp.last_match[:v_type]
|
566
|
-
{}.tap do |hash|
|
567
|
-
value.each do |k, v|
|
568
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
569
|
-
end
|
570
|
-
end
|
571
|
-
else
|
572
|
-
# model
|
573
|
-
temp_model = GroupDocsSignatureCloud.const_get(type).new
|
574
|
-
temp_model.build_from_hash(value)
|
575
|
-
end
|
576
|
-
end
|
577
|
-
|
578
|
-
# Returns the string representation of the object
|
579
|
-
# @return [String] String presentation of the object
|
580
|
-
def to_s
|
581
|
-
to_hash.to_s
|
582
|
-
end
|
583
|
-
|
584
|
-
# to_body is an alias to to_hash (backward compatibility)
|
585
|
-
# @return [Hash] Returns the object in the form of hash
|
586
|
-
def to_body
|
587
|
-
to_hash
|
588
|
-
end
|
589
|
-
|
590
|
-
# Returns the object in the form of hash
|
591
|
-
# @return [Hash] Returns the object in the form of hash
|
592
|
-
def to_hash
|
593
|
-
hash = {}
|
594
|
-
self.class.attribute_map.each_pair do |attr, param|
|
595
|
-
value = self.send(attr)
|
596
|
-
next if value.nil?
|
597
|
-
hash[param] = _to_hash(value)
|
598
|
-
end
|
599
|
-
hash
|
600
|
-
end
|
601
|
-
|
602
|
-
# Outputs non-array value in the form of hash
|
603
|
-
# For object, use to_hash. Otherwise, just return the value
|
604
|
-
# @param [Object] value Any valid value
|
605
|
-
# @return [Hash] Returns the value in the form of hash
|
606
|
-
def _to_hash(value)
|
607
|
-
if value.is_a?(Array)
|
608
|
-
value.compact.map { |v| _to_hash(v) }
|
609
|
-
elsif value.is_a?(Hash)
|
610
|
-
{}.tap do |hash|
|
611
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
612
|
-
end
|
613
|
-
elsif value.respond_to? :to_hash
|
614
|
-
value.to_hash
|
615
|
-
else
|
616
|
-
value
|
617
|
-
end
|
618
|
-
end
|
619
|
-
|
620
|
-
end
|
621
|
-
|
622
|
-
end
|