docusign_click 1.2.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/docusign_click.gemspec +1 -1
  4. data/lib/docusign_click/api/accounts_api.rb +242 -188
  5. data/lib/docusign_click/client/api_client.rb +2 -2
  6. data/lib/docusign_click/client/api_error.rb +1 -1
  7. data/lib/docusign_click/configuration.rb +1 -1
  8. data/lib/docusign_click/models/bulk_clickwrap_request.rb +205 -0
  9. data/lib/docusign_click/models/clickwrap_agreements_response.rb +6 -6
  10. data/lib/docusign_click/models/clickwrap_delete_response.rb +7 -6
  11. data/lib/docusign_click/models/clickwrap_request.rb +16 -13
  12. data/lib/docusign_click/models/clickwrap_scheduled_reacceptance.rb +4 -4
  13. data/lib/docusign_click/models/clickwrap_transfer_request.rb +4 -3
  14. data/lib/docusign_click/models/clickwrap_version.rb +13 -12
  15. data/lib/docusign_click/models/clickwrap_version_delete_response.rb +15 -14
  16. data/lib/docusign_click/models/clickwrap_version_response.rb +18 -16
  17. data/lib/docusign_click/models/clickwrap_version_summary_response.rb +16 -15
  18. data/lib/docusign_click/models/clickwrap_versions_delete_response.rb +4 -4
  19. data/lib/docusign_click/models/clickwrap_versions_paged_response.rb +9 -8
  20. data/lib/docusign_click/models/clickwrap_versions_response.rb +6 -5
  21. data/lib/docusign_click/models/clickwraps_delete_response.rb +2 -2
  22. data/lib/docusign_click/models/data_field.rb +1 -1
  23. data/lib/docusign_click/models/display_settings.rb +20 -19
  24. data/lib/docusign_click/models/document.rb +10 -9
  25. data/lib/docusign_click/models/error_details.rb +4 -3
  26. data/lib/docusign_click/models/service_information.rb +7 -7
  27. data/lib/docusign_click/models/service_version.rb +3 -3
  28. data/lib/docusign_click/models/user_agreement_request.rb +19 -8
  29. data/lib/docusign_click/models/user_agreement_response.rb +43 -20
  30. data/lib/docusign_click/version.rb +2 -2
  31. data/lib/docusign_click.rb +2 -1
  32. metadata +3 -2
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -13,48 +13,49 @@ require 'date'
13
13
 
14
14
  module DocuSign_Click
15
15
  class ClickwrapVersionSummaryResponse
16
- #
16
+ # The external account number (int) or account ID GUID.
17
17
  attr_accessor :account_id
18
18
 
19
- #
19
+ # The ID of the clickwrap.
20
20
  attr_accessor :clickwrap_id
21
21
 
22
- #
22
+ # The name of the clickwrap.
23
23
  attr_accessor :clickwrap_name
24
24
 
25
- #
25
+ # The unique version ID, a GUID, of this clickwrap version.
26
26
  attr_accessor :clickwrap_version_id
27
27
 
28
- #
28
+ # The time that the clickwrap was created.
29
29
  attr_accessor :created_time
30
30
 
31
- #
31
+ # The list of all the data fields available for the clickwrap (custom fields and standard fields).
32
32
  attr_accessor :data_fields
33
33
 
34
- #
34
+ # The time that the clickwrap was last modified.
35
35
  attr_accessor :last_modified
36
36
 
37
- #
37
+ # The user ID of the last user who modified this clickwrap.
38
38
  attr_accessor :last_modified_by
39
39
 
40
- #
40
+ # The user ID of the owner of this clickwrap.
41
41
  attr_accessor :owner_user_id
42
42
 
43
- #
43
+ # When **true,** requires signers who have previously agreed to this clickwrap to sign again. The version number is incremented.
44
44
  attr_accessor :require_reacceptance
45
45
 
46
- #
46
+ # The time and date when this clickwrap is activated.
47
47
  attr_accessor :scheduled_date
48
48
 
49
+ # Specifies the interval between reacceptances in days, weeks, months, or years.
49
50
  attr_accessor :scheduled_reacceptance
50
51
 
51
- #
52
+ # Clickwrap status. Possible values: - `active` - `inactive` - `deleted`
52
53
  attr_accessor :status
53
54
 
54
- #
55
+ # The ID of the version.
55
56
  attr_accessor :version_id
56
57
 
57
- #
58
+ # Version of the clickwrap.
58
59
  attr_accessor :version_number
59
60
 
60
61
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -13,13 +13,13 @@ require 'date'
13
13
 
14
14
  module DocuSign_Click
15
15
  class ClickwrapVersionsDeleteResponse
16
- #
16
+ # The ID of the clickwrap.
17
17
  attr_accessor :clickwrap_id
18
18
 
19
- #
19
+ # The name of the clickwrap.
20
20
  attr_accessor :clickwrap_name
