docusign_esign 3.1.0.pre.rc1 → 3.1.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,217 +0,0 @@
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
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
-
16
- class SamlAssertionAttribute
17
- attr_accessor :error_details
18
-
19
- #
20
- attr_accessor :name
21
-
22
- # The initial value of the tab when it was sent to the recipient.
23
- attr_accessor :original_value
24
-
25
- # The value associated with the named SAML assertion attribute
26
- attr_accessor :value
27
-
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- def self.attribute_map
31
- {
32
- :'error_details' => :'errorDetails',
33
- :'name' => :'name',
34
- :'original_value' => :'originalValue',
35
- :'value' => :'value'
36
- }
37
- end
38
-
39
- # Attribute type mapping.
40
- def self.swagger_types
41
- {
42
- :'error_details' => :'ErrorDetails',
43
- :'name' => :'String',
44
- :'original_value' => :'String',
45
- :'value' => :'String'
46
- }
47
- end
48
-
49
- # Initializes the object
50
- # @param [Hash] attributes Model attributes in the form of hash
51
- def initialize(attributes = {})
52
- return unless attributes.is_a?(Hash)
53
-
54
- # convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
-
57
- if attributes.has_key?(:'errorDetails')
58
- self.error_details = attributes[:'errorDetails']
59
- end
60
-
61
- if attributes.has_key?(:'name')
62
- self.name = attributes[:'name']
63
- end
64
-
65
- if attributes.has_key?(:'originalValue')
66
- self.original_value = attributes[:'originalValue']
67
- end
68
-
69
- if attributes.has_key?(:'value')
70
- self.value = attributes[:'value']
71
- end
72
-
73
- end
74
-
75
- # Show invalid properties with the reasons. Usually used together with valid?
76
- # @return Array for valid properies with the reasons
77
- def list_invalid_properties
78
- invalid_properties = Array.new
79
- return invalid_properties
80
- end
81
-
82
- # Check to see if the all the properties in the model are valid
83
- # @return true if the model is valid
84
- def valid?
85
- return true
86
- end
87
-
88
- # Checks equality by comparing each attribute.
89
- # @param [Object] Object to be compared
90
- def ==(o)
91
- return true if self.equal?(o)
92
- self.class == o.class &&
93
- error_details == o.error_details &&
94
- name == o.name &&
95
- original_value == o.original_value &&
96
- value == o.value
97
- end
98
-
99
- # @see the `==` method
100
- # @param [Object] Object to be compared
101
- def eql?(o)
102
- self == o
103
- end
104
-
105
- # Calculates hash code according to all attributes.
106
- # @return [Fixnum] Hash code
107
- def hash
108
- [error_details, name, original_value, value].hash
109
- end
110
-
111
- # Builds the object from hash
112
- # @param [Hash] attributes Model attributes in the form of hash
113
- # @return [Object] Returns the model itself
114
- def build_from_hash(attributes)
115
- return nil unless attributes.is_a?(Hash)
116
- self.class.swagger_types.each_pair do |key, type|
117
- if type =~ /\AArray<(.*)>/i
118
- # check to ensure the input is an array given that the the attribute
119
- # is documented as an array but the input is not
120
- if attributes[self.class.attribute_map[key]].is_a?(Array)
121
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
122
- end
123
- elsif !attributes[self.class.attribute_map[key]].nil?
124
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
- end # or else data not found in attributes(hash), not an issue as the data can be optional
126
- end
127
-
128
- self
129
- end
130
-
131
- # Deserializes the data based on type
132
- # @param string type Data type
133
- # @param string value Value to be deserialized
134
- # @return [Object] Deserialized data
135
- def _deserialize(type, value)
136
- case type.to_sym
137
- when :DateTime
138
- DateTime.parse(value)
139
- when :Date
140
- Date.parse(value)
141
- when :String
142
- value.to_s
143
- when :Integer
144
- value.to_i
145
- when :Float
146
- value.to_f
147
- when :BOOLEAN
148
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
- true
150
- else
151
- false
152
- end
153
- when :Object
154
- # generic object (usually a Hash), return directly
155
- value
156
- when /\AArray<(?<inner_type>.+)>\z/
157
- inner_type = Regexp.last_match[:inner_type]
158
- value.map { |v| _deserialize(inner_type, v) }
159
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
- k_type = Regexp.last_match[:k_type]
161
- v_type = Regexp.last_match[:v_type]
162
- {}.tap do |hash|
163
- value.each do |k, v|
164
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
- end
166
- end
167
- else # model
168
- temp_model = DocuSign_eSign.const_get(type).new
169
- temp_model.build_from_hash(value)
170
- end
171
- end
172
-
173
- # Returns the string representation of the object
174
- # @return [String] String presentation of the object
175
- def to_s
176
- to_hash.to_s
177
- end
178
-
179
- # to_body is an alias to to_hash (backward compatibility)
180
- # @return [Hash] Returns the object in the form of hash
181
- def to_body
182
- to_hash
183
- end
184
-
185
- # Returns the object in the form of hash
186
- # @return [Hash] Returns the object in the form of hash
187
- def to_hash
188
- hash = {}
189
- self.class.attribute_map.each_pair do |attr, param|
190
- value = self.send(attr)
191
- next if value.nil?
192
- hash[param] = _to_hash(value)
193
- end
194
- hash
195
- end
196
-
197
- # Outputs non-array value in the form of hash
198
- # For object, use to_hash. Otherwise, just return the value
199
- # @param [Object] value Any valid value
200
- # @return [Hash] Returns the value in the form of hash
201
- def _to_hash(value)
202
- if value.is_a?(Array)
203
- value.compact.map{ |v| _to_hash(v) }
204
- elsif value.is_a?(Hash)
205
- {}.tap do |hash|
206
- value.each { |k, v| hash[k] = _to_hash(v) }
207
- end
208
- elsif value.respond_to? :to_hash
209
- value.to_hash
210
- else
211
- value
212
- end
213
- end
214
-
215
- end
216
-
217
- end
data/tests/Gemfile.lock DELETED
@@ -1,42 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- docusign_esign (2.2.0.pre.rc1)
5
- json (~> 2.1, >= 2.1.0)
6
- jwt (~> 1.0, >= 1.5.2)
7
- typhoeus (~> 1.0, >= 1.0.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- diff-lcs (1.3)
13
- ethon (0.12.0)
14
- ffi (>= 1.3.0)
15
- ffi (1.11.1)
16
- json (2.2.0)
17
- jwt (1.5.6)
18
- rspec (3.8.0)
19
- rspec-core (~> 3.8.0)
20
- rspec-expectations (~> 3.8.0)
21
- rspec-mocks (~> 3.8.0)
22
- rspec-core (3.8.2)
23
- rspec-support (~> 3.8.0)
24
- rspec-expectations (3.8.4)
25
- diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.8.0)
27
- rspec-mocks (3.8.1)
28
- diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.8.0)
30
- rspec-support (3.8.2)
31
- typhoeus (1.3.1)
32
- ethon (>= 0.9.0)
33
-
34
- PLATFORMS
35
- ruby
36
-
37
- DEPENDENCIES
38
- docusign_esign!
39
- rspec
40
-
41
- BUNDLED WITH
42
- 2.0.2
@@ -1,27 +0,0 @@
1
- -----BEGIN RSA PRIVATE KEY-----
2
- MIIEogIBAAKCAQEAq1yUzw3owo+yIuBntG4EFPEaeJqemjdnIKu4JJB8Vm5LJRaX
3
- 68smh+pz2K0GtfqB3fiIaguw3NsVZ8v+carfxzoX58jeiITi6NDXK6i3Q+9tyCJp
4
- rxcmTlyPIh1o+R9BaZAn7Uc0OIkkconrncRlDAjgRusBs79izJIqMHE+YG5uSCG+
5
- TLDP+LtzzPK8A4rRB+/lDKoXM+O905KBSEJyZ2xGZOHY4SEWKH5vjA50syy6oGpM
6
- Hpcpx4rrvRLfcmJDcSHvY1WT3GaPAOXnSoGzUDnwiOPdS1rcznH2nwrw+kPWxHwj
7
- sE2O/jvELduVl8H/PPsW1wtyjnEt7B7Q9wrWcwIDAQABAoIBAAMpoHW5BJg+7Gm5
8
- TZk1Wg4RKARhI32u3/KTi/PhVoKohPu4cvYBTVyL3z9WsJCvGkw3/W8yzcVtLnyN
9
- uf90hJ0tA8RVBZbsXGWX/0GxwRxku3IGVm790rfDYwVp9nlobe7TsSOeZ6sO6jyw
10
- h1kp3EiggqS9fgFIhbLgtmE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