docusign_esign 3.11.0.rc1 → 3.13.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +12 -1
- data/docusign_esign.gemspec +1 -0
- data/lib/docusign_esign/api/accounts_api.rb +4 -4
- data/lib/docusign_esign/api/billing_api.rb +6 -2
- data/lib/docusign_esign/api/connect_api.rb +85 -0
- data/lib/docusign_esign/api/envelopes_api.rb +137 -3
- data/lib/docusign_esign/client/api_client.rb +3 -2
- data/lib/docusign_esign/configuration.rb +2 -1
- data/lib/docusign_esign/models/account_billing_plan.rb +21 -1
- data/lib/docusign_esign/models/account_billing_plan_response.rb +20 -1
- data/lib/docusign_esign/models/account_settings_information.rb +39 -1
- data/lib/docusign_esign/models/account_signature_definition.rb +11 -1
- data/lib/docusign_esign/models/agent.rb +1 -10
- data/lib/docusign_esign/models/app_store_receipt.rb +21 -1
- data/lib/docusign_esign/models/billing_charge.rb +1 -1
- data/lib/docusign_esign/models/carbon_copy.rb +1 -10
- data/lib/docusign_esign/models/certified_delivery.rb +1 -10
- data/lib/docusign_esign/models/checkbox.rb +20 -1
- data/lib/docusign_esign/models/connect_custom_configuration.rb +14 -4
- data/lib/docusign_esign/models/connect_user_info.rb +224 -0
- data/lib/docusign_esign/models/credit_card_information.rb +24 -4
- data/lib/docusign_esign/models/date.rb +20 -1
- data/lib/docusign_esign/models/downgrade_billing_plan_information.rb +44 -4
- data/lib/docusign_esign/models/downgrade_plan_update_response.rb +64 -4
- data/lib/docusign_esign/models/downgrade_request_information.rb +204 -0
- data/lib/docusign_esign/models/editor.rb +1 -10
- data/lib/docusign_esign/models/email.rb +20 -1
- data/lib/docusign_esign/models/event_notification.rb +11 -1
- data/lib/docusign_esign/models/formula_tab.rb +20 -1
- data/lib/docusign_esign/models/integrated_connect_user_info_list.rb +246 -0
- data/lib/docusign_esign/models/intermediary.rb +1 -10
- data/lib/docusign_esign/models/list.rb +20 -1
- data/lib/docusign_esign/models/notary_recipient.rb +1 -10
- data/lib/docusign_esign/models/number.rb +20 -1
- data/lib/docusign_esign/models/radio_group.rb +20 -1
- data/lib/docusign_esign/models/recipient_identity_phone_number.rb +41 -4
- data/lib/docusign_esign/models/recipient_identity_verification.rb +13 -4
- data/lib/docusign_esign/models/recipient_proof_file.rb +11 -1
- data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +31 -1
- data/lib/docusign_esign/models/signer.rb +1 -10
- data/lib/docusign_esign/models/ssn.rb +20 -1
- data/lib/docusign_esign/models/template_role.rb +10 -1
- data/lib/docusign_esign/models/text.rb +20 -1
- data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
- data/lib/docusign_esign/models/user_signature_definition.rb +11 -1
- data/lib/docusign_esign/models/witness.rb +1 -10
- data/lib/docusign_esign/models/zip.rb +20 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +3 -1
- data/runLinter.sh +1 -0
- metadata +124 -79
- checksums.yaml +0 -7
- data/Gemfile.lock +0 -73
- data/docusign_esign-2.11.0.rc1.gem +0 -0
- data/lib/docusign_esign/.DS_Store +0 -0
- data/lib/docusign_esign/api/.DS_Store +0 -0
- data/lib/docusign_esign/client/.DS_Store +0 -0
- data/tests/.DS_Store +0 -0
- data/tests/Gemfile.lock +0 -42
- data/tests/docs/private.pem +0 -27
@@ -0,0 +1,224 @@
|
|
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 ConnectUserInfo
|
16
|
+
#
|
17
|
+
attr_accessor :email
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :is_included
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :is_part_of_domain
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :user_id
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :user_name
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'email' => :'email',
|
35
|
+
:'is_included' => :'isIncluded',
|
36
|
+
:'is_part_of_domain' => :'isPartOfDomain',
|
37
|
+
:'user_id' => :'userId',
|
38
|
+
:'user_name' => :'userName'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'email' => :'String',
|
46
|
+
:'is_included' => :'String',
|
47
|
+
:'is_part_of_domain' => :'String',
|
48
|
+
:'user_id' => :'String',
|
49
|
+
:'user_name' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
|
+
|
61
|
+
if attributes.has_key?(:'email')
|
62
|
+
self.email = attributes[:'email']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'isIncluded')
|
66
|
+
self.is_included = attributes[:'isIncluded']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'isPartOfDomain')
|
70
|
+
self.is_part_of_domain = attributes[:'isPartOfDomain']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'userId')
|
74
|
+
self.user_id = attributes[:'userId']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'userName')
|
78
|
+
self.user_name = attributes[:'userName']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
83
|
+
# @return Array for valid properties with the reasons
|
84
|
+
def list_invalid_properties
|
85
|
+
invalid_properties = Array.new
|
86
|
+
invalid_properties
|
87
|
+
end
|
88
|
+
|
89
|
+
# Check to see if the all the properties in the model are valid
|
90
|
+
# @return true if the model is valid
|
91
|
+
def valid?
|
92
|
+
true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def ==(o)
|
98
|
+
return true if self.equal?(o)
|
99
|
+
self.class == o.class &&
|
100
|
+
email == o.email &&
|
101
|
+
is_included == o.is_included &&
|
102
|
+
is_part_of_domain == o.is_part_of_domain &&
|
103
|
+
user_id == o.user_id &&
|
104
|
+
user_name == o.user_name
|
105
|
+
end
|
106
|
+
|
107
|
+
# @see the `==` method
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def eql?(o)
|
110
|
+
self == o
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Fixnum] Hash code
|
115
|
+
def hash
|
116
|
+
[email, is_included, is_part_of_domain, user_id, user_name].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def build_from_hash(attributes)
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
124
|
+
self.class.swagger_types.each_pair do |key, type|
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :DateTime
|
146
|
+
DateTime.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :BOOLEAN
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
177
|
+
temp_model.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
next if value.nil?
|
200
|
+
hash[param] = _to_hash(value)
|
201
|
+
end
|
202
|
+
hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Outputs non-array value in the form of hash
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
207
|
+
# @param [Object] value Any valid value
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
209
|
+
def _to_hash(value)
|
210
|
+
if value.is_a?(Array)
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
212
|
+
elsif value.is_a?(Hash)
|
213
|
+
{}.tap do |hash|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
+
end
|
216
|
+
elsif value.respond_to? :to_hash
|
217
|
+
value.to_hash
|
218
|
+
else
|
219
|
+
value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
@@ -15,6 +15,9 @@ module DocuSign_eSign
|
|
15
15
|
class CreditCardInformation
|
16
16
|
attr_accessor :address
|
17
17
|
|
18
|
+
#
|
19
|
+
attr_accessor :card_last_digits
|
20
|
+
|
18
21
|
# The number on the credit card.
|
19
22
|
attr_accessor :card_number
|
20
23
|
|
@@ -33,16 +36,21 @@ module DocuSign_eSign
|
|
33
36
|
# The exact name printed on the credit card.
|
34
37
|
attr_accessor :name_on_card
|
35
38
|
|
39
|
+
#
|
40
|
+
attr_accessor :tokenized_card
|
41
|
+
|
36
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
43
|
def self.attribute_map
|
38
44
|
{
|
39
45
|
:'address' => :'address',
|
46
|
+
:'card_last_digits' => :'cardLastDigits',
|
40
47
|
:'card_number' => :'cardNumber',
|
41
48
|
:'card_type' => :'cardType',
|
42
49
|
:'cv_number' => :'cvNumber',
|
43
50
|
:'expiration_month' => :'expirationMonth',
|
44
51
|
:'expiration_year' => :'expirationYear',
|
45
|
-
:'name_on_card' => :'nameOnCard'
|
52
|
+
:'name_on_card' => :'nameOnCard',
|
53
|
+
:'tokenized_card' => :'tokenizedCard'
|
46
54
|
}
|
47
55
|
end
|
48
56
|
|
@@ -50,12 +58,14 @@ module DocuSign_eSign
|
|
50
58
|
def self.swagger_types
|
51
59
|
{
|
52
60
|
:'address' => :'AddressInformation',
|
61
|
+
:'card_last_digits' => :'String',
|
53
62
|
:'card_number' => :'String',
|
54
63
|
:'card_type' => :'String',
|
55
64
|
:'cv_number' => :'String',
|
56
65
|
:'expiration_month' => :'String',
|
57
66
|
:'expiration_year' => :'String',
|
58
|
-
:'name_on_card' => :'String'
|
67
|
+
:'name_on_card' => :'String',
|
68
|
+
:'tokenized_card' => :'String'
|
59
69
|
}
|
60
70
|
end
|
61
71
|
|
@@ -71,6 +81,10 @@ module DocuSign_eSign
|
|
71
81
|
self.address = attributes[:'address']
|
72
82
|
end
|
73
83
|
|
84
|
+
if attributes.has_key?(:'cardLastDigits')
|
85
|
+
self.card_last_digits = attributes[:'cardLastDigits']
|
86
|
+
end
|
87
|
+
|
74
88
|
if attributes.has_key?(:'cardNumber')
|
75
89
|
self.card_number = attributes[:'cardNumber']
|
76
90
|
end
|
@@ -94,6 +108,10 @@ module DocuSign_eSign
|
|
94
108
|
if attributes.has_key?(:'nameOnCard')
|
95
109
|
self.name_on_card = attributes[:'nameOnCard']
|
96
110
|
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'tokenizedCard')
|
113
|
+
self.tokenized_card = attributes[:'tokenizedCard']
|
114
|
+
end
|
97
115
|
end
|
98
116
|
|
99
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,12 +133,14 @@ module DocuSign_eSign
|
|
115
133
|
return true if self.equal?(o)
|
116
134
|
self.class == o.class &&
|
117
135
|
address == o.address &&
|
136
|
+
card_last_digits == o.card_last_digits &&
|
118
137
|
card_number == o.card_number &&
|
119
138
|
card_type == o.card_type &&
|
120
139
|
cv_number == o.cv_number &&
|
121
140
|
expiration_month == o.expiration_month &&
|
122
141
|
expiration_year == o.expiration_year &&
|
123
|
-
name_on_card == o.name_on_card
|
142
|
+
name_on_card == o.name_on_card &&
|
143
|
+
tokenized_card == o.tokenized_card
|
124
144
|
end
|
125
145
|
|
126
146
|
# @see the `==` method
|
@@ -132,7 +152,7 @@ module DocuSign_eSign
|
|
132
152
|
# Calculates hash code according to all attributes.
|
133
153
|
# @return [Fixnum] Hash code
|
134
154
|
def hash
|
135
|
-
[address, card_number, card_type, cv_number, expiration_month, expiration_year, name_on_card].hash
|
155
|
+
[address, card_last_digits, card_number, card_type, cv_number, expiration_month, expiration_year, name_on_card, tokenized_card].hash
|
136
156
|
end
|
137
157
|
|
138
158
|
# Builds the object from hash
|
@@ -207,6 +207,11 @@ module DocuSign_eSign
|
|
207
207
|
|
208
208
|
attr_accessor :shared_metadata
|
209
209
|
|
210
|
+
#
|
211
|
+
attr_accessor :share_to_recipients
|
212
|
+
|
213
|
+
attr_accessor :share_to_recipients_metadata
|
214
|
+
|
210
215
|
attr_accessor :smart_contract_information
|
211
216
|
|
212
217
|
#
|
@@ -373,6 +378,8 @@ module DocuSign_eSign
|
|
373
378
|
:'sender_required_metadata' => :'senderRequiredMetadata',
|
374
379
|
:'shared' => :'shared',
|
375
380
|
:'shared_metadata' => :'sharedMetadata',
|
381
|
+
:'share_to_recipients' => :'shareToRecipients',
|
382
|
+
:'share_to_recipients_metadata' => :'shareToRecipientsMetadata',
|
376
383
|
:'smart_contract_information' => :'smartContractInformation',
|
377
384
|
:'source' => :'source',
|
378
385
|
:'status' => :'status',
|
@@ -491,6 +498,8 @@ module DocuSign_eSign
|
|
491
498
|
:'sender_required_metadata' => :'PropertyMetadata',
|
492
499
|
:'shared' => :'String',
|
493
500
|
:'shared_metadata' => :'PropertyMetadata',
|
501
|
+
:'share_to_recipients' => :'String',
|
502
|
+
:'share_to_recipients_metadata' => :'PropertyMetadata',
|
494
503
|
:'smart_contract_information' => :'SmartContractInformation',
|
495
504
|
:'source' => :'String',
|
496
505
|
:'status' => :'String',
|
@@ -848,6 +857,14 @@ module DocuSign_eSign
|
|
848
857
|
self.shared_metadata = attributes[:'sharedMetadata']
|
849
858
|
end
|
850
859
|
|
860
|
+
if attributes.has_key?(:'shareToRecipients')
|
861
|
+
self.share_to_recipients = attributes[:'shareToRecipients']
|
862
|
+
end
|
863
|
+
|
864
|
+
if attributes.has_key?(:'shareToRecipientsMetadata')
|
865
|
+
self.share_to_recipients_metadata = attributes[:'shareToRecipientsMetadata']
|
866
|
+
end
|
867
|
+
|
851
868
|
if attributes.has_key?(:'smartContractInformation')
|
852
869
|
self.smart_contract_information = attributes[:'smartContractInformation']
|
853
870
|
end
|
@@ -1083,6 +1100,8 @@ module DocuSign_eSign
|
|
1083
1100
|
sender_required_metadata == o.sender_required_metadata &&
|
1084
1101
|
shared == o.shared &&
|
1085
1102
|
shared_metadata == o.shared_metadata &&
|
1103
|
+
share_to_recipients == o.share_to_recipients &&
|
1104
|
+
share_to_recipients_metadata == o.share_to_recipients_metadata &&
|
1086
1105
|
smart_contract_information == o.smart_contract_information &&
|
1087
1106
|
source == o.source &&
|
1088
1107
|
status == o.status &&
|
@@ -1128,7 +1147,7 @@ module DocuSign_eSign
|
|
1128
1147
|
# Calculates hash code according to all attributes.
|
1129
1148
|
# @return [Fixnum] Hash code
|
1130
1149
|
def hash
|
1131
|
-
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1150
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_metadata, share_to_recipients, share_to_recipients_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1132
1151
|
end
|
1133
1152
|
|
1134
1153
|
# Builds the object from hash
|
@@ -18,11 +18,27 @@ module DocuSign_eSign
|
|
18
18
|
|
19
19
|
attr_accessor :plan_information
|
20
20
|
|
21
|
+
#
|
22
|
+
attr_accessor :promo_code
|
23
|
+
|
24
|
+
#
|
25
|
+
attr_accessor :sale_discount
|
26
|
+
|
27
|
+
#
|
28
|
+
attr_accessor :sale_discount_periods
|
29
|
+
|
30
|
+
#
|
31
|
+
attr_accessor :sale_discount_type
|
32
|
+
|
21
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
34
|
def self.attribute_map
|
23
35
|
{
|
24
36
|
:'downgrade_event_type' => :'downgradeEventType',
|
25
|
-
:'plan_information' => :'planInformation'
|
37
|
+
:'plan_information' => :'planInformation',
|
38
|
+
:'promo_code' => :'promoCode',
|
39
|
+
:'sale_discount' => :'saleDiscount',
|
40
|
+
:'sale_discount_periods' => :'saleDiscountPeriods',
|
41
|
+
:'sale_discount_type' => :'saleDiscountType'
|
26
42
|
}
|
27
43
|
end
|
28
44
|
|
@@ -30,7 +46,11 @@ module DocuSign_eSign
|
|
30
46
|
def self.swagger_types
|
31
47
|
{
|
32
48
|
:'downgrade_event_type' => :'String',
|
33
|
-
:'plan_information' => :'PlanInformation'
|
49
|
+
:'plan_information' => :'PlanInformation',
|
50
|
+
:'promo_code' => :'String',
|
51
|
+
:'sale_discount' => :'String',
|
52
|
+
:'sale_discount_periods' => :'String',
|
53
|
+
:'sale_discount_type' => :'String'
|
34
54
|
}
|
35
55
|
end
|
36
56
|
|
@@ -49,6 +69,22 @@ module DocuSign_eSign
|
|
49
69
|
if attributes.has_key?(:'planInformation')
|
50
70
|
self.plan_information = attributes[:'planInformation']
|
51
71
|
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'promoCode')
|
74
|
+
self.promo_code = attributes[:'promoCode']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'saleDiscount')
|
78
|
+
self.sale_discount = attributes[:'saleDiscount']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'saleDiscountPeriods')
|
82
|
+
self.sale_discount_periods = attributes[:'saleDiscountPeriods']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'saleDiscountType')
|
86
|
+
self.sale_discount_type = attributes[:'saleDiscountType']
|
87
|
+
end
|
52
88
|
end
|
53
89
|
|
54
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -70,7 +106,11 @@ module DocuSign_eSign
|
|
70
106
|
return true if self.equal?(o)
|
71
107
|
self.class == o.class &&
|
72
108
|
downgrade_event_type == o.downgrade_event_type &&
|
73
|
-
plan_information == o.plan_information
|
109
|
+
plan_information == o.plan_information &&
|
110
|
+
promo_code == o.promo_code &&
|
111
|
+
sale_discount == o.sale_discount &&
|
112
|
+
sale_discount_periods == o.sale_discount_periods &&
|
113
|
+
sale_discount_type == o.sale_discount_type
|
74
114
|
end
|
75
115
|
|
76
116
|
# @see the `==` method
|
@@ -82,7 +122,7 @@ module DocuSign_eSign
|
|
82
122
|
# Calculates hash code according to all attributes.
|
83
123
|
# @return [Fixnum] Hash code
|
84
124
|
def hash
|
85
|
-
[downgrade_event_type, plan_information].hash
|
125
|
+
[downgrade_event_type, plan_information, promo_code, sale_discount, sale_discount_periods, sale_discount_type].hash
|
86
126
|
end
|
87
127
|
|
88
128
|
# Builds the object from hash
|
@@ -16,6 +16,9 @@ module DocuSign_eSign
|
|
16
16
|
#
|
17
17
|
attr_accessor :account_payment_method
|
18
18
|
|
19
|
+
#
|
20
|
+
attr_accessor :discount_applied
|
21
|
+
|
19
22
|
#
|
20
23
|
attr_accessor :downgrade_effective_date
|
21
24
|
|
@@ -34,16 +37,37 @@ module DocuSign_eSign
|
|
34
37
|
#
|
35
38
|
attr_accessor :message
|
36
39
|
|
40
|
+
#
|
41
|
+
attr_accessor :product_id
|
42
|
+
|
43
|
+
#
|
44
|
+
attr_accessor :promo_code
|
45
|
+
|
46
|
+
#
|
47
|
+
attr_accessor :sale_discount
|
48
|
+
|
49
|
+
#
|
50
|
+
attr_accessor :sale_discount_periods
|
51
|
+
|
52
|
+
#
|
53
|
+
attr_accessor :sale_discount_type
|
54
|
+
|
37
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
56
|
def self.attribute_map
|
39
57
|
{
|
40
58
|
:'account_payment_method' => :'accountPaymentMethod',
|
59
|
+
:'discount_applied' => :'discountApplied',
|
41
60
|
:'downgrade_effective_date' => :'downgradeEffectiveDate',
|
42
61
|
:'downgrade_payment_cycle' => :'downgradePaymentCycle',
|
43
62
|
:'downgrade_plan_id' => :'downgradePlanId',
|
44
63
|
:'downgrade_plan_name' => :'downgradePlanName',
|
45
64
|
:'downgrade_request_status' => :'downgradeRequestStatus',
|
46
|
-
:'message' => :'message'
|
65
|
+
:'message' => :'message',
|
66
|
+
:'product_id' => :'productId',
|
67
|
+
:'promo_code' => :'promoCode',
|
68
|
+
:'sale_discount' => :'saleDiscount',
|
69
|
+
:'sale_discount_periods' => :'saleDiscountPeriods',
|
70
|
+
:'sale_discount_type' => :'saleDiscountType'
|
47
71
|
}
|
48
72
|
end
|
49
73
|
|
@@ -51,12 +75,18 @@ module DocuSign_eSign
|
|
51
75
|
def self.swagger_types
|
52
76
|
{
|
53
77
|
:'account_payment_method' => :'String',
|
78
|
+
:'discount_applied' => :'String',
|
54
79
|
:'downgrade_effective_date' => :'String',
|
55
80
|
:'downgrade_payment_cycle' => :'String',
|
56
81
|
:'downgrade_plan_id' => :'String',
|
57
82
|
:'downgrade_plan_name' => :'String',
|
58
83
|
:'downgrade_request_status' => :'String',
|
59
|
-
:'message' => :'String'
|
84
|
+
:'message' => :'String',
|
85
|
+
:'product_id' => :'String',
|
86
|
+
:'promo_code' => :'String',
|
87
|
+
:'sale_discount' => :'String',
|
88
|
+
:'sale_discount_periods' => :'String',
|
89
|
+
:'sale_discount_type' => :'String'
|
60
90
|
}
|
61
91
|
end
|
62
92
|
|
@@ -72,6 +102,10 @@ module DocuSign_eSign
|
|
72
102
|
self.account_payment_method = attributes[:'accountPaymentMethod']
|
73
103
|
end
|
74
104
|
|
105
|
+
if attributes.has_key?(:'discountApplied')
|
106
|
+
self.discount_applied = attributes[:'discountApplied']
|
107
|
+
end
|
108
|
+
|
75
109
|
if attributes.has_key?(:'downgradeEffectiveDate')
|
76
110
|
self.downgrade_effective_date = attributes[:'downgradeEffectiveDate']
|
77
111
|
end
|
@@ -95,6 +129,26 @@ module DocuSign_eSign
|
|
95
129
|
if attributes.has_key?(:'message')
|
96
130
|
self.message = attributes[:'message']
|
97
131
|
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'productId')
|
134
|
+
self.product_id = attributes[:'productId']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'promoCode')
|
138
|
+
self.promo_code = attributes[:'promoCode']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'saleDiscount')
|
142
|
+
self.sale_discount = attributes[:'saleDiscount']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'saleDiscountPeriods')
|
146
|
+
self.sale_discount_periods = attributes[:'saleDiscountPeriods']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'saleDiscountType')
|
150
|
+
self.sale_discount_type = attributes[:'saleDiscountType']
|
151
|
+
end
|
98
152
|
end
|
99
153
|
|
100
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,12 +170,18 @@ module DocuSign_eSign
|
|
116
170
|
return true if self.equal?(o)
|
117
171
|
self.class == o.class &&
|
118
172
|
account_payment_method == o.account_payment_method &&
|
173
|
+
discount_applied == o.discount_applied &&
|
119
174
|
downgrade_effective_date == o.downgrade_effective_date &&
|
120
175
|
downgrade_payment_cycle == o.downgrade_payment_cycle &&
|
121
176
|
downgrade_plan_id == o.downgrade_plan_id &&
|
122
177
|
downgrade_plan_name == o.downgrade_plan_name &&
|
123
178
|
downgrade_request_status == o.downgrade_request_status &&
|
124
|
-
message == o.message
|
179
|
+
message == o.message &&
|
180
|
+
product_id == o.product_id &&
|
181
|
+
promo_code == o.promo_code &&
|
182
|
+
sale_discount == o.sale_discount &&
|
183
|
+
sale_discount_periods == o.sale_discount_periods &&
|
184
|
+
sale_discount_type == o.sale_discount_type
|
125
185
|
end
|
126
186
|
|
127
187
|
# @see the `==` method
|
@@ -133,7 +193,7 @@ module DocuSign_eSign
|
|
133
193
|
# Calculates hash code according to all attributes.
|
134
194
|
# @return [Fixnum] Hash code
|
135
195
|
def hash
|
136
|
-
[account_payment_method, downgrade_effective_date, downgrade_payment_cycle, downgrade_plan_id, downgrade_plan_name, downgrade_request_status, message].hash
|
196
|
+
[account_payment_method, discount_applied, downgrade_effective_date, downgrade_payment_cycle, downgrade_plan_id, downgrade_plan_name, downgrade_request_status, message, product_id, promo_code, sale_discount, sale_discount_periods, sale_discount_type].hash
|
137
197
|
end
|
138
198
|
|
139
199
|
# Builds the object from hash
|