dropbox-sign 1.6.1 → 1.8.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +15 -5
  4. data/VERSION +1 -1
  5. data/docs/AccountResponseQuotas.md +1 -1
  6. data/docs/BulkSendJobGetResponseSignatureRequests.md +1 -1
  7. data/docs/FaxApi.md +364 -0
  8. data/docs/FaxGetResponse.md +11 -0
  9. data/docs/FaxListResponse.md +11 -0
  10. data/docs/FaxResponse.md +20 -0
  11. data/docs/FaxResponseTransmission.md +12 -0
  12. data/docs/FaxSendRequest.md +18 -0
  13. data/docs/OAuthTokenRefreshRequest.md +2 -0
  14. data/docs/SignatureRequestApi.md +1 -1
  15. data/docs/SignatureRequestResponse.md +1 -1
  16. data/docs/SignatureRequestResponseDataValueInitials.md +1 -0
  17. data/docs/SignatureRequestResponseDataValueSignature.md +1 -0
  18. data/docs/SubWhiteLabelingOptions.md +12 -12
  19. data/docs/TemplateApi.md +3 -3
  20. data/docs/TemplateResponse.md +3 -2
  21. data/docs/TemplateResponseDocumentFormFieldBase.md +0 -1
  22. data/docs/TemplateResponseDocumentFormFieldCheckbox.md +1 -0
  23. data/docs/TemplateResponseDocumentFormFieldDateSigned.md +1 -0
  24. data/docs/TemplateResponseDocumentFormFieldDropdown.md +1 -0
  25. data/docs/TemplateResponseDocumentFormFieldHyperlink.md +1 -0
  26. data/docs/TemplateResponseDocumentFormFieldInitials.md +1 -0
  27. data/docs/TemplateResponseDocumentFormFieldRadio.md +1 -0
  28. data/docs/TemplateResponseDocumentFormFieldSignature.md +1 -0
  29. data/docs/TemplateResponseDocumentFormFieldText.md +1 -0
  30. data/examples/FaxDelete.rb +14 -0
  31. data/examples/FaxFiles.rb +17 -0
  32. data/examples/FaxGet.rb +17 -0
  33. data/examples/FaxList.rb +18 -0
  34. data/examples/FaxSend.rb +25 -0
  35. data/lib/dropbox-sign/api/fax_api.rb +495 -0
  36. data/lib/dropbox-sign/api/o_auth_api.rb +28 -0
  37. data/lib/dropbox-sign/api/signature_request_api.rb +2 -2
  38. data/lib/dropbox-sign/api/template_api.rb +2 -2
  39. data/lib/dropbox-sign/models/account_response_quotas.rb +1 -1
  40. data/lib/dropbox-sign/models/api_app_response_o_auth.rb +2 -1
  41. data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +10 -7
  42. data/lib/dropbox-sign/models/fax_get_response.rb +263 -0
  43. data/lib/dropbox-sign/models/fax_list_response.rb +267 -0
  44. data/lib/dropbox-sign/models/fax_response.rb +403 -0
  45. data/lib/dropbox-sign/models/fax_response_transmission.rb +312 -0
  46. data/lib/dropbox-sign/models/fax_send_request.rb +345 -0
  47. data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +26 -4
  48. data/lib/dropbox-sign/models/signature_request_response.rb +10 -7
  49. data/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +2 -1
  50. data/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +16 -4
  51. data/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +16 -4
  52. data/lib/dropbox-sign/models/sub_white_labeling_options.rb +12 -12
  53. data/lib/dropbox-sign/models/template_response.rb +27 -16
  54. data/lib/dropbox-sign/models/template_response_document.rb +1 -2
  55. data/lib/dropbox-sign/models/template_response_document_form_field_base.rb +4 -16
  56. data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +16 -4
  57. data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +16 -4
  58. data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +16 -4
  59. data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +16 -4
  60. data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +16 -4
  61. data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +20 -4
  62. data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +16 -4
  63. data/lib/dropbox-sign/models/template_response_document_form_field_text.rb +17 -5
  64. data/lib/dropbox-sign/version.rb +1 -1
  65. data/lib/dropbox-sign.rb +6 -0
  66. data/openapi-config.yaml +1 -1
  67. data/openapi-sdk.yaml +821 -98
  68. data/run-build +9 -0
  69. data/test_fixtures/ApiAppCreateRequest.json +10 -10
  70. data/test_fixtures/ApiAppGetResponse.json +18 -3
  71. data/test_fixtures/ApiAppListResponse.json +7 -1
  72. data/test_fixtures/ApiAppUpdateRequest.json +11 -11
  73. data/test_fixtures/BulkSendJobGetResponse.json +9 -0
  74. data/test_fixtures/FaxGetResponse.json +31 -0
  75. data/test_fixtures/FaxListResponse.json +39 -0
  76. data/test_fixtures/FaxSendRequest.json +14 -0
  77. data/test_fixtures/FaxSendResponse.json +16 -0
  78. data/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +7 -1
  79. data/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +7 -1
  80. data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +7 -1
  81. data/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +7 -1
  82. data/test_fixtures/SignatureRequestGetResponse.json +11 -1
  83. data/test_fixtures/SignatureRequestListResponse.json +9 -1
  84. data/test_fixtures/SignatureRequestSendRequest.json +5 -1
  85. data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +7 -1
  86. data/test_fixtures/TeamGetResponse.json +5 -0
  87. data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +5 -0
  88. data/test_fixtures/TemplateCreateRequest.json +5 -0
  89. data/test_fixtures/TemplateGetResponse.json +34 -479
  90. data/test_fixtures/TemplateListResponse.json +43 -6
  91. data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +5 -0
  92. data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +5 -0
  93. data/test_fixtures/UnclaimedDraftCreateRequest.json +5 -0
  94. metadata +29 -8
