diff --git a/Mozu.Api.Test/Factories/AddressValidationFactory.cs b/Mozu.Api.Test/Factories/AddressValidationFactory.cs
deleted file mode 100644
index 0217a9bd..00000000
--- a/Mozu.Api.Test/Factories/AddressValidationFactory.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-#region Usings Setup
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Net;
-using Mozu.Api;
-using Mozu.Api.Security;
-using Mozu.Api.Test.Helpers;
-using System.Diagnostics;
-using Newtonsoft.Json.Linq;
-
-#endregion
-
-namespace Mozu.Api.Test.Factories
-{
- ///
- /// Use the Address Validation resource to validate addresses associated with a customer account contact.
- ///
- public partial class AddressValidationFactory : BaseDataFactory
- {
-
- ///
- /// Validates the customer address supplied in the request.
- ///
- ///
- /// var result = AddressValidationFactory.ValidateAddress(handler : handler, addressValidationRequest : addressValidationRequest, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.Customer.AddressValidationResponse ValidateAddress(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.Customer.AddressValidationRequest addressValidationRequest, string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Commerce.Customer.AddressValidationRequestClient.ValidateAddressClient(
- addressValidationRequest : addressValidationRequest, responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
-
- }
-
-}
-
-
diff --git a/Mozu.Api.Test/Factories/AppAuthTicketFactory.cs b/Mozu.Api.Test/Factories/AppAuthTicketFactory.cs
deleted file mode 100644
index 47bc8e08..00000000
--- a/Mozu.Api.Test/Factories/AppAuthTicketFactory.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-#region Usings Setup
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Net;
-using Mozu.Api;
-using Mozu.Api.Security;
-using Mozu.Api.Test.Helpers;
-using System.Diagnostics;
-using Newtonsoft.Json.Linq;
-
-#endregion
-
-namespace Mozu.Api.Test.Factories
-{
- ///
- /// Use the Authetickets for applications resource to manage authentication tickets for your apps.
- ///
- public partial class AppAuthTicketFactory : BaseDataFactory
- {
-
- ///
- /// Generate an authentication ticket for an application.
- ///
- ///
- /// var result = AppAuthTicketFactory.AuthenticateApp(handler : handler, appAuthInfo : appAuthInfo, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.AuthTicket AuthenticateApp(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.AppAuthInfo appAuthInfo, string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AuthTicketClient.AuthenticateAppClient(
- appAuthInfo : appAuthInfo, responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Refreshes the application's authentication ticket and generates a new access token by providing the refresh token string.
- ///
- ///
- /// var result = AppAuthTicketFactory.RefreshAppAuthTicket(handler : handler, authTicketRequest : authTicketRequest, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.AuthTicket RefreshAppAuthTicket(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.AuthTicketRequest authTicketRequest, string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AuthTicketClient.RefreshAppAuthTicketClient(
- authTicketRequest : authTicketRequest, responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Deletes an authentication for an application based on the specified refresh token.
- ///
- ///
- /// var result = AppAuthTicketFactory.DeleteAppAuthTicket(handler : handler, refreshToken : refreshToken, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static void DeleteAppAuthTicket(ServiceClientMessageHandler handler,
- string refreshToken,
- HttpStatusCode expectedCode = HttpStatusCode.NoContent, HttpStatusCode successCode = HttpStatusCode.NoContent)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AuthTicketClient.DeleteAppAuthTicketClient(
- refreshToken : refreshToken );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- }
- var noResponse = ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
-
- }
-
-}
-
-
diff --git a/Mozu.Api.Test/Factories/AppAuthTicketsFactory.cs b/Mozu.Api.Test/Factories/AppAuthTicketsFactory.cs
deleted file mode 100644
index 40f29d17..00000000
--- a/Mozu.Api.Test/Factories/AppAuthTicketsFactory.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-#region Usings Setup
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Net;
-using Mozu.Api;
-using Mozu.Api.Security;
-using Mozu.Api.Test.Helpers;
-using System.Diagnostics;
-using Newtonsoft.Json.Linq;
-
-#endregion
-
-namespace Mozu.Api.Test.Factories
-{
- ///
- /// Use the Authetickets for applications resource to manage authentication tickets for your apps.
- ///
- public partial class AppAuthTicketsFactory : BaseDataFactory
- {
-
- ///
- /// Generate an authentication ticket for an application.
- ///
- ///
- /// var result = AppAuthTicketsFactory.AuthenticateApp(handler : handler, appAuthInfo : appAuthInfo, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.AuthTicket AuthenticateApp(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.AppAuthInfo appAuthInfo, string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AppAuthTicketsClient.AuthenticateAppClient(
- appAuthInfo : appAuthInfo, responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Refreshes the application's authentication ticket and generates a new access token by providing the refresh token string.
- ///
- ///
- /// var result = AppAuthTicketsFactory.RefreshAppAuthTicket(handler : handler, authTicketRequest : authTicketRequest, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.AuthTicket RefreshAppAuthTicket(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.AuthTicketRequest authTicketRequest, string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AppAuthTicketsClient.RefreshAppAuthTicketClient(
- authTicketRequest : authTicketRequest, responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Deletes an authentication for an application based on the specified refresh token.
- ///
- ///
- /// var result = AppAuthTicketsFactory.DeleteAppAuthTicket(handler : handler, refreshToken : refreshToken, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static void DeleteAppAuthTicket(ServiceClientMessageHandler handler,
- string refreshToken,
- HttpStatusCode expectedCode = HttpStatusCode.NoContent, HttpStatusCode successCode = HttpStatusCode.NoContent)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Applications.AppAuthTicketsClient.DeleteAppAuthTicketClient(
- refreshToken : refreshToken );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- }
- var noResponse = ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
-
- }
-
-}
-
-
diff --git a/Mozu.Api.Test/Factories/ApplicationVersionFactory.cs b/Mozu.Api.Test/Factories/ApplicationVersionFactory.cs
deleted file mode 100644
index 20859e31..00000000
--- a/Mozu.Api.Test/Factories/ApplicationVersionFactory.cs
+++ /dev/null
@@ -1,529 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-#region Usings Setup
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Net;
-using Mozu.Api;
-using Mozu.Api.Security;
-using Mozu.Api.Test.Helpers;
-using System.Diagnostics;
-
-#endregion
-
-namespace Mozu.Api.Test.Factories
-{
- ///
- /// Use the Applications resource to manage the applications associated with a developer account.
- ///
- public partial class ApplicationVersionFactory : BaseDataFactory
- {
-
- ///
- /// Retrieves the list of applications associated with the developer account scoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetAllApplications(handler : handler, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.ApplicationCollection GetAllApplications(ServiceClientMessageHandler handler,
-
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetAllApplicationsClient(
- );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves the details of the application specified in the request. The application specified in the request must be associated with the developer account scoped to the user claim specified in the request header, otherwise the operation returns an error.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetApplication(handler : handler, applicationId : applicationId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.Application GetApplication(ServiceClientMessageHandler handler,
- int? applicationId = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetApplicationClient(
- applicationId : applicationId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves the details of a specific version of an application associated with the developer account scoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetApplicationVersion(handler : handler, applicationVersionId : applicationVersionId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.ApplicationVersion GetApplicationVersion(ServiceClientMessageHandler handler,
- int applicationVersionId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetApplicationVersionClient(
- applicationVersionId : applicationVersionId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves a list of the package definitions created for an application version, including all development packages and release packages. The application must be associated with the developer account scoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetPackages(handler : handler, applicationVersionId : applicationVersionId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.PackageCollection GetPackages(ServiceClientMessageHandler handler,
- int applicationVersionId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetPackagesClient(
- applicationVersionId : applicationVersionId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves the details of a package definition associated with an application version. The application ust be associated with the developer account scoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetPackage(handler : handler, applicationVersionId : applicationVersionId, packageId : packageId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.Package GetPackage(ServiceClientMessageHandler handler,
- int applicationVersionId, int packageId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetPackageClient(
- applicationVersionId : applicationVersionId, packageId : packageId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves the metadata for items in a package associated with an application version, including a list of all files and subfolders. The application must be associated with the developer account acoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetPackageItemsMetadata(handler : handler, applicationVersionId : applicationVersionId, packageId : packageId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.FolderMetadata GetPackageItemsMetadata(ServiceClientMessageHandler handler,
- int applicationVersionId, int packageId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetPackageItemsMetadataClient(
- applicationVersionId : applicationVersionId, packageId : packageId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Retrieves the metadata of a file in a package for an application version. The application must be associated with the developer account scoped to the user claim specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.GetPackageItemMetadata(handler : handler, applicationVersionId : applicationVersionId, packageId : packageId, itempath : itempath, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.FileMetadata GetPackageItemMetadata(ServiceClientMessageHandler handler,
- int applicationVersionId, int packageId, string itempath,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetPackageItemMetadataClient(
- applicationVersionId : applicationVersionId, packageId : packageId, itempath : itempath );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- ///
- ///
- ///
- /// var result = ApplicationVersionFactory.GetPackageFilesZip(handler : handler, applicationVersionId : applicationVersionId, packageId : packageId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static System.IO.Stream GetPackageFilesZip(ServiceClientMessageHandler handler,
- int applicationVersionId, int packageId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.GetPackageFilesZipClient(
- applicationVersionId : applicationVersionId, packageId : packageId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Creates a new development or release package for the application version specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.AddPackage(handler : handler, pkg : pkg, applicationVersionId : applicationVersionId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.Package AddPackage(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.Package pkg, int applicationVersionId,
- HttpStatusCode expectedCode = HttpStatusCode.Created, HttpStatusCode successCode = HttpStatusCode.Created)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.AddPackageClient(
- pkg : pkg, applicationVersionId : applicationVersionId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- ///
- ///
- ///
- /// var result = ApplicationVersionFactory.ChangePackageFileNameOrPath(handler : handler, renameInfo : renameInfo, applicationVersionId : applicationVersionId, packageId : packageId, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.FileMetadata ChangePackageFileNameOrPath(ServiceClientMessageHandler handler,
- Mozu.Api.Contracts.AppDev.RenameInfo renameInfo, int applicationVersionId, int packageId,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.ChangePackageFileNameOrPathClient(
- renameInfo : renameInfo, applicationVersionId : applicationVersionId, packageId : packageId );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Uploads a file to a defined package for an application version in the file location specified in the request.
- ///
- ///
- /// var result = ApplicationVersionFactory.AddPackageFile(handler : handler, stream : stream, applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.FileMetadata AddPackageFile(ServiceClientMessageHandler handler,
- System.IO.Stream stream, int applicationVersionId, int packageId, string filepath,
- HttpStatusCode expectedCode = HttpStatusCode.Created, HttpStatusCode successCode = HttpStatusCode.Created)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.AddPackageFileClient(
- stream : stream, applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Updates one or more properties of a file in a package associated with an application version.
- ///
- ///
- /// var result = ApplicationVersionFactory.UpdatePackageFile(handler : handler, stream : stream, applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.AppDev.FileMetadata UpdatePackageFile(ServiceClientMessageHandler handler,
- System.IO.Stream stream, int applicationVersionId, int packageId, string filepath,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.UpdatePackageFileClient(
- stream : stream, applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
- ///
- /// Deletes the specified file from a package associated with an application version.
- ///
- ///
- /// var result = ApplicationVersionFactory.DeletePackageFile(handler : handler, applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static void DeletePackageFile(ServiceClientMessageHandler handler,
- int applicationVersionId, int packageId, string filepath,
- HttpStatusCode expectedCode = HttpStatusCode.NoContent, HttpStatusCode successCode = HttpStatusCode.NoContent)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Platform.Developer.ApplicationVersionClient.DeletePackageFileClient(
- applicationVersionId : applicationVersionId, packageId : packageId, filepath : filepath );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- }
- var noResponse = ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
-
- }
-
-}
-
-
diff --git a/Mozu.Api.Test/Factories/CheckoutSettingFactory.cs b/Mozu.Api.Test/Factories/CheckoutSettingFactory.cs
deleted file mode 100644
index a42f71d2..00000000
--- a/Mozu.Api.Test/Factories/CheckoutSettingFactory.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-#region Usings Setup
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Net;
-using Mozu.Api;
-using Mozu.Api.Security;
-using Mozu.Api.Test.Helpers;
-using System.Diagnostics;
-using Newtonsoft.Json.Linq;
-
-#endregion
-
-namespace Mozu.Api.Test.Factories
-{
- ///
- /// Use the Checkout Settings resource to specify the site-wide settings that define checkout and order processing behavior. This resource includes subresources for payment settings, customer checkout settings, and order processing settings.
- ///
- public partial class CheckoutSettingFactory : BaseDataFactory
- {
-
- ///
- /// Retrieves all checkout settings defined for the site including payment settings (payment gateway ID and credentials), shopper checkout settings (login requirement or guest mode and custom attributes), and order processing settings (when payment is authorized and captured plus any custom attributes).
- ///
- ///
- /// var result = CheckoutSettingFactory.GetCheckoutSettings(handler : handler, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
- /// var optionalCasting = ConvertClass(result);
- /// return optionalCasting;
- ///
- ///
- ///
- public static Mozu.Api.Contracts.SiteSettings.Order.CheckoutSettings GetCheckoutSettings(ServiceClientMessageHandler handler,
- string responseFields = null,
- HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
- {
- SetSdKparameters();
- var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
- var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
- Debug.WriteLine(currentMethodName + '.' + currentMethodName );
- var apiClient = Mozu.Api.Clients.Commerce.Settings.CheckoutSettingsClient.GetCheckoutSettingsClient(
- responseFields : responseFields );
- try
- {
- apiClient.WithContext(handler.ApiContext).Execute();
- }
- catch (ApiException ex)
- {
- // Custom error handling for test cases can be placed here
- Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
- if (customException != null)
- throw customException;
- return null;
- }
- return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
- ? (apiClient.Result())
- : null;
-
- }
-
-
- }
-
-}
-
-
diff --git a/Mozu.Api.Test/Factories/LocationAdminFactory.cs b/Mozu.Api.Test/Factories/Commerce/Admin/LocationAdminFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/LocationAdminFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Admin/LocationAdminFactory.cs
index fe8fa974..2702c1f7
--- a/Mozu.Api.Test/Factories/LocationAdminFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Admin/LocationAdminFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Admin
{
///
/// Use the Locations resource to manage each physical location associated with a tenant. Locations enable tenants to associate a physical address with product inventory, provide a store finder for in-store pickup, or both. Locations that support inventory can use both direct ship and in-store pickup fulfillment types.
@@ -30,7 +31,7 @@ public partial class LocationAdminFactory : BaseDataFactory
{
///
- /// Retrieves a list of all locations associated with a tenant, according to any filter and sort criteria specified in the request.
+ ///
///
///
/// var result = LocationFactory.GetLocations(handler : handler, startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.Location.LocationCollection GetLocations(Servic
startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.Location.LocationCollection GetLocations(Servic
}
///
- /// Retrieves the details of the location specified in the request by location code.
+ ///
///
///
/// var result = LocationFactory.GetLocation(handler : handler, locationCode : locationCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.Location.Location GetLocation(ServiceClientMess
locationCode : locationCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.Location.Location GetLocation(ServiceClientMess
}
///
- /// Creates a new physical location for the tenant specified in the request header.
+ ///
///
///
/// var result = LocationFactory.AddLocation(handler : handler, location : location, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.Location.Location AddLocation(ServiceClientMess
location : location, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.Location.Location AddLocation(ServiceClientMess
}
///
- /// Updates one or more details of a the location specified in the request by location code.
+ ///
///
///
/// var result = LocationFactory.UpdateLocation(handler : handler, location : location, locationCode : locationCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.Location.Location UpdateLocation(ServiceClientM
location : location, locationCode : locationCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.Location.Location UpdateLocation(ServiceClientM
}
///
- /// Deletes the location specified in the request.
+ ///
///
///
/// var result = LocationFactory.DeleteLocation(handler : handler, locationCode : locationCode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteLocation(ServiceClientMessageHandler handler,
locationCode : locationCode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/LocationTypeFactory.cs b/Mozu.Api.Test/Factories/Commerce/Admin/LocationTypeFactory.cs
old mode 100644
new mode 100755
similarity index 93%
rename from Mozu.Api.Test/Factories/LocationTypeFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Admin/LocationTypeFactory.cs
index 413b0b38..80b97711
--- a/Mozu.Api.Test/Factories/LocationTypeFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Admin/LocationTypeFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Admin
{
///
/// Use the Location Types resource to manage the types of locations your tenant maintains, such as warehouses, physical storefronts, and kiosks.
@@ -30,7 +31,7 @@ public partial class LocationTypeFactory : BaseDataFactory
{
///
- /// Retrieve a list of all location types defined for the tenant.
+ ///
///
///
/// var result = LocationTypeFactory.GetLocationTypes(handler : handler, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class LocationTypeFactory : BaseDataFactory
);
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class LocationTypeFactory : BaseDataFactory
}
///
- /// Retrieves the details of the location type specified in the request.
+ ///
///
///
/// var result = LocationTypeFactory.GetLocationType(handler : handler, locationTypeCode : locationTypeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.Location.LocationType GetLocationType(ServiceCl
locationTypeCode : locationTypeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.Location.LocationType GetLocationType(ServiceCl
}
///
- /// Creates a new location type based on the information specified in the request.
+ ///
///
///
/// var result = LocationTypeFactory.AddLocationType(handler : handler, locationType : locationType, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.Location.LocationType AddLocationType(ServiceCl
locationType : locationType, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.Location.LocationType AddLocationType(ServiceCl
}
///
- /// Updates the name of a defined location type.
+ ///
///
///
/// var result = LocationTypeFactory.UpdateLocationType(handler : handler, locationType : locationType, locationTypeCode : locationTypeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.Location.LocationType UpdateLocationType(Servic
locationType : locationType, locationTypeCode : locationTypeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.Location.LocationType UpdateLocationType(Servic
}
///
- /// Deletes the location type specified in the request.
+ ///
///
///
/// var result = LocationTypeFactory.DeleteLocationType(handler : handler, locationTypeCode : locationTypeCode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteLocationType(ServiceClientMessageHandler handler,
locationTypeCode : locationTypeCode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/Commerce/Admin/Locations/Attributedefinition/AttributeFactory.cs b/Mozu.Api.Test/Factories/Commerce/Admin/Locations/Attributedefinition/AttributeFactory.cs
new file mode 100755
index 00000000..266be02f
--- /dev/null
+++ b/Mozu.Api.Test/Factories/Commerce/Admin/Locations/Attributedefinition/AttributeFactory.cs
@@ -0,0 +1,228 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+#region Usings Setup
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Net;
+using Mozu.Api;
+using Mozu.Api.Security;
+using Mozu.Api.Test.Helpers;
+using System.Diagnostics;
+using Newtonsoft.Json.Linq;
+using System.Threading;
+
+#endregion
+
+namespace Mozu.Api.Test.Factories.Commerce.Admin.Locations.Attributedefinition
+{
+ ///
+ ///
+ ///
+ public partial class AttributeFactory : BaseDataFactory
+ {
+
+ ///
+ ///
+ ///
+ ///
+ /// var result = AttributeFactory.GetAttributes(handler : handler, startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
+ /// var optionalCasting = ConvertClass(result);
+ /// return optionalCasting;
+ ///
+ ///
+ ///
+ public static Mozu.Api.Contracts.Core.Extensible.AttributeCollection GetAttributes(ServiceClientMessageHandler handler,
+ int? startIndex = null, int? pageSize = null, string sortBy = null, string filter = null, string responseFields = null,
+ HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
+ {
+ SetSdKparameters();
+ var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
+ var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
+ Debug.WriteLine(currentMethodName + '.' + currentMethodName );
+ var apiClient = Mozu.Api.Clients.Commerce.Admin.Locations.Attributedefinition.AttributeClient.GetAttributesClient(
+ startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields );
+ try
+ {
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
+ }
+ catch (ApiException ex)
+ {
+ // Custom error handling for test cases can be placed here
+ Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
+ if (customException != null)
+ throw customException;
+ return null;
+ }
+ return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
+ ? (apiClient.Result())
+ : null;
+
+ }
+
+ ///
+ ///
+ ///
+ ///
+ /// var result = AttributeFactory.GetAttributeVocabularyValues(handler : handler, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
+ /// var optionalCasting = ConvertClass/>(result);
+ /// return optionalCasting;
+ ///
+ ///
+ ///
+ public static List GetAttributeVocabularyValues(ServiceClientMessageHandler handler,
+ string attributeFQN,
+ HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
+ {
+ SetSdKparameters();
+ var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
+ var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
+ Debug.WriteLine(currentMethodName + '.' + currentMethodName );
+ var apiClient = Mozu.Api.Clients.Commerce.Admin.Locations.Attributedefinition.AttributeClient.GetAttributeVocabularyValuesClient(
+ attributeFQN : attributeFQN );
+ try
+ {
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
+ }
+ catch (ApiException ex)
+ {
+ // Custom error handling for test cases can be placed here
+ Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
+ if (customException != null)
+ throw customException;
+ return null;
+ }
+ return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
+ ? (apiClient.Result())
+ : null;
+
+ }
+
+ ///
+ ///
+ ///
+ ///
+ /// var result = AttributeFactory.GetAttribute(handler : handler, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
+ /// var optionalCasting = ConvertClass(result);
+ /// return optionalCasting;
+ ///
+ ///
+ ///
+ public static Mozu.Api.Contracts.Core.Extensible.Attribute GetAttribute(ServiceClientMessageHandler handler,
+ string attributeFQN, string responseFields = null,
+ HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
+ {
+ SetSdKparameters();
+ var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
+ var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
+ Debug.WriteLine(currentMethodName + '.' + currentMethodName );
+ var apiClient = Mozu.Api.Clients.Commerce.Admin.Locations.Attributedefinition.AttributeClient.GetAttributeClient(
+ attributeFQN : attributeFQN, responseFields : responseFields );
+ try
+ {
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
+ }
+ catch (ApiException ex)
+ {
+ // Custom error handling for test cases can be placed here
+ Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
+ if (customException != null)
+ throw customException;
+ return null;
+ }
+ return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
+ ? (apiClient.Result())
+ : null;
+
+ }
+
+ ///
+ ///
+ ///
+ ///
+ /// var result = AttributeFactory.CreateAttribute(handler : handler, attribute : attribute, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
+ /// var optionalCasting = ConvertClass(result);
+ /// return optionalCasting;
+ ///
+ ///
+ ///
+ public static Mozu.Api.Contracts.Core.Extensible.Attribute CreateAttribute(ServiceClientMessageHandler handler,
+ Mozu.Api.Contracts.Core.Extensible.Attribute attribute, string responseFields = null,
+ HttpStatusCode expectedCode = HttpStatusCode.Created, HttpStatusCode successCode = HttpStatusCode.Created)
+ {
+ SetSdKparameters();
+ var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
+ var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
+ Debug.WriteLine(currentMethodName + '.' + currentMethodName );
+ var apiClient = Mozu.Api.Clients.Commerce.Admin.Locations.Attributedefinition.AttributeClient.CreateAttributeClient(
+ attribute : attribute, responseFields : responseFields );
+ try
+ {
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
+ }
+ catch (ApiException ex)
+ {
+ // Custom error handling for test cases can be placed here
+ Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
+ if (customException != null)
+ throw customException;
+ return null;
+ }
+ return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
+ ? (apiClient.Result())
+ : null;
+
+ }
+
+ ///
+ ///
+ ///
+ ///
+ /// var result = AttributeFactory.UpdateAttribute(handler : handler, attribute : attribute, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
+ /// var optionalCasting = ConvertClass(result);
+ /// return optionalCasting;
+ ///
+ ///
+ ///
+ public static Mozu.Api.Contracts.Core.Extensible.Attribute UpdateAttribute(ServiceClientMessageHandler handler,
+ Mozu.Api.Contracts.Core.Extensible.Attribute attribute, string attributeFQN, string responseFields = null,
+ HttpStatusCode expectedCode = HttpStatusCode.OK, HttpStatusCode successCode = HttpStatusCode.OK)
+ {
+ SetSdKparameters();
+ var currentClassName = System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name;
+ var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
+ Debug.WriteLine(currentMethodName + '.' + currentMethodName );
+ var apiClient = Mozu.Api.Clients.Commerce.Admin.Locations.Attributedefinition.AttributeClient.UpdateAttributeClient(
+ attribute : attribute, attributeFQN : attributeFQN, responseFields : responseFields );
+ try
+ {
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
+ }
+ catch (ApiException ex)
+ {
+ // Custom error handling for test cases can be placed here
+ Exception customException = TestFailException.GetCustomTestException(ex, currentClassName, currentMethodName, expectedCode);
+ if (customException != null)
+ throw customException;
+ return null;
+ }
+ return ResponseMessageFactory.CheckResponseCodes(apiClient.HttpResponse.StatusCode, expectedCode, successCode)
+ ? (apiClient.Result())
+ : null;
+
+ }
+
+
+ }
+
+}
+
+
diff --git a/Mozu.Api.Test/Factories/CartFactory.cs b/Mozu.Api.Test/Factories/Commerce/CartFactory.cs
old mode 100644
new mode 100755
similarity index 88%
rename from Mozu.Api.Test/Factories/CartFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/CartFactory.cs
index a8a11a88..0c599de6
--- a/Mozu.Api.Test/Factories/CartFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/CartFactory.cs
@@ -18,19 +18,20 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce
{
///
- /// Use this resource to manage storefront shopping carts as shoppers add and remove items for purchase. Each time a shopper's cart is modified, the Carts resource updates the estimated total with any applicable discounts.
+ /// Use the Carts resource to manage storefront shopping carts as items are added and removed. Each time a shopper's cart is modified, the Carts resource updates the estimated total with any applicable discounts.
///
public partial class CartFactory : BaseDataFactory
{
///
- /// Retrieves the cart specified in the request.
+ ///
///
///
/// var result = CartFactory.GetCart(handler : handler, cartId : cartId, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetCart(ServiceClien
cartId : cartId, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetCart(ServiceClien
}
///
- /// Retrieves a cart's contents for the current shopper. If the shopper does not have an active cart on the site, the service creates one.
+ ///
///
///
/// var result = CartFactory.GetOrCreateCart(handler : handler, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetOrCreateCart(Serv
responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetOrCreateCart(Serv
}
///
- /// Retrieves summary information associated with the cart of the current shopper, including the number of items, the current total, and whether the cart has expired. All anonymous idle carts that do not proceed to checkout expire after 14 days.
+ ///
///
///
/// var result = CartFactory.GetCartSummary(handler : handler, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartSummary GetCartSummar
responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartSummary GetCartSummar
}
///
- /// Retrieves summary information associated with the cart of user specified in the request, including the number of items in the cart, the current total, and whether the cart has expired. All anonymous idle carts that do not proceed to checkout expire after 14 days.
+ ///
///
///
/// var result = CartFactory.GetUserCartSummary(handler : handler, userId : userId, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartSummary GetUserCartSu
userId : userId, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartSummary GetUserCartSu
}
///
- /// Retrieves the cart of the user specified in the request.
+ ///
///
///
/// var result = CartFactory.GetUserCart(handler : handler, userId : userId, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetUserCart(ServiceC
userId : userId, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -220,7 +221,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart GetUserCart(ServiceC
}
///
- /// Update the current shopper's cart.
+ ///
///
///
/// var result = CartFactory.UpdateCart(handler : handler, cart : cart, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -241,7 +242,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart UpdateCart(ServiceCl
cart : cart, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -258,7 +259,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart UpdateCart(ServiceCl
}
///
- /// Deletes the cart specified in the request.
+ ///
///
///
/// var result = CartFactory.DeleteCart(handler : handler, cartId : cartId, expectedCode: expectedCode, successCode: successCode);
@@ -279,7 +280,7 @@ public static void DeleteCart(ServiceClientMessageHandler handler,
cartId : cartId );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -295,7 +296,7 @@ public static void DeleteCart(ServiceClientMessageHandler handler,
}
///
- /// Deletes the cart of the currently active shopper.
+ ///
///
///
/// var result = CartFactory.DeleteCurrentCart(handler : handler, expectedCode: expectedCode, successCode: successCode);
@@ -316,7 +317,7 @@ public static void DeleteCurrentCart(ServiceClientMessageHandler handler,
);
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/AppliedDiscountCartsFactory.cs b/Mozu.Api.Test/Factories/Commerce/Carts/AppliedDiscountCartsFactory.cs
old mode 100644
new mode 100755
similarity index 89%
rename from Mozu.Api.Test/Factories/AppliedDiscountCartsFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Carts/AppliedDiscountCartsFactory.cs
index 17b84c96..0c07f1c1
--- a/Mozu.Api.Test/Factories/AppliedDiscountCartsFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Carts/AppliedDiscountCartsFactory.cs
@@ -18,19 +18,20 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Carts
{
///
- /// Use the Cart Coupons subresource to apply a coupon to a defined cart or remove a coupon from a cart. When the shopper proceeds to checkout, the coupons applied to the cart apply to the order.
+ /// Use the Cart Coupons resource to apply a coupon to a defined cart or remove a coupon from a cart. When the shopper proceeds to checkout, the coupons applied to the cart apply to the order.
///
public partial class AppliedDiscountCartsFactory : BaseDataFactory
{
///
- /// Applies a defined coupon to the cart specified in the request.
+ ///
///
///
/// var result = AppliedDiscountFactory.ApplyCoupon(handler : handler, cartId : cartId, couponCode : couponCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart ApplyCoupon(ServiceC
cartId : cartId, couponCode : couponCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart ApplyCoupon(ServiceC
}
///
- /// Removes all coupons from the cart specified in the request.
+ ///
///
///
/// var result = AppliedDiscountFactory.RemoveCoupons(handler : handler, cartId : cartId, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart RemoveCoupons(Servic
cartId : cartId );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart RemoveCoupons(Servic
}
///
- /// Removes an applied coupon from the cart specified in the request.
+ ///
///
///
/// var result = AppliedDiscountFactory.RemoveCoupon(handler : handler, cartId : cartId, couponCode : couponCode, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart RemoveCoupon(Service
cartId : cartId, couponCode : couponCode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/CartItemFactory.cs b/Mozu.Api.Test/Factories/Commerce/Carts/CartItemFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/CartItemFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Carts/CartItemFactory.cs
index 498adce8..950178c0
--- a/Mozu.Api.Test/Factories/CartItemFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Carts/CartItemFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Carts
{
///
/// Use the Cart Items subresource to manage a collection of items in an active shopping cart.
@@ -30,7 +31,7 @@ public partial class CartItemFactory : BaseDataFactory
{
///
- /// Retrieves a particular cart item by providing the cart item ID.
+ ///
///
///
/// var result = CartItemFactory.GetCartItem(handler : handler, cartItemId : cartItemId, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem GetCartItem(Serv
cartItemId : cartItemId, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem GetCartItem(Serv
}
///
- /// Retrieves a list of cart items including the total number of items in the cart.
+ ///
///
///
/// var result = CartItemFactory.GetCartItems(handler : handler, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItemCollection GetCar
responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItemCollection GetCar
}
///
- /// Adds a product to the current shopper's cart.
+ ///
///
///
/// var result = CartItemFactory.AddItemToCart(handler : handler, cartItem : cartItem, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem AddItemToCart(Se
cartItem : cartItem, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem AddItemToCart(Se
}
///
- /// Update the quantity of an individual cart item in the cart of the current shopper.
+ ///
///
///
/// var result = CartItemFactory.UpdateCartItemQuantity(handler : handler, cartItemId : cartItemId, quantity : quantity, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem UpdateCartItemQu
cartItemId : cartItemId, quantity : quantity, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem UpdateCartItemQu
}
///
- /// Update the product or product quantity of an item in the current shopper's cart.
+ ///
///
///
/// var result = CartItemFactory.UpdateCartItem(handler : handler, cartItem : cartItem, cartItemId : cartItemId, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem UpdateCartItem(S
cartItem : cartItem, cartItemId : cartItemId, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -220,7 +221,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartItem UpdateCartItem(S
}
///
- /// Removes all items in the current shopper's active cart.
+ ///
///
///
/// var result = CartItemFactory.RemoveAllCartItems(handler : handler, expectedCode: expectedCode, successCode: successCode);
@@ -241,7 +242,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart RemoveAllCartItems(S
);
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -258,7 +259,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.Cart RemoveAllCartItems(S
}
///
- /// Deletes a specific cart item by providing the cart item ID.
+ ///
///
///
/// var result = CartItemFactory.DeleteCartItem(handler : handler, cartItemId : cartItemId, expectedCode: expectedCode, successCode: successCode);
@@ -279,7 +280,7 @@ public static void DeleteCartItem(ServiceClientMessageHandler handler,
cartItemId : cartItemId );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ChangeMessageFactory.cs b/Mozu.Api.Test/Factories/Commerce/Carts/ChangeMessageFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/ChangeMessageFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Carts/ChangeMessageFactory.cs
index 19031a11..b7844a97
--- a/Mozu.Api.Test/Factories/ChangeMessageFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Carts/ChangeMessageFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Carts
{
///
/// Use the Cart Messages resource to retrieve messages for live carts that the system logs when a product's price or inventory level changes.
@@ -30,7 +31,7 @@ public partial class ChangeMessageFactory : BaseDataFactory
{
///
- /// Retrieves the messages associated with the current shopper's cart.
+ ///
///
///
/// var result = ChangeMessageFactory.GetMessages(handler : handler, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartChangeMessageCollecti
responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Carts.CartChangeMessageCollecti
}
///
- /// Deletes all messages associated with the cart of the current shopper.
+ ///
///
///
/// var result = ChangeMessageFactory.RemoveAllMessages(handler : handler, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static void RemoveAllMessages(ServiceClientMessageHandler handler,
);
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -105,7 +106,7 @@ public static void RemoveAllMessages(ServiceClientMessageHandler handler,
}
///
- /// Removes a single message associated with the cart of the current shopper.
+ ///
///
///
/// var result = ChangeMessageFactory.RemoveMessage(handler : handler, messageId : messageId, expectedCode: expectedCode, successCode: successCode);
@@ -126,7 +127,7 @@ public static void RemoveMessage(ServiceClientMessageHandler handler,
messageId : messageId );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ExtendedPropertyFactory.cs b/Mozu.Api.Test/Factories/Commerce/Carts/ExtendedPropertyFactory.cs
old mode 100644
new mode 100755
similarity index 87%
rename from Mozu.Api.Test/Factories/ExtendedPropertyFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Carts/ExtendedPropertyFactory.cs
index 6208fd10..359356f9
--- a/Mozu.Api.Test/Factories/ExtendedPropertyFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Carts/ExtendedPropertyFactory.cs
@@ -18,19 +18,20 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Carts
{
///
- /// Use the Cart Extended Properties subresource to store an arbitrary number of cart extended properties such as tracking strings, marketing sources, affiliates, sales personnel/data, and so on, on a per cart basis. Each cart may have none, one, or more than one entry in the extended properties collection, and all values in the extended properties collection are represented as strings. When you create an order from a cart, all extended properties are retained from the cart and copied to the order. Refer to the subresource for more information about order extended properties.
+ ///
///
public partial class ExtendedPropertyFactory : BaseDataFactory
{
///
- /// Retrieves a list of cart extended properties specified in the request.
+ ///
///
///
/// var result = ExtendedPropertyFactory.GetExtendedProperties(handler : handler, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class ExtendedPropertyFactory : BaseDataFactory
);
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class ExtendedPropertyFactory : BaseDataFactory
}
///
- /// Adds one or more specified extended properties to the carts extended properties collection.
+ ///
///
///
/// var result = ExtendedPropertyFactory.AddExtendedProperties(handler : handler, extendedProperties : extendedProperties, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public partial class ExtendedPropertyFactory : BaseDataFactory
extendedProperties : extendedProperties );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public partial class ExtendedPropertyFactory : BaseDataFactory
}
///
- /// Updates one or more details of the extended property specified in the request.
+ ///
///
///
/// var result = ExtendedPropertyFactory.UpdateExtendedProperty(handler : handler, extendedProperty : extendedProperty, key : key, upsert : upsert, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Commerce.ExtendedProperty Updat
extendedProperty : extendedProperty, key : key, upsert : upsert, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Commerce.ExtendedProperty Updat
}
///
- /// Updates one or more details of the extended properties specified in the request.
+ ///
///
///
/// var result = ExtendedPropertyFactory.UpdateExtendedProperties(handler : handler, extendedProperties : extendedProperties, upsert : upsert, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Commerce.ExtendedProperty Updat
extendedProperties : extendedProperties, upsert : upsert );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.CommerceRuntime.Commerce.ExtendedProperty Updat
}
///
- /// Deletes the extended properties cart extended properties collection.
+ ///
///
///
/// var result = ExtendedPropertyFactory.DeleteExtendedProperties(handler : handler, keys : keys, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteExtendedProperties(ServiceClientMessageHandler handler,
keys : keys );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -219,7 +220,7 @@ public static void DeleteExtendedProperties(ServiceClientMessageHandler handler,
}
///
- /// Deletes a specific extended property from the cart extended property collection.
+ ///
///
///
/// var result = ExtendedPropertyFactory.DeleteExtendedProperty(handler : handler, key : key, expectedCode: expectedCode, successCode: successCode);
@@ -240,7 +241,7 @@ public static void DeleteExtendedProperty(ServiceClientMessageHandler handler,
key : key );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/AttributeFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/AttributeFactory.cs
old mode 100644
new mode 100755
similarity index 86%
rename from Mozu.Api.Test/Factories/AttributeFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/AttributeFactory.cs
index 627ba760..2e14e87b
--- a/Mozu.Api.Test/Factories/AttributeFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/AttributeFactory.cs
@@ -18,21 +18,20 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition
{
///
- /// Attributes are used to add custom definitions and characteristics to the following objects:
-
-
+ /// Use the Attribute Definition resource to manage the properties, options, and extras that uniquely describe products of a specific type. Attributes can be associated with a product type, assigned values by a client or shopper, and added as faceted search filters for a product category. Options are product attributes that describe unique configurations made by the shopper, such as size or color, and generate a new product variation (or unique SKU). Properties are product attributes that describe aspects of the product that do not represent an option configurable by the shopper, such as screen resolution or brand. Extras are product attributes that describe add-on configurations made by the shopper that do not represent a product variation, such as a monogram.
///
public partial class AttributeFactory : BaseDataFactory
{
///
- /// Retrieves a paged list of attributes according to any specified filter criteria and sort options.
+ ///
///
///
/// var result = AttributeFactory.GetAttributes(handler : handler, startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -53,7 +52,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeCollection GetAttributes(
startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -70,7 +69,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeCollection GetAttributes(
}
///
- /// Retrieves the details of the specified product attribute.
+ ///
///
///
/// var result = AttributeFactory.GetAttribute(handler : handler, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -91,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute GetAttribute(ServiceClie
attributeFQN : attributeFQN, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -108,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute GetAttribute(ServiceClie
}
///
- /// Creates a new attribute to describe one aspect of a product such as color or size, based on its defined product type. The attribute name, attribute type, input type, and data type are required.
+ ///
///
///
/// var result = AttributeFactory.AddAttribute(handler : handler, attribute : attribute, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -129,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute AddAttribute(ServiceClie
attribute : attribute, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -146,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute AddAttribute(ServiceClie
}
///
- /// Updates an existing attribute with attribute properties to set.
+ ///
///
///
/// var result = AttributeFactory.UpdateAttribute(handler : handler, attribute : attribute, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -167,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute UpdateAttribute(ServiceC
attribute : attribute, attributeFQN : attributeFQN, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -184,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.Attribute UpdateAttribute(ServiceC
}
///
- /// Deletes a defined product attribute. You cannot delete an attribute assigned a value for a product.
+ ///
///
///
/// var result = AttributeFactory.DeleteAttribute(handler : handler, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
@@ -205,7 +204,7 @@ public static void DeleteAttribute(ServiceClientMessageHandler handler,
attributeFQN : attributeFQN );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/AttributeLocalizedContentFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeLocalizedContentFactory.cs
old mode 100644
new mode 100755
similarity index 90%
rename from Mozu.Api.Test/Factories/AttributeLocalizedContentFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeLocalizedContentFactory.cs
index 02671aa9..e7c52f73
--- a/Mozu.Api.Test/Factories/AttributeLocalizedContentFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeLocalizedContentFactory.cs
@@ -18,19 +18,20 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Attributes
{
///
- /// Properties of localized content for attributes, based on a `localeCode` at a site/tenant level. This content supports translated text for product, product options, and additional objects.
+ ///
///
public partial class AttributeLocalizedContentFactory : BaseDataFactory
{
///
- /// Retrieves a collection of localized content for attributes based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.GetAttributeLocalizedContents(handler : handler, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class AttributeLocalizedContentFactory : BaseDataFactory
attributeFQN : attributeFQN );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class AttributeLocalizedContentFactory : BaseDataFactory
}
///
- /// Retrieves the localized content for an attribute based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.GetAttributeLocalizedContent(handler : handler, attributeFQN : attributeFQN, localeCode : localeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent GetAttri
attributeFQN : attributeFQN, localeCode : localeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent GetAttri
}
///
- /// Adds new localized content for an attribute based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.AddLocalizedContent(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent AddLocal
localizedContent : localizedContent, attributeFQN : attributeFQN, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent AddLocal
}
///
- /// Updates the localized content for a collection of existing attributes based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.UpdateLocalizedContents(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent AddLocal
localizedContent : localizedContent, attributeFQN : attributeFQN );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent AddLocal
}
///
- /// Updates the localized content for an existing attribute based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.UpdateLocalizedContent(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, localeCode : localeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent UpdateLo
localizedContent : localizedContent, attributeFQN : attributeFQN, localeCode : localeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -220,7 +221,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeLocalizedContent UpdateLo
}
///
- /// Removes all localized content. Localized content is translated text information and data based on a `localeCode`.
+ ///
///
///
/// var result = AttributeLocalizedContentFactory.DeleteLocalizedContent(handler : handler, attributeFQN : attributeFQN, localeCode : localeCode, expectedCode: expectedCode, successCode: successCode);
@@ -241,7 +242,7 @@ public static void DeleteLocalizedContent(ServiceClientMessageHandler handler,
attributeFQN : attributeFQN, localeCode : localeCode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/AttributeTypeRuleFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeTypeRuleFactory.cs
old mode 100644
new mode 100755
similarity index 91%
rename from Mozu.Api.Test/Factories/AttributeTypeRuleFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeTypeRuleFactory.cs
index 8e6796f2..ab15ea8d
--- a/Mozu.Api.Test/Factories/AttributeTypeRuleFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeTypeRuleFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Attributes
{
///
/// Type rules are subresources of product attributes which could be specifications that can be shared across products in a store or assigned to specific products. Attribute type rules provide definitions of how attribute types will appear on the user interface.
@@ -30,7 +31,7 @@ public partial class AttributeTypeRuleFactory : BaseDataFactory
{
///
- /// Retrieves a list of attribute type rules according to optional filter criteria and sort options. Attribute type rules help drive the behavior of attributes on a storefront page.
+ ///
///
///
/// var result = AttributeTypeRuleFactory.GetAttributeTypeRules(handler : handler, startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeTypeRuleCollection GetAtt
startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/AttributeVocabularyValueFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeVocabularyValueFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/AttributeVocabularyValueFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeVocabularyValueFactory.cs
index 0762852e..6c7d1fba
--- a/Mozu.Api.Test/Factories/AttributeVocabularyValueFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Attributes/AttributeVocabularyValueFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Attributes
{
///
/// Vocabulary values are predefined for an attribute.
@@ -30,7 +31,7 @@ public partial class AttributeVocabularyValueFactory : BaseDataFactory
{
///
- /// Retrieves a list of vocabulary values defined for the attribute specified in the request.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.GetAttributeVocabularyValues(handler : handler, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class AttributeVocabularyValueFactory : BaseDataFactory
attributeFQN : attributeFQN );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class AttributeVocabularyValueFactory : BaseDataFactory
}
///
- /// Retrieves a collection of localized content for vocabulary value attributes based on a `localeCode`.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.GetAttributeVocabularyValueLocalizedContents(handler : handler, attributeFQN : attributeFQN, value : value, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public partial class AttributeVocabularyValueFactory : BaseDataFactory
attributeFQN : attributeFQN, value : value );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public partial class AttributeVocabularyValueFactory : BaseDataFactory
}
///
- /// Retrieves the localized content for a vocabulary value attribute based on a `localeCode`.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.GetAttributeVocabularyValueLocalizedContent(handler : handler, attributeFQN : attributeFQN, value : value, localeCode : localeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
attributeFQN : attributeFQN, value : value, localeCode : localeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
}
///
- /// Retrieves the details of a vocabulary value defined for an attribute by providing the attribute's fully qualified name and the value to retrieve.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.GetAttributeVocabularyValue(handler : handler, attributeFQN : attributeFQN, value : value, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue GetAttrib
attributeFQN : attributeFQN, value : value, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue GetAttrib
}
///
- /// Creates and saves localized vocabulary value content for an attribute, based on the `localeCode`.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.AddAttributeVocabularyValueLocalizedContent(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, value : value, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
localizedContent : localizedContent, attributeFQN : attributeFQN, value : value, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -220,7 +221,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
}
///
- /// Creates a vocabulary value for a defined product attribute.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.AddAttributeVocabularyValue(handler : handler, attributeVocabularyValue : attributeVocabularyValue, attributeFQN : attributeFQN, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -241,7 +242,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
attributeVocabularyValue : attributeVocabularyValue, attributeFQN : attributeFQN, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -258,7 +259,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
}
///
- /// Update existing vocabulary values for an attribute.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.UpdateAttributeVocabularyValues(handler : handler, vocabularyValues : vocabularyValues, attributeFQN : attributeFQN, expectedCode: expectedCode, successCode: successCode);
@@ -279,7 +280,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
vocabularyValues : vocabularyValues, attributeFQN : attributeFQN );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -296,7 +297,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
}
///
- /// Updates a collection of localized vocabulary value content for existing attributes, based on the `localeCode`.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.UpdateAttributeVocabularyValueLocalizedContents(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, value : value, expectedCode: expectedCode, successCode: successCode);
@@ -317,7 +318,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
localizedContent : localizedContent, attributeFQN : attributeFQN, value : value );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -334,7 +335,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue AddAttrib
}
///
- /// Updates localized vocabulary value content for an existing attribute, based on the `localeCode`.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.UpdateAttributeVocabularyValueLocalizedContent(handler : handler, localizedContent : localizedContent, attributeFQN : attributeFQN, value : value, localeCode : localeCode, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -355,7 +356,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
localizedContent : localizedContent, attributeFQN : attributeFQN, value : value, localeCode : localeCode, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -372,7 +373,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValueLocalizedC
}
///
- /// Updates existing attribute vocabulary values.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.UpdateAttributeVocabularyValue(handler : handler, attributeVocabularyValue : attributeVocabularyValue, attributeFQN : attributeFQN, value : value, responseFields : responseFields, expectedCode: expectedCode, successCode: successCode);
@@ -393,7 +394,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue UpdateAtt
attributeVocabularyValue : attributeVocabularyValue, attributeFQN : attributeFQN, value : value, responseFields : responseFields );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -410,7 +411,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeVocabularyValue UpdateAtt
}
///
- /// Deletes an attribute's vocabulary value.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.DeleteAttributeVocabularyValue(handler : handler, attributeFQN : attributeFQN, value : value, expectedCode: expectedCode, successCode: successCode);
@@ -431,7 +432,7 @@ public static void DeleteAttributeVocabularyValue(ServiceClientMessageHandler ha
attributeFQN : attributeFQN, value : value );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -447,7 +448,7 @@ public static void DeleteAttributeVocabularyValue(ServiceClientMessageHandler ha
}
///
- /// Removes localized content for a vocabulary value attribute.
+ ///
///
///
/// var result = AttributeVocabularyValueFactory.DeleteAttributeVocabularyValueLocalizedContent(handler : handler, attributeFQN : attributeFQN, value : value, localeCode : localeCode, expectedCode: expectedCode, successCode: successCode);
@@ -468,7 +469,7 @@ public static void DeleteAttributeVocabularyValueLocalizedContent(ServiceClientM
attributeFQN : attributeFQN, value : value, localeCode : localeCode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ProductTypeFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/ProductTypeFactory.cs
old mode 100644
new mode 100755
similarity index 93%
rename from Mozu.Api.Test/Factories/ProductTypeFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/ProductTypeFactory.cs
index 8ff4725a..27459d1c
--- a/Mozu.Api.Test/Factories/ProductTypeFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/ProductTypeFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition
{
///
/// Use the Product Types resource to manage the types for your product catalog. Product types act as configuration templates, which store a set of attributes common to all products associated with that type. Unlike categories, products can only be associated with a single product type.
@@ -30,7 +31,7 @@ public partial class ProductTypeFactory : BaseDataFactory
{
///
- /// Retrieves a list of product types according to any specified filter criteria and sort options.
+ ///
///
///
/// var result = ProductTypeFactory.GetProductTypes(handler : handler, startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductTypeCollection GetProductTy
startIndex : startIndex, pageSize : pageSize, sortBy : sortBy, filter : filter, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductTypeCollection GetProductTy
}
///
- /// Retrieves the details of the product type specified in the request.
+ ///
///
///
/// var result = ProductTypeFactory.GetProductType(handler : handler, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType GetProductType(Service
productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType GetProductType(Service
}
///
- /// Creates a new product type based on the information supplied in the request.
+ ///
///
///
/// var result = ProductTypeFactory.AddProductType(handler : handler, productType : productType, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType AddProductType(Service
productType : productType, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType AddProductType(Service
}
///
- /// Updates one or more properties of a product type.
+ ///
///
///
/// var result = ProductTypeFactory.UpdateProductType(handler : handler, productType : productType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType UpdateProductType(Serv
productType : productType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.ProductType UpdateProductType(Serv
}
///
- /// Deletes the product type by providing the product type ID.
+ ///
///
///
/// var result = ProductTypeFactory.DeleteProductType(handler : handler, productTypeId : productTypeId, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteProductType(ServiceClientMessageHandler handler,
productTypeId : productTypeId, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ProductTypeExtraFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeExtraFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/ProductTypeExtraFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeExtraFactory.cs
index f51999df..3f8678bd
--- a/Mozu.Api.Test/Factories/ProductTypeExtraFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeExtraFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Producttypes
{
///
/// Use the Extras subresource to define how a product attribute classified as an "extra" is used for a specific product type. Product attribute defintions are unique for each associated product type.
@@ -30,7 +31,7 @@ public partial class ProductTypeExtraFactory : BaseDataFactory
{
///
- /// Retrieves a list of extra attributes defined for the specified product type.
+ ///
///
///
/// var result = ProductTypeExtraFactory.GetExtras(handler : handler, productTypeId : productTypeId, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class ProductTypeExtraFactory : BaseDataFactory
productTypeId : productTypeId, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class ProductTypeExtraFactory : BaseDataFactory
}
///
- /// Retrieves the details of an extra attribute definition for the specified product type.
+ ///
///
///
/// var result = ProductTypeExtraFactory.GetExtra(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetExtra(Se
productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetExtra(Se
}
///
- /// Assigns a defined extra attribute to the product type based on the information supplied in the request.
+ ///
///
///
/// var result = ProductTypeExtraFactory.AddExtra(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddExtra(Se
attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddExtra(Se
}
///
- /// Update the definition of an extra attribute for the specified product type.
+ ///
///
///
/// var result = ProductTypeExtraFactory.UpdateExtra(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdateExtra
attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdateExtra
}
///
- /// Removes an extra attribute definition from the specified product type.
+ ///
///
///
/// var result = ProductTypeExtraFactory.DeleteExtra(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteExtra(ServiceClientMessageHandler handler,
productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ProductTypeOptionFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeOptionFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/ProductTypeOptionFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeOptionFactory.cs
index 9bca9636..c16da545
--- a/Mozu.Api.Test/Factories/ProductTypeOptionFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeOptionFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Producttypes
{
///
/// Use the Options subresource to define how an option attribute is used for a specific product type. Product attribute definitions are unique for each associated product type.
@@ -30,7 +31,7 @@ public partial class ProductTypeOptionFactory : BaseDataFactory
{
///
- /// Retrieves a list of option product attributes defined for the specified product type.
+ ///
///
///
/// var result = ProductTypeOptionFactory.GetOptions(handler : handler, productTypeId : productTypeId, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class ProductTypeOptionFactory : BaseDataFactory
productTypeId : productTypeId, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class ProductTypeOptionFactory : BaseDataFactory
}
///
- /// Retrieves the details of an option attribute defined for the specified product type.
+ ///
///
///
/// var result = ProductTypeOptionFactory.GetOption(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetOption(S
productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetOption(S
}
///
- /// Assigns an option attribute to the product type based on the information supplied in the request.
+ ///
///
///
/// var result = ProductTypeOptionFactory.AddOption(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddOption(S
attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddOption(S
}
///
- /// Updates an option attribute definition for the specified product type.
+ ///
///
///
/// var result = ProductTypeOptionFactory.UpdateOption(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdateOptio
attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdateOptio
}
///
- /// Removes an option attribute definition for the specified product type.
+ ///
///
///
/// var result = ProductTypeOptionFactory.DeleteOption(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteOption(ServiceClientMessageHandler handler,
productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ProductTypePropertyFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypePropertyFactory.cs
old mode 100644
new mode 100755
similarity index 92%
rename from Mozu.Api.Test/Factories/ProductTypePropertyFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypePropertyFactory.cs
index e23c26a6..742bd9b4
--- a/Mozu.Api.Test/Factories/ProductTypePropertyFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypePropertyFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Producttypes
{
///
/// Use the Properties subresource to define how property product attributes are used for a specific product type. Product attribute definitions are unique for each associated product type.
@@ -30,7 +31,7 @@ public partial class ProductTypePropertyFactory : BaseDataFactory
{
///
- /// Retrieves a list of product property attributes defined for a product type.
+ ///
///
///
/// var result = ProductTypePropertyFactory.GetProperties(handler : handler, productTypeId : productTypeId, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -51,7 +52,7 @@ public partial class ProductTypePropertyFactory : BaseDataFactory
productTypeId : productTypeId, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -68,7 +69,7 @@ public partial class ProductTypePropertyFactory : BaseDataFactory
}
///
- /// Retrieves a product property attribute definition for the specified product type.
+ ///
///
///
/// var result = ProductTypePropertyFactory.GetProperty(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -89,7 +90,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetProperty
productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -106,7 +107,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType GetProperty
}
///
- /// Assigns a property attribute to the specified product type, according to the information defined in the request.
+ ///
///
///
/// var result = ProductTypePropertyFactory.AddProperty(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -127,7 +128,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddProperty
attributeInProductType : attributeInProductType, productTypeId : productTypeId, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -144,7 +145,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType AddProperty
}
///
- /// Updates the definition of a property attribute for the specified product type.
+ ///
///
///
/// var result = ProductTypePropertyFactory.UpdateProperty(handler : handler, attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -165,7 +166,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdatePrope
attributeInProductType : attributeInProductType, productTypeId : productTypeId, attributeFQN : attributeFQN, responseFields : responseFields, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
@@ -182,7 +183,7 @@ public static Mozu.Api.Contracts.ProductAdmin.AttributeInProductType UpdatePrope
}
///
- /// Removes a property attribute previously defined for the specified product type.
+ ///
///
///
/// var result = ProductTypePropertyFactory.DeleteProperty(handler : handler, productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode, expectedCode: expectedCode, successCode: successCode);
@@ -203,7 +204,7 @@ public static void DeleteProperty(ServiceClientMessageHandler handler,
productTypeId : productTypeId, attributeFQN : attributeFQN, dataViewMode: dataViewMode );
try
{
- apiClient.WithContext(handler.ApiContext).Execute();
+ apiClient.WithContext(handler.ApiContext).ExecuteAsync(default(CancellationToken)).Wait();
}
catch (ApiException ex)
{
diff --git a/Mozu.Api.Test/Factories/ProductTypeVariationFactory.cs b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeVariationFactory.cs
old mode 100644
new mode 100755
similarity index 93%
rename from Mozu.Api.Test/Factories/ProductTypeVariationFactory.cs
rename to Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeVariationFactory.cs
index 7aaa062c..36b5da7e
--- a/Mozu.Api.Test/Factories/ProductTypeVariationFactory.cs
+++ b/Mozu.Api.Test/Factories/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeVariationFactory.cs
@@ -18,10 +18,11 @@
using Mozu.Api.Test.Helpers;
using System.Diagnostics;
using Newtonsoft.Json.Linq;
+using System.Threading;
#endregion
-namespace Mozu.Api.Test.Factories
+namespace Mozu.Api.Test.Factories.Commerce.Catalog.Admin.Attributedefinition.Producttypes
{
///