docusign_esign 3.15.0 → 3.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +12 -4
- data/lib/docusign_esign/api/envelopes_api.rb +59 -134
- data/lib/docusign_esign/api/templates_api.rb +0 -59
- data/lib/docusign_esign/api/users_api.rb +4 -0
- data/lib/docusign_esign/client/api_client.rb +1 -1
- data/lib/docusign_esign/models/account_role_settings.rb +23 -4
- data/lib/docusign_esign/models/account_settings_information.rb +68 -20
- data/lib/docusign_esign/models/billing_invoice_item.rb +21 -1
- data/lib/docusign_esign/models/delayed_routing.rb +206 -0
- data/lib/docusign_esign/models/envelope_delay_rule.rb +194 -0
- data/lib/docusign_esign/models/linked_external_primary_account.rb +11 -1
- data/lib/docusign_esign/models/prefill_tabs.rb +64 -4
- data/lib/docusign_esign/models/scheduled_sending.rb +206 -0
- data/lib/docusign_esign/models/user_information.rb +11 -1
- data/lib/docusign_esign/models/user_settings_information.rb +23 -4
- data/lib/docusign_esign/models/workflow.rb +12 -2
- data/lib/docusign_esign/models/workflow_step.rb +1 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +3 -5
- metadata +5 -2
@@ -0,0 +1,194 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
class EnvelopeDelayRule
|
16
|
+
#
|
17
|
+
attr_accessor :delay
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :resume_date
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'delay' => :'delay',
|
26
|
+
:'resume_date' => :'resumeDate'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'delay' => :'String',
|
34
|
+
:'resume_date' => :'String'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Initializes the object
|
39
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
|
+
|
46
|
+
if attributes.has_key?(:'delay')
|
47
|
+
self.delay = attributes[:'delay']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'resumeDate')
|
51
|
+
self.resume_date = attributes[:'resumeDate']
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
56
|
+
# @return Array for valid properties with the reasons
|
57
|
+
def list_invalid_properties
|
58
|
+
invalid_properties = Array.new
|
59
|
+
invalid_properties
|
60
|
+
end
|
61
|
+
|
62
|
+
# Check to see if the all the properties in the model are valid
|
63
|
+
# @return true if the model is valid
|
64
|
+
def valid?
|
65
|
+
true
|
66
|
+
end
|
67
|
+
|
68
|
+
# Checks equality by comparing each attribute.
|
69
|
+
# @param [Object] Object to be compared
|
70
|
+
def ==(o)
|
71
|
+
return true if self.equal?(o)
|
72
|
+
self.class == o.class &&
|
73
|
+
delay == o.delay &&
|
74
|
+
resume_date == o.resume_date
|
75
|
+
end
|
76
|
+
|
77
|
+
# @see the `==` method
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def eql?(o)
|
80
|
+
self == o
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Fixnum] Hash code
|
85
|
+
def hash
|
86
|
+
[delay, resume_date].hash
|
87
|
+
end
|
88
|
+
|
89
|
+
# Builds the object from hash
|
90
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
91
|
+
# @return [Object] Returns the model itself
|
92
|
+
def build_from_hash(attributes)
|
93
|
+
return nil unless attributes.is_a?(Hash)
|
94
|
+
self.class.swagger_types.each_pair do |key, type|
|
95
|
+
if type =~ /\AArray<(.*)>/i
|
96
|
+
# check to ensure the input is an array given that the attribute
|
97
|
+
# is documented as an array but the input is not
|
98
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
99
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
100
|
+
end
|
101
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
102
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
103
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
104
|
+
end
|
105
|
+
|
106
|
+
self
|
107
|
+
end
|
108
|
+
|
109
|
+
# Deserializes the data based on type
|
110
|
+
# @param string type Data type
|
111
|
+
# @param string value Value to be deserialized
|
112
|
+
# @return [Object] Deserialized data
|
113
|
+
def _deserialize(type, value)
|
114
|
+
case type.to_sym
|
115
|
+
when :DateTime
|
116
|
+
DateTime.parse(value)
|
117
|
+
when :Date
|
118
|
+
Date.parse(value)
|
119
|
+
when :String
|
120
|
+
value.to_s
|
121
|
+
when :Integer
|
122
|
+
value.to_i
|
123
|
+
when :Float
|
124
|
+
value.to_f
|
125
|
+
when :BOOLEAN
|
126
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
127
|
+
true
|
128
|
+
else
|
129
|
+
false
|
130
|
+
end
|
131
|
+
when :Object
|
132
|
+
# generic object (usually a Hash), return directly
|
133
|
+
value
|
134
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
135
|
+
inner_type = Regexp.last_match[:inner_type]
|
136
|
+
value.map { |v| _deserialize(inner_type, v) }
|
137
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
138
|
+
k_type = Regexp.last_match[:k_type]
|
139
|
+
v_type = Regexp.last_match[:v_type]
|
140
|
+
{}.tap do |hash|
|
141
|
+
value.each do |k, v|
|
142
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
else # model
|
146
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
147
|
+
temp_model.build_from_hash(value)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# Returns the string representation of the object
|
152
|
+
# @return [String] String presentation of the object
|
153
|
+
def to_s
|
154
|
+
to_hash.to_s
|
155
|
+
end
|
156
|
+
|
157
|
+
# to_body is an alias to to_hash (backward compatibility)
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
159
|
+
def to_body
|
160
|
+
to_hash
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the object in the form of hash
|
164
|
+
# @return [Hash] Returns the object in the form of hash
|
165
|
+
def to_hash
|
166
|
+
hash = {}
|
167
|
+
self.class.attribute_map.each_pair do |attr, param|
|
168
|
+
value = self.send(attr)
|
169
|
+
next if value.nil?
|
170
|
+
hash[param] = _to_hash(value)
|
171
|
+
end
|
172
|
+
hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Outputs non-array value in the form of hash
|
176
|
+
# For object, use to_hash. Otherwise, just return the value
|
177
|
+
# @param [Object] value Any valid value
|
178
|
+
# @return [Hash] Returns the value in the form of hash
|
179
|
+
def _to_hash(value)
|
180
|
+
if value.is_a?(Array)
|
181
|
+
value.compact.map { |v| _to_hash(v) }
|
182
|
+
elsif value.is_a?(Hash)
|
183
|
+
{}.tap do |hash|
|
184
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
185
|
+
end
|
186
|
+
elsif value.respond_to? :to_hash
|
187
|
+
value.to_hash
|
188
|
+
else
|
189
|
+
value
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
194
|
+
end
|
@@ -25,6 +25,9 @@ module DocuSign_eSign
|
|
25
25
|
#
|
26
26
|
attr_accessor :link_id
|
27
27
|
|
28
|
+
#
|
29
|
+
attr_accessor :pdf_field_handling_option
|
30
|
+
|
28
31
|
attr_accessor :recipient_auth_requirements
|
29
32
|
|
30
33
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
@@ -40,6 +43,7 @@ module DocuSign_eSign
|
|
40
43
|
:'configuration_id' => :'configurationId',
|
41
44
|
:'email' => :'email',
|
42
45
|
:'link_id' => :'linkId',
|
46
|
+
:'pdf_field_handling_option' => :'pdfFieldHandlingOption',
|
43
47
|
:'recipient_auth_requirements' => :'recipientAuthRequirements',
|
44
48
|
:'status' => :'status',
|
45
49
|
:'user_id' => :'userId'
|
@@ -53,6 +57,7 @@ module DocuSign_eSign
|
|
53
57
|
:'configuration_id' => :'String',
|
54
58
|
:'email' => :'String',
|
55
59
|
:'link_id' => :'String',
|
60
|
+
:'pdf_field_handling_option' => :'String',
|
56
61
|
:'recipient_auth_requirements' => :'ExternalPrimaryAccountRecipientAuthRequirements',
|
57
62
|
:'status' => :'String',
|
58
63
|
:'user_id' => :'String'
|
@@ -83,6 +88,10 @@ module DocuSign_eSign
|
|
83
88
|
self.link_id = attributes[:'linkId']
|
84
89
|
end
|
85
90
|
|
91
|
+
if attributes.has_key?(:'pdfFieldHandlingOption')
|
92
|
+
self.pdf_field_handling_option = attributes[:'pdfFieldHandlingOption']
|
93
|
+
end
|
94
|
+
|
86
95
|
if attributes.has_key?(:'recipientAuthRequirements')
|
87
96
|
self.recipient_auth_requirements = attributes[:'recipientAuthRequirements']
|
88
97
|
end
|
@@ -118,6 +127,7 @@ module DocuSign_eSign
|
|
118
127
|
configuration_id == o.configuration_id &&
|
119
128
|
email == o.email &&
|
120
129
|
link_id == o.link_id &&
|
130
|
+
pdf_field_handling_option == o.pdf_field_handling_option &&
|
121
131
|
recipient_auth_requirements == o.recipient_auth_requirements &&
|
122
132
|
status == o.status &&
|
123
133
|
user_id == o.user_id
|
@@ -132,7 +142,7 @@ module DocuSign_eSign
|
|
132
142
|
# Calculates hash code according to all attributes.
|
133
143
|
# @return [Fixnum] Hash code
|
134
144
|
def hash
|
135
|
-
[account_name, configuration_id, email, link_id, recipient_auth_requirements, status, user_id].hash
|
145
|
+
[account_name, configuration_id, email, link_id, pdf_field_handling_option, recipient_auth_requirements, status, user_id].hash
|
136
146
|
end
|
137
147
|
|
138
148
|
# Builds the object from hash
|
@@ -16,6 +16,15 @@ module DocuSign_eSign
|
|
16
16
|
# Specifies a tag on the document in a location where the recipient can select an option.
|
17
17
|
attr_accessor :checkbox_tabs
|
18
18
|
|
19
|
+
# Specifies a tab on the document where you want the recipient to enter a date. Date tabs are single-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is retained. If you need a particular date format enforced, DocuSign recommends using a Text tab with a Validation Pattern and Validation Message to enforce the format.
|
20
|
+
attr_accessor :date_tabs
|
21
|
+
|
22
|
+
# Specifies a tag on the document where you want the recipient to enter an email. Email tags are single-line fields that accept any characters. The system checks that a valid email format (i.e. xxx@yyy.zzz) is entered in the tag. It uses the same parameters as a Text tab, with the validation message and pattern set for email information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
|
23
|
+
attr_accessor :email_tabs
|
24
|
+
|
25
|
+
# Specifies a tag on the document where you want the recipient to enter a number. It uses the same parameters as a Text tab, with the validation message and pattern set for number information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
|
26
|
+
attr_accessor :number_tabs
|
27
|
+
|
19
28
|
# Specifies a tag on the document in a location where the recipient can select one option from a group of options using a radio button. The radio buttons do not have to be on the same page in a document.
|
20
29
|
attr_accessor :radio_group_tabs
|
21
30
|
|
@@ -25,21 +34,32 @@ module DocuSign_eSign
|
|
25
34
|
#
|
26
35
|
attr_accessor :sender_name_tabs
|
27
36
|
|
37
|
+
# Specifies a tag on the document where you want the recipient to enter a Social Security Number (SSN). A SSN can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for SSN information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
|
38
|
+
attr_accessor :ssn_tabs
|
39
|
+
|
28
40
|
#
|
29
41
|
attr_accessor :tab_groups
|
30
42
|
|
31
43
|
# Specifies a that that is an adaptable field that allows the recipient to enter different text information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
|
32
44
|
attr_accessor :text_tabs
|
33
45
|
|
46
|
+
# Specifies a tag on the document where you want the recipient to enter a ZIP code. The ZIP code can be a five numbers or the ZIP+4 format with nine numbers. The zip code can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for ZIP code information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
|
47
|
+
attr_accessor :zip_tabs
|
48
|
+
|
34
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
50
|
def self.attribute_map
|
36
51
|
{
|
37
52
|
:'checkbox_tabs' => :'checkboxTabs',
|
53
|
+
:'date_tabs' => :'dateTabs',
|
54
|
+
:'email_tabs' => :'emailTabs',
|
55
|
+
:'number_tabs' => :'numberTabs',
|
38
56
|
:'radio_group_tabs' => :'radioGroupTabs',
|
39
57
|
:'sender_company_tabs' => :'senderCompanyTabs',
|
40
58
|
:'sender_name_tabs' => :'senderNameTabs',
|
59
|
+
:'ssn_tabs' => :'ssnTabs',
|
41
60
|
:'tab_groups' => :'tabGroups',
|
42
|
-
:'text_tabs' => :'textTabs'
|
61
|
+
:'text_tabs' => :'textTabs',
|
62
|
+
:'zip_tabs' => :'zipTabs'
|
43
63
|
}
|
44
64
|
end
|
45
65
|
|
@@ -47,11 +67,16 @@ module DocuSign_eSign
|
|
47
67
|
def self.swagger_types
|
48
68
|
{
|
49
69
|
:'checkbox_tabs' => :'Array<Checkbox>',
|
70
|
+
:'date_tabs' => :'Array<DocuSign_eSign::Date>',
|
71
|
+
:'email_tabs' => :'Array<Email>',
|
72
|
+
:'number_tabs' => :'Array<Number>',
|
50
73
|
:'radio_group_tabs' => :'Array<RadioGroup>',
|
51
74
|
:'sender_company_tabs' => :'Array<SenderCompany>',
|
52
75
|
:'sender_name_tabs' => :'Array<SenderName>',
|
76
|
+
:'ssn_tabs' => :'Array<Ssn>',
|
53
77
|
:'tab_groups' => :'Array<TabGroup>',
|
54
|
-
:'text_tabs' => :'Array<Text>'
|
78
|
+
:'text_tabs' => :'Array<Text>',
|
79
|
+
:'zip_tabs' => :'Array<Zip>'
|
55
80
|
}
|
56
81
|
end
|
57
82
|
|
@@ -69,6 +94,24 @@ module DocuSign_eSign
|
|
69
94
|
end
|
70
95
|
end
|
71
96
|
|
97
|
+
if attributes.has_key?(:'dateTabs')
|
98
|
+
if (value = attributes[:'dateTabs']).is_a?(Array)
|
99
|
+
self.date_tabs = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'emailTabs')
|
104
|
+
if (value = attributes[:'emailTabs']).is_a?(Array)
|
105
|
+
self.email_tabs = value
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'numberTabs')
|
110
|
+
if (value = attributes[:'numberTabs']).is_a?(Array)
|
111
|
+
self.number_tabs = value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
72
115
|
if attributes.has_key?(:'radioGroupTabs')
|
73
116
|
if (value = attributes[:'radioGroupTabs']).is_a?(Array)
|
74
117
|
self.radio_group_tabs = value
|
@@ -87,6 +130,12 @@ module DocuSign_eSign
|
|
87
130
|
end
|
88
131
|
end
|
89
132
|
|
133
|
+
if attributes.has_key?(:'ssnTabs')
|
134
|
+
if (value = attributes[:'ssnTabs']).is_a?(Array)
|
135
|
+
self.ssn_tabs = value
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
90
139
|
if attributes.has_key?(:'tabGroups')
|
91
140
|
if (value = attributes[:'tabGroups']).is_a?(Array)
|
92
141
|
self.tab_groups = value
|
@@ -98,6 +147,12 @@ module DocuSign_eSign
|
|
98
147
|
self.text_tabs = value
|
99
148
|
end
|
100
149
|
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'zipTabs')
|
152
|
+
if (value = attributes[:'zipTabs']).is_a?(Array)
|
153
|
+
self.zip_tabs = value
|
154
|
+
end
|
155
|
+
end
|
101
156
|
end
|
102
157
|
|
103
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,11 +174,16 @@ module DocuSign_eSign
|
|
119
174
|
return true if self.equal?(o)
|
120
175
|
self.class == o.class &&
|
121
176
|
checkbox_tabs == o.checkbox_tabs &&
|
177
|
+
date_tabs == o.date_tabs &&
|
178
|
+
email_tabs == o.email_tabs &&
|
179
|
+
number_tabs == o.number_tabs &&
|
122
180
|
radio_group_tabs == o.radio_group_tabs &&
|
123
181
|
sender_company_tabs == o.sender_company_tabs &&
|
124
182
|
sender_name_tabs == o.sender_name_tabs &&
|
183
|
+
ssn_tabs == o.ssn_tabs &&
|
125
184
|
tab_groups == o.tab_groups &&
|
126
|
-
text_tabs == o.text_tabs
|
185
|
+
text_tabs == o.text_tabs &&
|
186
|
+
zip_tabs == o.zip_tabs
|
127
187
|
end
|
128
188
|
|
129
189
|
# @see the `==` method
|
@@ -135,7 +195,7 @@ module DocuSign_eSign
|
|
135
195
|
# Calculates hash code according to all attributes.
|
136
196
|
# @return [Fixnum] Hash code
|
137
197
|
def hash
|
138
|
-
[checkbox_tabs, radio_group_tabs, sender_company_tabs, sender_name_tabs, tab_groups, text_tabs].hash
|
198
|
+
[checkbox_tabs, date_tabs, email_tabs, number_tabs, radio_group_tabs, sender_company_tabs, sender_name_tabs, ssn_tabs, tab_groups, text_tabs, zip_tabs].hash
|
139
199
|
end
|
140
200
|
|
141
201
|
# Builds the object from hash
|
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
class ScheduledSending
|
16
|
+
#
|
17
|
+
attr_accessor :resume_date
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :rules
|
21
|
+
|
22
|
+
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
23
|
+
attr_accessor :status
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'resume_date' => :'resumeDate',
|
29
|
+
:'rules' => :'rules',
|
30
|
+
:'status' => :'status'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'resume_date' => :'String',
|
38
|
+
:'rules' => :'Array<EnvelopeDelayRule>',
|
39
|
+
:'status' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
|
+
|
51
|
+
if attributes.has_key?(:'resumeDate')
|
52
|
+
self.resume_date = attributes[:'resumeDate']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'rules')
|
56
|
+
if (value = attributes[:'rules']).is_a?(Array)
|
57
|
+
self.rules = value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'status')
|
62
|
+
self.status = attributes[:'status']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
+
# @return Array for valid properties with the reasons
|
68
|
+
def list_invalid_properties
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
71
|
+
end
|
72
|
+
|
73
|
+
# Check to see if the all the properties in the model are valid
|
74
|
+
# @return true if the model is valid
|
75
|
+
def valid?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
resume_date == o.resume_date &&
|
85
|
+
rules == o.rules &&
|
86
|
+
status == o.status
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Fixnum] Hash code
|
97
|
+
def hash
|
98
|
+
[resume_date, rules, status].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.swagger_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :BOOLEAN
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
159
|
+
temp_model.build_from_hash(value)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the string representation of the object
|
164
|
+
# @return [String] String presentation of the object
|
165
|
+
def to_s
|
166
|
+
to_hash.to_s
|
167
|
+
end
|
168
|
+
|
169
|
+
# to_body is an alias to to_hash (backward compatibility)
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
171
|
+
def to_body
|
172
|
+
to_hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the object in the form of hash
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_hash
|
178
|
+
hash = {}
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
180
|
+
value = self.send(attr)
|
181
|
+
next if value.nil?
|
182
|
+
hash[param] = _to_hash(value)
|
183
|
+
end
|
184
|
+
hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Outputs non-array value in the form of hash
|
188
|
+
# For object, use to_hash. Otherwise, just return the value
|
189
|
+
# @param [Object] value Any valid value
|
190
|
+
# @return [Hash] Returns the value in the form of hash
|
191
|
+
def _to_hash(value)
|
192
|
+
if value.is_a?(Array)
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
194
|
+
elsif value.is_a?(Hash)
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
197
|
+
end
|
198
|
+
elsif value.respond_to? :to_hash
|
199
|
+
value.to_hash
|
200
|
+
else
|
201
|
+
value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
206
|
+
end
|
@@ -61,6 +61,9 @@ module DocuSign_eSign
|
|
61
61
|
# Determines if the feature set is actively set as part of the plan.
|
62
62
|
attr_accessor :is_admin
|
63
63
|
|
64
|
+
#
|
65
|
+
attr_accessor :is_alternate_admin
|
66
|
+
|
64
67
|
#
|
65
68
|
attr_accessor :is_nar_enabled
|
66
69
|
|
@@ -157,6 +160,7 @@ module DocuSign_eSign
|
|
157
160
|
:'home_address' => :'homeAddress',
|
158
161
|
:'initials_image_uri' => :'initialsImageUri',
|
159
162
|
:'is_admin' => :'isAdmin',
|
163
|
+
:'is_alternate_admin' => :'isAlternateAdmin',
|
160
164
|
:'is_nar_enabled' => :'isNAREnabled',
|
161
165
|
:'job_title' => :'jobTitle',
|
162
166
|
:'last_login' => :'lastLogin',
|
@@ -206,6 +210,7 @@ module DocuSign_eSign
|
|
206
210
|
:'home_address' => :'AddressInformation',
|
207
211
|
:'initials_image_uri' => :'String',
|
208
212
|
:'is_admin' => :'String',
|
213
|
+
:'is_alternate_admin' => :'String',
|
209
214
|
:'is_nar_enabled' => :'String',
|
210
215
|
:'job_title' => :'String',
|
211
216
|
:'last_login' => :'String',
|
@@ -317,6 +322,10 @@ module DocuSign_eSign
|
|
317
322
|
self.is_admin = attributes[:'isAdmin']
|
318
323
|
end
|
319
324
|
|
325
|
+
if attributes.has_key?(:'isAlternateAdmin')
|
326
|
+
self.is_alternate_admin = attributes[:'isAlternateAdmin']
|
327
|
+
end
|
328
|
+
|
320
329
|
if attributes.has_key?(:'isNAREnabled')
|
321
330
|
self.is_nar_enabled = attributes[:'isNAREnabled']
|
322
331
|
end
|
@@ -457,6 +466,7 @@ module DocuSign_eSign
|
|
457
466
|
home_address == o.home_address &&
|
458
467
|
initials_image_uri == o.initials_image_uri &&
|
459
468
|
is_admin == o.is_admin &&
|
469
|
+
is_alternate_admin == o.is_alternate_admin &&
|
460
470
|
is_nar_enabled == o.is_nar_enabled &&
|
461
471
|
job_title == o.job_title &&
|
462
472
|
last_login == o.last_login &&
|
@@ -494,7 +504,7 @@ module DocuSign_eSign
|
|
494
504
|
# Calculates hash code according to all attributes.
|
495
505
|
# @return [Fixnum] Hash code
|
496
506
|
def hash
|
497
|
-
[activation_access_code, company, connect_configurations, country_code, created_date_time, custom_settings, default_account_id, email, enable_connect_for_user, error_details, first_name, forgotten_password_info, group_list, has_remote_notary, home_address, initials_image_uri, is_admin, is_nar_enabled, job_title, last_login, last_name, login_status, middle_name, password, password_expiration, permission_profile_id, permission_profile_name, profile_image_uri, send_activation_email, send_activation_on_invalid_login, signature_image_uri, subscribe, suffix_name, title, uri, user_added_to_account_date_time, user_id, user_name, user_profile_last_modified_date, user_settings, user_status, user_type, work_address].hash
|
507
|
+
[activation_access_code, company, connect_configurations, country_code, created_date_time, custom_settings, default_account_id, email, enable_connect_for_user, error_details, first_name, forgotten_password_info, group_list, has_remote_notary, home_address, initials_image_uri, is_admin, is_alternate_admin, is_nar_enabled, job_title, last_login, last_name, login_status, middle_name, password, password_expiration, permission_profile_id, permission_profile_name, profile_image_uri, send_activation_email, send_activation_on_invalid_login, signature_image_uri, subscribe, suffix_name, title, uri, user_added_to_account_date_time, user_id, user_name, user_profile_last_modified_date, user_settings, user_status, user_type, work_address].hash
|
498
508
|
end
|
499
509
|
|
500
510
|
# Builds the object from hash
|