21
21
 
22
- #
22
+ # An array of delete responses.
23
23
  attr_accessor :versions
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,26 +12,27 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # The results are paginated. Use the following properties to navigate the pages. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one.
15
16
  class ClickwrapVersionsPagedResponse
16
- #
17
+ # The external account number (int) or account ID GUID.
17
18
  attr_accessor :account_id
18
19
 
19
- #
20
+ # The ID of the clickwrap.
20
21
  attr_accessor :clickwrap_id
21
22
 
22
- #
23
+ # The name of the clickwrap.
23
24
  attr_accessor :clickwrap_name
24
25
 
25
- #
26
+ # An array of clickwrap versions.
26
27
  attr_accessor :minimum_pages_remaining
27
28
 
28
- #
29
+ # The number of the current page.
29
30
  attr_accessor :page
30
31
 
31
- #
32
+ # The number of items per page.
32
33
  attr_accessor :page_size
33
34
 
34
- #
35
+ # An array of clickwrap versions.
35
36
  attr_accessor :versions
36
37
 
37
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,17 +12,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # The results are paginated. Use the following properties to navigate the pages. Use the `page_number` query parameter to specify a page. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one.
15
16
  class ClickwrapVersionsResponse
16
- #
17
+ # An array of `clickwrapVersionSummaryResponse` objects.
17
18
  attr_accessor :clickwraps
18
19
 
19
- #
20
+ # Number of pages remaining in the response.
20
21
  attr_accessor :minimum_pages_remaining
21
22
 
22
- #
23
+ # The number of the current page.
23
24
  attr_accessor :page
24
25
 
25
- #
26
+ # The number of items per page.
26
27
  attr_accessor :page_size
27
28
 
28
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module DocuSign_Click
15
15
  class ClickwrapsDeleteResponse
16
- #
16
+ # An array of clickwrap deletion results.
17
17
  attr_accessor :clickwraps
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,59 +12,60 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # Information about how an agreement is displayed.
15
16
  class DisplaySettings
16
- #
17
+ # Position of the Accept button in the agreement. One of - `right` - `left`
17
18
  attr_accessor :action_button_alignment
18
19
 
19
- #
20
+ # When **true,** this agreement can be be used in client-only integrations.
20
21
  attr_accessor :allow_client_only
21
22
 
22
- #
23
+ # Hosts that can host the clickwrap. It is an error if the clickwrap didn't come from one of these hosts.
23
24
  attr_accessor :allowed_hosts
24
25
 
25
- #
26
+ # The signing brand ID.
26
27
  attr_accessor :brand_id
27
28
 
28
- #
29
+ # Text on the agree button.
29
30
  attr_accessor :consent_button_text
30
31
 
31
- #
32
+ # The statement prefixing the Electronic Record and Signature Disclosure agreement.
32
33
  attr_accessor :consent_text
33
34
 
34
- #
35
+ # The text on the decline button.
35
36
  attr_accessor :decline_button_text
36
37
 
37
- #
38
+ # The display name of the user agreement.
38
39
  attr_accessor :display_name
39
40
 
40
- #
41
+ # Display type: link, document or pdf
41
42
  attr_accessor :document_display
42
43
 
43
- #
44
+ # **True** if the agreement is downloadable.
44
45
  attr_accessor :downloadable
45
46
 
46
- #
47
+ # Display format: inline or modal.
47
48
  attr_accessor :format
48
49
 
49
- #
50
+ # **True** if the agreement has a decline button.
50
51
  attr_accessor :has_decline_button
51
52
 
52
- #
53
+ # **True** if the user needs to scroll to the end of the document.
53
54
  attr_accessor :must_read
54
55
 
55
- #
56
+ # **True** if the user must view the document.
56
57
  attr_accessor :must_view
57
58
 
58
- #
59
+ # When **true,** this agreement records decline actions.
59
60
  attr_accessor :record_decline_responses
60
61
 
61
- #
62
+ # **True** if a checkbox is required to accept.
62
63
  attr_accessor :require_accept
63
64
 
64
- #
65
+ # **True** if send to email is applicable.
65
66
  attr_accessor :send_to_email
66
67
 
67
- #
68
+ # Position of the agreement statement. One of - `top` - `bottom`
68
69
  attr_accessor :statement_alignment
69
70
 
70
71
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,29 +12,30 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # Information about a document.
15
16
  class Document
16
- #
17
+ # The base64-encoded contents of the document.
17
18
  attr_accessor :document_base64
18
19
 
19
- #
20
+ # Display type: link, document or pdf
20
21
  attr_accessor :document_display
21
22
 
22
- #
23
+ # The HTML representation of the document.
23
24
  attr_accessor :document_html
24
25
 
25
- #
26
+ # The name of the document.
26
27
  attr_accessor :document_name
27
28
 
