Skip to content

Commit

Permalink
DEVDOCS-10548 - adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
raileendr committed Aug 9, 2023
1 parent e568cca commit de2a334
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Services/Examples/eSignature/CreateTemplateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public static function createTemplate(array $args, $template_name, $demoDocsPath
# Template not found -- so create it
# Step 2 create the template
$template_req_object = CreateTemplateService::make_template_req($template_name, $demoDocsPath);
#ds-snippet-start:eSign8Step3
$templatesListResponse = $templates_api->createTemplate($args['account_id'], $template_req_object);
#ds-snippet-end:eSign8Step3
$template_id = $templatesListResponse['template_id'];
$results_template_name = $templatesListResponse['name'];
}
Expand All @@ -63,6 +65,8 @@ public static function createTemplate(array $args, $template_name, $demoDocsPath
* Create a template request object
* @return mixed
*/

#ds-snippet-start:eSign8Step2
public static function make_template_req($template_name, $demoDocsPath): EnvelopeTemplate
{
# document 1 is a pdf
Expand Down Expand Up @@ -207,6 +211,7 @@ public static function make_template_req($template_name, $demoDocsPath): Envelop
]
);
}
#ds-snippet-end:eSign8Step2

public static function createListOfButtonOptions(): ModelList
{
Expand All @@ -231,5 +236,4 @@ public static function createListOfButtonOptions(): ModelList
]
);
}
# ***DS.snippet.0.end
}

0 comments on commit de2a334

Please sign in to comment.