docusign_click 1.1.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54c3a561390af917e9e249c8ae658624f5841b2e7c1b20a7142eeed58ef5c351
4
- data.tar.gz: 304e3dab2fdf316a5d1ff663cd4923f466feba8897ea1f38ec6d258bdab08b2e
3
+ metadata.gz: 263cc3244aeb4670280d9546da89e2b8a57f92f9468b6cee6ddc5b0ef90dd7f3
4
+ data.tar.gz: 46dcfb89ea4d5f6f7819ed840c1ef06255c1f7cf416bfdfc0068bfac87f57306
5
5
  SHA512:
6
- metadata.gz: e414962999263a2b9d368fe76f203661e9d23147bd2d6ea074e7693da29de86f6d5717ea293725d615d2913e246dc6d0b06c230b9e23e7a3ccf5d9d858c3ec24
7
- data.tar.gz: acfd800a7e9acd04e44a43f44559980dc79d9fec52ee3c7d1145b0f7acdcb6925f5768d22374bce7e45797c2a7a54b7401259096dee8e7d81ef5426af6f00f37
6
+ metadata.gz: 49b353f73394253f63377b2345c50e6c4feadb46d95c4d7d960ecf54ceeedb8cfa882ccd4a8e56d44706270cc5aece670baa1f650d855379b15b9b0ec26f2a77
7
+ data.tar.gz: 7d215ecc40503b648284551a38d23479040c8d24a413903565992117ded638b210422d974c657f54c45d6c74e6a65138847e713cb8d5c108bf2bbd40ae71f7ba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # DocuSign Click Ruby Client Changelog
2
2
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3
3
 
4
+ ## [v1.2.2] - Click API v1-22.3.01.00 - 2022-10-28
5
+ ### Changed
6
+ - Added support for version v1-22.3.01.00 of the DocuSign Click API.
7
+ - Updated the SDK release version.
8
+
4
9
  ## [1.1.0] - Click API v1-21.4.01 - 2021-12-09
5
10
  ### Changed
6
11
  - Added support for version v1-21.4.01 of the DocuSign Click API.
@@ -565,6 +565,67 @@ module DocuSign_Click
565
565
  return data, status_code, headers
566
566
  end
567
567
 
568
+ # Downloads a document at an order within the agreement.
569
+ #
570
+ # @param account_id
571
+ # @param clickwrap_id
572
+ # @param order_or_disclosure
573
+ # @param version_id
574
+ # @return [Document]
575
+ def get_agreement_document(account_id, clickwrap_id, order_or_disclosure, version_id)
576
+ data, _status_code, _headers = get_agreement_document_with_http_info(account_id, clickwrap_id, order_or_disclosure, version_id)
577
+ return data
578
+ end
579
+
580
+ # Downloads a document at an order within the agreement.
581
+ #
582
+ # @param account_id
583
+ # @param clickwrap_id
584
+ # @param order_or_disclosure
585
+ # @param version_id
586
+ # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
587
+ def get_agreement_document_with_http_info(account_id, clickwrap_id, order_or_disclosure, version_id)
588
+ if @api_client.config.debugging
589
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_agreement_document ..."
590
+ end
591
+ # verify the required parameter 'account_id' is set
592
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_agreement_document" if account_id.nil?
593
+ # verify the required parameter 'clickwrap_id' is set
594
+ fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_agreement_document" if clickwrap_id.nil?
595
+ # verify the required parameter 'order_or_disclosure' is set
596
+ fail ArgumentError, "Missing the required parameter 'order_or_disclosure' when calling AccountsApi.get_agreement_document" if order_or_disclosure.nil?
597
+ # verify the required parameter 'version_id' is set
598
+ fail ArgumentError, "Missing the required parameter 'version_id' when calling AccountsApi.get_agreement_document" if version_id.nil?
599
+ # resource path
600
+ local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionId}/documents/{orderOrDisclosure}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'orderOrDisclosure' + '}', order_or_disclosure.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
601
+
602
+ # query parameters
603
+ query_params = {}
604
+
605
+ # header parameters
606
+ header_params = {}
607
+ # HTTP header 'Accept' (if needed)
608
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
609
+
610
+ # form parameters
611
+ form_params = {}
612
+
613
+ # http body (model)
614
+ post_body = nil
615
+ auth_names = []
616
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
617
+ :header_params => header_params,
618
+ :query_params => query_params,
619
+ :form_params => form_params,
620
+ :body => post_body,
621
+ :auth_names => auth_names,
622
+ :return_type => 'Document')
623
+ if @api_client.config.debugging
624
+ @api_client.config.logger.debug "API called: AccountsApi#get_agreement_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
625
+ end
626
+ return data, status_code, headers
627
+ end
628
+
568
629
  # Downloads the agreement PDF and optionally certificate of completion.
