Skip to content

Commit b495915

Browse files
committed
more changes on layout for ex 24
1 parent 4e230a8 commit b495915

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/main/java/com/docusign/controller/examples/EG024ControllerPermissionCreate.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ public EG024ControllerPermissionCreate(DSConfiguration config, Session session,
4141
@Override
4242
protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse response)
4343
throws ApiException, IOException {
44+
4445
// Step 2. Construct your API headers
4546
AccountsApi accountsApi = createAccountsApi(session.getBasePath(), user.getAccessToken());
46-
AccountRoleSettings settings = DsModelUtils.createDefaultRoleSettings();
47+
4748
// Step 3. Construct your request body
49+
// We're Overloading the AccountSettings class with AccountSettingsPatch to include the signingUIVersion which is missing in the swagger spec at this time.
4850
Gson gson = new Gson();
51+
AccountRoleSettings settings = DsModelUtils.createDefaultRoleSettings();
4952
AccountRoleSettings newSettings = gson.fromJson(gson.toJson(settings), AccountRoleSettingsPatch.class);
50-
// we're casting as the overload class type and filling in the defualt setting for sending version to fix a gap in the swagger spec.
5153
((AccountRoleSettingsPatch) newSettings).signingUiVersion("1");
5254
PermissionProfile profile = new PermissionProfile()
5355
.permissionProfileName(args.getPermissionProfileName())

0 commit comments

Comments
 (0)