Skip to content

Commit c542175

Browse files
committed
DEVDOCS-10342 adding codeDepot markers
1 parent 42ae7ef commit c542175

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/Services/Examples/eSignature/UseTemplateService.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@ class UseTemplateService
99
{
1010
/**
1111
* Do the work of the example
12-
* 1. Create the envelope request object
13-
* 2. Send the envelope
12+
* Create the envelope request object
13+
* Send the envelope
1414
*
1515
* @param $args array
1616
* @param $clientService
1717
* @return array ['redirect_url']
1818
*/
19-
# ***DS.snippet.0.start
2019
public static function useTemplate(array $args, $clientService): array
2120
{
22-
# 1. Create the envelope request object
21+
#ds-snippet-start:eSign9Step3
22+
# Create the envelope request object
2323
$envelope_definition = UseTemplateService::make_envelope($args["envelope_args"]);
2424

25-
# 2. call Envelopes::create API method
25+
# Call Envelopes::create API method
2626
# Exceptions will be caught by the calling function
2727
$envelope_api = $clientService->getEnvelopeApi();
2828
$envelopeResponse = $envelope_api->createEnvelope($args['account_id'], $envelope_definition);
2929

3030
return ['envelope_id' => $envelopeResponse->getEnvelopeId()];
31+
#ds-snippet-end:eSign9Step3
3132
}
3233

3334
/**
@@ -37,7 +38,9 @@ public static function useTemplate(array $args, $clientService): array
3738
* @param $args array
3839
* @return mixed -- returns an envelope definition
3940
*/
40-
public static function make_envelope(array $args): EnvelopeDefinition
41+
42+
#ds-snippet-start:eSign9Step2
43+
public static function make_envelope(array $args): EnvelopeDefinition
4144
{
4245
# create the envelope definition with the template_id
4346
$envelope_definition = new EnvelopeDefinition([
@@ -60,5 +63,5 @@ public static function make_envelope(array $args): EnvelopeDefinition
6063

6164
return $envelope_definition;
6265
}
63-
# ***DS.snippet.0.end
66+
#ds-snippet-end:eSign9Step2
6467
}

0 commit comments

Comments
 (0)