From 03f8aa31ac559718d57a7c9dcc53bae9acfefcc7 Mon Sep 17 00:00:00 2001 From: sfcbetiuc <42634794+sfcbetiuc@users.noreply.github.com> Date: Mon, 25 Nov 2019 12:56:27 +0200 Subject: [PATCH] Updated the samples --- test/samples/SampleHelper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/samples/SampleHelper.js b/test/samples/SampleHelper.js index 176c061..f39d892 100644 --- a/test/samples/SampleHelper.js +++ b/test/samples/SampleHelper.js @@ -44,10 +44,10 @@ class SampleHelper { let customerKey = createAssetResponse.customerKey; let emailDefinitionName = 'EmailDefinitionName' + SampleHelper.getUUID(5); // it has be unique let emailDefinitionKey = 'EmailDefinitionKey' + SampleHelper.getUUID(5); // it has be unique - let emailDefinitionContent = new SalesforceMarketingCloud.CreateEmailDefinitionContent(customerKey); - let emailDefinitionSubscriptions = new SalesforceMarketingCloud.CreateEmailDefinitionSubscriptions(SUBSCRIBERS_LIST_KEY); + let emailDefinitionContent = new SalesforceMarketingCloud.EmailDefinitionContent(customerKey); + let emailDefinitionSubscriptions = new SalesforceMarketingCloud.EmailDefinitionSubscriptions(SUBSCRIBERS_LIST_KEY); - return new SalesforceMarketingCloud.CreateEmailDefinitionRequest(emailDefinitionName, emailDefinitionKey, emailDefinitionContent, emailDefinitionSubscriptions); + return new SalesforceMarketingCloud.EmailDefinition(emailDefinitionName, emailDefinitionKey, emailDefinitionContent, emailDefinitionSubscriptions); } static getUUID(length) {