Skip to content

Commit

Permalink
Merge pull request #10 from docusign/1.3.0-v1-22.4.01.00
Browse files Browse the repository at this point in the history
Version 1.3.0 release
  • Loading branch information
karissarjacobsen committed Feb 16, 2023
2 parents f6328ba + 95479b0 commit b4f31b2
Show file tree
Hide file tree
Showing 30 changed files with 688 additions and 374 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# DocuSign Click Ruby Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.

## [v1.3.0] - Click API v1-22.4.01.00 - 2023-02-13
### Changed
- Added support for version v1-22.4.01.00 of the DocuSign Click API.
- Updated the SDK release version.

## [v1.2.2] - Click API v1-22.3.01.00 - 2022-10-28
### Changed
- Added support for version v1-22.3.01.00 of the DocuSign Click API.
Expand Down
2 changes: 1 addition & 1 deletion docusign_click.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand Down
3 changes: 2 additions & 1 deletion lib/docusign_click.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand All @@ -19,6 +19,7 @@
require 'docusign_click/client/auth/oauth'

# Models
require 'docusign_click/models/bulk_clickwrap_request'
require 'docusign_click/models/clickwrap_agreements_response'
require 'docusign_click/models/clickwrap_delete_response'
require 'docusign_click/models/clickwrap_request'
Expand Down
430 changes: 242 additions & 188 deletions lib/docusign_click/api/accounts_api.rb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/docusign_click/client/api_client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand Down Expand Up @@ -35,7 +35,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "Swagger-Codegen/1.2.2/ruby"
@user_agent = "Swagger-Codegen/1.3.0/ruby"
@default_headers = {
'Content-Type' => "application/json",
'User-Agent' => @user_agent
Expand Down
2 changes: 1 addition & 1 deletion lib/docusign_click/client/api_error.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand Down
2 changes: 1 addition & 1 deletion lib/docusign_click/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand Down
205 changes: 205 additions & 0 deletions lib/docusign_click/models/bulk_clickwrap_request.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
=begin
#DocuSign Click API
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
=end

require 'date'

module DocuSign_Click
# Data used to start a bulk agreements export.
class BulkClickwrapRequest
# The earliest date to return agreements from.
attr_accessor :from_date

# User agreement status. One of: - `agreed` - `declined`
attr_accessor :status

# The latest date to return agreements from.
attr_accessor :to_date

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'from_date' => :'fromDate',
:'status' => :'status',
:'to_date' => :'toDate'
}
end

# Attribute type mapping.
def self.swagger_types
{
:'from_date' => :'Object',
:'status' => :'String',
:'to_date' => :'Object'
}
end

# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
def initialize(attributes = {})
return unless attributes.is_a?(Hash)

# convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

if attributes.has_key?(:'fromDate')
self.from_date = attributes[:'fromDate']
end

if attributes.has_key?(:'status')
self.status = attributes[:'status']
end

if attributes.has_key?(:'toDate')
self.to_date = attributes[:'toDate']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
invalid_properties
end

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
true
end

# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
from_date == o.from_date &&
status == o.status &&
to_date == o.to_date
end

# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
self == o
end

# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
[from_date, status, to_date].hash
end

# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.swagger_types.each_pair do |key, type|
if type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
# is documented as an array but the input is not
if attributes[self.class.attribute_map[key]].is_a?(Array)
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
end # or else data not found in attributes(hash), not an issue as the data can be optional
end

self
end

# Deserializes the data based on type
# @param string type Data type
# @param string value Value to be deserialized
# @return [Object] Deserialized data
def _deserialize(type, value)
case type.to_sym
when :DateTime
DateTime.parse(value)
when :Date
Date.parse(value)
when :String
value.to_s
when :Integer
value.to_i
when :Float
value.to_f
when :BOOLEAN
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
true
else
false
end
when :Object
# generic object (usually a Hash), return directly
value
when /\AArray<(?<inner_type>.+)>\z/
inner_type = Regexp.last_match[:inner_type]
value.map { |v| _deserialize(inner_type, v) }
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
k_type = Regexp.last_match[:k_type]
v_type = Regexp.last_match[:v_type]
{}.tap do |hash|
value.each do |k, v|
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
end
end
else # model
temp_model = DocuSign_Click.const_get(type).new
temp_model.build_from_hash(value)
end
end

# Returns the string representation of the object
# @return [String] String presentation of the object
def to_s
to_hash.to_s
end

# to_body is an alias to to_hash (backward compatibility)
# @return [Hash] Returns the object in the form of hash
def to_body
to_hash
end

# Returns the object in the form of hash
# @return [Hash] Returns the object in the form of hash
def to_hash
hash = {}
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
next if value.nil?
hash[param] = _to_hash(value)
end
hash
end

# Outputs non-array value in the form of hash
# For object, use to_hash. Otherwise, just return the value
# @param [Object] value Any valid value
# @return [Hash] Returns the value in the form of hash
def _to_hash(value)
if value.is_a?(Array)
value.compact.map { |v| _to_hash(v) }
elsif value.is_a?(Hash)
{}.tap do |hash|
value.each { |k, v| hash[k] = _to_hash(v) }
end
elsif value.respond_to? :to_hash
value.to_hash
else
value
end
end

end
end
12 changes: 6 additions & 6 deletions lib/docusign_click/models/clickwrap_agreements_response.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand All @@ -13,19 +13,19 @@

module DocuSign_Click
class ClickwrapAgreementsResponse
#
# User agreements from this datetime.
attr_accessor :begin_created_on

#
# Number of pages remaining in the response.
attr_accessor :minimum_pages_remaining

#
# The number of the current page.
attr_accessor :page

#
# The number of items per page.
attr_accessor :page_size

#
# An array of user agreements.
attr_accessor :user_agreements

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down
13 changes: 7 additions & 6 deletions lib/docusign_click/models/clickwrap_delete_response.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin
#DocuSign Click API
#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.
#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.
OpenAPI spec version: v1
Contact: devcenter@docusign.com
Expand All @@ -12,20 +12,21 @@
require 'date'

module DocuSign_Click
# The result of a clickwrap deletion request.
class ClickwrapDeleteResponse
#
# The ID of the clickwrap.
attr_accessor :clickwrap_id

#
# The name of the clickwrap.
attr_accessor :clickwrap_name

#
# A message describing the result of deletion request. One of: - `alreadyDeleted`: Clickwrap is already deleted. - `deletionSuccess`: Successfully deleted the clickwrap. - `deletionFailure`: Failed to delete the clickwrap. - `cannotDelete`: Active clickwrap version cannot be deleted.
attr_accessor :deletion_message

#
# **True** if the clickwrap was deleted successfully. **False** otherwise.
attr_accessor :deletion_success

#
# Clickwrap status. Possible values: - `active` - `inactive` - `deleted`
attr_accessor :status

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down
Loading

0 comments on commit b4f31b2

Please sign in to comment.