Skip to content

Commit 02aaeca

Browse files
garg-muditroot
andauthored
Version 2.0.0.rc2-v2.1-1.4.1 release (#7)
Co-authored-by: root <root@devcenteradmin.docusigntest.com>
1 parent af08988 commit 02aaeca

8 files changed

+25
-19
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [v2.0.0.rc2] - Admin API v2.1-1.4.1 - 2024-10-22
2+
### Changed
3+
- Added support for version v2.1-1.4.1 of the DocuSign Admin API.
4+
- Removed the staging base path and OAuth path constant.
5+
- Updated the SDK release version.
6+
17
## [v2.0.0.rc1] - Admin API v2.1-1.4.0 - 2024-08-27
28
### Breaking Changes
39
<details>

lib/docusign_admin/api/users_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class GetUsersOptions
7474
# Select users whose data have been modified since the date specified; account_id or organization_reserved_domain_id must be specified.
7575
attr_accessor :last_modified_since
7676

77-
# Select users with groups the users belong to; The organization must have entitlement AllowMultiApplication enabled.
77+
# Select users with groups the users belong to; account_id must be specified. The organization must have the entitlement AllowMultiApplication enabled.
7878
attr_accessor :include_ds_groups
7979

8080
def self.default

lib/docusign_admin/client/api_client.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ApiClient
3535
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
3636
def initialize(config = Configuration.default)
3737
@config = config
38-
@user_agent = "Swagger-Codegen/v2.1/2.0.0.rc1/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
38+
@user_agent = "Swagger-Codegen/v2.1/2.0.0.rc2/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
3939
@default_headers = {
4040
'Content-Type' => "application/json",
4141
'User-Agent' => @user_agent
@@ -409,8 +409,6 @@ def set_oauth_base_path(oauth_base_path=nil)
409409
# Derive OAuth Base Path if not given
410410
if self.base_path.nil? or self.base_path.start_with?("https://demo") or self.base_path.start_with?("http://demo") or self.base_path.start_with?("https://apps-d") or self.base_path.start_with?("http://apps-d")
411411
self.oauth_base_path = OAuth::DEMO_OAUTH_BASE_PATH
412-
elsif self.base_path.start_with?("https://stage") or self.base_path.start_with?("http://stage") or self.base_path.start_with?("https://apps-s") or self.base_path.start_with?("http://apps-s")
413-
self.oauth_base_path = OAuth::STAGE_OAUTH_BASE_PATH
414412
else
415413
self.oauth_base_path = OAuth::PRODUCTION_OAUTH_BASE_PATH
416414
end

lib/docusign_admin/client/auth/oauth.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ class OAuth
1414
DEMO_OAUTH_BASE_PATH = "account-d.docusign.com"
1515
# Production server base path
1616
PRODUCTION_OAUTH_BASE_PATH = "account.docusign.com"
17-
# Stage server base path
18-
STAGE_OAUTH_BASE_PATH = "account-s.docusign.com"
1917
# JWT Grant Type
2018
GRANT_TYPE_JWT = "urn:ietf:params:oauth:grant-type:jwt-bearer"
2119

lib/docusign_admin/models/subscription_provision_model_account_create_create_account_details.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SubscriptionProvisionModelAccountCreateCreateAccountDetails
2525

2626
attr_accessor :admin_user
2727

28+
# 0 stands for Web, 1 stands for Direct
2829
attr_accessor :billing_profile_type
2930

3031
class EnumAttributeValidator
@@ -71,7 +72,7 @@ def self.swagger_types
7172
:'site' => :'String',
7273
:'address' => :'DocuSignAccountDomainModelAddress',
7374
:'admin_user' => :'SubscriptionProvisionModelAccountCreateAccountAdmin',
74-
:'billing_profile_type' => :'String'
75+
:'billing_profile_type' => :'Integer'
7576
}
7677
end
7778

@@ -122,15 +123,15 @@ def list_invalid_properties
122123
# Check to see if the all the properties in the model are valid
123124
# @return true if the model is valid
124125
def valid?
125-
billing_profile_type_validator = EnumAttributeValidator.new('String', ['Web', 'Direct'])
126+
billing_profile_type_validator = EnumAttributeValidator.new('Integer', ['0', '1'])
126127
return false unless billing_profile_type_validator.valid?(@billing_profile_type)
127128
true
128129
end
129130

130131
# Custom attribute writer method checking allowed values (enum).
131132
# @param [Object] billing_profile_type Object to be assigned
132133
def billing_profile_type=(billing_profile_type)
133-
validator = EnumAttributeValidator.new('String', ['Web', 'Direct'])
134+
validator = EnumAttributeValidator.new('Integer', ['0', '1'])
134135
unless validator.valid?(billing_profile_type)
135136
fail ArgumentError, 'invalid value for "billing_profile_type", must be one of #{validator.allowable_values}.'
136137
end

lib/docusign_admin/models/subscription_provision_model_account_create_create_sub_account_details.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class SubscriptionProvisionModelAccountCreateCreateSubAccountDetails
2727

2828
attr_accessor :admin_user
2929

30+
# 0 stands for Web, 1 stands for Direct
3031
attr_accessor :billing_profile_type
3132

3233
class EnumAttributeValidator
@@ -75,7 +76,7 @@ def self.swagger_types
7576
:'site' => :'String',
7677
:'address' => :'DocuSignAccountDomainModelAddress',
7778
:'admin_user' => :'SubscriptionProvisionModelAccountCreateAccountAdmin',
78-
:'billing_profile_type' => :'String'
79+
:'billing_profile_type' => :'Integer'
7980
}
8081
end
8182

