Skip to content

Commit 0615dc3

Browse files
committed
refactored service
1 parent 81db07e commit 0615dc3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

launcher-csharp/Admin/Examples/CreateAccount.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ public class CreateAccount
1818
private const string DefaultAccountName = "CreatedThroughAPI";
1919
private const string DefaultCountryCode = "US";
2020

21-
/// <summary>
22-
/// Helper method to configure DocuSign client with authorization headers.
23-
/// </summary>
24-
/// <param name="basePath">BasePath for API calls (URI)</param>
25-
/// <param name="accessToken">Access Token for API call (OAuth)</param>
26-
/// <returns>Configured DocuSignClient</returns>
27-
private static DocuSignClient GetConfiguredClient(string basePath, string accessToken)
28-
{
29-
var docuSignClient = new DocuSignClient(basePath);
30-
docuSignClient.Configuration.DefaultHeader[AuthorizationHeader] = BearerPrefix + accessToken;
31-
return docuSignClient;
32-
}
33-
3421
/// <summary>
3522
/// Get all plan items and return the first. Required scopes: organization_sub_account_read
3623
/// </summary>
@@ -79,6 +66,19 @@ public static SubscriptionProvisionModelAssetGroupWorkResult CreateAccountBySubs
7966
return assetGroupApi.CreateAssetGroupAccount(orgId, subAccountRequest);
8067
}
8168

69+
/// <summary>
70+
/// Helper method to configure DocuSign client with authorization headers.
71+
/// </summary>
72+
/// <param name="basePath">BasePath for API calls (URI)</param>
73+
/// <param name="accessToken">Access Token for API call (OAuth)</param>
74+
/// <returns>Configured DocuSignClient</returns>
75+
private static DocuSignClient GetConfiguredClient(string basePath, string accessToken)
76+
{
77+
var docuSignClient = new DocuSignClient(basePath);
78+
docuSignClient.Configuration.DefaultHeader[AuthorizationHeader] = BearerPrefix + accessToken;
79+
return docuSignClient;
80+
}
81+
8282
/// <summary>
8383
/// Helper method to build SubAccountCreateRequest object.
8484
/// </summary>

0 commit comments

Comments
 (0)