repo_id
stringclasses
36 values
file_path
stringlengths
63
188
content
stringlengths
62
41.5k
__index_level_0__
int64
0
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/EndOfDay/EndOfDayOperationRequestFactory.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import EndOfDayOperationResponse from "./EndOfDayOperationResponse"; import EndOfDayOperationRequest from "./EndOfDayOperationRequest"; import { ExtensionOperationRequestFactoryFunctionType, IOperationContext } from "PosApi/Create/Operations"; import { ClientEntities } from "PosApi/Entities"; let getOperationRequest: ExtensionOperationRequestFactoryFunctionType<EndOfDayOperationResponse> = /** * Gets an instance of EndOfDayOperationRequest. * @param {number} operationId The operation Id. * @param {string[]} actionParameters The action parameters. * @param {string} correlationId A telemetry correlation ID, used to group events logged from this request together with the calling context. * @return {EndOfDayOperationRequest<TResponse>} Instance of EndOfDayOperationRequest. */ function ( context: IOperationContext, operationId: number, actionParameters: string[], correlationId: string ): Promise<ClientEntities.ICancelableDataResult<EndOfDayOperationRequest<EndOfDayOperationResponse>>> { let operationRequest: EndOfDayOperationRequest<EndOfDayOperationResponse> = new EndOfDayOperationRequest<EndOfDayOperationResponse>(correlationId); return Promise.resolve(<ClientEntities.ICancelableDataResult<EndOfDayOperationRequest<EndOfDayOperationResponse>>>{ canceled: false, data: operationRequest }); }; export default getOperationRequest;
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/Print/PrintOperationRequestHandler.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionOperationRequestType, ExtensionOperationRequestHandlerBase } from "PosApi/Create/Operations"; import PrintOperationResponse from "./PrintOperationResponse"; import PrintOperationRequest from "./PrintOperationRequest"; import { ClientEntities } from "PosApi/Entities"; /** * (Sample) Request handler for the PrintOperationRequest class. */ export default class PrintOperationRequestHandler extends ExtensionOperationRequestHandlerBase<PrintOperationResponse> { /** * Gets the supported request type. * @return {RequestType<TResponse>} The supported request type. */ public supportedRequestType(): ExtensionOperationRequestType<PrintOperationResponse> { return PrintOperationRequest; } /** * Executes the request handler asynchronously. * @param {PrintOperationRequest<TResponse>} request The request. * @return {Promise<ICancelableDataResult<TResponse>>} The cancelable async result containing the response. */ public executeAsync(request: PrintOperationRequest<PrintOperationResponse>): Promise<ClientEntities.ICancelableDataResult<PrintOperationResponse>> { this.context.logger.logInformational("Log message from PrintOperationRequestHandler executeAsync().", this.context.logger.getNewCorrelationId()); let messageToPrint: string = "Message from PrintOperationRequestHandler: " + request.messageToPrint; let response: PrintOperationResponse = new PrintOperationResponse(messageToPrint); return new Promise((resolve: (value?: ClientEntities.ICancelableDataResult<PrintOperationResponse>) => void) => { // Simulating delay so that busy indicator is shown until timeout. setTimeout(resolve, 2000 /*milliseconds*/); }).then((): ClientEntities.ICancelableDataResult<PrintOperationResponse> => { // Printing the message to console. console.log(messageToPrint); return <ClientEntities.ICancelableDataResult<PrintOperationResponse>>{ canceled: false, data: response }; }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/Print/PrintOperationRequestFactory.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import PrintOperationResponse from "./PrintOperationResponse"; import PrintOperationRequest from "./PrintOperationRequest"; import { ExtensionOperationRequestFactoryFunctionType, IOperationContext } from "PosApi/Create/Operations"; import { ClientEntities } from "PosApi/Entities"; let getOperationRequest: ExtensionOperationRequestFactoryFunctionType<PrintOperationResponse> = /** * Gets an instance of PrintOperationRequest. * @param {number} operationId The operation Id. * @param {string[]} actionParameters The action parameters. * @param {string} correlationId A telemetry correlation ID, used to group events logged from this request together with the calling context. * @return {PrintOperationRequest<TResponse>} Instance of PrintOperationRequest. */ function ( context: IOperationContext, operationId: number, actionParameters: string[], correlationId: string ): Promise<ClientEntities.ICancelableDataResult<PrintOperationRequest<PrintOperationResponse>>> { let operationRequest: PrintOperationRequest<PrintOperationResponse> = new PrintOperationRequest<PrintOperationResponse>(correlationId); operationRequest.messageToPrint = "Current Operation id: " + operationId + ", Action parameters: " + JSON.stringify(actionParameters); return Promise.resolve(<ClientEntities.ICancelableDataResult<PrintOperationRequest<PrintOperationResponse>>>{ canceled: false, data: operationRequest }); }; export default getOperationRequest;
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/Print/PrintOperationRequest.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionOperationRequestBase } from "PosApi/Create/Operations"; import PrintOperationResponse from "./PrintOperationResponse"; /** * (Sample) Operation request for printing a message to console. */ export default class PrintOperationRequest<TResponse extends PrintOperationResponse> extends ExtensionOperationRequestBase<TResponse> { public messageToPrint: string; constructor(correlationId: string) { super(5000, correlationId); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/Print/PrintOperationResponse.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { Response } from "PosApi/Create/RequestHandlers"; /** * (Sample) Operation response of printing a message to console. */ export default class PrintOperationResponse extends Response { /** * The printed message. */ public printedMessage: string; constructor(printedMessage: string) { super(); this.printedMessage = printedMessage; } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/SaveDataToSelectedCartLine/SaveDataToSelectedCartLineRequest.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionOperationRequestBase } from "PosApi/Create/Operations"; import SaveDataToSelectedCartLineResponse from "./SaveDataToSelectedCartLineResponse"; /** * (Sample) Operation request for saving data to selected cart line operation. */ export default class SaveDataToSelectedCartLineRequest<TResponse extends SaveDataToSelectedCartLineResponse> extends ExtensionOperationRequestBase<TResponse> { public readonly installationDate: string; constructor(correlationId: string, installationDate: string) { super(5003 /* operationId */, correlationId); this.installationDate = installationDate; } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/SaveDataToSelectedCartLine/SaveDataToSelectedCartLineResponse.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { Response } from "PosApi/Create/RequestHandlers"; import { ProxyEntities } from "PosApi/Entities"; /** * (Sample) Operation response for saving data to selected cart line operation. */ export default class SaveDataToSelectedCartLineResponse extends Response { public cart: ProxyEntities.Cart; constructor(cart: ProxyEntities.Cart) { super(); this.cart = cart; } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/SaveDataToSelectedCartLine/SaveDataToSelectedCartLineHandler.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionOperationRequestType, ExtensionOperationRequestHandlerBase } from "PosApi/Create/Operations"; import { ClientEntities, ProxyEntities } from "PosApi/Entities"; import { StringExtensions } from "PosApi/TypeExtensions"; import { IExtensionContext } from "PosApi/Framework/ExtensionContext"; import { SaveExtensionPropertiesOnCartLinesClientRequest, SaveExtensionPropertiesOnCartLinesClientResponse, GetCurrentCartClientRequest, GetCurrentCartClientResponse } from "PosApi/Consume/Cart"; import { IListInputDialogItem, IListInputDialogOptions, ShowListInputDialogClientRequest, ShowListInputDialogClientResponse } from "PosApi/Consume/Dialogs"; import SaveDataToSelectedCartLineResponse from "./SaveDataToSelectedCartLineResponse"; import SaveDataToSelectedCartLineRequest from "./SaveDataToSelectedCartLineRequest"; import CartViewController from "../../../Extend/ViewExtensions/Cart/CartViewController"; /** * (Sample) Request handler for the SaveDataToSelectedCartLineHandler class. */ export default class SaveDataToSelectedCartLineHandler<TResponse extends SaveDataToSelectedCartLineResponse> extends ExtensionOperationRequestHandlerBase<TResponse> { /** * Gets the supported request type. * @return {RequestType<TResponse>} The supported request type. */ public supportedRequestType(): ExtensionOperationRequestType<TResponse> { return SaveDataToSelectedCartLineRequest; } /** * Executes the request handler asynchronously. * @param {SaveDataToSelectedCartLineRequest<TResponse>} request The request. * @return {Promise<ICancelableDataResult<TResponse>>} The cancelable async result containing the response. */ public executeAsync(request: SaveDataToSelectedCartLineRequest<TResponse>): Promise<ClientEntities.ICancelableDataResult<TResponse>> { this.context.logger.logInformational("Log message from SaveDataToSelectedCartLineHandler executeAsync().", request.correlationId); let getCurrentCartClientRequest: GetCurrentCartClientRequest<GetCurrentCartClientResponse> = new GetCurrentCartClientRequest(request.correlationId); return this.context.runtime.executeAsync(getCurrentCartClientRequest) .then((getCurrentCartClientResponse: ClientEntities.ICancelableDataResult<GetCurrentCartClientResponse>) => { if (getCurrentCartClientResponse.canceled) { return Promise.resolve(<ClientEntities.ICancelableDataResult<TResponse>>{ canceled: true, data: null }); } /** * Get the currently selected cart line from the CartViewController. * If there isn't a cart line currently selected prompt the user to select a cart line. */ let selectedCartLineId: string = CartViewController.selectedCartLineId; if (StringExtensions.isNullOrWhitespace(selectedCartLineId)) { return this._showDialog(this.context, getCurrentCartClientResponse.data.result) .then((dialogResult: ClientEntities.ICancelableDataResult<string>) => { if (dialogResult.canceled) { return Promise.resolve(<ClientEntities.ICancelableDataResult<TResponse>>{ canceled: true, data: null }); } return this._saveDataToCartLineByCartLineId( dialogResult.data, request.installationDate, request.correlationId, getCurrentCartClientResponse.data.result); }); } else { return this._saveDataToCartLineByCartLineId( selectedCartLineId, request.installationDate, request.correlationId, getCurrentCartClientResponse.data.result); } }); } private _saveDataToCartLineByCartLineId(cartLineId: string, value: string, correlationId: string, cart: ProxyEntities.Cart): Promise<ClientEntities.ICancelableDataResult<TResponse>> { let cartLineExtensionProperty: ProxyEntities.CommerceProperty = new ProxyEntities.CommercePropertyClass(); cartLineExtensionProperty.Key = "installationDate"; cartLineExtensionProperty.Value = new ProxyEntities.CommercePropertyValueClass(); cartLineExtensionProperty.Value.StringValue = value; let extensionPropertiesOnCartLine: ClientEntities.IExtensionPropertiesOnCartLine = { cartLineId: cartLineId, extensionProperties: [cartLineExtensionProperty] }; let saveExtensionPropertiesOnCartLinesClientRequest: SaveExtensionPropertiesOnCartLinesClientRequest<SaveExtensionPropertiesOnCartLinesClientResponse> = new SaveExtensionPropertiesOnCartLinesClientRequest([extensionPropertiesOnCartLine], correlationId); return this.context.runtime.executeAsync(saveExtensionPropertiesOnCartLinesClientRequest) .then((saveExtensionPropertiesResponse: ClientEntities.ICancelableDataResult<SaveExtensionPropertiesOnCartLinesClientResponse>) => { if (saveExtensionPropertiesResponse.canceled) { return Promise.resolve(<ClientEntities.ICancelableDataResult<TResponse>>{ canceled: true, data: null }); } return Promise.resolve(<ClientEntities.ICancelableDataResult<TResponse>>{ canceled: false, data: new SaveDataToSelectedCartLineResponse(cart) }); }); } private _showDialog(context: IExtensionContext, cart: ProxyEntities.Cart): Promise<ClientEntities.ICancelableDataResult<string>> { let convertedListItems: IListInputDialogItem[] = cart.CartLines.map((cartLine: ProxyEntities.CartLine): IListInputDialogItem => { return { label: cartLine.Description, // string to be displayed for the given item value: cartLine.LineId // list data item that the string label represents }; }); let listInputDialogOptions: IListInputDialogOptions = { title: "Select cart line", subTitle: "Cart lines", items: convertedListItems }; let dialogRequest: ShowListInputDialogClientRequest<ShowListInputDialogClientResponse> = new ShowListInputDialogClientRequest<ShowListInputDialogClientResponse>(listInputDialogOptions); return context.runtime.executeAsync(dialogRequest) .then((result: ClientEntities.ICancelableDataResult<ShowListInputDialogClientResponse>) => { if (result.canceled) { return Promise.resolve(<ClientEntities.ICancelableDataResult<string>>{ canceled: true, data: StringExtensions.EMPTY }); } return Promise.resolve(<ClientEntities.ICancelableDataResult<string>>{ canceled: false, data: result.data.result.value.value }); }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/Operations/SaveDataToSelectedCartLine/SaveDataToSelectedCartLineFactory.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import SaveDataToSelectedCartLineRequest from "./SaveDataToSelectedCartLineRequest"; import SaveDataToSelectedCartLineResponse from "./SaveDataToSelectedCartLineResponse"; import { ExtensionOperationRequestFactoryFunctionType, IOperationContext } from "PosApi/Create/Operations"; import { ClientEntities } from "PosApi/Entities"; import { DateExtensions } from "PosApi/TypeExtensions"; let getOperationRequest: ExtensionOperationRequestFactoryFunctionType<SaveDataToSelectedCartLineResponse> = /** * Gets an instance of SaveDataToSelectedCartLineRequest. * @param {number} operationId The operation Id. * @param {string[]} actionParameters The action parameters. * @param {string} correlationId A telemetry correlation ID, used to group events logged from this request together with the calling context. * @return {SaveDataToSelectedCartLineRequest<TResponse>} Instance of SaveDataToSelectedCartLineRequest. */ function ( context: IOperationContext, operationId: number, actionParameters: string[], correlationId: string ): Promise<ClientEntities.ICancelableDataResult<SaveDataToSelectedCartLineRequest<SaveDataToSelectedCartLineResponse>>> { const installationDate: string = DateExtensions.getDate().toDateString(); let operationRequest: SaveDataToSelectedCartLineRequest<SaveDataToSelectedCartLineResponse> = new SaveDataToSelectedCartLineRequest<SaveDataToSelectedCartLineResponse>(correlationId, installationDate); return Promise.resolve(<ClientEntities.ICancelableDataResult<SaveDataToSelectedCartLineRequest<SaveDataToSelectedCartLineResponse>>>{ canceled: false, data: operationRequest }); }; export default getOperationRequest;
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/RequestHandlers/SendEmailRequest.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionRequestBase } from "PosApi/Create/RequestHandlers"; import SendEmailResponse from "./SendEmailResponse"; /** * The controller for SimpleNextView. */ export default class SendEmailRequest<TResponse extends SendEmailResponse> extends ExtensionRequestBase<TResponse> { public emailAddress: string; public message: string; }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/RequestHandlers/SendEmailResponse.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { Response } from "PosApi/Create/RequestHandlers"; /** * The response for the SendEmailRequest. */ export default class SendEmailResponse extends Response { public dateSent: Date; }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/Pos/Create/RequestHandlers/SendEmailRequestHandler.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { ExtensionRequestHandlerBase, ExtensionRequestType } from "PosApi/Create/RequestHandlers"; import { ClientEntities } from "PosApi/Entities"; import MessageDialog from "../../Create/Dialogs/DialogSample/MessageDialog"; import SendEmailRequest from "./SendEmailRequest"; import SendEmailResponse from "./SendEmailResponse"; /** * The request handler for SendEmailRequestHandler. */ export default class SendEmailRequestHandler<TResponse extends SendEmailResponse> extends ExtensionRequestHandlerBase<TResponse> { /** * Gets the supported request type. * @return {ExtensionRequestType<TResponse>} The supported abstract or concrete request type. */ public supportedRequestType(): ExtensionRequestType<TResponse> { return SendEmailRequest; } /** * Executes the request handler asynchronously. * @param {SendEmailRequest<TResponse>} request The SendEmail request. * @return {Promise<ClientEntities.ICancelableDataResult<TResponse>>} The promise with a cancelable result containing the response. */ public executeAsync(request: SendEmailRequest<TResponse>): Promise<ClientEntities.ICancelableDataResult<TResponse>> { let message: string = "Sending email to: " + request.emailAddress + "\nMessage: " + request.message; return MessageDialog.show(this.context, message).then((): Promise<ClientEntities.ICancelableDataResult<TResponse>> => { let response: SendEmailResponse = new SendEmailResponse(); return Promise.resolve(<ClientEntities.ICancelableDataResult<TResponse>>{ canceled: false, data: response }); }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/StoreCommerce.Installer/Contoso.PosExtensions.StoreCommerce.Installer.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net472</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Installers.StoreCommerce" Version="$(CommerceSdkPackagesVersion)" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\CommerceRuntime\Contoso.PosExtensions.CommerceRuntime.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> <ProjectReference Include="..\Pos\Contoso.PosExtensions.Pos.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/CommerceRuntime/Contoso.PosExtensions.CommerceRuntime.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Runtime" Version="$(CommerceSdkPackagesVersion)" /> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/StoreCommerceSamples/PosExtensionSamples/CommerceRuntime/DefinePosExtensionPackageTrigger.cs
namespace TriggerSamples.CommerceRuntime { using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// Class that implements a post trigger for the GetExtensionPackageDefinitionsRequest request type. /// </summary> public class DefinePosExtensionPackageTrigger : IRequestTriggerAsync { /// <summary> /// Gets the supported requests for this trigger. /// </summary> public IEnumerable<Type> SupportedRequestTypes => new[] { typeof(GetExtensionPackageDefinitionsRequest) }; /// <summary> /// Post trigger to retrieve extension package. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> public Task OnExecuted(Request request, Response response) { ThrowIf.Null(request, "request"); ThrowIf.Null(response, "response"); var getExtensionsResponse = (GetExtensionPackageDefinitionsResponse)response; var extensionPackageDefinition = new ExtensionPackageDefinition(); // Should match the PackageName used when packaging the customization package (i.e. in CustomizationPackage.props). extensionPackageDefinition.Name = "Contoso.PosExtensions"; extensionPackageDefinition.Publisher = "Contoso"; extensionPackageDefinition.IsEnabled = true; getExtensionsResponse.ExtensionPackageDefinitions.Add(extensionPackageDefinition); return Task.CompletedTask; } /// <summary> /// Pre trigger code. /// </summary> /// <param name="request">The request.</param> public Task OnExecuting(Request request) { return Task.CompletedTask; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/Contoso.Mobile.Samples.sln_
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33403.182 MinimumVisualStudioVersion = 15.0.0.0 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contoso.StoreCommerce.MobileApp", "StoreCommerce.MobileApp\Contoso.StoreCommerce.MobileApp.csproj", "{643E5537-47CE-4C69-9660-80B7583FECBC}" ProjectSection(ProjectDependencies) = postProject {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1} = {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1} {B5561175-66C2-4FA7-A10E-0296EB3BC292} = {B5561175-66C2-4FA7-A10E-0296EB3BC292} EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contoso.PaymentDeviceSample", "..\..\HardwareStationSamples\PaymentDevice\Contoso.PaymentDeviceSample.csproj", "{B5561175-66C2-4FA7-A10E-0296EB3BC292}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contoso.PeripheralCustomizations", "..\..\HardwareStationSamples\PeripheralCustomizations\Contoso.PeripheralCustomizations.csproj", "{52930FB4-3599-4CC3-B7FB-DEC7056CE9C1}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AF807C19-0008-481E-9C48-A2BD5F8A7212}" ProjectSection(SolutionItems) = preProject CustomizationPackage.props = CustomizationPackage.props EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {643E5537-47CE-4C69-9660-80B7583FECBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {643E5537-47CE-4C69-9660-80B7583FECBC}.Debug|Any CPU.Build.0 = Debug|Any CPU {643E5537-47CE-4C69-9660-80B7583FECBC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {643E5537-47CE-4C69-9660-80B7583FECBC}.Release|Any CPU.ActiveCfg = Release|Any CPU {643E5537-47CE-4C69-9660-80B7583FECBC}.Release|Any CPU.Build.0 = Release|Any CPU {643E5537-47CE-4C69-9660-80B7583FECBC}.Release|Any CPU.Deploy.0 = Release|Any CPU {B5561175-66C2-4FA7-A10E-0296EB3BC292}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B5561175-66C2-4FA7-A10E-0296EB3BC292}.Debug|Any CPU.Build.0 = Debug|Any CPU {B5561175-66C2-4FA7-A10E-0296EB3BC292}.Release|Any CPU.ActiveCfg = Release|Any CPU {B5561175-66C2-4FA7-A10E-0296EB3BC292}.Release|Any CPU.Build.0 = Release|Any CPU {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1}.Debug|Any CPU.Build.0 = Debug|Any CPU {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1}.Release|Any CPU.ActiveCfg = Release|Any CPU {52930FB4-3599-4CC3-B7FB-DEC7056CE9C1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {94595632-82A6-4FBA-BA6F-A595F070BC98} EndGlobalSection EndGlobal
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/README.md
# Mobile App Sample Solution This solution demonstrates how to create a Store Commerce mobile app package with dedicated Hardware Station extensions. The output of this sample solution will be an Android app package (APK) used to install the Store Commerce mobile app onto Android devices. ## Using the sample In order to build the Store Commerce mobile app sample, you must follow the below steps to consume the Store Commerce Mobile SDK. ### Pre-requisites: Install the .NET Multi-platform App UI development Visual Studio 2022 workload. ### Steps - Navigate to the [LCS Shared Asset Library](https://lcs.dynamics.com/V2/SharedAssetLibrary) - Under the Retail Self-service package, download the latest Store Commerce for Android package, starting with version 10.0.41. - Unzip the Store Commerce for Android package and copy the ```packages``` folder to your repository root. - Modify the nuget.config file to include the packages folder as a package source. In the ```<packageSources>``` node, add: ```<add key="Dynamics365Commerce-Android-Dependencies" value="./packages" />```. - The App name that is displayed in the Android launcher should be modified in the MainActivity.cs by updating the Label property on the Activity attribute. - The package name should be modified in the AndroidManifest.xml by changing the package attribute of the manifest node. The android:label attribute of the application node should also be modified. - Build the mobile samples solution. - Assuming an Android emulator is configured, you may start debugging the app from Visual Studio.
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/CustomizationPackage.props
<Project> <Import Project="..\..\..\repo.props" /> <PropertyGroup> <PackagePublisher Condition="'$(PackagePublisher)' == ''">$(Publisher)</PackagePublisher> <PackagePublisherDisplayName Condition="'$(PackagePublisherDisplayName)' == ''">$(PublisherDisplayName)</PackagePublisherDisplayName> <PackageVersion Condition="'$(PackageVersion)' == ''">$(Version)</PackageVersion> <PackageName Condition="'$(PackageName)' == ''">Contoso.StoreCommercePackagingSample</PackageName> <PackageDisplayName Condition="'$(PackageDisplayName)' == ''">Contoso Store Commerce Mobile App Sample</PackageDisplayName> <PackageDescription Condition="'$(PackageDescription)' == ''">Contoso Store Commerce Mobile App Packaging Sample</PackageDescription> </PropertyGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Contoso.StoreCommerce.MobileApp.csproj
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFrameworks>net8.0-android</TargetFrameworks> <UseMaui>true</UseMaui> <OutputType>Exe</OutputType> <RootNamespace>Contoso.StoreCommerce.MobileApp</RootNamespace> <AssemblyName>Contoso.StoreCommerce.MobileApp</AssemblyName> <!-- Display name --> <ApplicationTitle Condition="$(ApplicationTitle) == ''">Contoso Store Commerce Mobile App</ApplicationTitle> <!-- App Identifier --> <ApplicationId Condition="$(ApplicationId) == ''">contoso.storecommerce.mobileapp</ApplicationId> <!-- Versions --> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationVersion>1</ApplicationVersion> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.StoreCommerce.Mobile" Version="$(CommerceSdkPackagesVersion)" /> <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\..\HardwareStationSamples\PaymentDevice\Contoso.PaymentDeviceSample.csproj" ReferenceOutputAssembly="False" /> <ProjectReference Include="..\..\..\HardwareStationSamples\PeripheralCustomizations\Contoso.PeripheralCustomizations.csproj" ReferenceOutputAssembly="False" /> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms/Android/MainActivity.cs
/* SAMPLE CODE NOTICE THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ /* IMPORTANT!!! THIS IS SAMPLE CODE ONLY. THE CODE SHOULD BE UPDATED TO WORK WITH THE APPROPRIATE PAYMENT PROVIDERS. PROPER MEASURES SHOULD BE TAKEN TO ENSURE THAT THE PA-DSS AND PCI DSS REQUIREMENTS ARE MET. */ namespace Contoso.StoreCommerce.MobileApp { using global::Android.App; using global::Android.Content.PM; /// <summary> /// The main activity. /// </summary> [Activity( Label = "Contoso Store Commerce Mobile App", Theme = "@style/StoreCommerceTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] public class MainActivity : MauiAppCompatActivity { } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms/Android/MainApplication.cs
/* SAMPLE CODE NOTICE THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ /* IMPORTANT!!! THIS IS SAMPLE CODE ONLY. THE CODE SHOULD BE UPDATED TO WORK WITH THE APPROPRIATE PAYMENT PROVIDERS. PROPER MEASURES SHOULD BE TAKEN TO ENSURE THAT THE PA-DSS AND PCI DSS REQUIREMENTS ARE MET. */ namespace Contoso.StoreCommerce.MobileApp { using global::Android.App; using global::Android.Runtime; using Microsoft.Dynamics.Commerce.StoreCommerce.Maui; /// <summary> /// The main application. /// </summary> [Application] public class MainApplication : MauiApplication { /// <summary> /// Initializes a new instance of the <see cref="MainApplication"/> class. /// </summary> /// <param name="handle">The handle.</param> /// <param name="ownership">The ownership.</param> public MainApplication(IntPtr handle, JniHandleOwnership ownership) : base(handle, ownership) { } /// <inheritdoc/> protected override MauiApp CreateMauiApp() { return MauiProgram.CreateMauiAppBuilder().Build(); } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceMobile/StoreCommerce.MobileApp/Platforms/Android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="contoso.storecommerce.mobileapp" android:supportsRtl="true" android:installLocation="auto"> <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.FLASHLIGHT" /> <uses-permission android:name="android.permission.CAMERA" /> <application android:label="Contoso Store Commerce Mobile App" android:icon="@drawable/Icon" android:networkSecurityConfig="@xml/network_security_config"></application> </manifest>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/global.json
{ "sdk": { "allowPrerelease": false, "rollForward": "latestFeature", "version": "6.0.100" } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/README.md
# Store Commerce Packaging Sample Solution This solution demonstrates how to create a Store Commerce extensions installer package with POS (TypeScript/HTML/CSS) extensions, Headless Commerce Engine Extensions for offline mode, offline database extensions & dedicated hardware station extensions. The output of this sample solution will be an extension installer (exe) used to install the Store Commerce extensions. ## Using the samples You can download the sample as zip and open it in Visual Studio (VS 2022). After opening in VS 2022, build the project. After successful build, output installer package will be created. To deploy the Store Commerce extensions, follow these steps. Note: Store Commerce must be installed before deploying the extension. 1. Close Store Commerce if it's running. 2. Run the extension installer generated using command prompt. Ex: C:\Contoso.StoreCommercePackagingSample.StoreCommerce.Installer\bin\Debug\net472> .\Contoso.StoreCommercePackagingSample.StoreCommerce.Installer.exe install 3. Open Store Commerce and click the setting button and check the extension package deployment status under the Extension package section. ### How to see the samples in action Navigate to the Product Search View and you'll see the "Product Version" column added to the product search results grid. Then switch to offline mode to see the offline Commerce Runtime extensions working where they will populate the "Product Version" column in the product search results with a randomly generated number. To see the dedicated hardware station extensions in action complete a transaction and you will be prompted: "Would you like to print the transaction receipt in a file?". If you select "Yes" this will trigger a custom hardware station API (FilePrinter/Print) to showcase the dedicated hardware station extension. ## Projects ### Contoso.StoreCommercePackagingSample.Pos.csproj This project contains the POS TypeScript extensions that will be included into the Store Commerce Extension Package Installer. These POS extensions will be used when Store Commerce is running in InApp mode, which means the POS content is loaded from the local machine. ### Contoso.StoreCommercePackagingSample.HardwareStation.csproj This project contains a sample hardware station extension. This hardware station extension creates a new API FilePrinter/Print that writes the provided lines to a text file in the common application data folder. This hardware station extension is packaged inside the Store Commerce installer so that it will be enabled for the dedicated hardware station inside the Store Commerce App. ### Contoso.StoreCommercePackagingSample.CommerceRuntime.csproj This project contains samples on how to create Commerce Runtime and Headless Commerce APIs. Within the StoreCommercePackagingSample solution this Commerce Runtime assembly will be included in the Store Commerce extension package and the functionality will be available in offline mode automatically. [Commerce Runtime Extension patterns](https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/commerce-runtime-extensibility) [Headless Commerce APIs](https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/retail-server-icontroller-extension) ### Contoso.StoreCommercePackagingSample.ChannelDatabase.csproj This project contains samples on how to create Commerce Runtime/Channel database extensions. ### Contoso.StoreCommercePackagingSample.StoreCommerce.Installer.csproj This project contains samples on how to create Store Commerce extensions installer. ## Additional Resources - [POS Extension Overview](https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/pos-extension/pos-extension-getting-started) - [Store Commerce Overview](https://learn.microsoft.com/en-us/dynamics365/commerce/dev-itpro/store-commerce) - [Debugging Store Commerce Extensions](https://learn.microsoft.com/en-us/dynamics365/commerce/dev-itpro/sc-debug)
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CustomizationPackage.props
<Project> <Import Project="..\..\..\repo.props" /> <PropertyGroup> <PackagePublisher Condition="'$(PackagePublisher)' == ''">$(Publisher)</PackagePublisher> <PackagePublisherDisplayName Condition="'$(PackagePublisherDisplayName)' == ''">$(PublisherDisplayName)</PackagePublisherDisplayName> <PackageVersion Condition="'$(PackageVersion)' == ''">$(Version)</PackageVersion> <PackageName Condition="'$(PackageName)' == ''">Contoso.StoreCommercePackagingSample</PackageName> <PackageDisplayName Condition="'$(PackageDisplayName)' == ''">Contoso Store Commerce Customization Packaging Sample</PackageDisplayName> <PackageDescription Condition="'$(PackageDescription)' == ''">Contoso Store Commerce Customization Packaging Sample</PackageDescription> </PropertyGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Contoso.StoreCommercePackagingSample.Pos.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <KnockoutjsFile>Libraries/knockout.js</KnockoutjsFile> </PropertyGroup> <ItemGroup> <Content Include="devDependencies\pos-tsconfig-base.json" /> <Content Include="devDependencies\schemas\cultureInfoSchema.json" /> <Content Include="devDependencies\schemas\manifestSchema.json" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Pos" Version="$(CommerceSdkPackagesVersion)" /> <PackageReference Include="Microsoft.TypeScript.MSBuild" Version="$(TypeScriptPackagesVersion)" /> <PackageReference Include="knockoutjs" Version="3.5.*" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\CommerceRuntime\Contoso.StoreCommercePackagingSample.CommerceRuntime.csproj" /> </ItemGroup> <Target Name="ContentIncludeKnockoutLibrary" BeforeTargets="AssignTargetPaths" DependsOnTargets="RunResolvePackageDependencies"> <PropertyGroup> <KnockoutLibraryFilePath Condition="'%(PackageDefinitions.Name)' == 'knockoutjs'">%(PackageDefinitions.ResolvedPath)\Content\Scripts\knockout-%(PackageDefinitions.Version).js</KnockoutLibraryFilePath> </PropertyGroup> <Copy SourceFiles="$(KnockoutLibraryFilePath)" DestinationFiles="$(KnockoutjsFile)" SkipUnchangedFiles="true" /> <!-- Necessary for CPOS --> <ItemGroup> <Content Include="$(KnockoutjsFile)"></Content> </ItemGroup> </Target> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/tsconfig.json
{ "extends": "./devDependencies/pos-tsconfig-base.json", "compilerOptions": { "baseUrl": ".", "paths": { "knockout": [ "Libraries/knockout" ] }, "noImplicitAny": false } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/manifest.json
{ "$schema": "./devDependencies/schemas/manifestSchema.json", "name": "Contoso.StoreCommercePackagingSample", "publisher": "Contoso", "version": "1.0.0", "minimumPosVersion": "9.28.0.0", "description": "An extension package containing POS samples to showcase how to create a Store Commerce Extension Package and Installer.", "dependencies": [ { "alias": "knockout", "format": "amd", "modulePath": "Libraries/knockout" } ], "components": { "resources": { "supportedUICultures": [ "en-US" ], "fallbackUICulture": "en-US", "culturesDirectoryPath": "Resources/Strings", "stringResourcesFileName": "resources.resjson" }, "create": { "templatedDialogs": [ { "htmlPath": "Controls/Dialogs/Create/ExampleCreateDialog.html", "modulePath": "Controls/Dialogs/Create/ExampleCreateDialogModule" }, { "htmlPath": "Controls/Dialogs/Edit/ExampleEditDialog.html", "modulePath": "Controls/Dialogs/Edit/ExampleEditDialogModule" }, { "htmlPath": "Controls/Dialogs/Display/PingResultDialog.html", "modulePath": "Controls/Dialogs/Display/PingResultDialogModule" } ], "views": [ { "title": "Knockout Samples View", "pageName": "KnockoutSamplesView", "phonePageName": "KnockoutSamplesView", "viewDirectory": "Views/", "viewControllerPath": "Views/KnockoutSamplesView" }, { "title": "Example View", "pageName": "ExampleView", "phonePageName": "ExampleView", "viewDirectory": "Views/", "viewControllerPath": "Views/ExampleView" } ] }, "extend": { "triggers": [ { "name": "Application Start Load knockout.js Trigger", "description": "An extension to execute custom logic to load the knockout.js library when the application is launched.", "triggerType": "ApplicationStart", "modulePath": "Triggers/ApplicationStartTrigger" }, { "name": "PreProductSaleTrigger", "description": "An extension to execute custom logic prior to executing the Product Sale Operation.", "triggerType": "PreProductSale", "modulePath": "Triggers/PreProductSaleTrigger" }, { "name": "PostCartCheckoutPrintFileTrigger", "description": "An extension to execute custom logic after the cart checkout is completed.", "triggerType": "PostCartCheckoutTransaction", "modulePath": "Triggers/PostCheckoutPrintFileTrigger" } ], "views": { "SearchView": { "productListConfiguration": { "name": "Customized Product Search Columns", "description": "An extension providing a customized set of columns on the product search grid.", "modulePath": "ViewExtensions/CustomProductSearchColumns" }, "productAppBarCommands": [ { "modulePath": "ViewExtensions/Search/NavigateToKnockoutSamplesViewCommand" }, { "modulePath": "ViewExtensions/Search/NavigateToExampleViewCommand" } ] }, "SimpleProductDetailsView": { "controlsConfig": { "customControls": [ { "controlName": "ProductAvailabilityPanel", "htmlPath": "ViewExtensions/SimpleProductDetails/ProductAvailabilityPanel.html", "modulePath": "ViewExtensions/SimpleProductDetails/ProductAvailabilityPanel" } ] } } } } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Views/ExampleView.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Example View</title> </head> <body> <div class="exampleView height100Percent"> <div id="exampleListView" class="pad20 height100Percent"> </div> </div> </body> </html>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Views/KnockoutSamplesView.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Knockout Samples view</title> </head> <body> <div class="KnockoutSamplesView"> <div class="col center"> <div class="h4 pad8 center height40" data-bind="text: viewText"></div> <button class="primaryButton" data-bind="click: buttonClicked">Change Text</button> <div class="margin32 height212 width680"> <div id="dataListSample"></div> </div> </div> </div> </body> </html>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Views/KnockoutSamplesView.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Views from "PosApi/Create/Views"; import * as Controls from "PosApi/Consume/Controls"; import { ObjectExtensions } from "PosApi/TypeExtensions"; import ko from "knockout"; /* * ATTENTION * * The name of the import 'knockout' must match the one in the tsconfig and manifest file. * The data list is here to show that it's possible to use knockout along with POS controls. * To use knockout along with other controls from PosApi it's necessary to define the knockout binding: __posStopExtensionBinding. * The ApplicationStartTrigger sample shows how it's done. It's important that the binding happens before this file is loaded. */ export interface IShiftData { requestId: number; requestDateTime: Date; requestedWorkerName: string; requestType: string; requestStatus: string; } /** * The controller for KnockoutSamplesView. */ export default class KnockoutSamplesView extends Views.CustomViewControllerBase { public dataList: Controls.IDataList<IShiftData>; public readonly viewText: any; private _texts: string[] = [ "This view is using knockout on the version specified in the csproj (except the data list control).", "It only works because the manifest has declared the knockout dependency.", "You can add the types file (.d.ts) manually to get IntelliSense." ]; constructor(context: Views.ICustomViewControllerContext) { super(context); this.viewText = ko.observable(this._texts[0]); } /** * Bind the html element with view controller. * @param {HTMLElement} element DOM element. */ public onReady(element: HTMLElement): void { let dataListDataSource: Readonly<IShiftData[]> = this._getDataListData(); let dataListOptions: Readonly<Controls.IDataListOptions<IShiftData>> = { columns: [ { title: "Name", ratio: 30, collapseOrder: 3, minWidth: 100, computeValue: (value: IShiftData): string => { return value.requestedWorkerName; } }, { title: "Type", ratio: 30, collapseOrder: 1, minWidth: 100, computeValue: (value: IShiftData): string => { return value.requestType; } }, { title: "Status", ratio: 40, collapseOrder: 2, minWidth: 100, computeValue: (value: IShiftData): string => { return value.requestStatus; } } ], data: dataListDataSource, interactionMode: Controls.DataListInteractionMode.MultiSelect, equalityComparer: (left: IShiftData, right: IShiftData): boolean => left.requestId === right.requestId }; let dataListRootElem: HTMLDivElement = element.querySelector("#dataListSample") as HTMLDivElement; this.dataList = this.context.controlFactory.create("", "DataList", dataListOptions, dataListRootElem); this.dataList.addEventListener("SelectionChanged", (eventData: { items: IShiftData[] }) => { this._dataListSelectionChanged(eventData.items); }); this.dataList.addEventListener("ItemInvoked", (eventData: { item: IShiftData }) => { this._dataListItemInvoked(eventData.item); }); ko.applyBindings(this, element); } /** * Called when the object is disposed. */ public dispose(): void { ObjectExtensions.disposeAllProperties(this); } /** * Click handler for sample button. */ public buttonClicked(): void { this._texts = this._texts.slice(1).concat(this._texts[0]); this.viewText(this._texts[0]); } /** * Returns sample data for the data list. * @returns {IShiftData[]} Sample list of shift data objects. */ private _getDataListData(): IShiftData[] { return [ { requestId: 1, requestDateTime: new Date(), requestedWorkerName: "Allison Berker", requestType: "Leave request", requestStatus: "Approved" }, { requestId: 2, requestDateTime: new Date(), requestedWorkerName: "Bert Miner", requestType: "Shift Swap", requestStatus: "Pending" }, { requestId: 3, requestDateTime: new Date(), requestedWorkerName: "Greg Marchievsky", requestType: "Shift Offer", requestStatus: "Rejected" }, { requestId: 4, requestDateTime: new Date(), requestedWorkerName: "Bohdan Yevchenko", requestType: "Vacation request", requestStatus: "Approved" } ]; } /** * Callback for data list selection changed. */ private _dataListSelectionChanged(items: IShiftData[]): void { this.context.logger.logInformational("SelectionChanged: " + JSON.stringify(items)); } /** * Callback for data list item invoked. */ private _dataListItemInvoked(item: IShiftData): void { this.context.logger.logInformational("ItemInvoked " + JSON.stringify(item)); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Views/ExampleViewModel.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { IExtensionViewControllerContext } from "PosApi/Create/Views"; import { Entities } from "../DataService/DataServiceEntities.g"; import * as Messages from "../DataService/DataServiceRequests.g"; import ExampleCreateDialog from "../Controls/Dialogs/Create/ExampleCreateDialogModule"; import ExampleEditDialog from "../Controls/Dialogs/Edit/ExampleEditDialogModule"; import PingResultDialog from "../Controls/Dialogs/Display/PingResultDialogModule"; import { ObjectExtensions, ArrayExtensions } from "PosApi/TypeExtensions"; /** * The ViewModel for ExampleView. */ export default class ExampleViewModel { public title: string; public loadedData: Entities.ExampleEntity[]; public isItemSelected: () => boolean; private _selectedItem: Entities.ExampleEntity; private _context: IExtensionViewControllerContext; constructor(context: IExtensionViewControllerContext) { this._context = context; this.title = context.resources.getString("string_0001"); this.loadedData = []; this.isItemSelected = () => !ObjectExtensions.isNullOrUndefined(this._selectedItem); } public load(): Promise<void> { return this._context.runtime .executeAsync(new Messages.BoundController.GetAllExampleEntitiesRequest()) .then(response => { if (!response.canceled) { this.loadedData = response.data.result; } }); } /** * Handler for list item selection. * @param {Entities.ExampleEntity[]} items */ public seletionChanged(items: Entities.ExampleEntity[]): Promise<void> { this._context.logger.logInformational("Item selected:" + JSON.stringify(items)); this._selectedItem = ArrayExtensions.firstOrUndefined(items); return Promise.resolve(); } /** * Creates an example entity by calling the appropriate request from the CommerceRuntime bound controller added. */ public createExampleEntity(): Promise<boolean> { let dialog: ExampleCreateDialog = new ExampleCreateDialog(); return dialog .open() .then(newItem => { // No action if the dialog was canceled if (ObjectExtensions.isNullOrUndefined(newItem)) { this._context.logger.logInformational("Create canceled."); return Promise.resolve(false); } this._context.logger.logInformational("Item created with data: " + JSON.stringify(newItem)); // Create the entity and reload the loaded data to reflect the change: return this._context.runtime .executeAsync(new Messages.BoundController.CreateExampleEntityRequest(newItem)) .then(response => { if (!response.canceled && response.data.result != 0) { this._context.logger.logInformational("Create success for id: " + response.data.result); return this.load().then((): boolean => true); // Load the updated data } this._context.logger.logInformational("Create failed for entity: " + JSON.stringify(newItem)); return Promise.resolve(false); }); }).catch(reason => { this._context.logger.logError("Error occurred in the create dialog: " + JSON.stringify(reason)); return Promise.resolve(false); }); } /** * Edits an example entity by calling the appropriate request from the CommerceRuntime bound controller added. */ public editExampleEntity(): Promise<boolean> { let dialog: ExampleEditDialog = new ExampleEditDialog(); return dialog .open(this._selectedItem) .then(updatedItem => { // No action if the dialog was canceled if (ObjectExtensions.isNullOrUndefined(updatedItem)) { this._context.logger.logInformational("Update canceled for data: " + JSON.stringify(updatedItem)); return Promise.resolve(false); } this._context.logger.logInformational("Updated data is: " + JSON.stringify(updatedItem)); // Perform the update and reload the loaded data to reflect the change: return this._context.runtime .executeAsync(new Messages.BoundController.UpdateExampleEntityRequest(updatedItem.UnusualEntityId, updatedItem)) .then(response => { if (!response.canceled && response.data.result) { this._context.logger.logInformational("Update success for id: " + updatedItem.UnusualEntityId); return this.load().then((): boolean => true); // Load the updated data } this._context.logger.logInformational("Update failed for id: " + updatedItem.UnusualEntityId); return Promise.resolve(false); }); }).catch(reason => { this._context.logger.logError("Error occurred in the edit dialog: " + JSON.stringify(reason)); return Promise.resolve(false); }); } /** * Deletes an example entity by calling the appropriate request from the CommerceRuntime bound controller added. */ public deleteExampleEntity(): Promise<void> { // Delete the selected entity and reload the loaded data to reflect the change: return this._context.runtime .executeAsync(new Messages.BoundController.DeleteExampleEntityRequest(this._selectedItem.UnusualEntityId)) .then(response => { if (!response.canceled && response.data.result) { this._context.logger.logInformational("Delete success for id: " + this._selectedItem.UnusualEntityId); return this.load(); // Load the updated data } this._context.logger.logInformational("Delete failed for id " + this._selectedItem.UnusualEntityId); return Promise.resolve(); }); } /** * Runs a ping test by calling the appropriate request from the CommerceRuntime unbound controller added. */ public runPingTest(): Promise<void> { return this._context.runtime .executeAsync(new Messages.StoreOperations.SimplePingGetRequest()) .then(pingGetResponse => { return this._context.runtime .executeAsync(new Messages.StoreOperations.SimplePingPostRequest()) .then(pingPostResponse => { let pingResultDialog: PingResultDialog = new PingResultDialog(); return pingResultDialog.open(pingGetResponse.data.result, pingPostResponse.data.result); }); }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Views/ExampleView.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Views from "PosApi/Create/Views"; import { Entities } from "../DataService/DataServiceEntities.g"; import ExampleViewModel from "./ExampleViewModel"; import { IDataList, IDataListOptions, DataListInteractionMode } from "PosApi/Consume/Controls"; import { ObjectExtensions } from "PosApi/TypeExtensions"; /** * The controller for ExampleView. */ export default class ExampleView extends Views.CustomViewControllerBase { public readonly viewModel: ExampleViewModel; public dataList: IDataList<Entities.ExampleEntity>; constructor(context: Views.ICustomViewControllerContext) { let config: Views.ICustomViewControllerConfiguration = { title: context.resources.getString("string_0001"), commandBar: { commands: [ { name: "Create", label: context.resources.getString("string_2001"), icon: Views.Icons.Add, isVisible: true, canExecute: true, execute: (args: Views.CustomViewControllerExecuteCommandArgs): void => { this.viewModel.createExampleEntity().then((entityCreated) => { if (entityCreated) { // Re-load the list, since the underlying data was amended this.dataList.data = this.viewModel.loadedData; } }); } }, { name: "Edit", label: context.resources.getString("string_2002"), icon: Views.Icons.Edit, isVisible: true, canExecute: false, execute: (args: Views.CustomViewControllerExecuteCommandArgs): void => { this.state.isProcessing = true; this.viewModel.editExampleEntity().then((editsMade) => { if (editsMade) { // Re-load the list since the underlying data changed this.dataList.data = this.viewModel.loadedData; } this.state.isProcessing = false; }); } }, { name: "Delete", label: context.resources.getString("string_1006"), icon: Views.Icons.Delete, isVisible: true, canExecute: false, execute: (args: Views.CustomViewControllerExecuteCommandArgs): void => { this.state.isProcessing = true; this.viewModel.deleteExampleEntity().then(() => { // Re-load the list, since the data has changed this.dataList.data = this.viewModel.loadedData; this.state.isProcessing = false; }); } }, { name: "PingTest", label: context.resources.getString("string_3001"), icon: Views.Icons.LightningBolt, isVisible: true, canExecute: true, execute: (args: Views.CustomViewControllerExecuteCommandArgs): void => { this.state.isProcessing = true; this.viewModel.runPingTest().then(() => { this.state.isProcessing = false; }); } } ] } }; super(context, config); // Initialize the view model. this.viewModel = new ExampleViewModel(context); } public dispose(): void { ObjectExtensions.disposeAllProperties(this); } public onReady(element: HTMLElement): void { // DataList let dataListOptions: IDataListOptions<Entities.ExampleEntity> = { interactionMode: DataListInteractionMode.SingleSelect, data: this.viewModel.loadedData, columns: [ { title: this.context.resources.getString("string_1001"), // Int data ratio: 40, collapseOrder: 1, minWidth: 100, computeValue: (data: Entities.ExampleEntity): string => data.IntData.toString() }, { title: this.context.resources.getString("string_1002"), // String data ratio: 60, collapseOrder: 2, minWidth: 100, computeValue: (data: Entities.ExampleEntity): string => data.StringData } ] }; let dataListRootElem: HTMLDivElement = element.querySelector("#exampleListView") as HTMLDivElement; this.dataList = this.context.controlFactory.create(this.context.logger.getNewCorrelationId(), "DataList", dataListOptions, dataListRootElem); this.dataList.addEventListener("SelectionChanged", (eventData: { items: Entities.ExampleEntity[] }) => { this.viewModel.seletionChanged(eventData.items); // Update the command states to reflect the current selection state. this.state.commandBar.commands.forEach( command => command.canExecute = ( ["Create", "PingTest"].some(name => name == command.name) || this.viewModel.isItemSelected() ) ); }); this.state.isProcessing = true; this.viewModel.load().then((): void => { // Initialize the data list with what the view model loaded this.dataList.data = this.viewModel.loadedData; this.state.isProcessing = false; }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Resources/Strings
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Resources/Strings/en-US/resources.resjson
//====================================================================================================== //======================================= Store Hour Sample comment. =================================== //====================================================================================================== { //======================== View extension titles. ======================== "string_0001" : "EXAMPLE VIEW", "_string_0001.comment" : "The Example View's title.", //======================== Column names. ======================== "string_1001" : "Int data", "_string_1001.comment" : "A column title for the int data on the Example Entity.", "string_1002" : "String data", "_string_2.comment" : "A column title for the string data on the Example Entity.", //======================== Dialog button labels. ======================== "string_2001" : "Create", "_string_4.comment" : "Create button used on a dialog for making a new entity.", "string_2002" : "Update", "_string_5.comment" : "Update button used to commit changes made to an entity in an update dialog.", "string_1006" : "Delete", "_string_6.comment" : "Delete button used to delete an entity instance in the list view.", "string_2004" : "Cancel", "_string_7.comment" : "Cancel button shared across dialogs.", "string_2005" : "OK", "_string_8.comment" : "OK button used to dismiss a dialog.", //======================== Command labels. ======================== "string_3001" : "Ping Test", "_string_3001.comment" : "A button label used in the app bar, when pressed two unbound endpoints are pinged." }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Triggers/ApplicationStartTrigger.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Triggers from "PosApi/Extend/Triggers/ApplicationTriggers"; import ko from "knockout"; // The name of the import 'knockout' must match the one in the tsconfig and manifest file. /** * Example implementation of an ApplicationStart trigger that logs to the console and implements the __posStopExtensionBinding knockout binding. */ export default class ApplicationStartTrigger extends Triggers.ApplicationStartTrigger { /** * Executes the trigger functionality. * @param {Triggers.IApplicationStartTriggerOptions} options The options provided to the trigger. */ public execute(options: Triggers.IApplicationStartTriggerOptions): Promise<void> { this.context.logger.logInformational("Executing ApplicationStartTrigger at " + new Date().getTime() + "."); /* This implementation is necessary to make POS controls behave properly when a custom version of knockout is used on extensions. * - The 'controlsDescendantBindings = true' tells knockout to not bind the descendants of the element that has it. * - All POS controls which use knockout have the __posStopExtensionBinding binding. * Then, the code below is telling to the 'ko' imported by the extension to not rebind elements inside POS controls. * Otherwise using a POS data list would result in error because the data list defines new bindings to its descendants and * the local 'ko' doesn't know their implementation, only the 'ko' imported in the POS code knows. */ ko.bindingHandlers.__posStopExtensionBinding = { init: () => { return { controlsDescendantBindings: true }; } }; return Promise.resolve(); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Triggers/PostCheckoutPrintFileTrigger.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Triggers from "PosApi/Extend/Triggers/TransactionTriggers"; import { ClientEntities } from "PosApi/Entities"; import { ShowMessageDialogClientRequest, ShowMessageDialogClientResponse } from "PosApi/Consume/Dialogs"; import { HardwareStationDeviceActionRequest, HardwareStationDeviceActionResponse } from "PosApi/Consume/Peripherals"; export default class PostCheckoutPrintFileTrigger extends Triggers.PostCartCheckoutTrigger { /** * Executes the trigger functionality. * @param {Triggers.IPreProductSaleTriggerOptions} options The options provided to the trigger. */ public execute(options: Triggers.IPostCartCheckoutTriggerOptions): Promise<void> { let dialogOptions: ClientEntities.Dialogs.IMessageDialogOptions = { message: "Would you like to print the transaction receipt in a file?", button1: { id: "YES_BUTTON", label: "Yes", isPrimary: false, result: "DO_SAVE" }, button2: { id: "NO_BUTTON", label: "No", isPrimary: true, result: "DO_NOT_SAVE" } }; let showMessageRequest: ShowMessageDialogClientRequest<ShowMessageDialogClientResponse> = new ShowMessageDialogClientRequest(dialogOptions); return this.context.runtime.executeAsync(showMessageRequest).then((result) => { if (result.canceled || result?.data?.result?.dialogResult === dialogOptions.button2.result) { return Promise.resolve(); } let lines: string[] = options.salesOrder.SalesLines.map((salesLine): string => { return `Line Id: ${salesLine.LineId} - Product Id: ${salesLine.ProductId} - Total Amount: ${salesLine.TotalAmount}`; }); let printRequest: { Lines: string[], FileName: string } = { Lines: lines, FileName: options.salesOrder.Id + ".txt" }; let printFileRequest: HardwareStationDeviceActionRequest<HardwareStationDeviceActionResponse> = new HardwareStationDeviceActionRequest("FILEPRINTER", "Print", printRequest); return this.context.runtime.executeAsync(printFileRequest) .then(() => { return; }) .catch((reason: any) => { return Promise.reject(reason); }); }); } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Triggers/PreProductSaleTrigger.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Triggers from "PosApi/Extend/Triggers/ProductTriggers"; import { ObjectExtensions } from "PosApi/TypeExtensions"; import { ClientEntities } from "PosApi/Entities"; export default class PreProductSaleTrigger extends Triggers.PreProductSaleTrigger { /** * Executes the trigger functionality. * @param {Triggers.IPreProductSaleTriggerOptions} options The options provided to the trigger. */ public execute(options: Triggers.IPreProductSaleTriggerOptions): Promise<ClientEntities.ICancelable> { if (ObjectExtensions.isNullOrUndefined(options)) { // This will never happen, but is included to demonstrate how to return a rejected promise when validation fails. let error: ClientEntities.ExtensionError = new ClientEntities.ExtensionError("The options provided to the PreProductSaleTrigger were invalid. Please select a product and try again."); return Promise.reject(error); } else { return Promise.resolve({ canceled: false }); } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/ViewExtensions/CustomProductSearchColumns.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import { IProductSearchColumn } from "PosApi/Extend/Views/SearchView"; import { ICustomColumnsContext } from "PosApi/Extend/Views/CustomListColumns"; import { CurrencyFormatter } from "PosApi/Consume/Formatters"; import { ProxyEntities } from "PosApi/Entities"; import { ArrayExtensions, ObjectExtensions, StringExtensions } from "PosApi/TypeExtensions"; export default (context: ICustomColumnsContext): IProductSearchColumn[] => { return [ { title: "Item ID", computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.ItemId; }, ratio: 20, collapseOrder: 3, minWidth: 120 }, { title: "Name", computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.Name; }, ratio: 40, collapseOrder: 2, minWidth: 200 }, { title: "Price", computeValue: (row: ProxyEntities.ProductSearchResult): string => { return CurrencyFormatter.toCurrency(row.Price); }, ratio: 20, collapseOrder: 1, minWidth: 100, isRightAligned: true }, { title: "Version", computeValue: (row: ProxyEntities.ProductSearchResult): string => { const DEFAULT_VALUE: string = "n/a"; let commerceProperty = ArrayExtensions.firstOrUndefined(row.ExtensionProperties, (prop: ProxyEntities.CommerceProperty): boolean => { return prop.Key === "CONTOSO_PRODUCT_VERSION"; }); if (ObjectExtensions.isNullOrUndefined(commerceProperty) || ObjectExtensions.isNullOrUndefined(commerceProperty.Value) || StringExtensions.isNullOrWhitespace(commerceProperty.Value.StringValue)) { return DEFAULT_VALUE; } else { return commerceProperty.Value.StringValue; } }, ratio: 20, collapseOrder: 4, minWidth: 200, isRightAligned: true } ]; };
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Display/PingResultDialogModule.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Dialogs from "PosApi/Create/Dialogs"; import { ObjectExtensions } from "PosApi/TypeExtensions"; type DialogResolve = (result: any) => void; type DialogReject = (reason: any) => void; export default class PingResultDialog extends Dialogs.ExtensionTemplatedDialogBase { private _resolve: DialogResolve; private _pingUnboundGetResult: boolean; private _pingUnboundPostResult: boolean; constructor() { super(); } /** * Executed when the dialog is instantiated, its HTML element is rendered and ready to be used. * @param {HTMLElement} element The HTMLElement */ public onReady(element: HTMLElement): void { let getPingResult = element.querySelector("#UnboundGetResult") as HTMLSpanElement; getPingResult.textContent = this._pingUnboundGetResult ? "Success!" : "Failed."; let postPingResult = element.querySelector("#UnboundPostResult") as HTMLSpanElement; postPingResult.textContent = this._pingUnboundPostResult ? "Success!" : "Failed."; } /** * Opens the dialog. * @param {boolean} pingUnboundGetResult The ping unbound get result. * @param {boolean} pingUnboundPostResult The ping unbound post result. */ public open(pingUnboundGetResult: boolean, pingUnboundPostResult: boolean): Promise<void> { let promise: Promise<void> = new Promise((resolve: DialogResolve, reject: DialogReject) => { this._resolve = resolve; this._pingUnboundGetResult = pingUnboundGetResult; this._pingUnboundPostResult = pingUnboundPostResult; this.openDialog({ title: "Ping Test Results", button1: { id: "buttonOk", label: this.context.resources.getString("string_2005"), isPrimary: true, onClick: this._closeDialogHandler.bind(this) }, onCloseX: () => this._closeDialogHandler() }); }); return promise; } /** * The handler to close the dialog. */ private _closeDialogHandler(): boolean { this._resolvePromise(); return true; } /** * Resolves the stored promise. */ private _resolvePromise(): void { if (ObjectExtensions.isFunction(this._resolve)) { this._resolve(null); this._resolve = null; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Display/PingResultDialog.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Ping Result Dialog</title> </head> <body> <div class="ExampleCreateDialog col grow"> <p> <div class="h4">Unbound GET endpoint ping result:</div> <br /> <br /> <b class="h5" id="UnboundGetResult"></b> </p> <p> <div class="h4">Unbound POST endpoint ping result:</div> <br /> <br /> <b class="h5" id="UnboundPostResult"></b> </p> <div class="grow"></div> <div class="row"></div> </div> </body> </html>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Edit/ExampleEditDialog.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Example Edit Dialog</title> </head> <body> <div class="ExampleEditDialog col grow"> <div> <div class="h4">Int data:</div> <input type="number" id="intData"></select> <br /> <br /> <div class="h4">String data:</div> <input type="text" id="stringData"></input> </div> <div class="grow"></div> <div class="row"></div> </div> </body> </html>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Edit/ExampleEditDialogModule.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Dialogs from "PosApi/Create/Dialogs"; import { Entities } from "../../../DataService/DataServiceEntities.g"; import { ObjectExtensions } from "PosApi/TypeExtensions"; type DialogResolve = (updatedEntity: Entities.ExampleEntity) => void; type DialogReject = (reason: any) => void; export default class ExampleEditDialog extends Dialogs.ExtensionTemplatedDialogBase { private _resolve: DialogResolve; private _data: Entities.ExampleEntity; constructor() { super(); } /** * Executed when the dialog is instantiated, its HTML element is rendered and ready to be used. * @param {HTMLElement} element The HTMLElement */ public onReady(element: HTMLElement): void { let intDataInput: HTMLInputElement = element.querySelector("#intData") as HTMLInputElement; intDataInput.value = this._data.IntData.toString(); intDataInput.onchange = () => { this._data.IntData = intDataInput.valueAsNumber; }; let stringDataInput: HTMLInputElement = element.querySelector("#stringData") as HTMLInputElement; stringDataInput.value = this._data.StringData; stringDataInput.onchange = () => { this._data.StringData = stringDataInput.value; }; } /** * Opens the dialog. * @param {Entities.ExampleEntity} dataToEdit The date to be edited through the dialog. */ public open(dataToEdit: Entities.ExampleEntity): Promise<Entities.ExampleEntity> { this._data = dataToEdit; let promise: Promise<Entities.ExampleEntity> = new Promise((resolve: DialogResolve, reject: DialogReject) => { this._resolve = resolve; let option: Dialogs.ITemplatedDialogOptions = { title: "Update Example Entity", button1: { id: "buttonUpdate", label: this.context.resources.getString("string_2002"), isPrimary: true, onClick: this._buttonUpdateClickHandler.bind(this) }, button2: { id: "buttonCancel", label: this.context.resources.getString("string_2004"), onClick: this._buttonCancelClickHandler.bind(this) }, onCloseX: () => this._buttonCancelClickHandler() }; this.openDialog(option); }); return promise; } /** * A handler for when the user clicks on the update button. */ private _buttonUpdateClickHandler(): boolean { this._resolvePromise(this._data); return true; } /** * A handler for when the user clicks on the cancel button. */ private _buttonCancelClickHandler(): boolean { this._resolvePromise(null); return true; } /** * Resolves the stored promise with the payload of editResult. * @param {Entities.ExampleEntity} editResult The edit result. */ private _resolvePromise(editResult: Entities.ExampleEntity): void { if (ObjectExtensions.isFunction(this._resolve)) { this._resolve(editResult); this._resolve = null; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Create/ExampleCreateDialog.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Example Create Dialog</title> </head> <body> <div class="ExampleCreateDialog col grow"> <div> <div class="h4">Integer data:</div> <input type="number" id="intData"></select> <br /> <br /> <div class="h4">String data:</div> <input type="text" id="stringData"></input> </div> <div class="grow"></div> <div class="row"></div> </div> </body> </html>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/Pos/Controls/Dialogs/Create/ExampleCreateDialogModule.ts
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ import * as Dialogs from "PosApi/Create/Dialogs"; import { Entities } from "../../../DataService/DataServiceEntities.g"; import { ObjectExtensions } from "PosApi/TypeExtensions"; type DialogResolve = (updatedEntity: Entities.ExampleEntity) => void; type DialogReject = (reason: any) => void; export default class ExampleCreateDialog extends Dialogs.ExtensionTemplatedDialogBase { private _resolve: DialogResolve; private _data: Entities.ExampleEntity; constructor() { super(); this._data = { UnusualEntityId: -1, IntData: 0, StringData: "", ExtensionProperties: [] }; } /** * Executed when the dialog is instantiated, its HTML element is rendered and ready to be used. * @param {HTMLElement} element The HTMLElement */ public onReady(element: HTMLElement): void { let intDataInput: HTMLInputElement = element.querySelector("#intData") as HTMLInputElement; intDataInput.onchange = () => { this._data.IntData = intDataInput.valueAsNumber; }; let stringDataInput: HTMLInputElement = element.querySelector("#stringData") as HTMLInputElement; stringDataInput.onchange = () => { this._data.StringData = stringDataInput.value; }; } /** * Opens the dialog. */ public open(): Promise<Entities.ExampleEntity> { let promise: Promise<Entities.ExampleEntity> = new Promise((resolve: DialogResolve, reject: DialogReject) => { this._resolve = resolve; let option: Dialogs.ITemplatedDialogOptions = { title: "Create Example Entity", button1: { id: "buttonCreate", label: this.context.resources.getString("string_2001"), isPrimary: true, onClick: this._buttonUpdateClickHandler.bind(this) }, button2: { id: "buttonCancel", label: this.context.resources.getString("string_2004"), onClick: this._buttonCancelClickHandler.bind(this) }, onCloseX: () => this._buttonCancelClickHandler() }; this.openDialog(option); }); return promise; } /** * A handler for when the user clicks on the update button. */ private _buttonUpdateClickHandler(): boolean { this._resolvePromise(this._data); return true; } /** * A handler for when the user clicks on the cancel button. */ private _buttonCancelClickHandler(): boolean { this._resolvePromise(null); return true; } /** * Resolves the stored promise with the payload of editResult. * @param {Entities.ExampleEntity} createResult The edit result. */ private _resolvePromise(createResult: Entities.ExampleEntity): void { if (ObjectExtensions.isFunction(this._resolve)) { this._resolve(createResult); this._resolve = null; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/ChannelDatabase/Contoso.StoreCommercePackagingSample.ExampleTable.sql
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ -- Create the extension table to store the custom fields. IF (SELECT OBJECT_ID('[ext].[CONTOSO_STORECOMMERCE_EXAMPLETABLE]')) IS NULL BEGIN CREATE TABLE [ext].[CONTOSO_STORECOMMERCE_EXAMPLETABLE] ( [EXAMPLEID] BIGINT IDENTITY(1,1) NOT NULL, [EXAMPLEINT] INT NOT NULL DEFAULT ((0)), [EXAMPLESTRING] NVARCHAR(64) NOT NULL DEFAULT (('')), CONSTRAINT [I_EXAMPLETABLE_EXAMPLEID] PRIMARY KEY CLUSTERED ( [EXAMPLEID] ASC ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] ALTER TABLE [ext].[CONTOSO_STORECOMMERCE_EXAMPLETABLE] WITH CHECK ADD CHECK (([EXAMPLEID]<>(0))) END GO GRANT SELECT, INSERT, UPDATE, DELETE ON OBJECT::[ext].[CONTOSO_STORECOMMERCE_EXAMPLETABLE] TO [DataSyncUsersRole] GO -- Create a stored procedure CRT can use to add entries to the custom table. IF OBJECT_ID(N'[ext].[CONTOSO_STORECOMMERCE_INSERTEXAMPLE]', N'P') IS NOT NULL DROP PROCEDURE [ext].[CONTOSO_STORECOMMERCE_INSERTEXAMPLE] GO CREATE PROCEDURE [ext].[CONTOSO_STORECOMMERCE_INSERTEXAMPLE] @i_ExampleInt INT, @s_ExampleString NVARCHAR(64) AS BEGIN SET NOCOUNT ON INSERT INTO ext.CONTOSO_STORECOMMERCE_EXAMPLETABLE (EXAMPLEINT, EXAMPLESTRING) OUTPUT INSERTED.EXAMPLEID VALUES (@i_ExampleInt, @s_ExampleString) END; GO GRANT EXECUTE ON [ext].[CONTOSO_STORECOMMERCE_INSERTEXAMPLE] TO [UsersRole]; GO GRANT EXECUTE ON [ext].[CONTOSO_STORECOMMERCE_INSERTEXAMPLE] TO [DeployExtensibilityRole]; GO -- Create the custom view that can query a complete Example Entity. IF (SELECT OBJECT_ID('[ext].[CONTOSO_STORECOMMERCE_EXAMPLEVIEW]')) IS NOT NULL DROP VIEW [ext].[CONTOSO_STORECOMMERCE_EXAMPLEVIEW] GO CREATE VIEW [ext].[CONTOSO_STORECOMMERCE_EXAMPLEVIEW] AS ( SELECT et.EXAMPLEINT, et.EXAMPLESTRING, et.EXAMPLEID FROM [ext].[CONTOSO_STORECOMMERCE_EXAMPLETABLE] et ) GO GRANT SELECT ON OBJECT::[ext].[CONTOSO_STORECOMMERCE_EXAMPLEVIEW] TO [UsersRole]; GO GRANT SELECT ON OBJECT::[ext].[CONTOSO_STORECOMMERCE_EXAMPLEVIEW] TO [DeployExtensibilityRole]; GO -- Create a stored procedure CRT can use to perform updates. IF OBJECT_ID(N'[ext].[CONTOSO_STORECOMMERCE_UPDATEEXAMPLE]', N'P') IS NOT NULL DROP PROCEDURE [ext].[CONTOSO_STORECOMMERCE_UPDATEEXAMPLE] GO CREATE PROCEDURE [ext].[CONTOSO_STORECOMMERCE_UPDATEEXAMPLE] @bi_Id BIGINT, @i_ExampleInt INT, @s_ExampleString NVARCHAR(64) AS BEGIN SET NOCOUNT ON UPDATE ext.CONTOSO_STORECOMMERCE_EXAMPLETABLE SET EXAMPLEINT = @i_ExampleInt, EXAMPLESTRING = @s_ExampleString WHERE EXAMPLEID = @bi_Id END; GO GRANT EXECUTE ON [ext].[CONTOSO_STORECOMMERCE_UPDATEEXAMPLE] TO [UsersRole]; GO GRANT EXECUTE ON [ext].[CONTOSO_STORECOMMERCE_UPDATEEXAMPLE] TO [DeployExtensibilityRole]; GO -- Create a stored procedure CRT can use to delete Example Entities. IF OBJECT_ID(N'[ext].[CONTOSO_STORECOMMERCE_DELETEEXAMPLE]', N'P') IS NOT NULL DROP PROCEDURE [ext].CONTOSO_STORECOMMERCE_DELETEEXAMPLE GO CREATE PROCEDURE [ext].CONTOSO_STORECOMMERCE_DELETEEXAMPLE @bi_Id BIGINT AS BEGIN SET NOCOUNT ON DELETE FROM ext.CONTOSO_STORECOMMERCE_EXAMPLETABLE WHERE EXAMPLEID = @bi_Id END; GO GRANT EXECUTE ON [ext].CONTOSO_STORECOMMERCE_DELETEEXAMPLE TO [UsersRole]; GO GRANT EXECUTE ON [ext].CONTOSO_STORECOMMERCE_DELETEEXAMPLE TO [DeployExtensibilityRole]; GO
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/ChannelDatabase/Contoso.StoreCommercePackagingSample.ChannelDatabase.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.ChannelDatabase" Version="$(CommerceSdkPackagesVersion)" /> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/HardwareStation/FilePrinterController.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso { namespace Commerce.HardwareStation { using System; using System.IO; using System.Text; using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.HardwareStation; using Microsoft.Dynamics.Commerce.Runtime.Hosting.Contracts; /// <summary> /// PDF printer web API controller class. /// </summary> [RoutePrefix("FILEPRINTER")] public class FilePrinterController : IController { /// <summary> /// Prints the content. /// </summary> /// <param name="printRequest">The print request.</param> /// <exception cref="System.Web.Http.HttpResponseException">Exception thrown when an error occurs.</exception> [HttpPost] public async Task<bool> Print(PrintFileRequest printRequest) { ThrowIf.Null(printRequest, "printRequest"); try { // Add here the code to send the PDF file to the printer. var directory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Contoso", "FilePrinter"); if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } File.WriteAllLines(Path.Combine(directory, printRequest.FileName), printRequest.Lines, encoding: Encoding.UTF8); return await Task.FromResult(true).ConfigureAwait(false); } catch (PeripheralException ex) { Console.WriteLine(ex.Message); throw; } catch (Exception ex) { Console.WriteLine(ex.Message); throw new PeripheralException(PeripheralException.PrinterError, ex.Message, ex); } } } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/HardwareStation/Contoso.StoreCommercePackagingSample.HardwareStation.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.HardwareAndPeripherals" Version="$(CommerceSdkPackagesVersion)" /> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/HardwareStation/PrintFileRequest.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso { namespace Commerce.HardwareStation { using System.Runtime.Serialization; /// <summary> /// Print PDF request class. /// </summary> [DataContract] public class PrintFileRequest { /// <summary> /// Gets or sets the encoded binary file. /// </summary> [DataMember] public string[] Lines { get; private set; } /// <summary> /// Gets or sets the device name. /// </summary> [DataMember] public string FileName { get; set; } } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/StoreCommerce.Installer/Contoso.StoreCommercePackagingSample.StoreCommerce.Installer.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props " /> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net472</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Installers.StoreCommerce" Version="$(CommerceSdkPackagesVersion)" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\ChannelDatabase\Contoso.StoreCommercePackagingSample.ChannelDatabase.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> <ProjectReference Include="..\CommerceRuntime\Contoso.StoreCommercePackagingSample.CommerceRuntime.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> <ProjectReference Include="..\HardwareStation\Contoso.StoreCommercePackagingSample.HardwareStation.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> <ProjectReference Include="..\Pos\Contoso.StoreCommercePackagingSample.Pos.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <!-- Settings included in the CommerceRuntimeExtensionSettings item group will be added to the generated CommerceRuntime config file and available at runtime in the CommerceRuntime extension. --> <CommerceRuntimeExtensionSettings Include="ext.Contoso.IncludeExtensionPropertiesInProductSearch"> <Value>true</Value> </CommerceRuntimeExtensionSettings> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/DefinePosExtensionPackageTrigger.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime { using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// Class that implements a post trigger for the GetExtensionPackageDefinitionsRequest request type. /// </summary> public class DefinePosExtensionPackageTrigger : IRequestTriggerAsync { /// <summary> /// Gets the supported requests for this trigger. /// </summary> public IEnumerable<Type> SupportedRequestTypes { get { return new[] { typeof(GetExtensionPackageDefinitionsRequest) }; } } /// <summary> /// Post trigger to retrieve extension package. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> public Task OnExecuted(Request request, Response response) { ThrowIf.Null(request, "request"); ThrowIf.Null(response, "response"); var getExtensionsResponse = (GetExtensionPackageDefinitionsResponse)response; var extensionPackageDefinition = new ExtensionPackageDefinition(); // Should match the PackageName used when packaging the customization package (i.e. in CustomizationPackage.props). extensionPackageDefinition.Name = "Contoso.StoreCommercePackagingSample"; extensionPackageDefinition.Publisher = "Contoso"; extensionPackageDefinition.IsEnabled = true; getExtensionsResponse.ExtensionPackageDefinitions.Add(extensionPackageDefinition); return Task.CompletedTask; } /// <summary> /// Pre trigger code. /// </summary> /// <param name="request">The request.</param> public Task OnExecuting(Request request) { return Task.CompletedTask; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/AddExtensionPropertiesToProductSearchResultsTrigger.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime { using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Services.Messages; using Microsoft.Dynamics.Commerce.Runtime.Messages; public class AddExtensionPropertiesToProductSearchResults : IRequestTriggerAsync { // This key must match the name of the setting included in the CommerceRuntimeExtensionSettings. private const string IncludeExtensionPropertiesInProductSearchKey = "ext.Contoso.IncludeExtensionPropertiesInProductSearch"; private const string ExtensionPropertyName = "CONTOSO_PRODUCT_VERSION"; /// <summary> /// Gets the supported requests for this trigger. /// </summary> public IEnumerable<Type> SupportedRequestTypes { get { return new[] { typeof(SearchProductsServiceRequest) }; } } /// <summary> /// Post trigger code to retrieve extension properties. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> public Task OnExecuted(Request request, Response response) { ThrowIf.Null(request, "request"); ThrowIf.Null(response, "response"); SearchProductsServiceResponse searchProductsResponse = response as SearchProductsServiceResponse; if (searchProductsResponse != null) { // Only include the version number in the extension properties if it is configured in the CommerceRuntime config file. if (request.RequestContext.Runtime.Configuration.Settings.TryGetValue(IncludeExtensionPropertiesInProductSearchKey, out string settingValue)) { if (bool.TryParse(settingValue, out bool shouldAddExtensionProperties) && shouldAddExtensionProperties) { var random = new Random(); foreach (ProductSearchResult productSearchResult in searchProductsResponse.ProductSearchResults) { var version = Math.Round((random.NextDouble() + .1) * random.Next(1, 10), 2); // Generate a random version number. productSearchResult.SetProperty(ExtensionPropertyName, version.ToString()); } } } } return Task.CompletedTask; } /// <summary> /// Pre trigger code. /// </summary> /// <param name="request">The request.</param> public Task OnExecuting(Request request) { return Task.CompletedTask; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Contoso.StoreCommercePackagingSample.CommerceRuntime.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\CustomizationPackage.props" /> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Runtime" Version="$(CommerceSdkPackagesVersion)" /> <PackageReference Include="Microsoft.OpenApi" Version="1.2.3" /> </ItemGroup> </Project>
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Controllers/BoundController.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Hosting { using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Hosting.Contracts; /// <summary> /// An extension controller to handle requests to the example entity set. /// </summary> [RoutePrefix("BoundController")] [BindEntity(typeof(DataModel.ExampleEntity))] public class BoundController : IController { [HttpGet] [Authorization(CommerceRoles.Anonymous, CommerceRoles.Application, CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee, CommerceRoles.Storefront)] public async Task<PagedResult<DataModel.ExampleEntity>> GetAllExampleEntities(IEndpointContext context) { var queryResultSettings = QueryResultSettings.SingleRecord; queryResultSettings.Paging = new PagingInfo(10); var request = new Messages.ExampleEntityDataRequest() { QueryResultSettings = queryResultSettings }; var response = await context.ExecuteAsync<Messages.ExampleEntityDataResponse>(request).ConfigureAwait(false); return response.ExampleEntities; } [HttpPost] [Authorization(CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee)] public async Task<long> CreateExampleEntity(IEndpointContext context, DataModel.ExampleEntity entityData) { var request = new Messages.CreateExampleEntityDataRequest(entityData); var response = await context.ExecuteAsync<Messages.CreateExampleEntityDataResponse>(request).ConfigureAwait(false); return response.CreatedId; } [HttpPost] [Authorization(CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee)] public async Task<bool> UpdateExampleEntity(IEndpointContext context, [EntityKey] long key, DataModel.ExampleEntity updatedEntity) { var request = new Messages.UpdateExampleEntityDataRequest(key, updatedEntity); var response = await context.ExecuteAsync<Messages.UpdateExampleEntityDataResponse>(request).ConfigureAwait(false); return response.Success; } [HttpPost] [Authorization(CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee)] public async Task<bool> DeleteExampleEntity(IEndpointContext context, [EntityKey] long key) { var request = new Messages.DeleteExampleEntityDataRequest(key); var response = await context.ExecuteAsync<Messages.DeleteExampleEntityDataResponse>(request).ConfigureAwait(false); return response.Success; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Controllers/UnboundController.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Hosting { using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Hosting.Contracts; /// <summary> /// An extension controller to handle ping requests to CommerceRuntime. /// </summary> public class UnboundController : IController { /// <summary> /// A simple GET endpoint to demonstrate GET endpoints on an unbound controller. /// </summary> /// <returns>A simple true value to indicate the endpoint was reached.</returns> [HttpGet] [Authorization(CommerceRoles.Anonymous, CommerceRoles.Application, CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee, CommerceRoles.Storefront)] public Task<bool> SimplePingGet() { return Task.FromResult(true); } /// <summary> /// A simple POST endpoint to demonstrate POST endpoints on an unbound controller. /// </summary> /// <returns>A simple true value to indicate the endpoint was reached.</returns> [HttpPost] [Authorization(CommerceRoles.Customer, CommerceRoles.Device, CommerceRoles.Employee)] public Task<bool> SimplePingPost() { return Task.FromResult(true); } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/RequestHandlers/ExampleDataService.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading.Tasks; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.Data; using Microsoft.Dynamics.Commerce.Runtime.DataAccess.SqlServer; using Microsoft.Dynamics.Commerce.Runtime.Messages; using Contoso.CommerceRuntime.DataModel; using Contoso.CommerceRuntime.Messages; /// <summary> /// Sample service to demonstrate managing a collection of entities. /// </summary> public class ExampleDataService : IRequestHandlerAsync { /// <summary> /// Gets the collection of supported request types by this handler. /// </summary> public IEnumerable<Type> SupportedRequestTypes { get { return new[] { typeof(CreateExampleEntityDataRequest), typeof(ExampleEntityDataRequest), typeof(UpdateExampleEntityDataRequest), typeof(DeleteExampleEntityDataRequest), }; } } /// <summary> /// Entry point to StoreHoursDataService service. /// </summary> /// <param name="request">The request to execute.</param> /// <returns>Result of executing request, or null object for void operations.</returns> public Task<Response> Execute(Request request) { if (request == null) { throw new ArgumentNullException("request"); } Type reqType = request.GetType(); if (reqType == typeof(CreateExampleEntityDataRequest)) { return this.CreateExampleEntity((CreateExampleEntityDataRequest)request); } else if (reqType == typeof(ExampleEntityDataRequest)) { return this.GetExampleEntities((ExampleEntityDataRequest)request); } else if (reqType == typeof(UpdateExampleEntityDataRequest)) { return this.UpdateExampleEntity((UpdateExampleEntityDataRequest)request); } else if (reqType == typeof(DeleteExampleEntityDataRequest)) { return this.DeleteExampleEntity((DeleteExampleEntityDataRequest)request); } else { string message = string.Format(CultureInfo.InvariantCulture, "Request '{0}' is not supported.", reqType); throw new NotSupportedException(message); } } private async Task<Response> CreateExampleEntity(CreateExampleEntityDataRequest request) { ThrowIf.Null(request, nameof(request)); ThrowIf.Null(request.EntityData, nameof(request.EntityData)); long insertedId = 0; using (var databaseContext = new SqlServerDatabaseContext(request.RequestContext)) { ParameterSet parameters = new ParameterSet(); parameters["@i_ExampleInt"] = request.EntityData.IntData; parameters["@s_ExampleString"] = request.EntityData.StringData; var result = await databaseContext .ExecuteStoredProcedureAsync<ExampleEntity>("[ext].CONTOSO_INSERTEXAMPLE", parameters, request.QueryResultSettings) .ConfigureAwait(continueOnCapturedContext: false); insertedId = result.Item2.Single().UnusualEntityId; } return new CreateExampleEntityDataResponse(insertedId); } private async Task<Response> GetExampleEntities(ExampleEntityDataRequest request) { ThrowIf.Null(request, "request"); using (DatabaseContext databaseContext = new DatabaseContext(request.RequestContext)) { var query = new SqlPagedQuery(request.QueryResultSettings) { DatabaseSchema = "ext", Select = new ColumnSet("EXAMPLEINT", "EXAMPLESTRING", "EXAMPLEID"), From = "CONTOSO_EXAMPLEVIEW", OrderBy = "EXAMPLEID", }; var queryResults = await databaseContext .ReadEntityAsync<DataModel.ExampleEntity>(query) .ConfigureAwait(continueOnCapturedContext: false); return new ExampleEntityDataResponse(queryResults); } } private async Task<Response> UpdateExampleEntity(UpdateExampleEntityDataRequest request) { ThrowIf.Null(request, nameof(request)); ThrowIf.Null(request.UpdatedExampleEntity, nameof(request.UpdatedExampleEntity)); if (request.ExampleEntityKey == 0) { throw new DataValidationException(DataValidationErrors.Microsoft_Dynamics_Commerce_Runtime_ValueOutOfRange, $"{nameof(request.ExampleEntityKey)} cannot be 0"); } bool updateSuccess = false; using (var databaseContext = new SqlServerDatabaseContext(request.RequestContext)) { ParameterSet parameters = new ParameterSet(); parameters["@bi_Id"] = request.ExampleEntityKey; parameters["@i_ExampleInt"] = request.UpdatedExampleEntity.IntData; parameters["@s_ExampleString"] = request.UpdatedExampleEntity.StringData; int sprocErrorCode = await databaseContext .ExecuteStoredProcedureNonQueryAsync("[ext].CONTOSO_UPDATEEXAMPLE", parameters, request.QueryResultSettings) .ConfigureAwait(continueOnCapturedContext: false); updateSuccess = (sprocErrorCode == 0); } return new UpdateExampleEntityDataResponse(updateSuccess); } private async Task<Response> DeleteExampleEntity(DeleteExampleEntityDataRequest request) { ThrowIf.Null(request, nameof(request)); if (request.ExampleEntityKey == 0) { throw new DataValidationException(DataValidationErrors.Microsoft_Dynamics_Commerce_Runtime_ValueOutOfRange, $"{nameof(request.ExampleEntityKey)} cannot be 0"); } bool deleteSuccess = false; using (var databaseContext = new SqlServerDatabaseContext(request.RequestContext)) { ParameterSet parameters = new ParameterSet(); parameters["@bi_Id"] = request.ExampleEntityKey; int sprocErrorCode = await databaseContext .ExecuteStoredProcedureNonQueryAsync("[ext].CONTOSO_DELETEEXAMPLE", parameters, request.QueryResultSettings) .ConfigureAwait(continueOnCapturedContext: false); deleteSuccess = sprocErrorCode == 0; } return new DeleteExampleEntityDataResponse(deleteSuccess); } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/UpdateExampleEntityDataRequest.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Contoso.CommerceRuntime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple request class to update the values on an example entity. /// </summary> [DataContract] public sealed class UpdateExampleEntityDataRequest : Request { /// <summary> /// Initializes a new instance of the <see cref="UpdateExampleEntityDataRequest"/> class. /// </summary> /// <param name="entityKey">A unique key identifying an Example Entity record to update.</param> /// <param name="updatedEntity">An example entity with update fields.</param> public UpdateExampleEntityDataRequest(long entityKey, ExampleEntity updatedEntity) { this.ExampleEntityKey = entityKey; this.UpdatedExampleEntity = updatedEntity; } /// <summary> /// Gets the unique ID specifying the Example Entity record to update. /// </summary> public long ExampleEntityKey { get; private set; } /// <summary> /// Gets an Example Entity instance with any updates applied to it. /// </summary> [DataMember] public ExampleEntity UpdatedExampleEntity { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/UpdateExampleEntityDataResponse.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple response class to indicate whether an update succeeded or not. /// </summary> [DataContract] public sealed class UpdateExampleEntityDataResponse : Response { /// <summary> /// Initializes a new instance of the <see cref="UpdateExampleEntityDataResponse"/> class. /// </summary> /// <param name="success">Whether the update succeeded.</param> public UpdateExampleEntityDataResponse(bool success) { this.Success = success; } /// <summary> /// Gets a value indicating whether the update succeeded. /// </summary> public bool Success { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/ExampleEntityDataRequest.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple request class to get all Example Entities. /// </summary> [DataContract] public sealed class ExampleEntityDataRequest : Request { } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/DeleteExampleEntityDataResponse.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple response class to indicate whether a delete succeeded or not. /// </summary> [DataContract] public sealed class DeleteExampleEntityDataResponse : Response { /// <summary> /// Creates a new instance of the <see cref="DeleteExampleEntityDataResponse"/> class. /// </summary> /// <param name="success">Whether the delete succeeded.</param> public DeleteExampleEntityDataResponse(bool success) { this.Success = success; } /// <summary> /// Gets a value indicating whether the delete succeeded. /// </summary> public bool Success { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/DeleteExampleEntityDataRequest.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple request used to delete an example entity from the database. /// </summary> [DataContract] public sealed class DeleteExampleEntityDataRequest : Request { /// <summary> /// Initializes a new instance of the <see cref="DeleteExampleEntityDataRequest"/> class. /// </summary> /// <param name="entityKey">A unique key identifying an Example Entity record to delete.</param> public DeleteExampleEntityDataRequest(long entityKey) { this.ExampleEntityKey = entityKey; } /// <summary> /// Gets the unique ID specifying the Example Entity record to delete. /// </summary> public long ExampleEntityKey { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/CreateExampleEntityDataRequest.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Contoso.CommerceRuntime.DataModel; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple request class to create an Example Entity in the database. /// </summary> [DataContract] public sealed class CreateExampleEntityDataRequest : Request { /// <summary> /// Initializes a new instance of the <see cref="CreateExampleEntityDataRequest"/> class. /// </summary> /// <param name="entityData">An example entity with its fields populated with the values to be stored.</param> public CreateExampleEntityDataRequest(ExampleEntity entityData) { this.EntityData = entityData; } /// <summary> /// Gets an Example Entity instance with its fields set with the values to be stored. /// </summary> [DataMember] public ExampleEntity EntityData { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/ExampleEntityDataResponse.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Contoso.CommerceRuntime.DataModel; using Microsoft.Dynamics.Commerce.Runtime; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// Defines a simple response class that holds a collection of Example Entities. /// </summary> [DataContract] public sealed class ExampleEntityDataResponse : Response { /// <summary> /// Initializes a new instance of the <see cref="ExampleEntityDataResponse"/> class. /// </summary> /// <param name="exampleEntities">The collection of Example Entities.</param> public ExampleEntityDataResponse(PagedResult<ExampleEntity> exampleEntities) { this.ExampleEntities = exampleEntities; } /// <summary> /// Gets the retrieved Example Entities as a paged result. /// </summary> [DataMember] public PagedResult<ExampleEntity> ExampleEntities { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Messages/CreateExampleEntityDataResponse.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.Messages { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.Messages; /// <summary> /// A simple response class to indicate whether creating a new entity succeeded or not. /// </summary> [DataContract] public sealed class CreateExampleEntityDataResponse : Response { /// <summary> /// Initializes a new instance of the <see cref="CreateExampleEntityDataResponse"/> class. /// </summary> /// <param name="createdId">The ID of the newly saved entity instance, 0 in the event of failure.</param> public CreateExampleEntityDataResponse(long createdId) { this.CreatedId = createdId; } /// <summary> /// Gets the ID of the newly saved entity instance, or 0 in the event of failure. /// </summary> public long CreatedId { get; private set; } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/src/PackagingSamples/StoreCommerceApp/CommerceRuntime/Entities/ExampleEntity.cs
/** * SAMPLE CODE NOTICE * * THIS SAMPLE CODE IS MADE AVAILABLE AS IS. MICROSOFT MAKES NO WARRANTIES, WHETHER EXPRESS OR IMPLIED, * OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OR CONDITIONS OF MERCHANTABILITY. * THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS SAMPLE CODE REMAINS WITH THE USER. * NO TECHNICAL SUPPORT IS PROVIDED. YOU MAY NOT DISTRIBUTE THIS CODE UNLESS YOU HAVE A LICENSE AGREEMENT WITH MICROSOFT THAT ALLOWS YOU TO DO SO. */ namespace Contoso.CommerceRuntime.DataModel { using System.Runtime.Serialization; using Microsoft.Dynamics.Commerce.Runtime.ComponentModel.DataAnnotations; using Microsoft.Dynamics.Commerce.Runtime.DataModel; using SystemAnnotations = System.ComponentModel.DataAnnotations; /// <summary> /// Defines a simple class that holds information about opening and closing times for a particular day. /// </summary> public class ExampleEntity : CommerceEntity { private const string ExampleIntColumn = "EXAMPLEINT"; private const string ExampleStringColumn = "EXAMPLESTRING"; private const string IdColumn = "EXAMPLEID"; /// <summary> /// Initializes a new instance of the <see cref="ExampleEntity"/> class. /// </summary> public ExampleEntity() : base("Example") { } /// <summary> /// Gets or sets a property containing an int value. /// </summary> [DataMember] [Column(ExampleIntColumn)] public int IntData { get { return (int)this[ExampleIntColumn]; } set { this[ExampleIntColumn] = value; } } /// <summary> /// Gets or sets a property containing a string value. /// </summary> [DataMember] [Column(ExampleStringColumn)] public string StringData { get { return (string)this[ExampleStringColumn]; } set { this[ExampleStringColumn] = value; } } /// <summary> /// Gets or sets the id. /// </summary> /// <remarks> /// Fields named "Id" are automatically treated as the entity key. /// If a name other than Id is preferred, <see cref="System.ComponentModel.DataAnnotations.KeyAttribute"/> /// can be used like it is here to annotate a given field as the entity key. /// </remarks> [SystemAnnotations.Key] [DataMember] [Column(IdColumn)] public long UnusualEntityId { get { return (long)this[IdColumn]; } set { this[IdColumn] = value; } } } }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/build
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/build/maui/rollback.json
{ "microsoft.net.sdk.android": "34.0.95/8.0.100", "microsoft.net.sdk.ios": "17.2.8053/8.0.100", "microsoft.net.sdk.maccatalyst": "17.2.8053/8.0.100", "microsoft.net.sdk.macos": "14.2.8053/8.0.100", "microsoft.net.sdk.maui": "8.0.82/8.0.100", "microsoft.net.sdk.tvos": "17.2.8053/8.0.100", "microsoft.net.workload.mono.toolchain.current": "8.0.8/8.0.100", "microsoft.net.workload.emscripten.current": "8.0.8/8.0.100", "microsoft.net.workload.emscripten.net6": "8.0.8/8.0.100", "microsoft.net.workload.emscripten.net7": "8.0.8/8.0.100", "microsoft.net.workload.mono.toolchain.net6": "8.0.8/8.0.100", "microsoft.net.workload.mono.toolchain.net7": "8.0.8/8.0.100", "microsoft.net.sdk.aspire": "8.0.1/8.0.100" }
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline/YAML_Files/build-pipeline.yml
pr: none trigger: none pool: vmImage: 'windows-latest' #Your build pipeline references an undefined variable named ‘TenantId’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 #Your build pipeline references an undefined variable named ‘AzureKeyVaultURI’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 #Your build pipeline references an undefined variable named ‘ApplicationId’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 #Your build pipeline references an undefined variable named ‘SecretValue’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 #Your build pipeline references an undefined variable named ‘CertificateName’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 #Your build pipeline references an undefined variable named ‘Timestamp’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 steps: - task: PowerShell@2 displayName: 'Pre-Build steps' inputs: targetType: filePath filePath: ./Pipeline/PowershellScripts/Pre-Build.ps1 failOnStderr: true - task: NuGetToolInstaller@1 displayName: 'Use NuGet 5.4.0' inputs: versionSpec: '5.4.0' - task: NuGetCommand@2 displayName: 'NuGet restore' inputs: feedsToUse: config nugetConfigPath: nuget.config - task: VSBuild@1 displayName: 'Build solution **\*.sln' inputs: solution: '**\*.sln' - task: DotNetCoreCLI@2 displayName: 'Install AzureSignTool' inputs: command: custom custom: tool arguments: 'install --global azuresigntool' - task: PowerShell@2 displayName: 'Copy Hardware Station Installer to Artifact directory' inputs: targetType: filePath filePath: ./Pipeline/PowerShellScripts/CopyFileToDestination.ps1 arguments: '-RelativePath "$(Build.SourcesDirectory)\src\HardwareStationSample\HardwareStation.Installer" -File "Contoso.HardwareStation.Installer.exe" -DestinationFullName "$(Build.ArtifactStagingDirectory)\Contoso.HardwareStation.Installer_$(Build.BuildNumber).exe"' - task: PowerShell@2 displayName: 'Copy Modern POS Installer to Artifact directory' inputs: targetType: filePath filePath: ./Pipeline/PowerShellScripts/CopyFileToDestination.ps1 arguments: '-RelativePath "$(Build.SourcesDirectory)\src\PackagingSamples\ModernPos\ModernPos.Installer" -File "Contoso.ModernPosPackagingSample.ModernPos.Installer.exe" -DestinationFullName "$(Build.ArtifactStagingDirectory)\Contoso.ModernPosPackagingSample.ModernPos.Installer_$(Build.BuildNumber).exe"' - task: PowerShell@2 displayName: 'Sign Files' inputs: targetType: filePath filePath: ./Pipeline/PowerShellScripts/CodeSign.ps1 arguments: '-TenantId $(TenantId) -ApplicationId $(ApplicationId) -ApplicationSecretValue $(SecretValue) -AzureKeyVaultURI $(AzureKeyVaultURI) -CertificateName $(CertificateName) -Timestamp $(Timestamp) -TimestampDigest "sha256" -Files "$(Build.ArtifactStagingDirectory)\Contoso.PaymentDeviceSample.HardwareStation.Installer_$(Build.BuildNumber).exe $(Build.ArtifactStagingDirectory)\Contoso.ModernPosPackagingSample.ModernPos.Installer_$(Build.BuildNumber).exe"' - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact: drop'
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline/PowerShellScripts/CodeSign.ps1
param( [string]$TenantId, [string]$ApplicationId, [string]$ApplicationSecretValue, [string]$AzureKeyVaultURI, [string]$CertificateName, [string]$Timestamp, [string]$Files, [string]$TimestampDigest = "sha256" ) AzureSignTool.exe sign -kvu "$AzureKeyVaultURI" -kvt "$TenantId" -kvi "$ApplicationId" -kvs "$ApplicationSecretValue" -kvc "$CertificateName" -tr "$Timestamp" -td "$TimestampDigest" (-split $Files) # SIG # Begin signature block # MIIoLAYJKoZIhvcNAQcCoIIoHTCCKBkCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD2oy9+KgyA+R8v # vcfvZtVbt8UZYU7T7+tMLBcIgoL2j6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 # Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQC0KDfaY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f/5SoKCe3OYcn76mcMGXsFrZY5OVlxaGhuONBmk7U1I9rg4q6jiYYaY5Am # VG/nIU/D+6vKL2OmNEv4NoOkDkcIaoigtim2u4mFiLw3A10b5bBmu9i/dtzTVuAd # GP31kgbBn3TzSVB81zSBXke4MkI6+FS5YCz8UkItI8bUt9bXyQkziYmRjTsGoQQ1 # gmrA3yUu5CwyAXqhmfcKD8WfUiuXwxBwk5wi908/j4wva82Sg26UrtGHktYVAbzZ # 88Fmcgz33PS8O8h7gZBylEOHYYKQgKt5UDwkSkGHW3w6UFX0Er1e5bY0t0+Js+If # CsW0PnnZDfgOKs+43VuCu1Df3at5hprvQJxUsYlTx4LOopJOb8ClPqV4MYeLFynS # drfl5w7vmDydAS+UczM32X73f2hTePXX/NfYJ0Xw0uLpAWguZjiUeHh+RZgI5gg8 # h0PDBfsFm5WOtP3G2SHObg== # SIG # End signature block
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline/PowerShellScripts/CopyFileToDestination.ps1
param( [string]$RelativePath, [string]$File, [string]$DestinationFullName ) $searchFile = Get-ChildItem -Path $RelativePath -Filter $File -Recurse if (-NOT $searchFile) { throw "$File file was not found." } else { Copy-Item $searchFile.FullName -Destination "$DestinationFullName" } # SIG # Begin signature block # MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCirysgH4m0V8/e # tx8HQVsliWuxii8ecfoYxCNJxbWWl6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 # Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYD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QGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENB # IDIwMTACEzMAAAHm2UKe6gD4feEAAQAAAeYwIgQgKWuxY7FdkVYwSSdeDEguxFa+ # sK+pl5EFEKq3jwCUD/0wDQYJKoZIhvcNAQELBQAEggIAjFYHlFCJCjdJtj8XQDk4 # nxIa6Zc474lWHKXQC7pSgmHneKskMPTyv+Ihb78liYRhSaEUoqSQOLH1f7wRA8pl # frLgDHzqBbN+ktcqd2eafeU+yyuOYshdl8TK4QcJBDGr2ohzbiZILsCfEKm2gDdw # QttIfII2/40yyORfnjOvQLs4pVjVchMdc460zlBhMKOr1/RrkJMLDM/ArMjVSfxm # DWbZFXV7CyMrtdq+FwXCWKX0yvW+tgOOdBC2j0QGPVfTsDBO/qGMJIFshWMFjUj2 # kH+1rXzKXjfAXLU2m7nL0XxwFUcUkv3TBhyqPLL3vABC+MC2NqByUivjPS/sdYem # Gg1G+4k2hQ/wLFvYI5iyh0kL2n+TeKBv+w7IHcwUZFmwTBKpp2u99hRyeXnSDN5n # G8IK1iTTi6HsiVM8+nsty3Upqwzm8/6PfISUi+oiUdN2J5is9Ab1PmGWKBDLM/6W # Wwu0MCB56lY0q1RysHyMgCxa9xOc12CMpj8XenRfCkKtxiUUMxzPauf48XySWVXS # 9eiQPAiiBPiZLQG2RppnLiRa/KdNKwjc0v5HbIyy46Z3RjPNXCjyexrX5mu/yLcQ # Q7j2S15Sspc+7xnxWEATwiq3hqdtK8jMbScRtO7BsmIw15fcppuXRscfN+y6+YiL # f+qBNiePrXdXvMhqKW5acE0= # SIG # End signature block
0
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline
Dynamics365Commerce.InStore/Dynamics365Commerce.InStore/Pipeline/PowerShellScripts/Pre-Build.ps1
write-host "Executing pre-build scripts" # Any additional scripts to be executed during pipeline should be referenced in this file # Link for reference: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-7.1 # Invoke-Expression -Command "C:\ps-test\testscript.ps1" # SIG # Begin signature block # MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDnJZiAYMIW9TYG # RqUYbtEKWJhc4qiBYR0okqgnYrpXb6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 # Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz # NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo # DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 # a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8qMzCBzR7rvH2WVkvF # HLIxZQET1yhPb6lRmpgBQNnzidHV2Ocxjc8wNiIDzgbDkmlx54QPfw7RwQi8p1f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