Skip to content

Commit 85f11aa

Browse files
add models
1 parent 4280ca8 commit 85f11aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/admin/examples/createAccount.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ const createAccount = async (args) => {
1313
//ds-snippet-end:Admin13Step2
1414

1515
//ds-snippet-start:Admin13Step4
16-
const accountData = {
17-
subscriptionDetails: {
16+
const accountData = docusignAdmin.SubAccountCreateRequest.constructFromObject({
17+
subscriptionDetails: docusignAdmin.SubAccountCreateRequestSubAccountCreationSubscription.constructFromObject({
1818
id: args.subscriptionId,
1919
planId: args.planId,
2020
modules: [],
21-
},
21+
}),
2222
targetAccount: docusignAdmin.SubAccountCreateRequestSubAccountCreationTargetAccountDetails.constructFromObject({
2323
name: 'CreatedThroughAPI',
2424
countryCode: 'US',
@@ -29,7 +29,7 @@ const createAccount = async (args) => {
2929
locale: 'en',
3030
}),
3131
}),
32-
};
32+
});
3333
//ds-snippet-end:Admin13Step4
3434

3535
//ds-snippet-start:Admin13Step5

0 commit comments

Comments
 (0)