569
630
  #
570
631
  # @param account_id
@@ -35,7 +35,7 @@ module DocuSign_Click
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/1.1.0/ruby"
38
+ @user_agent = "Swagger-Codegen/1.2.2/ruby"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent
@@ -16,6 +16,9 @@ module DocuSign_Click
16
16
  #
17
17
  attr_accessor :clickwrap_name
18
18
 
19
+ #
20
+ attr_accessor :data_fields
21
+
19
22
  attr_accessor :display_settings
20
23
 
21
24
  #
@@ -54,6 +57,7 @@ module DocuSign_Click
54
57
  def self.attribute_map
55
58
  {
56
59
  :'clickwrap_name' => :'clickwrapName',
60
+ :'data_fields' => :'dataFields',
57
61
  :'display_settings' => :'displaySettings',
58
62
  :'documents' => :'documents',
59
63
  :'fields_to_null' => :'fieldsToNull',
@@ -73,6 +77,7 @@ module DocuSign_Click
73
77
  def self.swagger_types
74
78
  {
75
79
  :'clickwrap_name' => :'String',
80
+ :'data_fields' => :'Array<DataField>',
76
81
  :'display_settings' => :'DisplaySettings',
77
82
  :'documents' => :'Array<Document>',
78
83
  :'fields_to_null' => :'String',
@@ -82,7 +87,7 @@ module DocuSign_Click
82
87
  :'require_reacceptance' => :'BOOLEAN',
83
88
  :'scheduled_date' => :'Object',
84
89
  :'scheduled_reacceptance' => :'ClickwrapScheduledReacceptance',
85
- :'status' => :'Object',
90
+ :'status' => :'String',
86
91
  :'transfer_from_user_id' => :'String',
87
92
  :'transfer_to_user_id' => :'String'
88
93
  }
@@ -100,6 +105,12 @@ module DocuSign_Click
100
105
  self.clickwrap_name = attributes[:'clickwrapName']
101
106
  end
102
107
 
108
+ if attributes.has_key?(:'dataFields')
109
+ if (value = attributes[:'dataFields']).is_a?(Array)
110
+ self.data_fields = value
111
+ end
112
+ end
113
+
103
114
  if attributes.has_key?(:'displaySettings')
104
115
  self.display_settings = attributes[:'displaySettings']
105
116
  end
@@ -170,6 +181,7 @@ module DocuSign_Click
170
181
  return true if self.equal?(o)
171
182
  self.class == o.class &&
172
183
  clickwrap_name == o.clickwrap_name &&
184
+ data_fields == o.data_fields &&
173
185
  display_settings == o.display_settings &&
174
186
  documents == o.documents &&
175
187
  fields_to_null == o.fields_to_null &&
@@ -193,7 +205,7 @@ module DocuSign_Click
193
205
  # Calculates hash code according to all attributes.
194
206
  # @return [Fixnum] Hash code
195
207
  def hash
196
- [clickwrap_name, display_settings, documents, fields_to_null, is_major_version, is_shared, name, require_reacceptance, scheduled_date, scheduled_reacceptance, status, transfer_from_user_id, transfer_to_user_id].hash
208
+ [clickwrap_name, data_fields, display_settings, documents, fields_to_null, is_major_version, is_shared, name, require_reacceptance, scheduled_date, scheduled_reacceptance, status, transfer_from_user_id, transfer_to_user_id].hash
197
209
  end
198
210
 
199
211
  # Builds the object from hash
@@ -19,6 +19,9 @@ module DocuSign_Click
19
19
  #
20
20
  attr_accessor :created_time
21
21
 
22
+ #
23
+ attr_accessor :data_fields
24
+
22
25
  #
23
26
  attr_accessor :last_modified
24
27
 
@@ -50,6 +53,7 @@ module DocuSign_Click
50
53
  {
51
54
  :'clickwrap_version_id' => :'clickwrapVersionId',
52
55
  :'created_time' => :'createdTime',
56
+ :'data_fields' => :'dataFields',
53
57
  :'last_modified' => :'lastModified',
54
58
  :'last_modified_by' => :'lastModifiedBy',
55
59
  :'owner_user_id' => :'ownerUserId',
@@ -67,6 +71,7 @@ module DocuSign_Click
67
71
  {
68
72
  :'clickwrap_version_id' => :'String',
69
73
  :'created_time' => :'Object',
74
+ :'data_fields' => :'Array<DataField>',
70
75
  :'last_modified' => :'Object',
71
76
  :'last_modified_by' => :'String',
72
77
  :'owner_user_id' => :'String',
@@ -95,6 +100,12 @@ module DocuSign_Click
95
100
  self.created_time = attributes[:'createdTime']
96
101
  end
97
102
 
103
+ if attributes.has_key?(:'dataFields')
104
+ if (value = attributes[:'dataFields']).is_a?(Array)
105
+ self.data_fields = value
106
+ end
107
+ end
108
+
98
109
  if attributes.has_key?(:'lastModified')
99
110
  self.last_modified = attributes[:'lastModified']
100
111
  end
@@ -152,6 +163,7 @@ module DocuSign_Click
152
163
  self.class == o.class &&
153
164
  clickwrap_version_id == o.clickwrap_version_id &&
154
165
  created_time == o.created_time &&
166
+ data_fields == o.data_fields &&
155
167
  last_modified == o.last_modified &&
156
168
  last_modified_by == o.last_modified_by &&
157
169
  owner_user_id == o.owner_user_id &&
@@ -172,7 +184,7 @@ module DocuSign_Click
172
184
  # Calculates hash code according to all attributes.
173
185
  # @return [Fixnum] Hash code
174
186
  def hash
175
- [clickwrap_version_id, created_time, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
187
+ [clickwrap_version_id, created_time, data_fields, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
176
188
  end
177
189
 
178
190
  # Builds the object from hash
@@ -19,6 +19,9 @@ module DocuSign_Click
19
19
  #
20
20
  attr_accessor :created_time
21
21
 
22
+ #
23
+ attr_accessor :data_fields
24
+
22
25
  #
23
26
  attr_accessor :deletion_message
24
27
 
@@ -56,6 +59,7 @@ module DocuSign_Click
56
59
  {
57
60
  :'clickwrap_version_id' => :'clickwrapVersionId',
58
61
  :'created_time' => :'createdTime',
62
+ :'data_fields' => :'dataFields',
59
63
  :'deletion_message' => :'deletionMessage',
60
64
  :'deletion_success' => :'deletionSuccess',
61
65
  :'last_modified' => :'lastModified',
@@ -75,6 +79,7 @@ module DocuSign_Click
75
79
  {
76
80
  :'clickwrap_version_id' => :'String',
77
81
  :'created_time' => :'Object',
82
+ :'data_fields' => :'Array<DataField>',
78
83
  :'deletion_message' => :'String',
79
84
  :'deletion_success' => :'BOOLEAN',
80
85
  :'last_modified' => :'Object',
@@ -105,6 +110,12 @@ module DocuSign_Click
105
110
  self.created_time = attributes[:'createdTime']
106
111
  end
107
112
 
113
+ if attributes.has_key?(:'dataFields')
114
+ if (value = attributes[:'dataFields']).is_a?(Array)
115
+ self.data_fields = value
116
+ end
117
+ end
118
+
108
119
  if attributes.has_key?(:'deletionMessage')
109
120
  self.deletion_message = attributes[:'deletionMessage']
110
121
  end
@@ -170,6 +181,7 @@ module DocuSign_Click
170
181
  self.class == o.class &&
171
182
  clickwrap_version_id == o.clickwrap_version_id &&
172
183
  created_time == o.created_time &&
184
+ data_fields == o.data_fields &&
173
185
  deletion_message == o.deletion_message &&
174
186
  deletion_success == o.deletion_success &&
175
187
  last_modified == o.last_modified &&
@@ -192,7 +204,7 @@ module DocuSign_Click
192
204
  # Calculates hash code according to all attributes.
193
205
  # @return [Fixnum] Hash code
194
206
  def hash
195
- [clickwrap_version_id, created_time, deletion_message, deletion_success, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
207
+ [clickwrap_version_id, created_time, data_fields, deletion_message, deletion_success, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
196
208
  end
197
209
 
198
210
  # Builds the object from hash
@@ -28,6 +28,9 @@ module DocuSign_Click
28
28
  #
29
29
  attr_accessor :created_time
30
30
 
31
+ #
32
+ attr_accessor :data_fields
33
+
31
34
  attr_accessor :display_settings
32
35
 
33
36
  #
@@ -67,6 +70,7 @@ module DocuSign_Click
67
70
  :'clickwrap_name' => :'clickwrapName',
68
71
  :'clickwrap_version_id' => :'clickwrapVersionId',
69
72
  :'created_time' => :'createdTime',
73
+ :'data_fields' => :'dataFields',
70
74
  :'display_settings' => :'displaySettings',
71
75
  :'documents' => :'documents',
72
76
  :'last_modified' => :'lastModified',
@@ -89,6 +93,7 @@ module DocuSign_Click
89
93
  :'clickwrap_name' => :'String',
90
94
  :'clickwrap_version_id' => :'String',
91
95
  :'created_time' => :'Object',
96
+ :'data_fields' => :'Array<DataField>',
92
97
  :'display_settings' => :'DisplaySettings',
93
98
  :'documents' => :'Array<Document>',
94
99
  :'last_modified' => :'Object',
@@ -131,6 +136,12 @@ module DocuSign_Click
131
136
  self.created_time = attributes[:'createdTime']
132
137
  end
133
138
 
139
+ if attributes.has_key?(:'dataFields')
140
+ if (value = attributes[:'dataFields']).is_a?(Array)
141
+ self.data_fields = value
142
+ end
143
+ end
144
+
134
145
  if attributes.has_key?(:'displaySettings')
135
146
  self.display_settings = attributes[:'displaySettings']
136
147
  end
@@ -201,6 +212,7 @@ module DocuSign_Click
201
212
  clickwrap_name == o.clickwrap_name &&
202
213
  clickwrap_version_id == o.clickwrap_version_id &&
203
214
  created_time == o.created_time &&
215
+ data_fields == o.data_fields &&
204
216
  display_settings == o.display_settings &&
205
217
  documents == o.documents &&
206
218
  last_modified == o.last_modified &&
@@ -223,7 +235,7 @@ module DocuSign_Click
223
235
  # Calculates hash code according to all attributes.
224
236
  # @return [Fixnum] Hash code
225
237
  def hash
226
- [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, display_settings, documents, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
238
+ [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, data_fields, display_settings, documents, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
227
239
  end
228
240
 
229
241
  # Builds the object from hash
@@ -28,6 +28,9 @@ module DocuSign_Click
28
28
  #
29
29
  attr_accessor :created_time
30
30
 
31
+ #
32
+ attr_accessor :data_fields
33
+
31
34
  #
32
35
  attr_accessor :last_modified
33
36
 
@@ -62,6 +65,7 @@ module DocuSign_Click
62
65
  :'clickwrap_name' => :'clickwrapName',
63
66
  :'clickwrap_version_id' => :'clickwrapVersionId',
64
67
  :'created_time' => :'createdTime',
68
+ :'data_fields' => :'dataFields',
65
69
  :'last_modified' => :'lastModified',
66
70
  :'last_modified_by' => :'lastModifiedBy',
67
71
  :'owner_user_id' => :'ownerUserId',
@@ -82,6 +86,7 @@ module DocuSign_Click
82
86
  :'clickwrap_name' => :'String',
83
87
  :'clickwrap_version_id' => :'String',
84
88
  :'created_time' => :'Object',
89
+ :'data_fields' => :'Array<DataField>',
85
90
  :'last_modified' => :'Object',
86
91
  :'last_modified_by' => :'String',
87
92
  :'owner_user_id' => :'String',
@@ -122,6 +127,12 @@ module DocuSign_Click
122
127
  self.created_time = attributes[:'createdTime']
123
128
  end
124
129
 
130
+ if attributes.has_key?(:'dataFields')
131
+ if (value = attributes[:'dataFields']).is_a?(Array)
132
+ self.data_fields = value
133
+ end
134
+ end
135
+
125
136
  if attributes.has_key?(:'lastModified')
126
137
  self.last_modified = attributes[:'lastModified']
127
138
  end
@@ -182,6 +193,7 @@ module DocuSign_Click
182
193
  clickwrap_name == o.clickwrap_name &&
183
194
  clickwrap_version_id == o.clickwrap_version_id &&
184
195
  created_time == o.created_time &&
196
+ data_fields == o.data_fields &&
185
197
  last_modified == o.last_modified &&
186
198
  last_modified_by == o.last_modified_by &&
187
199
  owner_user_id == o.owner_user_id &&
@@ -202,7 +214,7 @@ module DocuSign_Click
202
214
  # Calculates hash code according to all attributes.
203
215
  # @return [Fixnum] Hash code
204
216
  def hash
205
- [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
217
+ [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, data_fields, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
206
218
  end
207
219
 
208
220
  # Builds the object from hash
@@ -0,0 +1,204 @@
1
+ =begin
2
+ #DocuSign Click API
3
+
4
+ #DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
5
+
6
+ OpenAPI spec version: v1
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_Click
15
+ class DataField
16
+ #
17
+ attr_accessor :label
18
+
19
+ #
20
+ attr_accessor :name
21
+
22
+ #
23
+ attr_accessor :type
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'label' => :'label',
29
+ :'name' => :'name',
30
+ :'type' => :'type'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'label' => :'String',
38
+ :'name' => :'String',
39
+ :'type' => :'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?(:'label')
52
+ self.label = attributes[:'label']
53
+ end
54
+
55
+ if attributes.has_key?(:'name')
56
+ self.name = attributes[:'name']
57
+ end
58
+
59
+ if attributes.has_key?(:'type')
60
+ self.type = attributes[:'type']
61
+ end
62
+ end
63
+
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ label == o.label &&
83
+ name == o.name &&
84
+ type == o.type
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Fixnum] Hash code
95
+ def hash
96
+ [label, name, type].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def build_from_hash(attributes)
103
+ return nil unless attributes.is_a?(Hash)
104
+ self.class.swagger_types.each_pair do |key, type|
105
+ if type =~ /\AArray<(.*)>/i
106
+ # check to ensure the input is an array given that the attribute
107
+ # is documented as an array but the input is not
108
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ end
111
+ elsif !attributes[self.class.attribute_map[key]].nil?
112
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
114
+ end
115
+
116
+ self
117
+ end
118
+
119
+ # Deserializes the data based on type
120
+ # @param string type Data type
121
+ # @param string value Value to be deserialized
122
+ # @return [Object] Deserialized data
123
+ def _deserialize(type, value)
124
+ case type.to_sym
125
+ when :DateTime
126
+ DateTime.parse(value)
127
+ when :Date
128
+ Date.parse(value)
129
+ when :String
130
+ value.to_s
131
+ when :Integer
132
+ value.to_i
133
+ when :Float
134
+ value.to_f
135
+ when :BOOLEAN
136
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
+ true
138
+ else
139
+ false
140
+ end
141
+ when :Object
142
+ # generic object (usually a Hash), return directly
143
+ value
144
+ when /\AArray<(?<inner_type>.+)>\z/
145
+ inner_type = Regexp.last_match[:inner_type]
146
+ value.map { |v| _deserialize(inner_type, v) }
147
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
+ k_type = Regexp.last_match[:k_type]
149
+ v_type = Regexp.last_match[:v_type]
150
+ {}.tap do |hash|
151
+ value.each do |k, v|
152
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
+ end
154
+ end
155
+ else # model
156
+ temp_model = DocuSign_Click.const_get(type).new
157
+ temp_model.build_from_hash(value)
158
+ end
159
+ end
160
+
161
+ # Returns the string representation of the object
162
+ # @return [String] String presentation of the object
163
+ def to_s
164
+ to_hash.to_s
165
+ end
166
+
167
+ # to_body is an alias to to_hash (backward compatibility)
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ next if value.nil?
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ # Outputs non-array value in the form of hash
186
+ # For object, use to_hash. Otherwise, just return the value
187
+ # @param [Object] value Any valid value
188
+ # @return [Hash] Returns the value in the form of hash
189
+ def _to_hash(value)
190
+ if value.is_a?(Array)
191
+ value.compact.map { |v| _to_hash(v) }
192
+ elsif value.is_a?(Hash)
193
+ {}.tap do |hash|
194
+ value.each { |k, v| hash[k] = _to_hash(v) }
195
+ end
196
+ elsif value.respond_to? :to_hash
197
+ value.to_hash
198
+ else
199
+ value
200
+ end
201
+ end
202
+
203
+ end
204
+ end
@@ -64,6 +64,9 @@ module DocuSign_Click
64
64
  #
65
65
  attr_accessor :send_to_email
66
66
 
67
+ #
68
+ attr_accessor :statement_alignment
69
+
67
70
  # Attribute mapping from ruby-style variable name to JSON key.
68
71
  def self.attribute_map
69
72
  {
@@ -83,7 +86,8 @@ module DocuSign_Click
83
86
  :'must_view' => :'mustView',
84
87
  :'record_decline_responses' => :'recordDeclineResponses',
85
88
  :'require_accept' => :'requireAccept',
86
- :'send_to_email' => :'sendToEmail'
89
+ :'send_to_email' => :'sendToEmail',
90
+ :'statement_alignment' => :'statementAlignment'
87
91
  }
88
92
  end
89
93
 
@@ -106,7 +110,8 @@ module DocuSign_Click
106
110
  :'must_view' => :'BOOLEAN',
107
111
  :'record_decline_responses' => :'BOOLEAN',
108
112
  :'require_accept' => :'BOOLEAN',
109
- :'send_to_email' => :'BOOLEAN'
113
+ :'send_to_email' => :'BOOLEAN',
114
+ :'statement_alignment' => :'String'
110
115
  }
111
116
  end
112
117
 
@@ -187,6 +192,10 @@ module DocuSign_Click
187
192
  if attributes.has_key?(:'sendToEmail')
188
193
  self.send_to_email = attributes[:'sendToEmail']
189
194
  end
195
+
196
+ if attributes.has_key?(:'statementAlignment')
197
+ self.statement_alignment = attributes[:'statementAlignment']
198
+ end
190
199
  end
191
200
 
192
201
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -223,7 +232,8 @@ module DocuSign_Click
223
232
  must_view == o.must_view &&
224
233
  record_decline_responses == o.record_decline_responses &&
225
234
  require_accept == o.require_accept &&
226
- send_to_email == o.send_to_email
235
+ send_to_email == o.send_to_email &&
236
+ statement_alignment == o.statement_alignment
227
237
  end
228
238
 
229
239
  # @see the `==` method
@@ -235,7 +245,7 @@ module DocuSign_Click
235
245
  # Calculates hash code according to all attributes.
236
246
  # @return [Fixnum] Hash code
237
247
  def hash
238
- [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, must_read, must_view, record_decline_responses, require_accept, send_to_email].hash
248
+ [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, must_read, must_view, record_decline_responses, require_accept, send_to_email, statement_alignment].hash
239
249
  end
240
250
 
241
251
  # Builds the object from hash
@@ -16,6 +16,9 @@ module DocuSign_Click
16
16
  #
17
17
  attr_accessor :document_base64
18
18
 
19
+ #
20
+ attr_accessor :document_display
21
+
19
22
  #
20
23
  attr_accessor :document_html
21
24
 
@@ -25,6 +28,12 @@ module DocuSign_Click
25
28
  #
26
29
  attr_accessor :file_extension
27
30
 
31
+ #
32
+ attr_accessor :must_read
33
+
34
+ #
35
+ attr_accessor :must_view
36
+
28
37
  #
29
38
  attr_accessor :order
30
39
 
@@ -32,9 +41,12 @@ module DocuSign_Click
32
41
  def self.attribute_map
33
42
  {
34
43
  :'document_base64' => :'documentBase64',
44
+ :'document_display' => :'documentDisplay',
35
45
  :'document_html' => :'documentHtml',
36
46
  :'document_name' => :'documentName',
37
47
  :'file_extension' => :'fileExtension',
48
+ :'must_read' => :'mustRead',
49
+ :'must_view' => :'mustView',
38
50
  :'order' => :'order'
39
51
  }
40
52
  end
@@ -43,9 +55,12 @@ module DocuSign_Click
43
55
  def self.swagger_types
44
56
  {
45
57
  :'document_base64' => :'String',
58
+ :'document_display' => :'String',
46
59
  :'document_html' => :'String',
47
60
  :'document_name' => :'String',
48
61
  :'file_extension' => :'String',
62
+ :'must_read' => :'BOOLEAN',
63
+ :'must_view' => :'BOOLEAN',
49
64
  :'order' => :'Integer'
50
65
  }
51
66
  end
@@ -62,6 +77,10 @@ module DocuSign_Click
62
77
  self.document_base64 = attributes[:'documentBase64']
63
78
  end
64
79
 
80
+ if attributes.has_key?(:'documentDisplay')
81
+ self.document_display = attributes[:'documentDisplay']
82
+ end
83
+
65
84
  if attributes.has_key?(:'documentHtml')
66
85
  self.document_html = attributes[:'documentHtml']
67
86
  end
@@ -74,6 +93,14 @@ module DocuSign_Click
74
93
  self.file_extension = attributes[:'fileExtension']
75
94
  end
76
95
 
96
+ if attributes.has_key?(:'mustRead')
97
+ self.must_read = attributes[:'mustRead']
98
+ end
99
+
100
+ if attributes.has_key?(:'mustView')
101
+ self.must_view = attributes[:'mustView']
102
+ end
103
+
77
104
  if attributes.has_key?(:'order')
78
105
  self.order = attributes[:'order']
79
106
  end
@@ -98,9 +125,12 @@ module DocuSign_Click
98
125
  return true if self.equal?(o)
99
126
  self.class == o.class &&
100
127
  document_base64 == o.document_base64 &&
128
+ document_display == o.document_display &&
101
129
  document_html == o.document_html &&
102
130
  document_name == o.document_name &&
103
131
  file_extension == o.file_extension &&
132
+ must_read == o.must_read &&
133
+ must_view == o.must_view &&
104
134
  order == o.order
105
135
  end
106
136
 
@@ -113,7 +143,7 @@ module DocuSign_Click
113
143
  # Calculates hash code according to all attributes.
114
144
  # @return [Fixnum] Hash code
115
145
  def hash
116
- [document_base64, document_html, document_name, file_extension, order].hash
146
+ [document_base64, document_display, document_html, document_name, file_extension, must_read, must_view, order].hash
117
147
  end
118
148
 
119
149
  # Builds the object from hash
@@ -16,6 +16,9 @@ module DocuSign_Click
16
16
  #
17
17
  attr_accessor :client_user_id
18
18
 
19
+ #
20
+ attr_accessor :document_data
21
+
19
22
  #
20
23
  attr_accessor :metadata
21
24
 
@@ -23,6 +26,7 @@ module DocuSign_Click
23
26
  def self.attribute_map
24
27
  {
25
28
  :'client_user_id' => :'clientUserId',
29
+ :'document_data' => :'documentData',
26
30
  :'metadata' => :'metadata'
27
31
  }
28
32
  end
@@ -31,6 +35,7 @@ module DocuSign_Click
31
35
  def self.swagger_types
32
36
  {
33
37
  :'client_user_id' => :'String',
38
+ :'document_data' => :'Hash<String, String>',
34
39
  :'metadata' => :'String'
35
40
  }
36
41
  end
@@ -47,6 +52,12 @@ module DocuSign_Click
47
52
  self.client_user_id = attributes[:'clientUserId']
48
53
  end
49
54
 
55
+ if attributes.has_key?(:'documentData')
56
+ if (value = attributes[:'documentData']).is_a?(Hash)
57
+ self.document_data = value
58
+ end
59
+ end
60
+
50
61
  if attributes.has_key?(:'metadata')
51
62
  self.metadata = attributes[:'metadata']
52
63
  end
@@ -71,6 +82,7 @@ module DocuSign_Click
71
82
  return true if self.equal?(o)
72
83
  self.class == o.class &&
73
84
  client_user_id == o.client_user_id &&
85
+ document_data == o.document_data &&
74
86
  metadata == o.metadata
75
87
  end
76
88
 
@@ -83,7 +95,7 @@ module DocuSign_Click
83
95
  # Calculates hash code according to all attributes.
84
96
  # @return [Fixnum] Hash code
85
97
  def hash
86
- [client_user_id, metadata].hash
98
+ [client_user_id, document_data, metadata].hash
87
99
  end
88
100
 
89
101
  # Builds the object from hash
@@ -31,6 +31,9 @@ module DocuSign_Click
31
31
  #
32
32
  attr_accessor :client_user_id
33
33
 
34
+ #
35
+ attr_accessor :consumer_disclosure_enabled
36
+
34
37
  #
35
38
  attr_accessor :consumer_disclosure_html
36
39
 
@@ -40,6 +43,9 @@ module DocuSign_Click
40
43
  #
41
44
  attr_accessor :declined_on
42
45
 
46
+ #
47
+ attr_accessor :document_data
48
+
43
49
  #
44
50
  attr_accessor :documents
45
51
 
@@ -51,6 +57,9 @@ module DocuSign_Click
51
57
  #
52
58
  attr_accessor :status
53
59
 
60
+ #
61
+ attr_accessor :style
62
+
54
63
  #
55
64
  attr_accessor :version
56
65
 
@@ -69,13 +78,16 @@ module DocuSign_Click
69
78
  :'agreement_url' => :'agreementUrl',
70
79
  :'clickwrap_id' => :'clickwrapId',
71
80
  :'client_user_id' => :'clientUserId',
81
+ :'consumer_disclosure_enabled' => :'consumerDisclosureEnabled',
72
82
  :'consumer_disclosure_html' => :'consumerDisclosureHtml',
73
83
  :'created_on' => :'createdOn',
74
84
  :'declined_on' => :'declinedOn',
85
+ :'document_data' => :'documentData',
75
86
  :'documents' => :'documents',
76
87
  :'metadata' => :'metadata',
77
88
  :'settings' => :'settings',
78
89
  :'status' => :'status',
90
+ :'style' => :'style',
79
91
  :'version' => :'version',
80
92
  :'version_id' => :'versionId',
81
93
  :'version_number' => :'versionNumber'
@@ -91,13 +103,16 @@ module DocuSign_Click
91
103
  :'agreement_url' => :'String',
92
104
  :'clickwrap_id' => :'String',
93
105
  :'client_user_id' => :'String',
106
+ :'consumer_disclosure_enabled' => :'BOOLEAN',
94
107
  :'consumer_disclosure_html' => :'String',
95
108
  :'created_on' => :'Object',
96
109
  :'declined_on' => :'Object',
110
+ :'document_data' => :'Hash<String, String>',
97
111
  :'documents' => :'Array<Document>',
98
112
  :'metadata' => :'String',
99
113
  :'settings' => :'DisplaySettings',
100
114
  :'status' => :'String',
115
+ :'style' => :'Hash<String, String>',
101
116
  :'version' => :'String',
102
117
  :'version_id' => :'String',
103
118
  :'version_number' => :'Integer'
@@ -136,6 +151,10 @@ module DocuSign_Click
136
151
  self.client_user_id = attributes[:'clientUserId']
137
152
  end
138
153
 
154
+ if attributes.has_key?(:'consumerDisclosureEnabled')
155
+ self.consumer_disclosure_enabled = attributes[:'consumerDisclosureEnabled']
156
+ end
157
+
139
158
  if attributes.has_key?(:'consumerDisclosureHtml')
140
159
  self.consumer_disclosure_html = attributes[:'consumerDisclosureHtml']
141
160
  end
@@ -148,6 +167,12 @@ module DocuSign_Click
148
167
  self.declined_on = attributes[:'declinedOn']
149
168
  end
150
169
 
170
+ if attributes.has_key?(:'documentData')
171
+ if (value = attributes[:'documentData']).is_a?(Hash)
172
+ self.document_data = value
173
+ end
174
+ end
175
+
151
176
  if attributes.has_key?(:'documents')
152
177
  if (value = attributes[:'documents']).is_a?(Array)
153
178
  self.documents = value
@@ -166,6 +191,12 @@ module DocuSign_Click
166
191
  self.status = attributes[:'status']
167
192
  end
168
193
 
194
+ if attributes.has_key?(:'style')
195
+ if (value = attributes[:'style']).is_a?(Hash)
196
+ self.style = value
197
+ end
198
+ end
199
+
169
200
  if attributes.has_key?(:'version')
170
201
  self.version = attributes[:'version']
171
202
  end
@@ -203,13 +234,16 @@ module DocuSign_Click
203
234
  agreement_url == o.agreement_url &&
204
235
  clickwrap_id == o.clickwrap_id &&
205
236
  client_user_id == o.client_user_id &&
237
+ consumer_disclosure_enabled == o.consumer_disclosure_enabled &&
206
238
  consumer_disclosure_html == o.consumer_disclosure_html &&
207
239
  created_on == o.created_on &&
208
240
  declined_on == o.declined_on &&
241
+ document_data == o.document_data &&
209
242
  documents == o.documents &&
210
243
  metadata == o.metadata &&
211
244
  settings == o.settings &&
212
245
  status == o.status &&
246
+ style == o.style &&
213
247
  version == o.version &&
214
248
  version_id == o.version_id &&
215
249
  version_number == o.version_number
@@ -224,7 +258,7 @@ module DocuSign_Click
224
258
  # Calculates hash code according to all attributes.
225
259
  # @return [Fixnum] Hash code
226
260
  def hash
227
- [account_id, agreed_on, agreement_id, agreement_url, clickwrap_id, client_user_id, consumer_disclosure_html, created_on, declined_on, documents, metadata, settings, status, version, version_id, version_number].hash
261
+ [account_id, agreed_on, agreement_id, agreement_url, clickwrap_id, client_user_id, consumer_disclosure_enabled, consumer_disclosure_html, created_on, declined_on, document_data, documents, metadata, settings, status, style, version, version_id, version_number].hash
228
262
  end
229
263
 
230
264
  # Builds the object from hash
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module DocuSign_Click
13
- VERSION = '1.1.0'
13
+ VERSION = '1.2.2'
14
14
  end
@@ -32,6 +32,7 @@ require 'docusign_click/models/clickwrap_versions_delete_response'
32
32
  require 'docusign_click/models/clickwrap_versions_paged_response'
33
33
  require 'docusign_click/models/clickwrap_versions_response'
34
34
  require 'docusign_click/models/clickwraps_delete_response'
35
+ require 'docusign_click/models/data_field'
35
36
  require 'docusign_click/models/display_settings'
36
37
  require 'docusign_click/models/document'
37
38
  require 'docusign_click/models/error_details'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docusign_click
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocuSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2022-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -308,6 +308,7 @@ files:
308
308
  - lib/docusign_click/models/clickwrap_versions_response.rb
309
309
  - lib/docusign_click/models/clickwraps_delete_response.rb
310
310
  - lib/docusign_click/models/conversion_document.rb
311
+ - lib/docusign_click/models/data_field.rb
311
312
  - lib/docusign_click/models/display_settings.rb
312
313
  - lib/docusign_click/models/document.rb
313
314
  - lib/docusign_click/models/document_conversion_request.rb