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
@@ -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 &&
|
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
|
@@ -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 = 'signature'
|
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
|
@@ -42,6 +42,10 @@ module Dropbox::Sign
|
|
42
42
|
# @return [String, nil]
|
43
43
|
attr_accessor :validation_type
|
44
44
|
|
45
|
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
|
46
|
+
# @return [String, nil]
|
47
|
+
attr_accessor :group
|
48
|
+
|
45
49
|
class EnumAttributeValidator
|
46
50
|
attr_reader :datatype
|
47
51
|
attr_reader :allowable_values
|
@@ -72,7 +76,8 @@ module Dropbox::Sign
|
|
72
76
|
:'is_multiline' => :'isMultiline',
|
73
77
|
:'original_font_size' => :'originalFontSize',
|
74
78
|
:'font_family' => :'fontFamily',
|
75
|
-
:'validation_type' => :'validation_type'
|
79
|
+
:'validation_type' => :'validation_type',
|
80
|
+
:'group' => :'group'
|
76
81
|
}
|
77
82
|
end
|
78
83
|
|
@@ -89,14 +94,16 @@ module Dropbox::Sign
|
|
89
94
|
:'is_multiline' => :'Boolean',
|
90
95
|
:'original_font_size' => :'Integer',
|
91
96
|
:'font_family' => :'String',
|
92
|
-
:'validation_type' => :'String'
|
97
|
+
:'validation_type' => :'String',
|
98
|
+
:'group' => :'String'
|
93
99
|
}
|
94
100
|
end
|
95
101
|
|
96
102
|
# List of attributes with nullable: true
|
97
103
|
def self.openapi_nullable
|
98
104
|
Set.new([
|
99
|
-
:'validation_type'
|
105
|
+
:'validation_type',
|
106
|
+
:'group'
|
100
107
|
])
|
101
108
|
end
|
102
109
|
|
@@ -168,6 +175,10 @@ module Dropbox::Sign
|
|
168
175
|
if attributes.key?(:'validation_type')
|
169
176
|
self.validation_type = attributes[:'validation_type']
|
170
177
|
end
|
178
|
+
|
179
|
+
if attributes.key?(:'group')
|
180
|
+
self.group = attributes[:'group']
|
181
|
+
end
|
171
182
|
end
|
172
183
|
|
173
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -210,7 +221,8 @@ module Dropbox::Sign
|
|
210
221
|
is_multiline == o.is_multiline &&
|
211
222
|
original_font_size == o.original_font_size &&
|
212
223
|
font_family == o.font_family &&
|
213
|
-
validation_type == o.validation_type &&
|
224
|
+
validation_type == o.validation_type &&
|
225
|
+
group == o.group && super(o)
|
214
226
|
end
|
215
227
|
|
216
228
|
# @see the `==` method
|
@@ -222,7 +234,7 @@ module Dropbox::Sign
|
|
222
234
|
# Calculates hash code according to all attributes.
|
223
235
|
# @return [Integer] Hash code
|
224
236
|
def hash
|
225
|
-
[type, avg_text_length, is_multiline, original_font_size, font_family, validation_type].hash
|
237
|
+
[type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, group].hash
|
226
238
|
end
|
227
239
|
|
228
240
|
# Builds the object from hash
|
data/lib/dropbox-sign/version.rb
CHANGED
data/lib/dropbox-sign.rb
CHANGED
@@ -51,6 +51,7 @@ require 'dropbox-sign/models/error_response_error'
|
|
51
51
|
require 'dropbox-sign/models/event_callback_request'
|
52
52
|
require 'dropbox-sign/models/event_callback_request_event'
|
53
53
|
require 'dropbox-sign/models/event_callback_request_event_metadata'
|
54
|
+
require 'dropbox-sign/models/fax_get_response'
|
54
55
|
require 'dropbox-sign/models/fax_line_add_user_request'
|
55
56
|
require 'dropbox-sign/models/fax_line_area_code_get_country_enum'
|
56
57
|
require 'dropbox-sign/models/fax_line_area_code_get_province_enum'
|
@@ -62,6 +63,10 @@ require 'dropbox-sign/models/fax_line_list_response'
|
|
62
63
|
require 'dropbox-sign/models/fax_line_remove_user_request'
|
63
64
|
require 'dropbox-sign/models/fax_line_response'
|
64
65
|
require 'dropbox-sign/models/fax_line_response_fax_line'
|
66
|
+
require 'dropbox-sign/models/fax_list_response'
|
67
|
+
require 'dropbox-sign/models/fax_response'
|
68
|
+
require 'dropbox-sign/models/fax_response_transmission'
|
69
|
+
require 'dropbox-sign/models/fax_send_request'
|
65
70
|
require 'dropbox-sign/models/file_response'
|
66
71
|
require 'dropbox-sign/models/file_response_data_uri'
|
67
72
|
require 'dropbox-sign/models/list_info_response'
|
@@ -206,6 +211,7 @@ require 'dropbox-sign/api/account_api'
|
|
206
211
|
require 'dropbox-sign/api/api_app_api'
|
207
212
|
require 'dropbox-sign/api/bulk_send_job_api'
|
208
213
|
require 'dropbox-sign/api/embedded_api'
|
214
|
+
require 'dropbox-sign/api/fax_api'
|
209
215
|
require 'dropbox-sign/api/fax_line_api'
|
210
216
|
require 'dropbox-sign/api/o_auth_api'
|
211
217
|
require 'dropbox-sign/api/report_api'
|
data/openapi-config.yaml
CHANGED