Skip to content

Commit b788b86

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

7 files changed

Lines changed: 67 additions & 62 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# DocuSign Admin Java Client Changelog
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

4+
## [v2.0.0-rc2] - Admin API v2.1-1.4.1 - 2024-10-22
5+
### Changed
6+
- Added support for version v2.1-1.4.1 of the DocuSign Admin API.
7+
- Updated the SDK release version.
8+
49
## [v2.0.0-rc1] - Admin API v2.1-1.4.0 - 2024-08-27
510
### Breaking Changes
611
<details>

src/Api/ProvisionAssetGroupApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class GetAssetGroupAccountClonesByOrgIdOptions
8989
* $since_updated_date When provided and is in the past, only return asset group account clone(s) that is updated after the date.
9090
* @var \DateTime
9191
*/
92-
protected \DateTime $since_updated_date = null;
92+
protected ?DateTime $since_updated_date = null;
9393

9494
/**
9595
* Gets since_updated_date
@@ -239,7 +239,7 @@ class GetSubAccountCreateProcessesByOrgIdOptions
239239
* $since_updated_date When provided and is in the past, only return asset group account create processes that are updated after the date.
240240
* @var \DateTime
241241
*/
242-
protected \DateTime $since_updated_date = null;
242+
protected ?DateTime $since_updated_date = null;
243243

244244
/**
245245
* Gets since_updated_date

src/Api/UsersApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public function setLastModifiedSince(?string $last_modified_since): self
465465
return $this;
466466
}
467467
/**
468-
* $include_ds_groups Select users with groups the users belong to; The organization must have entitlement AllowMultiApplication enabled.
468+
* $include_ds_groups Select users with groups the users belong to; account_id must be specified. The organization must have the entitlement AllowMultiApplication enabled.
469469
* @var ?bool
470470
*/
471471
protected ?bool $include_ds_groups = null;
@@ -482,7 +482,7 @@ public function getIncludeDsGroups(): ?bool
482482

483483
/**
484484
* Sets include_ds_groups
485-
* @param ?bool $include_ds_groups Select users with groups the users belong to; The organization must have entitlement AllowMultiApplication enabled.
485+
* @param ?bool $include_ds_groups Select users with groups the users belong to; account_id must be specified. The organization must have the entitlement AllowMultiApplication enabled.
486486
*
487487
* @return self
488488
*/

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Configuration
111111
*
112112
* @var string
113113
*/
114-
protected $userAgent = 'Swagger-Codegen/v2.1/2.0.0-rc1/php/' . PHP_VERSION;
114+
protected $userAgent = 'Swagger-Codegen/v2.1/2.0.0-rc2/php/' . PHP_VERSION;
115115