@@ -130,15 +131,15 @@ def list_invalid_properties
130131
# Check to see if the all the properties in the model are valid
131132
# @return true if the model is valid
132133
def valid?
133-
billing_profile_type_validator = EnumAttributeValidator.new('String', ['Web', 'Direct'])
134+
billing_profile_type_validator = EnumAttributeValidator.new('Integer', ['0', '1'])
134135
return false unless billing_profile_type_validator.valid?(@billing_profile_type)
135136
true
136137
end
137138

138139
# Custom attribute writer method checking allowed values (enum).
139140
# @param [Object] billing_profile_type Object to be assigned
140141
def billing_profile_type=(billing_profile_type)
141-
validator = EnumAttributeValidator.new('String', ['Web', 'Direct'])
142+
validator = EnumAttributeValidator.new('Integer', ['0', '1'])
142143
unless validator.valid?(billing_profile_type)
143144
fail ArgumentError, 'invalid value for "billing_profile_type", must be one of #{validator.allowable_values}.'
144145
end

lib/docusign_admin/models/subscription_provision_model_asset_group_work.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ class SubscriptionProvisionModelAssetGroupWork
6161

6262
attr_accessor :created_by
6363

64+
# 0 stands for Application, 1 stands for User, 2 stands for Generic, 3 stands for RestAPIAuth, 4 stands for Resource, 5 stands for Restricted
6465
attr_accessor :created_by_type
6566

6667
attr_accessor :created_date
6768

6869
attr_accessor :updated_by
6970

71+
# 0 stands for Application, 1 stands for User, 2 stands for Generic, 3 stands for RestAPIAuth, 4 stands for Resource, 5 stands for Restricted
7072
attr_accessor :updated_by_type
7173

7274
attr_accessor :updated_date
@@ -158,10 +160,10 @@ def self.swagger_types
158160
:'source_system' => :'String',
159161
:'source_id' => :'String',
160162
:'created_by' => :'String',
161-
:'created_by_type' => :'String',
163+
:'created_by_type' => :'Integer',
162164
:'created_date' => :'DateTime',
163165
:'updated_by' => :'String',
164-
:'updated_by_type' => :'String',
166+
:'updated_by_type' => :'Integer',
165167
:'updated_date' => :'DateTime',
166168
:'update_history' => :'Array<SubscriptionProvisionModelChangeEvent>'
167169
}
@@ -312,9 +314,9 @@ def valid?
312314
return false unless asset_group_work_type_validator.valid?(@asset_group_work_type)
313315
status_validator = EnumAttributeValidator.new('String', ['Undefined', 'Pending', 'Processing', 'ProcessingOnHold', 'PendingError', 'ProcessingError', 'Completed', 'Canceled', 'PermanentFailure'])
314316
return false unless status_validator.valid?(@status)
315-
created_by_type_validator = EnumAttributeValidator.new('String', ['Application', 'User', 'Generic', 'RestAPIAuth', 'Resource', 'Restricted'])
317+
created_by_type_validator = EnumAttributeValidator.new('Integer', ['0', '1', '2', '3', '4', '5'])
316318
return false unless created_by_type_validator.valid?(@created_by_type)
317-
updated_by_type_validator = EnumAttributeValidator.new('String', ['Application', 'User', 'Generic', 'RestAPIAuth', 'Resource', 'Restricted'])
319+
updated_by_type_validator = EnumAttributeValidator.new('Integer', ['0', '1', '2', '3', '4', '5'])
318320
return false unless updated_by_type_validator.valid?(@updated_by_type)
319321
true
320322
end
@@ -342,7 +344,7 @@ def status=(status)
342344
# Custom attribute writer method checking allowed values (enum).
343345
# @param [Object] created_by_type Object to be assigned
344346
def created_by_type=(created_by_type)
345-
validator = EnumAttributeValidator.new('String', ['Application', 'User', 'Generic', 'RestAPIAuth', 'Resource', 'Restricted'])
347+
validator = EnumAttributeValidator.new('Integer', ['0', '1', '2', '3', '4', '5'])
346348
unless validator.valid?(created_by_type)
347349
fail ArgumentError, 'invalid value for "created_by_type", must be one of #{validator.allowable_values}.'
348350
end
@@ -352,7 +354,7 @@ def created_by_type=(created_by_type)
352354
# Custom attribute writer method checking allowed values (enum).
353355
# @param [Object] updated_by_type Object to be assigned
354356
def updated_by_type=(updated_by_type)
355-
validator = EnumAttributeValidator.new('String', ['Application', 'User', 'Generic', 'RestAPIAuth', 'Resource', 'Restricted'])
357+
validator = EnumAttributeValidator.new('Integer', ['0', '1', '2', '3', '4', '5'])
356358
unless validator.valid?(updated_by_type)
357359
fail ArgumentError, 'invalid value for "updated_by_type", must be one of #{validator.allowable_values}.'
358360
end

lib/docusign_admin/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
=end
1111

1212
module DocuSign_Admin
13-
VERSION = '2.0.0.rc1'
13+
VERSION = '2.0.0.rc2'
1414
end

0 commit comments

Comments
 (0)