RE: Retail Server Extension APIs not All APIs generating in Typescript Proxy
Hi Oriol,
I am using the command described in the following link:
docs.microsoft.com/.../call-retail-extension-api
And this is the command I am using
<RetailSDKPath>\References\Microsoft.Dynamics.Commerce.Tools.CoreProxyGenerator.10.13.20107.3\tools\CommerceProxyGenerator.exe <RetailSDKPath>\References\Microsoft.Dynamics.Commerce.Tools.ExtensionsProxyGenerator.9.21.20122.12\build\Microsoft.Dynamics.Retail.RetailServerLibrary.dll <RetailSDKPath>\References\EdgeAXCommerceLink.RetailServer.Extensions.dll /application:typescriptmoduleextensions
And this is the method that is not generated
[HttpPost]
[CommerceAuthorization(CommerceRoles.Customer, CommerceRoles.Employee)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "DR1721:AssertSdkExtensionMethodsNotCalledInProductCode", Justification = "Suppressed since its a known issue. Bug 3907330 has been logged for this issue.")]
public decimal GetCrossLoyaltyCardDiscountAction(ODataActionParameters parameters)
{
if (parameters == null)
{
throw new ArgumentNullException("parameters");
}
string loyaltyCardNumber = (string)parameters["LoyaltyCardNumber"];
GetCrossLoyaltyCardResponse resp = this.CommerceRuntime.Execute<GetCrossLoyaltyCardResponse>(new GetCrossLoyaltyCardRequest(loyaltyCardNumber), null);
return resp.Discount;
}