dropbox-sign 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +15 -5
- data/VERSION +1 -1
- data/docs/AccountResponseQuotas.md +1 -1
- data/docs/FaxApi.md +364 -0
- data/docs/FaxGetResponse.md +11 -0
- data/docs/FaxListResponse.md +11 -0
- data/docs/FaxResponse.md +19 -0
- data/docs/FaxResponseTransmission.md +13 -0
- data/docs/FaxSendRequest.md +18 -0
- data/docs/OAuthTokenRefreshRequest.md +2 -0
- data/docs/SignatureRequestApi.md +1 -1
- data/docs/SubWhiteLabelingOptions.md +12 -12
- data/docs/TemplateApi.md +3 -3
- data/docs/TemplateResponse.md +2 -1
- data/docs/TemplateResponseDocumentFormFieldBase.md +0 -1
- data/docs/TemplateResponseDocumentFormFieldCheckbox.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldDateSigned.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldDropdown.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldHyperlink.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldInitials.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldRadio.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldSignature.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldText.md +1 -0
- data/examples/FaxDelete.rb +14 -0
- data/examples/FaxFiles.rb +17 -0
- data/examples/FaxGet.rb +17 -0
- data/examples/FaxList.rb +18 -0
- data/examples/FaxSend.rb +25 -0
- data/lib/dropbox-sign/api/fax_api.rb +495 -0
- data/lib/dropbox-sign/api/o_auth_api.rb +28 -0
- data/lib/dropbox-sign/api/signature_request_api.rb +2 -2
- data/lib/dropbox-sign/api/template_api.rb +2 -2
- data/lib/dropbox-sign/models/account_response_quotas.rb +1 -1
- data/lib/dropbox-sign/models/api_app_response_o_auth.rb +2 -1
- data/lib/dropbox-sign/models/fax_get_response.rb +263 -0
- data/lib/dropbox-sign/models/fax_list_response.rb +267 -0
- data/lib/dropbox-sign/models/fax_response.rb +399 -0
- data/lib/dropbox-sign/models/fax_response_transmission.rb +328 -0
- data/lib/dropbox-sign/models/fax_send_request.rb +345 -0
- data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +26 -4
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +12 -12
- data/lib/dropbox-sign/models/template_response.rb +22 -13
- data/lib/dropbox-sign/models/template_response_document.rb +1 -2
- data/lib/dropbox-sign/models/template_response_document_form_field_base.rb +4 -16
- data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +20 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_text.rb +17 -5
- data/lib/dropbox-sign/version.rb +1 -1
- data/lib/dropbox-sign.rb +6 -0
- data/openapi-config.yaml +1 -1
- data/openapi-sdk.yaml +821 -112
- data/run-build +9 -0
- data/test_fixtures/ApiAppCreateRequest.json +10 -10
- data/test_fixtures/ApiAppGetResponse.json +18 -3
- data/test_fixtures/ApiAppListResponse.json +7 -1
- data/test_fixtures/ApiAppUpdateRequest.json +11 -11
- data/test_fixtures/FaxGetResponse.json +23 -0
- data/test_fixtures/FaxListResponse.json +31 -0
- data/test_fixtures/FaxSendRequest.json +14 -0
- data/test_fixtures/FaxSendResponse.json +16 -0
- data/test_fixtures/TeamGetResponse.json +5 -0
- data/test_fixtures/TemplateGetResponse.json +25 -478
- data/test_fixtures/TemplateListResponse.json +34 -5
- metadata +29 -8
@@ -26,11 +26,21 @@ module Dropbox::Sign
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :refresh_token
|
28
28
|
|
29
|
+
# The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled.
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :client_id
|
32
|
+
|
33
|
+
# The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled.
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :client_secret
|
36
|
+
|
29
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
38
|
def self.attribute_map
|
31
39
|
{
|
32
40
|
:'grant_type' => :'grant_type',
|
33
|
-
:'refresh_token' => :'refresh_token'
|
41
|
+
:'refresh_token' => :'refresh_token',
|
42
|
+
:'client_id' => :'client_id',
|
43
|
+
:'client_secret' => :'client_secret'
|
34
44
|
}
|
35
45
|
end
|
36
46
|
|
@@ -43,7 +53,9 @@ module Dropbox::Sign
|
|
43
53
|
def self.openapi_types
|
44
54
|
{
|
45
55
|
:'grant_type' => :'String',
|
46
|
-
:'refresh_token' => :'String'
|
56
|
+
:'refresh_token' => :'String',
|
57
|
+
:'client_id' => :'String',
|
58
|
+
:'client_secret' => :'String'
|
47
59
|
}
|
48
60
|
end
|
49
61
|
|
@@ -102,6 +114,14 @@ module Dropbox::Sign
|
|
102
114
|
if attributes.key?(:'refresh_token')
|
103
115
|
self.refresh_token = attributes[:'refresh_token']
|
104
116
|
end
|
117
|
+
|
118
|
+
if attributes.key?(:'client_id')
|
119
|
+
self.client_id = attributes[:'client_id']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'client_secret')
|
123
|
+
self.client_secret = attributes[:'client_secret']
|
124
|
+
end
|
105
125
|
end
|
106
126
|
|
107
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -133,7 +153,9 @@ module Dropbox::Sign
|
|
133
153
|
return true if self.equal?(o)
|
134
154
|
self.class == o.class &&
|
135
155
|
grant_type == o.grant_type &&
|
136
|
-
refresh_token == o.refresh_token
|
156
|
+
refresh_token == o.refresh_token &&
|
157
|
+
client_id == o.client_id &&
|
158
|
+
client_secret == o.client_secret
|
137
159
|
end
|
138
160
|
|
139
161
|
# @see the `==` method
|
@@ -145,7 +167,7 @@ module Dropbox::Sign
|
|
145
167
|
# Calculates hash code according to all attributes.
|
146
168
|
# @return [Integer] Hash code
|
147
169
|
def hash
|
148
|
-
[grant_type, refresh_token].hash
|
170
|
+
[grant_type, refresh_token, client_id, client_secret].hash
|
149
171
|
end
|
150
172
|
|
151
173
|
# Builds the object from hash
|
@@ -183,7 +183,7 @@ module Dropbox::Sign
|
|
183
183
|
if attributes.key?(:'header_background_color')
|
184
184
|
self.header_background_color = attributes[:'header_background_color']
|
185
185
|
else
|
186
|
-
self.header_background_color = '#
|
186
|
+
self.header_background_color = '#1a1a1a'
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'legal_version')
|
@@ -195,61 +195,61 @@ module Dropbox::Sign
|
|
195
195
|
if attributes.key?(:'link_color')
|
196
196
|
self.link_color = attributes[:'link_color']
|
197
197
|
else
|
198
|
-
self.link_color = '#
|
198
|
+
self.link_color = '#0061FE'
|
199
199
|
end
|
200
200
|
|
201
201
|
if attributes.key?(:'page_background_color')
|
202
202
|
self.page_background_color = attributes[:'page_background_color']
|
203
203
|
else
|
204
|
-
self.page_background_color = '#
|
204
|
+
self.page_background_color = '#f7f8f9'
|
205
205
|
end
|
206
206
|
|
207
207
|
if attributes.key?(:'primary_button_color')
|
208
208
|
self.primary_button_color = attributes[:'primary_button_color']
|
209
209
|
else
|
210
|
-
self.primary_button_color = '#
|
210
|
+
self.primary_button_color = '#0061FE'
|
211
211
|
end
|
212
212
|
|
213
213
|
if attributes.key?(:'primary_button_color_hover')
|
214
214
|
self.primary_button_color_hover = attributes[:'primary_button_color_hover']
|
215
215
|
else
|
216
|
-
self.primary_button_color_hover = '#
|
216
|
+
self.primary_button_color_hover = '#0061FE'
|
217
217
|
end
|
218
218
|
|
219
219
|
if attributes.key?(:'primary_button_text_color')
|
220
220
|
self.primary_button_text_color = attributes[:'primary_button_text_color']
|
221
221
|
else
|
222
|
-
self.primary_button_text_color = '#
|
222
|
+
self.primary_button_text_color = '#ffffff'
|
223
223
|
end
|
224
224
|
|
225
225
|
if attributes.key?(:'primary_button_text_color_hover')
|
226
226
|
self.primary_button_text_color_hover = attributes[:'primary_button_text_color_hover']
|
227
227
|
else
|
228
|
-
self.primary_button_text_color_hover = '#
|
228
|
+
self.primary_button_text_color_hover = '#ffffff'
|
229
229
|
end
|
230
230
|
|
231
231
|
if attributes.key?(:'secondary_button_color')
|
232
232
|
self.secondary_button_color = attributes[:'secondary_button_color']
|
233
233
|
else
|
234
|
-
self.secondary_button_color = '#
|
234
|
+
self.secondary_button_color = '#ffffff'
|
235
235
|
end
|
236
236
|
|
237
237
|
if attributes.key?(:'secondary_button_color_hover')
|
238
238
|
self.secondary_button_color_hover = attributes[:'secondary_button_color_hover']
|
239
239
|
else
|
240
|
-
self.secondary_button_color_hover = '#
|
240
|
+
self.secondary_button_color_hover = '#ffffff'
|
241
241
|
end
|
242
242
|
|
243
243
|
if attributes.key?(:'secondary_button_text_color')
|
244
244
|
self.secondary_button_text_color = attributes[:'secondary_button_text_color']
|
245
245
|
else
|
246
|
-
self.secondary_button_text_color = '#
|
246
|
+
self.secondary_button_text_color = '#0061FE'
|
247
247
|
end
|
248
248
|
|
249
249
|
if attributes.key?(:'secondary_button_text_color_hover')
|
250
250
|
self.secondary_button_text_color_hover = attributes[:'secondary_button_text_color_hover']
|
251
251
|
else
|
252
|
-
self.secondary_button_text_color_hover = '#
|
252
|
+
self.secondary_button_text_color_hover = '#0061FE'
|
253
253
|
end
|
254
254
|
|
255
255
|
if attributes.key?(:'text_color1')
|
@@ -261,7 +261,7 @@ module Dropbox::Sign
|
|
261
261
|
if attributes.key?(:'text_color2')
|
262
262
|
self.text_color2 = attributes[:'text_color2']
|
263
263
|
else
|
264
|
-
self.text_color2 = '#
|
264
|
+
self.text_color2 = '#ffffff'
|
265
265
|
end
|
266
266
|
|
267
267
|
if attributes.key?(:'reset_to_default')
|
@@ -35,20 +35,20 @@ module Dropbox::Sign
|
|
35
35
|
# @return [Integer]
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
|
-
# `true` if this template was created using an embedded flow, `false` if it was created on our website.
|
38
|
+
# `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template.
|
39
39
|
# @return [Boolean, nil]
|
40
40
|
attr_accessor :is_embedded
|
41
41
|
|
42
42
|
# `true` if you are the owner of this template, `false` if it's been shared with you by a team member.
|
43
|
-
# @return [Boolean
|
43
|
+
# @return [Boolean]
|
44
44
|
attr_accessor :is_creator
|
45
45
|
|
46
46
|
# Indicates whether edit rights have been granted to you by the owner (always `true` if that's you).
|
47
|
-
# @return [Boolean
|
47
|
+
# @return [Boolean]
|
48
48
|
attr_accessor :can_edit
|
49
49
|
|
50
50
|
# Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests.
|
51
|
-
# @return [Boolean
|
51
|
+
# @return [Boolean]
|
52
52
|
attr_accessor :is_locked
|
53
53
|
|
54
54
|
# The metadata attached to the template.
|
@@ -76,9 +76,13 @@ module Dropbox::Sign
|
|
76
76
|
attr_accessor :named_form_fields
|
77
77
|
|
78
78
|
# An array of the Accounts that can use this Template.
|
79
|
-
# @return [Array<TemplateResponseAccount
|
79
|
+
# @return [Array<TemplateResponseAccount>]
|
80
80
|
attr_accessor :accounts
|
81
81
|
|
82
|
+
# Signer attachments.
|
83
|
+
# @return [Array<SignatureRequestResponseAttachment>]
|
84
|
+
attr_accessor :attachments
|
85
|
+
|
82
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
87
|
def self.attribute_map
|
84
88
|
{
|
@@ -96,7 +100,8 @@ module Dropbox::Sign
|
|
96
100
|
:'documents' => :'documents',
|
97
101
|
:'custom_fields' => :'custom_fields',
|
98
102
|
:'named_form_fields' => :'named_form_fields',
|
99
|
-
:'accounts' => :'accounts'
|
103
|
+
:'accounts' => :'accounts',
|
104
|
+
:'attachments' => :'attachments'
|
100
105
|
}
|
101
106
|
end
|
102
107
|
|
@@ -122,7 +127,8 @@ module Dropbox::Sign
|
|
122
127
|
:'documents' => :'Array<TemplateResponseDocument>',
|
123
128
|
:'custom_fields' => :'Array<TemplateResponseDocumentCustomFieldBase>',
|
124
129
|
:'named_form_fields' => :'Array<TemplateResponseDocumentFormFieldBase>',
|
125
|
-
:'accounts' => :'Array<TemplateResponseAccount>'
|
130
|
+
:'accounts' => :'Array<TemplateResponseAccount>',
|
131
|
+
:'attachments' => :'Array<SignatureRequestResponseAttachment>'
|
126
132
|
}
|
127
133
|
end
|
128
134
|
|
@@ -130,12 +136,8 @@ module Dropbox::Sign
|
|
130
136
|
def self.openapi_nullable
|
131
137
|
Set.new([
|
132
138
|
:'is_embedded',
|
133
|
-
:'is_creator',
|
134
|
-
:'can_edit',
|
135
|
-
:'is_locked',
|
136
139
|
:'custom_fields',
|
137
140
|
:'named_form_fields',
|
138
|
-
:'accounts'
|
139
141
|
])
|
140
142
|
end
|
141
143
|
|
@@ -250,6 +252,12 @@ module Dropbox::Sign
|
|
250
252
|
self.accounts = value
|
251
253
|
end
|
252
254
|
end
|
255
|
+
|
256
|
+
if attributes.key?(:'attachments')
|
257
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
258
|
+
self.attachments = value
|
259
|
+
end
|
260
|
+
end
|
253
261
|
end
|
254
262
|
|
255
263
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -284,7 +292,8 @@ module Dropbox::Sign
|
|
284
292
|
documents == o.documents &&
|
285
293
|
custom_fields == o.custom_fields &&
|
286
294
|
named_form_fields == o.named_form_fields &&
|
287
|
-
accounts == o.accounts
|
295
|
+
accounts == o.accounts &&
|
296
|
+
attachments == o.attachments
|
288
297
|
end
|
289
298
|
|
290
299
|
# @see the `==` method
|
@@ -296,7 +305,7 @@ module Dropbox::Sign
|
|
296
305
|
# Calculates hash code according to all attributes.
|
297
306
|
# @return [Integer] Hash code
|
298
307
|
def hash
|
299
|
-
[template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts].hash
|
308
|
+
[template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts, attachments].hash
|
300
309
|
end
|
301
310
|
|
302
311
|
# Builds the object from hash
|
@@ -39,7 +39,7 @@ module Dropbox::Sign
|
|
39
39
|
attr_accessor :custom_fields
|
40
40
|
|
41
41
|
# An array describing static overlay fields. **NOTE:** Only available for certain subscriptions.
|
42
|
-
# @return [Array<TemplateResponseDocumentStaticFieldBase
|
42
|
+
# @return [Array<TemplateResponseDocumentStaticFieldBase>]
|
43
43
|
attr_accessor :static_fields
|
44
44
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -74,7 +74,6 @@ module Dropbox::Sign
|
|
74
74
|
# List of attributes with nullable: true
|
75
75
|
def self.openapi_nullable
|
76
76
|
Set.new([
|
77
|
-
:'static_fields'
|
78
77
|
])
|
79
78
|
end
|
80
79
|
|
@@ -54,10 +54,6 @@ module Dropbox::Sign
|
|
54
54
|
# @return [Boolean]
|
55
55
|
attr_accessor :required
|
56
56
|
|
57
|
-
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
58
|
-
# @return [String, nil]
|
59
|
-
attr_accessor :group
|
60
|
-
|
61
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
58
|
def self.attribute_map
|
63
59
|
{
|
@@ -69,8 +65,7 @@ module Dropbox::Sign
|
|
69
65
|
:'y' => :'y',
|
70
66
|
:'width' => :'width',
|
71
67
|
:'height' => :'height',
|
72
|
-
:'required' => :'required'
|
73
|
-
:'group' => :'group'
|
68
|
+
:'required' => :'required'
|
74
69
|
}
|
75
70
|
end
|
76
71
|
|
@@ -90,15 +85,13 @@ module Dropbox::Sign
|
|
90
85
|
:'y' => :'Integer',
|
91
86
|
:'width' => :'Integer',
|
92
87
|
:'height' => :'Integer',
|
93
|
-
:'required' => :'Boolean'
|
94
|
-
:'group' => :'String'
|
88
|
+
:'required' => :'Boolean'
|
95
89
|
}
|
96
90
|
end
|
97
91
|
|
98
92
|
# List of attributes with nullable: true
|
99
93
|
def self.openapi_nullable
|
100
94
|
Set.new([
|
101
|
-
:'group'
|
102
95
|
])
|
103
96
|
end
|
104
97
|
|
@@ -203,10 +196,6 @@ module Dropbox::Sign
|
|
203
196
|
if attributes.key?(:'required')
|
204
197
|
self.required = attributes[:'required']
|
205
198
|
end
|
206
|
-
|
207
|
-
if attributes.key?(:'group')
|
208
|
-
self.group = attributes[:'group']
|
209
|
-
end
|
210
199
|
end
|
211
200
|
|
212
201
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -240,8 +229,7 @@ module Dropbox::Sign
|
|
240
229
|
y == o.y &&
|
241
230
|
width == o.width &&
|
242
231
|
height == o.height &&
|
243
|
-
required == o.required
|
244
|
-
group == o.group
|
232
|
+
required == o.required
|
245
233
|
end
|
246
234
|
|
247
235
|
# @see the `==` method
|
@@ -253,7 +241,7 @@ module Dropbox::Sign
|
|
253
241
|
# Calculates hash code according to all attributes.
|
254
242
|
# @return [Integer] Hash code
|
255
243
|
def hash
|
256
|
-
[type, api_id, name, signer, x, y, width, height, required
|
244
|
+
[type, api_id, name, signer, x, y, width, height, required].hash
|
257
245
|
end
|
258
246
|
|
259
247
|
# Builds the object from hash
|
@@ -23,10 +23,15 @@ module Dropbox::Sign
|
|
23
23
|
# @return [String]
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
27
|
+
# @return [String, nil]
|
28
|
+
attr_accessor :group
|
29
|
+
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
28
32
|
{
|
29
|
-
:'type' => :'type'
|
33
|
+
:'type' => :'type',
|
34
|
+
:'group' => :'group'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -38,13 +43,15 @@ module Dropbox::Sign
|
|
38
43
|
# Attribute type mapping.
|
39
44
|
def self.openapi_types
|
40
45
|
{
|
41
|
-
:'type' => :'String'
|
46
|
+
:'type' => :'String',
|
47
|
+
:'group' => :'String'
|
42
48
|
}
|
43
49
|
end
|
44
50
|
|
45
51
|
# List of attributes with nullable: true
|
46
52
|
def self.openapi_nullable
|
47
53
|
Set.new([
|
54
|
+
:'group'
|
48
55
|
])
|
49
56
|
end
|
50
57
|
|
@@ -96,6 +103,10 @@ module Dropbox::Sign
|
|
96
103
|
else
|
97
104
|
self.type = 'checkbox'
|
98
105
|
end
|
106
|
+
|
107
|
+
if attributes.key?(:'group')
|
108
|
+
self.group = attributes[:'group']
|
109
|
+
end
|
99
110
|
end
|
100
111
|
|
101
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,7 +132,8 @@ module Dropbox::Sign
|
|
121
132
|
def ==(o)
|
122
133
|
return true if self.equal?(o)
|
123
134
|
self.class == o.class &&
|
124
|
-
type == o.type &&
|
135
|
+
type == o.type &&
|
136
|
+
group == o.group && super(o)
|
125
137
|
end
|
126
138
|
|
127
139
|
# @see the `==` method
|
@@ -133,7 +145,7 @@ module Dropbox::Sign
|
|
133
145
|
# Calculates hash code according to all attributes.
|
134
146
|
# @return [Integer] Hash code
|
135
147
|
def hash
|
136
|
-
[type].hash
|
148
|
+
[type, group].hash
|
137
149
|
end
|
138
150
|
|
139
151
|
# Builds the object from hash
|
@@ -23,10 +23,15 @@ module Dropbox::Sign
|
|
23
23
|
# @return [String]
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
27
|
+
# @return [String, nil]
|
28
|
+
attr_accessor :group
|
29
|
+
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
28
32
|
{
|
29
|
-
:'type' => :'type'
|
33
|
+
:'type' => :'type',
|
34
|
+
:'group' => :'group'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -38,13 +43,15 @@ module Dropbox::Sign
|
|
38
43
|
# Attribute type mapping.
|
39
44
|
def self.openapi_types
|
40
45
|
{
|
41
|
-
:'type' => :'String'
|
46
|
+
:'type' => :'String',
|
47
|
+
:'group' => :'String'
|
42
48
|
}
|
43
49
|
end
|
44
50
|
|
45
51
|
# List of attributes with nullable: true
|
46
52
|
def self.openapi_nullable
|
47
53
|
Set.new([
|
54
|
+
:'group'
|
48
55
|
])
|
49
56
|
end
|
50
57
|
|
@@ -96,6 +103,10 @@ module Dropbox::Sign
|
|
96
103
|
else
|
97
104
|
self.type = 'date_signed'
|
98
105
|
end
|
106
|
+
|
107
|
+
if attributes.key?(:'group')
|
108
|
+
self.group = attributes[:'group']
|
109
|
+
end
|
99
110
|
end
|
100
111
|
|
101
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,7 +132,8 @@ module Dropbox::Sign
|
|
121
132
|
def ==(o)
|
122
133
|
return true if self.equal?(o)
|
123
134
|
self.class == o.class &&
|
124
|
-
type == o.type &&
|
135
|
+
type == o.type &&
|
136
|
+
group == o.group && super(o)
|
125
137
|
end
|
126
138
|
|
127
139
|
# @see the `==` method
|
@@ -133,7 +145,7 @@ module Dropbox::Sign
|
|
133
145
|
# Calculates hash code according to all attributes.
|
134
146
|
# @return [Integer] Hash code
|
135
147
|
def hash
|
136
|
-
[type].hash
|
148
|
+
[type, group].hash
|
137
149
|
end
|
138
150
|
|
139
151
|
# Builds the object from hash
|
@@ -23,10 +23,15 @@ module Dropbox::Sign
|
|
23
23
|
# @return [String]
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
27
|
+
# @return [String, nil]
|
28
|
+
attr_accessor :group
|
29
|
+
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
28
32
|
{
|
29
|
-
:'type' => :'type'
|
33
|
+
:'type' => :'type',
|
34
|
+
:'group' => :'group'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -38,13 +43,15 @@ module Dropbox::Sign
|
|
38
43
|
# Attribute type mapping.
|
39
44
|
def self.openapi_types
|
40
45
|
{
|
41
|
-
:'type' => :'String'
|
46
|
+
:'type' => :'String',
|
47
|
+
:'group' => :'String'
|
42
48
|
}
|
43
49
|
end
|
44
50
|
|
45
51
|
# List of attributes with nullable: true
|
46
52
|
def self.openapi_nullable
|
47
53
|
Set.new([
|
54
|
+
:'group'
|
48
55
|
])
|
49
56
|
end
|
50
57
|
|
@@ -96,6 +103,10 @@ module Dropbox::Sign
|
|
96
103
|
else
|
97
104
|
self.type = 'dropdown'
|
98
105
|
end
|
106
|
+
|
107
|
+
if attributes.key?(:'group')
|
108
|
+
self.group = attributes[:'group']
|
109
|
+
end
|
99
110
|
end
|
100
111
|
|
101
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,7 +132,8 @@ module Dropbox::Sign
|
|
121
132
|
def ==(o)
|
122
133
|
return true if self.equal?(o)
|
123
134
|
self.class == o.class &&
|
124
|
-
type == o.type &&
|
135
|
+
type == o.type &&
|
136
|
+
group == o.group && super(o)
|
125
137
|
end
|
126
138
|
|
127
139
|
# @see the `==` method
|
@@ -133,7 +145,7 @@ module Dropbox::Sign
|
|
133
145
|
# Calculates hash code according to all attributes.
|
134
146
|
# @return [Integer] Hash code
|
135
147
|
def hash
|
136
|
-
[type].hash
|
148
|
+
[type, group].hash
|
137
149
|
end
|
138
150
|
|
139
151
|
# Builds the object from hash
|
@@ -38,6 +38,10 @@ module Dropbox::Sign
|
|
38
38
|
# @return [String]
|
39
39
|
attr_accessor :font_family
|
40
40
|
|
41
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
42
|
+
# @return [String, nil]
|
43
|
+
attr_accessor :group
|
44
|
+
|
41
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
46
|
def self.attribute_map
|
43
47
|
{
|
@@ -45,7 +49,8 @@ module Dropbox::Sign
|
|
45
49
|
:'avg_text_length' => :'avg_text_length',
|
46
50
|
:'is_multiline' => :'isMultiline',
|
47
51
|
:'original_font_size' => :'originalFontSize',
|
48
|
-
:'font_family' => :'fontFamily'
|
52
|
+
:'font_family' => :'fontFamily',
|
53
|
+
:'group' => :'group'
|
49
54
|
}
|
50
55
|
end
|
51
56
|
|
@@ -61,13 +66,15 @@ module Dropbox::Sign
|
|
61
66
|
:'avg_text_length' => :'TemplateResponseFieldAvgTextLength',
|
62
67
|
:'is_multiline' => :'Boolean',
|
63
68
|
:'original_font_size' => :'Integer',
|
64
|
-
:'font_family' => :'String'
|
69
|
+
:'font_family' => :'String',
|
70
|
+
:'group' => :'String'
|
65
71
|
}
|
66
72
|
end
|
67
73
|
|
68
74
|
# List of attributes with nullable: true
|
69
75
|
def self.openapi_nullable
|
70
76
|
Set.new([
|
77
|
+
:'group'
|
71
78
|
])
|
72
79
|
end
|
73
80
|
|
@@ -135,6 +142,10 @@ module Dropbox::Sign
|
|
135
142
|
if attributes.key?(:'font_family')
|
136
143
|
self.font_family = attributes[:'font_family']
|
137
144
|
end
|
145
|
+
|
146
|
+
if attributes.key?(:'group')
|
147
|
+
self.group = attributes[:'group']
|
148
|
+
end
|
138
149
|
end
|
139
150
|
|
140
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -164,7 +175,8 @@ module Dropbox::Sign
|
|
164
175
|
avg_text_length == o.avg_text_length &&
|
165
176
|
is_multiline == o.is_multiline &&
|
166
177
|
original_font_size == o.original_font_size &&
|
167
|
-
font_family == o.font_family &&
|
178
|
+
font_family == o.font_family &&
|
179
|
+
group == o.group && super(o)
|
168
180
|
end
|
169
181
|
|
170
182
|
# @see the `==` method
|
@@ -176,7 +188,7 @@ module Dropbox::Sign
|
|
176
188
|
# Calculates hash code according to all attributes.
|
177
189
|
# @return [Integer] Hash code
|
178
190
|
def hash
|
179
|
-
[type, avg_text_length, is_multiline, original_font_size, font_family].hash
|
191
|
+
[type, avg_text_length, is_multiline, original_font_size, font_family, group].hash
|
180
192
|
end
|
181
193
|
|
182
194
|
# Builds the object from hash
|
@@ -23,10 +23,15 @@ module Dropbox::Sign
|
|
23
23
|
# @return [String]
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
27
|
+
# @return [String, nil]
|
28
|
+
attr_accessor :group
|
29
|
+
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
28
32
|
{
|
29
|
-
:'type' => :'type'
|
33
|
+
:'type' => :'type',
|
34
|
+
:'group' => :'group'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -38,13 +43,15 @@ module Dropbox::Sign
|
|
38
43
|
# Attribute type mapping.
|
39
44
|
def self.openapi_types
|
40
45
|
{
|
41
|
-
:'type' => :'String'
|
46
|
+
:'type' => :'String',
|
47
|
+
:'group' => :'String'
|
42
48
|
}
|
43
49
|
end
|
44
50
|
|
45
51
|
# List of attributes with nullable: true
|
46
52
|
def self.openapi_nullable
|
47
53
|
Set.new([
|
54
|
+
:'group'
|
48
55
|
])
|
49
56
|
end
|
50
57
|
|
@@ -96,6 +103,10 @@ module Dropbox::Sign
|
|
96
103
|
else
|
97
104
|
self.type = 'initials'
|
98
105
|
end
|
106
|
+
|
107
|
+
if attributes.key?(:'group')
|
108
|
+
self.group = attributes[:'group']
|
109
|
+
end
|
99
110
|
end
|
100
111
|
|
101
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,7 +132,8 @@ module Dropbox::Sign
|
|
121
132
|
def ==(o)
|
122
133
|
return true if self.equal?(o)
|
123
134
|
self.class == o.class &&
|
124
|
-
type == o.type &&
|
135
|
+
type == o.type &&
|
136
|
+
group == o.group && super(o)
|
125
137
|
end
|
126
138
|
|
127
139
|
# @see the `==` method
|
@@ -133,7 +145,7 @@ module Dropbox::Sign
|
|
133
145
|
# Calculates hash code according to all attributes.
|
134
146
|
# @return [Integer] Hash code
|
135
147
|
def hash
|
136
|
-
[type].hash
|
148
|
+
[type, group].hash
|
137
149
|
end
|
138
150
|
|
139
151
|
# Builds the object from hash
|