116116
/**
117117
* Debug switch (default set to false)
@@ -774,7 +774,7 @@ public static function toDebugReport()
774774
$report .= ' OS: ' . php_uname() . PHP_EOL;
775775
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
776776
$report .= ' OpenAPI Spec Version: v2.1' . PHP_EOL;
777-
$report .= ' SDK Package Version: 2.0.0-rc1' . PHP_EOL;
777+
$report .= ' SDK Package Version: 2.0.0-rc2' . PHP_EOL;
778778
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
779779

780780
return $report;

src/Model/SubscriptionProvisionModelAccountCreateCreateAccountDetails.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SubscriptionProvisionModelAccountCreateCreateAccountDetails implements Mod
6565
'site' => '?string',
6666
'address' => '\DocuSign\Admin\Model\DocuSignAccountDomainModelAddress',
6767
'admin_user' => '\DocuSign\Admin\Model\SubscriptionProvisionModelAccountCreateAccountAdmin',
68-
'billing_profile_type' => '?string'
68+
'billing_profile_type' => '?int'
6969
];
7070

7171
/**
@@ -80,7 +80,7 @@ class SubscriptionProvisionModelAccountCreateCreateAccountDetails implements Mod
8080
'site' => null,
8181
'address' => null,
8282
'admin_user' => null,
83-
'billing_profile_type' => null
83+
'billing_profile_type' => 'int32'
8484
];
8585

8686
/**
@@ -190,8 +190,8 @@ public function getModelName()
190190
return self::$swaggerModelName;
191191
}
192192

193-
const BILLING_PROFILE_TYPE_WEB = 'Web';
194-
const BILLING_PROFILE_TYPE_DIRECT = 'Direct';
193+
const BILLING_PROFILE_TYPE__0 = '0';
194+
const BILLING_PROFILE_TYPE__1 = '1';
195195

196196

197197

@@ -203,8 +203,8 @@ public function getModelName()
203203
public function getBillingProfileTypeAllowableValues()
204204
{
205205
return [
206-
self::BILLING_PROFILE_TYPE_WEB,
207-
self::BILLING_PROFILE_TYPE_DIRECT,
206+
self::BILLING_PROFILE_TYPE__0,
207+
self::BILLING_PROFILE_TYPE__1,
208208
];
209209
}
210210

@@ -243,7 +243,7 @@ public function listInvalidProperties()
243243
$invalidProperties = [];
244244

245245
$allowedValues = $this->getBillingProfileTypeAllowableValues();
246-
if (!is_null($this->container['billing_profile_type']) && !in_array($this->container['billing_profile_type'], $allowedValues, true)) {
246+
if (!is_null($this->container['billing_profile_type']) && !in_array($this->container['billing_profile_type'], $allowedValues, false)) {
247247
$invalidProperties[] = sprintf(
248248
"invalid value for 'billing_profile_type', must be one of '%s'",
249249
implode("', '", $allowedValues)
@@ -412,7 +412,7 @@ public function setAdminUser($admin_user)
412412
/**
413413
* Gets billing_profile_type
414414
*
415-
* @return ?string
415+
* @return ?int
416416
*/
417417
public function getBillingProfileType()
418418
{
@@ -422,14 +422,14 @@ public function getBillingProfileType()
422422
/**
423423
* Sets billing_profile_type
424424
*
425-
* @param ?string $billing_profile_type billing_profile_type
425+
* @param ?int $billing_profile_type 0 stands for Web, 1 stands for Direct
426426
*
427427
* @return $this
428428
*/
429429
public function setBillingProfileType($billing_profile_type)
430430
{
431431
$allowedValues = $this->getBillingProfileTypeAllowableValues();
432-
if (!is_null($billing_profile_type) && !in_array($billing_profile_type, $allowedValues, true)) {
432+
if (!is_null($billing_profile_type) && !in_array($billing_profile_type, $allowedValues, false)) {
433433
throw new \InvalidArgumentException(
434434
sprintf(
435435
"Invalid value for 'billing_profile_type', must be one of '%s'",

src/Model/SubscriptionProvisionModelAccountCreateCreateSubAccountDetails.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SubscriptionProvisionModelAccountCreateCreateSubAccountDetails implements
6666
'site' => '?string',
6767
'address' => '\DocuSign\Admin\Model\DocuSignAccountDomainModelAddress',
6868
'admin_user' => '\DocuSign\Admin\Model\SubscriptionProvisionModelAccountCreateAccountAdmin',
69-
'billing_profile_type' => '?string'
69+
'billing_profile_type' => '?int'
7070
];
7171

7272
/**
@@ -82,7 +82,7 @@ class SubscriptionProvisionModelAccountCreateCreateSubAccountDetails implements
8282
'site' => null,
8383
'address' => null,
8484
'admin_user' => null,
85-
'billing_profile_type' => null
85+
'billing_profile_type' => 'int32'
8686
];
8787

8888
/**
@@ -195,8 +195,8 @@ public function getModelName()
195195
return self::$swaggerModelName;
196196
}
197197

198-
const BILLING_PROFILE_TYPE_WEB = 'Web';
199-
const BILLING_PROFILE_TYPE_DIRECT = 'Direct';
198+
const BILLING_PROFILE_TYPE__0 = '0';
199+
const BILLING_PROFILE_TYPE__1 = '1';
200200

201201

202202

@@ -208,8 +208,8 @@ public function getModelName()
208208
public function getBillingProfileTypeAllowableValues()
209209
{
210210
return [
211-
self::BILLING_PROFILE_TYPE_WEB,
212-
self::BILLING_PROFILE_TYPE_DIRECT,
211+
self::BILLING_PROFILE_TYPE__0,
212+
self::BILLING_PROFILE_TYPE__1,
213213
];
214214
}
215215

@@ -249,7 +249,7 @@ public function listInvalidProperties()
249249
$invalidProperties = [];
250250

251251
$allowedValues = $this->getBillingProfileTypeAllowableValues();
252-
if (!is_null($this->container['billing_profile_type']) && !in_array($this->container['billing_profile_type'], $allowedValues, true)) {
252+
if (!is_null($this->container['billing_profile_type']) && !in_array($this->container['billing_profile_type'], $allowedValues, false)) {
253253
$invalidProperties[] = sprintf(
254254
"invalid value for 'billing_profile_type', must be one of '%s'",
255255
implode("', '", $allowedValues)
@@ -442,7 +442,7 @@ public function setAdminUser($admin_user)
442442
/**
443443
* Gets billing_profile_type
444444
*
445-
* @return ?string
445+
* @return ?int
446446
*/
447447
public function getBillingProfileType()
448448
{
@@ -452,14 +452,14 @@ public function getBillingProfileType()
452452
/**
453453
* Sets billing_profile_type
454454
*
455-
* @param ?string $billing_profile_type billing_profile_type
455+
* @param ?int $billing_profile_type 0 stands for Web, 1 stands for Direct
456456
*
457457
* @return $this
458458
*/
459459
public function setBillingProfileType($billing_profile_type)
460460
{
461461
$allowedValues = $this->getBillingProfileTypeAllowableValues();
462-
if (!is_null($billing_profile_type) && !in_array($billing_profile_type, $allowedValues, true)) {
462+
if (!is_null($billing_profile_type) && !in_array($billing_profile_type, $allowedValues, false)) {
463463
throw new \InvalidArgumentException(
464464
sprintf(
465465
"Invalid value for 'billing_profile_type', must be one of '%s'",

src/Model/SubscriptionProvisionModelAssetGroupWork.php

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ class SubscriptionProvisionModelAssetGroupWork implements ModelInterface, ArrayA
8383
'source_system' => '?string',
8484
'source_id' => '?string',
8585
'created_by' => '?string',
86-
'created_by_type' => '?string',
86+
'created_by_type' => '?int',
8787
'created_date' => '\DateTime',
8888
'updated_by' => '?string',
89-
'updated_by_type' => '?string',
89+
'updated_by_type' => '?int',
9090
'updated_date' => '\DateTime',
9191
'update_history' => '\DocuSign\Admin\Model\SubscriptionProvisionModelChangeEvent[]'
9292
];
@@ -121,10 +121,10 @@ class SubscriptionProvisionModelAssetGroupWork implements ModelInterface, ArrayA
121121
'source_system' => null,
122122
'source_id' => null,
123123
'created_by' => null,
124-
'created_by_type' => null,
124+
'created_by_type' => 'int32',
125125
'created_date' => 'date-time',
126126
'updated_by' => null,
127-
'updated_by_type' => null,
127+
'updated_by_type' => 'int32',
128128
'updated_date' => 'date-time',
129129
'update_history' => null
130130
];
@@ -320,18 +320,18 @@ public function getModelName()
320320
const STATUS_COMPLETED = 'Completed';
321321
const STATUS_CANCELED = 'Canceled';
322322
const STATUS_PERMANENT_FAILURE = 'PermanentFailure';
323-
const CREATED_BY_TYPE_APPLICATION = 'Application';
324-
const CREATED_BY_TYPE_USER = 'User';
325-
const CREATED_BY_TYPE_GENERIC = 'Generic';
326-
const CREATED_BY_TYPE_REST_API_AUTH = 'RestAPIAuth';
327-
const CREATED_BY_TYPE_RESOURCE = 'Resource';
328-
const CREATED_BY_TYPE_RESTRICTED = 'Restricted';
329-
const UPDATED_BY_TYPE_APPLICATION = 'Application';
330-
const UPDATED_BY_TYPE_USER = 'User';
331-
const UPDATED_BY_TYPE_GENERIC = 'Generic';
332-
const UPDATED_BY_TYPE_REST_API_AUTH = 'RestAPIAuth';
333-
const UPDATED_BY_TYPE_RESOURCE = 'Resource';
334-
const UPDATED_BY_TYPE_RESTRICTED = 'Restricted';
323+
const CREATED_BY_TYPE__0 = '0';
324+
const CREATED_BY_TYPE__1 = '1';
325+
const CREATED_BY_TYPE__2 = '2';
326+
const CREATED_BY_TYPE__3 = '3';
327+
const CREATED_BY_TYPE__4 = '4';
328+
const CREATED_BY_TYPE__5 = '5';
329+
const UPDATED_BY_TYPE__0 = '0';
330+
const UPDATED_BY_TYPE__1 = '1';
331+
const UPDATED_BY_TYPE__2 = '2';
332+
const UPDATED_BY_TYPE__3 = '3';
333+
const UPDATED_BY_TYPE__4 = '4';
334+
const UPDATED_BY_TYPE__5 = '5';
335335

336336

337337

@@ -380,12 +380,12 @@ public function getStatusAllowableValues()
380380
public function getCreatedByTypeAllowableValues()
381381
{
382382
return [
383-
self::CREATED_BY_TYPE_APPLICATION,
384-
self::CREATED_BY_TYPE_USER,
385-
self::CREATED_BY_TYPE_GENERIC,
386-
self::CREATED_BY_TYPE_REST_API_AUTH,
387-
self::CREATED_BY_TYPE_RESOURCE,
388-
self::CREATED_BY_TYPE_RESTRICTED,
383+
self::CREATED_BY_TYPE__0,
384+
self::CREATED_BY_TYPE__1,
385+
self::CREATED_BY_TYPE__2,
386+
self::CREATED_BY_TYPE__3,
387+
self::CREATED_BY_TYPE__4,
388+
self::CREATED_BY_TYPE__5,
389389
];
390390
}
391391

@@ -397,12 +397,12 @@ public function getCreatedByTypeAllowableValues()
397397
public function getUpdatedByTypeAllowableValues()
398398
{
399399
return [
400-
self::UPDATED_BY_TYPE_APPLICATION,
401-
self::UPDATED_BY_TYPE_USER,
402-
self::UPDATED_BY_TYPE_GENERIC,
403-
self::UPDATED_BY_TYPE_REST_API_AUTH,
404-
self::UPDATED_BY_TYPE_RESOURCE,
405-
self::UPDATED_BY_TYPE_RESTRICTED,
400+
self::UPDATED_BY_TYPE__0,
401+
self::UPDATED_BY_TYPE__1,
402+
self::UPDATED_BY_TYPE__2,
403+
self::UPDATED_BY_TYPE__3,
404+
self::UPDATED_BY_TYPE__4,
405+
self::UPDATED_BY_TYPE__5,
406406
];
407407
}
408408

@@ -480,15 +480,15 @@ public function listInvalidProperties()
480480
}
481481

482482
$allowedValues = $this->getCreatedByTypeAllowableValues();
483-
if (!is_null($this->container['created_by_type']) && !in_array($this->container['created_by_type'], $allowedValues, true)) {
483+
if (!is_null($this->container['created_by_type']) && !in_array($this->container['created_by_type'], $allowedValues, false)) {
484484
$invalidProperties[] = sprintf(
485485
"invalid value for 'created_by_type', must be one of '%s'",
486486
implode("', '", $allowedValues)
487487
);
488488
}
489489

490490
$allowedValues = $this->getUpdatedByTypeAllowableValues();
491-
if (!is_null($this->container['updated_by_type']) && !in_array($this->container['updated_by_type'], $allowedValues, true)) {
491+
if (!is_null($this->container['updated_by_type']) && !in_array($this->container['updated_by_type'], $allowedValues, false)) {
492492
$invalidProperties[] = sprintf(
493493
"invalid value for 'updated_by_type', must be one of '%s'",
494494
implode("', '", $allowedValues)
@@ -1107,7 +1107,7 @@ public function setCreatedBy($created_by)
11071107
/**
11081108
* Gets created_by_type
11091109
*
1110-
* @return ?string
1110+
* @return ?int
11111111
*/
11121112
public function getCreatedByType()
11131113
{
@@ -1117,14 +1117,14 @@ public function getCreatedByType()
11171117
/**
11181118
* Sets created_by_type
11191119
*
1120-
* @param ?string $created_by_type created_by_type
1120+
* @param ?int $created_by_type 0 stands for Application, 1 stands for User, 2 stands for Generic, 3 stands for RestAPIAuth, 4 stands for Resource, 5 stands for Restricted
11211121
*
11221122
* @return $this
11231123
*/
11241124
public function setCreatedByType($created_by_type)
11251125
{
11261126
$allowedValues = $this->getCreatedByTypeAllowableValues();
1127-
if (!is_null($created_by_type) && !in_array($created_by_type, $allowedValues, true)) {
1127+
if (!is_null($created_by_type) && !in_array($created_by_type, $allowedValues, false)) {
11281128
throw new \InvalidArgumentException(
11291129
sprintf(
11301130
"Invalid value for 'created_by_type', must be one of '%s'",
@@ -1188,7 +1188,7 @@ public function setUpdatedBy($updated_by)
11881188
/**
11891189
* Gets updated_by_type
11901190
*
1191-
* @return ?string
1191+
* @return ?int
11921192
*/
11931193
public function getUpdatedByType()
11941194
{
@@ -1198,14 +1198,14 @@ public function getUpdatedByType()
11981198
/**
11991199
* Sets updated_by_type
12001200
*
1201-
* @param ?string $updated_by_type updated_by_type
1201+
* @param ?int $updated_by_type 0 stands for Application, 1 stands for User, 2 stands for Generic, 3 stands for RestAPIAuth, 4 stands for Resource, 5 stands for Restricted
12021202
*
12031203
* @return $this
12041204
*/
12051205
public function setUpdatedByType($updated_by_type)
12061206
{
12071207
$allowedValues = $this->getUpdatedByTypeAllowableValues();
1208-
if (!is_null($updated_by_type) && !in_array($updated_by_type, $allowedValues, true)) {
1208+
if (!is_null($updated_by_type) && !in_array($updated_by_type, $allowedValues, false)) {
12091209
throw new \InvalidArgumentException(
12101210
sprintf(
12111211
"Invalid value for 'updated_by_type', must be one of '%s'",

0 commit comments

Comments
 (0)