28
- #
29
+ # The file extension of the document.
29
30
  attr_accessor :file_extension
30
31
 
31
- #
32
+ # **True** if the user needs to scroll to the end of the document.
32
33
  attr_accessor :must_read
33
34
 
34
- #
35
+ # **True** if the user must view the document.
35
36
  attr_accessor :must_view
36
37
 
37
- #
38
+ # The order of document layout.
38
39
  attr_accessor :order
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,11 +12,12 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # Error details.
15
16
  class ErrorDetails
16
- #
17
+ # The error code.
17
18
  attr_accessor :error_code
18
19
 
19
- #
20
+ # The error message.
20
21
  attr_accessor :message
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -13,22 +13,22 @@ require 'date'
13
13
 
14
14
  module DocuSign_Click
15
15
  class ServiceInformation
16
- #
16
+ # The internal source control branch.
17
17
  attr_accessor :build_branch
18
18
 
19
- #
19
+ # The date-time this branch was deployed.
20
20
  attr_accessor :build_branch_deployed_date_time
21
21
 
22
- #
22
+ # The internal source control SHA.
23
23
  attr_accessor :build_sha
24
24
 
25
- #
25
+ # The internal build version information.
26
26
  attr_accessor :build_version
27
27
 
28
- #
28
+ # An array of URLs (strings) of related sites.
29
29
  attr_accessor :linked_sites
30
30
 
31
- #
31
+ # An array of `serviceVersion` objects.
32
32
  attr_accessor :service_versions
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -13,10 +13,10 @@ require 'date'
13
13
 
14
14
  module DocuSign_Click
15
15
  class ServiceVersion
16
- #
16
+ # The human-readable semver version string.
17
17
  attr_accessor :version
18
18
 
19
- #
19
+ # The URL where this version of the API can be found.
20
20
  attr_accessor :version_url
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #DocuSign Click API
3
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.
4
+ #Elastic signing (also known as 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 elastic template solution in your DocuSign integrations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
@@ -12,22 +12,27 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_Click
15
+ # Data used to create the agreement.
15
16
  class UserAgreementRequest
16
- #
17
+ # A unique value that identifies a user. You can use anything that your system uses to identify unique users, such as employee IDs, email addresses, and surrogate keys as the value of `clientUserId`. A clickwrap with a specific `clientUserId` will not appear again once it has been accepted.
17
18
  attr_accessor :client_user_id
18
19
 
19
- #
20
+ # This property specifies the data used to create a clickwrap with [dynamic content][]. [dynamic content]: /docs/click-api/click101/customize-clickwrap-fields/#embed-clickwraps-that-contain-dynamic-content
20
21
  attr_accessor :document_data
21
22
 
22
- #
23
+ # A customer-defined string you can use in requests. This string will appear in the corresponding response.
23
24
  attr_accessor :metadata
24
25
 
26
+ # The URL to redirect to after the agreement is complete when the agreement is not rendered in an iframe.
27
+ attr_accessor :return_url
28
+
25
29
  # Attribute mapping from ruby-style variable name to JSON key.
26
30
  def self.attribute_map
27
31
  {
28
32
  :'client_user_id' => :'clientUserId',
29
33
  :'document_data' => :'documentData',
30
- :'metadata' => :'metadata'
34
+ :'metadata' => :'metadata',
35
+ :'return_url' => :'returnUrl'
31
36
  }
32
37
  end
33
38
 
@@ -36,7 +41,8 @@ module DocuSign_Click
36
41
  {
37
42
  :'client_user_id' => :'String',
38
43
  :'document_data' => :'Hash<String, String>',
39
- :'metadata' => :'String'
44
+ :'metadata' => :'String',
45
+ :'return_url' => :'String'
40
46
  }
41
47
  end
42
48
 
@@ -61,6 +67,10 @@ module DocuSign_Click
61
67
  if attributes.has_key?(:'metadata')
62
68
  self.metadata = attributes[:'metadata']
63
69
  end
70
+
71
+ if attributes.has_key?(:'returnUrl')
72
+ self.return_url = attributes[:'returnUrl']
73
+ end
64
74
  end
65
75
 
66
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -83,7 +93,8 @@ module DocuSign_Click
83
93
  self.class == o.class &&
84
94
  client_user_id == o.client_user_id &&
85
95
  document_data == o.document_data &&
86
- metadata == o.metadata
96
+ metadata == o.metadata &&
97
+ return_url == o.return_url
87
98
  end
88
99
 
89
100
  # @see the `==` method
@@ -95,7 +106,7 @@ module DocuSign_Click
95
106
  # Calculates hash code according to all attributes.
96
107
  # @return [Fixnum] Hash code
97
108
  def hash
98
- [client_user_id, document_data, metadata].hash
109
+ [client_user_id, document_data, metadata, return_url].hash
99
110
  end
100
111
 
101
112
  # Builds the object from hash