Interface Shpfy IMetafield Owner Type
src/Apps/W1/Shopify/App/src/Metafields/Interfaces/ShpfyIMetafieldOwnerType.Interface.al41 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Integration.Shopify;/// <summary>/// Interface used to for metafield operations related to metafield owner resource./// </summary>interface "Shpfy IMetafield Owner Type"{ Access = Internal; /// <summary> /// Returns the table id where the owner record is stored in BC. /// </summary> /// <returns>Table id.</returns> procedure GetTableId(): Integer /// <summary> /// Retrieves metafields belonging to the owner resource in a dictionary with the last updated at timestamp. /// </summary> /// <param name="OwnerId">Id of the owner resource.</param> /// <returns>Dictionary of metafield ids and last updated at timestamp.</returns> procedure RetrieveMetafieldIdsFromShopify(OwnerId: BigInteger): Dictionary of [BigInteger, DateTime] /// <summary> /// Retrieves the shop code from the owner resource. /// </summary> /// <param name="OwnerId">Id of the owner resource.</param> /// <returns>Shop code.</returns> procedure GetShopCode(OwnerId: BigInteger): Code[20] /// <summary> /// Indicates if metafields can be edited. /// </summary> /// <param name="Shop">Shop record.</param> /// <returns>Boolean value which is true if metafields for the owner can be edited.</returns> procedure CanEditMetafields(Shop: Record "Shpfy Shop"): Boolean}