@@ -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 = '#1A1A1A'
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 = '#00B3E6'
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 = '#F7F8F9'
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 = '#00B3E6'
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 = '#00B3E6'
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 = '#FFFFFF'
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 = '#FFFFFF'
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 = '#FFFFFF'
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 = '#FFFFFF'
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 = '#00B3E6'
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 = '#00B3E6'
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 = '#FFFFFF'
264
+ self.text_color2 = '#ffffff'
265
265
  end
266
266
 
267
267
  if attributes.key?(:'reset_to_default')
@@ -35,24 +35,24 @@ 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, nil]
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, nil]
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, nil]
51
+ # @return [Boolean]
52
52
  attr_accessor :is_locked
53
53
 
54
54
  # The metadata attached to the template.
55
- # @return [Object]
55
+ # @return [Hash<String, Object>]
56
56
  attr_accessor :metadata
57
57
 
58
58
  # An array of the designated signer roles that must be specified when sending a SignatureRequest using this 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>, nil]
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
 
@@ -116,13 +121,14 @@ module Dropbox::Sign
116
121
  :'is_creator' => :'Boolean',
117
122
  :'can_edit' => :'Boolean',
118
123
  :'is_locked' => :'Boolean',
119
- :'metadata' => :'Object',
124
+ :'metadata' => :'Hash<String, Object>',
120
125
  :'signer_roles' => :'Array<TemplateResponseSignerRole>',
121
126
  :'cc_roles' => :'Array<TemplateResponseCCRole>',
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
 
@@ -212,7 +214,9 @@ module Dropbox::Sign
212
214
  end
213
215
 
214
216
  if attributes.key?(:'metadata')
215
- self.metadata = attributes[:'metadata']
217
+ if (value = attributes[:'metadata']).is_a?(Hash)
218
+ self.metadata = value
219
+ end
216
220
  end
217
221
 
218
222
  if attributes.key?(:'signer_roles')
@@ -250,6 +254,12 @@ module Dropbox::Sign
250
254
  self.accounts = value
251
255
  end
252
256
  end
257
+
258
+ if attributes.key?(:'attachments')
259
+ if (value = attributes[:'attachments']).is_a?(Array)
260
+ self.attachments = value
261
+ end
262
+ end
253
263
  end
254
264
 
255
265
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -284,7 +294,8 @@ module Dropbox::Sign
284
294
  documents == o.documents &&
285
295
  custom_fields == o.custom_fields &&
286
296
  named_form_fields == o.named_form_fields &&
287
- accounts == o.accounts
297
+ accounts == o.accounts &&
298
+ attachments == o.attachments
288
299
  end
289
300
 
290
301
  # @see the `==` method
@@ -296,7 +307,7 @@ module Dropbox::Sign
296
307
  # Calculates hash code according to all attributes.
297
308
  # @return [Integer] Hash code
298
309
  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
310
+ [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
311
  end
301
312
 
302
313
  # 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>, nil]
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, group].hash
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 && super(o)
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 && super(o)
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 && super(o)
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 && super(o)
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 && super(o)
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]
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,7 +43,8 @@ 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
 
@@ -96,6 +102,10 @@ module Dropbox::Sign
96
102
  else
97
103
  self.type = 'radio'
98
104
  end
105
+
106
+ if attributes.key?(:'group')
107
+ self.group = attributes[:'group']
108
+ end
99
109
  end
100
110
 
101
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,6 +116,10 @@ module Dropbox::Sign
106
116
  invalid_properties.push('invalid value for "type", type cannot be nil.')
107
117
  end
108
118
 
119
+ if @group.nil?
120
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
121
+ end
122
+
109
123
  invalid_properties
110
124
  end
111
125
 
@@ -113,6 +127,7 @@ module Dropbox::Sign
113
127
  # @return true if the model is valid
114
128
  def valid?
115
129
  return false if @type.nil?
130
+ return false if @group.nil?
116
131
  true && super
117
132
  end
118
133
 
@@ -121,7 +136,8 @@ module Dropbox::Sign
121
136
  def ==(o)
122
137
  return true if self.equal?(o)
123
138
  self.class == o.class &&
124
- type == o.type && super(o)
139
+ type == o.type &&
140
+ group == o.group && super(o)
125
141
  end
126
142
 
127
143
  # @see the `==` method
@@ -133,7 +149,7 @@ module Dropbox::Sign
133
149
  # Calculates hash code according to all attributes.
134
150
  # @return [Integer] Hash code
135
151
  def hash
136
- [type].hash
152
+ [type, group].hash
137
153
  end
138
154
 
139
155
  # Builds the object from hash