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.
- 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/BulkSendJobGetResponseSignatureRequests.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 +20 -0
- data/docs/FaxResponseTransmission.md +12 -0
- data/docs/FaxSendRequest.md +18 -0
- data/docs/OAuthTokenRefreshRequest.md +2 -0
- data/docs/SignatureRequestApi.md +1 -1
- data/docs/SignatureRequestResponse.md +1 -1
- data/docs/SignatureRequestResponseDataValueInitials.md +1 -0
- data/docs/SignatureRequestResponseDataValueSignature.md +1 -0
- data/docs/SubWhiteLabelingOptions.md +12 -12
- data/docs/TemplateApi.md +3 -3
- data/docs/TemplateResponse.md +3 -2
- 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/bulk_send_job_get_response_signature_requests.rb +10 -7
- 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 +403 -0
- data/lib/dropbox-sign/models/fax_response_transmission.rb +312 -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/signature_request_response.rb +10 -7
- data/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +2 -1
- data/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +16 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +16 -4
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +12 -12
- data/lib/dropbox-sign/models/template_response.rb +27 -16
- 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 -98
- 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/BulkSendJobGetResponse.json +9 -0
- data/test_fixtures/FaxGetResponse.json +31 -0
- data/test_fixtures/FaxListResponse.json +39 -0
- data/test_fixtures/FaxSendRequest.json +14 -0
- data/test_fixtures/FaxSendResponse.json +16 -0
- data/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +7 -1
- data/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +7 -1
- data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +7 -1
- data/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +7 -1
- data/test_fixtures/SignatureRequestGetResponse.json +11 -1
- data/test_fixtures/SignatureRequestListResponse.json +9 -1
- data/test_fixtures/SignatureRequestSendRequest.json +5 -1
- data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +7 -1
- data/test_fixtures/TeamGetResponse.json +5 -0
- data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +5 -0
- data/test_fixtures/TemplateCreateRequest.json +5 -0
- data/test_fixtures/TemplateGetResponse.json +34 -479
- data/test_fixtures/TemplateListResponse.json +43 -6
- data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +5 -0
- data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +5 -0
- data/test_fixtures/UnclaimedDraftCreateRequest.json +5 -0
- metadata +29 -8
@@ -0,0 +1,345 @@
|
|
1
|
+
=begin
|
2
|
+
#Dropbox Sign API
|
3
|
+
|
4
|
+
#Dropbox Sign v3 API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
7
|
+
Contact: apisupport@hellosign.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Dropbox
|
17
|
+
end
|
18
|
+
|
19
|
+
module Dropbox::Sign
|
20
|
+
class FaxSendRequest
|
21
|
+
# Fax Send To Recipient
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :recipient
|
24
|
+
|
25
|
+
# Fax Send From Sender (used only with fax number)
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :sender
|
28
|
+
|
29
|
+
# Fax File to Send
|
30
|
+
# @return [Array<File>]
|
31
|
+
attr_accessor :files
|
32
|
+
|
33
|
+
# Fax File URL to Send
|
34
|
+
# @return [Array<String>]
|
35
|
+
attr_accessor :file_urls
|
36
|
+
|
37
|
+
# API Test Mode Setting
|
38
|
+
# @return [Boolean]
|
39
|
+
attr_accessor :test_mode
|
40
|
+
|
41
|
+
# Fax Cover Page for Recipient
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :cover_page_to
|
44
|
+
|
45
|
+
# Fax Cover Page for Sender
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :cover_page_from
|
48
|
+
|
49
|
+
# Fax Cover Page Message
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :cover_page_message
|
52
|
+
|
53
|
+
# Fax Title
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :title
|
56
|
+
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
58
|
+
def self.attribute_map
|
59
|
+
{
|
60
|
+
:'recipient' => :'recipient',
|
61
|
+
:'sender' => :'sender',
|
62
|
+
:'files' => :'files',
|
63
|
+
:'file_urls' => :'file_urls',
|
64
|
+
:'test_mode' => :'test_mode',
|
65
|
+
:'cover_page_to' => :'cover_page_to',
|
66
|
+
:'cover_page_from' => :'cover_page_from',
|
67
|
+
:'cover_page_message' => :'cover_page_message',
|
68
|
+
:'title' => :'title'
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
# Returns all the JSON keys this model knows about
|
73
|
+
def self.acceptable_attributes
|
74
|
+
attribute_map.values
|
75
|
+
end
|
76
|
+
|
77
|
+
# Attribute type mapping.
|
78
|
+
def self.openapi_types
|
79
|
+
{
|
80
|
+
:'recipient' => :'String',
|
81
|
+
:'sender' => :'String',
|
82
|
+
:'files' => :'Array<File>',
|
83
|
+
:'file_urls' => :'Array<String>',
|
84
|
+
:'test_mode' => :'Boolean',
|
85
|
+
:'cover_page_to' => :'String',
|
86
|
+
:'cover_page_from' => :'String',
|
87
|
+
:'cover_page_message' => :'String',
|
88
|
+
:'title' => :'String'
|
89
|
+
}
|
90
|
+
end
|
91
|
+
|
92
|
+
# List of attributes with nullable: true
|
93
|
+
def self.openapi_nullable
|
94
|
+
Set.new([
|
95
|
+
])
|
96
|
+
end
|
97
|
+
|
98
|
+
# Returns attribute map of this model + parent
|
99
|
+
def self.merged_attributes
|
100
|
+
self.attribute_map
|
101
|
+
end
|
102
|
+
|
103
|
+
# Attribute type mapping of this model + parent
|
104
|
+
def self.merged_types
|
105
|
+
self.openapi_types
|
106
|
+
end
|
107
|
+
|
108
|
+
# Returns list of attributes with nullable: true of this model + parent
|
109
|
+
def self.merged_nullable
|
110
|
+
self.openapi_nullable
|
111
|
+
end
|
112
|
+
|
113
|
+
# Attempt to instantiate and hydrate a new instance of this class
|
114
|
+
# @param [Object] data Data to be converted
|
115
|
+
# @return [FaxSendRequest]
|
116
|
+
def self.init(data)
|
117
|
+
ApiClient.default.convert_to_type(
|
118
|
+
data,
|
119
|
+
"FaxSendRequest"
|
120
|
+
) || FaxSendRequest.new
|
121
|
+
end
|
122
|
+
|
123
|
+
# Initializes the object
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
def initialize(attributes = {})
|
126
|
+
if (!attributes.is_a?(Hash))
|
127
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxSendRequest` initialize method"
|
128
|
+
end
|
129
|
+
|
130
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
131
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
132
|
+
if (!self.class.merged_attributes.key?(k.to_sym))
|
133
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxSendRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
134
|
+
end
|
135
|
+
h[k.to_sym] = v
|
136
|
+
}
|
137
|
+
|
138
|
+
if attributes.key?(:'recipient')
|
139
|
+
self.recipient = attributes[:'recipient']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'sender')
|
143
|
+
self.sender = attributes[:'sender']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'files')
|
147
|
+
if (value = attributes[:'files']).is_a?(Array)
|
148
|
+
self.files = value
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'file_urls')
|
153
|
+
if (value = attributes[:'file_urls']).is_a?(Array)
|
154
|
+
self.file_urls = value
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'test_mode')
|
159
|
+
self.test_mode = attributes[:'test_mode']
|
160
|
+
else
|
161
|
+
self.test_mode = false
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'cover_page_to')
|
165
|
+
self.cover_page_to = attributes[:'cover_page_to']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'cover_page_from')
|
169
|
+
self.cover_page_from = attributes[:'cover_page_from']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'cover_page_message')
|
173
|
+
self.cover_page_message = attributes[:'cover_page_message']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'title')
|
177
|
+
self.title = attributes[:'title']
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
182
|
+
# @return Array for valid properties with the reasons
|
183
|
+
def list_invalid_properties
|
184
|
+
invalid_properties = Array.new
|
185
|
+
if @recipient.nil?
|
186
|
+
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
187
|
+
end
|
188
|
+
|
189
|
+
invalid_properties
|
190
|
+
end
|
191
|
+
|
192
|
+
# Check to see if the all the properties in the model are valid
|
193
|
+
# @return true if the model is valid
|
194
|
+
def valid?
|
195
|
+
return false if @recipient.nil?
|
196
|
+
true
|
197
|
+
end
|
198
|
+
|
199
|
+
# Checks equality by comparing each attribute.
|
200
|
+
# @param [Object] Object to be compared
|
201
|
+
def ==(o)
|
202
|
+
return true if self.equal?(o)
|
203
|
+
self.class == o.class &&
|
204
|
+
recipient == o.recipient &&
|
205
|
+
sender == o.sender &&
|
206
|
+
files == o.files &&
|
207
|
+
file_urls == o.file_urls &&
|
208
|
+
test_mode == o.test_mode &&
|
209
|
+
cover_page_to == o.cover_page_to &&
|
210
|
+
cover_page_from == o.cover_page_from &&
|
211
|
+
cover_page_message == o.cover_page_message &&
|
212
|
+
title == o.title
|
213
|
+
end
|
214
|
+
|
215
|
+
# @see the `==` method
|
216
|
+
# @param [Object] Object to be compared
|
217
|
+
def eql?(o)
|
218
|
+
self == o
|
219
|
+
end
|
220
|
+
|
221
|
+
# Calculates hash code according to all attributes.
|
222
|
+
# @return [Integer] Hash code
|
223
|
+
def hash
|
224
|
+
[recipient, sender, files, file_urls, test_mode, cover_page_to, cover_page_from, cover_page_message, title].hash
|
225
|
+
end
|
226
|
+
|
227
|
+
# Builds the object from hash
|
228
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
229
|
+
# @return [Object] Returns the model itself
|
230
|
+
def self.build_from_hash(attributes)
|
231
|
+
new.build_from_hash(attributes)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Builds the object from hash
|
235
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
236
|
+
# @return [Object] Returns the model itself
|
237
|
+
def build_from_hash(attributes)
|
238
|
+
return nil unless attributes.is_a?(Hash)
|
239
|
+
attribute_map = self.class.merged_attributes
|
240
|
+
|
241
|
+
self.class.merged_types.each_pair do |key, type|
|
242
|
+
if type =~ /\AArray<(.*)>/i
|
243
|
+
# check to ensure the input is an array given that the attribute
|
244
|
+
# is documented as an array but the input is not
|
245
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
246
|
+
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
247
|
+
end
|
248
|
+
elsif !attributes[attribute_map[key]].nil?
|
249
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
self
|
254
|
+
end
|
255
|
+
|
256
|
+
# Deserializes the data based on type
|
257
|
+
# @param string type Data type
|
258
|
+
# @param string value Value to be deserialized
|
259
|
+
# @return [Object] Deserialized data
|
260
|
+
def _deserialize(type, value)
|
261
|
+
case type.to_sym
|
262
|
+
when :Time
|
263
|
+
Time.parse(value)
|
264
|
+
when :Date
|
265
|
+
Date.parse(value)
|
266
|
+
when :String
|
267
|
+
value.to_s
|
268
|
+
when :Integer
|
269
|
+
value.to_i
|
270
|
+
when :Float
|
271
|
+
value.to_f
|
272
|
+
when :Boolean
|
273
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
274
|
+
true
|
275
|
+
else
|
276
|
+
false
|
277
|
+
end
|
278
|
+
when :Object
|
279
|
+
# generic object (usually a Hash), return directly
|
280
|
+
value
|
281
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
282
|
+
inner_type = Regexp.last_match[:inner_type]
|
283
|
+
value.map { |v| _deserialize(inner_type, v) }
|
284
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
285
|
+
k_type = Regexp.last_match[:k_type]
|
286
|
+
v_type = Regexp.last_match[:v_type]
|
287
|
+
{}.tap do |hash|
|
288
|
+
value.each do |k, v|
|
289
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
else # model
|
293
|
+
klass = Dropbox::Sign.const_get(type)
|
294
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# Returns the string representation of the object
|
299
|
+
# @return [String] String presentation of the object
|
300
|
+
def to_s
|
301
|
+
to_hash.to_s
|
302
|
+
end
|
303
|
+
|
304
|
+
# to_body is an alias to to_hash (backward compatibility)
|
305
|
+
# @return [Hash] Returns the object in the form of hash
|
306
|
+
def to_body
|
307
|
+
to_hash
|
308
|
+
end
|
309
|
+
|
310
|
+
# Returns the object in the form of hash
|
311
|
+
# @return [Hash] Returns the object in the form of hash
|
312
|
+
def to_hash(include_nil = true)
|
313
|
+
hash = {}
|
314
|
+
self.class.merged_attributes.each_pair do |attr, param|
|
315
|
+
value = self.send(attr)
|
316
|
+
if value.nil?
|
317
|
+
next unless include_nil
|
318
|
+
is_nullable = self.class.merged_nullable.include?(attr)
|
319
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
320
|
+
end
|
321
|
+
|
322
|
+
hash[param] = _to_hash(value, include_nil)
|
323
|
+
end
|
324
|
+
hash
|
325
|
+
end
|
326
|
+
|
327
|
+
# Outputs non-array value in the form of hash
|
328
|
+
# For object, use to_hash. Otherwise, just return the value
|
329
|
+
# @param [Object] value Any valid value
|
330
|
+
# @return [Hash] Returns the value in the form of hash
|
331
|
+
def _to_hash(value, include_nil = true)
|
332
|
+
if value.is_a?(Array)
|
333
|
+
value.compact.map { |v| _to_hash(v, include_nil) }
|
334
|
+
elsif value.is_a?(Hash)
|
335
|
+
{}.tap do |hash|
|
336
|
+
value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
|
337
|
+
end
|
338
|
+
elsif value.respond_to? :to_hash
|
339
|
+
value.to_hash(include_nil)
|
340
|
+
else
|
341
|
+
value
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
end
|
@@ -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
|
@@ -20,7 +20,7 @@ module Dropbox::Sign
|
|
20
20
|
# Contains information about a signature request.
|
21
21
|
class SignatureRequestResponse
|
22
22
|
# Whether this is a test signature request. Test requests have no legal value. Defaults to `false`.
|
23
|
-
# @return [Boolean
|
23
|
+
# @return [Boolean]
|
24
24
|
attr_accessor :test_mode
|
25
25
|
|
26
26
|
# The id of the SignatureRequest.
|
@@ -28,7 +28,7 @@ module Dropbox::Sign
|
|
28
28
|
attr_accessor :signature_request_id
|
29
29
|
|
30
30
|
# The email address of the initiator of the SignatureRequest.
|
31
|
-
# @return [String]
|
31
|
+
# @return [String, nil]
|
32
32
|
attr_accessor :requester_email_address
|
33
33
|
|
34
34
|
# The title the specified Account uses for the SignatureRequest.
|
@@ -48,7 +48,7 @@ module Dropbox::Sign
|
|
48
48
|
attr_accessor :message
|
49
49
|
|
50
50
|
# The metadata attached to the signature request.
|
51
|
-
# @return [Object]
|
51
|
+
# @return [Hash<String, Object>]
|
52
52
|
attr_accessor :metadata
|
53
53
|
|
54
54
|
# Time the signature request was created.
|
@@ -56,7 +56,7 @@ module Dropbox::Sign
|
|
56
56
|
attr_accessor :created_at
|
57
57
|
|
58
58
|
# The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.
|
59
|
-
# @return [Integer]
|
59
|
+
# @return [Integer, nil]
|
60
60
|
attr_accessor :expires_at
|
61
61
|
|
62
62
|
# Whether or not the SignatureRequest has been fully executed by all signers.
|
@@ -165,7 +165,7 @@ module Dropbox::Sign
|
|
165
165
|
:'original_title' => :'String',
|
166
166
|
:'subject' => :'String',
|
167
167
|
:'message' => :'String',
|
168
|
-
:'metadata' => :'Object',
|
168
|
+
:'metadata' => :'Hash<String, Object>',
|
169
169
|
:'created_at' => :'Integer',
|
170
170
|
:'expires_at' => :'Integer',
|
171
171
|
:'is_complete' => :'Boolean',
|
@@ -189,9 +189,10 @@ module Dropbox::Sign
|
|
189
189
|
# List of attributes with nullable: true
|
190
190
|
def self.openapi_nullable
|
191
191
|
Set.new([
|
192
|
-
:'
|
192
|
+
:'requester_email_address',
|
193
193
|
:'subject',
|
194
194
|
:'message',
|
195
|
+
:'expires_at',
|
195
196
|
:'signing_url',
|
196
197
|
:'signing_redirect_url',
|
197
198
|
:'final_copy_uri',
|
@@ -274,7 +275,9 @@ module Dropbox::Sign
|
|
274
275
|
end
|
275
276
|
|
276
277
|
if attributes.key?(:'metadata')
|
277
|
-
|
278
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
279
|
+
self.metadata = value
|
280
|
+
end
|
278
281
|
end
|
279
282
|
|
280
283
|
if attributes.key?(:'created_at')
|
@@ -36,7 +36,7 @@ module Dropbox::Sign
|
|
36
36
|
attr_accessor :api_id
|
37
37
|
|
38
38
|
# The name of the Role that is able to edit this field.
|
39
|
-
# @return [String]
|
39
|
+
# @return [String, nil]
|
40
40
|
attr_accessor :editor
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -69,6 +69,7 @@ module Dropbox::Sign
|
|
69
69
|
# List of attributes with nullable: true
|
70
70
|
def self.openapi_nullable
|
71
71
|
Set.new([
|
72
|
+
:'editor'
|
72
73
|
])
|
73
74
|
end
|
74
75
|
|
@@ -26,11 +26,16 @@ module Dropbox::Sign
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :value
|
28
28
|
|
29
|
+
# This field contains the boolean true if the field is signed.
|
30
|
+
# @return [Boolean, nil]
|
31
|
+
attr_accessor :is_signed
|
32
|
+
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
34
|
def self.attribute_map
|
31
35
|
{
|
32
36
|
:'type' => :'type',
|
33
|
-
:'value' => :'value'
|
37
|
+
:'value' => :'value',
|
38
|
+
:'is_signed' => :'is_signed'
|
34
39
|
}
|
35
40
|
end
|
36
41
|
|
@@ -43,13 +48,15 @@ module Dropbox::Sign
|
|
43
48
|
def self.openapi_types
|
44
49
|
{
|
45
50
|
:'type' => :'String',
|
46
|
-
:'value' => :'String'
|
51
|
+
:'value' => :'String',
|
52
|
+
:'is_signed' => :'Boolean'
|
47
53
|
}
|
48
54
|
end
|
49
55
|
|
50
56
|
# List of attributes with nullable: true
|
51
57
|
def self.openapi_nullable
|
52
58
|
Set.new([
|
59
|
+
:'is_signed'
|
53
60
|
])
|
54
61
|
end
|
55
62
|
|
@@ -105,6 +112,10 @@ module Dropbox::Sign
|
|
105
112
|
if attributes.key?(:'value')
|
106
113
|
self.value = attributes[:'value']
|
107
114
|
end
|
115
|
+
|
116
|
+
if attributes.key?(:'is_signed')
|
117
|
+
self.is_signed = attributes[:'is_signed']
|
118
|
+
end
|
108
119
|
end
|
109
120
|
|
110
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,7 +137,8 @@ module Dropbox::Sign
|
|
126
137
|
return true if self.equal?(o)
|
127
138
|
self.class == o.class &&
|
128
139
|
type == o.type &&
|
129
|
-
value == o.value &&
|
140
|
+
value == o.value &&
|
141
|
+
is_signed == o.is_signed && super(o)
|
130
142
|
end
|
131
143
|
|
132
144
|
# @see the `==` method
|
@@ -138,7 +150,7 @@ module Dropbox::Sign
|
|
138
150
|
# Calculates hash code according to all attributes.
|
139
151
|
# @return [Integer] Hash code
|
140
152
|
def hash
|
141
|
-
[type, value].hash
|
153
|
+
[type, value, is_signed].hash
|
142
154
|
end
|
143
155
|
|
144
156
|
# Builds the object from hash
|
@@ -26,11 +26,16 @@ module Dropbox::Sign
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :value
|
28
28
|
|
29
|
+
# This field contains the boolean true if the field is signed.
|
30
|
+
# @return [Boolean, nil]
|
31
|
+
attr_accessor :is_signed
|
32
|
+
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
34
|
def self.attribute_map
|
31
35
|
{
|
32
36
|
:'type' => :'type',
|
33
|
-
:'value' => :'value'
|
37
|
+
:'value' => :'value',
|
38
|
+
:'is_signed' => :'is_signed'
|
34
39
|
}
|
35
40
|
end
|
36
41
|
|
@@ -43,13 +48,15 @@ module Dropbox::Sign
|
|
43
48
|
def self.openapi_types
|
44
49
|
{
|
45
50
|
:'type' => :'String',
|
46
|
-
:'value' => :'String'
|
51
|
+
:'value' => :'String',
|
52
|
+
:'is_signed' => :'Boolean'
|
47
53
|
}
|
48
54
|
end
|
49
55
|
|
50
56
|
# List of attributes with nullable: true
|
51
57
|
def self.openapi_nullable
|
52
58
|
Set.new([
|
59
|
+
:'is_signed'
|
53
60
|
])
|
54
61
|
end
|
55
62
|
|
@@ -105,6 +112,10 @@ module Dropbox::Sign
|
|
105
112
|
if attributes.key?(:'value')
|
106
113
|
self.value = attributes[:'value']
|
107
114
|
end
|
115
|
+
|
116
|
+
if attributes.key?(:'is_signed')
|
117
|
+
self.is_signed = attributes[:'is_signed']
|
118
|
+
end
|
108
119
|
end
|
109
120
|
|
110
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,7 +137,8 @@ module Dropbox::Sign
|
|
126
137
|
return true if self.equal?(o)
|
127
138
|
self.class == o.class &&
|
128
139
|
type == o.type &&
|
129
|
-
value == o.value &&
|
140
|
+
value == o.value &&
|
141
|
+
is_signed == o.is_signed && super(o)
|
130
142
|
end
|
131
143
|
|
132
144
|
# @see the `==` method
|
@@ -138,7 +150,7 @@ module Dropbox::Sign
|
|
138
150
|
# Calculates hash code according to all attributes.
|
139
151
|
# @return [Integer] Hash code
|
140
152
|
def hash
|
141
|
-
[type, value].hash
|
153
|
+
[type, value, is_signed].hash
|
142
154
|
end
|
143
155
|
|
144
156
|
# Builds the object from hash
|